Click or drag to resize
Accord.NET (logo)

IntegralImageGetRectangleMeanUnsafe Method (Int32, Int32, Int32, Int32)

Calculate mean value of pixels in the specified rectangle without checking it's coordinates.

Namespace:  Accord.Imaging
Assembly:  Accord.Imaging (in Accord.Imaging.dll) Version: 3.8.0
Syntax
public float GetRectangleMeanUnsafe(
	int x1,
	int y1,
	int x2,
	int y2
)
Request Example View Source

Parameters

x1
Type: SystemInt32
X coordinate of left-top rectangle's corner.
y1
Type: SystemInt32
Y coordinate of left-top rectangle's corner.
x2
Type: SystemInt32
X coordinate of right-bottom rectangle's corner.
y2
Type: SystemInt32
Y coordinate of right-bottom rectangle's corner.

Return Value

Type: Single
Returns mean value of pixels in the specified rectangle.
Remarks
Both specified points are included into the calculation rectangle.
See Also