How plot slope from lower point on image to last point .When I apply my code ,its not draw to end point in image

1 回表示 (過去 30 日間)
this part of code
for k=1:300
for j=1:300
if (j==300) &&(BWw(k,j)==1)
row1=k;
column1 = j;
end
end
end
%%%%%%%%%%%%%%%%%
plot( [row column],[row1 column1],'Color','r','LineWidth',3);

採用された回答

KSSV
KSSV 2021 年 5 月 5 日
I = imread('image.png') ;
[m,n,p] = size(I) ;
imshow(I) ;
hold on
plot([1 m],[n 1],'b')
  3 件のコメント
KSSV
KSSV 2021 年 5 月 6 日
Thanks is accepting/ voting the answer. :)
Ruba Talal
Ruba Talal 2021 年 5 月 6 日
please I want draw line from first white point to last white point .

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeGraphics Object Programming についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by