iris

package
v0.32.0 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2023 License: GPL-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Monochrome16Exposure added in v0.8.0

type Monochrome16Exposure struct {
	Width     int
	Height    int
	Raw       [][]uint32
	Data      []float32 // The underlying data array
	Processed [][]uint32
	ADU       int32
	Buffer    bytes.Buffer
	Image     *image.Gray16
	Otsu      *image.Gray16
	Noise     float64
	Threshold uint16
	Pixels    int
}

func NewMonochrome16Exposure added in v0.8.0

func NewMonochrome16Exposure(exposure [][]uint32, adu int32, xs int, ys int) Monochrome16Exposure

func (*Monochrome16Exposure) ApplyNoiseReduction added in v0.8.0

func (m *Monochrome16Exposure) ApplyNoiseReduction() (bytes.Buffer, error)

func (*Monochrome16Exposure) ApplyOtsuThreshold added in v0.8.0

func (m *Monochrome16Exposure) ApplyOtsuThreshold() (bytes.Buffer, error)

func (*Monochrome16Exposure) GetBuffer added in v0.8.0

func (m *Monochrome16Exposure) GetBuffer(img *image.Gray16) (bytes.Buffer, error)

func (*Monochrome16Exposure) GetFITSImage added in v0.9.0

func (m *Monochrome16Exposure) GetFITSImage() *fits.FITSImage

func (*Monochrome16Exposure) GetOtsuThresholdValue added in v0.8.0

func (m *Monochrome16Exposure) GetOtsuThresholdValue(img *image.Gray16, size image.Point, histogram [65535]uint64) uint16

func (*Monochrome16Exposure) Preprocess added in v0.8.0

func (m *Monochrome16Exposure) Preprocess() (bytes.Buffer, error)

func (*Monochrome16Exposure) PreprocessImageArray added in v0.10.0

func (m *Monochrome16Exposure) PreprocessImageArray(xs int, ys int) (bytes.Buffer, error)
 	PreprocessImageArray()

	Preprocesses an ASCOM Alpaca Image Array to a m.Raw 2D array of uint32 values.
	Converts the 2D array of uint16 values to a 2D array of uint32 values.

	@returns  a bytes.Buffer containing the preprocessed image.
	@see https://ascom-standards.org/api/#/Camera%20Specific%20Methods/get_camera__device_number__imagearray

	"... "column-major" order (column changes most rapidly) from the image's row and column
	perspective, while, from the array's perspective, serialisation is actually effected in
	"row-major" order (rightmost index changes most rapidly). This unintuitive outcome arises
	because the ASCOM Camera Interface specification defines the image column dimension as
	the rightmost array dimension."

type MonochromeExposure

type MonochromeExposure struct {
	Width     int
	Height    int
	Raw       [][]uint32
	Data      []float32 // The underlying data array
	Processed [][]uint32
	ADU       int32
	Buffer    bytes.Buffer
	Image     *image.Gray
	Otsu      *image.Gray
	Noise     float64
	Threshold uint8
	Pixels    int
}

func NewMonochromeExposure

func NewMonochromeExposure(exposure [][]uint32, adu int32, xs int, ys int) MonochromeExposure

func (*MonochromeExposure) ApplyNoiseReduction added in v0.5.0

func (m *MonochromeExposure) ApplyNoiseReduction() (bytes.Buffer, error)

func (*MonochromeExposure) ApplyOtsuThreshold added in v0.3.0

func (m *MonochromeExposure) ApplyOtsuThreshold() (bytes.Buffer, error)

func (*MonochromeExposure) GetBuffer added in v0.3.0

func (m *MonochromeExposure) GetBuffer(img *image.Gray) (bytes.Buffer, error)

func (*MonochromeExposure) GetFITSImage added in v0.9.0

func (m *MonochromeExposure) GetFITSImage() *fits.FITSImage

func (*MonochromeExposure) GetOtsuThresholdValue added in v0.3.0

func (m *MonochromeExposure) GetOtsuThresholdValue(img *image.Gray, size image.Point, histogram [256]uint64) uint8

func (*MonochromeExposure) Preprocess

func (m *MonochromeExposure) Preprocess() (bytes.Buffer, error)

func (*MonochromeExposure) PreprocessImageArray added in v0.10.0

func (m *MonochromeExposure) PreprocessImageArray(xs int, ys int) (bytes.Buffer, error)
 	PreprocessImageArray()

	Preprocesses an ASCOM Alpaca Image Array to a m.Raw 2D array of uint32 values.
	Converts the 2D array of uint16 values to a 2D array of uint32 values.

	@returns  a bytes.Buffer containing the preprocessed image.
	@see https://ascom-standards.org/api/#/Camera%20Specific%20Methods/get_camera__device_number__imagearray

	"... "column-major" order (column changes most rapidly) from the image's row and column
	perspective, while, from the array's perspective, serialisation is actually effected in
	"row-major" order (rightmost index changes most rapidly). This unintuitive outcome arises
	because the ASCOM Camera Interface specification defines the image column dimension as
	the rightmost array dimension."

type RGGB64Color added in v0.13.0

type RGGB64Color struct {
	Name    string
	Channel []float32
}

type RGGB64Exposure added in v0.13.0

type RGGB64Exposure struct {
	Width             int
	Height            int
	Raw               [][]uint32
	R                 []float32
	G                 []float32
	B                 []float32
	ADU               int32
	Buffer            bytes.Buffer
	Image             *image.RGBA64
	ColourFilterArray string
	Pixels            int
}

func NewRGGB64Exposure added in v0.13.0

func NewRGGB64Exposure(exposure [][]uint32, adu int32, xs int, ys int, cfa string) *RGGB64Exposure

