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

This filter compute the closed edge path of a labelled object in an image (for example coming from a segmentation filter). Its output is a Path. More...

#include <otbImageToEdgePathFilter.h>

+ Inheritance diagram for otb::ImageToEdgePathFilter< TInputImage, TOutputPath >:
+ Collaboration diagram for otb::ImageToEdgePathFilter< TInputImage, TOutputPath >:

Public Types

typedef itk::SmartPointer
< const Self
ConstPointer
 
typedef
OutputPathType::ContinuousIndexType 
ContinuousIndexType
 
typedef
Superclass::InputImagePointerType 
InputImagePointerType
 
typedef Superclass::InputImageType InputImageType
 Template parameters typedef. More...
 
typedef
Superclass::OutputPathPointerType 
OutputPathPointerType
 
typedef Superclass::OutputPathType OutputPathType
 
typedef InputImageType::PixelType PixelType
 
typedef itk::SmartPointer< SelfPointer
 
typedef ImageToEdgePathFilter Self
 
typedef ImageToPathFilter
< TInputImage, TOutputPath > 
Superclass
 
- Public Types inherited from otb::ImageToPathFilter< TInputImage, TOutputPath >
typedef itk::SmartPointer
< const Self
ConstPointer
 
typedef InputImageType::Pointer InputImagePointerType
 
typedef TInputImage InputImageType
 template parameters typedefs More...
 
typedef OutputPathType::Pointer OutputPathPointerType
 
typedef TOutputPath OutputPathType
 
typedef itk::SmartPointer< SelfPointer
 
typedef itk::ProcessObject ProcessObjectType
 
typedef ImageToPathFilter Self
 Standard class typedefs. More...
 
typedef itk::PathSource
< TOutputPath > 
Superclass
 

Public Member Functions

virtual ::itk::LightObject::Pointer CreateAnother (void) const
 
virtual PixelType GetForegroundValue () const
 
virtual const char * GetNameOfClass () const
 Runtime information. More...
 
virtual void SetForegroundValue (PixelType _arg)
 
- Public Member Functions inherited from otb::ImageToPathFilter< TInputImage, TOutputPath >
virtual ::itk::LightObject::Pointer CreateAnother (void) const
 
const InputImageTypeGetInput (void)
 
virtual void SetInput (const InputImageType *Image)
 Input image Setters and getters. More...
 

Static Public Member Functions

static Pointer New ()
 Creation through the object factory. More...
 
- Static Public Member Functions inherited from otb::ImageToPathFilter< TInputImage, TOutputPath >
static Pointer New ()
 Method for creation through the object factory. More...
 

Protected Member Functions

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

Private Member Functions

 ImageToEdgePathFilter (const Self &)
 
void operator= (const Self &)
 

Private Attributes

PixelType m_ForegroundValue
 

Additional Inherited Members

- Static Public Attributes inherited from otb::ImageToPathFilter< TInputImage, TOutputPath >
static const unsigned int InputImageDimension = TInputImage::ImageDimension
 Input image dimension. More...
 

Detailed Description

template<class TInputImage, class TOutputPath>
class otb::ImageToEdgePathFilter< TInputImage, TOutputPath >

This filter compute the closed edge path of a labelled object in an image (for example coming from a segmentation filter). Its output is a Path.

The input image is first surrounded by a 1 pixel wide border-line using the ConstantPadImageFilter in order to deal with stuck-to-the-border objects. The padding constant is chosen as regard to the ForegroundValue (label of the object) to avoid confusion on foreground and background values.

The edge computation is divided into two steps.

First, a linear search is perfomed to detect a first pixel belonging to the edge of the object.

From that pixel and until the algorithm comes back to this position, the neighborhood is iteratively and clock-wise searched to detect the next pixel in the edge.

In case of linear object (in fact open edge), the algorithm will walk the object twice in opposite directions, thus producing an edge with a null surface and twice the length of the object as perimeter.

This leads to consistant result for geometric descriptors (for instance compacity).

See Also
ImageToPathFilter

Definition at line 53 of file otbImageToEdgePathFilter.h.

Member Typedef Documentation

template<class TInputImage , class TOutputPath >
typedef itk::SmartPointer<const Self> otb::ImageToEdgePathFilter< TInputImage, TOutputPath >::ConstPointer

Definition at line 61 of file otbImageToEdgePathFilter.h.

template<class TInputImage , class TOutputPath >
typedef OutputPathType::ContinuousIndexType otb::ImageToEdgePathFilter< TInputImage, TOutputPath >::ContinuousIndexType

Definition at line 73 of file otbImageToEdgePathFilter.h.

template<class TInputImage , class TOutputPath >
typedef Superclass::InputImagePointerType otb::ImageToEdgePathFilter< TInputImage, TOutputPath >::InputImagePointerType

