OTB  6.7.0
Orfeo Toolbox
Public Types | Public Member Functions | Protected Attributes | List of all members
otb::Functor::AlphaBlendingFunctor< TInputPixel1, TInputPixel2, TOutputPixel > Class Template Reference

#include <otbAlphaBlendingFunctor.h>

+ Inheritance diagram for otb::Functor::AlphaBlendingFunctor< TInputPixel1, TInputPixel2, TOutputPixel >:
+ Collaboration diagram for otb::Functor::AlphaBlendingFunctor< TInputPixel1, TInputPixel2, TOutputPixel >:

Public Types

typedef TInputPixel1 InputPixel1Type
 
typedef TInputPixel2 InputPixel2Type
 
typedef TOutputPixel OutputPixelType
 
- Public Types inherited from otb::Functor::AlphaBlendingFunctorBase< TInputPixel1, TInputPixel2, TOutputPixel >
typedef TInputPixel1 InputPixel1Type
 
typedef TInputPixel2 InputPixel2Type
 
typedef TOutputPixel OutputPixelType
 

Public Member Functions

 AlphaBlendingFunctor ()
 
OutputPixelType operator() (InputPixel1Type input1, InputPixel2Type input2) const
 
 ~AlphaBlendingFunctor ()
 
- Public Member Functions inherited from otb::Functor::AlphaBlendingFunctorBase< TInputPixel1, TInputPixel2, TOutputPixel >
 AlphaBlendingFunctorBase ()
 
virtual double GetAlpha () const
 
virtual void SetAlpha (double a)
 
 ~AlphaBlendingFunctorBase ()
 

Protected Attributes

double m_Alpha
 
- Protected Attributes inherited from otb::Functor::AlphaBlendingFunctorBase< TInputPixel1, TInputPixel2, TOutputPixel >
double m_Alpha
 

Detailed Description

template<class TInputPixel1, class TInputPixel2, class TOutputPixel>
class otb::Functor::AlphaBlendingFunctor< TInputPixel1, TInputPixel2, TOutputPixel >

Implements simple blending.

For each channel the blending function is as follows:

\[ P_{o} = (1 - \alpha) P_{i1} + \alpha P_{i2} \]

with

\[ \alpha = \alpha_{pix} * \alpha_{glo} \]

$ \alpha_{pix} $ is retrieved from the second pixel RGBA $ \alpha_{glo} $ is provided by the SetAlpha() method (1.0 by default)

Definition at line 74 of file otbAlphaBlendingFunctor.h.

Member Typedef Documentation

template<class TInputPixel1 , class TInputPixel2 , class TOutputPixel >
typedef TInputPixel1 otb::Functor::AlphaBlendingFunctor< TInputPixel1, TInputPixel2, TOutputPixel >::InputPixel1Type

Definition at line 81 of file otbAlphaBlendingFunctor.h.

template<class TInputPixel1 , class TInputPixel2 , class TOutputPixel >
typedef TInputPixel2 otb::Functor::AlphaBlendingFunctor< TInputPixel1, TInputPixel2, TOutputPixel >::InputPixel2Type

Definition at line 82 of file otbAlphaBlendingFunctor.h.

template<class TInputPixel1 , class TInputPixel2 , class TOutputPixel >
typedef TOutputPixel otb::Functor::AlphaBlendingFunctor< TInputPixel1, TInputPixel2, TOutputPixel >::OutputPixelType

Definition at line 83 of file otbAlphaBlendingFunctor.h.

Constructor & Destructor Documentation

template<class TInputPixel1 , class TInputPixel2 , class TOutputPixel >
otb::Functor::AlphaBlendingFunctor< TInputPixel1, TInputPixel2, TOutputPixel >::AlphaBlendingFunctor ( )
inline

Definition at line 78 of file otbAlphaBlendingFunctor.h.

template<class TInputPixel1 , class TInputPixel2 , class TOutputPixel >
otb::Functor::AlphaBlendingFunctor< TInputPixel1, TInputPixel2, TOutputPixel >::~AlphaBlendingFunctor ( )
inline

Definition at line 79 of file otbAlphaBlendingFunctor.h.

Member Function Documentation

template<class TInputPixel1 , class TInputPixel2 , class TOutputPixel >
OutputPixelType otb::Functor::AlphaBlendingFunctor< TInputPixel1, TInputPixel2, TOutputPixel >::operator() ( InputPixel1Type  input1,
InputPixel2Type  input2 
) const
inlinevirtual

Member Data Documentation

template<class TInputPixel1 , class TInputPixel2 , class TOutputPixel >
double otb::Functor::AlphaBlendingFunctor< TInputPixel1, TInputPixel2, TOutputPixel >::m_Alpha
protected

Definition at line 96 of file otbAlphaBlendingFunctor.h.


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