< Previous | Contents | Next >

Color Space

Color Space conversions can be applied to and from images, the RGB channels will store the converted image in the RGB channels, for example, HLS will be assigned as R =H, G=L, B=S.


--***********Color Space Conversion***********

--Image:CSConvert(<from>, <to>), with <from> and <to> coming from "RGB", "HLS", "YUV", "YIQ", "CMY", "HSV", "XYZ", "LAB".

out:CSConvert ("RGB", "YUV") --RGB to YUV where Y is in R, U is in G, V

is in B

out:Gamma(1.0, 0.9, 1.1, 1) --Example: Apply some Gamma to UV channels out:CSConvert ("YUV", "RGB") -- Convert YUV to RGB