CS194-26 Final Project 1: Seam Carving

Swapnil Thombre [aez]

Background

For this project, we implemented Seam Carving which is basically a way to resize images without distorting it or losing any valuable information. The way to do this is through Seam Carving. We basically ran the following algorithm on the images: 1) Find the value for each pixel based on a function 2) Keep repeating until # of seams to remove is 0 -> find lowest seam value and delete this. For the function, I used Gradient Magnitude from a Sobel Filter from the image converted to greyscale. I got the vertical seams through a path from the top to the bottom of the image, taking one pixel from each line of pixels to connect. It would then find the seams with the lowest energy and delete them, thereby minimixing the effect on the whole image. To do this horizontally, I just flipped my image and ran the same vertical algorithm.

House Original, Width - 100 Pixels, Height - 100 pixels

Person Original, Width - 100 Pixels, Height - 100 pixels

Hoop Original, Width - 100 Pixels, Height - 100 pixels

Strawberry Original, Width - 100 Pixels, Height - 100 pixels

Tower Original, Width - 100 Pixels, Height - 100 pixels

Tree Original, Width - 100 Pixels, Height - 100 pixels

CS194-26 Final Project 2: Fake Miniatures

Background

The idea of fake miniatures is to basically blur out the background of an image to highlight a piece of the image. This is used to imitate miniature model pictures and also to highlight specific parts of a picture for effect. To do this, I basically created a mask in Photoshop of the part of the image I wanted highlighted and then blurred it repeatedly against the imag e using Guassian filtering and Laplacian stacks. Then I enhanced the colors to make the change seem bigger and I was ended with results I was pleased with.

European Town Before and After

Catan Board Before and After (self)

Train Station Before and After

Table Before and After (self)