Class QrCodeBinaryGridReader<T extends ImageGray<T>>

java.lang.Object
boofcv.alg.fiducial.qrcode.QrCodeBinaryGridReader<T>

public class QrCodeBinaryGridReader<T extends ImageGray<T>> extends Object
Reads binary values from the qr code's grid. Top left corner of the qr code is it's origin. +x = right and +y = down same as it is in images.
  • Field Details

  • Constructor Details

    • QrCodeBinaryGridReader

      public QrCodeBinaryGridReader(Class<T> imageType)
  • Method Details

    • setImage

      public void setImage(T image)
    • setLensDistortion

      public void setLensDistortion(int width, int height, @Nullable @Nullable LensDistortionNarrowFOV model)
    • setMarker

      public void setMarker(QrCode qr)
    • setSquare

      public void setSquare(Polygon2D_F64 square, float threshold)
    • setMarkerUnknownVersion

      public void setMarkerUnknownVersion(QrCode qr, float threshold)
    • imageToGrid

      public void imageToGrid(float x, float y, Point2D_F32 grid)
    • imageToGrid

      public void imageToGrid(Point2D_F32 pixel, Point2D_F32 grid)
    • imageToGrid

      public void imageToGrid(Point2D_F64 pixel, Point2D_F64 grid)
      Converts a pixel coordinate into a grid coordinate.
    • gridToImage

      public void gridToImage(float row, float col, Point2D_F32 image)
    • gridToImage

      public void gridToImage(double row, double col, Point2D_F64 image)
    • read

      public float read(float row, float col)
    • readBitIntensity

      public void readBitIntensity(int row, int col, DogArray_F32 intensity)
      Reads intensity values around the location of each bit.
      Parameters:
      row - grid row
      col - grid column
      intensity - (Output) Storage for intensity values
    • readBit

      public int readBit(int row, int col)
      Reads a bit from the qr code's data matrix while adjusting for location distortions using known feature locations.
      Parameters:
      row - grid row
      col - grid column
      Returns:
      0 or 1 value for the bit