OTB  9.0.0
Orfeo Toolbox
Public Types | Public Member Functions | Static Public Member Functions | List of all members
otb::ImageFittingPolygonListFilter< TPath, TImage > Class Template Reference

#include <otbImageFittingPolygonListFilter.h>

+ Inheritance diagram for otb::ImageFittingPolygonListFilter< TPath, TImage >:
+ Collaboration diagram for otb::ImageFittingPolygonListFilter< TPath, TImage >:

Public Types

typedef itk::SmartPointer< const SelfConstPointer
 
typedef ImageType::ConstPointer ImageConstPointerType
 
typedef ImageType::Pointer ImagePointerType
 
typedef TImage ImageType
 
typedef PathListType::ConstIterator IteratorType
 
typedef itk::LineConstIterator< ImageTypeLineConstIteratorType
 
typedef PathListType::Pointer PathListPointerType
 
typedef Superclass::PathListType PathListType
 
typedef Superclass::PathPointerType PathPointerType
 
typedef Superclass::PathType PathType
 
typedef itk::SmartPointer< SelfPointer
 
typedef double RealType
 
typedef ImageFittingPolygonListFilter Self
 
typedef PathListToPathListFilter< TPath > Superclass
 
typedef VertexListType::ConstIterator VertexListConstIteratorType
 
typedef PathType::VertexListType VertexListType
 
typedef PathType::VertexType VertexType
 
- Public Types inherited from otb::PathListToPathListFilter< TPath >
typedef itk::SmartPointer< const SelfConstPointer
 
typedef Superclass::OutputListPointer OutputPathListPointerType
 
typedef Superclass::OutputListType OutputPathListType
 
typedef PathType::Pointer OutputPathPointerType
 
typedef Superclass::OutputObjectType OutputPathType
 
typedef PathListType::ConstPointer PathListConstPointerType
 
typedef PathListType::Pointer PathListPointerType
 
typedef Superclass::InputListType PathListType
 
typedef PathType::Pointer PathPointerType
 
typedef Superclass::InputObjectType PathType
 
typedef itk::SmartPointer< SelfPointer
 
typedef PathListToPathListFilter Self
 
typedef ObjectListToObjectListFilter< ObjectList< TPath >, ObjectList< TPath > > Superclass
 
- Public Types inherited from otb::ObjectListToObjectListFilter< ObjectList< TPath >, ObjectList< TPath > >
typedef itk::SmartPointer< const SelfConstPointer
 
typedef itk::DataObject::Pointer DataObjectPointer
 
typedef ObjectList< TPath > ::ConstIterator InputListIterator
 
typedef ObjectList< TPath > ::ConstPointer InputListPointer
 
typedef ObjectList< TPath > InputListType
 
typedef InputListType::ObjectType InputObjectType
 
typedef ObjectList< TPath > ::Pointer OutputListPointer
 
typedef ObjectList< TPath > OutputListType
 
typedef OutputListType::ObjectType OutputObjectType
 
typedef itk::SmartPointer< SelfPointer
 
typedef ObjectListToObjectListFilter Self
 
typedef otb::ObjectListSource< ObjectList< TPath > > Superclass
 
- Public Types inherited from otb::ObjectListSource< ObjectList< TPath > >
typedef itk::SmartPointer< const SelfConstPointer
 
typedef itk::DataObject::Pointer DataObjectPointer
 
typedef itk::ProcessObject::DataObjectPointerArraySizeType DataObjectPointerArraySizeType
 
typedef ObjectList< TPath > ::Pointer OutputListPointer
 
typedef ObjectList< TPath > OutputListType
 
typedef itk::SmartPointer< SelfPointer
 
typedef ObjectListSource Self
 
typedef itk::ProcessObject Superclass
 

Public Member Functions

virtual ::itk::LightObject::Pointer CreateAnother (void) const
 
virtual const char * GetNameOfClass () const
 
void SetInputImage (const ImageType *image)
 
const ImageTypeGetInputImage (void)
 
- Public Member Functions inherited from otb::PathListToPathListFilter< TPath >
virtual ::itk::LightObject::Pointer CreateAnother (void) const
 
- Public Member Functions inherited from otb::ObjectListToObjectListFilter< ObjectList< TPath >, ObjectList< TPath > >
virtual ::itk::LightObject::Pointer CreateAnother (void) const
 
const InputListTypeGetInput (void)
 
virtual const char * GetNameOfClass () const
 
virtual void SetInput (const InputListType *input)
 
