findPeaks2DMax

src/index.js

Detects all the 2D-peaks in the given spectrum based on the Max logic. amc

findPeaks2DMax(input: any, options: any)
Parameters
input (any)
options (any)

findPeaks2DRegion

src/index.js

Detects all the 2D-peaks in the given spectrum based on center of mass logic.

findPeaks2DRegion(input: Array<Array>, options: Object)
Parameters
input (Array<Array>) matrix to get the local maxima
options (Object = {}) options of the method.
Name Description
options.nStdDev Array<Array> (default 3) number of times of the standard deviations for the noise level.Float64Array
options.kernel Array<Array>? kernel to the convolution step.
options.labelling string (default 'drain') select the labelling algorithm to assign pixels.
options.originalData Array<Array>? original data useful when the original matrix has values and the input matrix has absolute ones
options.filteredData Array<Array>? convoluted data, if it is defined the convolution step is skipped