int mm =::max(width, height);\r
iters = mm / 100 + 2;\r
\r
- levels = cvRound(log((double)mm) + 1) * 4 / 5;\r
+ levels = (int)(log(static_cast<double>(mm)) + 1) * 4 / 5;\r
if (levels == 0) levels++;\r
}\r
\r
void cv::gpu::StereoConstantSpaceBP::estimateRecopmmendedParams( int width, int height, int & ndisp, int & iters, int & levels, int &nr_plane)\r
{\r
ndisp = (int) ((float) width / 3.14f);\r
+ if (ndisp & 1 != 0) ndisp++;\r
if ((ndisp & 1) != 0) \r
ndisp++;\r
\r
int mm = ::max(width, height);\r
iters = mm / 100 + ((mm > 1200)? - 4 : 4);\r
\r
- levels = cvRound(log((double)mm)) * 2 / 3;\r
+ levels = (int)log(static_cast<double>(mm)) * 2 / 3;\r
if (levels == 0) levels++;\r
\r
nr_plane = (int) ((float) ndisp / pow(2.0, levels + 1));\r