Mask computations without convolve, plus toric/cylindrical shaped 2d-ssa