ml-matrix-peaks-finder
    Preparing search index...

    Function findPeaks2DRegion

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

      Parameters

      • input:
            | number[]
            | Float64Array<ArrayBufferLike>
            | number[][]
            | Float64Array<ArrayBufferLike>[]

        matrix to get the local maxima

      • Optionaloptions: {
            cols?: number;
            filteredData?: number[] | Float64Array<ArrayBufferLike>;
            kernel?: number[][] | Float64Array<ArrayBufferLike>[];
            labelling?: "drain" | "floodfill";
            nStdDev?: number;
            originalData?: number[] | Float64Array<ArrayBufferLike>;
            rows?: number;
        } = {}

        options of the method.

        • Optionalcols?: number

          number of columns

        • OptionalfilteredData?: number[] | Float64Array<ArrayBufferLike>

          convoluted data, if it is defined the convolution step is skipped

        • Optionalkernel?: number[][] | Float64Array<ArrayBufferLike>[]

          kernel to the convolution step.

        • Optionallabelling?: "drain" | "floodfill"

          select the labelling algorithm to assign pixels.

        • OptionalnStdDev?: number

          number of times of the standard deviations for the noise level.Float64Array

        • OptionaloriginalData?: number[] | Float64Array<ArrayBufferLike>

          original data useful when the original matrix has values and the input matrix has absolute ones

        • Optionalrows?: number

          number of rows

      Returns Peak2D[]

      • Array of found peaks.