18 #ifndef __itkConstrainedValueAdditionImageFilter_h
19 #define __itkConstrainedValueAdditionImageFilter_h
33 template<
class TInput1,
class TInput2,
class 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<
class TInputImage1,
class TInputImage2,
class 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
143 void operator=(
const Self &);