Documentation ¶
Index ¶
- Constants
- Variables
- func Lab2rgb(l, a, b float64) (R, G, B uint8)
- func Rgb2lab(R, G, B uint8) (l, a, b float64)
- type Color
- type Image
- func (p *Image) At(x, y int) color.Color
- func (p *Image) Bounds() image.Rectangle
- func (p *Image) ColorModel() color.Model
- func (p *Image) PixOffset(x, y int) int
- func (p *Image) Set(x, y int, c color.Color)
- func (p *Image) SetLAB(x, y int, c Color)
- func (p *Image) SubImage(r image.Rectangle) image.Image
Constants ¶
View Source
const RefX float64 = 95.047
Observer = 2°, Illuminant = D65
View Source
const RefY float64 = 100.000
View Source
const RefZ float64 = 108.883
Variables ¶
View Source
var ColorModel color.Model = color.ModelFunc(labModel)
Functions ¶
Types ¶
type Image ¶
func ImageToLab ¶
func (*Image) ColorModel ¶
Click to show internal directories.
Click to hide internal directories.