18 #ifndef __otbRenderingFunction_h
19 #define __otbRenderingFunction_h
49 template <
class TPixel,
class TRGBPixel>
66 typedef typename itk::NumericTraits<PixelType>::ValueType
ScalarType;
115 itkExceptionMacro(<<
"Subclasses should override this method");
119 itkExceptionMacro(<<
"Subclasses should override this method");
124 itkExceptionMacro(<<
"Subclasses should override this method");
129 itkExceptionMacro(<<
"Subclasses should override this method");
134 itkExceptionMacro(<<
"Subclasses should override this method");
183 int m_NumberOfHistogramBins = 255;
186 itkExceptionMacro(<<
"No listSample provided to render histogram");
196 pixelRepresentationListSample->PushBack(sampleVector);
200 histogramFilter->SetListSample(pixelRepresentationListSample);
202 histogramFilter->SetNumberOfBins(m_NumberOfHistogramBins);
203 histogramFilter->NoDataFlagOn();
207 histogramFilter->Update();
208 otbMsgDevMacro(<<
"ImageRenderingFunction::RenderHistogram(): Histogram has been updated");