funcs

package
v0.0.0-...-dab53f2 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2020 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	BLACK             = &color.RGBA64{R: 0, G: 0, B: 0, A: math.MaxUint16}
	TRANSPARENT_WHITE = &color.RGBA64{R: math.MaxUint16, G: math.MaxUint16, B: math.MaxUint16, A: 0}
)

Functions

func ColorEuclideanDist

func ColorEuclideanDist(a *color.Color, b *color.RGBA64) float64

func ColorNorm1Dist

func ColorNorm1Dist(a *color.Color, b *color.RGBA64) float64

func ColorNormInfDist

func ColorNormInfDist(a *color.Color, b *color.RGBA64) float64

func FindEdges

func FindEdges(read *im.Image, x int, y int, args *map[string]interface{}) *color.RGBA64

func GrayScaleAverage

func GrayScaleAverage(read *im.Image, x int, y int, _ *map[string]interface{}) *color.RGBA64

func GrayScaleDesaturation

func GrayScaleDesaturation(read *im.Image, x int, y int, _ *map[string]interface{}) *color.RGBA64

func GrayScaleLuminosity

func GrayScaleLuminosity(read *im.Image, x int, y int, _ *map[string]interface{}) *color.RGBA64

func Identity

func Identity(read *im.Image, x, y int, _ *map[string]interface{}) *color.RGBA64

func InvertColor

func InvertColor(read *im.Image, x int, y int, _ *map[string]interface{}) *color.RGBA64

func NoiseReduction

func NoiseReduction(read *im.Image, x int, y int, args *map[string]interface{}) *color.RGBA64

Calculate for each pixel the noise reduction applied according to radius

func Nullify

func Nullify(read *im.Image, x int, y int, _ *map[string]interface{}) *color.RGBA64

func ParseFindEdgesArgs

func ParseFindEdgesArgs(filter *filter.Filter, args *map[string]interface{}) *map[string]interface{}

func ParseNoiseReductionArgs

func ParseNoiseReductionArgs(_ *filter.Filter, args *map[string]interface{}) *map[string]interface{}

Get the value of the radius

func Print

func Print(read *im.Image, x, y int, _ *map[string]interface{}) *color.RGBA64

Types

This section is empty.

Jump to

Keyboard shortcuts

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