Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Access one part of the image

Hi, I'm working on Optical flow LK method and balance strategy using Optical flow. For now I found out the vector length using

float fVmag = sqrt((float)((points[0][i].x-points[1][i].x)*(points[0][i].x-points[1][i].x)+(points[0][i].y-points[1][i].y)*(points[0][i].y-points[0][i].y)));

now I want to access only the vector length that are presented on the left side of the image. I was thinking to use image.cols/2 to split it into two equal parts. But I dont know how to access the data inside that region.

Any help or suggestion will be grateful. Thanks guys.