Hyper Depth Of Focus


I have 65 images with extremely shallow depth of focus.
I wrote a software that finds sharp areas and combines them into a single sharp image.

Another image:

Here are the sources.

Download sources

Lessons learned:

  • Compile C# in 64 bits.
  • Release all OpenCV images or risk running out of memory.
  • Write software like that as a command line utility. Yes, I can add a worker thread and a progress bar, but command line would be a much better choice.
  • Hopefully I will find time to tell you where did I get those images.

    Email me if you want a copy of the source images of the bug to play with. It is 21 MB.

    Leave a Reply

    Your email address will not be published. Required fields are marked *

    You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>