Giter Site home page Giter Site logo

kyzylmonteiro / animating-pictures Goto Github PK

View Code? Open in Web Editor NEW

This project forked from cse-333-computer-graphics-2020/animating-pictures

0.0 0.0 0.0 35.26 MB

My Computer Graphics course project - Animating Pictures with Stochastic Motion Textures

Makefile 0.12% Batchfile 0.01% C++ 60.11% C 39.24% Objective-C 0.45% GLSL 0.07%

animating-pictures's Introduction

Animating Pictures

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 follwoing 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.

animating-pictures's People

Contributors

kyzylmonteiro avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.