18 #ifndef sitkLabelMapMaskImageFilter_h
19 #define sitkLabelMapMaskImageFilter_h
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); }
116 SITK_RETURN_SELF_TYPE_HEADER
SetCropBorder (
const std::vector<unsigned int> & CropBorder ) { this->m_CropBorder = CropBorder;
return *
this; }
119 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; }
127 std::string
GetName()
const {
return std::string (
"LabelMapMaskImageFilter"); }
130 std::string ToString()
const;
134 Image Execute (
const Image & labelMapImage,
const Image & featureImage );
138 Image Execute (
const Image & labelMapImage,
const Image & featureImage,
uint64_t label,
double backgroundValue,
bool negated,
bool crop,
const std::vector<unsigned int> & cropBorder );
146 template <
class TImageType1,
class TImageType2>
Image DualExecuteInternal (
const Image * labelMapImage,
const Image * featureImage );