gis-tools-ts - v0.6.0
    Preparing search index...

    Function rgbaKrigingInterpolation

    • Helper function for krigingInterpolation on RGB(A) data. Light in RGB data is logarithmically weighted, so we need to expand each component by n^2 to get the correct weight for each component.

      Parameters

      • point: VectorPoint

        Point to interpolate

      • refData: VectorPoint<RGBA>[]

        Reference data points

      • model: KrigingModel = 'gaussian'

        Kriging model

      • sigma2: number = 0

        Variance

      • alpha: number = 100

        Diffuse

      Returns RGBA

      • The interpolated RGBA data.