ml-matrix-peaks-finder
Advanced tools
Comparing version 0.1.0 to 0.2.0
{ | ||
"name": "ml-matrix-peaks-finder", | ||
"version": "0.1.0", | ||
"version": "0.2.0", | ||
"description": "The peak picking routines for 2D arrays. This library looks for the local maxima of the given input matrix. The input matrix has to be specified as a single vector.", | ||
@@ -5,0 +5,0 @@ "main": "./src/index.js", |
@@ -0,1 +1,3 @@ | ||
'use strict' | ||
const DisjointSet = require('ml-disjoint-set'); | ||
@@ -34,3 +36,3 @@ | ||
const linked = new DisjointSet(); | ||
var index; | ||
var currentLabel = 1; | ||
@@ -41,3 +43,3 @@ for (var j = 0; j < height; j++) { | ||
var smallestNeighbor = null; | ||
const index = i + j * width; | ||
index = i + j * width; | ||
@@ -76,3 +78,3 @@ if (mask[index]) { | ||
for (var i = 0; i < width; i++) { | ||
const index = i + j * width; | ||
index = i + j * width; | ||
if (mask[index]) { | ||
@@ -79,0 +81,0 @@ pixels[index] = linked.find(labels[index]).value; |
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
10612
242