Package boofcv.alg.fiducial.qrcode
Class QrCodeBinaryGridToPixel
java.lang.Object
boofcv.alg.fiducial.qrcode.QrCodeBinaryGridToPixel
public class QrCodeBinaryGridToPixel extends Object
Given a set of control points, it computes a distortion model and allows the user to read the value of grid elements.
-
Field Summary
Fields Modifier and Type Field Description Homography2D_F64
Hinv
-
Constructor Summary
Constructors Constructor Description QrCodeBinaryGridToPixel()
-
Method Summary
Modifier and Type Method Description void
addAllFeatures(QrCode qr)
void
computeTransform()
void
gridToImage(float row, float col, Point2D_F32 pixel)
void
imageToGrid(double x, double y, Point2D_F64 grid)
void
imageToGrid(float x, float y, Point2D_F32 grid)
boolean
removeFeatureWithLargestError()
void
removeOutsideCornerFeatures()
Outside corners on position patterns are more likely to be damaged, so remove themvoid
setAdjustWithFeatures(boolean adjustWithFeatures)
void
setHomographyInv(Homography2D_F64 Hinv)
void
setTransformFromLinesSquare(QrCode qr)
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
-