Orfeo ToolBox  4.2
Orfeo ToolBox is not a black box
Public Types | Public Member Functions | Static Public Member Functions | Static Public Attributes | Protected Types | Protected Member Functions | Private Member Functions | Private Attributes | List of all members
otb::LocalHoughFilter< TInputImage > Class Template Reference

Application of Hough filter on a nxm pixel tiling of the image. More...

#include <otbLocalHoughFilter.h>

+ Inheritance diagram for otb::LocalHoughFilter< TInputImage >:
+ Collaboration diagram for otb::LocalHoughFilter< TInputImage >:

Public Types

typedef float AccumulatorPixelType
 
typedef itk::SmartPointer
< const Self
ConstPointer
 
typedef
InputImageType::RegionType::IndexType 
IndexType
 
typedef InputImageType::RegionType InputImageRegionType
 
typedef TInputImage InputImageType
 
typedef InputImageType::PixelType InputPixelType
 
typedef
LinesListType::const_iterator 
LineIterator
 
typedef LineType::Pointer LinePointer
 
typedef LineType::LinePointType LinePointType
 
typedef Superclass::LinesListType LinesListType
 
typedef LinesListType::LineType LineType
 
typedef otb::Image
< OutputPixelType, 2 > 
OutputImageType
 
typedef unsigned char OutputPixelType
 
typedef itk::SmartPointer< SelfPointer
 
typedef LineType::PointListType PointListType
 
typedef ExtractROI
< InputPixelType,
InputPixelType
ROIFilterType
 
typedef LocalHoughFilter Self
 
typedef InputImageType::SizeType SizeType
 
typedef
ImageToLineSpatialObjectListFilter
< TInputImage > 
Superclass
 
- Public Types inherited from otb::ImageToLineSpatialObjectListFilter< TInputImage >
typedef itk::SmartPointer
< const Self
ConstPointer
 
typedef TInputImage InputImageType
 
typedef InputImageType::PixelType InputPixelType
 
typedef LineSpatialObjectList LinesListType
 
typedef LinesListType::LineType LineType
 
typedef itk::SmartPointer< SelfPointer
 
typedef itk::ProcessObject ProcessObjectType
 
typedef
ImageToLineSpatialObjectListFilter 
Self
 
typedef InputImageType::SizeType SizeType
 
typedef itk::ProcessObject Superclass
 

Public Member Functions

virtual ::itk::LightObject::Pointer CreateAnother (void) const
 
virtual float GetDiscRadius ()
 
virtual const char * GetNameOfClass () const
 
virtual const unsigned int & GetNumberOfLines ()
 
virtual const SizeTypeGetOverlap ()
 
virtual const SizeTypeGetRadius ()
 
virtual float GetThreshold ()
 
virtual float GetVariance ()
 
virtual void SetDiscRadius (float _arg)
 
virtual void SetNumberOfLines (unsigned int _arg)
 
virtual void SetOverlap (SizeType _arg)
 
virtual void SetRadius (SizeType _arg)
 
virtual void SetThreshold (float _arg)
 
virtual void SetVariance (float _arg)
 
- Public Member Functions inherited from otb::ImageToLineSpatialObjectListFilter< TInputImage >
virtual ::itk::LightObject::Pointer CreateAnother (void) const
 
const InputImageTypeGetInput (void)
 
LinesListTypeGetOutput (void)
 
void SetInput (const InputImageType *image)
 
void SetOutput (const LinesListType *list)
 

Static Public Member Functions

static Pointer New ()
 
- Static Public Member Functions inherited from otb::ImageToLineSpatialObjectListFilter< TInputImage >
static Pointer New ()
 

Static Public Attributes

static const unsigned int InputImageDimension = TInputImage::ImageDimension
 
- Static Public Attributes inherited from otb::ImageToLineSpatialObjectListFilter< TInputImage >
static const unsigned int InputImageDimension = TInputImage::ImageDimension
 

Protected Types

typedef
itk::HoughTransform2DLinesImageFilter
< InputPixelType,
AccumulatorPixelType
HoughFilterType
 

Protected Member Functions

 LocalHoughFilter ()
 
virtual ~LocalHoughFilter ()
 
virtual void GenerateData ()
 
void PrintSelf (std::ostream &os, itk::Indent indent) const
 
- Protected Member Functions inherited from otb::ImageToLineSpatialObjectListFilter< TInputImage >
 ImageToLineSpatialObjectListFilter ()
 
virtual ~ImageToLineSpatialObjectListFilter ()
 
void PrintSelf (std::ostream &os, itk::Indent indent) const
 

Private Member Functions

 LocalHoughFilter (const Self &)
 
LinePointer LinePointResearch (LineIterator itLines, InputImageType *localImage, IndexType origin)
 
void operator= (const Self &)
 

Private Attributes

float m_DiscRadius
 
unsigned int m_NumberOfLines
 
SizeType m_Overlap
 
SizeType m_Radius
 
float m_Threshold
 
float m_Variance
 

Detailed Description

