Package org.itk.simple
Class LabelMapOverlayImageFilter
java.lang.Object
org.itk.simple.ProcessObject
org.itk.simple.ImageFilter
org.itk.simple.LabelMapOverlayImageFilter
Apply a colormap to a label map and superimpose it on an image.
Apply a colormap to a label map and put it on top of the feature
image. The feature image is typically the image from which the
labeling was produced. Use the SetInput function to set the LabelMap , and the SetFeatureImage function to set the feature image.
The set of colors is a good selection of distinct colors. The opacity
of the label map can be defined by the user. A background label
produce a gray pixel with the same intensity than the input one.
Gaetan Lehmann. Biologie du Developpement et de la Reproduction, INRA
de Jouy-en-Josas, France.
This implementation was taken from the Insight Journal paper: https://www.insight-journal.org/browse/publication/176
See:
LabelOverlayImageFilter , LabelOverlayFunctor
LabelMapToRGBImageFilter , LabelMapToBinaryImageFilter , LabelMapToLabelImageFilter
itk::simple::LabelMapOverlay for the procedural interface
itk::LabelMapOverlayImageFilter for the Doxygen on the original ITK class.
C++ includes: sitkLabelMapOverlayImageFilter.h
-
Field Summary
Fields inherited from class org.itk.simple.ProcessObject
swigCMemOwn
-
Constructor Summary
ConstructorsModifierConstructorDescriptionitk::simple::LabelMapOverlayImageFilter::LabelMapOverlayImageFilter() Default Constructor that takes no arguments and initializes default parametersprotected
LabelMapOverlayImageFilter
(long cPtr, boolean cMemoryOwn) -
Method Summary
Modifier and TypeMethodDescriptionvoid
delete()
virtual itk::simple::LabelMapOverlayImageFilter::~LabelMapOverlayImageFilter() DestructorImage itk::simple::LabelMapOverlayImageFilter::Execute(const Image &labelMapImage, const Image &featureImage) Execute the filter on the input imageprotected void
finalize()
std::vector<unsigned char> itk::simple::LabelMapOverlayImageFilter::GetColormap() constprotected static long
getName()
std::string itk::simple::LabelMapOverlayImageFilter::GetName() const Name of this classdouble
double itk::simple::LabelMapOverlayImageFilter::GetOpacity() const Set/Get the opacity of the colored label image.void
setColormap
(VectorUInt8 Colormap) Self& itk::simple::LabelMapOverlayImageFilter::SetColormap(std::vector< unsigned char > Colormap)void
setOpacity
(double Opacity) Self& itk::simple::LabelMapOverlayImageFilter::SetOpacity(double Opacity) Set/Get the opacity of the colored label image.protected static long
toString()
std::string itk::simple::LabelMapOverlayImageFilter::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
-
LabelMapOverlayImageFilter
protected LabelMapOverlayImageFilter(long cPtr, boolean cMemoryOwn) -
LabelMapOverlayImageFilter
public LabelMapOverlayImageFilter()itk::simple::LabelMapOverlayImageFilter::LabelMapOverlayImageFilter() 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::LabelMapOverlayImageFilter::~LabelMapOverlayImageFilter() Destructor- Overrides:
delete
in classImageFilter
-
setOpacity
public void setOpacity(double Opacity) Self& itk::simple::LabelMapOverlayImageFilter::SetOpacity(double Opacity) Set/Get the opacity of the colored label image. The value must be between 0 and 1 -
getOpacity
public double getOpacity()double itk::simple::LabelMapOverlayImageFilter::GetOpacity() const Set/Get the opacity of the colored label image. The value must be between 0 and 1 -
setColormap
Self& itk::simple::LabelMapOverlayImageFilter::SetColormap(std::vector< unsigned char > Colormap) -
getColormap
std::vector<unsigned char> itk::simple::LabelMapOverlayImageFilter::GetColormap() const -
getName
std::string itk::simple::LabelMapOverlayImageFilter::GetName() const Name of this class- Overrides:
getName
in classProcessObject
-
toString
std::string itk::simple::LabelMapOverlayImageFilter::ToString() const Print ourselves out- Overrides:
toString
in classProcessObject
-
execute
Image itk::simple::LabelMapOverlayImageFilter::Execute(const Image &labelMapImage, const Image &featureImage) Execute the filter on the input image
-