We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
IMO, this can handle the same as depth=1, the code may be like this:
elseif chan == 2 then local imgrgb = img.new(3, img:size(2), img:size(3)) local narrow = img:narrow(1,1,1) imgrgb:select(1, 1):copy(narrow) imgrgb:select(1, 2):copy(narrow) imgrgb:select(1, 3):copy(narrow) img = imgrgb
Is that correct? Thanks.
The text was updated successfully, but these errors were encountered:
are you planning to ignore alpha in this case?
Sorry, something went wrong.
um..I think if people specify depth = 3, it means ignoring the alpha channel ;)
No branches or pull requests
IMO, this can handle the same as depth=1, the code may be like this:
Is that correct? Thanks.
The text was updated successfully, but these errors were encountered: