OTB  9.0.0
Orfeo Toolbox
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes | List of all members
otb::Functor::ScalarToRainbowRGBPixelFunctor< TScalar, TRGBPixel > Class Template Reference

#include <otbScalarToRainbowRGBPixelFunctor.h>

+ Inheritance diagram for otb::Functor::ScalarToRainbowRGBPixelFunctor< TScalar, TRGBPixel >:
+ Collaboration diagram for otb::Functor::ScalarToRainbowRGBPixelFunctor< TScalar, TRGBPixel >:

Public Types

using ConstPointer = itk::SmartPointer< const Self >
 
using HSVToRGBFunctorType = HSVToRGBFunctor< RGBPixelType >
 
using Pointer = itk::SmartPointer< Self >
 
using RGBComponentType = typename RGBPixelType::ComponentType
 
using RGBPixelType = TRGBPixel
 
using ScalarType = TScalar
 
using Self = ScalarToRainbowRGBPixelFunctor
 
using Superclass = itk::Function::ColormapFunction< TScalar, TRGBPixel >
 

Public Member Functions

virtual ::itk::LightObject::Pointer CreateAnother (void) const
 
RGBPixelType operator() (const TScalar &) const override
 
 ScalarToRainbowRGBPixelFunctor ()
 
 ~ScalarToRainbowRGBPixelFunctor ()=default
 

Static Public Member Functions

static Pointer New ()
 

Protected Member Functions

RGBPixelType HSVToRGB (double h, double s, double v) const
 

Private Member Functions

void operator= (const Self &)=delete
 
 ScalarToRainbowRGBPixelFunctor (const Self &)=delete
 

Private Attributes

HSVToRGBFunctorType m_HSVToRGBFunctor
 

Detailed Description

template<class TScalar, class TRGBPixel = itk::RGBPixel<unsigned char>>
class otb::Functor::ScalarToRainbowRGBPixelFunctor< TScalar, TRGBPixel >

Function object which maps a scalar value into a rainbow RGB pixel value.

Grayscale image is mapped to a color image where blue represents small values and red represents big values.

This function is compatible with the colormap hierarchy presented in http://hdl.handle.net/1926/1452

Examples
BasicFilters/DEMToRainbowExample.cxx.

Definition at line 134 of file otbScalarToRainbowRGBPixelFunctor.h.

Member Typedef Documentation

◆ ConstPointer

template<class TScalar , class TRGBPixel = itk::RGBPixel<unsigned char>>
using otb::Functor::ScalarToRainbowRGBPixelFunctor< TScalar, TRGBPixel >::ConstPointer = itk::SmartPointer<const Self>

Definition at line 145 of file otbScalarToRainbowRGBPixelFunctor.h.

◆ HSVToRGBFunctorType

template<class TScalar , class TRGBPixel = itk::RGBPixel<unsigned char>>
using otb::Functor::ScalarToRainbowRGBPixelFunctor< TScalar, TRGBPixel >::HSVToRGBFunctorType = HSVToRGBFunctor<RGBPixelType>

Definition at line 153 of file otbScalarToRainbowRGBPixelFunctor.h.

◆ Pointer

template<class TScalar , class TRGBPixel = itk::RGBPixel<unsigned char>>
using otb::Functor::ScalarToRainbowRGBPixelFunctor< TScalar, TRGBPixel >::Pointer = itk::SmartPointer<Self>

Definition at line 144 of file otbScalarToRainbowRGBPixelFunctor.h.

◆ RGBComponentType

template<class TScalar , class TRGBPixel = itk::RGBPixel<unsigned char>>
using otb::Functor::ScalarToRainbowRGBPixelFunctor< TScalar, TRGBPixel >::RGBComponentType = typename RGBPixelType::ComponentType

Definition at line 151 of file otbScalarToRainbowRGBPixelFunctor.h.

◆ RGBPixelType

template<class TScalar , class TRGBPixel = itk::RGBPixel<unsigned char>>
using otb::Functor::ScalarToRainbowRGBPixelFunctor< TScalar, TRGBPixel >::RGBPixelType = TRGBPixel

Definition at line 150 of file otbScalarToRainbowRGBPixelFunctor.h.

◆ ScalarType

template<class TScalar , class TRGBPixel = itk::RGBPixel<unsigned char>>
using otb::Functor::ScalarToRainbowRGBPixelFunctor< TScalar, TRGBPixel >::ScalarType = TScalar

Definition at line 152 of file otbScalarToRainbowRGBPixelFunctor.h.

◆ Self

template<class TScalar , class TRGBPixel = itk::RGBPixel<unsigned char>>
using otb::Functor::ScalarToRainbowRGBPixelFunctor< TScalar, TRGBPixel >::Self = ScalarToRainbowRGBPixelFunctor

Definition at line 142 of file otbScalarToRainbowRGBPixelFunctor.h.

◆ Superclass

template<class TScalar , class TRGBPixel = itk::RGBPixel<unsigned char>>
using otb::Functor::ScalarToRainbowRGBPixelFunctor< TScalar, TRGBPixel >::Superclass = itk::Function::ColormapFunction<TScalar, TRGBPixel>

Definition at line 143 of file otbScalarToRainbowRGBPixelFunctor.h.

Constructor & Destructor Documentation

◆ ScalarToRainbowRGBPixelFunctor() [1/2]

template<class TScalar , class TRGBPixel >
otb::Functor::ScalarToRainbowRGBPixelFunctor< TScalar, TRGBPixel >::ScalarToRainbowRGBPixelFunctor

Definition at line 34 of file otbScalarToRainbowRGBPixelFunctor.hxx.

◆ ~ScalarToRainbowRGBPixelFunctor()

template<class TScalar , class TRGBPixel = itk::RGBPixel<unsigned char>>
otb::Functor::ScalarToRainbowRGBPixelFunctor< TScalar, TRGBPixel >::~ScalarToRainbowRGBPixelFunctor ( )
default

◆ ScalarToRainbowRGBPixelFunctor() [2/2]

template<class TScalar , class TRGBPixel = itk::RGBPixel<unsigned char>>
otb::Functor::ScalarToRainbowRGBPixelFunctor< TScalar, TRGBPixel >::ScalarToRainbowRGBPixelFunctor ( const Self )
privatedelete

Member Function Documentation

◆ CreateAnother()

template<class TScalar , class TRGBPixel = itk::RGBPixel<unsigned char>>
virtual::itk::LightObject::Pointer otb::Functor::ScalarToRainbowRGBPixelFunctor< TScalar, TRGBPixel >::CreateAnother ( void  ) const

◆ HSVToRGB()

template<class TScalar , class TRGBPixel = itk::RGBPixel<unsigned char>>
RGBPixelType otb::Functor::ScalarToRainbowRGBPixelFunctor< TScalar, TRGBPixel >::HSVToRGB ( double  h,
double  s,
double  v 
) const
protected

◆ New()

template<class TScalar , class TRGBPixel = itk::RGBPixel<unsigned char>>
static Pointer otb::Functor::ScalarToRainbowRGBPixelFunctor< TScalar, TRGBPixel >::New ( )
static

Method for creation through the object factory.

◆ operator()()

template<class TScalar , class TRGBPixel >
ScalarToRainbowRGBPixelFunctor< TScalar, TRGBPixel >::RGBPixelType otb::Functor::ScalarToRainbowRGBPixelFunctor< TScalar, TRGBPixel >::operator() ( const TScalar &  v) const
override

Definition at line 41 of file otbScalarToRainbowRGBPixelFunctor.hxx.

◆ operator=()

template<class TScalar , class TRGBPixel = itk::RGBPixel<unsigned char>>
void otb::Functor::ScalarToRainbowRGBPixelFunctor< TScalar, TRGBPixel >::operator= ( const Self )
privatedelete

Member Data Documentation

◆ m_HSVToRGBFunctor

template<class TScalar , class TRGBPixel = itk::RGBPixel<unsigned char>>
HSVToRGBFunctorType otb::Functor::ScalarToRainbowRGBPixelFunctor< TScalar, TRGBPixel >::m_HSVToRGBFunctor
private

Definition at line 164 of file otbScalarToRainbowRGBPixelFunctor.h.


The documentation for this class was generated from the following files: