Computational Photography 15-862
Project2: Seam Carving
Yajuan Wang


This project mainly uses Seam Carving method to relieze content-aware imge resizing.
Here is the result of each part:

  1. Horizontal Carving Result Using Gradient Energy Function
  2. Vertical Carving Result Using Gradient Energy Function
  3. Comparison Result Using Gradient and Entropy Energy Function
  4. Image Enlarging Result
  5. Unsuccessful Results Using Both Method
  6. Using GIMP to Deal With Images
  7. Image Sources


1. Horizontal Carving Result Using Gradient Energy Function

2. Vertical Carving Result Using Gradient Energy Function

3. Comparison Result Using Gradient and Entropy+Gradient Energy Function

Original Images Horizontal Carving Using Entropy+Gradient (Better) Horizontal Carving Using Gradient

From the above results, we could tell that using Entropy+Gradient method works better than Gradient method for some images. I think the former can keep certain details in images with lower gradient which would be removed using gradient method.

Original Images Carving Using Entropy+Gradient (similar) Carving Using Gradient(similar or better)

4. Image Enlarging Result(The result in this part is gotten through calculating the first k seams throught gradient seam carving methods then repeating these seams.)

5. Unsuccessful Results Using Both Method

Original Images Carving Using Entropy+Gradient Carving Using Gradient

6.Using GIMP to Deal With Images

Original Images Cloning Scaling
Original Images Cloning to remove flowers Cloning to add flowers

7. Image Sources:

  1. Horizontal Carving Result Using Gradient Energy Function(in order of appearance)
    • http://www.trekearth.com/gallery/
    • http://www.trekearth.com/gallery/
    • My photo from DC
    • My photo from Pitts
    • My photo from FL
    • My photo from FL
    • My photo from Caltech
    • My photo from Caltech
    • My photo from DC
    • My photo from FL

  2. Vertical Carving Result Using Gradient Energy Function
    • All the photos from http://www.trekearth.com/gallery/

  3. Comparison Result Using Gradient and Entropy Energy Function
    Gradient+Entropy works better:
    • http://www.webshots.com/
    • http://www.trekearth.com/gallery/
    • http://www.trekearth.com/gallery/
    • My photo from FL

    Similar result or gradient works better:
    • http://www.trekearth.com/gallery/
    • My photo from Caltech
    • My photo from Caltech

  4. Image Enlarging Result
    • http://www.trekearth.com/gallery/
    • http://www.trekearth.com/gallery/
    • http://www.trekearth.com/gallery/
    • http://www.trekearth.com/gallery/
    • http://www.trekearth.com/gallery/
    • http://www.webshots.com/

  5. Unsuccessful Results Using Both Method
    • My photo from Caltech
    • My photo from DC
    • My photo from DC

  6. Using GIMP to Deal With Images
    • My photo from FL
    • My photo from DC