Digital Tilt-Shift Photography

Initializing live version
Download to Desktop

Requires a Wolfram Notebook System

Interact on desktop, mobile and cloud with the free Wolfram Player or other Wolfram Language products.

Tilt-shift photography refers to a technique used to achieve a very shallow depth of field in a photograph. Tilting the lens changes the plane of focus, while shifting controls perspective.


In this Demonstration, the tilt-shift effect is simulated by combining image blurring and a gradient distance field. The "digital" tilt-shift creates focused areas and gradually defocuses the rest of the image.

By using this technique together with clever shot angles and some image adjustments, an image can be modified so that it looks like a photograph of miniature models. This process is sometimes called "miniature faking".


Contributed by: Yu-Sung Chang (April 2011)
Open content licensed under CC BY-NC-SA



The size of the transition area around the mask is controlled by "threshold". The larger its value, the smoother the transition between focused and blurred areas will be.

Feedback (field required)
Email (field required) Name
Occupation Organization
Note: Your message & contact information may be shared with the author of any specific Demonstration for which you give feedback.