18 #ifndef __otbRenderingImageFilter_h
19 #define __otbRenderingImageFilter_h
51 template <
class TPixel,
class TRGBPixel>
123 template <
class TInputImage,
class TOutputImage = Image<itk::RGBAPixel<
unsigned char>, 2> >
126 Functor::RenderingFunctor
127 <typename TInputImage::PixelType,
128 typename TOutputImage::PixelType> >
135 <
typename TInputImage::PixelType,
148 <
typename TInputImage::PixelType,
192 otbMsgDevMacro(<<
"RenderingImageFilter::BeforeThreadedGenerateData():");
194 << (this->
GetFunctor().GetFunction())->GetPixelRepresentationSize());
202 std::vector<unsigned int> channels = (this->
GetFunctor().GetFunction())->GetChannelList();
203 for (
unsigned int i = 0; i < channels.size(); ++i)
205 if (channels[i] >= numberOfInputChannels)
207 itkExceptionMacro(<<
"Channels specified as input (" << channels[i] <<
") is not compatible "
208 <<
"with the size of the image: " << numberOfInputChannels);
221 typename TInputImage::PixelType,
226 otbMsgDevMacro(<<
"WARNING: using the default rendering function");