ae.utils.graphics.gamma

Gamma conversion.

Members

Enums

ColorSpace
enum ColorSpace

Predefined colorspaces.

Functions

gammaRamp
auto ref gammaRamp()

Return a reference to a statically-initialized GammaRamp with the indicated parameters

lum2pix
auto lum2pix(SRC src, GAMMA gamma)

Return a view which converts luminosity to image pixel data using the specified gamma ramp

pix2lum
auto pix2lum(SRC src, GAMMA gamma)

Return a view which converts image pixel data to luminosity using the specified gamma ramp

Structs

GammaRamp
struct GammaRamp(LUM_BASETYPE, PIX_BASETYPE)

Contains a gamma ramp. LUM_BASETYPE and PIX_BASETYPE should be numeric types indicating the channel type for the colors that will be converted.

Meta

License

This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/.

Authors

Vladimir Panteleev <vladimir@thecybershadow.net>