Package org.itk.simple
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://www.insight-journal.org/browse/publication/176
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 Summary
Nested ClassesModifier and TypeClassDescriptionstatic final class
static final class
-
Field Summary
Fields inherited from class org.itk.simple.ProcessObject
swigCMemOwn
-
Constructor Summary
ConstructorsModifierConstructorDescriptionitk::simple::LabelMapContourOverlayImageFilter::LabelMapContourOverlayImageFilter() Default Constructor that takes no arguments and initializes default parametersprotected
LabelMapContourOverlayImageFilter
(long cPtr, boolean cMemoryOwn) -
Method Summary
Modifier and TypeMethodDescriptionvoid
delete()
virtual itk::simple::LabelMapContourOverlayImageFilter::~LabelMapContourOverlayImageFilter() DestructorImage itk::simple::LabelMapContourOverlayImageFilter::Execute(const Image &labelMapImage, const Image &featureImage) Execute the filter on the input imageprotected void
finalize()
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 long
std::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 classdouble
double 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.long
unsigned int itk::simple::LabelMapContourOverlayImageFilter::GetSliceDimension() const Set/Get the slice dimension - defaults to image dimension - 1.void
setColormap
(VectorUInt8 Colormap) Self& itk::simple::LabelMapContourOverlayImageFilter::SetColormap(std::vector< uint8_t > Colormap)void
setContourThickness
(VectorUInt32 ContourThickness) Self& itk::simple::LabelMapContourOverlayImageFilter::SetContourThickness(std::vector< unsigned int > ContourThickness) Set/Get the contour thickness - 1 by default.void
Self& itk::simple::LabelMapContourOverlayImageFilter::SetContourType(ContourTypeType ContourType) Set/Get the overlay type - CONTOUR is used by default.void
setDilationRadius
(long value) Self& itk::simple::LabelMapContourOverlayImageFilter::SetDilationRadius(unsigned int value) Set the values of the DilationRadius vector all to valuevoid
setDilationRadius
(VectorUInt32 DilationRadius) Self& itk::simple::LabelMapContourOverlayImageFilter::SetDilationRadius(unsigned int value) Set the values of the DilationRadius vector all to valuevoid
setOpacity
(double Opacity) Self& itk::simple::LabelMapContourOverlayImageFilter::SetOpacity(double Opacity) Set/Get the opacity of the colored label image.void
Self& itk::simple::LabelMapContourOverlayImageFilter::SetPriority(PriorityType Priority) Set/Get the object priority - HIGH_LABEL_ON_TOP by default.void
setSliceDimension
(long SliceDimension) Self& itk::simple::LabelMapContourOverlayImageFilter::SetSliceDimension(unsigned int SliceDimension) Set/Get the slice dimension - defaults to image dimension - 1.protected static long
toString()
std::string itk::simple::LabelMapContourOverlayImageFilter::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
-
LabelMapContourOverlayImageFilter
protected LabelMapContourOverlayImageFilter(long cPtr, boolean cMemoryOwn) -
LabelMapContourOverlayImageFilter
public LabelMapContourOverlayImageFilter()itk::simple::LabelMapContourOverlayImageFilter::LabelMapContourOverlayImageFilter() 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::LabelMapContourOverlayImageFilter::~LabelMapContourOverlayImageFilter() Destructor- Overrides:
delete
in classImageFilter
-
setOpacity
public 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 -
getOpacity
public 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 -
setDilationRadius
Self& itk::simple::LabelMapContourOverlayImageFilter::SetDilationRadius(unsigned int value) Set the values of the DilationRadius vector all to value -
setDilationRadius
public void setDilationRadius(long value) Self& itk::simple::LabelMapContourOverlayImageFilter::SetDilationRadius(unsigned int value) Set the values of the DilationRadius vector all to value -
getDilationRadius
std::vector<unsigned int> itk::simple::LabelMapContourOverlayImageFilter::GetDilationRadius() const Set/Get the object dilation radius - 0 by default. -
setContourThickness
Self& itk::simple::LabelMapContourOverlayImageFilter::SetContourThickness(std::vector< unsigned int > ContourThickness) Set/Get the contour thickness - 1 by default. -
getContourThickness
std::vector<unsigned int> itk::simple::LabelMapContourOverlayImageFilter::GetContourThickness() const Set/Get the contour thickness - 1 by default. -
setSliceDimension
public void setSliceDimension(long SliceDimension) Self& itk::simple::LabelMapContourOverlayImageFilter::SetSliceDimension(unsigned int SliceDimension) Set/Get the slice dimension - defaults to image dimension - 1. -
getSliceDimension
public long getSliceDimension()unsigned int itk::simple::LabelMapContourOverlayImageFilter::GetSliceDimension() const Set/Get the slice dimension - defaults to image dimension - 1. -
setContourType
Self& itk::simple::LabelMapContourOverlayImageFilter::SetContourType(ContourTypeType ContourType) Set/Get the overlay type - CONTOUR is used by default. -
getContourType
ContourTypeType itk::simple::LabelMapContourOverlayImageFilter::GetContourType() const Set/Get the overlay type - CONTOUR is used by default. -
setPriority
Self& itk::simple::LabelMapContourOverlayImageFilter::SetPriority(PriorityType Priority) Set/Get the object priority - HIGH_LABEL_ON_TOP by default. -
getPriority
PriorityType itk::simple::LabelMapContourOverlayImageFilter::GetPriority() const Set/Get the object priority - HIGH_LABEL_ON_TOP by default. -
setColormap
Self& itk::simple::LabelMapContourOverlayImageFilter::SetColormap(std::vector< uint8_t > Colormap) -
getColormap
std::vector<uint8_t> itk::simple::LabelMapContourOverlayImageFilter::GetColormap() const -
getName
std::string itk::simple::LabelMapContourOverlayImageFilter::GetName() const Name of this class- Overrides:
getName
in classProcessObject
-
toString
std::string itk::simple::LabelMapContourOverlayImageFilter::ToString() const Print ourselves out- Overrides:
toString
in classProcessObject
-
execute
Image itk::simple::LabelMapContourOverlayImageFilter::Execute(const Image &labelMapImage, const Image &featureImage) Execute the filter on the input image
-