Click or drag to resize
Accord.NET (logo)

IntegralImage2GetSum2 Method

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

Namespace:  Accord.Imaging
Assembly:  Accord.Imaging (in Accord.Imaging.dll) Version: 3.8.0
Syntax
public long GetSum2(
	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