/* COPYRIGHT Esri - https://js.arcgis.com/5.0/LICENSE.txt */
import{createRasterFunction as r}from"./utils.js";function e(e){const{weights:t,outputPixelType:n="unknown",raster:o}=e;return r("Grayscale",{conversionParameters:t,raster:o},n)}function t(e){const{outputPixelType:t,raster:n}=e,o="rgb-to-hsv"===e.conversionType?0:1;return r("ColorspaceConversion",{conversionType:o,raster:n},t)}function n(e){const{outputPixelType:t,raster:n}=e,o=e.conversionMatrix.flat();return r("SpectralConversion",{conversionMatrix:o,raster:n},t)}function o(e){const{outputPixelType:t,raster:n}=e;return r("TasseledCap",{raster:n},t)}export{t as colorspaceConversion,e as grayscale,n as spectralConversion,o as tasseledCap};
