{"id":1188,"date":"2017-02-03T15:40:07","date_gmt":"2017-02-03T06:40:07","guid":{"rendered":"http:\/\/rageworx.info\/?p=1188"},"modified":"2017-02-03T15:44:00","modified_gmt":"2017-02-03T06:44:00","slug":"applying-hdr-in-medical-image","status":"publish","type":"post","link":"https:\/\/rageworx.info\/?p=1188","title":{"rendered":"Applying HDR in medical image."},"content":{"rendered":"<p><a href=\"http:\/\/rageworx.info\/wp-content\/uploads\/2017\/02\/applying_hdr_on_mi_title.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-medium wp-image-1189\" src=\"http:\/\/rageworx.info\/wp-content\/uploads\/2017\/02\/applying_hdr_on_mi_title-500x500.jpg\" alt=\"\" width=\"500\" height=\"500\" srcset=\"https:\/\/rageworx.info\/wp-content\/uploads\/2017\/02\/applying_hdr_on_mi_title-500x500.jpg 500w, https:\/\/rageworx.info\/wp-content\/uploads\/2017\/02\/applying_hdr_on_mi_title-200x200.jpg 200w, https:\/\/rageworx.info\/wp-content\/uploads\/2017\/02\/applying_hdr_on_mi_title-768x768.jpg 768w, https:\/\/rageworx.info\/wp-content\/uploads\/2017\/02\/applying_hdr_on_mi_title-300x300.jpg 300w, https:\/\/rageworx.info\/wp-content\/uploads\/2017\/02\/applying_hdr_on_mi_title-150x150.jpg 150w, https:\/\/rageworx.info\/wp-content\/uploads\/2017\/02\/applying_hdr_on_mi_title-800x800.jpg 800w, https:\/\/rageworx.info\/wp-content\/uploads\/2017\/02\/applying_hdr_on_mi_title.jpg 907w\" sizes=\"auto, (max-width: 500px) 100vw, 500px\" \/><\/a><\/p>\n<h3>Prologue<\/h3>\n<p>High dynamic tone mapping is a kind of graphical thesis to indemnify exposure of whole a image specially such as 256 leveled Red, Green, Blue (+Alpha transparency) formats. But high dynamic calculates all pixel levels as an floating point number with luminance ( in case of RGB, it convert each color channels to a luminance level ) to enhance for more dynamic ranged.<\/p>\n<h3>Programming<\/h3>\n<p>Examined all algorithms and refered to Free Image 3 library for how to make it as C++ code. Proceeded to stand-alone codes and finally embedded to my open source project, <a href=\"https:\/\/github.com\/rageworx\/librawprocessor\" target=\"_blank\">librawprocessor at my github repository<\/a>.<\/p>\n<h3>Testing results<\/h3>\n<p>As my experimental study, High dynamic tone mapping was enhances low exposed\/qulity medical images to fully ranged pixel levels in same min\/max range.<\/p>\n<p><a href=\"http:\/\/rageworx.info\/wp-content\/uploads\/2017\/02\/two_diff_imgs_full_range.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-medium wp-image-1190\" src=\"http:\/\/rageworx.info\/wp-content\/uploads\/2017\/02\/two_diff_imgs_full_range-500x265.jpg\" alt=\"\" width=\"500\" height=\"265\" srcset=\"https:\/\/rageworx.info\/wp-content\/uploads\/2017\/02\/two_diff_imgs_full_range-500x265.jpg 500w, https:\/\/rageworx.info\/wp-content\/uploads\/2017\/02\/two_diff_imgs_full_range-768x408.jpg 768w, https:\/\/rageworx.info\/wp-content\/uploads\/2017\/02\/two_diff_imgs_full_range-1024x544.jpg 1024w, https:\/\/rageworx.info\/wp-content\/uploads\/2017\/02\/two_diff_imgs_full_range-800x425.jpg 800w, https:\/\/rageworx.info\/wp-content\/uploads\/2017\/02\/two_diff_imgs_full_range-1200x637.jpg 1200w, https:\/\/rageworx.info\/wp-content\/uploads\/2017\/02\/two_diff_imgs_full_range.jpg 1840w\" sizes=\"auto, (max-width: 500px) 100vw, 500px\" \/><\/a><\/p>\n<p>Left image is original digital medical chest PA TFT detector image and it could be ranged about 0 to 2700.<\/p>\n<p><a href=\"http:\/\/rageworx.info\/wp-content\/uploads\/2017\/02\/origin_level_range.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-1193\" src=\"http:\/\/rageworx.info\/wp-content\/uploads\/2017\/02\/origin_level_range.jpg\" alt=\"\" width=\"300\" height=\"76\" \/><\/a><\/p>\n<p>Right image is processed Reinhard alogortihm (with parameters : contrast 1.0 and adaptation 0.5) to expand dynamic range.<\/p>\n<p><a href=\"http:\/\/rageworx.info\/wp-content\/uploads\/2017\/02\/hdr_level_range.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-medium wp-image-1192\" src=\"http:\/\/rageworx.info\/wp-content\/uploads\/2017\/02\/hdr_level_range-500x70.jpg\" alt=\"\" width=\"500\" height=\"70\" srcset=\"https:\/\/rageworx.info\/wp-content\/uploads\/2017\/02\/hdr_level_range-500x70.jpg 500w, https:\/\/rageworx.info\/wp-content\/uploads\/2017\/02\/hdr_level_range.jpg 616w\" sizes=\"auto, (max-width: 500px) 100vw, 500px\" \/><\/a><\/p>\n<p>Pixel levels spreads down to about 6500 without high peak as above image. Every pixel levels be flatten. It will be expected to better for adjust post image processing with less loses.<\/p>\n<p>Also it much better to examine anatomy with no special signal processing. Just doing thresholding window leveling makes good result to check organs.<\/p>\n<p><a href=\"http:\/\/rageworx.info\/wp-content\/uploads\/2017\/02\/two_diff_imgs_threshold_range.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-medium wp-image-1191\" src=\"http:\/\/rageworx.info\/wp-content\/uploads\/2017\/02\/two_diff_imgs_threshold_range-500x269.jpg\" alt=\"\" width=\"500\" height=\"269\" srcset=\"https:\/\/rageworx.info\/wp-content\/uploads\/2017\/02\/two_diff_imgs_threshold_range-500x269.jpg 500w, https:\/\/rageworx.info\/wp-content\/uploads\/2017\/02\/two_diff_imgs_threshold_range-768x413.jpg 768w, https:\/\/rageworx.info\/wp-content\/uploads\/2017\/02\/two_diff_imgs_threshold_range-1024x551.jpg 1024w, https:\/\/rageworx.info\/wp-content\/uploads\/2017\/02\/two_diff_imgs_threshold_range-800x431.jpg 800w, https:\/\/rageworx.info\/wp-content\/uploads\/2017\/02\/two_diff_imgs_threshold_range-1200x646.jpg 1200w, https:\/\/rageworx.info\/wp-content\/uploads\/2017\/02\/two_diff_imgs_threshold_range.jpg 1836w\" sizes=\"auto, (max-width: 500px) 100vw, 500px\" \/><\/a><\/p>\n<h3>Used program:<\/h3>\n<ul>\n<li>My medical raw image viewer, <a href=\"https:\/\/bitbucket.org\/rageworx_applications\/rawviewer\" target=\"_blank\">open source in bitbucket,<\/a> also <a href=\"https:\/\/bitbucket.org\/rageworx_applications\/rawviewer\/downloads\" target=\"_blank\">free download<\/a> availed.<\/li>\n<li>librawprocessor, supports AVX SIMD, OpenMP, 64bit all.<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Prologue High dynamic tone mapping is a kind of graphical thesis to indemnify exposure of whole a image specially such as 256 leveled Red, Green, Blue (+Alpha transparency) formats. But high dynamic calculates all pixel levels as an floating point number with luminance ( in case of RGB, it convert&#8230; <a href=\"https:\/\/rageworx.info\/?p=1188\">Read more &raquo;<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5,445,438,3],"tags":[449,448,450,447,446,451,452],"class_list":["post-1188","post","type-post","status-publish","format-standard","hentry","category-development","category-examination","category-medical","category-raphs","tag-hdr","tag-high-dynamic","tag-imaging","tag-librawprocessor","tag-medical","tag-processing","tag-tone-mapping"],"_links":{"self":[{"href":"https:\/\/rageworx.info\/index.php?rest_route=\/wp\/v2\/posts\/1188","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/rageworx.info\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/rageworx.info\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/rageworx.info\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/rageworx.info\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1188"}],"version-history":[{"count":0,"href":"https:\/\/rageworx.info\/index.php?rest_route=\/wp\/v2\/posts\/1188\/revisions"}],"wp:attachment":[{"href":"https:\/\/rageworx.info\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1188"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/rageworx.info\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1188"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/rageworx.info\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1188"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}