Class LabelMapContourOverlayImageFilter
java.lang.Object
org.itk.simple.ProcessObject
org.itk.simple.ImageFilter
org.itk.simple.LabelMapContourOverlayImageFilter
Apply a colormap to the contours (outlines) of each object in a label
map and superimpose 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.
Apply a colormap to a label map and put it on top of the input 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://doi.org/10.54294/q6auw4
See:
 LabelMapOverlayImageFilter , LabelOverlayImageFilter , LabelOverlayFunctor
 LabelMapToBinaryImageFilter , LabelMapToLabelImageFilter ,
 itk::simple::LabelMapContourOverlay for the procedural interface
 itk::LabelMapContourOverlayImageFilter for the Doxygen on the original ITK class.
C++ includes: sitkLabelMapContourOverlayImageFilter.h
- 
Nested Class SummaryNested ClassesModifier and TypeClassDescriptionstatic final classstatic final class
- 
Field SummaryFields inherited from class org.itk.simple.ProcessObjectswigCMemOwn
- 
Constructor SummaryConstructorsModifierConstructorDescriptionitk::simple::LabelMapContourOverlayImageFilter::LabelMapContourOverlayImageFilter() Default Constructor that takes no arguments and initializes default parametersprotectedLabelMapContourOverlayImageFilter(long cPtr, boolean cMemoryOwn) 
- 
Method SummaryModifier and TypeMethodDescriptionvoiddelete()virtual itk::simple::LabelMapContourOverlayImageFilter::~LabelMapContourOverlayImageFilter() DestructorImage itk::simple::LabelMapContourOverlayImageFilter::Execute(const Image &labelMapImage, const Image &featureImage) Execute the filter on the input imageprotected voidfinalize()std::vector<uint8_t> itk::simple::LabelMapContourOverlayImageFilter::GetColormap() conststd::vector<unsigned int> itk::simple::LabelMapContourOverlayImageFilter::GetContourThickness() const Set/Get the contour thickness - 1 by default.ContourTypeType itk::simple::LabelMapContourOverlayImageFilter::GetContourType() const Set/Get the overlay type - CONTOUR is used by default.protected static longstd::vector<unsigned int> itk::simple::LabelMapContourOverlayImageFilter::GetDilationRadius() const Set/Get the object dilation radius - 0 by default.getName()std::string itk::simple::LabelMapContourOverlayImageFilter::GetName() const Name of this classdoubledouble itk::simple::LabelMapContourOverlayImageFilter::GetOpacity() const Set/Get the opacity of the colored label image.PriorityType itk::simple::LabelMapContourOverlayImageFilter::GetPriority() const Set/Get the object priority - HIGH_LABEL_ON_TOP by default.longunsigned int itk::simple::LabelMapContourOverlayImageFilter::GetSliceDimension() const Set/Get the slice dimension - defaults to image dimension - 1.voidsetColormap(VectorUInt8 Colormap) Self& itk::simple::LabelMapContourOverlayImageFilter::SetColormap(std::vector< uint8_t > Colormap)voidsetContourThickness(VectorUInt32 ContourThickness) Self& itk::simple::LabelMapContourOverlayImageFilter::SetContourThickness(std::vector< unsigned int > ContourThickness) Set/Get the contour thickness - 1 by default.voidSelf& itk::simple::LabelMapContourOverlayImageFilter::SetContourType(ContourTypeType ContourType) Set/Get the overlay type - CONTOUR is used by default.voidsetDilationRadius(long value) Self& itk::simple::LabelMapContourOverlayImageFilter::SetDilationRadius(unsigned int value) Set the values of the DilationRadius vector all to valuevoidsetDilationRadius(VectorUInt32 DilationRadius) Self& itk::simple::LabelMapContourOverlayImageFilter::SetDilationRadius(unsigned int value) Set the values of the DilationRadius vector all to valuevoidsetOpacity(double Opacity) Self& itk::simple::LabelMapContourOverlayImageFilter::SetOpacity(double Opacity) Set/Get the opacity of the colored label image.voidSelf& itk::simple::LabelMapContourOverlayImageFilter::SetPriority(PriorityType Priority) Set/Get the object priority - HIGH_LABEL_ON_TOP by default.voidsetSliceDimension(long SliceDimension) Self& itk::simple::LabelMapContourOverlayImageFilter::SetSliceDimension(unsigned int SliceDimension) Set/Get the slice dimension - defaults to image dimension - 1.protected static longtoString()std::string itk::simple::LabelMapContourOverlayImageFilter::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- 
LabelMapContourOverlayImageFilterprotected LabelMapContourOverlayImageFilter(long cPtr, boolean cMemoryOwn) 
- 
LabelMapContourOverlayImageFilterpublic LabelMapContourOverlayImageFilter()itk::simple::LabelMapContourOverlayImageFilter::LabelMapContourOverlayImageFilter() 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::LabelMapContourOverlayImageFilter::~LabelMapContourOverlayImageFilter() Destructor- Overrides:
- deletein class- ImageFilter
 
