1
0
Fork 0
mirror of synced 2024-06-01 18:49:33 +12:00

remove unused function

This commit is contained in:
nagadomi 2015-06-22 23:03:14 +09:00
parent 1cdceb1648
commit 04c1d7f936

View file

@ -2,15 +2,6 @@ local gm = require 'graphicsmagick'
local image = require 'image'
local iproc = {}
function iproc.sample(src, width, height)
local t = "float"
if src:type() == "torch.ByteTensor" then
t = "byte"
end
local im = gm.Image(src, "RGB", "DHW")
im:sample(math.ceil(width), math.ceil(height))
return im:toTensor(t, "RGB", "DHW")
end
function iproc.scale(src, width, height, filter)
local t = "float"
if src:type() == "torch.ByteTensor" then