|   | 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.8.0
 Syntax
Syntaxpublic long GetSum(
	int x,
	int y,
	int width,
	int height
)
Public Function GetSum ( 
	x As Integer,
	y As Integer,
	width As Integer,
	height As Integer
) As Long
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: 
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
See Also