Table of Contents
Vision Draw Polygon
This block is currently a beta version. If you are using this block, we would appreciate any feedback at tech@quanser.com. |
Draws polygons.
Library
MATLAB Command Line
Click to copy the following command line to the clipboard. Then paste it in the MATLAB Command Window:
qc_open_library('quarc_library_beta/Image Processing/Open Source Computer Vision')Description
The Vision Draw Polygon block draws polygons on the input image using the specified vertices.
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
src_image
A handle to a source image that uses OpenCV (Open Source Computer Vision) IplImage
structure.
The input may be a color or grayscale image.
x
Specifies a vector of x
coordinates of the vertices.
y
Specifies a vector of y
coordinates of the vertices.
Output Ports
dst_image
A handle to the destination image, which may be in 24-bit or 8-bit format depending on the input image. The output image shows the polygon drawn at the specified location.
err
An error signal which is negative in case of invalid memory allocation or usage of invalid parameter values.
Parameters and Dialog Box
Color
Specify color components of the polygon to be drawn.
Thickness
Specifies a thickness of the polygon.
Line type
Specifies a type of polygon boundary, which is 4-connected
, 8-connected
, or Antialiased
.
Antialiased shapes are drawn using Gaussian filtering.
Convex polygon
If this check box is marked, a closed polygon is drawn.
Fill convex polygon interior
If this check box is marked, the polygon interior is filled with the specified color.
Erase old trace
If this check box is marked, old traces are erased from the output image.
Updated image name
Specifies a name of the output image to be saved prior to model termination. The image is saved in JPEG file format. For example, the filename "/media/card/updatedimage" indicates that the image is saved under "/media/card/" folder with the filename updatedimage.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 |
---|---|---|---|
No |
No |
Not supported. |
|
No |
No |
Not supported. |
|
Yes |
Yes |
||
Yes |
Yes |
||
Yes |
Yes |
||
Yes |
Yes |
||
Yes |
Yes |
||
Yes |
Yes |
||
Yes |
Yes |
||
Yes |
Yes |
||
Yes |
Yes |
||
Yes |
Yes |
||
Yes |
Yes |
||
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 |
See Also
Copyright ©2024 Quanser Inc. This page was generated 2024-10-17. Submit feedback to Quanser about this page.
Link to this page.