Filtering is a discipline that crosses physics, electronics, and computation. An interference filter in an optical path passes a band of wavelengths and rejects the rest — separating signal from contamination in the electromagnetic spectrum. An electronic filter in a circuit passes a band of frequencies and rejects the rest — separating signal from contamination in the time domain. An image filter does the same job in the spatial domain — separating the spatial signal you want to keep from the spatial signal you don't.
The shared principle, in every case: signal and contamination rarely occupy the same place in the relevant domain. Real biology — the cells, the structures, the boundaries — lives at one set of spatial frequencies. Sensor read noise lives at another. Bright outliers from hot pixels or contaminating particles live at yet another. Slowly-varying autofluorescence lives at a fourth. The right filter for an image is the one whose pass-band — whether explicit (a Gauss filter passes low spatial frequencies) or implicit (a median filter passes neighborhoods that aren't dominated by outliers) — matches the spatial signal you want to surface.
The contamination isn't always uniform. A steady noise floor across the field is one case; a gradient that varies smoothly across the image is another; a localized region of unusual contamination is a third. Each suggests a different filter, sometimes a chain of filters, sometimes position-aware filtering. Recognizing the character of the contamination — its scale, its uniformity, whether it's random or structured — is the move that determines the right filter, often more than the filter's name.