groupgets / LeptonModule

Code for getting started with the FLIR Lepton breakout board
https://groupgets.com/manufacturers/flir/products/flir-lepton
BSD 2-Clause "Simplified" License
317 stars 197 forks source link

Modify Color Palette in raspberrypi_video #55

Closed TefaTBob closed 6 years ago

TefaTBob commented 6 years ago

I see the start of several threads here, but has anyone figured out the palettes.cpp formatting? The standard palette makes the video display grey bg w/ yellow/red/purple/ as primary heat colors. I'd like to adjust this to be more blue bg w/ red/yellow/green heat colors (surprise surprise). The color maps seem to be repeating RGB values all in a row:

"const int colormap_rainbow[] = {1, 3, 74, 0, 3, 74, 0, 3, 75, 0, 3, 75, 0, 3, 76, 0, 3, 76 ---etc etc"

Do we think it's possible to redefine the range here, or is there somewhere else that's taking this rainbow map and saying the only colors to display are grey/purple/red/yellow?

TefaTBob commented 6 years ago

Nm, realized you can change the colormap in LeptonThread.cpp