Added 'Avg' function
This commit is contained in:
parent
19f0ae0cba
commit
0918c9eef3
1 changed files with 4 additions and 0 deletions
|
|
@ -523,6 +523,10 @@ func Not(src, dst *IplImage) {
|
|||
/****************************************************************************************\
|
||||
* Array Statistics *
|
||||
\****************************************************************************************/
|
||||
// CvScalar cvAvg(const CvArr* arr, const CvArr* mask=NULL )
|
||||
func (src *IplImage) Avg(mask *IplImage) Scalar {
|
||||
return (Scalar)(C.cvAvg(unsafe.Pointer(src), unsafe.Pointer(mask)))
|
||||
}
|
||||
|
||||
/****************************************************************************************\
|
||||
* Discrete Linear Transforms and Related Functions *
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue