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 | List of all members
otb::ObjectDetectionClassifier< TInputImage, TOutputVectorData, TLabel, TFunctionPrecision, TCoordRep > Class Template Reference

This class detects object in an image, given a SVM model and a local descriptors function. More...

#include <otbObjectDetectionClassifier.h>

+ Inheritance diagram for otb::ObjectDetectionClassifier< TInputImage, TOutputVectorData, TLabel, TFunctionPrecision, TCoordRep >:
+ Collaboration diagram for otb::ObjectDetectionClassifier< TInputImage, TOutputVectorData, TLabel, TFunctionPrecision, TCoordRep >:

Public Types

typedef itk::SmartPointer
< const Self
ConstPointer
 
typedef TCoordRep CoordRepType
 
typedef
DescriptorsFunctionType::Pointer 
DescriptorsFunctionPointerType
 
typedef itk::FunctionBase
< PointType, DescriptorType
DescriptorsFunctionType
 
typedef DefaultDescriptorType
< FunctionPrecision >::Type 
DescriptorType
 
typedef TFunctionPrecision FunctionPrecision
 
typedef TInputImage InputImageType
 
typedef TLabel LabelType
 
typedef TOutputVectorData OutputVectorDataType
 
typedef Superclass::FilterType PersistentFilterType
 
typedef itk::SmartPointer< SelfPointer
 
typedef itk::Point< TCoordRep, 2 > PointType
 
typedef ObjectDetectionClassifier Self
 
typedef
PersistentFilterStreamingDecorator
< PersistentObjectDetectionClassifier
< TInputImage,
TOutputVectorData, TLabel,
itk::FunctionBase< itk::Point
< TCoordRep, 2 >, typename
DefaultDescriptorType
< TFunctionPrecision >::Type > > > 
Superclass
 
typedef
PersistentFilterType::SVMModelPointerType 
SVMModelPointerType
 
typedef
PersistentFilterType::SVMModelType 
SVMModelType
 
- Public Types inherited from otb::PersistentFilterStreamingDecorator< PersistentObjectDetectionClassifier< TInputImage, TOutputVectorData, TLabel, itk::FunctionBase< itk::Point< TCoordRep, 2 >, DefaultDescriptorType< TFunctionPrecision >::Type > > >
typedef itk::SmartPointer
< const Self
ConstPointer
 
typedef FilterType::Pointer FilterPointerType
 
typedef
PersistentObjectDetectionClassifier
< TInputImage,
TOutputVectorData, TLabel,
itk::FunctionBase< itk::Point
< TCoordRep, 2 >
, DefaultDescriptorType
< TFunctionPrecision >::Type > > 
FilterType
 
typedef FilterType::InputImageType ImageType
 
typedef itk::SmartPointer< SelfPointer
 
typedef
PersistentFilterStreamingDecorator 
Self
 
typedef StreamerType::Pointer StreamerPointerType
 
typedef
StreamingImageVirtualWriter
< ImageType
StreamerType
 
typedef itk::ProcessObject Superclass
 

Public Member Functions

void AddInput (itk::DataObject *dataObject)
 
virtual ::itk::LightObject::Pointer CreateAnother (void) const
 
virtual std::string GetClassKey ()
 
DescriptorsFunctionTypeGetDescriptorsFunction ()
 
virtual unsigned int GetGridStep ()
 
virtual const char * GetNameOfClass () const
 
virtual unsigned int GetNeighborhoodRadius ()
 
virtual LabelType GetNoClassLabel ()
 
OutputVectorDataTypeGetOutputVectorData ()
 
virtual DescriptorType GetScales ()
 
virtual DescriptorType GetShifts ()
 
SVMModelTypeGetSVMModel ()
 
virtual void SetClassKey (const std::string _arg)
 
void SetDescriptorsFunction (DescriptorsFunctionType *input)
 
virtual void SetGridStep (const unsigned int _arg)
 
void SetInputImage (InputImageType *input)
 
virtual void SetNeighborhoodRadius (const unsigned int _arg)
 
virtual void SetNoClassLabel (const LabelType _arg)
 
virtual void SetScales (const DescriptorType _arg)
 
virtual void SetShifts (const DescriptorType _arg)
 
void SetSVMModel (SVMModelType *model)
 
- Public Member Functions inherited from otb::PersistentFilterStreamingDecorator< PersistentObjectDetectionClassifier< TInputImage, TOutputVectorData, TLabel, itk::FunctionBase< itk::Point< TCoordRep, 2 >, DefaultDescriptorType< TFunctionPrecision >::Type > > >
virtual ::itk::LightObject::Pointer CreateAnother (void) const
 
