フィルターのクリア

How can I draw a vertical line upon the horizontal lines in matlab?

5 ビュー (過去 30 日間)
sufian ahmed
sufian ahmed 2017 年 5 月 23 日
回答済み: KSSV 2017 年 5 月 23 日
I want to draw a vertical line in Matlab upon the concurrent horizontal lines and show the coordinates where the vertical line intersects the horizontal lines.I give a figure here, I want to write a code so that it draws a line first and show the co-ordinates on the intersection point automatically.
  3 件のコメント
sufian ahmed
sufian ahmed 2017 年 5 月 23 日
編集済み: sufian ahmed 2017 年 5 月 23 日
bro i dont know. but after hough transform i get some horizontal lines. now i want to apply a algorithm so that a vertical line flows from left to right and mark the intersection point when it intersects with the image horizontal lines.It also great for me if it shows the co-ordinates on the intersection point.
KSSV
KSSV 2017 年 5 月 23 日
編集済み: KSSV 2017 年 5 月 23 日
I gave you code on how to show intersection points in stackoverflow already. :)

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

採用された回答

KSSV
KSSV 2017 年 5 月 23 日
L1 = [0.7290 0.2163
0.2026 0.9763] ; % line 1 coordinates
L2 = [0.5932 0.9677
0.3044 0.8960] ; % line 2 coordinates
figure(1)
hold on
plot(L1(1,:),L1(2,:),'r')
plot(L2(1,:),L2(2,:),'b')
%%Get intersection
P = InterX(L1,L2) ;
%
plot(P(1),P(2),'*r')
%%Show points
text(P(1),P(2),num2str(P)) ;

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeImages についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by