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

14 visualizzazioni (ultimi 30 giorni)
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

Risposta accettata

Mona
Mona il 8 Lug 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 Commento
Bhavesh Parmar
Bhavesh Parmar il 20 Feb 2018
Modificato: Bhavesh Parmar il 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?

Accedi per commentare.

Più risposte (1)

Ivan Shorokhov
Ivan Shorokhov il 7 Lug 2015
Modificato: Ivan Shorokhov il 7 Lug 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 Commento
Mona
Mona il 7 Lug 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.

Accedi per commentare.

Tag

Non è stata ancora inserito alcun tag.

Community Treasure Hunt

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

Start Hunting!

Translated by