Community
cancel
Showing results for 
Search instead for 
Did you mean: 
verma__Ashish
Beginner
67 Views

motion vector estimation

HI,

I am trying to do motion vector estimation using opencl. I have referred to this link

https://software.intel.com/en-us/articles/intro-to-motion-estimation-extension-for-opencl#comment-19...

I am reading frames from camera(YUYV format) and finding out motion vectors. After that I am Overlaying Vectors on y channel of image then I have converted it into bgr and showing the results using opencv but the motion vectors are not aligned to the movement of the scene.

Any help will be appreciated

 

Regards

Ashish

0 Kudos
3 Replies
Ben_A_Intel
Employee
67 Views

Hi Ashish,

Can you describe the behavior you are seeing in more detail?

You may also want to try this "device side VME" sample, which does something similar:

https://software.intel.com/en-us/articles/intro-ds-vme

Thanks!

verma__Ashish
Beginner
67 Views

Hello Ben,

I have read that link also did not help though

The behaviour is like this -

I can see the motion vectors moving when I am waving a object in front of the camera but it is not aligned to my hand in the video, coordinates are different although there is a sync between the motion vectors and the object movement but when I am displaying it the video vectors are not on top of the object movement(coordinates are different), Its coming on one side so the alignment is not there. I can record a video and send it to you If that helps.

Regards

Ashish

Michael_C_Intel1
Moderator
67 Views

Hi Ashish,

Is there an issue with the built sample directly from the article?... I read your description like you have an addition, enhancement, or related source that has a malformed transfer function. Assuming motion vectors look sensible but unaligned, it sounds like it's necessary to review addressing and indexing for your workitem data elements coming from the kernel back to images.

 

-MichaelC