Skip to content

This is a Computer Graphics project which adds animation to a picture. It mainly focuses on adding wave like motion to natural elements of the picture.

Notifications You must be signed in to change notification settings

CaptainVish/Picture-Animator

Repository files navigation

Picture Animator

We enhance static pictures by introducing subtle motions to passive elements, responses to natural forces like the wind. We follow the approach of the paper "Animating Pictures with Stochastic Motion Textures" by Chuang et al.

Outcome

Dependencies

GLFW https://www.glfw.org/
OpenCV https://opencv.org/releases/

Build Instructions

Run the following commands on the linux terminal:

cd Animating-Pictures
make
./main -f background2.png -b boat2.png -t tree2.png -c cloud2.png -w water2.png 

Then click the show button on the GUI to see the image animated.

To animate an image of your choice

cd Animating-Pictures 
make
./main -f <image/path>

Then follow the steps given below.

Usage

GUI

The GUI contains:

  • Cloud, Boat, Tree and Water buttons - allows users to mark the area of the respective object in a pop up window.
  • Boat Point & Tree Point - allow the user to select a point on the object along which the transformations occur.
  • Wind Slider - allows user to control the wind speed which affects the objects in different ways.
  • Show button - to show the animated outcome after segmentation.

Steps

Click the respective object buttons to get a pop up window to select objects you want to segment.
In the new window

  • mark/draw over the areas of the unsegmented object you clicked the button of.
  • click the r key to reset the new window.
  • click esc key to close the new window .
  • click the s key to segment the object and inpaint the background.

Click show to see the animated objects.

About

This is a Computer Graphics project which adds animation to a picture. It mainly focuses on adding wave like motion to natural elements of the picture.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages