mirror of
https://github.com/opencv/opencv.git
synced 2026-07-29 15:23:05 +04:00
added gpu add, subtract, multiply, divide, absdiff with Scalar.
added gpu exp, log, magnitude, based on NPP. updated setTo with new NPP functions. minor fix in tests and comments.
This commit is contained in:
@@ -116,7 +116,7 @@ void cv::gpu::StereoConstantSpaceBP::estimateRecommendedParams(int width, int he
|
||||
int mm = ::max(width, height);
|
||||
iters = mm / 100 + ((mm > 1200)? - 4 : 4);
|
||||
|
||||
levels = (int)log(static_cast<double>(mm)) * 2 / 3;
|
||||
levels = (int)::log(static_cast<double>(mm)) * 2 / 3;
|
||||
if (levels == 0) levels++;
|
||||
|
||||
nr_plane = (int) ((float) ndisp / pow(2.0, levels + 1));
|
||||
|
||||
Reference in New Issue
Block a user