Package org.itk.simple
Class LabelToRGBImageFilter
java.lang.Object
org.itk.simple.ProcessObject
org.itk.simple.ImageFilter
org.itk.simple.LabelToRGBImageFilter
Apply a colormap to a label image.
Apply a colormap to a label image. The set of colors is a good
selection of distinct colors. The user can choose to use a background
value. In that case, a gray pixel with the same intensity than the
background label is produced.
This code was contributed in the Insight Journal paper: "The
watershed transform in ITK - discussion and new developments" by
Beare R., Lehmann G. https://www.insight-journal.org/browse/publication/92
Gaetan Lehmann. Biologie du Developpement et de la Reproduction, INRA
de Jouy-en-Josas, France.
Richard Beare. Department of Medicine, Monash University, Melbourne,
Australia.
See:
LabelOverlayImageFilter
LabelMapToRGBImageFilter , LabelToRGBFunctor, ScalarToRGBPixelFunctor
itk::simple::LabelToRGB for the procedural interface
itk::LabelToRGBImageFilter for the Doxygen on the original ITK class.
C++ includes: sitkLabelToRGBImageFilter.h
-
Field Summary
Fields inherited from class org.itk.simple.ProcessObject
swigCMemOwn
-
Constructor Summary
ConstructorsModifierConstructorDescriptionitk::simple::LabelToRGBImageFilter::LabelToRGBImageFilter() Default Constructor that takes no arguments and initializes default parametersprotected
LabelToRGBImageFilter
(long cPtr, boolean cMemoryOwn) -
Method Summary
Modifier and TypeMethodDescriptionvoid
delete()
virtual itk::simple::LabelToRGBImageFilter::~LabelToRGBImageFilter() DestructorImage itk::simple::LabelToRGBImageFilter::Execute(Image &&image1) Execute the filter on the input imageprotected void
finalize()
double
double itk::simple::LabelToRGBImageFilter::GetBackgroundValue() const Set/Get the background valuestd::vector<uint8_t> itk::simple::LabelToRGBImageFilter::GetColormap() constprotected static long
getName()
std::string itk::simple::LabelToRGBImageFilter::GetName() const Name of this classvoid
setBackgroundValue
(double BackgroundValue) Self& itk::simple::LabelToRGBImageFilter::SetBackgroundValue(double BackgroundValue) Set/Get the background valuevoid
setColormap
(VectorUInt8 Colormap) Self& itk::simple::LabelToRGBImageFilter::SetColormap(std::vector< uint8_t > Colormap)protected static long
toString()
std::string itk::simple::LabelToRGBImageFilter::ToString() const Print ourselves outMethods inherited from class org.itk.simple.ImageFilter
getCPtr, swigRelease
Methods inherited from class org.itk.simple.ProcessObject
abort, 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
-
LabelToRGBImageFilter
protected LabelToRGBImageFilter(long cPtr, boolean cMemoryOwn) -
LabelToRGBImageFilter
public LabelToRGBImageFilter()itk::simple::LabelToRGBImageFilter::LabelToRGBImageFilter() Default Constructor that takes no arguments and initializes default parameters
-
-
Method Details
-
getCPtr
-
swigRelease
-
finalize
protected void finalize()- Overrides:
finalize
in classImageFilter
-
delete
public void delete()virtual itk::simple::LabelToRGBImageFilter::~LabelToRGBImageFilter() Destructor- Overrides:
delete
in classImageFilter
-
setBackgroundValue
public void setBackgroundValue(double BackgroundValue) Self& itk::simple::LabelToRGBImageFilter::SetBackgroundValue(double BackgroundValue) Set/Get the background value -
getBackgroundValue
public double getBackgroundValue()double itk::simple::LabelToRGBImageFilter::GetBackgroundValue() const Set/Get the background value -
setColormap
Self& itk::simple::LabelToRGBImageFilter::SetColormap(std::vector< uint8_t > Colormap) -
getColormap
std::vector<uint8_t> itk::simple::LabelToRGBImageFilter::GetColormap() const -
getName
std::string itk::simple::LabelToRGBImageFilter::GetName() const Name of this class- Overrides:
getName
in classProcessObject
-
toString
std::string itk::simple::LabelToRGBImageFilter::ToString() const Print ourselves out- Overrides:
toString
in classProcessObject
-
execute
Image itk::simple::LabelToRGBImageFilter::Execute(Image &&image1) Execute the filter on the input image
-