18 #ifndef sitkLabelMapContourOverlayImageFilter_h
19 #define sitkLabelMapContourOverlayImageFilter_h
74 SITK_RETURN_SELF_TYPE_HEADER
SetOpacity (
double Opacity ) { this->m_Opacity = Opacity;
return *
this; }
84 SITK_RETURN_SELF_TYPE_HEADER
SetDilationRadius ( std::vector<unsigned int> DilationRadius ) { this->m_DilationRadius = std::move(DilationRadius);
return *
this; }
87 SITK_RETURN_SELF_TYPE_HEADER
SetDilationRadius(
unsigned int value ) { this->m_DilationRadius = std::vector<unsigned int>(3, value);
return *
this; }
97 SITK_RETURN_SELF_TYPE_HEADER
SetContourThickness ( std::vector<unsigned int> ContourThickness ) { this->m_ContourThickness = std::move(ContourThickness);
return *
this; }
107 SITK_RETURN_SELF_TYPE_HEADER
SetSliceDimension (
unsigned int SliceDimension ) { this->m_SliceDimension = SliceDimension;
return *
this; }
114 typedef enum {PLAIN,CONTOUR,SLICE_CONTOUR} ContourTypeType;\
128 typedef enum {HIGH_LABEL_ON_TOP,LOW_LABEL_ON_TOP} PriorityType;\
142 SITK_RETURN_SELF_TYPE_HEADER
SetColormap ( std::vector<uint8_t> Colormap ) { this->m_Colormap = Colormap;
return *
this; }
146 std::vector<uint8_t>
GetColormap()
const {
return this->m_Colormap; }
149 std::string
GetName()
const {
return std::string (
"LabelMapContourOverlayImageFilter"); }
152 std::string ToString()
const;
157 Image Execute (
const Image & labelMapImage,
const Image & featureImage );
165 template <
class TImageType1,
class TImageType2>
Image DualExecuteInternal (
const Image * labelMapImage,
const Image * featureImage );
172 double m_Opacity{0.5};
174 std::vector<unsigned int> m_DilationRadius{std::vector<unsigned int>(3, 1)};
176 std::vector<unsigned int> m_ContourThickness{std::vector<unsigned int>(3, 1)};
178 unsigned int m_SliceDimension{0u};
184 std::vector<uint8_t> m_Colormap{std::vector<uint8_t>()};
199 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>() );