Memory Error When Converting to LAB Color Space.
Michael Alonge
malonge11 at gmail.com
Mon Oct 6 13:23:30 EDT 2014
Thanks so much for the help.
I am processing with 32 GB of RAM and a 64-bit operating system. That being
said, I am running the 32 bit version of python.
On Thursday, October 2, 2014 10:17:57 AM UTC-7, Michael Alonge wrote:
>
> 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/20141006/47ca64d2/attachment.html>
More information about the scikit-image
mailing list