avg

package
v0.0.0-...-e2e0a51 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2025 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package avg calculates average and stdev of pixels in images.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RGBA

func RGBA(img *image.RGBA) ([3]float64, [3]float64)

RGBA computes the pixel average, and average absolute deviation of each pixel, on an RGBA image, per channel. The alpha channel is ignored. Scaled to [0, 1]. Slightly optimized implementation.

func RGBAC

func RGBAC(img *image.RGBA) ([3]float64, [3]float64)

RGBAC computes the pixel average, and average absolute deviation of each pixel, on an RGBA image, per channel. The alpha channel is ignored. Scaled to [0, 1]. Implemented in Cgo.

func RGBASlow

func RGBASlow(img *image.RGBA) ([3]float64, [3]float64)

RGBASlow computes the pixel average, and average absolute deviation of each pixel, on an RGBA image, per channel. The alpha channel is ignored. Scaled to [0, 1]. This a slow implementation useful as ground truth for testing.

Types

This section is empty.

Jump to

Keyboard shortcuts

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