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 Mask
createFromSource
(Channel source) 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 voxelSegmentation algorithmvoid
setHistogram
(HistogramProvider histogram) An optional histogram of voxel intensity values which can be used bysegment
void
setMask
(MaskProvider mask) An optional mask which restricts the algorithm to only parts of the channel where the mask has an on voxelvoid
setSegment
(BinarySegmentation segment) Segmentation algorithmMethods inherited from class org.anchoranalysis.plugin.image.bean.mask.provider.FromChannelBase
get, getChannel, setChannel
Methods inherited from class org.anchoranalysis.image.bean.provider.MaskProvider
getAsStack
Methods inherited from class org.anchoranalysis.bean.initializable.InitializableBean
getInitialization, getLogger, getPropertyInitializer, initialize, initializeRecursive, initRecursiveWithInitializer, isInitialized, onInitialization
Methods 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:
createFromSource
in 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
-