I have a raster layer has values +1, -1, and zero. Now I want to select those pixels whose value is zero and assign them new values based on the majority of its neighbor 5*5 cells. Is there anyway that I can do this? Thanks.
I've tried focal statistics but it is not exactly I want.