18 #ifndef sitkLabelMapMaskImageFilter_h
19 #define sitkLabelMapMaskImageFilter_h
79 SITK_RETURN_SELF_TYPE_HEADER
SetBackgroundValue (
double BackgroundValue ) { this->m_BackgroundValue = BackgroundValue;
return *
this; }
89 SITK_RETURN_SELF_TYPE_HEADER
SetNegated (
bool Negated ) { this->m_Negated = Negated;
return *
this; }
92 SITK_RETURN_SELF_TYPE_HEADER
NegatedOn() {
return this->SetNegated(
true); }
93 SITK_RETURN_SELF_TYPE_HEADER
NegatedOff() {
return this->SetNegated(
false); }
103 SITK_RETURN_SELF_TYPE_HEADER
SetCrop (
bool Crop ) { this->m_Crop =
Crop;
return *
this; }
106 SITK_RETURN_SELF_TYPE_HEADER
CropOn() {
return this->SetCrop(
true); }
107 SITK_RETURN_SELF_TYPE_HEADER
CropOff() {
return this->SetCrop(
false); }
112 bool GetCrop()
const {
return this->m_Crop; }\
117 SITK_RETURN_SELF_TYPE_HEADER
SetCropBorder ( std::vector<unsigned int> CropBorder ) { this->m_CropBorder = std::move(CropBorder);
return *
this; }
120 SITK_RETURN_SELF_TYPE_HEADER
SetCropBorder(
unsigned int value ) { this->m_CropBorder = std::vector<unsigned int>(3, value);
return *
this; }
125 std::vector<unsigned int>
GetCropBorder()
const {
return this->m_CropBorder; }
128 std::string
GetName()
const {
return std::string (
"LabelMapMaskImageFilter"); }
131 std::string ToString()
const;
136 Image Execute (
const Image & labelMapImage,
const Image & featureImage );
144 template <
class TImageType1,
class TImageType2>
Image DualExecuteInternal (
const Image * labelMapImage,
const Image * featureImage );
155 double m_BackgroundValue{0};
158 bool m_Negated{
false};
163 std::vector<unsigned int> m_CropBorder{std::vector<unsigned int>(3, 0)};