Commit 97254a7b authored by Andrey Morozov's avatar Andrey Morozov

minor fix

parent 9ac17415
...@@ -105,7 +105,7 @@ static void stereo_bp_gpu_operator(int ndisp, int iters, int levels, float disc_ ...@@ -105,7 +105,7 @@ static void stereo_bp_gpu_operator(int ndisp, int iters, int levels, float disc_
int divisor = (int)pow(2.f, levels - 1.0f); int divisor = (int)pow(2.f, levels - 1.0f);
int lowest_cols = cols / divisor; int lowest_cols = cols / divisor;
int lowest_rows = rows / divisor; int lowest_rows = rows / divisor;
const int min_image_dim_size = 20; const int min_image_dim_size = 2;
CV_Assert(min(lowest_cols, lowest_rows) > min_image_dim_size); CV_Assert(min(lowest_cols, lowest_rows) > min_image_dim_size);
u.create(rows * ndisp, cols, CV_32F); u.create(rows * ndisp, cols, CV_32F);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment