18#ifndef itkCastImageFilter_h
19#define itkCastImageFilter_h
29#if !defined(ITK_LEGACY_REMOVE)
38template <
typename TInput,
typename TOutput>
39class ITK_TEMPLATE_EXPORT Cast
43 virtual ~Cast() =
default;
50 ITK_UNEQUAL_OPERATOR_MEMBER_FUNCTION(Cast);
53 operator()(
const TInput & A)
const
55 return static_cast<TOutput
>(A);
99template <
typename TInputImage,
typename TOutputImage>
114 using typename Superclass::OutputImageRegionType;
138 template <
typename TInputPixelType,
139 typename TOutputPixelType,
140 std::enable_if_t<mpl::is_static_castable<TInputPixelType, TOutputPixelType>::value,
int> = 0>
144 template <
typename TInputPixelType,
145 typename TOutputPixelType,
146 std::enable_if_t<!mpl::is_static_castable<TInputPixelType, TOutputPixelType>::value,
int> = 0>
154#ifndef ITK_MANUAL_INSTANTIATION
155# include "itkCastImageFilter.hxx"
Casts input pixels to output pixel type.
void GenerateData() override
void GenerateOutputInformation() override
typename TOutputImage::PixelType OutputPixelType
~CastImageFilter() override=default
void DynamicThreadedGenerateData(const OutputImageRegionType &outputRegionForThread) override
void DynamicThreadedGenerateDataDispatched(const OutputImageRegionType &outputRegionForThread)
typename TInputImage::PixelType InputPixelType
Base class for all process objects that output image data.
typename OutputImageType::RegionType OutputImageRegionType
Base class for filters that take an image as input and overwrite that image as the output.
The base class for all process objects (source, filters, mappers) in the Insight data processing pipe...
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....
bool operator==(const Index< VDimension > &one, const Index< VDimension > &two)