104 static AlignmentPatterns detectAlignmentPatterns(
const uint8_t* yFrame,
const unsigned int width,
const unsigned int height,
const unsigned int paddingElements,
const unsigned int searchX,
const unsigned int searchY,
const unsigned int searchWidth,
const unsigned int searchHeight,
const bool isNormalReflectance,
const unsigned int grayThreshold);
121 static void detectAlignmentPatternsInRow(
const uint8_t* yFrame,
const unsigned int width,
const unsigned int height,
const unsigned int paddingElements,
const unsigned int row,
const unsigned int xOffset,
const unsigned int yOffset,
const bool isNormalReflectance,
const unsigned int grayThreshold,
AlignmentPatterns& alignmentPatterns);
137 static bool checkInCircle(
const uint8_t* yFrame,
const unsigned int width,
const unsigned int height,
const unsigned int paddingElements,
const unsigned int xCenter,
const unsigned int yCenter,
const unsigned int minLength,
const unsigned int maxLength,
const bool isNormalReflectance,
const unsigned int grayThreshold);
154 static bool checkInDirection(
const uint8_t* yFrame,
const unsigned int width,
const unsigned int height,
const unsigned int paddingElements,
const unsigned int xCenter,
const unsigned int yCenter,
const unsigned int minLength,
const unsigned int maxLength,
const bool isNormalReflectance,
const unsigned int grayThreshold,
const Scalar angle);
159 averageSegmentSize_(averageSegmentSize)
This class implements a detector for alignment patterns inside QR codes.
Definition: AlignmentPatternDetector.h:87
static bool checkInDirection(const uint8_t *yFrame, const unsigned int width, const unsigned int height, const unsigned int paddingElements, const unsigned int xCenter, const unsigned int yCenter, const unsigned int minLength, const unsigned int maxLength, const bool isNormalReflectance, const unsigned int grayThreshold, const Scalar angle)
Performs a check to confirm a detection in a specified direction.
static bool checkInCircle(const uint8_t *yFrame, const unsigned int width, const unsigned int height, const unsigned int paddingElements, const unsigned int xCenter, const unsigned int yCenter, const unsigned int minLength, const unsigned int maxLength, const bool isNormalReflectance, const unsigned int grayThreshold)
Performs a circular check around a candidate location to confirm a detection in a row.
static void detectAlignmentPatternsInRow(const uint8_t *yFrame, const unsigned int width, const unsigned int height, const unsigned int paddingElements, const unsigned int row, const unsigned int xOffset, const unsigned int yOffset, const bool isNormalReflectance, const unsigned int grayThreshold, AlignmentPatterns &alignmentPatterns)
Detects alignment patterns in a row of an image.
static AlignmentPatterns detectAlignmentPatterns(const uint8_t *yFrame, const unsigned int width, const unsigned int height, const unsigned int paddingElements, const unsigned int searchX, const unsigned int searchY, const unsigned int searchWidth, const unsigned int searchHeight, const bool isNormalReflectance, const unsigned int grayThreshold)
Detects alignment patterns in the specified search region.
This class implements an alignment pattern inside QR codes.
Definition: AlignmentPatternDetector.h:37
bool isValid() const
Returns true if this alignment pattern is valid.
Definition: AlignmentPatternDetector.h:174
Vector2 center_
The center location of the alignment pattern.
Definition: AlignmentPatternDetector.h:73
unsigned int averageSegmentSize_
The average segment size in pixels that has been measured during the detection.
Definition: AlignmentPatternDetector.h:76
AlignmentPattern()=default
Default constructor that creates an invalid alignment pattern.
unsigned int averageSegmentSize() const
Returns the average segment size in pixels that has been measured during the detection.
Definition: AlignmentPatternDetector.h:169
const Vector2 & center() const
Returns the center location at which this alignment pattern was detected.
Definition: AlignmentPatternDetector.h:164
static constexpr T minValue()
Returns the min scalar value.
Definition: Numeric.h:3250
const T & x() const noexcept
Returns the x value.
Definition: Vector2.h:698
const T & y() const noexcept
Returns the y value.
Definition: Vector2.h:710
float Scalar
Definition of a scalar type.
Definition: Math.h:128
VectorT2< Scalar > Vector2
Definition of a 2D vector.
Definition: Vector2.h:21
std::vector< AlignmentPattern > AlignmentPatterns
Definition of a vector of alignment patterns.
Definition: AlignmentPatternDetector.h:80
std::vector< QRCode > QRCodes
Definition of a vector of QR codes.
Definition: QRCode.h:25
The namespace covering the entire Ocean framework.
Definition: Accessor.h:15