Class GridToPixelHelper

java.lang.Object
boofcv.alg.fiducial.aztec.GridToPixelHelper

public class GridToPixelHelper extends Object
Everything you need to go from a grid coordinate into pixels using a homography
  • Field Details

  • Constructor Details

    • GridToPixelHelper

      public GridToPixelHelper()
  • Method Details

    • initOriginCenter

      public void initOriginCenter(Polygon2D_F64 polygon, int squaresWide)
      Origin is defined as the dead center of the center square in the locator pattern. Thus the inner more square black square is from (-0.5, -0.5) to (0.5, 0.5)
      Parameters:
      polygon - Polygon which defines the square grid in image pixels
      squaresWide - Number of squares wide the grid coordinate is inside the square
    • convert

      public void convert(double gridX, double gridY, Point2D_F64 pixel)
      Computes location of grid coordinate on the image in pixels