1 | initial version |
your result from resize() is entirely correct.
to resize from 4 elements to 2 vertically, linear interpolation is applied (INTER_LINEAR is the default flag), so,
10 = ( 0 + 20) / 2
50 = (40 + 60) / 2
2 | No.2 Revision |
your result from resize() is entirely correct.
to resize from 4 elements to 2 vertically, linear interpolation is applied (INTER_LINEAR is the default flag), so,
10 = ( 0 + 20) (20 - 0) / 2
50 = (40 40 + 60) (60 - 40) / 2
3 | No.3 Revision |