From: Karina on 12 Feb 2010 19:28 Dear all, in a great need of your help. I need to detect short horizontal lines in the image. I found 2 codes in file exchange for that purpose. I figured it is useless to write to authors, as I checked and they last showed in matlab central like in 2007. My problems with them: 1. http://www.mathworks.com/matlabcentral/fileexchange/9226-detect-lines-in-grayscale-image-using-hough-transform when I try to run this code, just using the examples provided by author, I get the following error: Undefined function or method 'conv2' for input arguments of type 'double' and attributes 'full 3d real'. what is all about? I checked - all the images are 2d 2. http://www.mathworks.com/matlabcentral/fileexchange/4983-line-detection-via-standard-hough-transform in this code, everything is working ok,but the outputs of the function are: [pdetect,tetadetect,Accumulator] = houghline(Imbinary,pstep,tetastep,thresh) i dont understand what are pdetect and tetadetect? in his comments, author explains, pdetect - a vector that contains radius of detected lines in polar coordinates system. tetadetect - a vector that contains angle of detcted lines in polar coordinates system. still not clear. I tried to proceed with this code and tried to find peaks and lines peaks = houghpeaks(Accumulator, 10); lines = houghlines(image, tetadetect, pdetect, peaks); Matlab returns lines as a struct with no fields. Can you please help me, is there code for hough transform that is better that this ones? Will be very grateful to any comment, hint, link, file ...anything!
|
Pages: 1 Prev: integration of complex exponentials Next: Error message with imread and imshow |