Function findPeaks2DRegion

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

    Parameters

    • input: number[] | Float64Array

      matrix to get the local maxima

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

      options of the method.

      • Optionalcols?: number
      • OptionalfilteredData?: number[] | Float64Array

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

      • Optionalkernel?: number[][] | Float64Array[]

        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

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

      • Optionalrows?: number

    Returns Peak2D[]