virtual FilterTypeGetFilter ()
 
virtual const FilterTypeGetFilter ()
 
virtual StreamerTypeGetStreamer ()
 
virtual void SetFilter (FilterType *_arg)
 
virtual void Update (void)
 

Static Public Member Functions

static Pointer New ()
 
- Static Public Member Functions inherited from otb::PersistentFilterStreamingDecorator< PersistentObjectDetectionClassifier< TInputImage, TOutputVectorData, TLabel, itk::FunctionBase< itk::Point< TCoordRep, 2 >, DefaultDescriptorType< TFunctionPrecision >::Type > > >
static Pointer New ()
 

Protected Member Functions

 ObjectDetectionClassifier ()
 
virtual ~ObjectDetectionClassifier ()
 
- Protected Member Functions inherited from otb::PersistentFilterStreamingDecorator< PersistentObjectDetectionClassifier< TInputImage, TOutputVectorData, TLabel, itk::FunctionBase< itk::Point< TCoordRep, 2 >, DefaultDescriptorType< TFunctionPrecision >::Type > > >
 PersistentFilterStreamingDecorator ()
 
virtual ~PersistentFilterStreamingDecorator ()
 
virtual void GenerateData (void)
 
virtual void PrintSelf (std::ostream &os, itk::Indent indent) const
 

Private Member Functions

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

Additional Inherited Members

- Protected Attributes inherited from otb::PersistentFilterStreamingDecorator< PersistentObjectDetectionClassifier< TInputImage, TOutputVectorData, TLabel, itk::FunctionBase< itk::Point< TCoordRep, 2 >, DefaultDescriptorType< TFunctionPrecision >::Type > > >
FilterPointerType m_Filter
 Object responsible for computation. More...
 
StreamerPointerType m_Streamer
 Object responsible for streaming. More...
 

Detailed Description

template<class TInputImage, class TOutputVectorData, class TLabel, class TFunctionPrecision = double, class TCoordRep = double>
class otb::ObjectDetectionClassifier< TInputImage, TOutputVectorData, TLabel, TFunctionPrecision, TCoordRep >

This class detects object in an image, given a SVM model and a local descriptors function.

Given an image (by SetInputImage()), a SVM model (by SetSVMModel) and an local descriptors ImageFunction (set by SetDescriptorsFunction()), this class computes the local descriptors on a regular grid over the image, and evaluates the class label of the corresponding sample. It outputs a vector data with the points for which the descriptors are not classified as "negative", the negative class label being given by SetNoClassLabel()

This class is streaming capable and multithreaded

Definition at line 246 of file otbObjectDetectionClassifier.h.

Member Typedef Documentation

template<class TInputImage , class TOutputVectorData , class TLabel , class TFunctionPrecision = double, class TCoordRep = double>
typedef itk::SmartPointer<const Self> otb::ObjectDetectionClassifier< TInputImage, TOutputVectorData, TLabel, TFunctionPrecision, TCoordRep >::ConstPointer

Definition at line 267 of file otbObjectDetectionClassifier.h.

template<class TInputImage , class TOutputVectorData , class TLabel , class TFunctionPrecision = double, class TCoordRep = double>
typedef TCoordRep otb::ObjectDetectionClassifier< TInputImage, TOutputVectorData, TLabel, TFunctionPrecision, TCoordRep >::CoordRepType

Definition at line 278 of file otbObjectDetectionClassifier.h.

template<class TInputImage , class TOutputVectorData , class TLabel , class TFunctionPrecision = double, class TCoordRep = double>
typedef DescriptorsFunctionType::Pointer otb::ObjectDetectionClassifier< TInputImage, TOutputVectorData, TLabel, TFunctionPrecision, TCoordRep >::DescriptorsFunctionPointerType

Definition at line 289 of file otbObjectDetectionClassifier.h.

template<class TInputImage , class TOutputVectorData , class TLabel , class TFunctionPrecision = double, class TCoordRep = double>
typedef itk::FunctionBase<PointType, DescriptorType> otb::ObjectDetectionClassifier< TInputImage, TOutputVectorData, TLabel, TFunctionPrecision, TCoordRep >::DescriptorsFunctionType

The function evaluated on the input image at locations specified by the vector data

Definition at line 288 of file otbObjectDetectionClassifier.h.

template<class TInputImage , class TOutputVectorData , class TLabel , class TFunctionPrecision = double, class TCoordRep = double>
typedef DefaultDescriptorType<FunctionPrecision>::Type otb::ObjectDetectionClassifier< TInputImage, TOutputVectorData, TLabel, TFunctionPrecision, TCoordRep >::DescriptorType

The return value of the function

