Package boofcv.alg.fiducial.microqr
Class MicroQrPose3DUtils
java.lang.Object
boofcv.alg.fiducial.microqr.MicroQrPose3DUtils
Utilities when estimating the 3D pose of a Micro QR Code. Each landmark (e.g. corner on a locator pattern) is assigned
an ID. Functions are provided for accessing coordinates (of each landmark by ID. 3D coordinates in marker frame
have values from -1 to 1 to make it more numerically favorable for linear estimators. This scale offset is easily
fixed with a multiplication after the pose has been found.
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturns a list ofPoint2D3D
.getLandmark3D
(int version) Location of each corner in the QR Code's reference frame in 3DConverts the corner observations intoPointIndex2D_F64
where observations are in pixelsvoid
setLensDistortion
(@Nullable Point2Transform2_F64 pixelToNorm, @Nullable Point2Transform2_F64 undistToDist) Specifies transform from pixel to normalize image coordinates
-
Field Details
-
pixelControl
-
point23
-
point3D
-
pixelToNorm
-
undistToDist
-
-
Constructor Details
-
MicroQrPose3DUtils
public MicroQrPose3DUtils()
-
-
Method Details
-
getLandmarkByIndex
Converts the corner observations intoPointIndex2D_F64
where observations are in pixels -
getLandmark2D3D
Returns a list ofPoint2D3D
. The 2D observation is the corner in normalized image coordinates. The 3D location is the location of the corner in the marker's reference frame- Parameters:
qr
- The qr code- Returns:
- List of corner points in marker frame and normalized image coordinates
-
getLandmark3D
Location of each corner in the QR Code's reference frame in 3D- Parameters:
version
- QR Code's version- Returns:
- List. Recycled on each call
-
setLensDistortion
public void setLensDistortion(@Nullable @Nullable Point2Transform2_F64 pixelToNorm, @Nullable @Nullable Point2Transform2_F64 undistToDist) Specifies transform from pixel to normalize image coordinates -
getPixelToNorm
-