102 static bool extractModulesFromImage(
const AnyCamera& anyCamera,
const uint8_t*
const yFrame,
const unsigned int width,
const unsigned int height,
const unsigned int paddingElements,
const unsigned int version,
const HomogenousMatrix4& code_T_camera,
const bool isNormalReflectance,
const unsigned int grayThreshold, std::vector<uint8_t>& modules,
const Scalar scale =
Scalar(1));
This class implements the abstract base class for all AnyCamera objects.
Definition: AnyCamera.h:130
Definition of a class for finder patterns of QR codes (squares in the top-left, top-right and bottom-...
Definition: FinderPatternDetector.h:58
This class implements common functionality of QR code detectors but is not a stand-alone detector.
Definition: QRCodeDetector.h:33
static bool computeProvisionalVersionRange(const FinderPattern &topLeft, const FinderPattern &bottomLeft, const FinderPattern &topRight, unsigned int &versionX, unsigned int &versionY)
Determines the version of the QR code symbols from the size and distance of its three finder patterns...
static bool computeModuleSizeInPlane(const AnyCamera &anyCamera, const Plane3 &plane, const Vector2 &imagePoint, const Vector3 &planePoint, const Scalar moduleSizeInImage, Scalar &moduleSizeInPlane)
Convert the module size in pixels of a finder pattern to the size in a given plane that contains undi...
static bool computePoses(const AnyCamera &anyCamera, const uint8_t *const yFrame, const unsigned int width, const unsigned int height, const unsigned int paddingElements, const FinderPattern *finderPatterns, const unsigned int version, HomogenousMatrices4 &code_T_cameras, const Scalar scale=Scalar(1))
Computes poses of a QR code given a specific version number Given the locations of the three finder p...
static bool extractModulesFromImage(const AnyCamera &anyCamera, const uint8_t *const yFrame, const unsigned int width, const unsigned int height, const unsigned int paddingElements, const unsigned int version, const HomogenousMatrix4 &code_T_camera, const bool isNormalReflectance, const unsigned int grayThreshold, std::vector< uint8_t > &modules, const Scalar scale=Scalar(1))
Extracts all modules of a QR code from an image.
static bool computeProvisionalVersionRange(const AnyCamera &anyCamera, const FinderPattern *finderPatterns, const unsigned int maxAllowedVersionDifference, unsigned int &versionLow, unsigned int &versionHigh)
Estimates the range of version numbers based on pixel distances of pairs of finder patterns Estimates...
static bool computeProvisionalVersion(const Vector3 ¢erA, const Vector3 ¢erB, const Scalar moduleSizeA, const Scalar moduleSizeB, const unsigned int maxAllowedVersionDifference, unsigned int &versionLow, unsigned int &versionHigh)
Estimates the version numbers based on pixel distances of a pair of finder patterns.
float Scalar
Definition of a scalar type.
Definition: Math.h:128
std::vector< HomogenousMatrix4 > HomogenousMatrices4
Definition of a vector holding HomogenousMatrix4 objects.
Definition: HomogenousMatrix4.h:73
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