libcrn  3.9.5
A document image processing library
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | List of all members
crn::FeatureExtractorProjection Class Reference

Projection features extractor class. More...

#include <CRNFeatureExtractorProjection.h>

+ Inheritance diagram for crn::FeatureExtractorProjection:
+ Collaboration diagram for crn::FeatureExtractorProjection:

Public Member Functions

 FeatureExtractorProjection (Orientation orientations, int un_size, int max_val)
 Constructor. More...
 
 FeatureExtractorProjection (const FeatureExtractorProjection &)=delete
 
 FeatureExtractorProjection (FeatureExtractorProjection &&)=default
 
FeatureExtractorProjectionoperator= (const FeatureExtractorProjection &)=delete
 
FeatureExtractorProjectionoperator= (FeatureExtractorProjection &&)=default
 
virtual ~FeatureExtractorProjection () override
 
virtual StringUTF8 GetClassName () const override
 Returns the id of the class. More...
 
virtual SObject Extract (Block &b) override
 Returns a CRNPROTOCOL_FEATURE object computed from a block. More...
 
- Public Member Functions inherited from crn::FeatureExtractor
virtual ~FeatureExtractor () override
 
virtual SObject ExtractWithMask (Block &b, ImageIntGray &mask)
 Returns a crn::protocol::Feature object computed from a block and its CC mask. More...
 
- Public Member Functions inherited from crn::Action
virtual ~Action () override
 Destructor. More...
 
void Deserialize (xml::Element &el)
 
xml::Element Serialize (xml::Element &parent) const
 
- Public Member Functions inherited from crn::Object
virtual ~Object ()=default
 

Additional Inherited Members

- Public Attributes inherited from crn::Action
crn::Map UserData
 

Detailed Description

Projection features extractor class.

Projection features extractor class.

Author
Yann LEYDIER
Date
October 2007
Version
0.2

Definition at line 40 of file CRNFeatureExtractorProjection.h.

Constructor & Destructor Documentation

FeatureExtractorProjection::FeatureExtractorProjection ( Orientation  orientations,
int  un_size,
int  max_val 
)

Constructor.

Constructor

Exceptions
ExceptionInvalidArgumentinvalid direction
Parameters
[in]orientationsthe orientations to extract (Orientation::HORIZONTAL, Orientation::VERTICAL)
[in]un_sizethe unitary size of a projection (set to 0 for no resizing (Caution: this may lead to incomparable features!))
[in]max_valthe maximal value in the projection (set to 0 for no scaling)

Definition at line 40 of file CRNFeatureExtractorProjection.cpp.

crn::FeatureExtractorProjection::FeatureExtractorProjection ( const FeatureExtractorProjection )
delete
crn::FeatureExtractorProjection::FeatureExtractorProjection ( FeatureExtractorProjection &&  )
default
virtual crn::FeatureExtractorProjection::~FeatureExtractorProjection ( )
inlineoverridevirtual

Definition at line 50 of file CRNFeatureExtractorProjection.h.

Member Function Documentation

SObject FeatureExtractorProjection::Extract ( Block b)
overridevirtual

Returns a CRNPROTOCOL_FEATURE object computed from a block.

Returns a CRNPROTOCOL_FEATURE object computed from a block

Parameters
[in]bthe block to process
Returns
a SHistogram containing the profiles

Implements crn::FeatureExtractor.

Definition at line 60 of file CRNFeatureExtractorProjection.cpp.

virtual StringUTF8 crn::FeatureExtractorProjection::GetClassName ( ) const
inlineoverridevirtual

Returns the id of the class.

Implements crn::Action.

Definition at line 53 of file CRNFeatureExtractorProjection.h.

FeatureExtractorProjection& crn::FeatureExtractorProjection::operator= ( const FeatureExtractorProjection )
delete
FeatureExtractorProjection& crn::FeatureExtractorProjection::operator= ( FeatureExtractorProjection &&  )
default

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