I have This image which is basically made of sloped lines (almost horizontal and parallel)
I tried exactly the code in matlab documentation to detect those lines (except the rotation part) but I got a very strange result (vertical lines detected and no single horizontal line!):
I really can't find explanation of this output. I tried the same code on a different image and it was ok. I tried to change all the possible parameters in
houghpeaks but I always get vertical lines even though my image has no vertical lines or anything similar to be vertical!
I need to detect the parallel lines in the image or somehow get their slope. If you think there's something wrong in my image or additional modification I should do to the example code. or if you have any better idea that would be great!