imgutils

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Jan 4, 2021 License: Unlicense Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func OpenImg

func OpenImg(filename string) (image.Image, error)

OpenImg reads image a from file and returns Image interface

func Resize

func Resize(w, h uint, img image.Image) image.Image

Resize resizes image using resize library

func Threshold

func Threshold(img *image.Gray, threshold int) *image.Gray

Threshold does automatic image segmentation using Otsu's Method or manual thresholding if threshold >= 0

http://www.labbookpages.co.uk/software/imgProc/otsuThreshold.html

func ToGray

func ToGray(img image.Image) *image.Gray

ToGray converts image to grayscale

Types

This section is empty.

Jump to

Keyboard shortcuts

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