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:
-rw-r--r--init.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/init.lua b/init.lua
index 8a14cec..e1bfe63 100644
--- a/init.lua
+++ b/init.lua
@@ -470,7 +470,7 @@ local function crop(...)
else
iwidth,iheight = src:size(2),src:size(1)
end
- local x1, x2
+ local x1, y1
if format == 'c' then
x1, y1 = math.floor((iwidth-width)/2), math.floor((iheight-height)/2)
elseif format == 'tl' then