154 ocean_assert(
false &&
"Frame must be valid and an 8 bit grayscale image and the pixel origin must be the upper left corner");
166 ocean_assert(fovX >
Scalar(0));
174 *sharedAnyCamera = std::make_shared<AnyCameraPinhole>(std::move(anyCamera));
184 ocean_assert(
false &&
"Frame must be valid and an 8 bit grayscale image and the pixel origin must be the upper left corner");
Definition of a class for finder patterns of QR codes (squares in the top-left, top-right and bottom-...
Definition FinderPatternDetector.h:58
FinderPattern finderPattern_
The finder pattern of the Micro QR code.
Definition MicroQRCodeDetector2D.h:84
Observation()=default
Creates an invalid observation.
HomogenousMatrix4 code_T_camera_
The transformation that maps 3D coordinates in the Micro QR code grid to the camera frame of referenc...
Definition MicroQRCodeDetector2D.h:81
bool isValid() const
Returns if the observation is valid.
Definition MicroQRCodeDetector2D.h:135
const HomogenousMatrix4 & code_T_camera() const
Returns the transformation that maps coordinates in the Micro QR code grid to coordinates in the refe...
Definition MicroQRCodeDetector2D.h:140
const FinderPattern & finderPattern() const
Returns a pointer to the finder patterns.
Definition MicroQRCodeDetector2D.h:145
This class implements a detector for Micro QR Codes.
Definition MicroQRCodeDetector2D.h:38
std::vector< Observation > Observations
Definition of a vector of observations.
Definition MicroQRCodeDetector2D.h:88
static MicroQRCodes detectMicroQRCodes(const AnyCamera &anyCamera, const uint8_t *const yFrame, const unsigned int width, const unsigned int height, const unsigned int paddingElements, Observations *observations=nullptr, Worker *worker=nullptr)
Detects Micro QR codes in an 8-bit grayscale image.
static MicroQRCodes detectMicroQRCodes(const Frame &yFrame, Observations *observations=nullptr, Worker *worker=nullptr, SharedAnyCamera *anyCamera=nullptr)
Detects Micro QR codes in an 8-bit grayscale image without lens distortion.
Definition MicroQRCodeDetector2D.h:150
This class implements common functionality of Micro QR code detectors but is not a stand-alone detect...
Definition MicroQRCodeDetector.h:33
static Scalar fovY2X(const Scalar fovY, const Scalar aspectRatio)
This class implements Ocean's image class.
Definition Frame.h:1969
const T * constdata(const unsigned int planeIndex=0u) const
Returns a pointer to the read-only pixel data of a specific plane.
Definition Frame.h:4425
bool isValid() const
Returns whether this frame is valid.
Definition Frame.h:4705
unsigned int paddingElements(const unsigned int planeIndex=0u) const
Returns the optional number of padding elements at the end of each row for a specific plane.
Definition Frame.h:4299
@ FORMAT_Y8
Pixel format for grayscale images with byte order Y and 8 bits per pixel.
Definition Frame.h:596
unsigned int width() const
Returns the width of the frame format in pixel.
Definition Frame.h:3334
PixelOrigin pixelOrigin() const
Returns the pixel origin of the frame.
Definition Frame.h:3379
static bool arePixelFormatsCompatible(const PixelFormat pixelFormatA, const PixelFormat pixelFormatB)
Returns whether two given pixel formats are compatible.
PixelFormat pixelFormat() const
Returns the pixel format of the frame.
Definition Frame.h:3344
@ ORIGIN_UPPER_LEFT
The first pixel lies in the upper left corner, the last pixel in the lower right corner.
Definition Frame.h:1140
unsigned int height() const
Returns the height of the frame in pixel.
Definition Frame.h:3339
static constexpr Scalar deg2rad(const Scalar deg)
This class implements a worker able to distribute function calls over different threads.
Definition Worker.h:33
PinholeCameraT< Scalar > PinholeCamera
Definition of an pinhole camera object with Scalar precision.
Definition PinholeCamera.h:39
HomogenousMatrixT4< Scalar > HomogenousMatrix4
Definition of the HomogenousMatrix4 object, depending on the OCEAN_MATH_USE_SINGLE_PRECISION flag eit...
Definition HomogenousMatrix4.h:44
AnyCameraT< Scalar > AnyCamera
Definition of an AnyCamera object with Scalar precision.
Definition AnyCamera.h:31
AnyCameraPinholeT< Scalar > AnyCameraPinhole
Definition of an AnyCamera object based on Ocean's pinhole camera class with element precision 'Scala...
Definition AnyCamera.h:1650
std::shared_ptr< AnyCamera > SharedAnyCamera
Definition of a shared pointer holding an AnyCamera object with Scalar precision.
Definition AnyCamera.h:61
float Scalar
Definition of a scalar type.
Definition Math.h:129
Definition AlignmentPatternDetector.h:30
std::vector< MicroQRCode > MicroQRCodes
Definition of a vector of Micro QR codes.
Definition MicroQRCode.h:28
Namespace of the CV Detector library.
Definition Barcode.h:19
Namespace of the CV library.
Definition Advanced.h:17
The namespace covering the entire Ocean framework.
Definition Accessor.h:15