Bingo-Yang / animating-pictures

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Animating Pictures with Motion Textures

An implementation of "Animating Pictures with Stochastic Motion Textures" by Yung-Yu Chuang et. al. 2005, completed for UC Berkeley's Computation Photography course (CS194-26) in Fall 2018.

Steps and Usage

  1. Segmentation - Trimaps are already generated, via Photoshop or similar tool.
  2. Matting - python3 matting.py [input image] [trimap] [output dir]
  3. Inpainting - python3 inpainting.py [input image to fill in] [mask] [output dir]
  4. Rendering - python3 motion.py [motion specification text file]

Some Results

The Boat Studio by Claude Monet, 1876

Boat Studio

Sailing Boats Morning by Yoshida Hiroshi, 1926

Sailing Boats

Several Circles by Wassily Kandinsky, 1926

Circles

Above the Clouds by Yoshida Hiroshi, 1929

Clouds

Duck Pond

Ducks

Source

Sunflowers

Sunflowers

Source

About


Languages

Language:Python 100.0%