Table of Contents
Vision Find Contours
This block is currently a beta version. If you are using this block, we would appreciate any feedback at tech@quanser.com. |
Finds connected contours in a binary images.
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 Find Contours block segments connected contours in a binary image and labels it in the output image.
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 single-channel 8-bit source image that uses OpenCV (Open Source Computer Vision) IplImage
structure.
Output Ports
dst_image
A binary (8-bit) destination image that marks the connected contours.
contour
A handle to segmented contour information that uses OpenCV (Open Source Computer Vision) CvMemStorage
and CvSeq
structure.
contour_no
Specifies the number of contours found in the input image.
err
An error signal which is negative in case of invalid memory allocation or usage of invalid parameter values.
Parameters and Dialog Box
Area threshold
Specifies the minimum contour area (in pixels) for contour labeling in the output image. Contours having higher area than the threshold are ignored for contour labeling.
Draw type
Specifies the type of contour labeling in the output image. The labeling options are Contour only
and Fill contour
. The options are described as follows:
Contour only
: The outlines of segmented contours are labeled in the output image without filling contour holes.
Fill contour
: Both the outlines and contour holes are labeled in the output image.
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 |
Copyright ©2024 Quanser Inc. This page was generated 2024-10-17. Submit feedback to Quanser about this page.
Link to this page.