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:
authorSoumith Chintala <soumith@gmail.com>2015-08-14 19:17:38 +0300
committerSoumith Chintala <soumith@gmail.com>2015-08-14 19:17:38 +0300
commit5c2e963f4cca3a6c76dc75d0d7503d77dee57d4f (patch)
tree403fb4fb8452b4f40ab95e5edb0653978df5a389
parent8b54d0e2975f24c8fcab59738f7812811e57f95d (diff)
parent540e96755a8cc33437f23f34ccc8fa8f2484da62 (diff)
Merge pull request #92 from gheinrich/dev/issue_91
Fix call to processPNG from decompressPNG - closes #91
-rw-r--r--init.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/init.lua b/init.lua
index 8ea13f9..3111e34 100644
--- a/init.lua
+++ b/init.lua
@@ -160,11 +160,11 @@ local function decompressPNG(tensor, depth, tensortype)
'image.decompressPNG')
end
local load_from_file = 0
- local a = template(tensortype).libpng.load(load_from_file, tensor)
+ local a, bit_depth = template(tensortype).libpng.load(load_from_file, tensor)
if a == nil then
return nil
else
- return processPNG(a, depth, tensortype)
+ return processPNG(a, depth, bit_depth, tensortype)
end
end
rawset(image, 'decompressPNG', decompressPNG)