|
UnsafeToolsSum Method
|
Computes the sum of all pixels
within a given image region.
Namespace:
Accord.Imaging
Assembly:
Accord.Imaging (in Accord.Imaging.dll) Version: 3.8.0
Syntax public static int Sum(
byte* src,
int width,
int height,
int stride
)
Visual Basic does not support APIs that consume or return unsafe types.
Request Example
View SourceParameters
- src
- Type: SystemByte*
The image region. - width
- Type: SystemInt32
The region width. - height
- Type: SystemInt32
The region height. - stride
- Type: SystemInt32
The image stride.
Return Value
Type:
Int32The sum of all pixels within the region.
See Also