Definition at line 285 of file otbObjectDetectionClassifier.h.

template<class TInputImage , class TOutputVectorData , class TLabel , class TFunctionPrecision = double, class TCoordRep = double>
typedef TFunctionPrecision otb::ObjectDetectionClassifier< TInputImage, TOutputVectorData, TLabel, TFunctionPrecision, TCoordRep >::FunctionPrecision

Definition at line 279 of file otbObjectDetectionClassifier.h.

template<class TInputImage , class TOutputVectorData , class TLabel , class TFunctionPrecision = double, class TCoordRep = double>
typedef TInputImage otb::ObjectDetectionClassifier< TInputImage, TOutputVectorData, TLabel, TFunctionPrecision, TCoordRep >::InputImageType

Definition at line 273 of file otbObjectDetectionClassifier.h.

template<class TInputImage , class TOutputVectorData , class TLabel , class TFunctionPrecision = double, class TCoordRep = double>
typedef TLabel otb::ObjectDetectionClassifier< TInputImage, TOutputVectorData, TLabel, TFunctionPrecision, TCoordRep >::LabelType

Definition at line 277 of file otbObjectDetectionClassifier.h.

template<class TInputImage , class TOutputVectorData , class TLabel , class TFunctionPrecision = double, class TCoordRep = double>
typedef TOutputVectorData otb::ObjectDetectionClassifier< TInputImage, TOutputVectorData, TLabel, TFunctionPrecision, TCoordRep >::OutputVectorDataType

Definition at line 276 of file otbObjectDetectionClassifier.h.

template<class TInputImage , class TOutputVectorData , class TLabel , class TFunctionPrecision = double, class TCoordRep = double>
typedef Superclass::FilterType otb::ObjectDetectionClassifier< TInputImage, TOutputVectorData, TLabel, TFunctionPrecision, TCoordRep >::PersistentFilterType

Definition at line 291 of file otbObjectDetectionClassifier.h.

template<class TInputImage , class TOutputVectorData , class TLabel , class TFunctionPrecision = double, class TCoordRep = double>
typedef itk::SmartPointer<Self> otb::ObjectDetectionClassifier< TInputImage, TOutputVectorData, TLabel, TFunctionPrecision, TCoordRep >::Pointer

Definition at line 266 of file otbObjectDetectionClassifier.h.

template<class TInputImage , class TOutputVectorData , class TLabel , class TFunctionPrecision = double, class TCoordRep = double>
typedef itk::Point<TCoordRep, 2> otb::ObjectDetectionClassifier< TInputImage, TOutputVectorData, TLabel, TFunctionPrecision, TCoordRep >::PointType

The coordinates used when evaluating function

Definition at line 282 of file otbObjectDetectionClassifier.h.

template<class TInputImage , class TOutputVectorData , class TLabel , class TFunctionPrecision = double, class TCoordRep = double>
typedef ObjectDetectionClassifier otb::ObjectDetectionClassifier< TInputImage, TOutputVectorData, TLabel, TFunctionPrecision, TCoordRep >::Self

Standard Self typedef

Definition at line 257 of file otbObjectDetectionClassifier.h.

template<class TInputImage , class TOutputVectorData , class TLabel , class TFunctionPrecision = double, class TCoordRep = double>
typedef PersistentFilterStreamingDecorator< PersistentObjectDetectionClassifier <TInputImage, TOutputVectorData, TLabel, itk::FunctionBase< itk::Point<TCoordRep, 2>, typename DefaultDescriptorType<TFunctionPrecision>::Type> > > otb::ObjectDetectionClassifier< TInputImage, TOutputVectorData, TLabel, TFunctionPrecision, TCoordRep >::Superclass

Definition at line 265 of file otbObjectDetectionClassifier.h.

template<class TInputImage , class TOutputVectorData , class TLabel , class TFunctionPrecision = double, class TCoordRep = double>
typedef PersistentFilterType::SVMModelPointerType otb::ObjectDetectionClassifier< TInputImage, TOutputVectorData, TLabel, TFunctionPrecision, TCoordRep >::SVMModelPointerType

Definition at line 294 of file otbObjectDetectionClassifier.h.

template<class TInputImage , class TOutputVectorData , class TLabel , class TFunctionPrecision = double, class TCoordRep = double>
typedef PersistentFilterType::SVMModelType otb::ObjectDetectionClassifier< TInputImage, TOutputVectorData, TLabel, TFunctionPrecision, TCoordRep >::SVMModelType

Definition at line 293 of file otbObjectDetectionClassifier.h.

Constructor & Destructor Documentation

template<class TInputImage , class TOutputVectorData , class TLabel , class TFunctionPrecision , class TCoordRep >
otb::ObjectDetectionClassifier< TInputImage, TOutputVectorData, TLabel, TFunctionPrecision, TCoordRep >::ObjectDetectionClassifier ( )
protected

Constructor

Definition at line 286 of file otbObjectDetectionClassifier.txx.

template<class TInputImage , class TOutputVectorData , class TLabel , class TFunctionPrecision , class TCoordRep >
otb::ObjectDetectionClassifier< TInputImage, TOutputVectorData, TLabel, TFunctionPrecision, TCoordRep >::~ObjectDetectionClassifier ( )
protectedvirtual

Destructor

Definition at line 293 of file otbObjectDetectionClassifier.txx.

template<class TInputImage , class TOutputVectorData , class TLabel , class TFunctionPrecision = double, class TCoordRep = double>
otb::ObjectDetectionClassifier< TInputImage, TOutputVectorData, TLabel, TFunctionPrecision, TCoordRep >::ObjectDetectionClassifier ( const Self )
private

Member Function Documentation

template<class TInputImage , class TOutputVectorData , class TLabel , class TFunctionPrecision = double, class TCoordRep = double>
void otb::ObjectDetectionClassifier< TInputImage, TOutputVectorData, TLabel, TFunctionPrecision, TCoordRep >::AddInput ( itk::DataObject dataObject)
inline

Definition at line 308 of file otbObjectDetectionClassifier.h.

template<class TInputImage , class TOutputVectorData , class TLabel , class TFunctionPrecision = double, class TCoordRep = double>
virtual::itk::LightObject::Pointer otb::ObjectDetectionClassifier< TInputImage, TOutputVectorData, TLabel, TFunctionPrecision, TCoordRep >::CreateAnother ( void  ) const
template<class TInputImage , class TOutputVectorData , class TLabel , class TFunctionPrecision = double, class TCoordRep = double>
virtual std::string otb::ObjectDetectionClassifier< TInputImage, TOutputVectorData, TLabel, TFunctionPrecision, TCoordRep >::GetClassKey ( )
virtual

Set/Get the name of the field containing the class information

template<class TInputImage , class TOutputVectorData , class TLabel , class TFunctionPrecision = double, class TCoordRep = double>
DescriptorsFunctionType* otb::ObjectDetectionClassifier< TInputImage, TOutputVectorData, TLabel, TFunctionPrecision, TCoordRep >::GetDescriptorsFunction ( )
inline

The function to evaluate

Definition at line 320 of file otbObjectDetectionClassifier.h.

template<class TInputImage , class TOutputVectorData , class TLabel , class TFunctionPrecision = double, class TCoordRep = double>
virtual unsigned int otb::ObjectDetectionClassifier< TInputImage, TOutputVectorData, TLabel, TFunctionPrecision, TCoordRep >::GetGridStep ( )
virtual
template<class TInputImage , class TOutputVectorData , class TLabel , class TFunctionPrecision = double, class TCoordRep = double>
virtual const char* otb::ObjectDetectionClassifier< TInputImage, TOutputVectorData, TLabel, TFunctionPrecision, TCoordRep >::GetNameOfClass ( ) const
virtual
template<class TInputImage , class TOutputVectorData , class TLabel , class TFunctionPrecision = double, class TCoordRep = double>
virtual unsigned int otb::ObjectDetectionClassifier< TInputImage, TOutputVectorData, TLabel, TFunctionPrecision, TCoordRep >::GetNeighborhoodRadius ( )
virtual
template<class TInputImage , class TOutputVectorData , class TLabel , class TFunctionPrecision = double, class TCoordRep = double>
virtual LabelType otb::ObjectDetectionClassifier< TInputImage, TOutputVectorData, TLabel, TFunctionPrecision, TCoordRep >::GetNoClassLabel ( )
virtual

Set/Get the label of the negative samples

template<class TInputImage , class TOutputVectorData , class TLabel , class TFunctionPrecision = double, class TCoordRep = double>
OutputVectorDataType* otb::ObjectDetectionClassifier< TInputImage, TOutputVectorData, TLabel, TFunctionPrecision, TCoordRep >::GetOutputVectorData ( void  )
inline

Sample locations as a VectorData of points. The label is in the ClassKey feature

Definition at line 303 of file otbObjectDetectionClassifier.h.

template<class TInputImage , class TOutputVectorData , class TLabel , class TFunctionPrecision = double, class TCoordRep = double>
virtual DescriptorType otb::ObjectDetectionClassifier< TInputImage, TOutputVectorData, TLabel, TFunctionPrecision, TCoordRep >::GetScales ( )
virtual

