{"id":2145,"date":"2013-04-26T00:19:23","date_gmt":"2013-04-26T06:19:23","guid":{"rendered":"http:\/\/blog.eastfist.com\/?p=2145"},"modified":"2013-04-26T00:19:23","modified_gmt":"2013-04-26T06:19:23","slug":"gimp-refocus-it-iterative-refocus-fix-motion-blur-windows","status":"publish","type":"post","link":"https:\/\/eastfist.com\/blog\/2013\/04\/26\/gimp-refocus-it-iterative-refocus-fix-motion-blur-windows\/","title":{"rendered":"GIMP Refocus-It Iterative Refocus Fix Motion Blur Windows"},"content":{"rendered":"<p>If you can&#8217;t afford the newest version of Adobe Photoshop CS, then you won&#8217;t have access to robust picture manipulating tools such as fixing motion blur among many other possibly useful tools. But there is help. If you don&#8217;t mind using the free image app called GIMP, there is a third-party plugin that will allow you to fix motion blur with suitable results. That plugin is called &#8220;Refocus-It&#8221;. Check this out&#8230;<!--more--><\/p>\n<p>It&#8217;s an older plugin, but still works with the latest version of GIMP (I&#8217;m using version 2.8.4) for Windows. You can download it here:<br \/>\n<a href=\"http:\/\/www.geocities.jp\/gimproject\/plug-ins\/refocus-it.html\">http:\/\/www.geocities.jp\/gimproject\/plug-ins\/refocus-it.html<\/a><br \/>\nor the direct link:<br \/>\n<a href=\"http:\/\/www.geocities.jp\/gimproject\/plug-ins\/win32-binary\/refocus-it.zip\">http:\/\/www.geocities.jp\/gimproject\/plug-ins\/win32-binary\/refocus-it.zip<\/a><br \/>\nor on my host, since it&#8217;s so hard to find:<br \/>\n<a href=\"http:\/\/files.eastfist.com\/refocus-it.zip\">http:\/\/files.eastfist.com\/refocus-it.zip<\/a><\/p>\n<p>As a note, this is the ONLY version that seems to work with the latest version of GIMP. If you download the version from the sourceforge.net site, that exe will be an older version and will not work. Use the link above. You can tell the difference because the newer, functioning version is about 96KB unzipped, while the older one is about 49KB unzipped.<\/p>\n<p>Once you download the zip file, unzip it and put the resulting exe file into:<br \/>\nC:\\Program Files\\GIMP 2\\lib\\gimp\\2.0\\plug-ins\\<\/p>\n<p>Then reboot GIMP and the plugin should be listed in<br \/>\nFilters > Enhance > Iterative refocus<\/p>\n<p>And this is the window:<br \/>\n<figure id=\"attachment_2147\" aria-describedby=\"caption-attachment-2147\" style=\"width: 360px\" class=\"wp-caption aligncenter\"><a href=\"http:\/\/blog.eastfist.com\/wp-content\/uploads\/2013\/04\/refocusitgimpplugin.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/blog.eastfist.com\/wp-content\/uploads\/2013\/04\/refocusitgimpplugin-360x357.jpg\" alt=\"GIMP refocus-it plugin window\" width=\"360\" height=\"357\" class=\"size-medium wp-image-2147\" \/><\/a><figcaption id=\"caption-attachment-2147\" class=\"wp-caption-text\">GIMP refocus-it plugin window<\/figcaption><\/figure><\/p>\n<p>The settings are:<\/p>\n<p>Degradation:<br \/>\n-Radius &#8211; This tells the plugin how many pixels to go out from each shifted pixel<br \/>\n-Gauss &#8211; This tells the plugin how much to blur the radius<br \/>\n-Motion size &#8211; This tells the plugin how man pixels the shift should be<br \/>\n-Motion angle\/direction widget &#8211; This tells the plugin which direction to shift the pixels<br \/>\n-Noise &#8211; This tells the plugin how much noise to put into the displaced areas<br \/>\n-Iterations &#8211; This tells the plugin how many times to loop to shift the pixels<br \/>\n-Boundary &#8211; Mirror or Periodical &#8211; Not sure what this does, but I usually leave it on default &#8220;mirror&#8221;. Of course, nothing is stopping anyone from experimenting.<\/p>\n<p>Area Smoothing:<br \/>\n-Smoothness &#8211; I suppose this is tied in with gaussian blurring<br \/>\n-Area size &#8211; Is this similar to gaussian radius?<br \/>\n-Adaptive smoothing on or off &#8211; Again, not sure what this does, but if you turn it off, it might do less crunching.<\/p>\n<p>Preview:<br \/>\n-Iterations &#8211; If you have a slow computer, you might not want the iterations high; NOTE: I&#8217;ve found that it is much easier to select a region of the image and apply the changes directly to it hitting OK than Preview. And then once you&#8217;re satisfied with the results, undo the change and apply the same settings to the entire image. <\/p>\n<p>And here are the before and after:<\/p>\n<p>BEFORE &#8211; Straight from my Nikon D3200, no retouching, no color correction, full 24 megapixel fine jpeg. To the naked eye, it seems it is already sharp, and that could be a trick because I&#8217;m focusing on the pixels of my laptop screen. But if you look at the pixel level, the lcds seems to bleed a bit to the left. LCDs are not square by nature, but we want to believe that they are pixel-like, so that&#8217;s why we use the plugin.<\/p>\n<figure id=\"attachment_2150\" aria-describedby=\"caption-attachment-2150\" style=\"width: 360px\" class=\"wp-caption aligncenter\"><a href=\"http:\/\/blog.eastfist.com\/wp-content\/uploads\/2013\/04\/DSC_0016.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/blog.eastfist.com\/wp-content\/uploads\/2013\/04\/DSC_0016-360x239.jpg\" alt=\"GIMP Refocus-It Before\" width=\"360\" height=\"239\" class=\"size-medium wp-image-2150\" \/><\/a><figcaption id=\"caption-attachment-2150\" class=\"wp-caption-text\">GIMP Refocus-It Before<\/figcaption><\/figure>\n<p>AFTER &#8211; I noticed there being about a 9 pixel shift motion blur to the left, so I reversed the direction 180 degrees. You&#8217;ll only notice the change at the pixel level. But once you resample it down, you&#8217;ll see how tack sharp the result is.<\/p>\n<figure id=\"attachment_2152\" aria-describedby=\"caption-attachment-2152\" style=\"width: 360px\" class=\"wp-caption aligncenter\"><a href=\"http:\/\/blog.eastfist.com\/wp-content\/uploads\/2013\/04\/refocusItDemo.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/blog.eastfist.com\/wp-content\/uploads\/2013\/04\/refocusItDemo-360x239.jpg\" alt=\"GIMP Refocus-It After\" width=\"360\" height=\"239\" class=\"size-medium wp-image-2152\" \/><\/a><figcaption id=\"caption-attachment-2152\" class=\"wp-caption-text\">GIMP Refocus-It After<\/figcaption><\/figure>\n<p>Note, though, that I exported the refocused 24 megapixel jpeg out of GIMP at double the size of the original because I wanted it to be lossless.<\/p>\n<p>Note: When you are processing the image, it might say that it isn&#8217;t responding, but if you bring up Windows Task Manager and watch the memory\/RAM usage, and as long as it&#8217;s doing something (the ram is getting populated, which means the bitmap&#8217;s pixels are getting written to memory), then it will follow through. Just be warned, if you are dealing with HD images, that you should have sufficient CPU and RAM capacity. A 24 megapixel jpeg is about 300 megapixels of RAM, and the plugin will generate a 500+ megapixel memory bitmap, which totals about 800 megabits guaranteed, so 1GB or more of RAM is definitely required.<\/p>\n<p>FINAL THOUGHTS<br \/>\nI think Refocus-it is an amazing tool for anyone who cannot afford Adobe Photoshop CS2 or later (because those versions include some form of built in refocus filter). Using GIMP, although clunky and slow at times with this plugin, you can get some amazing results. And it&#8217;s free.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>If you can&#8217;t afford the newest version of Adobe Photoshop CS, then you won&#8217;t have access to robust picture manipulating tools such as fixing motion blur among many other possibly useful tools. But there is help. If you don&#8217;t mind using the free image app called GIMP, there is a third-party plugin that will allow [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4,9],"tags":[33,776,972,989,1095,1233,1696,1949,2125,2688,2837],"class_list":["post-2145","post","type-post","status-publish","format-standard","hentry","category-artistic","category-tech","tag-2-8","tag-download","tag-fix","tag-focus","tag-gimp","tag-how-to","tag-motion-blur","tag-plugin","tag-refocus-it","tag-tutorial","tag-windows"],"_links":{"self":[{"href":"https:\/\/eastfist.com\/blog\/wp-json\/wp\/v2\/posts\/2145","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/eastfist.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/eastfist.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/eastfist.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/eastfist.com\/blog\/wp-json\/wp\/v2\/comments?post=2145"}],"version-history":[{"count":0,"href":"https:\/\/eastfist.com\/blog\/wp-json\/wp\/v2\/posts\/2145\/revisions"}],"wp:attachment":[{"href":"https:\/\/eastfist.com\/blog\/wp-json\/wp\/v2\/media?parent=2145"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/eastfist.com\/blog\/wp-json\/wp\/v2\/categories?post=2145"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/eastfist.com\/blog\/wp-json\/wp\/v2\/tags?post=2145"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}