Skip to content

sunsided/focus-stacking

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Focus stacking and depth synthesis

This repo contains some experiments about focus stacking, i.e. synthesis of in-focus areas of different images.

Simultaneously, a depth map of the scene is reconstructed by taking advantage of a priori knowledge of the images taken, such as focal distance of each image.

Code

Open the focus-stacking.ipynb notebook to start.

Example images

First image of the sequence:

First input image

Depth reconstruction from defocus (using all images):

Depth from focus

Stacked/fused images:

Fused images