imageprocessing

package
v0.0.0-...-cfcda69 Latest Latest
Warning

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

Go to latest
Published: Jan 2, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AdjustToWhite

func AdjustToWhite(img image.Image, rect image.Rectangle, greyBoundaryModMin float32, greyBoundaryModMax float32) image.Image

func BlackOrWhiteImage

func BlackOrWhiteImage(img image.Image, greyBoundaryMod float32, rect image.Rectangle) image.Image

func CropReadOnlyImage

func CropReadOnlyImage(img image.Image, rect image.Rectangle) image.Image

func GrayScaleImage

func GrayScaleImage(img image.Image, rect image.Rectangle) image.Image

func LoadImage

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

func LoadImages

func LoadImages(dir string) []image.Image

func NextNonEmptyElement

func NextNonEmptyElement(array []string, i int) (string, int, error)

func SaveImage

func SaveImage(img image.Image, filepath string)

func Text

func Text(img image.Image, whitelist string) string

Types

type SubImager

type SubImager interface {
	SubImage(r image.Rectangle) image.Image
}

Jump to

Keyboard shortcuts

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