3#include "../_cexports/c_sf2.h"
5#include "shapefinder2.hpp"
7#include "../point_2d.hpp"
8#include "../string.hpp"
39 return precisionMode_;
57 double X () const noexcept
67 double Y () const noexcept
111 return ((*this).PrecisionMode() != rhs.PrecisionMode()) || ((*this).Position() != rhs.Position()) || ((*this).Quality() != rhs.Quality()) || ((*this).Rotation() != rhs.Rotation()) || ((*this).Scale() != rhs.Scale());
123 return (!(*
this != rhs));
128 : precisionMode_ (mode)
130 if (data.size() == 5)
132 position_.
SetX(data[0]);
133 position_.
SetY(data[1]);
135 rotation_ = data[3] * CVB_M_PI / 180.0;
142 Point2D<double> position_;
147 friend class Classifier;
153using ShapeFinder2::SearchResult;
Object for convenient and type - safe handling of angles.
Definition: angle.hpp:19
static Angle FromRadians(double rad, bool trim=false) noexcept
Create an angle in radians.
Definition: angle.hpp:44
T X() const noexcept
Gets the x-component of the point.
Definition: point_2d.hpp:86
T Y() const noexcept
Gets the y-component of the point.
Definition: point_2d.hpp:106
void SetX(T x) noexcept
Sets the x-component of the point.
Definition: point_2d.hpp:96
void SetY(T y)
Sets the y-component of the point.
Definition: point_2d.hpp:116
Search result as returned by the classifier.
Definition: search_result.hpp:24
bool operator!=(const SearchResult &rhs) const noexcept
Comparison operator for SearchResult objects.
Definition: search_result.hpp:109
double Quality() const noexcept
Quality measure of the result.
Definition: search_result.hpp:77
double Scale() const noexcept
Scale of the result relative the originally trained object.
Definition: search_result.hpp:87
Point2D< double > Position() const noexcept
Result location in the image.
Definition: search_result.hpp:47
Angle Rotation() const noexcept
Rotation angle of the result.
Definition: search_result.hpp:97
double Y() const noexcept
Y position at which the object has been found.
Definition: search_result.hpp:67
double X() const noexcept
X position at which the object has been found.
Definition: search_result.hpp:57
bool operator==(const SearchResult &rhs) const noexcept
Comparison operator for SearchResult objects.
Definition: search_result.hpp:121
Cvb::ShapeFinder2::PrecisionMode PrecisionMode() const noexcept
PrecisionMode that was used for generating this result.
Definition: search_result.hpp:37
PrecisionMode
Controls precision over accuracy for ShapeFinder 1 type searches.
Definition: shapefinder2.hpp:47
@ NoCorrelation
In the NoCorrelation mode, only the ShapeFinder edge model will be searched.
Root namespace for the Image Manager interface.
Definition: c_barcode.h:15