{"id":185,"date":"2020-08-20T20:11:46","date_gmt":"2020-08-21T00:11:46","guid":{"rendered":"http:\/\/wordpress.forensicpath.us\/?p=185"},"modified":"2020-09-04T11:28:38","modified_gmt":"2020-09-04T15:28:38","slug":"using-hdr-methods-for-photomicrographs","status":"publish","type":"post","link":"https:\/\/wordpress.forensicpath.us\/index.php\/2020\/08\/20\/using-hdr-methods-for-photomicrographs\/","title":{"rendered":"Using HDR methods for photomicrographs"},"content":{"rendered":"<p>I&#8217;ve been playing around a little with some HDR software to see if it might be useful in photomicrography.\u00a0 My results have been mixed.\u00a0 I think it may be useful, depending on what you are trying to show with the photomicrograph.\u00a0 For those who don&#8217;t know, HDR imaging stands for &#8220;high dynamic range&#8221; imaging.\u00a0 The idea is that sometimes details that are very dark or very light are sometimes obscured in regular photography because they all get coded into very few light or dark values.\u00a0 Let&#8217;s say I have a series of pixels that are 0 1 2 10 50 200 300 500 900 1000 1001 1002,\u00a0 and let&#8217;s say that we can display values between 100 and 900.\u00a0 In the photograph that can display values from 100 to 900, the result will be 100 100 100 100 100 200 300 500 900 900 900 900, since all the values below 100 are set to 100 and all the values above 900 become 900.<\/p>\n<p>So, you take multiple photos at different exposures.\u00a0 Say we take three.\u00a0 One is regular exposure.\u00a0 One is overexposed, so that everything is slid upwards.\u00a0 In that case, the values would be 100 150 300 600 900 1400 2000 3000 3100 3200 3300, which, with the same limits on the image, become 100 150 300 600 900 900 900 900 900 900 900.\u00a0 Similarly, you take an underexposed image that, when encoded, ends up as, say 100 100 100 100 100 100 100 200 300 400 500.\u00a0 In the underexposed image, the bright objects have good separation, but everything else is bunched towards the bottom.\u00a0 In the overexposed image, the dark objects are easily seen, but the brighter objects are washed out.\u00a0 In the regular exposure, the broad middle looks good, with a little bit of things getting lost at both the dark and light edges.<\/p>\n<p>Then you combine them so that you get the best discrimination for each object in the photo.\u00a0 The good news is that you have enough information that you should be able to do that.\u00a0 The bad news is that you still have a limited number of levels you display, so whatever method you use to combine the images, the result will not be entirely realistic.\u00a0 Also, as you might expect, there are a lot of possible strategies for combining the images.\u00a0 Some of these focus on preserving color, some focus on enhancing contrast, others focus on luminance issues, etc.<\/p>\n<p>This technique is often used in landscape photography.\u00a0 The results are often pleasing but just a little bit unrealistic.\u00a0 You can look at some examples <a href=\"https:\/\/webneel.com\/best-hdr-photography-inspiration-tips\">here. <\/a>They are all very pretty, but somewhat unworldly.<\/p>\n<p>So, let&#8217;s see what happens with photomicrographs.\u00a0 Here are three photos of a liver section, one regular, one light, one dark.<\/p>\n<p><a href=\"https:\/\/wordpress.forensicpath.us\/wp-content\/uploads\/2020\/08\/DSC_7335.JPG.ppm_.cut_.ppm_-scaled.jpg\"><img fetchpriority=\"high\" decoding=\"async\" class=\"alignnone size-large wp-image-186\" src=\"https:\/\/wordpress.forensicpath.us\/wp-content\/uploads\/2020\/08\/DSC_7335.JPG.ppm_.cut_.ppm_-1024x768.jpg\" alt=\"\" width=\"720\" height=\"540\" srcset=\"https:\/\/wordpress.forensicpath.us\/wp-content\/uploads\/2020\/08\/DSC_7335.JPG.ppm_.cut_.ppm_-1024x768.jpg 1024w, https:\/\/wordpress.forensicpath.us\/wp-content\/uploads\/2020\/08\/DSC_7335.JPG.ppm_.cut_.ppm_-300x225.jpg 300w, https:\/\/wordpress.forensicpath.us\/wp-content\/uploads\/2020\/08\/DSC_7335.JPG.ppm_.cut_.ppm_-768x576.jpg 768w, https:\/\/wordpress.forensicpath.us\/wp-content\/uploads\/2020\/08\/DSC_7335.JPG.ppm_.cut_.ppm_-1536x1152.jpg 1536w, https:\/\/wordpress.forensicpath.us\/wp-content\/uploads\/2020\/08\/DSC_7335.JPG.ppm_.cut_.ppm_-2048x1536.jpg 2048w\" sizes=\"(max-width: 720px) 100vw, 720px\" \/><\/a> <a href=\"https:\/\/wordpress.forensicpath.us\/wp-content\/uploads\/2020\/08\/DSC_7336.JPG.ppm_.cut_.ppm_-scaled.jpg\"><img decoding=\"async\" class=\"alignnone size-large wp-image-187\" src=\"https:\/\/wordpress.forensicpath.us\/wp-content\/uploads\/2020\/08\/DSC_7336.JPG.ppm_.cut_.ppm_-1024x768.jpg\" alt=\"\" width=\"720\" height=\"540\" srcset=\"https:\/\/wordpress.forensicpath.us\/wp-content\/uploads\/2020\/08\/DSC_7336.JPG.ppm_.cut_.ppm_-1024x768.jpg 1024w, https:\/\/wordpress.forensicpath.us\/wp-content\/uploads\/2020\/08\/DSC_7336.JPG.ppm_.cut_.ppm_-300x225.jpg 300w, https:\/\/wordpress.forensicpath.us\/wp-content\/uploads\/2020\/08\/DSC_7336.JPG.ppm_.cut_.ppm_-768x576.jpg 768w, https:\/\/wordpress.forensicpath.us\/wp-content\/uploads\/2020\/08\/DSC_7336.JPG.ppm_.cut_.ppm_-1536x1152.jpg 1536w, https:\/\/wordpress.forensicpath.us\/wp-content\/uploads\/2020\/08\/DSC_7336.JPG.ppm_.cut_.ppm_-2048x1536.jpg 2048w\" sizes=\"(max-width: 720px) 100vw, 720px\" \/><\/a> <a href=\"https:\/\/wordpress.forensicpath.us\/wp-content\/uploads\/2020\/08\/DSC_7337.JPG.ppm_.cut_.ppm_-scaled.jpg\"><img decoding=\"async\" class=\"alignnone size-large wp-image-188\" src=\"https:\/\/wordpress.forensicpath.us\/wp-content\/uploads\/2020\/08\/DSC_7337.JPG.ppm_.cut_.ppm_-1024x768.jpg\" alt=\"\" width=\"720\" height=\"540\" srcset=\"https:\/\/wordpress.forensicpath.us\/wp-content\/uploads\/2020\/08\/DSC_7337.JPG.ppm_.cut_.ppm_-1024x768.jpg 1024w, https:\/\/wordpress.forensicpath.us\/wp-content\/uploads\/2020\/08\/DSC_7337.JPG.ppm_.cut_.ppm_-300x225.jpg 300w, https:\/\/wordpress.forensicpath.us\/wp-content\/uploads\/2020\/08\/DSC_7337.JPG.ppm_.cut_.ppm_-768x576.jpg 768w, https:\/\/wordpress.forensicpath.us\/wp-content\/uploads\/2020\/08\/DSC_7337.JPG.ppm_.cut_.ppm_-1536x1152.jpg 1536w, https:\/\/wordpress.forensicpath.us\/wp-content\/uploads\/2020\/08\/DSC_7337.JPG.ppm_.cut_.ppm_-2048x1536.jpg 2048w\" sizes=\"(max-width: 720px) 100vw, 720px\" \/><\/a><\/p>\n<p>I made these simply by changing exposure time on my camera.<\/p>\n<p>Now, let&#8217;s combine them.\u00a0 Here&#8217;s the results of two methods.\u00a0 I used &#8220;LuminanceHDR&#8221; on a laptop running Fedora 32 linux.<\/p>\n<p>&nbsp;<\/p>\n<p><a href=\"https:\/\/wordpress.forensicpath.us\/wp-content\/uploads\/2020\/08\/DSC_7335_pregamma_1_mai__postsaturation_1_postgamma_1-scaled.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large wp-image-190\" src=\"https:\/\/wordpress.forensicpath.us\/wp-content\/uploads\/2020\/08\/DSC_7335_pregamma_1_mai__postsaturation_1_postgamma_1-1024x752.jpg\" alt=\"\" width=\"720\" height=\"529\" srcset=\"https:\/\/wordpress.forensicpath.us\/wp-content\/uploads\/2020\/08\/DSC_7335_pregamma_1_mai__postsaturation_1_postgamma_1-1024x752.jpg 1024w, https:\/\/wordpress.forensicpath.us\/wp-content\/uploads\/2020\/08\/DSC_7335_pregamma_1_mai__postsaturation_1_postgamma_1-300x220.jpg 300w, https:\/\/wordpress.forensicpath.us\/wp-content\/uploads\/2020\/08\/DSC_7335_pregamma_1_mai__postsaturation_1_postgamma_1-768x564.jpg 768w, https:\/\/wordpress.forensicpath.us\/wp-content\/uploads\/2020\/08\/DSC_7335_pregamma_1_mai__postsaturation_1_postgamma_1-1536x1128.jpg 1536w, https:\/\/wordpress.forensicpath.us\/wp-content\/uploads\/2020\/08\/DSC_7335_pregamma_1_mai__postsaturation_1_postgamma_1-2048x1504.jpg 2048w\" sizes=\"(max-width: 720px) 100vw, 720px\" \/><\/a> <a href=\"https:\/\/wordpress.forensicpath.us\/wp-content\/uploads\/2020\/08\/DSC_7335_pregamma_1_mantiuk08_luminancelevel_46.54_color_saturation_1.1_contrast_enhancement_1.01_postsaturation_1_postgamma_1-scaled.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large wp-image-189\" src=\"https:\/\/wordpress.forensicpath.us\/wp-content\/uploads\/2020\/08\/DSC_7335_pregamma_1_mantiuk08_luminancelevel_46.54_color_saturation_1.1_contrast_enhancement_1.01_postsaturation_1_postgamma_1-1024x752.jpg\" alt=\"\" width=\"720\" height=\"529\" srcset=\"https:\/\/wordpress.forensicpath.us\/wp-content\/uploads\/2020\/08\/DSC_7335_pregamma_1_mantiuk08_luminancelevel_46.54_color_saturation_1.1_contrast_enhancement_1.01_postsaturation_1_postgamma_1-1024x752.jpg 1024w, https:\/\/wordpress.forensicpath.us\/wp-content\/uploads\/2020\/08\/DSC_7335_pregamma_1_mantiuk08_luminancelevel_46.54_color_saturation_1.1_contrast_enhancement_1.01_postsaturation_1_postgamma_1-300x220.jpg 300w, https:\/\/wordpress.forensicpath.us\/wp-content\/uploads\/2020\/08\/DSC_7335_pregamma_1_mantiuk08_luminancelevel_46.54_color_saturation_1.1_contrast_enhancement_1.01_postsaturation_1_postgamma_1-768x564.jpg 768w, https:\/\/wordpress.forensicpath.us\/wp-content\/uploads\/2020\/08\/DSC_7335_pregamma_1_mantiuk08_luminancelevel_46.54_color_saturation_1.1_contrast_enhancement_1.01_postsaturation_1_postgamma_1-1536x1128.jpg 1536w, https:\/\/wordpress.forensicpath.us\/wp-content\/uploads\/2020\/08\/DSC_7335_pregamma_1_mantiuk08_luminancelevel_46.54_color_saturation_1.1_contrast_enhancement_1.01_postsaturation_1_postgamma_1-2048x1504.jpg 2048w\" sizes=\"(max-width: 720px) 100vw, 720px\" \/><\/a><\/p>\n<p>The results are certainly not quite what I see through the scope in terms of color, but some of the features really seem to pop out.\u00a0 In any case, it may be worth giving a try.<\/p>\n<p>There are a number of f<a href=\"https:\/\/expertphotography.com\/free-hdr-software\/\">ree applications that will allow different ways of combining images to create HDR photos.<\/a>\u00a0 A number are <a href=\"https:\/\/www.linuxlinks.com\/hdrimaging\/\">available for Linux<\/a>.\u00a0 As I noted, I use Luminance HDR for the most part, but sometimes use Raw Therapee.\u00a0 I am not familiar with most of the Windows apps, since I&#8217;m a Linux guy.<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I&#8217;ve been playing around a little with some HDR software to see if it might be useful in photomicrography.\u00a0 My&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[27,24,25,28,26],"class_list":["post-185","post","type-post","status-publish","format-standard","hentry","category-uncategorized","tag-image-processing","tag-imaging","tag-microscopy","tag-pathology","tag-photomicrography"],"_links":{"self":[{"href":"https:\/\/wordpress.forensicpath.us\/index.php\/wp-json\/wp\/v2\/posts\/185","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.forensicpath.us\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/wordpress.forensicpath.us\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/wordpress.forensicpath.us\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/wordpress.forensicpath.us\/index.php\/wp-json\/wp\/v2\/comments?post=185"}],"version-history":[{"count":4,"href":"https:\/\/wordpress.forensicpath.us\/index.php\/wp-json\/wp\/v2\/posts\/185\/revisions"}],"predecessor-version":[{"id":194,"href":"https:\/\/wordpress.forensicpath.us\/index.php\/wp-json\/wp\/v2\/posts\/185\/revisions\/194"}],"wp:attachment":[{"href":"https:\/\/wordpress.forensicpath.us\/index.php\/wp-json\/wp\/v2\/media?parent=185"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wordpress.forensicpath.us\/index.php\/wp-json\/wp\/v2\/categories?post=185"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wordpress.forensicpath.us\/index.php\/wp-json\/wp\/v2\/tags?post=185"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}