Click or drag to resize
Accord.NET (logo)

IntegralImage2GetSum Method

Gets the sum of the pixels in a rectangle of the Integral image.

Namespace:  Accord.Imaging
Assembly:  Accord.Imaging (in Accord.Imaging.dll) Version: 3.7.0
Syntax
public long GetSum(
	int x,
	int y,
	int width,
	int height
)
Request Example View Source

Parameters

x
Type: SystemInt32
The horizontal position of the rectangle x.
y
Type: SystemInt32
The vertical position of the rectangle y.
width
Type: SystemInt32
The rectangle's width w.
height
Type: SystemInt32
The rectangle's height h.

Return Value

Type: Int64
The sum of all pixels contained in the rectangle, computed as I[y, x] + I[y + h, x + w] - I[y + h, x] - I[y, x + w].
See Also