fltimg

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2023 License: BSD-3-Clause Imports: 4 Imported by: 1

Documentation

Overview

fltimg provides image.Image implementations for the float32- and float64-image encodings of FITS.

Index

Constants

This section is empty.

Variables

View Source
var (
	Gray32Model color.Model = color.ModelFunc(gray32Model)
	Gray64Model color.Model = color.ModelFunc(gray64Model)
)

Models for the fltimg color types.

Functions

This section is empty.

Types

type Gray32

type Gray32 struct {
	Pix    []uint8
	Stride int
	Rect   image.Rectangle
	Min    float32
	Max    float32
}

Gray32 represents an image.Image encoded in 32b IEEE floating-point values

func NewGray32

func NewGray32(rect image.Rectangle, pix []byte) *Gray32

NewGray32 creates a new Gray32 image with the given bounds.

func (*Gray32) At

func (p *Gray32) At(x, y int) color.Color

func (*Gray32) Bounds

func (p *Gray32) Bounds() image.Rectangle

func (*Gray32) ColorModel

func (p *Gray32) ColorModel() color.Model

func (*Gray32) PixOffset

func (p *Gray32) PixOffset(x, y int) int

func (*Gray32) Set

func (p *Gray32) Set(x, y int, c color.Color)

type Gray64

type Gray64 struct {
	Pix    []uint8
	Stride int
	Rect   image.Rectangle
	Min    float64
	Max    float64
}

Gray64 represents an image.Image encoded in 64b IEEE floating-point values

func NewGray64

func NewGray64(rect image.Rectangle, pix []byte) *Gray64

NewGray64 creates a new Gray64 image with the given bounds.

func (*Gray64) At

func (p *Gray64) At(x, y int) color.Color

func (*Gray64) Bounds

func (p *Gray64) Bounds() image.Rectangle

func (*Gray64) ColorModel

func (p *Gray64) ColorModel() color.Model

func (*Gray64) PixOffset

func (p *Gray64) PixOffset(x, y int) int

func (*Gray64) Set

func (p *Gray64) Set(x, y int, c color.Color)

Jump to

Keyboard shortcuts

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