Package boofcv.alg.fiducial.qrcode
Class QrCodeBinaryGridToPixel
java.lang.Object
boofcv.alg.fiducial.qrcode.QrCodeBinaryGridToPixel
Given a set of control points, it computes a distortion model and allows the user to read the value of grid elements.
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addAllFeatures
(QrCode qr) void
final void
gridToImage
(float row, float col, Point2D_F32 pixel) final void
imageToGrid
(double x, double y, Point2D_F64 grid) final void
imageToGrid
(float x, float y, Point2D_F32 grid) boolean
void
Outside corners on position patterns are more likely to be damaged, so remove themvoid
setAdjustWithFeatures
(boolean adjustWithFeatures) void
void
Used to estimate the image to grid coordinate system before the version is known.void
setTransformFromSquare
(Polygon2D_F64 square)
-
Field Details
-
Hinv
-
-
Constructor Details
-
QrCodeBinaryGridToPixel
public QrCodeBinaryGridToPixel()
-
-
Method Details
-
setTransformFromSquare
-
setTransformFromLinesSquare
Used to estimate the image to grid coordinate system before the version is known. The top left square is used to fix the coordinate system. Then 4 lines between corners going to other QR codes is used to make it less suspectable to errors in the first 4 corners -
addAllFeatures
-
removeOutsideCornerFeatures
public void removeOutsideCornerFeatures()Outside corners on position patterns are more likely to be damaged, so remove them -
removeFeatureWithLargestError
public boolean removeFeatureWithLargestError() -
computeTransform
public void computeTransform() -
imageToGrid
-
imageToGrid
-
gridToImage
-
setAdjustWithFeatures
public void setAdjustWithFeatures(boolean adjustWithFeatures) -
setHomographyInv
-