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:
authorGreg Heinrich <gheinrich@nvidia.com>2015-08-14 19:09:05 +0300
committerGreg Heinrich <gheinrich@nvidia.com>2015-08-14 19:09:05 +0300
commit540e96755a8cc33437f23f34ccc8fa8f2484da62 (patch)
treeca1232a286a8ed3dfc4d24b65b72b0feb98ead2b
parent7956503de7fe04903245819d653a688f4fdbb16c (diff)
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 7f32f98..d6c6fb1 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)