imagexp

package module
v0.0.0-...-b178c7f Latest Latest
Warning

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

Go to latest
Published: May 2, 2017 License: MIT Imports: 12 Imported by: 0

README

go-image-experiments

Various Image Manipulations like Grayscaling Images, Color Filters etc in golang.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var PARTS int = 200

Functions

func BasicGrayscale

func BasicGrayscale(r, g, b, _ uint32) color.Gray16

func BlueFilter

func BlueFilter(r, g, b, a uint32) color.RGBA64

func Blur

func Blur(blurLevel int, ipPath string) (*image.RGBA64, error)

func ColorFilter

func ColorFilter(transformationFunction RGBATransformation, ipPath string) (*image.RGBA64, error)

func DecompositionMax

func DecompositionMax(r, g, b, a uint32) color.Gray16

func DecompositionMin

func DecompositionMin(r, g, b, a uint32) color.Gray16

func Desaturation

func Desaturation(r, g, b, a uint32) color.Gray16

func GrayscaleTransform

func GrayscaleTransform(transformationFunction Gray16Transformation, ipPath string) (*image.Gray16, error)

func GreenFilter

func GreenFilter(r, g, b, a uint32) color.RGBA64

func ImprovedGrayscale

func ImprovedGrayscale(r, g, b, _ uint32) color.Gray16

func RedFilter

func RedFilter(r, g, b, a uint32) color.RGBA64

func SingleChannelBlue

func SingleChannelBlue(_, _, b, _ uint32) color.Gray16

func SingleChannelGreen

func SingleChannelGreen(_, g, _, _ uint32) color.Gray16

func SingleChannelRed

func SingleChannelRed(r, _, _, _ uint32) color.Gray16

This is how, I'll do it, Until I figure out a better way

Types

type Gray16Transformation

type Gray16Transformation func(r, g, b, a uint32) color.Gray16

type Image

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

func (*Image) Decode

func (img *Image) Decode() (image.Image, error)

func (*Image) Save

func (img *Image) Save(SaveDir string, finalImage image.Image, shouldCreateDir bool)

Use file Extension to idenitfy which decoder to use.

func (*Image) SetDimension

func (img *Image) SetDimension(width int, height int)

type RGBATransformation

type RGBATransformation func(r, g, b, a uint32) color.RGBA64

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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