- Public Member Functions inherited from otb::ObjectListSource< ObjectList< TPath > >
virtual ::itk::LightObject::Pointer CreateAnother (void) const
 
DataObjectPointer MakeOutput (DataObjectPointerArraySizeType idx) override
 
void GraftOutput (itk::DataObject *graft)
 
void GraftNthOutput (DataObjectPointerArraySizeType idx, itk::DataObject *graft)
 
OutputListTypeGetOutput (void)
 
OutputListTypeGetOutput (DataObjectPointerArraySizeType idx)
 

Static Public Member Functions

static Pointer New ()
 
- Static Public Member Functions inherited from otb::PathListToPathListFilter< TPath >
static Pointer New ()
 
- Static Public Member Functions inherited from otb::ObjectListToObjectListFilter< ObjectList< TPath >, ObjectList< TPath > >
static Pointer New ()
 
- Static Public Member Functions inherited from otb::ObjectListSource< ObjectList< TPath > >
static Pointer New ()
 
unsigned int m_Radius
 
unsigned int m_NumberOfIterations
 
virtual void SetRadius (unsigned int _arg)
 
virtual unsigned int GetRadius ()
 
virtual void SetNumberOfIterations (unsigned int _arg)
 
virtual unsigned int GetNumberOfIterations ()
 
 ImageFittingPolygonListFilter ()
 
 ~ImageFittingPolygonListFilter () override
 
void GenerateData () override
 
void PrintSelf (std::ostream &os, itk::Indent indent) const override
 
virtual double computeValue (ImageConstPointerType image, VertexType middlePoint, VertexType previousPoint, VertexType nextPoint) const
 
 ImageFittingPolygonListFilter (const Self &)=delete
 
void operator= (const Self &)=delete
 

Additional Inherited Members

- Protected Types inherited from otb::ObjectListToObjectListFilter< ObjectList< TPath >, ObjectList< TPath > >
typedef std::vector< OutputListPointerOutputListForThreadType
 
- Protected Member Functions inherited from otb::PathListToPathListFilter< TPath >
 PathListToPathListFilter ()
 
 ~PathListToPathListFilter () override
 
- Protected Member Functions inherited from otb::ObjectListToObjectListFilter< ObjectList< TPath >, ObjectList< TPath > >
virtual void AfterThreadedGenerateData ()
 
virtual void BeforeThreadedGenerateData ()
 
void GenerateData (void) override
 
 ObjectListToObjectListFilter ()
 
void PrintSelf (std::ostream &os, itk::Indent indent) const override
 
virtual int SplitRequestedRegion (itk::ThreadIdType threadId, int threadCount, unsigned int requestedElements, unsigned int &startIndex, unsigned int &stopIndex)
 
virtual void ThreadedGenerateData (unsigned int startIndex, unsigned int stopIndex, itk::ThreadIdType threadId)
 
 ~ObjectListToObjectListFilter () override
 
- Protected Member Functions inherited from otb::ObjectListSource< ObjectList< TPath > >
 ObjectListSource ()
 
 ~ObjectListSource () override
 
void PrintSelf (std::ostream &os, itk::Indent indent) const override
 
virtual void AllocateOutputs ()
 
void GenerateData (void) override
 
- Static Protected Member Functions inherited from otb::ObjectListToObjectListFilter< ObjectList< TPath >, ObjectList< TPath > >
static ITK_THREAD_RETURN_TYPE ThreaderCallback (void *arg)
 
- Protected Attributes inherited from otb::ObjectListToObjectListFilter< ObjectList< TPath >, ObjectList< TPath > >
OutputListForThreadType m_ObjectListPerThread
 

Detailed Description

template<class TPath, class TImage>
class otb::ImageFittingPolygonListFilter< TPath, TImage >

Slightly deform polygon to reach higher energy from the image.

Limitations: This filter is currently working with integer position for the polygon vertices. It should be optimized for continuous positions.

Definition at line 40 of file otbImageFittingPolygonListFilter.h.

Member Typedef Documentation

◆ ConstPointer

template<class TPath , class TImage >
typedef itk::SmartPointer<const Self> otb::ImageFittingPolygonListFilter< TPath, TImage >::ConstPointer

Definition at line 47 of file otbImageFittingPolygonListFilter.h.

◆ ImageConstPointerType

template<class TPath , class TImage >
typedef ImageType::ConstPointer otb::ImageFittingPolygonListFilter< TPath, TImage >::ImageConstPointerType

Definition at line 68 of file otbImageFittingPolygonListFilter.h.

◆ ImagePointerType

