3#include "../_cexports/c_sf2.h"
5#include "shapefinder2.hpp"
7#include "../point_2d.hpp"
8#include "../string.hpp"
26 SearchResult() noexcept
42 return precisionMode_;
60 double X() const noexcept
60 double X() const noexcept {
…}
70 double Y() const noexcept
70 double Y() const noexcept {
…}
114 return ((*this).PrecisionMode() != rhs.PrecisionMode()) || ((*this).Position() != rhs.Position())
115 || ((*this).Quality() != rhs.Quality()) || ((*this).Rotation() != rhs.Rotation())
116 || ((*this).Scale() != rhs.Scale());
128 return (!(*
this != rhs));
133 : precisionMode_(mode)
135 if (data.size() == 5)
137 position_.
SetX(data[0]);
138 position_.
SetY(data[1]);
140 rotation_ = data[3] * CVB_M_PI / 180.0;
147 Point2D<double> position_;
152 friend class Classifier;
22 class SearchResult {
…};
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
Multi-purpose 2D vector class.
Definition point_2d.hpp:20
void SetX(T x) noexcept
Sets the x-component of the point.
Definition point_2d.hpp:94
void SetY(T y)
Sets the y-component of the point.
Definition point_2d.hpp:114
Search result as returned by the classifier.
Definition search_result.hpp:23
bool operator!=(const SearchResult &rhs) const noexcept
Comparison operator for SearchResult objects.
Definition search_result.hpp:112
double Quality() const noexcept
Quality measure of the result.
Definition search_result.hpp:80
double Scale() const noexcept
Scale of the result relative the originally trained object.
Definition search_result.hpp:90
Point2D< double > Position() const noexcept
Result location in the image.
Definition search_result.hpp:50
Angle Rotation() const noexcept
Rotation angle of the result.
Definition search_result.hpp:100
double Y() const noexcept
Y position at which the object has been found.
Definition search_result.hpp:70
double X() const noexcept
X position at which the object has been found.
Definition search_result.hpp:60
bool operator==(const SearchResult &rhs) const noexcept
Comparison operator for SearchResult objects.
Definition search_result.hpp:126
Cvb::ShapeFinder2::PrecisionMode PrecisionMode() const noexcept
PrecisionMode that was used for generating this result.
Definition search_result.hpp:40
Namespace for the ShapeFinder2 package.
Definition classifier.hpp:30
PrecisionMode
Controls precision over accuracy for ShapeFinder 1 type searches.
Definition shapefinder2.hpp:42
@ NoCorrelation
In the NoCorrelation mode, only the ShapeFinder edge model will be searched.
Definition shapefinder2.hpp:44
Root namespace for the Image Manager interface.
Definition c_bayer_to_rgb.h:17