C# Class Accord.Imaging.UnsafeTools

Static tool functions for imaging.
Exibir arquivo Open project: accord-net/framework

Public Methods

Method Description
Mean ( byte src, int width, int height, int stride ) : double

Computes the mean pixel value within a given image region.

Scatter ( byte src, int width, int height, int stride, double mean ) : double

Computes the pixel scatter within a given image region.

Sum ( byte src, int width, int height, int stride ) : int

Computes the sum of all pixels within a given image region.

Variance ( byte src, int width, int height, int stride, double mean ) : double

Computes the pixel variance within a given image region.

Method Details

Mean() public static method

Computes the mean pixel value within a given image region.
public static Mean ( byte src, int width, int height, int stride ) : double
src byte The image region.
width int The region width.
height int The region height.
stride int The image stride.
return double

Scatter() public static method

Computes the pixel scatter within a given image region.
public static Scatter ( byte src, int width, int height, int stride, double mean ) : double
src byte The image region.
width int The region width.
height int The region height.
stride int The image stride.
mean double The region pixel mean.
return double

Sum() public static method

Computes the sum of all pixels within a given image region.
public static Sum ( byte src, int width, int height, int stride ) : int
src byte The image region.
width int The region width.
height int The region height.
stride int The image stride.
return int

Variance() public static method

Computes the pixel variance within a given image region.
public static Variance ( byte src, int width, int height, int stride, double mean ) : double
src byte The image region.
width int The region width.
height int The region height.
stride int The image stride.
mean double The region pixel mean.
return double