marker

package
v0.0.0-...-677f667 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 22, 2015 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Marker

type Marker struct {
	Code      int
	Size      int
	Division  int
	BlockSize int

	Marker *image.NRGBA
	Name   string
	// contains filtered or unexported fields
}

Marker represents the structure of a fiducial marker

func New

func New(code, division, blocksize int, name string, hasBorder bool) *Marker

New returns a Marker with the given parameters. Using these parameters, it generates the visual representation of the marker

func (*Marker) Save

func (m *Marker) Save() error

Save saves the fiducial marker into a PNG image. If no name is specified, 'code-<code>.png' will be used as the filename.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL