CS 194-26 Final Projects

Alvin Zhang

Seam Carving

In this project, I find minimum energy seams in images to shrink or expand them.


Carving Examples


Cityscape, from picsart.com.



A second cityscape, from Instagram user mahdifad.



Couch, from the project website.



Dolphin, from the Seam Carving paper website (http://www.faculty.idc.ac.il/arik/SCWeb/imret/index.html).



"Landscape with Aeneas at Delos" painting, 1672, Claude. From the UK national gallery.



waterfall, from the Seam Carving paper website (http://www.faculty.idc.ac.il/arik/SCWeb/imret/index.html).


Bells and Whistles: Seam Insertion


Dolphin, from the Seam Carving paper website (http://www.faculty.idc.ac.il/arik/SCWeb/imret/index.html).



"Landscape with Aeneas at Delos" painting, 1672, Claude. From the UK national gallery.


Failure Modes


House, from the project website. I only used the gradient-based energy function in my implementation, and this might be why I was unable to reproduce the results shown on the project website.


Texture Quilting

In this project, I extrapolate existing textures, and transfer them to match target images.


Random Quilting


Naive method, where random patches are sampled from the source texture to create the new texture. Artefacts are clearly visible.


Simple Quilting


Improved method, where patches matching the generated new texture on an overlapping region are iteratively sampled from the source texture and added to the new texture. Fewer artefacts, but the existing ones extend in long lines.


Cut Quilting


Full method, where matches are fused on the overlapping region according to seam carving with an SSD-based energy function. Still contains artefacts, but they are less visually obvious.


Seam Carving


Example seam found for texture quilting.


Texture Quilting

Examples.





Texture Transfer

Extends the cut quilt method above. Instead of sampling from the source image to match the currently generated texture, tries to match both the currently generated texture and the luminescence of a target image at that location.