fixed createOpticalFlowNeedleMap

This commit is contained in:
Vladislav Vinogradov 2012-02-08 05:45:47 +00:00
parent fcf9a224fb
commit 237b3ed3a0
2 changed files with 2 additions and 2 deletions

View File

@ -138,7 +138,7 @@ namespace cv { namespace gpu { namespace device
const float u_avg_val = u_avg(y, x);
const float v_avg_val = v_avg(y, x);
const float theta = ::atan2f(v_avg_val, u_avg_val) + CV_PI;
const float theta = ::atan2f(v_avg_val, u_avg_val);// + CV_PI;
float r = ::sqrtf(v_avg_val * v_avg_val + u_avg_val * u_avg_val);
r = fmin(14.0f * (r / max_flow), 14.0f);

View File

@ -129,7 +129,7 @@ int main(int argc, const char* argv[])
GpuMat d_vertex, d_colors;
createOpticalFlowNeedleMap(d_bu, d_bv, d_vertex, d_colors);
createOpticalFlowNeedleMap(d_fu, d_fv, d_vertex, d_colors);
#endif
cout << "Interpolating..." << endl;