Skip to content

una-dinosauria/efros-and-leung-js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

efros-and-leung-js

On the winter of 2015 I was a TA for CPSC 425, the computer vision course for undergrads at UBC. One of the assignments in the course is to implement a simplified version of the algorithm described in "Texture Synthesis by Non-parametric Sampling", by Efros and Leung from ICCV 1999 [pdf].

I thought it would help students if they could see how the algorithm works in real time, so I decided to implement the method and a visualization of it on javascript.

Demo

The live demo of the method is on http://una-dinosauria.github.io/efros-and-leung-js/. For some reason it runs way faster on Firefox compared to Chrome.

Installation

Before doing anything, go ahead and install node-js.

Now clone the project

  • git clone git@github.com:jltmtz/efros-and-leung-js.git
  • cd js

Install the dependencies

  • npm install -i ndarray
  • npm install -i raphael

Finally, export it with browserify to use the project in a web browser

  • npm install -g browserify
  • browserify main.js -o bundle.js

And you should be ready to go!

About

A classical texture synthesis algorithm implemented in javascript

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published