18 #ifndef itkUnaryMinusFunctor_h
19 #define itkUnaryMinusFunctor_h
30 template<
class TInput1,
class TOutput = TInput1 >
43 return !( *
this != other );
46 inline TOutput
operator()(
const TInput1 & A )
const
47 {
return (TOutput)( -A ); }
52 #endif // itkUnaryMinusFunctor_h
Image UnaryMinus(const Image &image1)
Computes the negative of each pixel.
TOutput operator()(const TInput1 &A) const
bool operator==(const UnaryMinus &other) const
bool operator!=(const UnaryMinus &) const