mirror of
https://github.com/opencv/opencv.git
synced 2025-01-18 14:13:15 +08:00
Resolved a bug and used ocl::multiply.
This commit is contained in:
parent
ef9f690598
commit
599cf6bea0
@ -121,10 +121,8 @@ void cv::ocl::OpticalFlowDual_TVL1_OCL::operator()(const oclMat& I0, const oclMa
|
||||
ocl::pyrDown(u1s[s - 1], u1s[s]);
|
||||
ocl::pyrDown(u2s[s - 1], u2s[s]);
|
||||
|
||||
//ocl::multiply(u1s[s], Scalar::all(0.5), u1s[s]);
|
||||
multiply(0.5, u1s[s], u1s[s]);
|
||||
//ocl::multiply(u2s[s], Scalar::all(0.5), u2s[s]);
|
||||
multiply(0.5, u1s[s], u2s[s]);
|
||||
ocl::multiply(0.5, u1s[s], u1s[s]);
|
||||
ocl::multiply(0.5, u2s[s], u2s[s]);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user