resample.d.ts 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. /**
  2. * Resample the input arrays using nearest neighbor value selection.
  3. * @param {TypedArray[]} valueArrays The input arrays to resample
  4. * @param {number} inWidth The width of the input rasters
  5. * @param {number} inHeight The height of the input rasters
  6. * @param {number} outWidth The desired width of the output rasters
  7. * @param {number} outHeight The desired height of the output rasters
  8. * @returns {TypedArray[]} The resampled rasters
  9. */
  10. export function resampleNearest(valueArrays: TypedArray[], inWidth: number, inHeight: number, outWidth: number, outHeight: number): TypedArray[];
  11. /**
  12. * Resample the input arrays using bilinear interpolation.
  13. * @param {TypedArray[]} valueArrays The input arrays to resample
  14. * @param {number} inWidth The width of the input rasters
  15. * @param {number} inHeight The height of the input rasters
  16. * @param {number} outWidth The desired width of the output rasters
  17. * @param {number} outHeight The desired height of the output rasters
  18. * @returns {TypedArray[]} The resampled rasters
  19. */
  20. export function resampleBilinear(valueArrays: TypedArray[], inWidth: number, inHeight: number, outWidth: number, outHeight: number): TypedArray[];
  21. /**
  22. * Resample the input arrays using the selected resampling method.
  23. * @param {TypedArray[]} valueArrays The input arrays to resample
  24. * @param {number} inWidth The width of the input rasters
  25. * @param {number} inHeight The height of the input rasters
  26. * @param {number} outWidth The desired width of the output rasters
  27. * @param {number} outHeight The desired height of the output rasters
  28. * @param {string} [method = 'nearest'] The desired resampling method
  29. * @returns {TypedArray[]} The resampled rasters
  30. */
  31. export function resample(valueArrays: TypedArray[], inWidth: number, inHeight: number, outWidth: number, outHeight: number, method?: string | undefined): TypedArray[];
  32. /**
  33. * Resample the pixel interleaved input array using nearest neighbor value selection.
  34. * @param {TypedArray} valueArrays The input arrays to resample
  35. * @param {number} inWidth The width of the input rasters
  36. * @param {number} inHeight The height of the input rasters
  37. * @param {number} outWidth The desired width of the output rasters
  38. * @param {number} outHeight The desired height of the output rasters
  39. * @param {number} samples The number of samples per pixel for pixel
  40. * interleaved data
  41. * @returns {TypedArray} The resampled raster
  42. */
  43. export function resampleNearestInterleaved(valueArray: any, inWidth: number, inHeight: number, outWidth: number, outHeight: number, samples: number): TypedArray;
  44. /**
  45. * Resample the pixel interleaved input array using bilinear interpolation.
  46. * @param {TypedArray} valueArrays The input arrays to resample
  47. * @param {number} inWidth The width of the input rasters
  48. * @param {number} inHeight The height of the input rasters
  49. * @param {number} outWidth The desired width of the output rasters
  50. * @param {number} outHeight The desired height of the output rasters
  51. * @param {number} samples The number of samples per pixel for pixel
  52. * interleaved data
  53. * @returns {TypedArray} The resampled raster
  54. */
  55. export function resampleBilinearInterleaved(valueArray: any, inWidth: number, inHeight: number, outWidth: number, outHeight: number, samples: number): TypedArray;
  56. /**
  57. * Resample the pixel interleaved input array using the selected resampling method.
  58. * @param {TypedArray} valueArray The input array to resample
  59. * @param {number} inWidth The width of the input rasters
  60. * @param {number} inHeight The height of the input rasters
  61. * @param {number} outWidth The desired width of the output rasters
  62. * @param {number} outHeight The desired height of the output rasters
  63. * @param {number} samples The number of samples per pixel for pixel
  64. * interleaved data
  65. * @param {string} [method = 'nearest'] The desired resampling method
  66. * @returns {TypedArray} The resampled rasters
  67. */
  68. export function resampleInterleaved(valueArray: TypedArray, inWidth: number, inHeight: number, outWidth: number, outHeight: number, samples: number, method?: string | undefined): TypedArray;
  69. //# sourceMappingURL=resample.d.ts.map