You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

16 lines
317 B

#include <ordinary_mean_filter.h>
/**
* @description:
* @param {int *} hander array address
* @param {int} len array length
* @return {*}
*/
int OrdinaryMeanFilter(int * hander,int len)
{
int sum = 0;
for(int i = 0;i < len ;i++)
{
sum = sum + *(hander +i);
}
return (int)(sum/len);
}