method : center this method is used to deal with general situation . concode_field_sep int[][] sourceImage concode_elem_sep int[][] mask concode_field_sep int edge concode_elem_sep int corner concode_elem_sep void main
int function ( int arg0 , int arg1 ) { int loc0 = 0 ; int loc1 = 0 ; int loc2 = 0 ; for ( int loc3 = 0 ; loc3 < 3 ; loc3 ++ ) { for ( int loc4 = 0 ; loc4 < 3 ; loc4 ++ ) { loc2 += mask [ loc3 ] [ loc4 ] ; loc1 += ( mask [ loc3 ] [ loc4 ] * sourceImage [ arg1 + loc3 - 1 ] [ arg0 + loc4 - 1 ] ) ; } } loc0 = loc1 / loc2 ; return loc0 ; }