Click or drag to resize
Accord.NET (logo)

UnsafeToolsVariance Method

Computes the pixel variance within a given image region.

Namespace:  Accord.Imaging
Assembly:  Accord.Imaging (in Accord.Imaging.dll) Version: 3.7.0
Syntax
public static double Variance(
	byte* src,
	int width,
	int height,
	int stride,
	double mean
)
Request Example View Source

Parameters

src
Type: SystemByte*
The image region.
width
Type: SystemInt32
The region width.
height
Type: SystemInt32
The region height.
stride
Type: SystemInt32
The image stride.
mean
Type: SystemDouble
The region pixel mean.

Return Value

Type: Double
The variance value within the region.
See Also