Definition at line 70 of file otbImageToEdgePathFilter.h.

template<class TInputImage , class TOutputPath >
typedef Superclass::InputImageType otb::ImageToEdgePathFilter< TInputImage, TOutputPath >::InputImageType

Template parameters typedef.

Definition at line 66 of file otbImageToEdgePathFilter.h.

template<class TInputImage , class TOutputPath >
typedef Superclass::OutputPathPointerType otb::ImageToEdgePathFilter< TInputImage, TOutputPath >::OutputPathPointerType

Definition at line 72 of file otbImageToEdgePathFilter.h.

template<class TInputImage , class TOutputPath >
typedef Superclass::OutputPathType otb::ImageToEdgePathFilter< TInputImage, TOutputPath >::OutputPathType

Definition at line 71 of file otbImageToEdgePathFilter.h.

template<class TInputImage , class TOutputPath >
typedef InputImageType::PixelType otb::ImageToEdgePathFilter< TInputImage, TOutputPath >::PixelType

Definition at line 75 of file otbImageToEdgePathFilter.h.

template<class TInputImage , class TOutputPath >
typedef itk::SmartPointer<Self> otb::ImageToEdgePathFilter< TInputImage, TOutputPath >::Pointer

Definition at line 60 of file otbImageToEdgePathFilter.h.

template<class TInputImage , class TOutputPath >
typedef ImageToEdgePathFilter otb::ImageToEdgePathFilter< TInputImage, TOutputPath >::Self

standards typedefs

Definition at line 58 of file otbImageToEdgePathFilter.h.

template<class TInputImage , class TOutputPath >
typedef ImageToPathFilter<TInputImage, TOutputPath> otb::ImageToEdgePathFilter< TInputImage, TOutputPath >::Superclass

Definition at line 59 of file otbImageToEdgePathFilter.h.

Constructor & Destructor Documentation

template<class TInputImage , class TOutputPath >
otb::ImageToEdgePathFilter< TInputImage, TOutputPath >::ImageToEdgePathFilter ( )
protected

Definition at line 34 of file otbImageToEdgePathFilter.txx.

template<class TInputImage , class TOutputPath >
virtual otb::ImageToEdgePathFilter< TInputImage, TOutputPath >::~ImageToEdgePathFilter ( )
inlineprotectedvirtual

Definition at line 83 of file otbImageToEdgePathFilter.h.

template<class TInputImage , class TOutputPath >
otb::ImageToEdgePathFilter< TInputImage, TOutputPath >::ImageToEdgePathFilter ( const Self )
private

Member Function Documentation

template<class TInputImage , class TOutputPath >
virtual::itk::LightObject::Pointer otb::ImageToEdgePathFilter< TInputImage, TOutputPath >::CreateAnother ( void  ) const
template<class TInputImage , class TOutputPath >
void otb::ImageToEdgePathFilter< TInputImage, TOutputPath >::GenerateData ( void  )
protectedvirtual

Main computation method.

Definition at line 44 of file otbImageToEdgePathFilter.txx.

References otbMsgDebugMacro.

template<class TInputImage , class TOutputPath >
virtual void otb::ImageToEdgePathFilter< TInputImage, TOutputPath >::GenerateOutputInformation ( void  )
inlineprotectedvirtual

Definition at line 85 of file otbImageToEdgePathFilter.h.

template<class TInputImage , class TOutputPath >
virtual PixelType otb::ImageToEdgePathFilter< TInputImage, TOutputPath >::GetForegroundValue ( ) const
virtual
template<class TInputImage , class TOutputPath >
virtual const char* otb::ImageToEdgePathFilter< TInputImage, TOutputPath >::GetNameOfClass ( ) const
virtual

Runtime information.

Reimplemented from otb::ImageToPathFilter< TInputImage, TOutputPath >.

template<class TInputImage , class TOutputPath >
static Pointer otb::ImageToEdgePathFilter< TInputImage, TOutputPath >::New ( )
static

Creation through the object factory.

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

PrintSelf Method.

Reimplemented from otb::ImageToPathFilter< TInputImage, TOutputPath >.

Definition at line 207 of file otbImageToEdgePathFilter.txx.

template<class TInputImage , class TOutputPath >
virtual void otb::ImageToEdgePathFilter< TInputImage, TOutputPath >::SetForegroundValue ( PixelType  _arg)
virtual

Set and Get foreground value

Member Data Documentation

template<class TInputImage , class TOutputPath >
PixelType otb::ImageToEdgePathFilter< TInputImage, TOutputPath >::m_ForegroundValue
private

Definition at line 92 of file otbImageToEdgePathFilter.h.


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