How to get parallel lines in a binary image?

8 ビュー (過去 30 日間)
Rakshith Nayak
Rakshith Nayak 2020 年 10 月 3 日
回答済み: Priysha LNU 2020 年 10 月 6 日
I want to find parallel lines in a binary image and calculate the distance between them....
Can anyone help me with the code?
  7 件のコメント
KALYAN ACHARJYA
KALYAN ACHARJYA 2020 年 10 月 4 日
There are no lines in the attched binary image??
Rakshith Nayak
Rakshith Nayak 2020 年 10 月 4 日
https://in.mathworks.com/matlabcentral/answers/604144-how-to-get-parallel-lines-in-a-binary-image#comment_1035754
Can you give an example code?

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

回答 (1 件)

Priysha LNU
Priysha LNU 2020 年 10 月 6 日
You may simply calculate the distance between two lists of points as :
Let data1 and data2 be two set of points.
data = data1 - data2;
dist = sqrt(data(:,1).^2+data(:,2).^2);
DISCLAIMER: These are my own views and in no way depict those of MathWorks.

カテゴリ

Help Center および File ExchangeFeature Detection and Extraction についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by