An electronic device includes a transparent cover and a light source disposed at an edge of the transparent cover. The light source is configured to inject light into the transparent cover. The transparent cover guides the light until interaction with a fingerprint ridge at the transparent cover. The electronic device further includes a filter disposed along the transparent cover. The filter is configured to selectively allow the light scattered by the fingerprint ridge to pass through the filter. A detector generates a signal indicative of the scattered light allowed through the filter.