etcs

package
v0.0.0-...-003cba6 Latest Latest
Warning

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

Go to latest
Published: Aug 10, 2024 License: BSD-2-Clause Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MeanOfPixels

func MeanOfPixels[N Number](pixels []N) N

MeanOfPixels function returns a mean of pixels.

func MedianOfPixels

func MedianOfPixels[N Number](pixels []N) N

MedianOfPixels function returns a median value of pixels. It uses quick selection algorithm.

func MedianOfPixelsFast64

func MedianOfPixelsFast64[N Number](pixels []N) N

MedianOfPixelsFast64 function returns a median value of pixels. It uses quick selection algorithm.

Types

type Number

type Number interface {
	constraints.Integer | constraints.Float
}

Jump to

Keyboard shortcuts

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