matrix-correlation

0.0.1 • Public • Published

Matrix Correlations

A Node.JS Script to calculate the following Matrix correlations:

  • Sum of Absolute Differences (SAD)
  • Sum of Squared Differences (SSD)
  • Zero Mean Normalized Cross-Correlation (ZNCC)

Usage

npm install matrix-correlation
var corr = require('matrix-correlation');
 
var A = [
  [0,0,0],
  [54,54,54],
  [0,54,0]
];
 
var B = [
  [0,0,0],
  [108,108,108],
  [0,108,0]
];
 
console.log('ZNCC(A,B) = ' + corr.ZNCC(A,B));

API

corr.SAD(A,B);
corr.SSD(A,B);
corr.ZNCC(A,B);

License

MIT

Readme

Keywords

none

Package Sidebar

Install

npm i matrix-correlation

Weekly Downloads

2

Version

0.0.1

License

MIT

Last publish

Collaborators

  • vardump