Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to make motion history image for presentation into one single image?

I am working on a project with gesture recognition. Now I want to prepare a presentation in which I can only show images. I have a series of images defining a gesture, and I want to show them in a single image just like motion history images are shown in literature.

My question is simple, which functions in opencv can I use to make a motion history image using lets say 10 or more images defining the motion of hand.

As an example I have the following image, and I want to show hand's location (opacity directly dependent on time reference).

an example image

I tried using GIMP to merge layers with different opacity to do the same thing, however the output is not good. output with gimp

like image 433
masad Avatar asked Aug 19 '12 18:08

masad


1 Answers

You could use cv::updateMotionHistory
Actually OpenCV also demonstrates the usage in samples/c/motempl.c

like image 104
vinjn Avatar answered Oct 30 '22 18:10

vinjn