Hi, I am coding a c program to perform edge detection on 8 bit bmp files using sobel's masks.The output of the program though is pretty ordinary & i am not sure if it is detecting edges at all. The program works as follows- 1.I first read the bmp file & store the colour palette in a 256 x 3 array. 2.I then multiply 3 x 3 sections of the matrix with each of the 8 sobels masks in order & storing the result back in the array. 3.I display the image using the changed colour palette values. The edges of the output image is distinct in certain regions,but it is no where close to some of the edge detected images i got on the image.I would like to know if the procedure i have adopted is wrong. Could you also suggest some other algos for edge detection? Thanks. Raam ________________________________________________________________________ Missed your favourite TV serial last night? Try the new, Yahoo! TV. visit http://in.tv.yahoo.com |
|
Edge Detection using sobel's mask for 8 bit bmp
Started by ●May 25, 2003
Reply by ●June 14, 20032003-06-14
Hi, Regarding other algorithms, I think you should try Canny's edge detection algorithm: Canny, A. (1986). A computational approach to edge detection. IEEE Trans. PAMI, 8:769 - 698. Regards, Pavan "=?iso-8859-1?q?raam baranidharan?=" wrote: Hi, I am coding a c program to perform edge detection on 8 bit bmp files using sobel's masks.The output of the program though is pretty ordinary & i am not sure if it is detecting edges at all. The program works as follows- 1.I first read the bmp file & store the colour palette in a 256 x 3 array. 2.I then multiply 3 x 3 sections of the matrix with each of the 8 sobels masks in order & storing the result back in the array. 3.I display the image using the changed colour palette values. The edges of the output image is distinct in certain regions,but it is no where close to some of the edge detected images i got on the image.I would like to know if the procedure i have adopted is wrong. Could you also suggest some other algos for edge detection? Thanks. Raam ________________________________________________________________________ Missed your favourite TV serial last night? Try the new, Yahoo! TV. visit http://in.tv.yahoo.com Yahoo! Groups Sponsor _____________________________________ Note: If you do a simple "reply" with your email client, only the author of this message will receive your answer. You need to do a "reply all" if you want your answer to be distributed to the entire group. _____________________________________ About this discussion group: To Join: To Post: To Leave: Archives: http://www.yahoogroups.com/group/imagedsp More Groups: http://www.dsprelated.com Get Your Private, Free E-mail from Indiatimes at http://email.indiatimes.com Buy The Best In BOOKS at http://www.bestsellers.indiatimes.com Bid for for Air Tickets @ Re.1 on Air Sahara Flights. Just log on to http://airsahara.indiatimes.com and Bid Now! Get Your Private, Free E-mail from Indiatimes at http://email.indiatimes.com Buy The Best In BOOKS at http://www.bestsellers.indiatimes.com Bid for for Air Tickets @ Re.1 on Air Sahara Flights. Just log on to http://airsahara.indiatimes.com and Bid Now! |