OTB  9.0.0
Orfeo Toolbox
List of all members
otb::LeeImageFilter< TInputImage, TOutputImage > Class Template Reference

#include <otbLeeImageFilter.h>

+ Inheritance diagram for otb::LeeImageFilter< TInputImage, TOutputImage >:
+ Collaboration diagram for otb::LeeImageFilter< TInputImage, TOutputImage >:
typedef TInputImage InputImageType
 
typedef TOutputImage OutputImageType
 
typedef LeeImageFilter Self
 
typedef itk::ImageToImageFilter< InputImageType, OutputImageTypeSuperclass
 
typedef itk::SmartPointer< SelfPointer
 
typedef itk::SmartPointer< const SelfConstPointer
 
typedef InputImageType::PixelType InputPixelType
 
typedef OutputImageType::PixelType OutputPixelType
 
typedef itk::NumericTraits< InputPixelType >::RealType InputRealType
 
typedef InputImageType::RegionType InputImageRegionType
 
typedef OutputImageType::RegionType OutputImageRegionType
 
typedef InputImageType::SizeType SizeType
 
static const unsigned int InputImageDimension = TInputImage::ImageDimension
 
static const unsigned int OutputImageDimension = TOutputImage::ImageDimension
 
SizeType m_Radius
 
double m_NbLooks
 
static Pointer New ()
 
virtual ::itk::LightObject::Pointer CreateAnother (void) const
 
virtual const char * GetNameOfClass () const
 
virtual void SetRadius (SizeType _arg)
 
virtual const SizeTypeGetRadius () const
 
virtual void SetNbLooks (double _arg)
 
virtual const double & GetNbLooks () const
 
void GenerateInputRequestedRegion () override
 
 LeeImageFilter ()
 
 ~LeeImageFilter () override
 
void PrintSelf (std::ostream &os, itk::Indent indent) const override
 
void ThreadedGenerateData (const OutputImageRegionType &outputRegionForThread, itk::ThreadIdType threadId) override
 
 LeeImageFilter (const Self &)=delete
 
void operator= (const Self &)=delete
 

Detailed Description

template<class TInputImage, class TOutputImage>
class otb::LeeImageFilter< TInputImage, TOutputImage >

Anti-speckle image filter.

This class implements Lee's filter for despeckleing of SAR images. The estimated reflectivity R is computed as follows:

R=I*W+E[I]*(1-W), where W=1-Cu*Cu/(Ci*Ci) Cu = 1/sqrt(nb of look) Ci = sqrt(VAR[I])/E[I]

