Memory Error When Converting to LAB Color Space.

Stéfan van der Walt stefan at sun.ac.za
Thu Oct 2 18:49:56 EDT 2014


Hi Michael

On Thu, Oct 2, 2014 at 7:17 PM, Michael Alonge <malonge11 at gmail.com> wrote:
> 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:

Just as a basic memory size check, can you please let me know whether
the following script executes successfully?

import numpy as np
shape = (5184, 3456, 3)

out = []
for i in range(5):
    print("Allocating #", i)
    out.append(np.zeros(shape, dtype=float).fill(1))


Thanks
Stéfan



More information about the scikit-image mailing list