Skip to content
Snippets Groups Projects
Commit 4cb621f9 authored by Emmanuel Christophe's avatar Emmanuel Christophe
Browse files

DOC: add doxygen example

parent 72d20c01
No related branches found
No related tags found
No related merge requests found
......@@ -85,12 +85,12 @@ public:
typedef itk::VariableLengthVector<ScalarType> SampleType;
typedef itk::Statistics::ListSample<SampleType> ListSampleType;
typedef typename ListSampleType::Pointer ListSamplePointerType;
typedef typename ListSampleType::Pointer ListSamplePointerType;
typedef itk::Statistics::DenseFrequencyContainer DFContainerType;
typedef itk::Statistics::DenseFrequencyContainer DFContainerType;
typedef itk::Statistics::Histogram<
typename itk::NumericTraits<ScalarType>::RealType,1,
DFContainerType> HistogramType;
DFContainerType> HistogramType;
typedef typename HistogramType::Pointer HistogramPointerType;
typedef ObjectList<HistogramType> HistogramListType;
typedef typename HistogramListType::Pointer HistogramListPointerType;
......@@ -234,7 +234,7 @@ private:
/** List sample used to compute the histogram by the rendering function*/
ListSamplePointerType m_ListSample;
bool m_ListSampleProvided;//To remember if the list sample was provided manually by the user
bool m_ListSampleProvided;//To remember if the list sample was provided manually by the user
/** Rendering function */
RenderingFunctionPointerType m_RenderingFunction;
......@@ -249,7 +249,7 @@ private:
ExtractFilterPointerType m_ScaledExtractFilter;
/** Coordinate transform */
TransformType::Pointer m_Transform;
TransformType::Pointer m_Transform;
CoordinateToName::Pointer m_CoordinateToName;
/** General info about the image*/
......
......@@ -50,20 +50,15 @@ class RenderingFunctor
{
public:
/** Rendering function typedef */
typedef otb::Function::RenderingFunction<TPixel,TRGBPixel> RenderingFunctionType;
typedef otb::Function::RenderingFunction<TPixel,TRGBPixel> RenderingFunctionType;
/** Rendering function pointer typedef */
typedef typename RenderingFunctionType::Pointer RenderingFunctionPointerType;
typedef typename RenderingFunctionType::Pointer RenderingFunctionPointerType;
/** Default rendering function typedef */
// typedef otb::Function::StandardRenderingFunction<TPixel,TRGBPixel> DefaultRenderingFunctionType;
/** Scalar pixel typedef */
// // typedef TPixel ScalarPixelType;
/** Vector pixel typedef */
// // typedef itk::VariableLengthVector<TPixel> VectorPixelType;
typedef TPixel PixelType;
typedef typename itk::NumericTraits<PixelType>::ValueType ScalarPixelType;
typedef itk::VariableLengthVector<ScalarPixelType> VectorPixelType;
typedef itk::RGBPixel<ScalarPixelType> RGBPixelType;
typedef itk::RGBAPixel<ScalarPixelType> RGBAPixelType;
typedef TPixel PixelType;
typedef typename itk::NumericTraits<PixelType>::ValueType ScalarPixelType;
typedef itk::VariableLengthVector<ScalarPixelType> VectorPixelType;
typedef itk::RGBPixel<ScalarPixelType> RGBPixelType;
typedef itk::RGBAPixel<ScalarPixelType> RGBAPixelType;
/** Pixel operator */
inline TRGBPixel operator()(const PixelType & pixel) const
......@@ -120,7 +115,7 @@ private:
* \sa RenderingFunction
*
*/
template <class TInputImage,class TOutputImage = Image<itk::RGBAPixel<unsigned char>, 2 > >
template <class TInputImage, class TOutputImage = Image<itk::RGBAPixel<unsigned char>, 2 > >
class RenderingImageFilter
: public itk::UnaryFunctorImageFilter<TInputImage,TOutputImage,
Functor::RenderingFunctor
......@@ -235,5 +230,3 @@ private:
} // end namespace otb
#endif
......@@ -49,10 +49,12 @@
namespace otb
{
/** \class StandardImageViewer
* \brief This class implements a standard visualization tool to be
* plugged at the end of a pipeline.
*
* \ingroup Visualization
* \brief This class implements a standard visualization tool to be
* plugged at the end of a pipeline.
*
* \ingroup Visualization
*
* \example Tutorials/SimpleViewer.cxx
*/
template <class TImage, class TVectorData = VectorData<double> , class TWidgetManager = otb::PackedWidgetManager>
......@@ -77,7 +79,8 @@ public:
typedef typename ImageType::Pointer ImagePointerType;
typedef typename ImageType::PixelType PixelType;
typedef typename ImageType::InternalPixelType InternalPixelType;
typedef typename itk::NumericTraits<PixelType>::ValueType ScalarType;
typedef typename itk::NumericTraits<PixelType>
::ValueType ScalarType;
/** VectorData typedef */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment