I'm looking for the way to perform some calculation with each cell in neighborhood 3x3 and assign value to center cell. For example I'd like to sum z1 with z5, z2 with z5 etc. and then assign average from that to center cell.
I know that I should use something like focal statistics tool, but with my own condition. So far I didn't find any tool for that.
Does anyone have a solution for me?