Jet colormap to grayscale
guillaume.calmettes at gmail.com
Sun Nov 25 23:37:54 EST 2012
However, I'm not sure why but I had to initialize the jet colormap object to create the _lut array.
lut = plt.cm.jet._lut[..., :3]
jet = plt.cm.jet
lut = jet._lut[..., :3]
Thanks a lot.
On Nov 25, 2012, at 8:25 PM, Stéfan van der Walt <stefan at sun.ac.za> wrote:
> Hi Guillaume
> On Thu, Nov 22, 2012 at 8:08 PM, Guillaume CALMETTES
> <guillaume.calmettes at gmail.com> wrote:
>> Do someone has any trick to convert a "jet image" to grayscale?
> Here's a snippet that does it by brute force lookup:
> Hope that helps!
More information about the scikit-image