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::LikelihoodPathListFilter< TPath, TImage > Class Template Reference

Affect a value to each path of the list based on the image. More...

#include <otbLikelihoodPathListFilter.h>

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

Public Types

typedef itk::SmartPointer
< const Self
ConstPointer
 
typedef ImageType::ConstPointer ImageConstPointerType
 
typedef ImageType::Pointer ImagePointerType
 
typedef TImage ImageType
 
typedef PathListType::ConstIterator IteratorType
 
typedef PathListType::Pointer PathListPointerType
 
typedef Superclass::PathListType PathListType
 
typedef Superclass::PathPointerType PathPointerType
 
typedef Superclass::PathType PathType
 
typedef itk::SmartPointer< SelfPointer
 
typedef double RealType
 
typedef LikelihoodPathListFilter Self
 
typedef
PathListToPathListFilter
< TPath > 
Superclass
 
typedef
VertexListType::ConstIterator 
VertexIteratorType
 
typedef PathType::VertexListType VertexListType
 
typedef PathType::VertexType VertexType
 
- Public Types inherited from otb::PathListToPathListFilter< TPath >
typedef itk::SmartPointer
< const Self
ConstPointer
 
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 Self
ConstPointer
 
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 Self
ConstPointer
 
typedef itk::DataObject::Pointer DataObjectPointer
 
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
 
const ImageTypeGetInputImage (void)
 
virtual const char * GetNameOfClass () const
 
void SetInputImage (const ImageType *image)
 
- 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 void SetInput (const InputListType *input)
 
- Public Member Functions inherited from otb::ObjectListSource< ObjectList< TPath > >
virtual ::itk::LightObject::Pointer CreateAnother (void) const
 
OutputListTypeGetOutput (void)
 
OutputListTypeGetOutput (unsigned int idx)
 
void GraftNthOutput (unsigned int idx, itk::DataObject *graft)
 
void GraftOutput (itk::DataObject *graft)
 
virtual DataObjectPointer MakeOutput (unsigned int 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 ()
 

Protected Member Functions

 LikelihoodPathListFilter ()
 
virtual ~LikelihoodPathListFilter ()
 
virtual void GenerateData ()
 
virtual void PrintSelf (std::ostream &os, itk::Indent indent) const
 
- Protected Member Functions inherited from otb::PathListToPathListFilter< TPath >
 PathListToPathListFilter ()
 
virtual ~PathListToPathListFilter ()
 
- Protected Member Functions inherited from otb::ObjectListToObjectListFilter< ObjectList< TPath >, ObjectList< TPath > >
 ObjectListToObjectListFilter ()
 
virtual ~ObjectListToObjectListFilter ()
 
virtual void AfterThreadedGenerateData ()
 
virtual void BeforeThreadedGenerateData ()
 
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)
 
- Protected Member Functions inherited from otb::ObjectListSource< ObjectList< TPath > >
 ObjectListSource ()
 
virtual ~ObjectListSource ()
 
virtual void AllocateOutputs ()
 

Private Member Functions

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

Private Attributes

std::string m_Key
 

Additional Inherited Members

- Protected Types inherited from otb::ObjectListToObjectListFilter< ObjectList< TPath >, ObjectList< TPath > >
typedef std::vector
< OutputListPointer
OutputListForThreadType
 
- 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::LikelihoodPathListFilter< TPath, TImage >

Affect a value to each path of the list based on the image.

PathList and image are given as an input, the filter affect a value to each path: this value is equal to the sum of the pixels crossed by the path (using a PolyLineImageConstIterator) divided by the number of points in the path

Examples:
FeatureExtraction/ExtractRoadByStepsExample.cxx.

Definition at line 36 of file otbLikelihoodPathListFilter.h.

Member Typedef Documentation

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

Definition at line 44 of file otbLikelihoodPathListFilter.h.

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

Definition at line 65 of file otbLikelihoodPathListFilter.h.

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

Definition at line 64 of file otbLikelihoodPathListFilter.h.

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

Definition at line 63 of file otbLikelihoodPathListFilter.h.

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

Definition at line 57 of file otbLikelihoodPathListFilter.h.

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

Definition at line 56 of file otbLikelihoodPathListFilter.h.

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

Definition at line 54 of file otbLikelihoodPathListFilter.h.

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

Definition at line 55 of file otbLikelihoodPathListFilter.h.

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

Template parameters typedefs

Definition at line 50 of file otbLikelihoodPathListFilter.h.

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

Definition at line 43 of file otbLikelihoodPathListFilter.h.

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

Definition at line 61 of file otbLikelihoodPathListFilter.h.

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

Standard typedefs

Definition at line 41 of file otbLikelihoodPathListFilter.h.

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

Definition at line 42 of file otbLikelihoodPathListFilter.h.

template<class TPath , class TImage >
typedef VertexListType::ConstIterator otb::LikelihoodPathListFilter< TPath, TImage >::VertexIteratorType

Definition at line 60 of file otbLikelihoodPathListFilter.h.

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

Definition at line 59 of file otbLikelihoodPathListFilter.h.

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

Definition at line 58 of file otbLikelihoodPathListFilter.h.

Constructor & Destructor Documentation

template<class TPath , class TImage >
otb::LikelihoodPathListFilter< TPath, TImage >::LikelihoodPathListFilter ( )
protected

Constructor

Definition at line 33 of file otbLikelihoodPathListFilter.txx.

template<class TPath , class TImage >
virtual otb::LikelihoodPathListFilter< TPath, TImage >::~LikelihoodPathListFilter ( )
inlineprotectedvirtual

Destructor

Definition at line 83 of file otbLikelihoodPathListFilter.h.

template<class TPath , class TImage >
otb::LikelihoodPathListFilter< TPath, TImage >::LikelihoodPathListFilter ( const Self )
private

Member Function Documentation

template<class TPath , class TImage >
virtual::itk::LightObject::Pointer otb::LikelihoodPathListFilter< TPath, TImage >::CreateAnother ( void  ) const
template<class TPath , class TImage >
void otb::LikelihoodPathListFilter< TPath, TImage >::GenerateData ( void  )
protectedvirtual
template<class TPath , class TImage >
const LikelihoodPathListFilter< TPath, TImage >::ImageType * otb::LikelihoodPathListFilter< TPath, TImage >::GetInputImage ( void  )

Get the input Likelihood image.

Returns
The input Likelihood image.

Definition at line 50 of file otbLikelihoodPathListFilter.txx.

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

Creation through object factory macro

Reimplemented from otb::PathListToPathListFilter< TPath >.

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

Type macro

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

PrintSelf method

PrintSelf Method

Reimplemented from otb::ObjectListToObjectListFilter< ObjectList< TPath >, ObjectList< TPath > >.

Definition at line 92 of file otbLikelihoodPathListFilter.txx.

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

Set the input Likelihood image.

Parameters
imageThe Likelihood image.

Definition at line 42 of file otbLikelihoodPathListFilter.txx.

Member Data Documentation

template<class TPath , class TImage >
std::string otb::LikelihoodPathListFilter< TPath, TImage >::m_Key
private

Definition at line 93 of file otbLikelihoodPathListFilter.h.


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