- 
setOpacitypublic void setOpacity(double Opacity) Self& itk::simple::LabelMapContourOverlayImageFilter::SetOpacity(double Opacity) Set/Get the opacity of the colored label image. The value must be between 0 and 1
- 
getOpacitypublic double getOpacity()double itk::simple::LabelMapContourOverlayImageFilter::GetOpacity() const Set/Get the opacity of the colored label image. The value must be between 0 and 1
- 
setDilationRadiusSelf& itk::simple::LabelMapContourOverlayImageFilter::SetDilationRadius(unsigned int value) Set the values of the DilationRadius vector all to value
- 
setDilationRadiuspublic void setDilationRadius(long value) Self& itk::simple::LabelMapContourOverlayImageFilter::SetDilationRadius(unsigned int value) Set the values of the DilationRadius vector all to value
- 
getDilationRadiusstd::vector<unsigned int> itk::simple::LabelMapContourOverlayImageFilter::GetDilationRadius() const Set/Get the object dilation radius - 0 by default.
- 
setContourThicknessSelf& itk::simple::LabelMapContourOverlayImageFilter::SetContourThickness(std::vector< unsigned int > ContourThickness) Set/Get the contour thickness - 1 by default.
- 
getContourThicknessstd::vector<unsigned int> itk::simple::LabelMapContourOverlayImageFilter::GetContourThickness() const Set/Get the contour thickness - 1 by default.
- 
setSliceDimensionpublic void setSliceDimension(long SliceDimension) Self& itk::simple::LabelMapContourOverlayImageFilter::SetSliceDimension(unsigned int SliceDimension) Set/Get the slice dimension - defaults to image dimension - 1.
- 
getSliceDimensionpublic long getSliceDimension()unsigned int itk::simple::LabelMapContourOverlayImageFilter::GetSliceDimension() const Set/Get the slice dimension - defaults to image dimension - 1.
- 
setContourTypeSelf& itk::simple::LabelMapContourOverlayImageFilter::SetContourType(ContourTypeType ContourType) Set/Get the overlay type - CONTOUR is used by default.
- 
getContourTypeContourTypeType itk::simple::LabelMapContourOverlayImageFilter::GetContourType() const Set/Get the overlay type - CONTOUR is used by default.
- 
setPrioritySelf& itk::simple::LabelMapContourOverlayImageFilter::SetPriority(PriorityType Priority) Set/Get the object priority - HIGH_LABEL_ON_TOP by default.
- 
getPriorityPriorityType itk::simple::LabelMapContourOverlayImageFilter::GetPriority() const Set/Get the object priority - HIGH_LABEL_ON_TOP by default.
- 
setColormapSelf& itk::simple::LabelMapContourOverlayImageFilter::SetColormap(std::vector< uint8_t > Colormap)
- 
getColormapstd::vector<uint8_t> itk::simple::LabelMapContourOverlayImageFilter::GetColormap() const
- 
getNamestd::string itk::simple::LabelMapContourOverlayImageFilter::GetName() const Name of this class- Overrides:
- getNamein class- ProcessObject
 
- 
toStringstd::string itk::simple::LabelMapContourOverlayImageFilter::ToString() const Print ourselves out- Overrides:
- toStringin class- ProcessObject
 
- 
execute
 
-