![]()  | 
  
    Image Component Library (ICL)
    
   | 
 
Marker Grid geometry definition type. More...
#include <MarkerGridDetector.h>
  
Public Member Functions | |
| GridDefinition () | |
| GridDefinition (const utils::Size &numCells, const std::vector< int > &markerIDs=std::vector< int >(), const std::string &markerType="bch") | |
| constructor with given parameters  More... | |
| utils::Point | getPos (int id) const | 
| returns the grid x/y index for a given marker ID  More... | |
| int | getIndex (int id) const | 
| returns linear grid position (row-major order!)  More... | |
| int | getWidth () const | 
| returns the number of grid x-cells  More... | |
| int | getHeight () const | 
| returns the number of grid y-cells  More... | |
| int | getDim () const | 
| returns the number of grid cells (WxH)  More... | |
| const utils::Size & | getSize () const | 
| returns the grid dimension in cells  More... | |
| const std::string & | getMarkerType () const | 
| returns the marker type (bch is most common!)  More... | |
| const std::vector< int > & | getMarkerIDs () const | 
| returns the internal list of marker IDs  More... | |
Private Attributes | |
| std::map< int, utils::Point > | posLUT | 
| internally used lookup for marker IDs/grid-positions  More... | |
| utils::Size | numCells | 
| grid dimension  More... | |
| std::vector< int > | ids | 
| used marker IDs  More... | |
| std::string | markerType | 
| marker type  More... | |
Marker Grid geometry definition type.
The grid is defined by a number of grid cells WxH in horizontal and vertical direction resulting in a total of N=W*H markers. The marker type can chosen freely and also the marker IDs that are to be used. By default, the trivial set of marker IDs {0, .., N-1} is used. The class returns a 2D array of Fiducials. Markers that are not found result in a null Fiducial in that cell.
| icl::markers::MarkerGridDetector::GridDefinition::GridDefinition | ( | ) | 
| icl::markers::MarkerGridDetector::GridDefinition::GridDefinition | ( | const utils::Size & | numCells, | 
| const std::vector< int > & | markerIDs = std::vector< int >(),  | 
        ||
| const std::string & | markerType = "bch"  | 
        ||
| ) | 
constructor with given parameters
| int icl::markers::MarkerGridDetector::GridDefinition::getDim | ( | ) | const | 
returns the number of grid cells (WxH)
| int icl::markers::MarkerGridDetector::GridDefinition::getHeight | ( | ) | const | 
returns the number of grid y-cells
| int icl::markers::MarkerGridDetector::GridDefinition::getIndex | ( | int | id | ) | const | 
returns linear grid position (row-major order!)
| const std::vector<int>& icl::markers::MarkerGridDetector::GridDefinition::getMarkerIDs | ( | ) | const | 
returns the internal list of marker IDs
| const std::string& icl::markers::MarkerGridDetector::GridDefinition::getMarkerType | ( | ) | const | 
returns the marker type (bch is most common!)
| utils::Point icl::markers::MarkerGridDetector::GridDefinition::getPos | ( | int | id | ) | const | 
returns the grid x/y index for a given marker ID
If the id is not contained in the grid, (-1,-1) is returned
| const utils::Size& icl::markers::MarkerGridDetector::GridDefinition::getSize | ( | ) | const | 
returns the grid dimension in cells
| int icl::markers::MarkerGridDetector::GridDefinition::getWidth | ( | ) | const | 
returns the number of grid x-cells
      
  | 
  private | 
used marker IDs
      
  | 
  private | 
marker type
      
  | 
  private | 
grid dimension
      
  | 
  private | 
internally used lookup for marker IDs/grid-positions
 1.8.15