1 | initial version |
Size is defined by width and height (not like your example you use row(height) and column (width)
2 | No.2 Revision |
Size is defined by width and height (not like your example you use row(height) and column (width)
In resize doc you can find your answer
if you want to decimate the image by factor of 2 in each direction, you can call the function this way: // specify fx and fy and let the function compute the destination image size. resize(src, dst, Size(), 0.5, 0.5, interpolation);
3 | No.3 Revision |
Size is defined by width and height (not like your example you use row(height) and column (width)
In resize doc you can find your answer
if you want to decimate the image by factor of 2 in each direction, you can call the function this way:
way:
// specify fx and fy and let the function compute the destination image size.
size.
resize(src, dst, Size(), 0.5, 0.5, interpolation);