Ask Your Question

Revision history [back]

Size is defined by width and height (not like your example you use row(height) and column (width)

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);

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);