18 #ifndef itkCastImageFilter_h
19 #define itkCastImageFilter_h
35 template<
typename TInput,
typename TOutput >
36 class ITK_TEMPLATE_EXPORT
Cast
40 virtual ~
Cast() =
default;
48 return !( *
this != other );
53 return static_cast< TOutput
>( A );
96 template<
typename TInputImage,
typename TOutputImage >
120 #ifdef ITK_USE_CONCEPT_CHECKING
124 typename TOutputImage::PixelType > ) );
132 void GenerateOutputInformation()
override;
134 void GenerateData()
override;
144 #ifndef ITK_MANUAL_INSTANTIATION
145 #include "itkCastImageFilter.hxx"
Light weight base class for most itk classes.
typename OutputImageType::RegionType OutputImageRegionType
bool operator==(const Cast &other) const
TOutput operator()(const TInput &A) const
Base class for filters that take an image as input and overwrite that image as the output...
bool operator!=(const Cast &) const
#define itkConceptMacro(name, concept)
Casts input pixels to output pixel type.