template<class TInputImage>
class otb::LocalHoughFilter< TInputImage >

Application of Hough filter on a nxm pixel tiling of the image.

This class implements a filter that applies the hough transform on nxm pixel tiling of the image. The Hough filter is used to find straight lines in a 2-dimensional image. It detects the best line in each tile and suppresses dubious line detection due to small local structures.

Input parameters are : the tile radius, the number of lines we are looking for, the variance of the accumulator blurring (default = 5) and the radius of the disc to remove from the accumulator (default = 10).

Definition at line 47 of file otbLocalHoughFilter.h.

Member Typedef Documentation

template<class TInputImage>
typedef float otb::LocalHoughFilter< TInputImage >::AccumulatorPixelType

Definition at line 87 of file otbLocalHoughFilter.h.

template<class TInputImage>
typedef itk::SmartPointer<const Self> otb::LocalHoughFilter< TInputImage >::ConstPointer

Definition at line 55 of file otbLocalHoughFilter.h.

Definition of the Hough Filter.

Definition at line 135 of file otbLocalHoughFilter.h.

template<class TInputImage>
typedef InputImageType::RegionType::IndexType otb::LocalHoughFilter< TInputImage >::IndexType

Definition at line 94 of file otbLocalHoughFilter.h.

template<class TInputImage>
typedef InputImageType::RegionType otb::LocalHoughFilter< TInputImage >::InputImageRegionType

Definition at line 89 of file otbLocalHoughFilter.h.

template<class TInputImage>
typedef TInputImage otb::LocalHoughFilter< TInputImage >::InputImageType

Definition at line 78 of file otbLocalHoughFilter.h.

template<class TInputImage>
typedef InputImageType::PixelType otb::LocalHoughFilter< TInputImage >::InputPixelType

Definition of the pixel type of the input and output images

Definition at line 86 of file otbLocalHoughFilter.h.

template<class TInputImage>
typedef LinesListType::const_iterator otb::LocalHoughFilter< TInputImage >::LineIterator

Definition at line 65 of file otbLocalHoughFilter.h.

template<class TInputImage>
typedef LineType::Pointer otb::LocalHoughFilter< TInputImage >::LinePointer

Definition at line 68 of file otbLocalHoughFilter.h.

template<class TInputImage>
typedef LineType::LinePointType otb::LocalHoughFilter< TInputImage >::LinePointType

Definition at line 71 of file otbLocalHoughFilter.h.

template<class TInputImage>
typedef Superclass::LinesListType otb::LocalHoughFilter< TInputImage >::LinesListType

Definition of the list of lines.

Definition at line 61 of file otbLocalHoughFilter.h.

template<class TInputImage>
typedef LinesListType::LineType otb::LocalHoughFilter< TInputImage >::LineType

Definition at line 67 of file otbLocalHoughFilter.h.

template<class TInputImage>
typedef otb::Image<OutputPixelType, 2> otb::LocalHoughFilter< TInputImage >::OutputImageType

Definition at line 82 of file otbLocalHoughFilter.h.

template<class TInputImage>
typedef unsigned char otb::LocalHoughFilter< TInputImage >::OutputPixelType

Definition at line 81 of file otbLocalHoughFilter.h.

template<class TInputImage>
typedef itk::SmartPointer<Self> otb::LocalHoughFilter< TInputImage >::Pointer

Definition at line 54 of file otbLocalHoughFilter.h.

template<class TInputImage>
typedef LineType::PointListType otb::LocalHoughFilter< TInputImage >::PointListType

Definition at line 70 of file otbLocalHoughFilter.h.

template<class TInputImage>
typedef ExtractROI<InputPixelType, InputPixelType> otb::LocalHoughFilter< TInputImage >::ROIFilterType

Typedefs to define the extract ROI filter.

Definition at line 97 of file otbLocalHoughFilter.h.

template<class TInputImage>
typedef LocalHoughFilter otb::LocalHoughFilter< TInputImage >::Self

Standard class typedefs.

Definition at line 52 of file otbLocalHoughFilter.h.

template<class TInputImage>
typedef InputImageType::SizeType otb::LocalHoughFilter< TInputImage >::SizeType

Definition of the size of the images.

Definition at line 92 of file otbLocalHoughFilter.h.

template<class TInputImage>
typedef ImageToLineSpatialObjectListFilter<TInputImage> otb::LocalHoughFilter< TInputImage >::Superclass

Definition at line 53 of file otbLocalHoughFilter.h.

Constructor & Destructor Documentation

template<class TInputImage >
otb::LocalHoughFilter< TInputImage >::LocalHoughFilter ( )
protected
template<class TInputImage>
virtual otb::LocalHoughFilter< TInputImage >::~LocalHoughFilter ( )
inlineprotectedvirtual

Definition at line 131 of file otbLocalHoughFilter.h.

template<class TInputImage>
otb::LocalHoughFilter< TInputImage >::LocalHoughFilter ( const Self )
private

Member Function Documentation

