As I see in code, both src and dst sizes reduced by 1.
https://github.com/torch/image/blob/master/generic/image.c#L84
It could be due to Lua's 1-based sizes, but actually it means that image scaled by (dst-1)/(src-1)
It results in loosing half a pixel on each side
As I see in code, both src and dst sizes reduced by 1. https://github.com/torch/image/blob/master/generic/image.c#L84 It could be due to Lua's 1-based sizes, but actually it means that image scaled by (dst-1)/(src-1) It results in loosing half a pixel on each side
s seen sum = 5.76, instead of expected 4 real scale ratio = 2.4 instead of 2