public class SegmentChannel extends FromChannelBase
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.
Constructor and Description |
---|
SegmentChannel() |
Modifier and Type | Method and Description |
---|---|
protected Mask |
createFromSource(Channel source) |
HistogramProvider |
getHistogram()
An optional histogram of voxel intensity values which can be used by
segment |
MaskProvider |
getMask()
An optional mask which restricts the algorithm to only parts of the channel where the mask
has an on voxel
|
BinarySegmentation |
getSegment()
Segmentation algorithm
|
void |
setHistogram(HistogramProvider histogram)
An optional histogram of voxel intensity values which can be used by
segment |
void |
setMask(MaskProvider mask)
An optional mask which restricts the algorithm to only parts of the channel where the mask
has an on voxel
|
void |
setSegment(BinarySegmentation segment)
Segmentation algorithm
|
get, getChannel, setChannel
getAsStack
getInitialization, getLogger, getPropertyInitializer, initialize, initializeRecursive, initRecursiveWithInitializer, isInitialized, onInitialization
checkMisconfigured, describeBean, describeChildren, duplicateBean, fields, findFieldsOfClass, getBeanName, getLocalPath, localise, toString
protected Mask createFromSource(Channel source) throws CreateException
createFromSource
in class FromChannelBase
CreateException
public BinarySegmentation getSegment()
public void setSegment(BinarySegmentation segment)
public HistogramProvider getHistogram()
segment
public void setHistogram(HistogramProvider histogram)
segment
public MaskProvider getMask()
public void setMask(MaskProvider mask)
Copyright © 2010–2023 Owen Feehan, ETH Zurich, University of Zurich, Hoffmann-La Roche. All rights reserved.