Documentation ¶
Index ¶
- func Adjust(rules ...strategy.MappingRule) func(image.Image) image.Image
- func Convolution(edgeHandling strategy.EdgeHandling, kernel utils.Kernel) func(image.Image) image.Image
- func Difference(diff strategy.ColorDifference) func(image.Image, image.Image) image.Image
- func Distortion(edgeHandling strategy.EdgeHandling, lens strategy.Lens) func(image.Image) image.Image
- func Flip(img image.Image, strategy FlipperStrategy) image.Image
- func FlipHorizontal(img image.Image) image.Image
- func FlipVertical(img image.Image) image.Image
- func HorizontalFlipper(x, y int, bounds image.Rectangle) (int, int)
- func Jitter(radius int) func(image.Image) image.Image
- func Median(eval strategy.ColorEvaluation, edgeHandling strategy.EdgeHandling, ...) func(image.Image) image.Image
- func MultiConvolution(edgeHandling strategy.EdgeHandling, merge strategy.ColorMerger, ...) func(image.Image) image.Image
- func Scale(colorSamplingStrategy strategy.ColorSampling) func(image.Image, int, int) image.Image
- func VerticalFlipper(x, y int, bounds image.Rectangle) (int, int)
- type FlipperStrategy
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Convolution ¶
func Convolution(edgeHandling strategy.EdgeHandling, kernel utils.Kernel) func(image.Image) image.Image
Convolution returns a function that applies the given kernel on an image with respect to the given Edgehandling strategy
func Difference ¶
Difference returns a function that compares 2 images with the given strategy
func Distortion ¶
func Distortion(edgeHandling strategy.EdgeHandling, lens strategy.Lens) func(image.Image) image.Image
Distortion applies the Vectors obtained from the given lens to an image, with respect to the EdgeHandling strategy given
func Flip ¶
func Flip(img image.Image, strategy FlipperStrategy) image.Image
Flip returns a function that applies the given FlipperStrategy on an image
func FlipHorizontal ¶
FlipHorizontal returns a function that applies HorizontalFlipper on an image
func FlipVertical ¶
FlipVertical returns a function that applies VerticalFlipper on an image
func HorizontalFlipper ¶
HorizontalFlipper returns the given position flipped horizontally
func Jitter ¶
Jitter returns a function that applies a jitter effect with the given radius on an image
func Median ¶
func Median(eval strategy.ColorEvaluation, edgeHandling strategy.EdgeHandling, windowRadius int) func(image.Image) image.Image
Median returns a function that applies a Median effects with respect to the given ColorEvaluation strategy, EdgeHandling strategy and window radius to an image
func MultiConvolution ¶
func MultiConvolution(edgeHandling strategy.EdgeHandling, merge strategy.ColorMerger, kernels ...utils.Kernel) func(image.Image) image.Image
MultiConvolution returns a function that applies the given kernels on an image with respect to the given Edgehandling strategy, merging results with the given ColorMerge strategy