Class ConfigHammingGrid

java.lang.Object
boofcv.factory.fiducial.ConfigHammingGrid
All Implemented Interfaces:
Configuration, Serializable

public class ConfigHammingGrid extends Object implements Configuration
Defines the calibration pattern based on hamming square fiducials where each square is a marker that can be uniquely identified. These are typically used for multi camera calibration and are robust against partial occlusions. Aruco Grids are a member of this family.
See Also:
  • Field Details

    • numRows

      public int numRows
      Number of squares tall the grid is
    • numCols

      public int numCols
      Number of squares wide the grid is
    • squareSize

      public double squareSize
      Size of a square in document units
    • spaceToSquare

      public double spaceToSquare
      How wide the space is between squares relative to the length of a square
    • markerOffset

      public int markerOffset
      The first marker will have this ID
    • markers

      public ConfigHammingMarker markers
      Encoding dictionary for binary patterns
  • Constructor Details

    • ConfigHammingGrid

      public ConfigHammingGrid(ConfigHammingMarker dictionary)
    • ConfigHammingGrid

      public ConfigHammingGrid()
  • Method Details

    • checkValidity

      public void checkValidity()
      Description copied from interface: Configuration
      Checks to see if the configuration is valid. If it is invalid, throw an exception explaining what is incorrect.
      Specified by:
      checkValidity in interface Configuration
    • setTo

    • getMarkerWidth

      public double getMarkerWidth()
    • getMarkerHeight

      public double getMarkerHeight()
    • create

      public static ConfigHammingGrid create(HammingDictionary dictionary, int rows, int cols, double squareSize, double spaceToSquare)
      Create from a pre-defined dictionary