Documentation ¶
Index ¶
- func Split(x1, y1, x2, y2, n int) []image.Rectangle
- func SplitWithRectangle(r image.Rectangle, n int) []image.Rectangle
- type Image
- type ImageSet
- type LMSCAT02w
- type LMSHPEw
- type RGB
- func (p *RGB) At(x, y int) color.Color
- func (p *RGB) Bounds() image.Rectangle
- func (p *RGB) ColorModel() color.Model
- func (p *RGB) HDRAt(x, y int) hdrcolor.Color
- func (p *RGB) PixOffset(x, y int) int
- func (p *RGB) RGBAt(x, y int) hdrcolor.RGB
- func (p *RGB) Set(x, y int, c color.Color)
- func (p *RGB) SetRGB(x, y int, c hdrcolor.RGB)
- func (p *RGB) Size() int
- type RGB64
- func (p *RGB64) At(x, y int) color.Color
- func (p *RGB64) Bounds() image.Rectangle
- func (p *RGB64) ColorModel() color.Model
- func (p *RGB64) HDRAt(x, y int) hdrcolor.Color
- func (p *RGB64) PixOffset(x, y int) int
- func (p *RGB64) RGBAt(x, y int) hdrcolor.RGB
- func (p *RGB64) Set(x, y int, c color.Color)
- func (p *RGB64) SetRGB(x, y int, c hdrcolor.RGB)
- func (p *RGB64) Size() int
- type XYZ
- func (p *XYZ) At(x, y int) color.Color
- func (p *XYZ) Bounds() image.Rectangle
- func (p *XYZ) ColorModel() color.Model
- func (p *XYZ) HDRAt(x, y int) hdrcolor.Color
- func (p *XYZ) PixOffset(x, y int) int
- func (p *XYZ) Set(x, y int, c color.Color)
- func (p *XYZ) SetXYZ(x, y int, c hdrcolor.XYZ)
- func (p *XYZ) Size() int
- func (p *XYZ) XYZAt(x, y int) hdrcolor.XYZ
- type XYZ64
- func (p *XYZ64) At(x, y int) color.Color
- func (p *XYZ64) Bounds() image.Rectangle
- func (p *XYZ64) ColorModel() color.Model
- func (p *XYZ64) HDRAt(x, y int) hdrcolor.Color
- func (p *XYZ64) PixOffset(x, y int) int
- func (p *XYZ64) Set(x, y int, c color.Color)
- func (p *XYZ64) SetXYZ(x, y int, c hdrcolor.XYZ)
- func (p *XYZ64) Size() int
- func (p *XYZ64) XYZAt(x, y int) hdrcolor.XYZ
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Image ¶
type Image interface { image.Image // HDRAt returns the HDR pixel color at given coordinates. HDRAt(x, y int) hdrcolor.Color // Size returns the number of pixels. Size() int }
Image is a finite rectangular grid of hdrcolor.Color values taken from a color model.
type LMSCAT02w ¶
type LMSCAT02w struct {
Image
}
A LMSCAT02w wrapper hollows to get pixels in LMS-space using CIE CAT02 matrix. https://en.wikipedia.org/wiki/CIECAM02#Chromatic_adaptation
func NewLMSCAT02w ¶
NewLMSCAT02w instanciates a new LMSCAT02w wrapper.
type LMSHPEw ¶
type LMSHPEw struct {
Image
}
A LMSHPEw wrapper hollows to get pixels in LMS-space using Hunt-Pointer-Estevez matrix. https://en.wikipedia.org/wiki/LMS_color_space
type RGB ¶
type RGB struct { // Pix holds the image's pixels, in R, G, B order. The pixel at // (x, y) starts at Pix[(y-Rect.Min.Y)*Stride + (x-Rect.Min.X)*8]. Pix []float32 // Stride is the Pix stride (in bytes) between vertically adjacent pixels. Stride int // Rect is the image's bounds. Rect image.Rectangle }
RGB is an in-memory 32 bits floating points image whose At method returns hdrcolor.RGB values.
func (*RGB) PixOffset ¶
PixOffset returns the index of the first element of Pix that corresponds to the pixel at (x, y).
type RGB64 ¶
type RGB64 struct { // Pix holds the image's pixels, in R, G, B order. The pixel at // (x, y) starts at Pix[(y-Rect.Min.Y)*Stride + (x-Rect.Min.X)*8]. Pix []float64 // Stride is the Pix stride (in bytes) between vertically adjacent pixels. Stride int // Rect is the image's bounds. Rect image.Rectangle }
RGB64 is an in-memory 64 bits floating points image whose At method returns hdrcolor.RGB values.
func (*RGB64) PixOffset ¶
PixOffset returns the index of the first element of Pix that corresponds to the pixel at (x, y).
type XYZ ¶
type XYZ struct { // Pix holds the image's pixels, in X, Y and Z order. The pixel at // (x, y) starts at Pix[(y-Rect.Min.Y)*Stride + (x-Rect.Min.X)*8]. Pix []float32 // Stride is the Pix stride (in bytes) between vertically adjacent pixels. Stride int // Rect is the image's bounds. Rect image.Rectangle }
XYZ is an in-memory 32 bits floating points image whose At method returns hdrcolor.XYZ values.
func (*XYZ) PixOffset ¶
PixOffset returns the index of the first element of Pix that corresponds to the pixel at (x, y).
type XYZ64 ¶
type XYZ64 struct { // Pix holds the image's pixels, in X, Y and Z order. The pixel at // (x, y) starts at Pix[(y-Rect.Min.Y)*Stride + (x-Rect.Min.X)*8]. Pix []float64 // Stride is the Pix stride (in bytes) between vertically adjacent pixels. Stride int // Rect is the image's bounds. Rect image.Rectangle }
XYZ64 is an in-memory 64 bits floating points image whose At method returns hdrcolor.XYZ values.
func (*XYZ64) PixOffset ¶
PixOffset returns the index of the first element of Pix that corresponds to the pixel at (x, y).