18 #ifndef itkConstrainedValueAdditionImageFilter_h
19 #define itkConstrainedValueAdditionImageFilter_h
33 template<
typename TInput1,
typename TInput2,
typename TOutput >
47 return !( *
this != other );
51 const TInput2 & B)
const
53 const auto dA =
static_cast< double >( A );
54 const auto dB =
static_cast< double >( B );
55 const double add = dA + dB;
56 const double cadd1 = ( add < NumericTraits< TOutput >::max() ) ?
61 return static_cast< TOutput
>( cadd2 );
96 template<
typename TInputImage1,
typename TInputImage2,
typename TOutputImage >
110 typename TInputImage2::PixelType,
111 typename TOutputImage::PixelType >;
120 #ifdef ITK_USE_CONCEPT_CHECKING
136 #if !defined( ITK_WRAPPING_PARSER )
bool operator==(const ConstrainedValueAddition &other) const
~ConstrainedValueAdditionImageFilter() override=default
Define numeric traits for std::vector.
The base class for all process objects (source, filters, mappers) in the Insight data processing pipe...
Base class for all process objects that output image data.
~ConstrainedValueAddition()=default
TOutput operator()(const TInput1 &A, const TInput2 &B) const
Implements pixel-wise generic operation of two images, or of an image and a constant.
Functor::ConstrainedValueAddition< typename TInputImage1::PixelType, typename TInputImage2::PixelType, typename TOutputImage::PixelType > FunctorType
void SetFunctor(const std::function< ConstRefFunctionType > &f)
ConstrainedValueAdditionImageFilter()
bool operator!=(const ConstrainedValueAddition &) const
Implements pixel-wise the computation of constrained value addition.
ConstrainedValueAddition()=default
#define itkConceptMacro(name, concept)