Functions
Tags.cpp File Reference
#include <assert.h>
#include <stdio.h>
#include <stdlib.h>
#include "CRC.hpp"
#include "FEC.hpp"
#include "String.hpp"
#include "SVG.hpp"
Include dependency graph for Tags.cpp:

Go to the source code of this file.

Functions

int main (int arguments_size, char *arguments[])
void SVG__tag_bit (SVG *svg, double cell_width, unsigned int row, unsigned int column, bool border)
 Draw a bit at *row* and *column*.
void SVG__tag_bits (SVG *svg, double cell_width, unsigned int first_column, unsigned int first_row, unsigned int last_column, unsigned int last_row, bool border)
 Draw a rectangular section of bits:
void SVG__tag_write (unsigned int tag_id, unsigned int tag_size, bool border)

Function Documentation

int main ( int  arguments_size,
char *  arguments[] 
)

Definition at line 17 of file Tags.cpp.

void SVG__tag_bit ( SVG svg,
double  cell_width,
unsigned int  row,
unsigned int  column,
bool  border 
)

Draw a bit at *row* and *column*.

Parameters:
svgis the *SVG* object to use.
cell_widthis the cell width and height.
rowis the row to draw the bit at.
columnis the column to draw the bit at.
borderis true if the tag has a border.

SVG__tag_bit* draw a black bit at *row* and *column* in the 12 x 12 matrix that makes up a tag and output it to *svg*. If *border* is *false* the matrix is offset to the left by one.

Definition at line 101 of file Tags.cpp.

void SVG__tag_bits ( SVG svg,
double  cell_width,
unsigned int  first_column,
unsigned int  first_row,
unsigned int  last_column,
unsigned int  last_row,
bool  border 
)

Draw a rectangular section of bits:

Parameters:
svgis the *SVG* object to use.
cell_widthis the cell width and height.
first_columnis the first column of rectantle.
first_rowis the first column of rectantle.
last_columnis the last row to draw the bit at.
last_rowis the last column to draw the bit at.
borderis true if the tag has a border.

SVG__tag_bits*() will draw a row or column of black bits from (*first_column*, *first_row*) to (*last_column*, *last_row*) the 12 x 12 matrix that makes up a tag to *svg*. If *border* false*, the matrix is offset by the left by one.

Definition at line 52 of file Tags.cpp.

void SVG__tag_write ( unsigned int  tag_id,
unsigned int  tag_size,
bool  border 
)

Definition at line 110 of file Tags.cpp.



fiducial_lib
Author(s): Wayne Gramlich
autogenerated on Thu Jun 6 2019 18:08:04