Versions in this module Expand all Collapse all v1 v1.1.19 Dec 13, 2023 v1.1.18 Feb 18, 2023 v1.1.17 Feb 15, 2023 v1.1.16 Jan 24, 2023 v1.1.15 Dec 11, 2021 v1.1.14 Dec 9, 2021 v1.1.13 Oct 22, 2021 v1.1.12 Aug 29, 2021 v1.1.11 Jun 30, 2021 Changes in this version + var KiT_Opponents = kit.Enums.AddEnum(OpponentsN, kit.NotBitFlag, nil) + type Opponents int + const BlueYellow + const OpponentsN + const RedGreen + const WhiteBlack + func (ev *Opponents) UnmarshalJSON(b []byte) error + func (ev Opponents) MarshalJSON() ([]byte, error) + func (i *Opponents) FromString(s string) error + func (i Opponents) String() string v1.1.10 Jun 24, 2021 Changes in this version + var KiT_LMSComponents = kit.Enums.AddEnum(LMSComponentsN, kit.NotBitFlag, nil) + func LMSToComps(l, m, s float32) (lc, mc, sc, lmc, lvm, svlm, grey float32) + func LuminanceAdaptation(bgLum float32) float32 + func MacbethImage(img *etensor.Float32, width, height, bord int) + func RGBImgToLMSComps(img image.Image, tsr *etensor.Float32, padWidth int, topZero bool) + func RGBTensorToLMSComps(tsr *etensor.Float32, rgb *etensor.Float32) + func ResponseCompression(val float32) float32 + func SRGBFmLinear(rl, gl, bl float32) (r, g, b float32) + func SRGBFmLinearComp(lin float32) float32 + func SRGBLinToLMS_CAT02(rl, gl, bl float32) (l, m, s float32) + func SRGBLinToLMS_HPE(rl, gl, bl float32) (l, m, s float32) + func SRGBLinToXYZ(rl, gl, bl float32) (x, y, z float32) + func SRGBToLMSComps(r, g, b float32) (lc, mc, sc, lmc, lvm, svlm, grey float32) + func SRGBToLMS_CAT02(r, g, b float32) (l, m, s float32) + func SRGBToLMS_HPE(r, g, b float32) (l, m, s float32) + func SRGBToLinear(r, g, b float32) (rl, gl, bl float32) + func SRGBToLinearComp(srgb float32) float32 + func SRGBToXYZ(r, g, b float32) (x, y, z float32) + func XYZRenormD65(x, y, z float32) (xr, yr, zr float32) + func XYZToLMS_CAT02(x, y, z float32) (l, m, s float32) + func XYZToLMS_HPE(x, y, z float32) (l, m, s float32) + func XYZToSRGB(x, y, z float32) (r, g, b float32) + func XYZToSRGBLin(x, y, z float32) (rl, gl, bl float32) + type LMSComponents int + const GREY + const LC + const LMC + const LMSComponentsN + const LvMC + const MC + const SC + const SvLMC + func (ev *LMSComponents) UnmarshalJSON(b []byte) error + func (ev LMSComponents) MarshalJSON() ([]byte, error) + func (i *LMSComponents) FromString(s string) error + func (i LMSComponents) String() string + type SRGBToOp struct + Levels int + Table etensor.Float32 + var TheSRGBToOp SRGBToOp + func (so *SRGBToOp) Init() + func (so *SRGBToOp) InterpIdx(val float32) (loi, hii int, pctlo, pcthi float32) + func (so *SRGBToOp) Lookup(r, g, b float32) (lc, mc, sc, lmc, lvm, svlm, grey float32) Other modules containing this package github.com/emer/vision/v2