18 #ifndef __itkMultiplyByConstantVectorImageFilter_h 19 #define __itkMultiplyByConstantVectorImageFilter_h 21 #include "itkUnaryFunctorImageFilter.h" 37 template <
class TInput,
class TConstantVector,
class TOutput=TInput>
51 return !( *
this == other );
64 unsigned int vectorSize = A.GetSize();
66 value.SetSize( vectorSize );
68 for(
unsigned int i = 0; i < vectorSize; i++ )
89 template <
class TInputImage,
class TConstantVector,
class TOutputImage=TInputImage>
92 UnaryFunctorImageFilter<TInputImage, TOutputImage,
93 Functor::MultiplyByConstantVector<
94 typename TInputImage::PixelType, TConstantVector,
95 typename TOutputImage::PixelType> >
100 typedef UnaryFunctorImageFilter<
101 TInputImage, TOutputImage,
103 typename TInputImage::PixelType, TConstantVector,
120 this->GetFunctor().SetConstantVector( ct );
127 return this->GetFunctor().GetConstantVector();
141 Superclass::PrintSelf( os, indent );
148 void operator=(
const Self &);
void SetConstantVector(const TConstantVector &ct)
TOutput operator()(const TInput &A) const
MultiplyByConstantVectorImageFilter Self
TConstantVector m_ConstantVector
void PrintSelf(std::ostream &os, Indent indent) const
MultiplyByConstantVectorImageFilter()
virtual ~MultiplyByConstantVectorImageFilter()
const TConstantVector & GetConstantVector() const
SmartPointer< const Self > ConstPointer
UnaryFunctorImageFilter< TInputImage, TOutputImage, Functor::MultiplyByConstantVector< typename TInputImage::PixelType, TConstantVector, typename TOutputImage::PixelType > > Superclass
Multiply input pixels by a constant.
void SetConstantVector(const TConstantVector &ct)
bool operator!=(const MultiplyByConstantVector &other) const
SmartPointer< Self > Pointer
~MultiplyByConstantVector()
MultiplyByConstantVector()
bool operator==(const MultiplyByConstantVector &other) const
const TConstantVector & GetConstantVector() const