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

It seems like a bug? #60

Open
Luciennnnnnn opened this issue Apr 13, 2021 · 0 comments
Open

It seems like a bug? #60

Luciennnnnnn opened this issue Apr 13, 2021 · 0 comments

Comments

@Luciennnnnnn
Copy link

for channel in range(np.ndim(im)):

If we want to get the size of last dimension(the number of channels), we should use im.shape[-1], np.ndim(im) is the number of dimension of im, in RGB case just equal to im.shape[-1], but for gray image that is wrong.

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