Class BinaryImageToLabelMapFilter
java.lang.Object
org.itk.simple.ProcessObject
org.itk.simple.ImageFilter
org.itk.simple.BinaryImageToLabelMapFilter
Label the connected components in a binary image and produce a collection
of label objects.
BinaryImageToLabelMapFilter labels the objects in a binary image. Each distinct object is
assigned a unique label. The final object labels start with 1 and are
consecutive. Objects that are reached earlier by a raster order scan
have a lower label.
The GetOutput() function of this class returns an itk::LabelMap .
This implementation was taken from the Insight Journal paper: https://doi.org/10.54294/q6auw4
Gaetan Lehmann. Biologie du Developpement et de la Reproduction, INRA
de Jouy-en-Josas, France.
See:
 ConnectedComponentImageFilter , LabelImageToLabelMapFilter , LabelMap , LabelObject
 itk::simple::BinaryImageToLabelMapFilter for the procedural interface
 itk::BinaryImageToLabelMapFilter for the Doxygen on the original ITK class.
C++ includes: sitkBinaryImageToLabelMapFilter.h
- 
Field SummaryFields inherited from class org.itk.simple.ProcessObjectswigCMemOwn
- 
Constructor SummaryConstructorsModifierConstructorDescriptionitk::simple::BinaryImageToLabelMapFilter::BinaryImageToLabelMapFilter() Default Constructor that takes no arguments and initializes default parametersprotectedBinaryImageToLabelMapFilter(long cPtr, boolean cMemoryOwn) 
- 
Method SummaryModifier and TypeMethodDescriptionvoiddelete()virtual itk::simple::BinaryImageToLabelMapFilter::~BinaryImageToLabelMapFilter() DestructorImage itk::simple::BinaryImageToLabelMapFilter::Execute(const Image &image1) Execute the filter on the input imageprotected voidfinalize()voidSelf& itk::simple::BinaryImageToLabelMapFilter::FullyConnectedOff()voidSelf& itk::simple::BinaryImageToLabelMapFilter::FullyConnectedOn() Set the value of FullyConnected to true or false respectfully.protected static longbooleanbool itk::simple::BinaryImageToLabelMapFilter::GetFullyConnected() const Set/Get whether the connected components are defined strictly by face connectivity or by face+edge+vertex connectivity.doubledouble itk::simple::BinaryImageToLabelMapFilter::GetInputForegroundValue() const Set/Get the value to be consider "foreground" in the input image.getName()std::string itk::simple::BinaryImageToLabelMapFilter::GetName() const Name of this classuint64_t itk::simple::BinaryImageToLabelMapFilter::GetNumberOfObjects() const This is a measurement.doubledouble itk::simple::BinaryImageToLabelMapFilter::GetOutputBackgroundValue() const Set/Get the value used as "background" in the output image.voidsetFullyConnected(boolean FullyConnected) Self& itk::simple::BinaryImageToLabelMapFilter::SetFullyConnected(bool FullyConnected) Set/Get whether the connected components are defined strictly by face connectivity or by face+edge+vertex connectivity.voidsetInputForegroundValue(double InputForegroundValue) Self& itk::simple::BinaryImageToLabelMapFilter::SetInputForegroundValue(double InputForegroundValue) Set/Get the value to be consider "foreground" in the input image.voidsetOutputBackgroundValue(double OutputBackgroundValue) Self& itk::simple::BinaryImageToLabelMapFilter::SetOutputBackgroundValue(double OutputBackgroundValue) Set/Get the value used as "background" in the output image.protected static longtoString()std::string itk::simple::BinaryImageToLabelMapFilter::ToString() const Print ourselves outMethods inherited from class org.itk.simple.ImageFiltergetCPtr, swigReleaseMethods inherited from class org.itk.simple.ProcessObjectabort, addCommand, debugOff, debugOn, getCPtr, getDebug, getGlobalDefaultCoordinateTolerance, getGlobalDefaultDebug, getGlobalDefaultDirectionTolerance, getGlobalDefaultNumberOfThreads, getGlobalDefaultThreader, getGlobalWarningDisplay, getNumberOfThreads, getNumberOfWorkUnits, getProgress, globalDefaultDebugOff, globalDefaultDebugOn, globalWarningDisplayOff, globalWarningDisplayOn, hasCommand, removeAllCommands, setDebug, setGlobalDefaultCoordinateTolerance, setGlobalDefaultDebug, setGlobalDefaultDirectionTolerance, setGlobalDefaultNumberOfThreads, setGlobalDefaultThreader, setGlobalWarningDisplay, setNumberOfThreads, setNumberOfWorkUnits, swigRelease
- 
Constructor Details- 
BinaryImageToLabelMapFilterprotected BinaryImageToLabelMapFilter(long cPtr, boolean cMemoryOwn) 
- 
BinaryImageToLabelMapFilterpublic BinaryImageToLabelMapFilter()itk::simple::BinaryImageToLabelMapFilter::BinaryImageToLabelMapFilter() Default Constructor that takes no arguments and initializes default parameters
 