template<class TPath , class TImage >
typedef ImageType::Pointer otb::ImageFittingPolygonListFilter< TPath, TImage >::ImagePointerType

Definition at line 67 of file otbImageFittingPolygonListFilter.h.

◆ ImageType

template<class TPath , class TImage >
typedef TImage otb::ImageFittingPolygonListFilter< TPath, TImage >::ImageType

Definition at line 66 of file otbImageFittingPolygonListFilter.h.

◆ IteratorType

template<class TPath , class TImage >
typedef PathListType::ConstIterator otb::ImageFittingPolygonListFilter< TPath, TImage >::IteratorType

Definition at line 60 of file otbImageFittingPolygonListFilter.h.

◆ LineConstIteratorType

template<class TPath , class TImage >
typedef itk::LineConstIterator<ImageType> otb::ImageFittingPolygonListFilter< TPath, TImage >::LineConstIteratorType

Definition at line 70 of file otbImageFittingPolygonListFilter.h.

◆ PathListPointerType

template<class TPath , class TImage >
typedef PathListType::Pointer otb::ImageFittingPolygonListFilter< TPath, TImage >::PathListPointerType

Definition at line 59 of file otbImageFittingPolygonListFilter.h.

◆ PathListType

template<class TPath , class TImage >
typedef Superclass::PathListType otb::ImageFittingPolygonListFilter< TPath, TImage >::PathListType

Definition at line 57 of file otbImageFittingPolygonListFilter.h.

◆ PathPointerType

template<class TPath , class TImage >
typedef Superclass::PathPointerType otb::ImageFittingPolygonListFilter< TPath, TImage >::PathPointerType

Definition at line 58 of file otbImageFittingPolygonListFilter.h.

◆ PathType

template<class TPath , class TImage >
typedef Superclass::PathType otb::ImageFittingPolygonListFilter< TPath, TImage >::PathType

Template parameters typedefs

Definition at line 53 of file otbImageFittingPolygonListFilter.h.

◆ Pointer

template<class TPath , class TImage >
typedef itk::SmartPointer<Self> otb::ImageFittingPolygonListFilter< TPath, TImage >::Pointer

Definition at line 46 of file otbImageFittingPolygonListFilter.h.

◆ RealType

template<class TPath , class TImage >
typedef double otb::ImageFittingPolygonListFilter< TPath, TImage >::RealType

Definition at line 64 of file otbImageFittingPolygonListFilter.h.

◆ Self

template<class TPath , class TImage >
typedef ImageFittingPolygonListFilter otb::ImageFittingPolygonListFilter< TPath, TImage >::Self

Standard typedefs

Definition at line 44 of file otbImageFittingPolygonListFilter.h.

◆ Superclass

template<class TPath , class TImage >
typedef PathListToPathListFilter<TPath> otb::ImageFittingPolygonListFilter< TPath, TImage >::Superclass

Definition at line 45 of file otbImageFittingPolygonListFilter.h.

◆ VertexListConstIteratorType

template<class TPath , class TImage >
typedef VertexListType::ConstIterator otb::ImageFittingPolygonListFilter< TPath, TImage >::VertexListConstIteratorType

Definition at line 63 of file otbImageFittingPolygonListFilter.h.

◆ VertexListType

template<class TPath , class TImage >
typedef PathType::VertexListType otb::ImageFittingPolygonListFilter< TPath, TImage >::VertexListType

Definition at line 62 of file otbImageFittingPolygonListFilter.h.

◆ VertexType

template<class TPath , class TImage >
typedef PathType::VertexType otb::ImageFittingPolygonListFilter< TPath, TImage >::VertexType

Definition at line 61 of file otbImageFittingPolygonListFilter.h.

Constructor & Destructor Documentation

◆ ImageFittingPolygonListFilter() [1/2]

template<class TPath , class TImage >
otb::ImageFittingPolygonListFilter< TPath, TImage >::ImageFittingPolygonListFilter
protected

Constructor

Definition at line 34 of file otbImageFittingPolygonListFilter.hxx.

◆ ~ImageFittingPolygonListFilter()

template<class TPath , class TImage >
otb::ImageFittingPolygonListFilter< TPath, TImage >::~ImageFittingPolygonListFilter ( )
inlineoverrideprotected

Destructor

Definition at line 99 of file otbImageFittingPolygonListFilter.h.

◆ ImageFittingPolygonListFilter() [2/2]

template<class TPath , class TImage >
otb::ImageFittingPolygonListFilter< TPath, TImage >::ImageFittingPolygonListFilter ( const Self )
privatedelete

