Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/torch/image.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCédric Deltheil <cedric@moodstocks.com>2016-01-27 13:24:58 +0300
committerCédric Deltheil <cedric@moodstocks.com>2016-01-27 13:24:58 +0300
commitd6199c0383ae24ac847bab0fccb50f06859ff451 (patch)
tree66a0e870ce4388cfc02bfc67e96556450e94356d
parent82a1c0a4cc5ccb653885d67cc192441f16525ee3 (diff)
remove redundant `getJPGsize` function
-rw-r--r--init.lua7
1 files changed, 0 insertions, 7 deletions
diff --git a/init.lua b/init.lua
index a2f4187..6d7858e 100644
--- a/init.lua
+++ b/init.lua
@@ -269,13 +269,6 @@ local function compressJPG(tensor, quality)
end
rawset(image, 'compressJPG', compressJPG)
-function image.getJPGsize(filename)
- if not xlua.require 'libjpeg' then
- dok.error('libjpeg package not found, please install libjpeg','image.getJPGsize')
- end
- return torch.Tensor().libjpeg.size(filename)
-end
-
local function loadPPM(filename, depth, tensortype)
require 'libppm'
local MAXVAL = 255