channel

package
v0.0.0-...-358a119 Latest Latest
Warning

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

Go to latest
Published: Jun 25, 2020 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package channel provides image channel separation and manipulation functions.

Index

Constants

View Source
const (
	Red = iota
	Green
	Blue
	Alpha
)

Channel identifiers

Variables

This section is empty.

Functions

func Extract

func Extract(img image.Image, c Channel) *image.Gray

Extract returns a grayscale image containing the values of the selected channel.

Usage example:

result := channel.Extract(img, channel.Alpha)

Types

type Channel

type Channel int

Channel identifier for RGBA images

Jump to

Keyboard shortcuts

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