func (*RGGB64Exposure) DebayerBilinearInterpolation added in v0.13.0

func (b *RGGB64Exposure) DebayerBilinearInterpolation() error

*

Perform Debayering w/ Bilinear Interpolation Technique

*

func (*RGGB64Exposure) GetBayerMatrixOffset added in v0.13.0

func (b *RGGB64Exposure) GetBayerMatrixOffset() (xOffset int, yOffset int, err error)

*

Accepts a CFA (Color Filter Array) string, e.g., "RGGB" and returns the Bayering Matrix offset

*

func (*RGGB64Exposure) GetBuffer added in v0.13.0

func (b *RGGB64Exposure) GetBuffer(img *image.RGBA64) (bytes.Buffer, error)

func (*RGGB64Exposure) GetFITSImageForChannel added in v0.13.0

func (b *RGGB64Exposure) GetFITSImageForChannel(color RGGB64Color) *fits.FITSImage

*

Convert an R or G or B channel to a FITS standard image

*

func (*RGGB64Exposure) GetFITSImages added in v0.13.0

func (b *RGGB64Exposure) GetFITSImages() (*fits.FITSImage, *fits.FITSImage, *fits.FITSImage)

*

Return each R, G, B FITS standard images

*

func (*RGGB64Exposure) GetMonochrome added in v0.13.0

func (b *RGGB64Exposure) GetMonochrome() Monochrome16Exposure

*

Convert an R or G or B channel to a Monochrome 16 bit exposure

*

func (*RGGB64Exposure) Preprocess added in v0.13.0

func (b *RGGB64Exposure) Preprocess() (bytes.Buffer, error)

func (*RGGB64Exposure) PreprocessImageArray added in v0.13.0

func (b *RGGB64Exposure) PreprocessImageArray(xs int, ys int) (bytes.Buffer, error)
 	PreprocessImageArray()

	Preprocesses an ASCOM Alpaca Image Array to a m.Raw 2D array of uint32 values.
	Converts the 2D array of uint16 values to a 2D array of uint32 values.

	@returns  a bytes.Buffer containing the preprocessed image.
	@see https://ascom-standards.org/api/#/Camera%20Specific%20Methods/get_camera__device_number__imagearray

	"... "column-major" order (column changes most rapidly) from the image's row and column
	perspective, while, from the array's perspective, serialisation is actually effected in
	"row-major" order (rightmost index changes most rapidly). This unintuitive outcome arises
	because the ASCOM Camera Interface specification defines the image column dimension as
	the rightmost array dimension."

type RGGBColor added in v0.11.0

type RGGBColor struct {
	Name    string
	Channel []float32
}

type RGGBExposure added in v0.2.0

type RGGBExposure struct {
	Width             int
	Height            int
	Raw               [][]uint32
	R                 []float32
	G                 []float32
	B                 []float32
	ADU               int32
	Buffer            bytes.Buffer
	Image             *image.RGBA
	ColourFilterArray string
	Pixels            int
}

func NewRGGBExposure added in v0.2.0

func NewRGGBExposure(exposure [][]uint32, adu int32, xs int, ys int, cfa string) *RGGBExposure

func (*RGGBExposure) DebayerBilinearInterpolation added in v0.2.0

func (b *RGGBExposure) DebayerBilinearInterpolation() error

*

Perform Debayering w/ Bilinear Interpolation Technique

*

func (*RGGBExposure) GetBayerMatrixOffset added in v0.2.0

func (b *RGGBExposure) GetBayerMatrixOffset() (xOffset int, yOffset int, err error)

*

Accepts a CFA (Color Filter Array) string, e.g., "RGGB" and returns the Bayering Matrix offset

*

func (*RGGBExposure) GetBuffer added in v0.11.0

func (b *RGGBExposure) GetBuffer(img *image.RGBA) (bytes.Buffer, error)

func (*RGGBExposure) GetFITSImageForChannel added in v0.11.0

func (b *RGGBExposure) GetFITSImageForChannel(color RGGBColor) *fits.FITSImage

*

Convert an R or G or B channel to a FITS standard image

*

func (*RGGBExposure) GetFITSImages added in v0.11.0

func (b *RGGBExposure) GetFITSImages() (*fits.FITSImage, *fits.FITSImage, *fits.FITSImage)

*

Return each R, G, B FITS standard images

*

func (*RGGBExposure) GetMonochrome added in v0.12.0

func (b *RGGBExposure) GetMonochrome() MonochromeExposure

*

Convert an R or G or B channel to a Monochrome exposure

*

func (*RGGBExposure) Preprocess added in v0.2.0

func (b *RGGBExposure) Preprocess() (bytes.Buffer, error)

func (*RGGBExposure) PreprocessImageArray added in v0.11.0

func (b *RGGBExposure) PreprocessImageArray(xs int, ys int) (bytes.Buffer, error)
 	PreprocessImageArray()

	Preprocesses an ASCOM Alpaca Image Array to a m.Raw 2D array of uint32 values.
	Converts the 2D array of uint16 values to a 2D array of uint32 values.

	@returns  a bytes.Buffer containing the preprocessed image.
	@see https://ascom-standards.org/api/#/Camera%20Specific%20Methods/get_camera__device_number__imagearray

	"... "column-major" order (column changes most rapidly) from the image's row and column
	perspective, while, from the array's perspective, serialisation is actually effected in
	"row-major" order (rightmost index changes most rapidly). This unintuitive outcome arises
	because the ASCOM Camera Interface specification defines the image column dimension as
	the rightmost array dimension."

Jump to

Keyboard shortcuts

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