Set/Get the search radius.

Member Function Documentation

◆ computeValue()

template<class TPath , class TImage >
double otb::ImageFittingPolygonListFilter< TPath, TImage >::computeValue ( ImageConstPointerType  image,
VertexType  middlePoint,
VertexType  previousPoint,
VertexType  nextPoint 
) const
protectedvirtual

Set/Get the search radius.

Definition at line 223 of file otbImageFittingPolygonListFilter.hxx.

◆ CreateAnother()

template<class TPath , class TImage >
virtual::itk::LightObject::Pointer otb::ImageFittingPolygonListFilter< TPath, TImage >::CreateAnother ( void  ) const

◆ GenerateData()

template<class TPath , class TImage >
void otb::ImageFittingPolygonListFilter< TPath, TImage >::GenerateData
overrideprotected

GenerateData method

try all the possible neighbor for the current point to factorize

End 'to factorize'

try all the possible neighbor for the current point to factorize

End 'to factorize'

try all the possible neighbor for the current point to factorize

End 'to factorize'

Definition at line 63 of file otbImageFittingPolygonListFilter.hxx.

References otb::ObjectList< TObject >::Begin(), otb::ObjectList< TObject >::End(), otb::ObjectList< TObject >::ConstIterator::Get(), and otb::ObjectList< TObject >::PushBack().

◆ GetInputImage()

template<class TPath , class TImage >
const ImageFittingPolygonListFilter< TPath, TImage >::ImageType * otb::ImageFittingPolygonListFilter< TPath, TImage >::GetInputImage ( void  )

Get the input Likelihood image.

Returns
The input Likelihood image.

Definition at line 50 of file otbImageFittingPolygonListFilter.hxx.

◆ GetNameOfClass()

template<class TPath , class TImage >
virtual const char* otb::ImageFittingPolygonListFilter< TPath, TImage >::GetNameOfClass ( ) const
virtual

Creation through object factory macro

Reimplemented from otb::PathListToPathListFilter< TPath >.

◆ GetNumberOfIterations()

template<class TPath , class TImage >
virtual unsigned int otb::ImageFittingPolygonListFilter< TPath, TImage >::GetNumberOfIterations ( )
virtual

Set/Get the search radius.

◆ GetRadius()

template<class TPath , class TImage >
virtual unsigned int otb::ImageFittingPolygonListFilter< TPath, TImage >::GetRadius ( )
virtual

Set/Get the search radius.

◆ New()

template<class TPath , class TImage >
static Pointer otb::ImageFittingPolygonListFilter< TPath, TImage >::New ( )
static

Type macro

◆ operator=()

template<class TPath , class TImage >
void otb::ImageFittingPolygonListFilter< TPath, TImage >::operator= ( const Self )
privatedelete

Set/Get the search radius.

◆ PrintSelf()

template<class TPath , class TImage >
void otb::ImageFittingPolygonListFilter< TPath, TImage >::PrintSelf ( std::ostream &  os,
itk::Indent  indent 
) const
overrideprotected

PrintSelf method

PrintSelf Method

Definition at line 263 of file otbImageFittingPolygonListFilter.hxx.

◆ SetInputImage()

template<class TPath , class TImage >
void otb::ImageFittingPolygonListFilter< TPath, TImage >::SetInputImage ( const ImageType image)

Set the input Likelihood image.

Parameters
imageThe Likelihood image.

Definition at line 44 of file otbImageFittingPolygonListFilter.hxx.

◆ SetNumberOfIterations()

template<class TPath , class TImage >
virtual void otb::ImageFittingPolygonListFilter< TPath, TImage >::SetNumberOfIterations ( unsigned int  _arg)
virtual

Set/Get the number of iteration.

◆ SetRadius()

template<class TPath , class TImage >
virtual void otb::ImageFittingPolygonListFilter< TPath, TImage >::SetRadius ( unsigned int  _arg)
virtual

Set/Get the search radius.

Member Data Documentation

◆ m_NumberOfIterations

template<class TPath , class TImage >
unsigned int otb::ImageFittingPolygonListFilter< TPath, TImage >::m_NumberOfIterations
protected

Set/Get the search radius.

Definition at line 112 of file otbImageFittingPolygonListFilter.h.

◆ m_Radius

template<class TPath , class TImage >
unsigned int otb::ImageFittingPolygonListFilter< TPath, TImage >::m_Radius
protected

Set/Get the search radius.

Definition at line 111 of file otbImageFittingPolygonListFilter.h.


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