powered by
Build a rectangular kernel of size X x Y
KernelRectangular(lenx, leny)
The matrix (square/rectangular) with the selected pixels
The size in pixels along x
The size in pixels along y
#A rectangular moving window 5x5 pixels w=KernelRectangular(5,5) w
Run the code above in your browser using DataLab