ImageTools

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2019 License: MIT Imports: 24 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

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, reproject bool) (error, string)

func DumpRaw

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

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 MakeCurveManipulator

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

func MakeDefaultCurveManipulator

func MakeDefaultCurveManipulator() *CurveManipulator

func (*CurveManipulator) ApplyCurve

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

type Lut2D

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

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