Spatial frequency filtering is a fundamental enabler of information processing methods in biological and technical imaging. Most filtering methods, however, require either bulky and expensive optical equipment or some degree of computational processing. Here, we experimentally demonstrate real-time, on-chip, all-optical spatial frequency filtering using a thin-film perfect absorber structure. We experimentally demonstrate edge enhancement of an amplitude image and conversion of phase gradients to intensity modulation in an image. The device is used to demonstrate enhancement of an image of pond algae.