Click or drag to resize
Accord.NET (logo)

IntegralImageGetRectangleSumUnsafe Method (Int32, Int32, Int32, Int32)

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

Namespace:  Accord.Imaging
Assembly:  Accord.Imaging (in Accord.Imaging.dll) Version: 3.6.0
Syntax
public uint GetRectangleSumUnsafe(
	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: UInt32
Returns sum of pixels in the specified rectangle.
Remarks

Both specified points are included into the calculation rectangle.

See Also