Giter Club home page Giter Club logo

deltaimgjs's Introduction

deltaImgJS

An interface that compares two image data on two canvas tags with RGBa-value.
https://github.com/YujiSODE/deltaImgJS
Wiki: https://github.com/YujiSODE/deltaImgJS/wiki

Copyright (c) 2017 Yuji SODE <[email protected]>
This software is released under the MIT License.
See LICENSE or http://opensource.org/licenses/mit-license.php


Script

  • deltaImgJS.js: function deltaImgJS(canvasId1,canvasId2)
    This function returns function that compares two image data on two canvas tags with average RGBa-value.
    Calculated p-value shows probability of hypothesis that two images are identical.

Paremeters

  • canvasId1 and canvasId2: id of two canvas tags.

Returned function

  • function(N,max,Vcrit): function that compares two image data on two canvas tags,
    and returns size of sampling area to scan (dx and dy).

1. Parameters for returned function

  • N: positive integers; size of sampling area (dx and dy) is defined by
    dx=(canvas.width)/N and dy=(canvas.height)/N.
  • max: positive integers; number of sampling areas to scan.
  • Vcrit: critical value that ranges from 0 to 1.

2. Property of returned function

  • result: Result object.

Result object

This object can be accessed with a property result in returned function, and has 4 values.

  • p: p-value; probability of hypothesis that two images are identical.
  • critical: critical value.
  • sampling: number of scanned areas.
  • dataset: datasets of differences.

deltaimgjs's People

Contributors

yujisode avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

cymgen30

deltaimgjs's Issues

graph_A

graph_a1
graph_A1.png
graph_a2
graph_A1.png

graph_B

graph_b1
graph_B1.png
graph_b2
graph_B2.png

graph_C

graph_c1
graph_C1.png
graph_c2
graph_C2.png

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.