Memory Error When Converting to LAB Color Space.
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 "
", 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
participants (2)
-
Michael Alonge
-
Stéfan van der Walt