From: magpie on 24 Feb 2010 23:05 Hi, I was trying to write matlab code to find the lines in chessboard images. Here are the steps that I used: 1. RGB to intensity: >> RGB = imread('chess_board.tif'); >> I= rgb2gray(RGB); 2. edge detection: >> BW = edge(I,'canny'); 3.Hough transform: >> [HT,T,R] = hough(BW); 4. peak detection (for 20 peaks) >> P = houghpeaks(HT, 20, 'Threshold', mean(HT(:)) ); 5.Line drawing: custom function is used Here are the results:http://picasaweb.google.com/Prudent.Programming/Chess_board It seems I need to do some preprocessing/post processing to remove edges outside the chessboard. I am wondering if the image processing gurus here could give some suggestions in this regard. Thanks.
|
Pages: 1 Prev: Image registration project-help Next: Frequency Response Estimation |