make realize_filter work for 2d
unify littlewood_paley for 1d/2d