Added param to spatial filter 2d