Similar to detecting circles, you can use the Hough method to find lines in an image (aka “discreet 2d signal”).

Each edge pixel votes for all lines that can pass through it. True lines are those that have enough votes. How much is enough? That depends on your image/case. This app lets you tune this and other parameters and see the results live.

Use the app below or click here for the full screen version.