Simulink: Draw-Markers Block
조회 수: 7 (최근 30일)
이전 댓글 표시
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
답변 (2개)
Navan Ruthramoorthy
2011년 3월 14일
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
Algirdas Kluonius
2012년 6월 13일
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
참고 항목
카테고리
Help Center 및 File Exchange에서 Computer Vision with Simulink에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!