histogram

package
v0.0.0-...-55700be Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DrawHistogramGray

func DrawHistogramGray(img *image.Gray, size image.Point) *image.Gray

DrawHistogramGray computes and draws the histogram of a grayscale image. The size of the image is 256*scale width and 256*scale height.

func DrawHistogramRGBA

func DrawHistogramRGBA(img *image.RGBA, size image.Point) *image.RGBA

DrawHistogramRGBA computes and draws the histogram of a RGBA image. The size of the image is 256*scale width and 256*scale height.

func HistogramGray

func HistogramGray(img *image.Gray) [hsize]uint64

HistogramGray computes the histogram for a grayscale image. Returns an array of 256 uint64 values containing distribution of the pixel values.

func HistogramRGBA

func HistogramRGBA(img *image.RGBA) [channels][hsize]uint64

HistogramRGBA computes the histogram for a RGBA image. Returns an 2D (shape: [3][256]) array of uint64 values containing distribution of color values from each RGBA channel.

func HistogramRGBABlue

func HistogramRGBABlue(img *image.RGBA) [hsize]uint64

HistogramRGBABlue computes the histogram for blue channel from an RGBA image. Returns an array of 256 uint64 values containing distribution of the pixel values.

func HistogramRGBAGreen

func HistogramRGBAGreen(img *image.RGBA) [hsize]uint64

HistogramRGBAGreen computes the histogram for green channel from an RGBA image. Returns an array of 256 uint64 values containing distribution of the pixel values.

func HistogramRGBARed

func HistogramRGBARed(img *image.RGBA) [hsize]uint64

HistogramRGBARed computes the histogram for red channel from an RGBA image. Returns an array of 256 uint64 values containing distribution of the pixel values.

Types

This section is empty.

Jump to

Keyboard shortcuts

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