- 
- 
Method Details- 
getCPtr
- 
swigRelease
- 
finalizeprotected void finalize()- Overrides:
- finalizein class- ImageFilter
 
- 
deletepublic void delete()virtual itk::simple::BinaryImageToLabelMapFilter::~BinaryImageToLabelMapFilter() Destructor- Overrides:
- deletein class- ImageFilter
 
- 
setFullyConnectedpublic void setFullyConnected(boolean FullyConnected) Self& itk::simple::BinaryImageToLabelMapFilter::SetFullyConnected(bool FullyConnected) Set/Get whether the connected components are defined strictly by face connectivity or by face+edge+vertex connectivity. Default is FullyConnectedOff. For objects that are 1 pixel wide, use FullyConnectedOn.
- 
fullyConnectedOnpublic void fullyConnectedOn()Self& itk::simple::BinaryImageToLabelMapFilter::FullyConnectedOn() Set the value of FullyConnected to true or false respectfully.
- 
fullyConnectedOffpublic void fullyConnectedOff()Self& itk::simple::BinaryImageToLabelMapFilter::FullyConnectedOff()
- 
getFullyConnectedpublic boolean getFullyConnected()bool itk::simple::BinaryImageToLabelMapFilter::GetFullyConnected() const Set/Get whether the connected components are defined strictly by face connectivity or by face+edge+vertex connectivity. Default is FullyConnectedOff. For objects that are 1 pixel wide, use FullyConnectedOn.
- 
setInputForegroundValuepublic void setInputForegroundValue(double InputForegroundValue) Self& itk::simple::BinaryImageToLabelMapFilter::SetInputForegroundValue(double InputForegroundValue) Set/Get the value to be consider "foreground" in the input image. Defaults to NumericTraits<InputPixelType>::max() .
- 
getInputForegroundValuepublic double getInputForegroundValue()double itk::simple::BinaryImageToLabelMapFilter::GetInputForegroundValue() const Set/Get the value to be consider "foreground" in the input image. Defaults to NumericTraits<InputPixelType>::max() .
- 
setOutputBackgroundValuepublic void setOutputBackgroundValue(double OutputBackgroundValue) Self& itk::simple::BinaryImageToLabelMapFilter::SetOutputBackgroundValue(double OutputBackgroundValue) Set/Get the value used as "background" in the output image. Defaults to NumericTraits<OutputPixelType>::NonpositiveMin() .
- 
getOutputBackgroundValuepublic double getOutputBackgroundValue()double itk::simple::BinaryImageToLabelMapFilter::GetOutputBackgroundValue() const Set/Get the value used as "background" in the output image. Defaults to NumericTraits<OutputPixelType>::NonpositiveMin() .
- 
getNumberOfObjectsuint64_t itk::simple::BinaryImageToLabelMapFilter::GetNumberOfObjects() const This is a measurement. Its value is updated in the Execute methods, so the value will only be valid after an execution.
- 
getNamestd::string itk::simple::BinaryImageToLabelMapFilter::GetName() const Name of this class- Overrides:
- getNamein class- ProcessObject
 
- 
toStringstd::string itk::simple::BinaryImageToLabelMapFilter::ToString() const Print ourselves out- Overrides:
- toStringin class- ProcessObject
 
- 
execute
 
-