How to match two curves to find if one curve belongs to the other?

조회 수: 9 (최근 30일)
Mona
Mona 2015년 7월 6일
편집: Bhavesh Parmar 2018년 2월 20일
I have a video recording of moving objects that seem to be changing in size due to the fixed capturing lens position. The objects may also have slightly different shapes due to edge detection on different settings. Then the objects move and seem to change size and shape. I need to know how much each object moved (direction and translation)!
Any idea on how to compare two curves (of different lengths) to see if they share some points (with an error tolerance)?
Thanks a lot

채택된 답변

Mona
Mona 2015년 7월 8일
I actually managed to find a solution to this question. Dealing with the curves is challenging. But since the curves represent objects' perimeters, it's possible to match two images instead of two curves. I found a topic on MathWorks that guided me through matching the two objects. I am sharing the link to the topic.
Many Thanks!
  댓글 수: 1
Bhavesh Parmar
Bhavesh Parmar 2018년 2월 20일
편집: Bhavesh Parmar 2018년 2월 20일
Hello Mona, I am presently working on the problem, where I am tracking an object, I prepare a profile of the object movement.
For classification of the object movement I need to match the profile of movement with the predefined movement profiles in neural network (trained).
I wanted to know that, how you have matched the two curves, and which algorithm you have used?

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

추가 답변 (1개)

Ivan Shorokhov
Ivan Shorokhov 2015년 7월 7일
편집: Ivan Shorokhov 2015년 7월 7일
Hello Mona,
You can use following algorithm.
1. Convert two images to binary ( im2bw )
2. Use ' regionprops ', to measure area of the images.
3. Subtract two binary image form each other and measure properties one more time, that would give you difference between two images.
I hope it will help you and please vote for the answer.
Best of luck!
  댓글 수: 1
Mona
Mona 2015년 7월 7일
Thank you for your answer Ivan.
I don't want to find the difference in area between the two images. I want to find how much one curved moved and which part it resembles of the other curve. And eventually plot the two matched curve superimposed on each others.
Thanks a lot for your input though.

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

태그

아직 태그를 입력하지 않았습니다.

Community Treasure Hunt

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

Start Hunting!

Translated by