{"id":1608,"date":"2015-09-27T03:20:48","date_gmt":"2015-09-27T02:20:48","guid":{"rendered":"http:\/\/phoenixgamedevelopment.com\/blog\/?p=1608"},"modified":"2015-09-27T03:20:48","modified_gmt":"2015-09-27T02:20:48","slug":"project-136-thermal-imager-project-update-10-false-colour-mapping","status":"publish","type":"post","link":"https:\/\/phoenixgamedevelopment.com\/blog\/project-136-thermal-imager-project-update-10-false-colour-mapping\/","title":{"rendered":"Project 136: Thermal Imager Project Update 10: False Colour Mapping"},"content":{"rendered":"<p>&nbsp;<\/p>\n<p>I have successfully implemented the heat map, or false colour map. The quality of the resulting image isn&#8217;t fantastic, but it is quite good. I am confident that with proper post processing, such as interpolating, smoothing, etc, I can increase the quality even more.<\/p>\n<p>I implemented the heatmap by first converting the temperature information to HSV format (Hue, Saturation, and Value). I used the temperature value as the hue, and hardcoded the saturation and value. I then rewrote \u00a0some useful code that I found into processing and used it to convert the HSV value into an RGB value.<\/p>\n<p>The next goal will be to do some debugging with the Arduino sketch. At the moment I am printing the data out using the serial port, which is slow. This is causing the Lepton to go out of sync, and stop sending data. I need to avoid using the serial port at all until I am finished capturing images.<\/p>\n<p>I will then implement some post-processing techniques, as well as add the TFT screen and SD card to my project, and build a housing for it.<\/p>\n<p>The first few images have the colours reversed, red is cold, blue is hot, I corrected that for the rest of the images.<\/p>\n<p>I have created a github repo for all of my code and resources <a href=\"https:\/\/github.com\/PhoenixGameDevelopment\/P136-Thermal-Imager\">HERE<\/a>.<\/p>\n<p>&nbsp;<\/p>\n<p><a href=\"https:\/\/phoenixgamedevelopment.com\/blog\/wp-content\/uploads\/2015\/09\/PhoenixGameDevelopment21-Sep.-26-23.15.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-1594\" src=\"https:\/\/phoenixgamedevelopment.com\/blog\/wp-content\/uploads\/2015\/09\/PhoenixGameDevelopment18-Sep.-26-23.12-300x236.jpg\" alt=\"PhoenixGameDevelopment18 Sep. 26 23.12\" width=\"300\" height=\"236\" srcset=\"https:\/\/phoenixgamedevelopment.com\/blog\/wp-content\/uploads\/2015\/09\/PhoenixGameDevelopment18-Sep.-26-23.12-300x236.jpg 300w, https:\/\/phoenixgamedevelopment.com\/blog\/wp-content\/uploads\/2015\/09\/PhoenixGameDevelopment18-Sep.-26-23.12.jpg 646w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-1591\" src=\"https:\/\/phoenixgamedevelopment.com\/blog\/wp-content\/uploads\/2015\/09\/PhoenixGameDevelopment19-Sep.-26-23.12-300x236.jpg\" alt=\"PhoenixGameDevelopment19 Sep. 26 23.12\" width=\"300\" height=\"236\" srcset=\"https:\/\/phoenixgamedevelopment.com\/blog\/wp-content\/uploads\/2015\/09\/PhoenixGameDevelopment19-Sep.-26-23.12-300x236.jpg 300w, https:\/\/phoenixgamedevelopment.com\/blog\/wp-content\/uploads\/2015\/09\/PhoenixGameDevelopment19-Sep.-26-23.12.jpg 646w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-1607\" src=\"https:\/\/phoenixgamedevelopment.com\/blog\/wp-content\/uploads\/2015\/09\/PhoenixGameDevelopment21-Sep.-26-23.15-300x236.jpg\" alt=\"PhoenixGameDevelopment21 Sep. 26 23.15\" width=\"300\" height=\"236\" srcset=\"https:\/\/phoenixgamedevelopment.com\/blog\/wp-content\/uploads\/2015\/09\/PhoenixGameDevelopment21-Sep.-26-23.15-300x236.jpg 300w, https:\/\/phoenixgamedevelopment.com\/blog\/wp-content\/uploads\/2015\/09\/PhoenixGameDevelopment21-Sep.-26-23.15.jpg 646w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a> \u00a0<a href=\"https:\/\/phoenixgamedevelopment.com\/blog\/wp-content\/uploads\/2015\/09\/PhoenixGameDevelopment23-Sep.-26-23.16.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-1605\" src=\"https:\/\/phoenixgamedevelopment.com\/blog\/wp-content\/uploads\/2015\/09\/PhoenixGameDevelopment23-Sep.-26-23.16-300x236.jpg\" alt=\"PhoenixGameDevelopment23 Sep. 26 23.16\" width=\"300\" height=\"236\" srcset=\"https:\/\/phoenixgamedevelopment.com\/blog\/wp-content\/uploads\/2015\/09\/PhoenixGameDevelopment23-Sep.-26-23.16-300x236.jpg 300w, https:\/\/phoenixgamedevelopment.com\/blog\/wp-content\/uploads\/2015\/09\/PhoenixGameDevelopment23-Sep.-26-23.16.jpg 646w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a> \u00a0<a href=\"https:\/\/phoenixgamedevelopment.com\/blog\/wp-content\/uploads\/2015\/09\/PhoenixGameDevelopment25-Sep.-26-23.19.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-1603\" src=\"https:\/\/phoenixgamedevelopment.com\/blog\/wp-content\/uploads\/2015\/09\/PhoenixGameDevelopment25-Sep.-26-23.19-300x236.jpg\" alt=\"PhoenixGameDevelopment25 Sep. 26 23.19\" width=\"300\" height=\"236\" srcset=\"https:\/\/phoenixgamedevelopment.com\/blog\/wp-content\/uploads\/2015\/09\/PhoenixGameDevelopment25-Sep.-26-23.19-300x236.jpg 300w, https:\/\/phoenixgamedevelopment.com\/blog\/wp-content\/uploads\/2015\/09\/PhoenixGameDevelopment25-Sep.-26-23.19.jpg 646w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a> <a href=\"https:\/\/phoenixgamedevelopment.com\/blog\/wp-content\/uploads\/2015\/09\/PhoenixGameDevelopment26-Sep.-26-23.20.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-1602\" src=\"https:\/\/phoenixgamedevelopment.com\/blog\/wp-content\/uploads\/2015\/09\/PhoenixGameDevelopment26-Sep.-26-23.20-300x236.jpg\" alt=\"PhoenixGameDevelopment26 Sep. 26 23.20\" width=\"300\" height=\"236\" srcset=\"https:\/\/phoenixgamedevelopment.com\/blog\/wp-content\/uploads\/2015\/09\/PhoenixGameDevelopment26-Sep.-26-23.20-300x236.jpg 300w, https:\/\/phoenixgamedevelopment.com\/blog\/wp-content\/uploads\/2015\/09\/PhoenixGameDevelopment26-Sep.-26-23.20.jpg 646w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a> \u00a0\u00a0\u00a0<a href=\"https:\/\/phoenixgamedevelopment.com\/blog\/wp-content\/uploads\/2015\/09\/PhoenixGameDevelopment32-Sep.-27-01.18.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-1596\" src=\"https:\/\/phoenixgamedevelopment.com\/blog\/wp-content\/uploads\/2015\/09\/PhoenixGameDevelopment32-Sep.-27-01.18-300x236.jpg\" alt=\"PhoenixGameDevelopment32 Sep. 27 01.18\" width=\"300\" height=\"236\" srcset=\"https:\/\/phoenixgamedevelopment.com\/blog\/wp-content\/uploads\/2015\/09\/PhoenixGameDevelopment32-Sep.-27-01.18-300x236.jpg 300w, https:\/\/phoenixgamedevelopment.com\/blog\/wp-content\/uploads\/2015\/09\/PhoenixGameDevelopment32-Sep.-27-01.18.jpg 646w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a> <a href=\"https:\/\/phoenixgamedevelopment.com\/blog\/wp-content\/uploads\/2015\/09\/PhoenixGameDevelopment31-Sep.-27-01.15.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-1597\" src=\"https:\/\/phoenixgamedevelopment.com\/blog\/wp-content\/uploads\/2015\/09\/PhoenixGameDevelopment31-Sep.-27-01.15-300x236.jpg\" alt=\"PhoenixGameDevelopment31 Sep. 27 01.15\" width=\"300\" height=\"236\" srcset=\"https:\/\/phoenixgamedevelopment.com\/blog\/wp-content\/uploads\/2015\/09\/PhoenixGameDevelopment31-Sep.-27-01.15-300x236.jpg 300w, https:\/\/phoenixgamedevelopment.com\/blog\/wp-content\/uploads\/2015\/09\/PhoenixGameDevelopment31-Sep.-27-01.15.jpg 646w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>&nbsp; I have successfully implemented the heat map, or false colour map. The quality of the resulting image isn&#8217;t fantastic, but it is quite good. I am confident that with proper post processing, such as interpolating, smoothing, etc, I can increase the quality even more. I implemented the heatmap by first converting the temperature information [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6,12],"tags":[],"class_list":["post-1608","post","type-post","status-publish","format-standard","hentry","category-inventions","category-tutorials","has-post-title","has-post-date","has-post-category","has-post-tag","has-post-comment","has-post-author",""],"aioseo_notices":[],"builder_content":"","_links":{"self":[{"href":"https:\/\/phoenixgamedevelopment.com\/blog\/wp-json\/wp\/v2\/posts\/1608"}],"collection":[{"href":"https:\/\/phoenixgamedevelopment.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/phoenixgamedevelopment.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/phoenixgamedevelopment.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/phoenixgamedevelopment.com\/blog\/wp-json\/wp\/v2\/comments?post=1608"}],"version-history":[{"count":2,"href":"https:\/\/phoenixgamedevelopment.com\/blog\/wp-json\/wp\/v2\/posts\/1608\/revisions"}],"predecessor-version":[{"id":1610,"href":"https:\/\/phoenixgamedevelopment.com\/blog\/wp-json\/wp\/v2\/posts\/1608\/revisions\/1610"}],"wp:attachment":[{"href":"https:\/\/phoenixgamedevelopment.com\/blog\/wp-json\/wp\/v2\/media?parent=1608"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/phoenixgamedevelopment.com\/blog\/wp-json\/wp\/v2\/categories?post=1608"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/phoenixgamedevelopment.com\/blog\/wp-json\/wp\/v2\/tags?post=1608"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}