Versions in this module Expand all Collapse all v1 v1.0.1 Feb 1, 2018 Changes in this version + func Grayscale(src *image.NRGBA) *image.NRGBA + func Resize(s SeamCarver, img *image.NRGBA) (image.Image, error) + func SobelFilter(img *image.NRGBA, threshold float64) *image.NRGBA + func Stackblur(img *image.NRGBA, width, height, radius uint32) *image.NRGBA + type ActiveSeam struct + Pix color.Color + type Carver struct + Height int + Points []float64 + Width int + func NewCarver(width, height int) *Carver + func (c *Carver) AddSeam(img *image.NRGBA, seams []Seam, debug bool) *image.NRGBA + func (c *Carver) ComputeSeams(img *image.NRGBA, p *Processor) []float64 + func (c *Carver) FindLowestEnergySeams() []Seam + func (c *Carver) RemoveSeam(img *image.NRGBA, seams []Seam, debug bool) *image.NRGBA + func (c *Carver) RotateImage270(src *image.NRGBA) *image.NRGBA + func (c *Carver) RotateImage90(src *image.NRGBA) *image.NRGBA + type Processor struct + BlurRadius int + Debug bool + NewHeight int + NewWidth int + Percentage bool + SobelThreshold int + func (p *Processor) Process(r io.Reader, w io.Writer) error + func (p *Processor) Resize(img *image.NRGBA) (image.Image, error) + type Seam struct + X int + Y int + type SeamCarver interface + Resize func(*image.NRGBA) (image.Image, error) + type UsedSeams struct + ActiveSeam []ActiveSeam