Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Broken drawRect around image borders #203

Open
vadimkantorov opened this issue Nov 18, 2016 · 0 comments
Open

Broken drawRect around image borders #203

vadimkantorov opened this issue Nov 18, 2016 · 0 comments

Comments

@vadimkantorov
Copy link

vadimkantorov commented Nov 18, 2016

img = image.lena()
image.drawRect(img, 1, img:size(2), 1, img:size(2), {lineWidth = 5})

should make a thick boundary around the image, but fails with:

...share/lua/5.1/image/init.lua:2172: bad argument #2 to 'drawRect' (out of range at ...src/torch/pkg/torch/lib/TH/generic/THTensor.c:759)
stack traceback:
	[C]: in function 'drawRect'
	.../share/lua/5.1/image/init.lua:2172: in function 'drawRect'
	[string "_RESULT={image.drawRect(a, 1, 512, 1, 512, {l..."]:1: in main chunk
	[C]: in function 'xpcall'
	.../share/lua/5.1/trepl/init.lua:652: in function 'repl'
	.../lib/luarocks/rocks/trepl/scm-1/bin/th:199: in main chunk
	[C]: at 0x00411210	
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant