Click or drag to resize
Accord.NET (logo)

GrayLevelCooccurrenceMatrixCompute Method (UnmanagedImage, Rectangle)

Computes the Gray-level Co-occurrence Matrix for the given matrix.

Namespace:  Accord.Imaging
Assembly:  Accord.Imaging (in Accord.Imaging.dll) Version: 3.8.0
Syntax
public double[,] Compute(
	UnmanagedImage source,
	Rectangle region
)
Request Example View Source

Parameters

source
Type: Accord.ImagingUnmanagedImage
The source image.
region
Type: System.DrawingRectangle
A region of the source image where the GLCM should be computed for.

Return Value

Type: Double
A square matrix of double-precision values containing the GLCM for the region of the given source.
See Also