Two dimensional array median filtering
问题 I'm trying to write code that implements median filtering on a two-dimensional array. Here's an image to illustrate: The program starts at the beginning of the array. The maximum array size is 100. I know that I can use an array like: int a[100][100]; to store the input, and that I can iterate over a part of this array using two for loops like this: for(i=0;i<size_filter;i++) for(j=0;j<size_filter;j++) temp[i][j]=a[i][j] // not so sure But how can I make this code loop over the neighbors of