imageutil

package
v0.0.0-...-90a1d6d Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2020 License: AGPL-3.0, AGPL-3.0-only Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AutoThresholdTriangle

func AutoThresholdTriangle(histogram [256]int) uint8

AutoThresholdTriangle is a function that returns threshold value on the base of provided histogram. It is calculated using triangle method.

func GrayImageHistogram

func GrayImageHistogram(img *image.Gray) (histogram [256]int)

GrayImageHistogram gets histogram for the provided Gray 'img'.

func ImgToBinary

func ImgToBinary(i image.Image, threshold uint8) *image.Gray

ImgToBinary gets the binary (black/white) image from the given image 'i' and provided threshold 'threshold'

func ImgToGray

func ImgToGray(i image.Image) *image.Gray

ImgToGray gets the gray-scaled image from the given 'i' image.

func IsGrayImgBlackAndWhite

func IsGrayImgBlackAndWhite(i *image.Gray) bool

IsGrayImgBlackAndWhite checks if provided gray image is BlackAndWhite - Binary image.

Types

This section is empty.

Jump to

Keyboard shortcuts

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