Three- and Four-dimensional Filter Operations by Coherent Optics