filter

package
v0.0.0-...-17e2f5f Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2025 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BlackMaskFilter

func BlackMaskFilter(_, _ int, col color.Color) (color.Color, error)

BlackMaskFilter returns a filter which will mark a pixel as Opaque if it's black otherwise leaves the colour as is

func ClipInside

func ClipInside(rect image.Rectangle) graph.Filter

ClipInside will change all pixels outside the Rectangle to be transparent

func ClipOutside

func ClipOutside(rect image.Rectangle) graph.Filter

ClipOutside will change all pixels inside the Rectangle to be transparent

func EqualizeFilter

func EqualizeFilter(h *color2.Histogram, b image.Rectangle) graph.Filter

EqualizeFilter generates a Filter based on a histogram and a Rectangle. The output would be the levels for each RGB channel equalised

func WhiteMaskFilter

func WhiteMaskFilter(_, _ int, col color.Color) (color.Color, error)

WhiteMaskFilter returns a filter which will mark a pixel as Opaque if it's white otherwise Transparent

Types

This section is empty.

Jump to

Keyboard shortcuts

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