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

Error with image.float.colorize #231

Open
Amyhii opened this issue Mar 12, 2018 · 0 comments
Open

Error with image.float.colorize #231

Amyhii opened this issue Mar 12, 2018 · 0 comments

Comments

@Amyhii
Copy link

Amyhii commented Mar 12, 2018

image package has a function called colorize which can be invoked using image.float.colorize. What is the dimension of the arguments of the function colorize.
In my case,
image=require 'image'
-- input: greyscale image of type FloatTensor of size 1x50x50
colorimage=image.float.colorize(input)
The above gives the following error:

[string "colorimage=image.float.colorize(input)"]:1: bad argument #2 to 'colorize' (torch.FloatTensor expected, got userdata)
stack traceback:
[C]: in function 'colorize'
[string "colorimage=image.float.colorize(input)"]:1: in main chunk
[C]: in function 'xpcall'
/home/rajiv/torch/install/share/lua/5.1/trepl/init.lua:679: in function 'repl'
...ajiv/torch/install/lib/luarocks/rocks/trepl/scm-1/bin/th:204: in main chunk
[C]: at 0x00405e90

Any help regarding the above would be greatly appreciated. Thanks in advance

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