|
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
)
Public Function GetSum2 (
x As Integer,
y As Integer,
width As Integer,
height As Integer
) As Long
Request Example
View SourceParameters
- 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:
Int64The 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