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

1 次查看(过去 30 天)
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