apriltag_get_family End of trail navigation bar

Table of Contents

apriltag_show_tag

Display the April tag(s) of a given family and identifier(s).

Syntax

apriltag_show_tag(family, id);      % Displays the April tags with the given identifier(s).
apriltag_show_tag(family);          % Displays the April tags for the entire tag family.

im = apriltag_show_tag(family, id); % Get an image for the April tags with the given identifier(s).
im = apriltag_show_tag(family);     % Get an image for the April tags for the entire tag family.
    

Description

Displays the April tags for a given family. If an id argument is provided then it displays the April tags with the given identifiers only. If no id argument is provided then it shows all the April tags in the family.

If an output argument is specified then it returns the image rather than displaying it.

When more than one tag is shown, the tags are displayed in a mosaic in column-major order i.e., the first tag is in the top, left corner. The next tag is below it, etc. After it reaches the bottom, it resumes in the next column.

To get a list of the available April tag families, use the apriltag_get_families function.

Parameters

family

A string containing the name of an April tag family e.g. 'Tag36h11' or a structure as returned by the apriltag_get_family function.

id

An integer scalar or vector of April tag identifiers. Tag identifiers start at zero.

Outputs

im_out

The image that would have been displayed as an HxW grayscale image.

Examples

apriltag_show_tag('Tag36h11', 0); % show the April tag with identifier 0.
apriltag_show_tag('Tag36h11');    % show all the April tags in the Tag36h11 family.
    

See Also

 

navigation bar