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 double dA =
static_cast< double >( A );
54 const double 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 );
95 template<
typename TInputImage1,
typename TInputImage2,
typename TOutputImage >
99 Functor::ConstrainedValueAddition<
100 typename TInputImage1::PixelType,
101 typename TInputImage2::PixelType,
102 typename TOutputImage::PixelType > >
109 typename TInputImage1::PixelType,
110 typename TInputImage2::PixelType,
111 typename TOutputImage::PixelType > >
123 #ifdef ITK_USE_CONCEPT_CHECKING
142 void operator=(const
Self &) ITK_DELETE_FUNCTION;
bool operator==(const ConstrainedValueAddition &other) const
ConstrainedValueAdditionImageFilter Self
ConstrainedValueAddition()
BinaryFunctorImageFilter< TInputImage1, TInputImage2, TOutputImage, Functor::ConstrainedValueAddition< typename TInputImage1::PixelType, typename TInputImage2::PixelType, typename TOutputImage::PixelType > > Superclass
SmartPointer< const Self > ConstPointer
Base class for all process objects that output image data.
TOutput operator()(const TInput1 &A, const TInput2 &B) const
ConstrainedValueAdditionImageFilter()
~ConstrainedValueAddition()
bool operator!=(const ConstrainedValueAddition &) const
SmartPointer< Self > Pointer
Implements pixel-wise the computation of constrained value addition.
static T NonpositiveMin()
Define additional traits for native types such as int or float.
#define itkConceptMacro(name, concept)
virtual ~ConstrainedValueAdditionImageFilter()
Implements pixel-wise generic operation of two images, or of an image and a constant.