hpe

package
v0.1.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 5, 2024 License: BSD-3-Clause Imports: 1 Imported by: 0

README

hpe: Hunt-Pointer-Estevez

hpe defines conversions between XYZ (and sRGB) and LMS (long, medium short) cone responses, according to the older HPE algorithms. This is updated in the CAM02 model.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SRGBLinToLMS

func SRGBLinToLMS(rl, gl, bl float32) (l, m, s float32)

SRGBLinToLMS converts sRGB linear to Long, Medium, Short cone-based responses, using the Hunt-Pointer-Estevez transform. This is closer to the actual response functions of the L,M,S cones apparently.

func SRGBToLMS

func SRGBToLMS(r, g, b float32) (l, m, s float32)

SRGBToLMS converts sRGB to Long, Medium, Short cone-based responses, using the Hunt-Pointer-Estevez transform. This is closer to the actual response functions of the L,M,S cones apparently.

func XYZToLMS

func XYZToLMS(x, y, z float32) (l, m, s float32)

XYZToLMS convert XYZ to Long, Medium, Short cone-based responses, using the Hunt-Pointer-Estevez transform. This is closer to the actual response functions of the L,M,S cones apparently.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL