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

OverlappingAngleHistogram features extractor class. More...

#include <CRNFeatureExtractorOverlappingAngleHistogram.h>

+ Inheritance diagram for crn::FeatureExtractorOverlappingAngleHistogram:
+ Collaboration diagram for crn::FeatureExtractorOverlappingAngleHistogram:

Public Member Functions

 FeatureExtractorOverlappingAngleHistogram (unsigned int nb_angles, double distance_factor=1.0)
 Constructor. More...
 
 FeatureExtractorOverlappingAngleHistogram (const FeatureExtractorOverlappingAngleHistogram &)=delete
 
 FeatureExtractorOverlappingAngleHistogram (FeatureExtractorOverlappingAngleHistogram &&)=default
 
FeatureExtractorOverlappingAngleHistogramoperator= (const FeatureExtractorOverlappingAngleHistogram &)=delete
 
FeatureExtractorOverlappingAngleHistogramoperator= (FeatureExtractorOverlappingAngleHistogram &&)=default
 
virtual ~FeatureExtractorOverlappingAngleHistogram () 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...
 
virtual SObject ExtractWithMask (Block &b, ImageIntGray &mask) override
 
- Public Member Functions inherited from crn::FeatureExtractor
virtual ~FeatureExtractor () override
 
- 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

OverlappingAngleHistogram features extractor class.

Computes 9 overlapping angle histograms. Each angle is weighted by the gaussian distance to the reference point of each histogram. The central histogram is placed on the center of mass, the others on a square at a distance of distance_factor×std deviation.

Author
Yann LEYDIER
Date
December 2012
Version
0.1

Definition at line 40 of file CRNFeatureExtractorOverlappingAngleHistogram.h.

Constructor & Destructor Documentation

crn::FeatureExtractorOverlappingAngleHistogram::FeatureExtractorOverlappingAngleHistogram ( unsigned int  nb_angles,
double  distance_factor = 1.0 
)
inline

Constructor.

Constructor

Parameters
[in]nb_anglesthe number of angles per histogram
[in]distance_factora factor to compute the distance between the reference points

Definition at line 50 of file CRNFeatureExtractorOverlappingAngleHistogram.h.

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

Member Function Documentation

SObject FeatureExtractorOverlappingAngleHistogram::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 48 of file CRNFeatureExtractorOverlappingAngleHistogram.cpp.

SObject FeatureExtractorOverlappingAngleHistogram::ExtractWithMask ( Block b,
ImageIntGray mask 
)
overridevirtual

Returns a CRNPROTOCOL_FEATURE object computed from a block

Parameters
[in]bthe block to process
[in]maskthe mask of the connected component to process
Returns
a SHistogram containing the profiles

Reimplemented from crn::FeatureExtractor.

Definition at line 137 of file CRNFeatureExtractorOverlappingAngleHistogram.cpp.

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

Returns the id of the class.

Implements crn::Action.

Definition at line 59 of file CRNFeatureExtractorOverlappingAngleHistogram.h.

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

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