18 #ifndef sitkLabelMapContourOverlayImageFilter_h
19 #define sitkLabelMapContourOverlayImageFilter_h
73 SITK_RETURN_SELF_TYPE_HEADER
SetOpacity (
double Opacity ) { this->m_Opacity = Opacity;
return *
this; }
83 SITK_RETURN_SELF_TYPE_HEADER
SetDilationRadius ( std::vector<unsigned int> DilationRadius ) { this->m_DilationRadius = std::move(DilationRadius);
return *
this; }
86 SITK_RETURN_SELF_TYPE_HEADER
SetDilationRadius(
unsigned int value ) { this->m_DilationRadius = std::vector<unsigned int>(3, value);
return *
this; }
96 SITK_RETURN_SELF_TYPE_HEADER
SetContourThickness ( std::vector<unsigned int> ContourThickness ) { this->m_ContourThickness = std::move(ContourThickness);
return *
this; }
106 SITK_RETURN_SELF_TYPE_HEADER
SetSliceDimension (
unsigned int SliceDimension ) { this->m_SliceDimension = SliceDimension;
return *
this; }
113 typedef enum {PLAIN,CONTOUR,SLICE_CONTOUR} ContourTypeType;\
127 typedef enum {HIGH_LABEL_ON_TOP,LOW_LABEL_ON_TOP} PriorityType;\
141 SITK_RETURN_SELF_TYPE_HEADER
SetColormap ( std::vector<uint8_t> Colormap ) { this->m_Colormap = Colormap;
return *
this; }
145 std::vector<uint8_t>
GetColormap()
const {
return this->m_Colormap; }
148 std::string
GetName()
const {
return std::string (
"LabelMapContourOverlayImageFilter"); }
151 std::string ToString()
const;
156 Image Execute (
const Image & labelMapImage,
const Image & featureImage );
164 template <
class TImageType1,
class TImageType2>
Image DualExecuteInternal (
const Image * labelMapImage,
const Image * featureImage );
171 double m_Opacity{0.5};
173 std::vector<unsigned int> m_DilationRadius{std::vector<unsigned int>(3, 1)};
175 std::vector<unsigned int> m_ContourThickness{std::vector<unsigned int>(3, 1)};
177 unsigned int m_SliceDimension{0u};
183 std::vector<uint8_t> m_Colormap{std::vector<uint8_t>()};
198 SITKBasicFilters_EXPORT Image LabelMapContourOverlay (
const Image & labelMapImage,
const Image & featureImage,
double opacity = 0.5, std::vector<unsigned int> dilationRadius = std::vector<unsigned int>(3, 1), std::vector<unsigned int> contourThickness = std::vector<unsigned int>(3, 1),
unsigned int sliceDimension = 0u,
LabelMapContourOverlayImageFilter::ContourTypeType contourType =
itk::simple::LabelMapContourOverlayImageFilter::CONTOUR,
LabelMapContourOverlayImageFilter::PriorityType priority =
itk::simple::LabelMapContourOverlayImageFilter::HIGH_LABEL_ON_TOP, std::vector<uint8_t> colormap = std::vector<uint8_t>() );