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>
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"
void GenerateData() override
typename OutputImageType::RegionType OutputImageRegionType
void GenerateOutputInformation() override
typename TOutputImage::PixelType OutputPixelType
InPlaceImageFilter< TInputImage, TOutputImage > Superclass
~CastImageFilter() override=default
SmartPointer< const Self > ConstPointer
void DynamicThreadedGenerateData(const OutputImageRegionType &outputRegionForThread) override
void DynamicThreadedGenerateDataDispatched(const OutputImageRegionType &outputRegionForThread)
typename TInputImage::PixelType InputPixelType
SmartPointer< Self > Pointer
typename OutputImageType::RegionType OutputImageRegionType
InPlaceImageFilter()=default
Implements transparent reference counting.
bool ITKIOXML_EXPORT operator==(itk::FancyString &s, const std::string &)
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....