If possible, can you point me to existing methods in the computer vision domain to achieve the following? Given a greyscale image, I want to apply a filtering algorithm such that only those components remain visible, which have an edge-like characteristic and a specific angle. For horizontal and vertical edges, I know that I can apply a median filtering approach but what about other angles (like 60°) Any hints are much appreciated.
Update #1: The idea is to filter out components of an audio spectrogram. Three categories I'm looking into are horizontal edges (harmonic overtones), vertical edges (percussive transients), but also diagonal structures like for the siren:
picture was taken from this publication
Update #2: As correctly pointed out by Chris Luengo, I was actually looking for lines (instead of edges), sorry of the mix-up. Still, I'm not just looking to detect them but to filter out all non-line content in a given 2D image