Click or drag to resize
Accord.NET (logo)

IntegralImage2GetSumT Method

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

Namespace:  Accord.Imaging
Assembly:  Accord.Imaging (in Accord.Imaging.dll) Version: 3.8.0
Syntax
public long GetSumT(
	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 T[y + w, x + w + 1] + T[y + h, x - h + 1] - T[y, x + 1] - T[y + w + h, x + w - h + 1].
See Also