Extracting spatial spectra using coarse-graining based on implicit filters