Effacer les filtres
Effacer les filtres

Simulink: Draw-Markers Block

1 vue (au cours des 30 derniers jours)
H
H le 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?

Réponses (2)

Navan Ruthramoorthy
Navan Ruthramoorthy le 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 le 13 Juin 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

Catégories

En savoir plus sur Computer Vision with Simulink dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by