Class SegmentChannel
Object
AnchorBean<MaskProvider>
InitializableBean<MaskProvider, ImageInitialization>
ImageBean<MaskProvider>
BeanProviderAsStackBase<MaskProvider, Mask>
MaskProvider
FromChannelBase
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) Creates aMaskfrom the sourceChannel.HistogramProviderAn optional histogram of voxel intensity values which can be used bysegmentMaskProvidergetMask()An optional mask which restricts the algorithm to only parts of the channel where the mask has an on voxelBinarySegmentationSegmentation 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
protected Mask createFromSource(Channel source) throws CreateException Description copied from class:FromChannelBaseCreates aMaskfrom the sourceChannel.- Specified by:
createFromSourcein classFromChannelBase- Parameters:
source- the source channel- Returns:
- the created mask
- Throws:
CreateException- if the mask creation fails
-
getSegment
public BinarySegmentation getSegment()Segmentation algorithm -
setSegment
public void setSegment(BinarySegmentation segment) Segmentation algorithm -
getHistogram
public HistogramProvider getHistogram()An optional histogram of voxel intensity values which can be used bysegment -
setHistogram
public void setHistogram(HistogramProvider histogram) An optional histogram of voxel intensity values which can be used bysegment -
getMask
public MaskProvider getMask()An optional mask which restricts the algorithm to only parts of the channel where the mask has an on voxel -
setMask
public void setMask(MaskProvider mask) An optional mask which restricts the algorithm to only parts of the channel where the mask has an on voxel
-