What are some common focus stacking algorithms?

I want to write my own software for focusing, but I could not find a suitable explanation of any algorithm for extracting in focus parts of each image on the stack.

For those unfamiliar with focusing, this Wikipedia article explains the idea well.

Can someone point me in the right direction to search for an algorithm? Even some search keywords would be helpful.

+5
source share
1 answer

I understand that this is more than a year, but for everyone who is interested ...

I had quite a bit of experience in machine visualization, and that is exactly how I would do it:

  • Loading each image into memory
  • Gaussian (, Green):

    :

    1 2 1

    2 4 2

    1 2 1

    , , . , , 4, , .

    , :

    (- ((( * )/2/C/C + ( * )/2//)))

    c -

  • ​​ ,

    :

    -1 -1 -1

    -1 8 -1

    -1 -1 -1

    , , ​​ .

    :

    (- 1/////) * (1- ( * + * )/2//) * (- ( * + * )/2//)

  • . .

  • , LoG ( ) RGB .

MATLAB, :

http://www.magiclantern.fm/forum/index.php?topic=11886.0

. Outsharp.bmp, .

, :  - (, )  - ,  - , .  - ( 16) , .

!

+12

All Articles