フィルターのクリア

How i get x y values of start point and end point of a white curve from image

1 回表示 (過去 30 日間)
Sajid Rahim
Sajid Rahim 2017 年 8 月 28 日
コメント済み: Sajid Rahim 2017 年 8 月 28 日
How i get x y values of start point and end point of a white curve from image image is added .... plz help me...

採用された回答

KSSV
KSSV 2017 年 8 月 28 日
I = imread('5.png') ;
I = rgb2gray(I) ;
[y,x] = find(I) ;
figure
imshow(I)
hold on
plot(x,y,'.r')
plot(x(1),y(1),'*y')
plot(x(end),y(end),'*y')
  2 件のコメント
Sajid Rahim
Sajid Rahim 2017 年 8 月 28 日
thank you sir
Sajid Rahim
Sajid Rahim 2017 年 8 月 28 日
Sir how i convert the 5.png image to like 555.png... i.e to draw 2 lines...... one frome start point and one line from end point.... plzz..

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeConvert Image Type についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by