|
IntegralImageGetRectangleMeanUnsafe Method (Int32, Int32, Int32)
|
Calculate mean value of pixels in the specified rectangle without checking it's coordinates.
Namespace:
Accord.Imaging
Assembly:
Accord.Imaging (in Accord.Imaging.dll) Version: 3.8.0
Syntax public float GetRectangleMeanUnsafe(
int x,
int y,
int radius
)
Public Function GetRectangleMeanUnsafe (
x As Integer,
y As Integer,
radius As Integer
) As Single
Request Example
View SourceParameters
- x
- Type: SystemInt32
X coordinate of central point of the rectangle. - y
- Type: SystemInt32
Y coordinate of central point of the rectangle. - radius
- Type: SystemInt32
Radius of the rectangle.
Return Value
Type:
SingleReturns mean value of pixels in the specified rectangle.
Remarks The method calculates mean value of pixels in square rectangle with
odd width and height. In the case if it is required to calculate mean value of
3x3 rectangle, then it is required to specify its center and radius equal to 1.
See Also