Simulink: Draw-Markers Block
4 views (last 30 days)
Show older comments
I can't geth the Draw-markers block to work
I get the following error message when i try to connect:
BW signal to the image-input port
(1 centroid from blobs-analysis block) into the Pts input port.
Error message: The Image input has 1 color planes and the Pts input has 1 shapes. The Color value(s) parameter must be a scalar.
Error in port widths or dimensions. Centriod Output port of 'Blob Analysis' is a [2x1] matrix.
I tried flooring the signals (integer), and transposing the signals but it doesnt seem to work.
What am I doing wrong?
0 Comments
Answers (2)
Navan Ruthramoorthy
on 14 Mar 2011
When the input to Draw Markers block is not a color signal the "Color values" parameter must be a scalar. By default that parameter is a vector with 3 values which is suitable for color signals. You need to change this to a scalar representing the intensity value you want.
0 Comments
Algirdas Kluonius
on 13 Jun 2012
In other words , intensity gives u only grayscale image and if it is grayscale you can not get a RGB color in grayscale, what can you do is do an overlay or take image from RGB (before RGB2GRAY block) and pass it though the corner detection that in RGB image you can get RGB color markers
0 Comments
See Also
Categories
Find more on Computer Vision with Simulink in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!