Coder Social home page Coder Social logo

aeropuerto / img2signal Goto Github PK

View Code? Open in Web Editor NEW
2.0 1.0 0.0 250 KB

Image analysis tools for research, runs in your browser

License: MIT License

HTML 8.82% JavaScript 91.18%
dsp image-processing signal-processing signal canvas image-decomposition

img2signal's Introduction

img2signal

The goal of this project is to create a library of tools for analysing images inside a browser using HTML5 (JS & Canvas). This project is mostly meant for academic purposes and to aid research in the field of image manipulation & convolutional neural networks.

Image decomposition into signals

Setup

Clone the repository, open index.html in your browser. It should be noted that only Firefox will work with the initial commit as Chrome will not allow to process imageData from a canvas with images loaded locally without overriding security settings (not recommended). An improvement is on the way that will allow more convenient running, development and playing around.

Usage

Some example images are provided inside ./img, which you can toggle on and off by commenting stuff in/out in index.html. The main -method loads an img -tag with id="source" and processes it according to the given setup in main () inside img2signal.js. Feel free to play around with the setup in main depending on your needs.

Usage examples

  • Toggle between image types of a simple image like ./img/red.jpg and ./img/red.png, notice how their signals differ in regards to noise
  • Play around with different impulse responses (1D and 2D) for convolution, craft your own filters and see how each impulse response manipulates the signal and the resulting re-composed image.

Version history

0.2 Convolution

  • Add support for 1D and 2D convolutions
  • Add some example filters & impulse responses / kernels (e.g. gaussian blur, high pass)

0.1 Initial commit

  • Support for plotting RGB channels of a given image

License

MIT

img2signal's People

Contributors

aeropuerto avatar

Stargazers

 avatar  avatar

Watchers

 avatar

img2signal's Issues

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.