(http://www.isprs.org/proceedings/XXXV/congress/comm2/papers/110.pdf)

Definition at line 50 of file otbLeeImageFilter.h.

Member Typedef Documentation

◆ ConstPointer

template<class TInputImage , class TOutputImage >
typedef itk::SmartPointer<const Self> otb::LeeImageFilter< TInputImage, TOutputImage >::ConstPointer

standard class typedefs

Definition at line 65 of file otbLeeImageFilter.h.

◆ InputImageRegionType

template<class TInputImage , class TOutputImage >
typedef InputImageType::RegionType otb::LeeImageFilter< TInputImage, TOutputImage >::InputImageRegionType

standard class typedefs

Definition at line 76 of file otbLeeImageFilter.h.

◆ InputImageType

template<class TInputImage , class TOutputImage >
typedef TInputImage otb::LeeImageFilter< TInputImage, TOutputImage >::InputImageType

standard class typedefs

Definition at line 58 of file otbLeeImageFilter.h.

◆ InputPixelType

template<class TInputImage , class TOutputImage >
typedef InputImageType::PixelType otb::LeeImageFilter< TInputImage, TOutputImage >::InputPixelType

standard class typedefs

Definition at line 71 of file otbLeeImageFilter.h.

◆ InputRealType

template<class TInputImage , class TOutputImage >
typedef itk::NumericTraits<InputPixelType>::RealType otb::LeeImageFilter< TInputImage, TOutputImage >::InputRealType

standard class typedefs

Definition at line 75 of file otbLeeImageFilter.h.

◆ OutputImageRegionType

template<class TInputImage , class TOutputImage >
typedef OutputImageType::RegionType otb::LeeImageFilter< TInputImage, TOutputImage >::OutputImageRegionType

standard class typedefs

Definition at line 77 of file otbLeeImageFilter.h.

◆ OutputImageType

template<class TInputImage , class TOutputImage >
typedef TOutputImage otb::LeeImageFilter< TInputImage, TOutputImage >::OutputImageType

standard class typedefs

Definition at line 59 of file otbLeeImageFilter.h.

◆ OutputPixelType

template<class TInputImage , class TOutputImage >
typedef OutputImageType::PixelType otb::LeeImageFilter< TInputImage, TOutputImage >::OutputPixelType

standard class typedefs

Definition at line 74 of file otbLeeImageFilter.h.

◆ Pointer

template<class TInputImage , class TOutputImage >
typedef itk::SmartPointer<Self> otb::LeeImageFilter< TInputImage, TOutputImage >::Pointer

standard class typedefs

Definition at line 64 of file otbLeeImageFilter.h.

◆ Self

template<class TInputImage , class TOutputImage >
typedef LeeImageFilter otb::LeeImageFilter< TInputImage, TOutputImage >::Self

standard class typedefs

Definition at line 62 of file otbLeeImageFilter.h.

◆ SizeType

template<class TInputImage , class TOutputImage >
typedef InputImageType::SizeType otb::LeeImageFilter< TInputImage, TOutputImage >::SizeType

standard class typedefs

Definition at line 78 of file otbLeeImageFilter.h.

◆ Superclass

template<class TInputImage , class TOutputImage >
typedef itk::ImageToImageFilter<InputImageType, OutputImageType> otb::LeeImageFilter< TInputImage, TOutputImage >::Superclass

standard class typedefs

Definition at line 63 of file otbLeeImageFilter.h.

Constructor & Destructor Documentation

◆ LeeImageFilter() [1/2]

template<class TInputImage , class TOutputImage >
otb::LeeImageFilter< TInputImage, TOutputImage >::LeeImageFilter
protected

standard class typedefs

Definition at line 41 of file otbLeeImageFilter.hxx.

◆ ~LeeImageFilter()

template<class TInputImage , class TOutputImage >
otb::LeeImageFilter< TInputImage, TOutputImage >::~LeeImageFilter ( )
inlineoverrideprotected

standard class typedefs

Definition at line 102 of file otbLeeImageFilter.h.

◆ LeeImageFilter() [2/2]

template<class TInputImage , class TOutputImage >
otb::LeeImageFilter< TInputImage, TOutputImage >::LeeImageFilter ( const Self )
privatedelete

standard class typedefs

Member Function Documentation

◆ CreateAnother()

template<class TInputImage , class TOutputImage >
virtual::itk::LightObject::Pointer otb::LeeImageFilter< TInputImage, TOutputImage >::CreateAnother ( void  ) const

standard class typedefs

◆ GenerateInputRequestedRegion()

template<class TInputImage , class TOutputImage >
void otb::LeeImageFilter< TInputImage, TOutputImage >::GenerateInputRequestedRegion
override

LeeImageFilter needs a larger input requested region than the output requested region. As such, LeeImageFilter needs to provide an implementation for GenerateInputRequestedRegion() in order to inform the pipeline execution model.

See also
ImageToImageFilter::GenerateInputRequestedRegion()

Definition at line 49 of file otbLeeImageFilter.hxx.

◆ GetNameOfClass()

template<class TInputImage , class TOutputImage >
virtual const char* otb::LeeImageFilter< TInputImage, TOutputImage >::GetNameOfClass ( ) const
virtual

typemacro

◆ GetNbLooks()

template<class TInputImage , class TOutputImage >
virtual const double& otb::LeeImageFilter< TInputImage, TOutputImage >::GetNbLooks ( ) const
virtual

Getthe number of look used for computation

◆ GetRadius()

template<class TInputImage , class TOutputImage >
virtual const SizeType& otb::LeeImageFilter< TInputImage, TOutputImage >::GetRadius ( ) const
virtual

Get the radius of the neighborhood used in this filter

◆ New()

template<class TInputImage , class TOutputImage >
static Pointer otb::LeeImageFilter< TInputImage, TOutputImage >::New ( )
static

Object factory management

◆ operator=()

template<class TInputImage , class TOutputImage >
void otb::LeeImageFilter< TInputImage, TOutputImage >::operator= ( const Self )
privatedelete

standard class typedefs

◆ PrintSelf()

template<class TInputImage , class TOutput >
void otb::LeeImageFilter< TInputImage, TOutput >::PrintSelf ( std::ostream &  os,
itk::Indent  indent 
) const
overrideprotected

Standard "PrintSelf" method

Definition at line 198 of file otbLeeImageFilter.hxx.

◆ SetNbLooks()

template<class TInputImage , class TOutputImage >
virtual void otb::LeeImageFilter< TInputImage, TOutputImage >::SetNbLooks ( double  _arg)
virtual

Set the number of look used for computation

◆ SetRadius()

template<class TInputImage , class TOutputImage >
virtual void otb::LeeImageFilter< TInputImage, TOutputImage >::SetRadius ( SizeType  _arg)
virtual

Set the radius of the neighborhood used in this filter

◆ ThreadedGenerateData()

template<class TInputImage , class TOutputImage >
void otb::LeeImageFilter< TInputImage, TOutputImage >::ThreadedGenerateData ( const OutputImageRegionType outputRegionForThread,
itk::ThreadIdType  threadId 
)
overrideprotected

LeeImageFilter can be multithreaded. As such, it provides a definition of ThreadedGenerateData()

LEE filter: $ R = E[I] + b(I-E[I])$ with $ b = C^2r / ( C^2r + C^2v )$ $ Cv = 1 / \sqrt(L) $ with L the number of look. $ Cr = \sqrt(Var(I)) / E[I] where Var(I) = E[I^2] - E[I]^2 $

See also
ImageToImageFilter::ThreadedGenerateData(), ImageToImageFilter::GenerateData()

Definition at line 97 of file otbLeeImageFilter.hxx.

Member Data Documentation

◆ InputImageDimension

template<class TInputImage , class TOutputImage >
const unsigned int otb::LeeImageFilter< TInputImage, TOutputImage >::InputImageDimension = TInputImage::ImageDimension
static

Extract input and output image dimension

Definition at line 54 of file otbLeeImageFilter.h.

◆ m_NbLooks

template<class TInputImage , class TOutputImage >
double otb::LeeImageFilter< TInputImage, TOutputImage >::m_NbLooks
private

Number of look of the filter

Definition at line 127 of file otbLeeImageFilter.h.

◆ m_Radius

template<class TInputImage , class TOutputImage >
SizeType otb::LeeImageFilter< TInputImage, TOutputImage >::m_Radius
private

Radius of the filter

Definition at line 124 of file otbLeeImageFilter.h.

◆ OutputImageDimension

template<class TInputImage , class TOutputImage >
const unsigned int otb::LeeImageFilter< TInputImage, TOutputImage >::OutputImageDimension = TOutputImage::ImageDimension
static

standard class typedefs

Definition at line 55 of file otbLeeImageFilter.h.


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