Comparing version 0.1.0 to 0.2.0
@@ -109,3 +109,3 @@ // jshint esversion: 6, globalstrict: true, strict: true | ||
if (this._oldPix[i] !== this._newPix[i]) { | ||
diffPix.push({x: x, y: y}); | ||
diffPix.push([x, y]); | ||
} | ||
@@ -129,3 +129,3 @@ } | ||
if (Math.abs(this._oldPix[i] - this._newPix[i]) >= this._difference) { | ||
diffPix.push({x: x, y: y}); | ||
diffPix.push([x, y]); | ||
} | ||
@@ -149,3 +149,3 @@ } | ||
if (Math.abs(this._grayscale(this._oldPix[i], this._oldPix[i + 1], this._oldPix[i + 2]) - this._grayscale(this._newPix[i], this._newPix[i + 1], this._newPix[i + 2])) >= this._difference) { | ||
diffPix.push({x: x, y: y}); | ||
diffPix.push([x, y]); | ||
} | ||
@@ -169,3 +169,3 @@ } | ||
if (Math.abs(this._grayscale(this._oldPix[i], this._oldPix[i + 1], this._oldPix[i + 2]) - this._grayscale(this._newPix[i], this._newPix[i + 1], this._newPix[i + 2])) >= this._difference) { | ||
diffPix.push({x: x, y: y}); | ||
diffPix.push([x, y]); | ||
} | ||
@@ -172,0 +172,0 @@ } |
{ | ||
"name": "pam-diff", | ||
"version": "0.1.0", | ||
"version": "0.2.0", | ||
"description": "Measure differences between pixel arrays extracted from pam images", | ||
@@ -26,3 +26,6 @@ "main": "index.js", | ||
"homepage": "https://github.com/kevinGodell/pam-diff#readme", | ||
"dependencies": {} | ||
"dependencies": {}, | ||
"devDependencies": { | ||
"pipe2pam": "^0.2.1" | ||
} | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
21089
1