Class Mser
Applies the MSER algorithm from imglib2
- Author:
- Owen Feehan
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondoublegetDelta()longdoubledoublelongsegment(Channel channel, Optional<ObjectMask> objectMask, Optional<ObjectCollection> seeds) Segments a channel to produce an object-collection.voidsetDelta(double delta) voidsetMaxSize(long maxSize) voidsetMaxVar(double maxVar) voidsetMinDiversity(double minDiversity) voidsetMinSize(long minSize) Methods inherited from class org.anchoranalysis.image.bean.segment.object.SegmentChannelIntoObjects
checkUnsupported3D, checkUnsupportedObjectMask, checkUnsupportedSeedsMethods inherited from class org.anchoranalysis.bean.initializable.InitializableBean
getInitialization, getLogger, getPropertyInitializer, initialize, initializeRecursive, initRecursiveWithInitializer, isInitialized, onInitializationMethods inherited from class org.anchoranalysis.bean.AnchorBean
checkMisconfigured, describeBean, describeChildren, duplicateBean, fields, findFieldsOfClass, getBeanName, getLocalPath, localise, toString
-
Constructor Details
-
Mser
public Mser()
-
-
Method Details
-
segment
public ObjectCollection segment(Channel channel, Optional<ObjectMask> objectMask, Optional<ObjectCollection> seeds) throws SegmentationFailedException Description copied from class:SegmentChannelIntoObjectsSegments a channel to produce an object-collection.- Specified by:
segmentin classSegmentChannelIntoObjects- Parameters:
channel- the channel to segmentobjectMask- an object-mask that can restrict which areas of the channel are considered.seeds- seeds that can be used to determine starting-points for segmentation regions.- Returns:
- a newly created collection of objects for each segment. The created objects will always exist inside the channel's extent.
- Throws:
SegmentationFailedException- if anything goes wrong during the segmentation.
-
getMinSize
public long getMinSize() -
setMinSize
public void setMinSize(long minSize) -
getMaxSize
public long getMaxSize() -
setMaxSize
public void setMaxSize(long maxSize) -
getMaxVar
public double getMaxVar() -
setMaxVar
public void setMaxVar(double maxVar) -
getMinDiversity
public double getMinDiversity() -
setMinDiversity
public void setMinDiversity(double minDiversity) -
getDelta
public double getDelta() -
setDelta
public void setDelta(double delta)
-