Simple Filter within shapes
grid_filter
ParameterRaster|INPUT|Grid|False
OutputRaster|RESULT|Filtered Grid
ParameterVector|SHAPES|Boundaries|-1|False
ParameterSelection|MODE|Search Mode|[0] Square;[1] Circle| 1
ParameterSelection|METHOD|Filter|[0] Smooth;[1] Sharpen;[2] Edge| 0
ParameterNumber|RADIUS|Radius| 1|None| 1