Find the distance beween two two lines from different images?

조회 수: 3 (최근 30일)
Sobit Singh
Sobit Singh 2018년 6월 11일
댓글: Sobit Singh 2018년 6월 11일
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
Matt J
Matt J 2018년 6월 11일
first line.jpg and second line.jpg look almost identical.
Sobit Singh
Sobit Singh 2018년 6월 11일
Sir, The images were the earth coastline i think they should be nearly same

댓글을 달려면 로그인하십시오.

채택된 답변

Matt J
Matt J 2018년 6월 11일
편집: Matt J 2018년 6월 11일
Something like this, maybe
x=(1:size(firstline,2)).';
distance = double(secondline-firstline)*x;

추가 답변 (0개)

Community Treasure Hunt

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

Start Hunting!

Translated by