image

package
v0.0.0-...-e4ea794 Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2025 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SaveImage

func SaveImage(img *Img, filename string) error

Types

type Img

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

func Load

func Load(path string) (*Img, error)

Load image from file path

func NewImage

func NewImage(height, width int) (*Img, error)

create a new blank image

func (*Img) Blur

func (img *Img) Blur() (*Img, error)

func (*Img) Brighten

func (img *Img) Brighten(bVal float64) (*Img, error)

func (*Img) ColorCorrect

func (img *Img) ColorCorrect() (*Img, error)

func (*Img) EdgeDetect

func (img *Img) EdgeDetect() (*Img, error)

func (*Img) GetBlue

func (img *Img) GetBlue() (*Img, error)

func (*Img) GetGrayScaleByIntensity

func (img *Img) GetGrayScaleByIntensity() (*Img, error)

func (*Img) GetGrayScaleByValue

func (img *Img) GetGrayScaleByValue() (*Img, error)

func (*Img) GetGreen

func (img *Img) GetGreen() (*Img, error)

func (*Img) GetHistogram

func (img *Img) GetHistogram(histSize int) (*Img, error)

func (*Img) GetRed

func (img *Img) GetRed() (*Img, error)

func (*Img) HaarCompress

func (img *Img) HaarCompress(ratio float64) (*Img, error)

func (*Img) HorizontalFlip

func (img *Img) HorizontalFlip() (*Img, error)

flip image horizontally

func (*Img) LevelAdjust

func (img *Img) LevelAdjust(blacks, mids, whites float64) (*Img, error)

TODO implement this

func (*Img) Sharpen

func (img *Img) Sharpen() (*Img, error)

func (*Img) VerticalFlip

func (img *Img) VerticalFlip() (*Img, error)

flip image vertically

type Pixel

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

Jump to

Keyboard shortcuts

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