The goal of this first project is to create fake miniatures by simulating the effect of selective focus cameras, also known as Tilt Shift. Here we select 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. This makes a photograph of objects or a landscape look almost like minitaure "toys".
For the implementation, I first select points to be a part of our focus line. For creating the fake depth of field I use the same Guassian blurring from past projects with the further away parts having more blur. Lastly, I did color adjustment by enhancing the contrast and saturation until it looked good to me.
Original Image
Blurred Miniature
Color Adjustment
Original Image
Blurred Miniature
Color Adjustment
Original Image
Blurred Miniature
Color Adjustment
Original Image
Blurred Miniature
Color Adjustment
Original Image
Blurred Miniature
Color Adjustment
Original Image
Blurred Miniature
Color Adjustment
Original Image
Blurred Miniature
Color Adjustment
The goal of this project is to implement the basic algorithm that can shrink an image (either horizontally or vertically) to a given dimension.
The most interesting thing I learned is how to actually apply dynamic programming to image alteration, which is something I didn't really think about before. We use DP to find the least-important seams.
The implementation is based on removing out seams with the lowest importance. The Dynamic Programming relationship we use to remove the lowest-importance seams is:
M[i][j] = importance(gradient, i, j) + min(M[i-1][j], M[i][j-1], M[i+1][j-1])
Original Image
Horizontal Carving
Vertical Carving
Original Image
Horizontal Carving
Vertical Carving
Looks similar to the results from the project website.
Original Image
Horizontal Carving
Vertical Carving
Original Image
Horizontal Carving
Vertical Carving
Original Image
Horizontal Carving
Vertical Carving
Original Image
Horizontal Carving
Vertical Carving
Original Image
Horizontal Carving
Vertical Carving
Original Image
Horizontal Carving
Vertical Carving
In the horizontal carving, Kim's face becomes distorted. Here, the lowest importance seams were not detected the best.
Original Image
Horizontal Carving
Vertical Carving
In the vertical carving, we see that the basketball becomes distorted because the circle outline of the basketball is affected.