3#include "../_cexports/c_polimago.h"
5#include "../global.hpp"
7#include "../matrix_2d.hpp"
23 SearchResult() noexcept
35 SearchResult(CExports::TSearchResult res, CExports::TSCLF clfHandle)
38 quality_ = res.Quality;
39 CVB_CALL_CAPI(PMGetXY(clfHandle, res, x_, y_));
41 CVB_CALL_CAPI(PMGetScaleAngle(clfHandle, res, scale_, arad));
45 CVB_CALL_CAPI(PMGetMatrix(clfHandle, res,
reinterpret_cast<CExports::TMatrix &
>(matrix_)));
48 friend class SearchPredictor;
76 double X() const noexcept
76 double X() const noexcept {
…}
86 double Y() const noexcept
86 double Y() const noexcept {
…}
129 CExports::TSearchResult resInternal_;
20 class SearchResult {
…};
142 return (lhs.Quality() == rhs.Quality()) && (lhs.X() == rhs.X()) && (lhs.Y() == rhs.Y())
143 && (lhs.Matrix() == rhs.Matrix()) && (lhs.Rotation() == rhs.Rotation()) && (lhs.Scale() == rhs.Scale());
156 return (!(lhs == rhs));
Object for convenient and type - safe handling of angles.
Definition angle.hpp:16
static Angle FromRadians(double rad, bool trim=false) noexcept
Create an angle in radians.
Definition angle.hpp:39
Double precision 2x2 matrix class.
Definition matrix_2d.hpp:16
Search results as provided by a Search Classifier.
Definition search_result.hpp:21
double Confidence() const noexcept
Search result quality or confidence (just under a different name).
Definition search_result.hpp:66
double Quality() const noexcept
Search result quality or confidence.
Definition search_result.hpp:56
double Scale() const noexcept
Scale of the result (if applicable).
Definition search_result.hpp:96
Angle Rotation() const noexcept
Rotation of the result (if applicable).
Definition search_result.hpp:106
double Y() const noexcept
Y-position.
Definition search_result.hpp:86
double X() const noexcept
X-position.
Definition search_result.hpp:76
class Matrix2D Matrix() const noexcept
Transformation description in Matrix form.
Definition search_result.hpp:116
Namespace for the Polimago package.
Definition classification_predictor.hpp:38
bool operator==(const SearchResult &lhs, const SearchResult &rhs) noexcept
Comparison operator for SearchResult objects.
Definition search_result.hpp:140
bool operator!=(const SearchResult &lhs, const SearchResult &rhs) noexcept
Comparison operator for SearchResult objects.
Definition search_result.hpp:154
Root namespace for the Image Manager interface.
Definition c_bayer_to_rgb.h:17