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::FeatureExtractorProfile Class Reference

Profile features extractor class. More...

#include <CRNFeatureExtractorProfile.h>

+ Inheritance diagram for crn::FeatureExtractorProfile:
+ Collaboration diagram for crn::FeatureExtractorProfile:

Public Member Functions

 FeatureExtractorProfile (Direction directions, int un_size, int max_val)
 Constructor. More...
 
 FeatureExtractorProfile (const FeatureExtractorProfile &)=delete
 
 FeatureExtractorProfile (FeatureExtractorProfile &&)=default
 
FeatureExtractorProfileoperator= (const FeatureExtractorProfile &)=delete
 
FeatureExtractorProfileoperator= (FeatureExtractorProfile &&)=default
 
virtual ~FeatureExtractorProfile () 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

Profile features extractor class.

Profile features extractor class.

Author
Yann LEYDIER
Date
October 2007
Version
0.2

Definition at line 40 of file CRNFeatureExtractorProfile.h.

Constructor & Destructor Documentation

FeatureExtractorProfile::FeatureExtractorProfile ( Direction  directions,
int  un_size,
int  max_val 
)

Constructor.

Constructor

Exceptions
ExceptionDomainnegative size or maximal value
ExceptionInvalidArgumentinvalid direction
Parameters
[in]directionsthe directions to extract (Directions::LEFT, Directions::RIGHT, Directions::TOP, Directions::BOTTOM).
[in]un_sizethe unitary size of a profile (set to 0 for no resizing (Caution: this may lead to incomparable features!))
[in]max_valthe maximal value in the profiles (set to 0 for no scaling)

Definition at line 41 of file CRNFeatureExtractorProfile.cpp.

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

Definition at line 50 of file CRNFeatureExtractorProfile.h.

Member Function Documentation

SObject FeatureExtractorProfile::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 61 of file CRNFeatureExtractorProfile.cpp.

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

Returns the id of the class.

Implements crn::Action.

Definition at line 53 of file CRNFeatureExtractorProfile.h.

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

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