Documentation ¶
Index ¶
- Variables
- func DCT(mat [][]float32) [][]float32
- func EqualizeHist(img *image.Gray) *image.Gray
- func Filter2DGray(img *image.Gray, kernel [][]float32) [][]float32
- func GaussianBlur(img image.Image, kernel int, sigma float64) image.Image
- func GrayToF32(img *image.Gray) [][]float32
- func Grayscale(img image.Image) (*image.Gray, error)
- func HSV(img image.Image) (image.Image, error)
- func HuMoments(m []Moments) []float64
- func Mean(img *image.Gray) (float64, error)
- func Median(img *image.Gray) (float64, error)
- func Read(file string) (image.Image, error)
- func Resize(width, height uint, img image.Image, typ ResizeType) image.Image
- func YCrCb(img image.Image) (image.Image, error)
- type Moments
- type ResizeType
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrImageIsNil = errors.New("image argument is nil")
ErrImageIsNil ...
Functions ¶
func EqualizeHist ¶
EqualizeHist equalizes the histogram of the input image to normalize the brightness and increases the contrast of the image.
func GaussianBlur ¶
GaussianBlur computes and returns an image with an applied Gaussian filter. Both kernel and sigma are parameters used for generating a Gaussian filter kernel.
Types ¶
type ResizeType ¶
type ResizeType int
const ( NearestNeighbor ResizeType = iota Bilinear Bicubic MitchellNetravali Lanczos2 Lanczos3 BilinearExact )
Click to show internal directories.
Click to hide internal directories.