Assignment 3: Seam Carver

This week's assignment built off of last week's.  Using the same algorithm to calculate the gradient between pixels, I implemented a seam carving program.  Given an image and a desired height and width, the program will resize the image by removing rows and columns that are the least unique.

Here are some examples of the results.   Some of them are really strange.

before

after


before

after


before

after


before

after


before

after

It took me a while to get it working right.  For a while the program was making incorrect comparisons, and here is what it put out:

It doesn't look much worse than the correct one.





Home