OTB  9.0.0
Orfeo Toolbox
Public Types | Public Member Functions | Static Public Member Functions | List of all members
otb::ImageToEdgePathFilter< TInputImage, TOutputPath > Class Template Reference

#include <otbImageToEdgePathFilter.h>

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

Public Types

typedef itk::SmartPointer< const SelfConstPointer
 
typedef OutputPathType::ContinuousIndexType ContinuousIndexType
 
typedef Superclass::InputImagePointerType InputImagePointerType
 
typedef Superclass::InputImageType InputImageType
 
typedef Superclass::OutputPathPointerType OutputPathPointerType
 
typedef Superclass::OutputPathType OutputPathType
 
typedef InputImageType::PixelType PixelType
 
typedef itk::SmartPointer< SelfPointer
 
typedef ImageToEdgePathFilter Self
 
typedef InputImageType::SizeType SizeType
 
typedef ImageToPathFilter< TInputImage, TOutputPath > Superclass
 
- Public Types inherited from otb::ImageToPathFilter< TInputImage, TOutputPath >
typedef itk::SmartPointer< const SelfConstPointer
 
typedef InputImageType::Pointer InputImagePointerType
 
typedef TInputImage InputImageType
 
typedef OutputPathType::Pointer OutputPathPointerType
 
typedef TOutputPath OutputPathType
 
typedef itk::SmartPointer< SelfPointer
 
typedef itk::ProcessObject ProcessObjectType
 
typedef ImageToPathFilter Self
 
typedef itk::PathSource< TOutputPath > Superclass
 

Public Member Functions

virtual ::itk::LightObject::Pointer CreateAnother (void) const
 
virtual const char * GetNameOfClass () const
 
- 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)
 

Static Public Member Functions

static Pointer New ()
 
- Static Public Member Functions inherited from otb::ImageToPathFilter< TInputImage, TOutputPath >
static Pointer New ()
 
PixelType m_ForegroundValue
 
virtual void SetForegroundValue (PixelType _arg)
 
virtual PixelType GetForegroundValue () const
 
 ImageToEdgePathFilter ()
 
 ~ImageToEdgePathFilter () override
 
void PrintSelf (std::ostream &os, itk::Indent indent) const override
 
void GenerateOutputInformation () override
 
void GenerateData () override
 
 ImageToEdgePathFilter (const Self &)=delete
 
void operator= (const Self &)=delete
 

Additional Inherited Members

- Static Public Attributes inherited from otb::ImageToPathFilter< TInputImage, TOutputPath >
static const unsigned int InputImageDimension = TInputImage::ImageDimension
 
- Protected Member Functions inherited from otb::ImageToPathFilter< TInputImage, TOutputPath >
 ImageToPathFilter ()
 
 ~ImageToPathFilter () override
 
void PrintSelf (std::ostream &os, itk::Indent indent) const override
 

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 performed 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 consistent result for geometric descriptors (for instance compacity).

See also
ImageToPathFilter

Definition at line 58 of file otbImageToEdgePathFilter.h.

Member Typedef Documentation

◆ ConstPointer

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

Definition at line 65 of file otbImageToEdgePathFilter.h.

◆ ContinuousIndexType

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

Definition at line 77 of file otbImageToEdgePathFilter.h.

◆ InputImagePointerType

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

Definition at line 74 of file otbImageToEdgePathFilter.h.

◆ InputImageType

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

Template parameters typedef.

Definition at line 70 of file otbImageToEdgePathFilter.h.

◆ OutputPathPointerType

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

Definition at line 76 of file otbImageToEdgePathFilter.h.

◆ OutputPathType

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

Definition at line 75 of file otbImageToEdgePathFilter.h.

◆ PixelType

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

Definition at line 79 of file otbImageToEdgePathFilter.h.

◆ Pointer

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

Definition at line 64 of file otbImageToEdgePathFilter.h.

◆ Self

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

standards typedefs

Definition at line 62 of file otbImageToEdgePathFilter.h.

◆ SizeType

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

Definition at line 80 of file otbImageToEdgePathFilter.h.

◆ Superclass

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

Definition at line 63 of file otbImageToEdgePathFilter.h.

Constructor & Destructor Documentation

◆ ImageToEdgePathFilter() [1/2]

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

Set and Get foreground value

Definition at line 36 of file otbImageToEdgePathFilter.hxx.

◆ ~ImageToEdgePathFilter()

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

Set and Get foreground value

Definition at line 89 of file otbImageToEdgePathFilter.h.

◆ ImageToEdgePathFilter() [2/2]

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

Set and Get foreground value

Member Function Documentation

◆ CreateAnother()

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

◆ GenerateData()

template<class TInputImage , class TOutputPath >
void otb::ImageToEdgePathFilter< TInputImage, TOutputPath >::GenerateData
overrideprotected

Main computation method.

Definition at line 44 of file otbImageToEdgePathFilter.hxx.

References otbMsgDebugMacro.

◆ GenerateOutputInformation()

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

Set and Get foreground value

Definition at line 93 of file otbImageToEdgePathFilter.h.

◆ GetForegroundValue()

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

Set and Get foreground value

◆ GetNameOfClass()

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

Runtime information.

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

◆ New()

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

Creation through the object factory.

◆ operator=()

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

Set and Get foreground value

◆ PrintSelf()

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

Set and Get foreground value

Definition at line 215 of file otbImageToEdgePathFilter.hxx.

◆ SetForegroundValue()

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

Set and Get foreground value

Member Data Documentation

◆ m_ForegroundValue

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

Set and Get foreground value

Definition at line 102 of file otbImageToEdgePathFilter.h.


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