I have an problem as seen below the one on top is the original image the one on the bottom is titlted to the left 90 degrees. Is there a way to calculate the change in angle. I have tried Hough’s Transform, I can detect the location, however I cannot detect the angel that is changed. Is there an alternative to detect the degreeschanged.


I’ve done this before using a Symmetric Phase-Only Matched Filter. It was actually for fingerprint recognition, allowing rotation and scaling. Unfortunately, it’s pretty complicated. You need to be comfortable with how to compute an FFT and with similar-level math. I did not do it in C#, but in MATLAB (and in synthesizable Verilog, but that’s another story altogether). I would recommend using MATLAB or a similar math package first to be sure you have the algorithm right.
Hopefully, though, someone has already implemented this algorithm in a .NET image processing library somewhere.
The paper I used was the following. It is more math-based than algorithmic, so it will take some work to convert it to code: