libcrn
3.9.5
A document image processing library
|
A generic classification result. More...
#include <CRNClassifResult.h>
Classes | |
class | SelectId |
Functor to select results in a container. More... | |
Public Member Functions | |
ClassifResult () | |
Default constructor. More... | |
ClassifResult (int cid, double dist, const SCObject &proto) | |
Constructor from prototype. More... | |
ClassifResult (int cid, const String &label, double dist, const SCObject &proto) | |
Constructor from prototype and label. More... | |
ClassifResult (const ClassifResult &)=default | |
ClassifResult (ClassifResult &&)=default | |
ClassifResult & | operator= (const ClassifResult &)=default |
ClassifResult & | operator= (ClassifResult &&)=default |
bool | operator< (const ClassifResult &cr) const noexcept |
Comparison operator. More... | |
Public Attributes | |
int | class_id |
String | class_label |
double | distance |
const SCObject | prototype |
A generic classification result.
A generic classification result.
Definition at line 40 of file CRNClassifResult.h.
|
inline |
Default constructor.
Definition at line 44 of file CRNClassifResult.h.
|
inline |
Constructor from prototype.
Constructor from prototype
[in] | cid | the class index |
[in] | dist | the distance form the prototype to the object |
[in] | proto | the protype |
Definition at line 52 of file CRNClassifResult.h.
|
inline |
Constructor from prototype and label.
Constructor from prototype and label
[in] | cid | the class index |
[in] | label | the label of the class |
[in] | dist | the distance form the prototype to the object |
[in] | proto | the protype |
Definition at line 61 of file CRNClassifResult.h.
|
default |
|
default |
|
inlinenoexcept |
Comparison operator.
Comparison operator
[in] | cr | the result to compare with |
Definition at line 79 of file CRNClassifResult.h.
|
default |
|
default |
int crn::ClassifResult::class_id |
index of the class
Definition at line 68 of file CRNClassifResult.h.
String crn::ClassifResult::class_label |
label of the class
Definition at line 69 of file CRNClassifResult.h.
double crn::ClassifResult::distance |
distance from the prototype to the object
Definition at line 70 of file CRNClassifResult.h.
const SCObject crn::ClassifResult::prototype |
prototype
Definition at line 71 of file CRNClassifResult.h.