Vision Threshold End of trail navigation bar

Table of Contents

Vision Update Map

Beta

This block is currently a beta version. If you are using this block, we would appreciate any feedback at tech@quanser.com.

Updates input image at the specified location.

Library

QUARC Targets Beta/Image Processing/Open Source Computer Vision

Description

Vision Update Map

The Vision Update Map block draws a square or circle on the input image at (x,y) location using the specified parameters.

In order to use this block, be sure to follow the instructions described on the Vision Capture Image page, and take careful note of the limitations.

Input Ports

image

A handle to an image that uses OpenCV (Open Source Computer Vision) IplImage structure.

x

Width or column of the specified location. It increases from left to right of the image.

y

Height or row of the specified location. It increases from top to bottom of the image.

Output Ports

image

Handle of the updated image.

err

The error signal returns a negative value in case of failure to update the input image.

Parameters and Dialog Box

Vision Update Map

Draw

The options for drawing at the specified location are: Square or Circle.

Width or radius

This parameter specifies the width of the square or radius of the circle in pixels. The parameter value must be 1 or higher.

Thickness

This parameter specifies the thickness of the line drawn in pixels. The parameter value must be 1 or higher.

Color

BGR (Blue-Green-Red) color of the line drawn. The first color element specifies an index of blue color. The index value must be 0 to 255. Similarly, the second and third elements are used to specify green and red color values.

Updated map name

Name of the updated image to be saved. The image is saved in JPEG file format. For example, the filename "/home/root/updatedmap" indicates that the image is saved under "/home/root/" folder with the filename updatedmap.jpg.

Sample time

The sample time of the block. A sample time of 0 indicates that the block will be treated as a continuous time block. A positive sample time indicates that the block is a discrete time block with the given sample time. A sample time of -1 indicates that the block inherits its sample time.

Targets

Target Name

Compatible*

Model Referencing

Comments

QUARC Win32 Target

No

No

Not supported.

QUARC Win64 Target

No

No

Not supported.

QUARC Linux Nvidia Target

Yes

Yes

QUARC Linux QBot Platform Target

Yes

Yes

QUARC Linux QCar 2 Target

Yes

Yes

QUARC Linux QDrone 2 Target

Yes

Yes

QUARC Linux Raspberry Pi 3 Target

Yes

Yes

QUARC Linux Raspberry Pi 4 Target

Yes

Yes

QUARC Linux RT ARMv7 Target

Yes

Yes

QUARC Linux x64 Target

Yes

Yes

QUARC Linux DuoVero Target

Yes

Yes

QUARC Linux DuoVero 2016 Target

Yes

Yes

QUARC Linux Verdex Target

Yes

Yes

QUARC QNX x86 Target

No

No

Not supported.

Rapid Simulation (RSIM) Target

No

No

Not supported.

S-Function Target

No

N/A

Old technology. Use model referencing instead.

Normal simulation

Yes

Yes

* Compatible means that the block can be compiled for the target.

 

navigation bar