필터 지우기
필터 지우기

Problem with finding Hough Transform

조회 수: 1 (최근 30일)
IPlover
IPlover 2014년 5월 22일
댓글: Yazan 2021년 7월 7일
I wrote the following code for finding hough transform but it shows the following error
Error in hough (line 8) [H,T,R] = hough(BW,'RhoResolution',0.5,'Theta',-90:0.5:89.5);
RGB = imread('C:\Users\Admin\Documents\MATLAB\sample.jpg');
I = rgb2gray(RGB);
BW = edge(I,'canny');
[H,T,R] = hough(BW,'RhoResolution',0.5,'Theta',-90:0.5:89.5);
subplot(2,1,1);
imshow(RGB);
title('Sample Image');
subplot(2,1,2);
imshow(imadjust(mat2gray(H)),'XData',T,'YData',R,...
'InitialMagnification','fit');
title('Hough Transform of Sample Image');
xlabel('\theta'), ylabel('\rho');
axis on, axis normal, hold on;
colormap(hot);
end
Please tell me where am i doing wrong
  댓글 수: 2
Kamalesh Manoharan
Kamalesh Manoharan 2021년 7월 7일
I have this same issue, it worked at the start then it did not seem to respond at all. it is really frustrating
Yazan
Yazan 2021년 7월 7일
Upload your image.

댓글을 달려면 로그인하십시오.

답변 (0개)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by