imgproc

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2021 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrImageIsNil = errors.New("image argument is nil")

ErrImageIsNil ...

Functions

func DCT

func DCT(mat [][]float32) [][]float32

func EqualizeHist

func EqualizeHist(img *image.Gray) *image.Gray

EqualizeHist equalizes the histogram of the input image to normalize the brightness and increases the contrast of the image.

func Filter2DGray

func Filter2DGray(img *image.Gray, kernel [][]float32) [][]float32

func GaussianBlur

func GaussianBlur(img image.Image, kernel int, sigma float64) image.Image

GaussianBlur computes and returns an image with an applied Gaussian filter. Both kernel and sigma are parameters used for generating a Gaussian filter kernel.

func GrayToF32

func GrayToF32(img *image.Gray) [][]float32

GrayToF32 converts grayscale image to float32 matrix

func Grayscale

func Grayscale(img image.Image) (*image.Gray, error)

Grayscale ...

func HSV

func HSV(img image.Image) (image.Image, error)

HSV ...

func HuMoments

func HuMoments(m []Moments) []float64

HuMoments ...

func Mean

func Mean(img *image.Gray) (float64, error)

Mean ...

func Median

func Median(img *image.Gray) (float64, error)

Median ...

func Read

func Read(file string) (image.Image, error)

func Resize

func Resize(width, height uint, img image.Image, typ ResizeType) image.Image

func YCrCb

func YCrCb(img image.Image) (image.Image, error)

YCrCb ...

Types

type Moments

type Moments struct {
	// contains filtered or unexported fields
}

Moments ...

func GetMoments

func GetMoments(img image.Image) []Moments

GetMoments ...

type ResizeType

type ResizeType int
const (
	NearestNeighbor ResizeType = iota
	Bilinear
	Bicubic
	MitchellNetravali
	Lanczos2
	Lanczos3
	BilinearExact
)

Jump to

Keyboard shortcuts

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