18 #ifndef otbCastImageFilter_h
19 #define otbCastImageFilter_h
21 #include "itkUnaryFunctorImageFilter.h"
22 #include "itkProgressReporter.h"
24 #include <type_traits>
63 template<
typename TInputImage,
typename TOutputImage >
65 public itk::InPlaceImageFilter< TInputImage, TOutputImage >
72 using Superclass = itk::InPlaceImageFilter< TInputImage, TOutputImage >;
73 using Pointer = itk::SmartPointer< Self >;
90 void GenerateOutputInformation()
override;
92 void GenerateData()
override;
96 template<
typename TInputPixelType>
97 void DynamicThreadedGenerateDataDispatched(
const OutputImageRegionType & outputRegionForThread, std::true_type isConvertible);
99 template<
typename TInputPixelType>
100 void DynamicThreadedGenerateDataDispatched(
const OutputImageRegionType & outputRegionForThread, std::false_type isConvertible);
106 #ifndef OTB_MANUAL_INSTANTIATION
Casts input pixels to output pixel type.
itk::InPlaceImageFilter< TInputImage, TOutputImage > Superclass
ITK_DISALLOW_COPY_AND_ASSIGN(CastImageFilter)
virtual ~CastImageFilter()=default
itk::SmartPointer< const Self > ConstPointer
itk::SmartPointer< Self > Pointer
typename Superclass::OutputImageRegionType OutputImageRegionType
typename TInputImage::PixelType InputPixelType
typename TOutputImage::PixelType OutputPixelType
The "otb" namespace contains all Orfeo Toolbox (OTB) classes.