template<class TInputImage>
virtual::itk::LightObject::Pointer otb::LocalHoughFilter< TInputImage >::CreateAnother ( void  ) const
template<class TInputImage >
void otb::LocalHoughFilter< TInputImage >::GenerateData ( void  )
protectedvirtual
template<class TInputImage>
virtual float otb::LocalHoughFilter< TInputImage >::GetDiscRadius ( )
virtual
template<class TInputImage>
virtual const char* otb::LocalHoughFilter< TInputImage >::GetNameOfClass ( ) const
virtual

Return the name of the class.

Reimplemented from otb::ImageToLineSpatialObjectListFilter< TInputImage >.

template<class TInputImage>
virtual const unsigned int& otb::LocalHoughFilter< TInputImage >::GetNumberOfLines ( )
virtual

Get the number of lines we are looking for.

template<class TInputImage>
virtual const SizeType& otb::LocalHoughFilter< TInputImage >::GetOverlap ( )
virtual

Get the radius of the overlap.

template<class TInputImage>
virtual const SizeType& otb::LocalHoughFilter< TInputImage >::GetRadius ( )
virtual

Get the radius of the local region.

template<class TInputImage>
virtual float otb::LocalHoughFilter< TInputImage >::GetThreshold ( )
virtual
template<class TInputImage>
virtual float otb::LocalHoughFilter< TInputImage >::GetVariance ( )
virtual
template<class TInputImage >
LocalHoughFilter< TInputImage >::LinePointer otb::LocalHoughFilter< TInputImage >::LinePointResearch ( LineIterator  itLines,
InputImageType localImage,
IndexType  origin 
)
private

Definition at line 44 of file otbLocalHoughFilter.txx.

References itk::Size< VDimension >::GetSize().

template<class TInputImage>
static Pointer otb::LocalHoughFilter< TInputImage >::New ( )
static

Method for management of the "object factory".

template<class TInputImage>
void otb::LocalHoughFilter< TInputImage >::operator= ( const Self )
private
template<class TInputImage >
void otb::LocalHoughFilter< TInputImage >::PrintSelf ( std::ostream &  os,
itk::Indent  indent 
) const
protected

Definition at line 265 of file otbLocalHoughFilter.txx.

template<class TInputImage>
virtual void otb::LocalHoughFilter< TInputImage >::SetDiscRadius ( float  _arg)
virtual

Set/Get the radius of the disc to remove from the accumulator for each line found

template<class TInputImage>
virtual void otb::LocalHoughFilter< TInputImage >::SetNumberOfLines ( unsigned int  _arg)
virtual

Set the number of lines we are looking for.

template<class TInputImage>
virtual void otb::LocalHoughFilter< TInputImage >::SetOverlap ( SizeType  _arg)
virtual

Set the radius of the overlap of the local region where to apply the Hough filter.

template<class TInputImage>
virtual void otb::LocalHoughFilter< TInputImage >::SetRadius ( SizeType  _arg)
virtual

Set the radius of the local region where to apply the Hough filter.

template<class TInputImage>
virtual void otb::LocalHoughFilter< TInputImage >::SetThreshold ( float  _arg)
virtual
template<class TInputImage>
virtual void otb::LocalHoughFilter< TInputImage >::SetVariance ( float  _arg)
virtual

Set/Get the variance of the gaussian bluring for the accumulator

Member Data Documentation

template<class TInputImage>
const unsigned int otb::LocalHoughFilter< TInputImage >::InputImageDimension = TInputImage::ImageDimension
static

Extract dimensions as well of the images of entry of exit.

Definition at line 76 of file otbLocalHoughFilter.h.

template<class TInputImage>
float otb::LocalHoughFilter< TInputImage >::m_DiscRadius
private

Radius of the disc to remove from the accumulator (default = 10).

Definition at line 156 of file otbLocalHoughFilter.h.

template<class TInputImage>
unsigned int otb::LocalHoughFilter< TInputImage >::m_NumberOfLines
private

Parameter of the Hough filter : number of lines we are looking for.

Definition at line 150 of file otbLocalHoughFilter.h.

template<class TInputImage>
SizeType otb::LocalHoughFilter< TInputImage >::m_Overlap
private

Radius used to define the overlap of local regions.

Definition at line 147 of file otbLocalHoughFilter.h.

Referenced by otb::LocalHoughFilter< TInputImage >::LocalHoughFilter().

template<class TInputImage>
SizeType otb::LocalHoughFilter< TInputImage >::m_Radius
private

Radius used to define the local region.

Definition at line 144 of file otbLocalHoughFilter.h.

Referenced by otb::LocalHoughFilter< TInputImage >::LocalHoughFilter().

template<class TInputImage>
float otb::LocalHoughFilter< TInputImage >::m_Threshold
private

Threshold abouve which a pixel is consedered as valid

Definition at line 159 of file otbLocalHoughFilter.h.

template<class TInputImage>
float otb::LocalHoughFilter< TInputImage >::m_Variance
private

Variance of the accumulator blurring (default = 5).

Definition at line 153 of file otbLocalHoughFilter.h.


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