From: Sprinceana on 4 May 2010 16:48 Hi! I'm facing a similar problem in matlab with Hough transform . I want to apply the function Hough to my image so that it display me the Hough matrix. Do you know how to achieve? Here's what I've tried: Edges.m contains: %image1 img1 = imread("photo1.jpg" ); % conversion to grayscale img1_grey = rgb2gray(img1); % now we apply extracting edges [g1,t1] = edge(img1_grey,'sobel','horizontal'); imshow(g1); % display image using edge horizontal sobel operator for detecting edges [g2,t2] = edge(img1_grey,'canny','horizontal'); figure, imshow(g2); [g3,t3] = edge(img1_grey,'roberts','horizontal'); figure, imshow(g3); [g4,t4] = edge(img1_grey,'sobel','vertical'); figure, imshow(g4); % display image using edge horizontal sobel operator for detecting edges [g5,t5] = edge(img1_grey,'canny','vertical'); figure, imshow(g5); [g6,t6] = edge(img1_grey,'roberts','vertical'); figure, imshow(g6); %Here is my problem when I apply hough function % apply hough transform H1 = hough(img1); figure, imshow(H1); Do you know how can I achieve this?
|
Pages: 1 Prev: error ismember with cell arrays Next: InitialMagnification is linear? |