Find the distance beween two two lines from different images?

1 view (last 30 days)
I want to find the distance between the line for same rows . So far i have trying to add the two images and distance is the number of black pixels between two white pixels from same row.
  2 Comments
Matt J
Matt J on 11 Jun 2018
first line.jpg and second line.jpg look almost identical.
Sobit Singh
Sobit Singh on 11 Jun 2018
Sir, The images were the earth coastline i think they should be nearly same

Sign in to comment.

Accepted Answer

Matt J
Matt J on 11 Jun 2018
Edited: Matt J on 11 Jun 2018
Something like this, maybe
x=(1:size(firstline,2)).';
distance = double(secondline-firstline)*x;

More Answers (0)

Community Treasure Hunt

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

Start Hunting!