18 #ifndef itkVectorCastImageFilter_h
19 #define itkVectorCastImageFilter_h
44 template<
typename TInput,
typename TOutput >
57 return !( *
this != other );
62 typedef typename TOutput::ValueType OutputValueType;
65 for (
unsigned int k = 0; k < TOutput::Dimension; k++ )
67 value[k] =
static_cast< OutputValueType
>( A[k] );
74 template<
typename TInputImage,
typename TOutputImage >
78 Functor::VectorCast< typename TInputImage::PixelType,
79 typename TOutputImage::PixelType > >
85 TInputImage, TOutputImage,
99 #ifdef ITK_USE_CONCEPT_CHECKING
107 typename TOutputImage::PixelType::ValueType > ) );
virtual ~VectorCastImageFilter()
VectorCastImageFilter Self
Casts input vector pixels to output vector pixel type.
void operator=(const Self &)
UnaryFunctorImageFilter< TInputImage, TOutputImage, Functor::VectorCast< typename TInputImage::PixelType, typename TOutputImage::PixelType > > Superclass
bool operator==(const VectorCast &other) const
Base class for all process objects that output image data.
bool operator!=(const VectorCast &) const
SmartPointer< const Self > ConstPointer
Implements pixel-wise generic operation on one image.
#define itkConceptMacro(name, concept)
TOutput operator()(const TInput &A) const
SmartPointer< Self > Pointer