Versions in this module Expand all Collapse all v0 v0.2.6 Feb 27, 2023 Changes in this version + const HeaderLineSize + func EqualInt32Slice(a, b []int32) bool + func HSLuvToLinearRGB(h, s, l float32) (r, g, b float32) + type Header struct + Bools map[string]bool + Comments []string + Dates map[string]string + End bool + Floats map[string]float32 + History []string + Ints map[string]int32 + Length int32 + Strings map[string]string + func NewHeader() Header + func (h *Header) Print() + func (h *Header) Write(w io.Writer) + type Image struct + Bitpix int32 + Bscale float32 + Bzero float32 + Data []float32 + Exposure float32 + FileName string + HFR float32 + Header Header + ID int + MedianDiffStats *stats.Stats + Naxisn []int32 + Pixels int32 + Residual float32 + Stars []star.Star + Stats *stats.Stats + Trans star.Transform2D + func NewImage() *Image + func NewImageBinNxN(src *Image, n int32) *Image + func NewImageFromFile(fileName string, id int, logWriter io.Writer) (i *Image, err error) + func NewImageFromImage(img *Image) *Image + func NewImageFromNaxisn(naxisn []int32, data []float32) *Image + func NewImageFromStars(src *Image, hfrMultiple float32) *Image + func NewImageMasterDataFromFile(fileName string, id int, logWriter io.Writer) (i *Image, err error) + func NewRGBFromChannels(chans []*Image, ref *Image, logWriter io.Writer) *Image + func (f *Image) AdjustChroma(gamma, threshold float32) + func (f *Image) AdjustChromaForHues(from, to, factor float32) + func (f *Image) ApplyGamma(g float32) + func (f *Image) ApplyGammaToChannel(chanID int, g float32) + func (f *Image) ApplyMidtones(mid, black float32) + func (f *Image) ApplyMidtonesToChannel(chanID int, mid, black float32) + func (f *Image) ApplyPartialGamma(from, to, g float32) + func (f *Image) ApplyPartialGammaToChannel(chanID int, from, to, g float32) + func (f *Image) ApplyPixelFunction(pf PixelFunction, args interface{}) + func (f *Image) ApplyPixelFunction1Chan(chanID int, pf PixelFunction, args interface{}) + func (f *Image) ApplyPixelFunction3Chan(pf PixelFunction3Chan, args interface{}) + func (f *Image) ApplyScaleOffset(scale, offset float32) + func (f *Image) ApplyScaleOffsetToChannel(chanID int, scale, offset float32) + func (f *Image) CIEHSLToRGB() + func (f *Image) DimensionsToString() string + func (f *Image) FillCircle(xc, yc, r, color float32) + func (f *Image) HSLuvToRGB() + func (f *Image) MatchHistogram(refStats *stats.Stats) + func (f *Image) MatchLocation(refLocation float32) + func (f *Image) MonoToHSLLum() + func (f *Image) MonoToHSLuvLum() + func (f *Image) NeutralizeBackground(low, high float32) + func (f *Image) Normalize() + func (f *Image) OffsetRGB(r, g, b float32) + func (f *Image) RGBToCIEHSL() + func (f *Image) RGBToHCL() + func (f *Image) RGBToHSLuv() + func (f *Image) RotateColors(from, to, offset, lthres float32) + func (f *Image) SCNR(factor float32) + func (f *Image) ScaleOffsetClampRGB(alphaR, betaR, alphaG, betaG, alphaB, betaB float32) + func (f *Image) ScaleRGB(r, g, b float32) + func (f *Image) SetBlackWhite(blackPerc, whitePerc float32, logWriter io.Writer) + func (f *Image) SetBlackWhitePoints(block int32, border, skipBright, skipDim float32, shadows, highlights RGB, ...) error + func (f *Image) ShiftBlackToMove(before, after float32) + func (f *Image) ShiftBlackToMoveChannel(chanID int, before, after float32) + func (f *Image) ToXyy() + func (f *Image) WriteJPG(writer io.Writer, quality int) error + func (f *Image) WriteJPGToFile(fileName string, quality int) error + func (f *Image) WriteMonoJPG(writer io.Writer, quality int) error + func (f *Image) WriteMonoJPGToFile(fileName string, quality int) error + func (f *Image) XyyToRGB() + func (fits *Image) PopHeaderInt32(key string) (res int32, err error) + func (fits *Image) PopHeaderInt32OrFloat(key string) (res float32, err error) + func (fits *Image) Read(f io.Reader, readData bool, logWriter io.Writer) (err error) + func (fits *Image) ReadFile(fileName string, readData bool, logWriter io.Writer) error + func (fits *Image) Write(f io.Writer) error + func (fits *Image) WriteFile(fileName string) error + func (hsl *Image) ApplyLuminanceToCIExyY(lum *Image) + func (img *Image) Project(destNaxisn []int32, trans star.Transform2D, outOfBounds float32) (res *Image, err error) + type LinearsRGB struct + B float32 + G float32 + R float32 + func (c LinearsRGB) ToOkHcl() OkHcl + func (c LinearsRGB) ToOkLab() OkLab + type OkHcl struct + C float32 + H float32 + L float32 + func (c OkHcl) ToLinearsRGB() LinearsRGB + func (c OkHcl) ToOkLab() OkLab + type OkLab struct + A float32 + B float32 + L float32 + func (c OkLab) ToLinearsRGB() LinearsRGB + func (c OkLab) ToOkHcl() OkHcl + type PixelFunction func(data []float32, params interface{}) + type PixelFunction3Chan func(c0, c1, c2 []float32, params interface{}) + type RGB struct + B float32 + G float32 + R float32 + func (rgb RGB) String() string