18 #ifndef sitkLabelMapMaskImageFilter_h
19 #define sitkLabelMapMaskImageFilter_h
68 SITK_RETURN_SELF_TYPE_HEADER
SetLabel ( uint64_t
Label ) { this->m_Label =
Label;
return *
this; }
73 uint64_t
GetLabel()
const {
return this->m_Label; }\
78 SITK_RETURN_SELF_TYPE_HEADER
SetBackgroundValue (
double BackgroundValue ) { this->m_BackgroundValue = BackgroundValue;
return *
this; }
88 SITK_RETURN_SELF_TYPE_HEADER
SetNegated (
bool Negated ) { this->m_Negated = Negated;
return *
this; }
91 SITK_RETURN_SELF_TYPE_HEADER
NegatedOn() {
return this->SetNegated(
true); }
92 SITK_RETURN_SELF_TYPE_HEADER
NegatedOff() {
return this->SetNegated(
false); }
102 SITK_RETURN_SELF_TYPE_HEADER
SetCrop (
bool Crop ) { this->m_Crop =
Crop;
return *
this; }
105 SITK_RETURN_SELF_TYPE_HEADER
CropOn() {
return this->SetCrop(
true); }
106 SITK_RETURN_SELF_TYPE_HEADER
CropOff() {
return this->SetCrop(
false); }
111 bool GetCrop()
const {
return this->m_Crop; }\
116 SITK_RETURN_SELF_TYPE_HEADER
SetCropBorder ( std::vector<unsigned int> CropBorder ) { this->m_CropBorder = std::move(CropBorder);
return *
this; }
119 SITK_RETURN_SELF_TYPE_HEADER
SetCropBorder(
unsigned int value ) { this->m_CropBorder = std::vector<unsigned int>(3, value);
return *
this; }
124 std::vector<unsigned int>
GetCropBorder()
const {
return this->m_CropBorder; }
127 std::string
GetName()
const {
return std::string (
"LabelMapMaskImageFilter"); }
130 std::string ToString()
const;
135 Image Execute (
const Image & labelMapImage,
const Image & featureImage );
143 template <
class TImageType1,
class TImageType2>
Image DualExecuteInternal (
const Image * labelMapImage,
const Image * featureImage );
151 uint64_t m_Label{1u};
154 double m_BackgroundValue{0};
157 bool m_Negated{
false};
162 std::vector<unsigned int> m_CropBorder{std::vector<unsigned int>(3, 0)};
177 SITKBasicFilters_EXPORT Image LabelMapMask (
const Image & labelMapImage,
const Image & featureImage, uint64_t label = 1u,
double backgroundValue = 0,
bool negated =
false,
bool crop =
false, std::vector<unsigned int> cropBorder = std::vector<unsigned int>(3, 0) );