Fake Miniature

Introduction

In this project, we are going to create fake miniatures by simulating the effect of selective focus cameras.

Process

Focus line: From a 2D image it is technically impossible to recover depth information. Rather than accurately defining at what distance objects are, we can use a good heuristic that objects on the same straigh line are at the same depth.
Depth of Field: The depth of field is the part of the image in focus. Notice that in an actual camera focusing on a plane means that all objects in that plane are in focus. Since we are faking the process and approximating the focus plane by sa simple line choosing the right size for the depth of field is very important. In the simple situations the DOF is just a rectangle around the focus line.
Blurring: Regions of the image further away from the DOF should have more blur. We apply Gaussian filter for the blurring effect.
Original Fake Miniature
Original Fake Miniature
Original Fake Miniature
Original Fake Miniature