Yanhe Chen
In this assignment I create fake miniatures (a prolific flickr topic) by simulating the effect of selective focus cameras, also known as Tilt Shift. Most methods rely on photo editors like GIMP and Photoshop to achieve the effect. A user selects a focus plane by masking a region of interests and applying a blurring filter to the rest of the image. Effectively this narrows the perceived depth of field in the scene and creates the illusion that the lens was really close to the subject.
1. I set a focus line input by myself
2. I define the size of the fake depth of filed(DOF)
3. I blur the image through gaussian blur to 2D matrix with sigma 2.
4. I saturate all the images by 1.1.(turning into rgb2hsv and multiply 1.1 and hsv2rgb.
One of the papers at SIGGRAPH that made news when it first came out was Seam Carving for Content-Aware Image Resizing by Shai Avidan and Ariel Shamir. In this assignment, you'll be implementing the basic algorithm presented therein. To wit, you'll be designing a program which can shrink an image (either horizontally or vertically) to a given dimension.
1.Determine the 'importance' each pixel has using an dynamic programming to find the energy map.
2. Find the lowest-importance seam in the image.
3. cut them out.
4. repeat N times