libcrn
3.9.5
A document image processing library
|
Projection features extractor class. More...
#include <CRNFeatureExtractorProjection.h>
Public Member Functions | |
FeatureExtractorProjection (Orientation orientations, int un_size, int max_val) | |
Constructor. More... | |
FeatureExtractorProjection (const FeatureExtractorProjection &)=delete | |
FeatureExtractorProjection (FeatureExtractorProjection &&)=default | |
FeatureExtractorProjection & | operator= (const FeatureExtractorProjection &)=delete |
FeatureExtractorProjection & | operator= (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... | |
![]() | |
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... | |
![]() | |
virtual | ~Action () override |
Destructor. More... | |
void | Deserialize (xml::Element &el) |
xml::Element | Serialize (xml::Element &parent) const |
![]() | |
virtual | ~Object ()=default |
Additional Inherited Members | |
![]() | |
crn::Map | UserData |
Projection features extractor class.
Projection features extractor class.
Definition at line 40 of file CRNFeatureExtractorProjection.h.
FeatureExtractorProjection::FeatureExtractorProjection | ( | Orientation | orientations, |
int | un_size, | ||
int | max_val | ||
) |
Constructor.
Constructor
ExceptionInvalidArgument | invalid direction |
[in] | orientations | the orientations to extract (Orientation::HORIZONTAL, Orientation::VERTICAL) |
[in] | un_size | the unitary size of a projection (set to 0 for no resizing (Caution: this may lead to incomparable features!)) |
[in] | max_val | the maximal value in the projection (set to 0 for no scaling) |
Definition at line 40 of file CRNFeatureExtractorProjection.cpp.
|
delete |
|
default |
|
inlineoverridevirtual |
Definition at line 50 of file CRNFeatureExtractorProjection.h.
|
overridevirtual |
Returns a CRNPROTOCOL_FEATURE object computed from a block.
Returns a CRNPROTOCOL_FEATURE object computed from a block
[in] | b | the block to process |
Implements crn::FeatureExtractor.
Definition at line 60 of file CRNFeatureExtractorProjection.cpp.
|
inlineoverridevirtual |
Returns the id of the class.
Implements crn::Action.
Definition at line 53 of file CRNFeatureExtractorProjection.h.
|
delete |
|
default |