For each pixel of my raster, I would like to calculate the mean difference with the neighbour pixels on a given radius.
The tool "focal statistic" looks like exactly what I need, however, there is no way to calculate the mean difference with it, only the sum, the mean.
Does anyone have an idea about how to solve this by using an approach equivalent to the focal statistic but that allows me to calculate the mean difference? It could be in several steps, like first calculating the sum or the differences from which I could, then calculate the mean... or whatever that works to reach my goal.