How to get parallel lines in a binary image?
이전 댓글 표시
I want to find parallel lines in a binary image and calculate the distance between them....
Can anyone help me with the code?
댓글 수: 7
KSSV
2020년 10월 3일
Attach pictorial example.
Rakshith Nayak
2020년 10월 3일
Matt J
2020년 10월 3일
I see no lines in this example image, just some weird shaped curve.
Rakshith Nayak
2020년 10월 4일
Image Analyst
2020년 10월 4일
Assuming you have the coordinates of the red and yellow x's, I'd use sqrt(), though some might use norm().
KALYAN ACHARJYA
2020년 10월 4일
There are no lines in the attched binary image??
Rakshith Nayak
2020년 10월 4일
답변 (1개)
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.
카테고리
도움말 센터 및 File Exchange에서 Image Arithmetic에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

