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
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddAllFeatures(QrCode qr) voidfinal voidgridToImage(float row, float col, Point2D_F32 pixel) final voidimageToGrid(double x, double y, Point2D_F64 grid) final voidimageToGrid(float x, float y, Point2D_F32 grid) booleanvoidOutside corners on position patterns are more likely to be damaged, so remove themvoidsetAdjustWithFeatures(boolean adjustWithFeatures) voidvoidUsed to estimate the image to grid coordinate system before the version is known.voidsetTransformFromSquare(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
-