browser-image
    Preparing search index...
    • Pan-sharpens ms with pan. Both must have the same width and height: resample the multispectral image onto the panchromatic grid first (bilinear or bicubic). Pixels that are no data (or NaN) in either stay no data.

      Type Parameters

      • T extends ArrayLike<number>

      Parameters

      Returns PanSharpenResult<T>

      const sharp = panSharpen(
      { data: pan, width, height, noData: 0 },
      { data: msOnPanGrid, width, height, bands: 4, noData: 0 },
      { method: 'gram-schmidt' },
      );