18 #ifndef __otbNoStretchRenderingFunction_h
19 #define __otbNoStretchRenderingFunction_h
48 template <
class TPixel,
class TRGBPixel,
49 class TPixelRepresentationFunction = ChannelSelectorFunctor<TPixel>,
50 class TTransferFunction = Identity<
51 typename itk::NumericTraits<typename itk::NumericTraits<TPixel>::ValueType>::RealType,
52 typename itk::NumericTraits<typename itk::NumericTraits<TPixel>::ValueType>::RealType
75 typedef typename itk::NumericTraits<PixelType>::ValueType
ScalarType;
87 typedef typename PixelRepresentationFunctionType::ChannelListType
ChannelListType;
102 if ((spixel.
Size() != 1) && (spixel.
Size() != 3) && (spixel.
Size() != 4))
104 itkExceptionMacro( <<
"the PixelRepresentation function should give an output of "
105 <<
"size 1, 3 or 4 otherwise I don't know how to make an RGB of it !" );
110 if (spixel.
Size() == 1)
124 if ((spixel.
Size() == 4) && (output.Size() == 4))
177 otbMsgDevMacro(<<
"NoStretchRenderingFunction::SetParameters: no parameters needed");
187 param.SetSize(2 * nbBands);
189 for (
unsigned int i = 0; i < nbBands; ++i)