opticalflow

OpenCV Sample Program lkdemo

Hi, reference, OpenCv\samples\c\lkdemo.c Anybody know what does the following snippet of codes does ? Code extracted from lkdemo.c for( i = k = 0; i < count; i++ ) { if( add_remove_pt ) { double dx = pt.x - points[1][i].x; double dy = pt.y - points[...

How to extract velocity vectors from dense optical flow?

Problem: I'm trying to align two frames of a moving video. I'm currently trying to use the function "cvCalcOpticalFlowLK" and the result outputs velocity vectors of x and y in the form of a "CvArr". So I obtained the result, but i'm not sure how to use these vector arrays. My question is this... how do i know what is the velocity of ...

Using Optical Flow in EmguCV

HI. I am trying to create simple touch game using EmguCV.Should I use optical flow to determine for interaction between images on screen and with my hand ,if changes of points somewhere on screen more than 100 where the image, it means my hand is over image? But how can I track this new points? I can draw on screen here the previous po...

Finding distance travelled by robot using Optical Flow

Hi, I'm working on a project right now in which we are developing an autonomous robot. I have to basically find out the distance travelled by the robot between any 2 intervals. I'm using OpenCV, and using the Optical Flow functions of OpenCV, I'm able to find out the velocity/distance of each pixel in 2 different images. Using this infor...

Distance travelled by a robot using Optical Flow

Hi, is there a way to find out the distance travelled by a robot using Optical Flow? For example, using OpenCV, I'm able to find out the velocity of each pixel between 2 images taken by a camera. However, I don't know where to go with this to find out the corresponding distance travelled by the robot. Can you suggest a way to do this? M...

How to implement Optical Flow tracker?

Hi, I'm using the OpenCV wrapper - Emgu CV, and I'm trying to implement a motion tracker using Optical Flow, but I can't figure out a way to combine the horizontal and vertical information retrieved from the OF algorithm: flowx = new Image<Gray, float>(size); flowy = new Image<Gray, float>(size); OpticalFlow.LK(currImg, prevImg, new Si...

Are there any good tutorials on performing optical flow transforms for a sequence of still images?

I want to experiment with guiding an RC car via my laptop using bluetooth and an X10 camera to snap the pictures. Basically I want to create the DARPA not so grand challenge of guiding my RC car around the house and avoiding obstacles and teaching it how to navigate. Not terribly practical but fun to mess with. Any suggestions on book...