diff options
Diffstat (limited to 'test/test_warp.lua')
-rw-r--r-- | test/test_warp.lua | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/test_warp.lua b/test/test_warp.lua index 5c4a1ed..eb0a88e 100644 --- a/test/test_warp.lua +++ b/test/test_warp.lua @@ -137,3 +137,10 @@ image.display{image = im_lanczos, zoom = 4, legend = 'rotation lanczos (pad 1)'} image.display{image = im, zoom = 4, legend = 'source image'} +-- *********************************************** +-- NOW MAKE SURE BOTH FLOAT AND DOUBLE INPUTS WORK +-- *********************************************** + +mtx = torch.zeros(2, 32, 32) +out = image.warp(im:float(), mtx:float(), 'bilinear') +out = image.warp(im:double(), mtx:double(), 'bilinear') |