imagehelper

package
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2023 License: Unlicense Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ByteToRgbImage

func ByteToRgbImage(dataPtr *[]uint8, width, height int) *image.RGBA

func FloatToGwImage

func FloatToGwImage(dataPtr *[]float32, width, height int) *image.Gray

func FloatToRgbImage

func FloatToRgbImage(dataPtr *[]float32, width, height int) *image.RGBA

func LoadImage

func LoadImage(f *os.File) (*image.Image, error)

func LoadImageFromPath

func LoadImageFromPath(path string) (*image.Image, error)

func RgbImageToByte

func RgbImageToByte(imgPtr *image.Image) *[]uint8

func RgbImageToFloat

func RgbImageToFloat(imgPtr *image.Image) *[]float32

func SaveGwImageToPath

func SaveGwImageToPath(path string, img *image.Gray) error

func SaveImage

func SaveImage(f *os.File, img *image.Image) error

Encode to `PNG` with `DefaultCompression` level then save to file

func SaveImageToPath

func SaveImageToPath(path string, img *image.Image) error

func SaveRgbaImageToPath

func SaveRgbaImageToPath(path string, img *image.RGBA) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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