Simulink: Draw-Markers Block

7 views (last 30 days)
H
H on 14 Mar 2011
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?

Answers (2)

Navan Ruthramoorthy
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.

Algirdas Kluonius
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

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!