effects

package
v0.0.0-...-650aa15 Latest Latest
Warning

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

Go to latest
Published: Jul 3, 2019 License: MIT Imports: 11 Imported by: 0

Documentation

Overview

Package effects contains utility functions for adding emojis to a given image

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddEmojis

func AddEmojis(src image.Image) *image.RGBA

AddEmojis is a function that will add emojis randomly to the given image

func GaussianNoise

func GaussianNoise(src image.RGBA, stddev float64) *image.RGBA

GaussianNoise is a function that adds guassian white noise to an image

func LoadImage

func LoadImage(filename string) image.Image

LoadImage takes in a filename, reads the image if any from the location and returns it

func SaltAndPepperNoise

func SaltAndPepperNoise(src image.RGBA, prob float64) *image.RGBA

SaltAndPepperNoise is a function that generates salt and pepper noise in an image based on a given probability

func SaveImage

func SaveImage(filename string, img image.Image, qual int)

SaveImage takes in a filename, an image and a quality index and saves the image to th specified location

Types

This section is empty.

Jump to

Keyboard shortcuts

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