Given an image, a region is specified to be in focus. Everything outside of the region is blurred to create the tilt-shift effect.