|
IntegralImageGetRectangleMean Method (Int32, Int32, Int32, Int32)
|
Calculate mean value of pixels in the specified rectangle.
Namespace:
Accord.Imaging
Assembly:
Accord.Imaging (in Accord.Imaging.dll) Version: 3.8.0
Syntax public float GetRectangleMean(
int x1,
int y1,
int x2,
int y2
)
Public Function GetRectangleMean (
x1 As Integer,
y1 As Integer,
x2 As Integer,
y2 As Integer
) As Single
Request Example
View SourceParameters
- x1
- Type: SystemInt32
X coordinate of left-top rectangle's corner. - y1
- Type: SystemInt32
Y coordinate of left-top rectangle's corner. - x2
- Type: SystemInt32
X coordinate of right-bottom rectangle's corner. - y2
- Type: SystemInt32
Y coordinate of right-bottom rectangle's corner.
Return Value
Type:
SingleReturns mean value of pixels in the specified rectangle.
Remarks Both specified points are included into the calculation rectangle.
See Also