Set/Get the Scales for this sample list

template<class TInputImage , class TOutputVectorData , class TLabel , class TFunctionPrecision = double, class TCoordRep = double>
virtual DescriptorType otb::ObjectDetectionClassifier< TInputImage, TOutputVectorData, TLabel, TFunctionPrecision, TCoordRep >::GetShifts ( )
virtual

Set/Get the Shifts for this sample list

template<class TInputImage , class TOutputVectorData , class TLabel , class TFunctionPrecision = double, class TCoordRep = double>
SVMModelType* otb::ObjectDetectionClassifier< TInputImage, TOutputVectorData, TLabel, TFunctionPrecision, TCoordRep >::GetSVMModel ( )
inline

The function to evaluate

Definition at line 332 of file otbObjectDetectionClassifier.h.

template<class TInputImage , class TOutputVectorData , class TLabel , class TFunctionPrecision = double, class TCoordRep = double>
static Pointer otb::ObjectDetectionClassifier< TInputImage, TOutputVectorData, TLabel, TFunctionPrecision, TCoordRep >::New ( )
static

Type macro

template<class TInputImage , class TOutputVectorData , class TLabel , class TFunctionPrecision = double, class TCoordRep = double>
void otb::ObjectDetectionClassifier< TInputImage, TOutputVectorData, TLabel, TFunctionPrecision, TCoordRep >::operator= ( const Self )
private
template<class TInputImage , class TOutputVectorData , class TLabel , class TFunctionPrecision = double, class TCoordRep = double>
virtual void otb::ObjectDetectionClassifier< TInputImage, TOutputVectorData, TLabel, TFunctionPrecision, TCoordRep >::SetClassKey ( const std::string  _arg)
virtual
template<class TInputImage , class TOutputVectorData , class TLabel , class TFunctionPrecision = double, class TCoordRep = double>
void otb::ObjectDetectionClassifier< TInputImage, TOutputVectorData, TLabel, TFunctionPrecision, TCoordRep >::SetDescriptorsFunction ( DescriptorsFunctionType input)
inline

The function to evaluate

Definition at line 314 of file otbObjectDetectionClassifier.h.

template<class TInputImage , class TOutputVectorData , class TLabel , class TFunctionPrecision = double, class TCoordRep = double>
virtual void otb::ObjectDetectionClassifier< TInputImage, TOutputVectorData, TLabel, TFunctionPrecision, TCoordRep >::SetGridStep ( const unsigned int  _arg)
virtual

Set/Get the grid step for detection

template<class TInputImage , class TOutputVectorData , class TLabel , class TFunctionPrecision = double, class TCoordRep = double>
void otb::ObjectDetectionClassifier< TInputImage, TOutputVectorData, TLabel, TFunctionPrecision, TCoordRep >::SetInputImage ( InputImageType input)
inline

Input image to extract feature

Definition at line 297 of file otbObjectDetectionClassifier.h.

template<class TInputImage , class TOutputVectorData , class TLabel , class TFunctionPrecision = double, class TCoordRep = double>
virtual void otb::ObjectDetectionClassifier< TInputImage, TOutputVectorData, TLabel, TFunctionPrecision, TCoordRep >::SetNeighborhoodRadius ( const unsigned int  _arg)
virtual
template<class TInputImage , class TOutputVectorData , class TLabel , class TFunctionPrecision = double, class TCoordRep = double>
virtual void otb::ObjectDetectionClassifier< TInputImage, TOutputVectorData, TLabel, TFunctionPrecision, TCoordRep >::SetNoClassLabel ( const LabelType  _arg)
virtual
template<class TInputImage , class TOutputVectorData , class TLabel , class TFunctionPrecision = double, class TCoordRep = double>
virtual void otb::ObjectDetectionClassifier< TInputImage, TOutputVectorData, TLabel, TFunctionPrecision, TCoordRep >::SetScales ( const DescriptorType  _arg)
virtual
template<class TInputImage , class TOutputVectorData , class TLabel , class TFunctionPrecision = double, class TCoordRep = double>
virtual void otb::ObjectDetectionClassifier< TInputImage, TOutputVectorData, TLabel, TFunctionPrecision, TCoordRep >::SetShifts ( const DescriptorType  _arg)
virtual
template<class TInputImage , class TOutputVectorData , class TLabel , class TFunctionPrecision = double, class TCoordRep = double>
void otb::ObjectDetectionClassifier< TInputImage, TOutputVectorData, TLabel, TFunctionPrecision, TCoordRep >::SetSVMModel ( SVMModelType model)
inline

The function to evaluate

Definition at line 326 of file otbObjectDetectionClassifier.h.


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