How do I convert a PIL Image into a NumPy array?

How do I convert a PIL Image into a NumPy array?

The Python Oracle

54 года назад

70 Просмотров

Become part of the top 3% of the developers by applying to Toptal https://topt.al/25cXVn

--

Music by Eric Matyas
https://www.soundimage.org
Track title: Melt

--

Chapters
00:00 Question
00:40 Accepted answer (Score 438)
01:43 Answer 2 (Score 329)
02:14 Answer 3 (Score 122)
03:19 Answer 4 (Score 37)
03:35 Thank you

--

Full question
https://stackoverflow.com/questions/384759/how-do-i-convert-a-pil-image-into-a-numpy-array

Accepted answer links:
["proper" way to convert between images and numpy arrays]: https://web.archive.org/web/20081225061956/http://effbot.org/zone/pil-changes-116.htm

Answer 2 links:
[Filter numpy images with FFT, Python]: http://barnesc.blogspot.com/2007/09/filter-numpy-images-with-fft-python.html
[this page]: http://bradmontgomery.blogspot.com/2007/12/computing-correlation-coefficients-in.html

--

Content licensed under CC BY-SA
https://meta.stackexchange.com/help/licensing

--

Tags
#python #image #numpy #pythonimaginglibrary #numpyndarray

#avk47

Тэги:

#avk47 #image #numpy #numpyndarray #python #pythonimaginglibrary
Ссылки и html тэги не поддерживаются


Комментарии: