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

18 views (last 30 days)
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

Accepted Answer

Mona
Mona on 8 Jul 2015
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 Comment
Bhavesh Parmar
Bhavesh Parmar on 20 Feb 2018
Edited: Bhavesh Parmar on 20 Feb 2018
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?

Sign in to comment.

More Answers (1)

Ivan Shorokhov
Ivan Shorokhov on 7 Jul 2015
Edited: Ivan Shorokhov on 7 Jul 2015
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 Comment
Mona
Mona on 7 Jul 2015
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.

Sign in to comment.

Tags

No tags entered yet.

Community Treasure Hunt

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

Start Hunting!