Documentation ¶
Index ¶
- func NewGray(r image.Rectangle, cm color.Model) image.Image
- type BlankImage
- type GrayF32
- func (p *GrayF32) AsPaletted(palette color.Palette) *image.Paletted
- func (p *GrayF32) At(x, y int) color.Color
- func (p *GrayF32) Bounds() image.Rectangle
- func (p *GrayF32) ColorModel() color.Model
- func (p *GrayF32) GrayF32At(x, y int) scicolor.GrayF32
- func (p *GrayF32) Opaque() bool
- func (p *GrayF32) PixOffset(x, y int) int
- func (p *GrayF32) Set(x, y int, c color.Color)
- func (p *GrayF32) SetGrayF32(x, y int, c scicolor.GrayF32)
- func (p *GrayF32) SubImage(r image.Rectangle) image.Image
- type GrayS16
- func (p *GrayS16) AsPaletted(palette color.Palette) *image.Paletted
- func (p *GrayS16) At(x, y int) color.Color
- func (p *GrayS16) Bounds() image.Rectangle
- func (p *GrayS16) ColorModel() color.Model
- func (p *GrayS16) GrayS16At(x, y int) scicolor.GrayS16
- func (p *GrayS16) Opaque() bool
- func (p *GrayS16) PixOffset(x, y int) int
- func (p *GrayS16) Set(x, y int, c color.Color)
- func (p *GrayS16) SetGrayS16(x, y int, c scicolor.GrayS16)
- func (p *GrayS16) SubImage(r image.Rectangle) image.Image
- type GrayS8
- func (p *GrayS8) AsPaletted(palette color.Palette) *image.Paletted
- func (p *GrayS8) At(x, y int) color.Color
- func (p *GrayS8) Bounds() image.Rectangle
- func (p *GrayS8) ColorModel() color.Model
- func (p *GrayS8) GrayS8At(x, y int) scicolor.GrayS8
- func (p *GrayS8) Opaque() bool
- func (p *GrayS8) PixOffset(x, y int) int
- func (p *GrayS8) Set(x, y int, c color.Color)
- func (p *GrayS8) SetGrayS8(x, y int, c scicolor.GrayS8)
- func (p *GrayS8) SubImage(r image.Rectangle) image.Image
- type GrayU16
- func (p *GrayU16) At(x, y int) color.Color
- func (p *GrayU16) Bounds() image.Rectangle
- func (p *GrayU16) ColorModel() color.Model
- func (p *GrayU16) GrayU16At(x, y int) scicolor.GrayU16
- func (p *GrayU16) Opaque() bool
- func (p *GrayU16) PixOffset(x, y int) int
- func (p *GrayU16) Set(x, y int, c color.Color)
- func (p *GrayU16) SetGrayU16(x, y int, c scicolor.GrayU16)
- func (p *GrayU16) SubImage(r image.Rectangle) image.Image
- type GrayU8
- func (p *GrayU8) AsPaletted(palette color.Palette) *image.Paletted
- func (p *GrayU8) At(x, y int) color.Color
- func (p *GrayU8) Bounds() image.Rectangle
- func (p *GrayU8) ColorModel() color.Model
- func (p *GrayU8) GrayU8At(x, y int) scicolor.GrayU8
- func (p *GrayU8) Opaque() bool
- func (p *GrayU8) PixOffset(x, y int) int
- func (p *GrayU8) Set(x, y int, c color.Color)
- func (p *GrayU8) SetGrayU8(x, y int, c scicolor.GrayU8)
- func (p *GrayU8) SubImage(r image.Rectangle) image.Image
- type Mask
- func (m *Mask) At(x, y int) color.Color
- func (m *Mask) BinaryAt(x, y int) scicolor.Binary
- func (m *Mask) Bounds() image.Rectangle
- func (m *Mask) ColorModel() color.Model
- func (m *Mask) Opaque() bool
- func (m *Mask) PixOffset(x, y int) int
- func (m *Mask) Set(x, y int, c color.Color)
- func (m *Mask) SetBinary(x, y int, c scicolor.Binary)
- func (m *Mask) SubImage(r image.Rectangle) image.Image
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type BlankImage ¶
GrayF32 is an in-memory image whose At method returns color.Gray16 values.
func NewBlankImage ¶
func NewBlankImage(c color.Model, rect image.Rectangle) *BlankImage
NewBlankImage returns a new image implementing the provided scicolor Model.
func (*BlankImage) Bounds ¶
func (bi *BlankImage) Bounds() image.Rectangle
func (*BlankImage) ColorModel ¶
func (bi *BlankImage) ColorModel() color.Model
type GrayF32 ¶
type GrayF32 struct { // Pix holds the image's pixels, as gray values in native format. The pixel at // (x, y) starts at Pix[(y-Rect.Min.Y)*Stride + (x-Rect.Min.X)]. //Pix []uint8 Pix []float32 // Stride is the Pix stride (in pixels) between vertically adjacent pixels. Stride int // Rect is the image's bounds. Rect image.Rectangle Min, Max, NoData float32 }
GrayF32 is an in-memory image whose At method returns color.Gray16 values.
func NewGrayF32 ¶
NewGrayS16 returns a new GrayS16 image with the given bounds and with the Min value as its pixel contents.
func (*GrayF32) AsPaletted ¶
AsPaletted transforms the image into a paletted image.
func (*GrayF32) ColorModel ¶
type GrayS16 ¶
type GrayS16 struct { // Pix holds the image's pixels, as gray values in native format. The pixel at // (x, y) starts at Pix[(y-Rect.Min.Y)*Stride + (x-Rect.Min.X)]. Pix []int16 // Stride is the Pix stride (in bytes) between vertically adjacent pixels. Stride int // Rect is the image's bounds. Rect image.Rectangle Min, Max, NoData int16 }
GrayS16 is an in-memory image whose At method returns color.Gray16 values.
func NewGrayS16 ¶
NewGrayS16 returns a new GrayS16 image with the given bounds and with the Min value as its pixel contents.
func (*GrayS16) AsPaletted ¶
AsPaletted transforms the image into a paletted image.
func (*GrayS16) ColorModel ¶
type GrayS8 ¶
type GrayS8 struct { // Pix holds the image's pixels, as gray values. The pixel at // (x, y) starts at Pix[(y-Rect.Min.Y)*Stride + (x-Rect.Min.X)*1]. Pix []int8 // Stride is the Pix stride (in bytes) between vertically adjacent pixels. Stride int // Rect is the image's bounds. Rect image.Rectangle Min, Max, NoData int8 }
GrayS8 is an in-memory image whose At method returns color.Gray values.
func NewGrayS8 ¶
NewGrayS16 returns a new GrayS16 image with the given bounds and with the Min value as its pixel contents.
func (*GrayS8) AsPaletted ¶
AsPaletted transforms the image into a paletted image.
func (*GrayS8) ColorModel ¶
type GrayU16 ¶
type GrayU16 struct { // Pix holds the image's pixels, as gray values in big-endian format. The pixel at // (x, y) starts at Pix[(y-Rect.Min.Y)*Stride + (x-Rect.Min.X)*2]. Pix []uint16 // Stride is the Pix stride (in bytes) between vertically adjacent pixels. Stride int // Rect is the image's bounds. Rect image.Rectangle Min, Max, NoData uint16 }
GrayU16 is an in-memory image whose At method returns color.Gray16 values.
func NewGrayU16 ¶
NewGray16 returns a new Gray16 image with the given bounds.
func (*GrayU16) ColorModel ¶
type GrayU8 ¶
type GrayU8 struct { // Pix holds the image's pixels, as gray values. The pixel at // (x, y) starts at Pix[(y-Rect.Min.Y)*Stride + (x-Rect.Min.X)*1]. Pix []uint8 // Stride is the Pix stride (in bytes) between vertically adjacent pixels. Stride int // Rect is the image's bounds. Rect image.Rectangle Min, Max, NoData uint8 }
GrayU8 is an in-memory image whose At method returns color.Gray values.
func NewGrayU8 ¶
NewGrayS16 returns a new GrayS16 image with the given bounds and with the Min value as its pixel contents.
func (*GrayU8) AsPaletted ¶
AsPaletted transforms the image into a paletted image.
func (*GrayU8) ColorModel ¶
type Mask ¶
type Mask struct { // Pix holds the image's pixels, as gray values. The pixel at // (x, y) starts at Pix[(y-Rect.Min.Y)*Stride + (x-Rect.Min.X)*1]. Pix []bool // Stride is the Pix stride (in bytes) between vertically adjacent pixels. Stride int // Rect is the image's bounds. Rect image.Rectangle }
GrayU8 is an in-memory image whose At method returns color.Gray values.
func (*Mask) ColorModel ¶
Directories ¶
Path | Synopsis |
---|---|
Package tiff implements a TIFF image decoder and encoder.
|
Package tiff implements a TIFF image decoder and encoder. |
lzw
Package lzw implements the Lempel-Ziv-Welch compressed data format, described in T. A. Welch, “A Technique for High-Performance Data Compression”, Computer, 17(6) (June 1984), pp 8-19.
|
Package lzw implements the Lempel-Ziv-Welch compressed data format, described in T. A. Welch, “A Technique for High-Performance Data Compression”, Computer, 17(6) (June 1984), pp 8-19. |