libcrn
3.9.5
A document image processing library
|
Profile features extractor class. More...
#include <CRNFeatureExtractorProfile.h>
Public Member Functions | |
FeatureExtractorProfile (Direction directions, int un_size, int max_val) | |
Constructor. More... | |
FeatureExtractorProfile (const FeatureExtractorProfile &)=delete | |
FeatureExtractorProfile (FeatureExtractorProfile &&)=default | |
FeatureExtractorProfile & | operator= (const FeatureExtractorProfile &)=delete |
FeatureExtractorProfile & | operator= (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... | |
![]() | |
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 |
Profile features extractor class.
Profile features extractor class.
Definition at line 40 of file CRNFeatureExtractorProfile.h.
FeatureExtractorProfile::FeatureExtractorProfile | ( | Direction | directions, |
int | un_size, | ||
int | max_val | ||
) |
Constructor.
Constructor
ExceptionDomain | negative size or maximal value |
ExceptionInvalidArgument | invalid direction |
[in] | directions | the directions to extract (Directions::LEFT, Directions::RIGHT, Directions::TOP, Directions::BOTTOM). |
[in] | un_size | the unitary size of a profile (set to 0 for no resizing (Caution: this may lead to incomparable features!)) |
[in] | max_val | the maximal value in the profiles (set to 0 for no scaling) |
Definition at line 41 of file CRNFeatureExtractorProfile.cpp.
|
delete |
|
default |
|
inlineoverridevirtual |
Definition at line 50 of file CRNFeatureExtractorProfile.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 61 of file CRNFeatureExtractorProfile.cpp.
|
inlineoverridevirtual |
Returns the id of the class.
Implements crn::Action.
Definition at line 53 of file CRNFeatureExtractorProfile.h.
|
delete |
|
default |