Documentation ¶
Index ¶
- func DrawHistogramGray(img *image.Gray, size image.Point) *image.Gray
- func DrawHistogramRGBA(img *image.RGBA, size image.Point) *image.RGBA
- func HistogramGray(img *image.Gray) [hsize]uint64
- func HistogramRGBA(img *image.RGBA) [channels][hsize]uint64
- func HistogramRGBABlue(img *image.RGBA) [hsize]uint64
- func HistogramRGBAGreen(img *image.RGBA) [hsize]uint64
- func HistogramRGBARed(img *image.RGBA) [hsize]uint64
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DrawHistogramGray ¶
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 ¶
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 ¶
HistogramGray computes the histogram for a grayscale image. Returns an array of 256 uint64 values containing distribution of the pixel values.
func HistogramRGBA ¶
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 ¶
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 ¶
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 ¶
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.