Documentation ¶
Overview ¶
Package imutil is an internal package which contains various utilities for loading, storing, and generating image files.
Index ¶
- func Dump(path string, img image.Image) error
- func FromMat(m *mat.Dense) *image.Gray
- func FromMatNorm(m *mat.Dense) *image.Gray
- func Load(path string) (image.Image, error)
- func Rand(seed int64, w, h int) *image.Gray
- func Sub(img image.Image, r image.Rectangle) (image.Image, error)
- func ToGray(img image.Image) *image.Gray
- func ToMat(img *image.Gray) *mat.Dense
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FromMatNorm ¶
FromMatNorm normalizes a float matrix linearly to [0, 1] and then calls FromMat() on the result.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.