Class LabelMapToBinaryImageFilter
java.lang.Object
org.itk.simple.ProcessObject
org.itk.simple.ImageFilter
org.itk.simple.LabelMapToBinaryImageFilter
Convert a LabelMap to a binary image.
LabelMapToBinaryImageFilter to a binary image. All the objects in the image are used as
foreground. The background values of the original binary image can be
restored by passing this image to the filter with the
SetBackgroundImage() method.
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:
 LabelMapToLabelImageFilter , LabelMapMaskImageFilter
 itk::simple::LabelMapToBinary for the procedural interface
 itk::LabelMapToBinaryImageFilter for the Doxygen on the original ITK class.
C++ includes: sitkLabelMapToBinaryImageFilter.h
- 
Field SummaryFields inherited from class org.itk.simple.ProcessObjectswigCMemOwn
- 
Constructor SummaryConstructorsModifierConstructorDescriptionitk::simple::LabelMapToBinaryImageFilter::LabelMapToBinaryImageFilter() Default Constructor that takes no arguments and initializes default parametersprotectedLabelMapToBinaryImageFilter(long cPtr, boolean cMemoryOwn) 
- 
Method SummaryModifier and TypeMethodDescriptionvoiddelete()virtual itk::simple::LabelMapToBinaryImageFilter::~LabelMapToBinaryImageFilter() DestructorImage itk::simple::LabelMapToBinaryImageFilter::Execute(const Image &image1) Execute the filter on the input imageprotected voidfinalize()doubledouble itk::simple::LabelMapToBinaryImageFilter::GetBackgroundValue() const Set/Get the value used as "background" in the output image.protected static longdoubledouble itk::simple::LabelMapToBinaryImageFilter::GetForegroundValue() const Set/Get the value used as "foreground" in the output image.getName()std::string itk::simple::LabelMapToBinaryImageFilter::GetName() const Name of this classvoidsetBackgroundValue(double BackgroundValue) Self& itk::simple::LabelMapToBinaryImageFilter::SetBackgroundValue(double BackgroundValue) Set/Get the value used as "background" in the output image.voidsetForegroundValue(double ForegroundValue) Self& itk::simple::LabelMapToBinaryImageFilter::SetForegroundValue(double ForegroundValue) Set/Get the value used as "foreground" in the output image.protected static longtoString()std::string itk::simple::LabelMapToBinaryImageFilter::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- 
LabelMapToBinaryImageFilterprotected LabelMapToBinaryImageFilter(long cPtr, boolean cMemoryOwn) 
- 
LabelMapToBinaryImageFilterpublic LabelMapToBinaryImageFilter()itk::simple::LabelMapToBinaryImageFilter::LabelMapToBinaryImageFilter() 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::LabelMapToBinaryImageFilter::~LabelMapToBinaryImageFilter() Destructor- Overrides:
- deletein class- ImageFilter
 
- 
setBackgroundValuepublic void setBackgroundValue(double BackgroundValue) Self& itk::simple::LabelMapToBinaryImageFilter::SetBackgroundValue(double BackgroundValue) Set/Get the value used as "background" in the output image. Defaults to NumericTraits<PixelType>::NonpositiveMin() .
- 
getBackgroundValuepublic double getBackgroundValue()double itk::simple::LabelMapToBinaryImageFilter::GetBackgroundValue() const Set/Get the value used as "background" in the output image. Defaults to NumericTraits<PixelType>::NonpositiveMin() .
- 
setForegroundValuepublic void setForegroundValue(double ForegroundValue) Self& itk::simple::LabelMapToBinaryImageFilter::SetForegroundValue(double ForegroundValue) Set/Get the value used as "foreground" in the output image. Defaults to NumericTraits<PixelType>::max() .
- 
getForegroundValuepublic double getForegroundValue()double itk::simple::LabelMapToBinaryImageFilter::GetForegroundValue() const Set/Get the value used as "foreground" in the output image. Defaults to NumericTraits<PixelType>::max() .
- 
getNamestd::string itk::simple::LabelMapToBinaryImageFilter::GetName() const Name of this class- Overrides:
- getNamein class- ProcessObject
 
- 
toStringstd::string itk::simple::LabelMapToBinaryImageFilter::ToString() const Print ourselves out- Overrides:
- toStringin class- ProcessObject
 
- 
execute
 
-