UNPKG

pixel-utils

Version:
4 lines 255 B
export default function convert_multiband_all(old_no_data_value, noDataPixel, scalefn1, scalefn2, scalefn3, pixel) { if (pixel.includes(old_no_data_value)) return noDataPixel; return [scalefn1(pixel[0]), scalefn2(pixel[1]), scalefn3(pixel[2]), 255]; }