Class ColorPack

java.lang.Object
imagingbook.common.image.PixelPack
imagingbook.common.image.ColorPack

public class ColorPack extends PixelPack
This class defines a "color stack" as a subtype of PixelPack with exactly 3 components (slices), representing a color image in a specific color space (default is sRGB65ColorSpace). It allows simple conversion to other color spaces (see convertFromSrgbTo(ColorSpace)). All conversions are 'destructive', i.e., the affected color stack is modified. Pixel values are typically in [0,1], depending on the associated color space. A ColorPack may be created from an existing ColorProcessor whose pixels are assumed to be in sRGB color space (see ColorPack(ColorProcessor)). To be converted back to a ColorProcessor, the ColorPack must be in sRGB color space (see convertToSrgb()).
Version:
2022/09/10