utils

package
v0.0.0-...-d606bfb Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2021 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ImgToMat

func ImgToMat(img image.Image) [][]float64

func Inlist

func Inlist(list interface{}, item interface{}) bool

func MatToImg

func MatToImg(input [][]float64) image.Image

func ReadImage

func ReadImage(path string, dec Decoder) ([][]float64, error)

func Resize

func Resize(x, y int, img image.Image) [][]float64

func SaveImage

func SaveImage(input [][]float64, path string) error

Types

type Decoder

type Decoder func(io.Reader) (image.Image, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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