ImageTools

package
v0.5.2 Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2019 License: MIT Imports: 28 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CleanShapeFiles added in v0.5.2

func CleanShapeFiles(shpFile string)

func DrawGray8At

func DrawGray8At(data []byte, px, py int, image *image.Gray)

func DumpDirectly

func DumpDirectly(newFileName string, data []byte) error

func DumpImage

func DumpImage(filename string) error

func DumpMultiSegment

func DumpMultiSegment(msi *Structs.MultiSegmentImage, mapDrawer *MapDrawer.MapDrawer, visCurve *CurveManipulator, reproject bool, enhance bool, metadata bool) (error, string)

func DumpRaw

func DumpRaw(newFileName string, data []byte, xh *XRIT.Header) error

func ExtractShapeFiles added in v0.5.2

func ExtractShapeFiles() (string, error)

ExtractShapeFiles extracts the shapefiles to temp folder and return path for shp file

func GetDefaultMapDrawer added in v0.5.2

func GetDefaultMapDrawer() *MapDrawer.MapDrawer

func GetNoMapName

func GetNoMapName(filename string) string

func GetNoProjName

func GetNoProjName(filename string) string

func Image2Gray

func Image2Gray(img image.Image) *image.Gray

func LoadImage

func LoadImage(filename string) (image.Image, error)

func LoadImageGrayScale

func LoadImageGrayScale(filename string) (*image.Gray, error)

func MultiSegmentAssemble

func MultiSegmentAssemble(msi *Structs.MultiSegmentImage) (error, image.Image)

func SaveImage

func SaveImage(filename string, img image.Image) error

func SetSaveNoMap

func SetSaveNoMap(s bool)

func SetSaveNoProj

func SetSaveNoProj(s bool)

Types

type ColorReader

type ColorReader interface {
	At(x, y int) color.Color
}

type CurveManipulator

type CurveManipulator struct {
	// contains filtered or unexported fields
}

func GetVisibleCurveManipulator added in v0.5.2

func GetVisibleCurveManipulator() *CurveManipulator

func MakeCurveManipulator

func MakeCurveManipulator(curve []float32) (error, *CurveManipulator)

func MakeDefaultCurveManipulator

func MakeDefaultCurveManipulator() *CurveManipulator

func (*CurveManipulator) ApplyCurve

func (cm *CurveManipulator) ApplyCurve(img image.Image) error

type ImageEnhancer added in v0.5.2

type ImageEnhancer struct {
	// contains filtered or unexported fields
}

func MakeImageEnhancer added in v0.5.2

func MakeImageEnhancer(minTemp, maxTemp float32, satLut []float32, enhanceLut []color.Color, overlay bool) *ImageEnhancer

func MakeImageEnhancerEmpty added in v0.5.2

func MakeImageEnhancerEmpty(overlay bool) *ImageEnhancer

func (*ImageEnhancer) DrawMeta added in v0.5.2

func (ie *ImageEnhancer) DrawMeta(section string, img *image.RGBA, xh *XRIT.Header) (*image.RGBA, error)

func (*ImageEnhancer) DrawMetaWithoutScale added in v0.5.2

func (ie *ImageEnhancer) DrawMetaWithoutScale(section string, img *image.RGBA, xh *XRIT.Header) (*image.RGBA, error)

func (*ImageEnhancer) EnhanceWithLUT added in v0.5.2

func (ie *ImageEnhancer) EnhanceWithLUT(img *image.RGBA) (*image.RGBA, error)

type Lut1D added in v0.5.2

type Lut1D struct {
	// contains filtered or unexported fields
}

func GetTemperatureLUT added in v0.5.2

func GetTemperatureLUT(xh *XRIT.Header) *Lut1D

func MakeLut1D added in v0.5.2

func MakeLut1D(filename string) (*Lut1D, error)

func MakeLut1DFromColors added in v0.5.2

func MakeLut1DFromColors(colors []color.Color) (*Lut1D, error)

func MakeLut1DFromMemory added in v0.5.2

func MakeLut1DFromMemory(data []byte) (*Lut1D, error)

func MakeLut1DFromReader added in v0.5.2

func MakeLut1DFromReader(r io.Reader) (*Lut1D, error)

func (*Lut1D) ApplyFromGray added in v0.5.2

func (l1d *Lut1D) ApplyFromGray(a *image.Gray) (*image.RGBA, error)

func (*Lut1D) ApplyFromRGBA added in v0.5.2

func (l1d *Lut1D) ApplyFromRGBA(a *image.RGBA) (*image.RGBA, error)

type Lut2D

type Lut2D struct {
	// contains filtered or unexported fields
}

func GetFalseColorLUT added in v0.5.2

func GetFalseColorLUT() *Lut2D

func MakeLut2D

func MakeLut2D(filename string) (*Lut2D, error)

func MakeLut2DFromMemory

func MakeLut2DFromMemory(data []byte) (*Lut2D, error)

func MakeLut2DFromReader

func MakeLut2DFromReader(r io.Reader) (*Lut2D, error)

func (*Lut2D) Apply

func (l2d *Lut2D) Apply(a, b *image.Gray) (*image.RGBA, error)

Jump to

Keyboard shortcuts

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