필터 지우기
필터 지우기

InsertShape crossed lines produce a non-color value, how to fix?

조회 수: 1 (최근 30일)
mark palmer
mark palmer 2023년 1월 13일
댓글: mark palmer 2023년 1월 13일
Whey is there a white value where the two lines cross in this example, and how can I keep it the color specified in InsertShape?
clear all
pzzz = 255 - uint8(zeros(200,200,3)); % DOUBLE TO UINT8
pzzz = insertShape(pzzz,'Polygon', [1 100 200 1, 10 10 150 150],...
Color=[0 0 0], LineWidth=5, Opacity=1);
imagesc(pzzz)

채택된 답변

Image Analyst
Image Analyst 2023년 1월 13일
I guess you could just plot one line at a time.
  댓글 수: 2
mark palmer
mark palmer 2023년 1월 13일
I have hundreds of lines to draw, but I'll see if it works to draw each one separately.
mark palmer
mark palmer 2023년 1월 13일
Ok, yes it works, I will have to make a loop to draw all the lines individually, I guess.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Computer Vision with Simulink에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by