Code Monkey home page Code Monkey logo

gaborgen-js's Introduction

gaborgen

If you're doing a behavioral experiment online with Gabor patches, participants have to see a lot of them. That means they have to download a lot of images. Instead of that, why not generate the images on the client side? That's what this function does. See it live here.

CoffeeScript/JavaScript Gabor patch generator. The fucntion takes values for rotation and frequency between 1 and 100 and outputs a Gabor patch with rotation values between 0 and 90 degrees and frequency between .01 and .1. Makes heavy use of numeric.js. There is also a version written in MathJS, but that version takes about six seconds whereas the numeric.js version takes 500ms. Then it rescales the matrix values to be between 0 and 255, and outputs those to an image on the demo web page.

There's also a web page with two sliders that show how fast the generation is by updating the parameters of the Gabor patch with each value change.

gaborgen-js's People

Contributors

saralilyb avatar

Stargazers

pu avatar Dominique Makowski avatar JianKang Zhu avatar Aeron Laffere avatar  avatar Francisco Garre Frutos avatar  avatar Matt avatar Daiichiro Kuroki avatar  avatar Nicolas Sanchez avatar Daniel Pearson avatar Prajwal Gatti avatar  avatar lijiandong avatar GAURAV avatar Alexander Pushkov avatar  avatar

Watchers

 avatar James Cloos avatar  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.