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

PIL.Image.getdata()は縦横flat+チャネルの2次元タプルが降ってくるが #5

Open
XXXalice opened this issue Jun 10, 2019 · 0 comments

Comments

@XXXalice
Copy link
Owner

横縦ではなく縦横であることに注意されたし
numpy.ndarrayに変換してからnp.reshapeするとき

np.reshape(x, y, -1)

これは間違い、縦横が全く同じ値でない限りピクセルの乱れが生じる。

np.reshape(y, x, -1) #これで勝つる
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