imagemanip

package
v0.0.0-...-d54de9c Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ApplyGaussian

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

func takes an image, generates a gaussian kernel of size 2 and applies gaussian smoothen filter

func GenerateNew

func GenerateNew(width, height int) image.Image

util func that creates an image with given size

func HLine

func HLine(img *image.RGBA, x1, y, x2 int, col color.Color)

draw a horizontal line on an image

func MorphGradient

func MorphGradient(img image.Image) image.Image

sharpening function applying morphological dilation and erosion in order to sharpen the image

func ReadFrom

func ReadFrom(filePath string) (image.Image, error)

util func that returns the contents of an image file

func Rect

func Rect(img *image.RGBA, x1, y1, x2, y2, width int, col color.Color)

Rect draws a rectangle utilizing HLine() and VLine()

func SaveTo

func SaveTo(filePath, fileName string, img image.Image) (bool, error)

util func that saves an image to a given path

func VLine

func VLine(img *image.RGBA, x, y1, y2 int, col color.Color)

draw a vertical line on an image

Types

This section is empty.

Jump to

Keyboard shortcuts

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