Memory Error When Converting to LAB Color Space.
Michael Alonge
malonge11 at gmail.com
Thu Oct 2 13:17:57 EDT 2014
Hello,
This is my first post in this forum. Thank you in advance for any and all
help.
I have an image that when initially loaded in RGB yields a memory error
when converted to LAB via color.rgb2lab(image). I get the following error:
>>> lab_image = color.rgb2lab(image)
Traceback (most recent call last):
File "<pyshell#1>", line 1, in <module>
lab_image = color.rgb2lab(image)
File "C:\Python33\lib\site-packages\skimage\color\colorconv.py", line
801, in rgb2lab
return xyz2lab(rgb2xyz(rgb))
File "C:\Python33\lib\site-packages\skimage\color\colorconv.py", line
523, in rgb2xyz
arr = _prepare_colorarray(rgb).copy()
MemoryError
The picture itself has the following specs:
File Type: .PNG
File size: 20 MB
Resolution: 72 ppi
image.shape = (5184, 3456, 3)
I am working on a windows 7 machine with python 3.3.4.
I am an intermediate python programmer, and have no idea where to start
when it comes to memory allocation. Any and all help is appreciated,
Thank you,
Michael Alonge
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/scikit-image/attachments/20141002/d43cd6a8/attachment.html>
More information about the scikit-image
mailing list