groupgets / pylepton

Quick and dirty pure python library for interfacing with FLIR lepton
MIT License
208 stars 94 forks source link

Color palettes #12

Closed alduxvm closed 7 years ago

alduxvm commented 7 years ago

Hi!

This is not really an issue, but its a question, is there a way of using color palettes similar to the ones in https://github.com/groupgets/LeptonModule/blob/master/software/raspberrypi_video/Palettes.cpp ??

Thanks!

kekiefer commented 7 years ago

One way would be to run it through OpenCV's LUT: http://docs.opencv.org/2.4/modules/core/doc/operations_on_arrays.html#lut

See here for an example: http://stackoverflow.com/a/37656779

alduxvm commented 7 years ago

Good point, I forgot about that... I end up using this: cv2.applyColorMap(gray, cv2.COLORMAP_JET)

Original: orig

After the applyColorMap: jet

Predator view ;)

Thanks!

kekiefer commented 7 years ago

Sweet!