diplib/color.h file

Color space conversions See Color spaces.

Contents

Classes

class dip::ColorSpaceConverter abstract
Abstract base class for conversion between two color spaces. more...
class dip::ColorSpaceManager
An object of this class is used to convert images between color spaces. more...

Aliases

using dip::xy = std::array<dfloat, 2>
A color, as (x,y) chromaticity coordinates, used to specify a white point for color spaces.
using dip::XYZ = std::array<dfloat, 3>
An XYZ triplet, used to specify a white point for color spaces.
using dip::XYZMatrix = std::array<dfloat, 9>
XYZ matrix (3x3 matrix, column-major order) for conversion between RGB and XYZ. Computed from a dip::XYZ triplet.

Functions

void dip::ApplyAlphaChannel(dip::Image const& in, dip::Image& out, dip::Image::Pixel const& background = {0}, dip::dfloat scaling = 255)
Apply the alpha channel in the sRGBA image in, using the background color background. more...