ce950ab173730ab51189baa0cc4814c1ed695a45 The colors are now clipped as follows:
29000 is about 17°C and 255/10 means, that we have resolution over 25°C range. Under 17°C and over 42°C the coloring is clipped. I use the range 100 to 200 of the HSV scale.
This introduces less color resolution, and could be changed in the future.
This approach has no problems with different colors for the same temperature in different images, as no histogram equalization or normalization is done.
Conversion of ranges see here: https://stackoverflow.com/questions/929103/convert-a-number-range-to-another-range-maintaining-ratio
d37166835ba4f1f889ba8828646ea96913800bb6 Merge branch '83-better-thermal-color-scheme' of https://github.com/Machriam/PlantMonitor into 83-better-thermal-color-scheme
87b7e56e1d9cd8cb3080705d7ac30356f62c6f98 Compiled a custom build of opencv.js to include the applyColorMap function. A custom OpenCv build does not work out of the box, the resulting opencv.js file returns cv.result at the end of the file, it must return cv instead. See: https://github.com/opencv/opencv/issues/21580
Added a custom opencv function class to serve those optional functions.
The temperature readings are subtracted by 15°C and then divided by 10. This yields a range of 0-255, where 0 equals 15°C and 255 40.5°C with .1 steps. temperature readings below or above that are clipped.
Changes of Pull Request #84
Commit messages for #83