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 }
Click to show internal directories.
Click to hide internal directories.