18 #ifndef itkMaskNegatedImageFilter_h
19 #define itkMaskNegatedImageFilter_h
34 template<
typename TInput,
typename TMask,
typename TOutput = TInput >
53 return !( *
this != other );
56 inline TOutput
operator()(
const TInput & A,
const TMask & B)
const
64 return static_cast< TOutput
>( A );
131 template<
typename TInputImage,
typename TMaskImage,
typename TOutputImage = TInputImage >
144 typename TMaskImage::PixelType,
145 typename TOutputImage::PixelType >;
199 this->
SetNthInput( 1, const_cast< MaskImageType * >( maskImage ) );
207 #ifdef ITK_USE_CONCEPT_CHECKING
213 typename TOutputImage::PixelType > ) );
224 os << indent <<
"OutsideValue: " << this->
GetOutsideValue() << std::endl;
void SetOutsideValue(const typename TOutputImage::PixelType &outsideValue)
void PrintSelf(std::ostream &os, Indent indent) const override
FunctorType & GetFunctor()
Define numeric traits for std::vector.
Mask an image with the negation (or logical compliment) of a mask.
The base class for all process objects (source, filters, mappers) in the Insight data processing pipe...
virtual const FunctorType & GetFunctor() const
const TOutputImage::PixelType & GetOutsideValue() const
Base class for all process objects that output image data.
void PrintSelf(std::ostream &os, Indent indent) const override
void SetMaskImage(const MaskImageType *maskImage)
const TMaskImage::PixelType & GetMaskingValue() const
~MaskNegatedImageFilter() override=default
const MaskImageType * GetMaskImage()
Implements pixel-wise generic operation of two images, or of an image and a constant.
void BeforeThreadedGenerateData() override
bool NotExactlyEquals(const TInput1 &x1, const TInput2 &x2)
virtual void Modified() const
void SetFunctor(const std::function< ConstRefFunctionType > &f)
DataObject * GetInput(const DataObjectIdentifierType &key)
Return an input.
Functor::MaskNegatedInput< typename TInputImage::PixelType, typename TMaskImage::PixelType, typename TOutputImage::PixelType > FunctorType
Control indentation during Print() invocation.
virtual void SetNthInput(DataObjectPointerArraySizeType num, DataObject *input)
MaskNegatedImageFilter()=default
#define itkConceptMacro(name, concept)
void SetMaskingValue(const typename TMaskImage::PixelType &maskingValue)