Class SegmentChannel
- All Implemented Interfaces:
Provider<Mask>,ProviderAsStack
Applies a
BinarySegmentation algorithm to derive a mask from a channel
Optionally, a mask restricts which part of the channel the algorithm is applied to. In this case, the remainder of the channel is unaltered in the output-mask, and no check occurs to ensure it containlys only the valid binary-values for off and on.
Optionally a histogram of voxel intensity values is passed to the segmentation algorithm.
- Author:
- Owen Feehan
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected MaskcreateFromSource(Channel source) An optional histogram of voxel intensity values which can be used bysegmentgetMask()An optional mask which restricts the algorithm to only parts of the channel where the mask has an on voxelSegmentation algorithmvoidsetHistogram(HistogramProvider histogram) An optional histogram of voxel intensity values which can be used bysegmentvoidsetMask(MaskProvider mask) An optional mask which restricts the algorithm to only parts of the channel where the mask has an on voxelvoidsetSegment(BinarySegmentation segment) Segmentation algorithmMethods inherited from class org.anchoranalysis.plugin.image.bean.mask.provider.FromChannelBase
get, getChannel, setChannelMethods inherited from class org.anchoranalysis.image.bean.provider.MaskProvider
getAsStackMethods 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
-
SegmentChannel
public SegmentChannel()
-
-
Method Details
-
createFromSource
Description copied from class:FromChannelBase- Specified by:
createFromSourcein classFromChannelBase- Parameters:
source- the source channel- Returns:
- the created mask
- Throws:
CreateException- if the mask creation fails
-
getSegment
Segmentation algorithm -
setSegment
Segmentation algorithm -
getHistogram
An optional histogram of voxel intensity values which can be used bysegment -
setHistogram
An optional histogram of voxel intensity values which can be used bysegment -
getMask
An optional mask which restricts the algorithm to only parts of the channel where the mask has an on voxel -
setMask
An optional mask which restricts the algorithm to only parts of the channel where the mask has an on voxel
-