18 #ifndef __itkMaskNegatedImageFilter_h
19 #define __itkMaskNegatedImageFilter_h
33 template<
class TInput,
class TMask,
class TOutput = TInput >
48 return !( *
this != other );
51 inline TOutput
operator()(
const TInput & A,
const TMask & B)
const
59 return static_cast< TOutput
>( A );
112 template<
class TInputImage,
class TMaskImage,
class TOutputImage = TInputImage >
116 Functor::MaskNegatedInput<
117 typename TInputImage::PixelType,
118 typename TMaskImage::PixelType,
119 typename TOutputImage::PixelType > >
127 typename TInputImage::PixelType,
128 typename TMaskImage::PixelType,
129 typename TOutputImage::PixelType >
146 void SetOutsideValue(
const typename TOutputImage::PixelType & outsideValue)
148 if ( this->GetOutsideValue() != outsideValue )
151 this->GetFunctor().SetOutsideValue(outsideValue);
156 const typename TOutputImage::PixelType & GetOutsideValue()
const
158 return this->GetFunctor().GetOutsideValue();
168 this->SetNthInput( 1, const_cast< MaskImageType * >( maskImage ) );
176 #ifdef ITK_USE_CONCEPT_CHECKING
182 typename TOutputImage::PixelType > ) );
191 void PrintSelf(std::ostream & os,
Indent indent)
const
193 Superclass::PrintSelf(os, indent);
194 os << indent <<
"OutsideValue: " << this->GetOutsideValue() << std::endl;
199 void operator=(
const Self &);