17 #ifndef itkInvertIntensityBetweenMaxAndMinImageFilter_h
18 #define itkInvertIntensityBetweenMaxAndMinImageFilter_h
20 #include "itkUnaryFunctorImageFilter.h"
27 template<
typename TInput,
typename TOutput>
31 typedef typename NumericTraits< TInput >::RealType
RealType;
33 m_Maximum = NumericTraits< TInput >::ZeroValue();
34 m_Minimum = NumericTraits< TInput >::ZeroValue();
43 if( ( m_Maximum != other.m_Maximum ) ||
44 ( m_Minimum != other.m_Minimum ) )
53 return !(*
this != other);
58 TOutput
result =
static_cast<TOutput
>( m_Maximum - x + m_Minimum );
86 template <
typename TInputImage,
typename TOutputImage=TInputImage>
89 UnaryFunctorImageFilter<TInputImage,TOutputImage,
90 Functor::InvertIntensityBetweenMaxAndMinTransform<
91 typename TInputImage::PixelType,
92 typename TOutputImage::PixelType> >
97 typedef UnaryFunctorImageFilter<TInputImage,TOutputImage,
106 typedef typename NumericTraits<InputPixelType>::RealType
RealType;
113 UnaryFunctorImageFilter);
115 itkGetConstReferenceMacro( Maximum, InputPixelType );
116 itkGetConstReferenceMacro( Minimum, InputPixelType );
119 void PrintSelf(std::ostream& os, Indent indent)
const;
122 void BeforeThreadedGenerateData(
void);
124 #ifdef ITK_USE_CONCEPT_CHECKING
126 itkConceptMacro(InputHasNumericTraitsCheck,
127 (Concept::HasNumericTraits<InputPixelType>));
137 void operator=(
const Self&);
139 InputPixelType m_Maximum;
140 InputPixelType m_Minimum;
147 #ifndef ITK_MANUAL_INSTANTIATION
148 #include "itkInvertIntensityBetweenMaxAndMinImageFilter.txx"
SmartPointer< Self > Pointer
Definition: itkInvertIntensityBetweenMaxAndMinImageFilter.h:101
Definition: niftkITKAffineResampleImage.cxx:74
GLuint64EXT * result
Definition: glew.h:12084
NumericTraits< InputPixelType >::RealType RealType
Definition: itkInvertIntensityBetweenMaxAndMinImageFilter.h:106
TOutputImage::PixelType OutputPixelType
Definition: itkInvertIntensityBetweenMaxAndMinImageFilter.h:104
Invert intensity of an image.
Definition: itkInvertIntensityBetweenMaxAndMinImageFilter.h:87
SmartPointer< const Self > ConstPointer
Definition: itkInvertIntensityBetweenMaxAndMinImageFilter.h:102
float PixelType
Definition: niftkBreastDCEandADC.cxx:88
TInputImage::PixelType InputPixelType
Definition: itkInvertIntensityBetweenMaxAndMinImageFilter.h:105
UnaryFunctorImageFilter< TInputImage, TOutputImage, Functor::InvertIntensityBetweenMaxAndMinTransform< typename TInputImage::PixelType, typename TOutputImage::PixelType > > Superclass
Definition: itkInvertIntensityBetweenMaxAndMinImageFilter.h:100
virtual ~InvertIntensityBetweenMaxAndMinImageFilter()
Definition: itkInvertIntensityBetweenMaxAndMinImageFilter.h:133
GLint GLint GLint GLint GLint x
Definition: glew.h:1236
InvertIntensityBetweenMaxAndMinImageFilter Self
Definition: itkInvertIntensityBetweenMaxAndMinImageFilter.h:96