이 질문을 팔로우합니다.
- 팔로우하는 게시물 피드에서 업데이트를 확인할 수 있습니다.
- 정보 수신 기본 설정에 따라 이메일을 받을 수 있습니다.
오류 발생
페이지가 변경되었기 때문에 동작을 완료할 수 없습니다. 업데이트된 상태를 보려면 페이지를 다시 불러오십시오.
이전 댓글 표시
0 개 추천
hello! I have to detect only the horizontal lines in the image using the hough transform.... but when i use houghline function n then plot the detected lines it plot both horizontal and vertical lines.... how can i remove the vertical lines??????????
채택된 답변
Image Analyst
2011년 11월 27일
0 개 추천
If you have the endpoints for all the lines, it should be rather straightforward - just delete those where the delta y of the endpoints is less than the delta x or some other delta that you want to use to define vertical.
댓글 수: 8
qjwgeuwe
2011년 11월 27일
this is what i have
lines = houghlines(edge_img,theta,rho,pp,'FillGap',100,'MinLength',100);
figure, imshow(I), hold on
max_len = 0;
totlen = 0;
for k = 1:length(lines)
xy = [lines(k).point1; lines(k).point2];
plot(xy(:,1),xy(:,2),'LineWidth',1,'Color','green');
end
fimg= my edge image using sobel edge function
pp= hough peaks (for rho and theta lines)
theta=-90 to 90
rho= +/-sqrt diagonal of image
please correct it as per my objective.... thanks!
Image Analyst
2011년 11월 27일
But it doesn't look like you even made any sort of attempt to try my suggestion. Why not?
Fill in the code where you read in an image so I can run it. Hopefully you used a standard demo image that ships with MATLAB. Or else upload your image somewhere.
qjwgeuwe
2011년 11월 27일
please find the code and the image link in ur MSG box
qjwgeuwe
2011년 11월 28일
have you received???????
qjwgeuwe
2011년 11월 28일
please advise the solution.... i tried but getting no result...
Image Analyst
2011년 11월 28일
No. I don't have a message box. Where did you send it? Why don't you just edit your above question right here and add the code?
Walter Roberson
2011년 11월 28일
http://www.mathworks.com/matlabcentral/answers/7924-where-can-i-upload-images-and-files-for-use-on-matlab-answers
qjwgeuwe
2011년 11월 28일
well the problem has been solved thanks for your suggestions.... :)
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Object Analysis에 대해 자세히 알아보기
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!웹사이트 선택
번역된 콘텐츠를 보고 지역별 이벤트와 혜택을 살펴보려면 웹사이트를 선택하십시오. 현재 계신 지역에 따라 다음 웹사이트를 권장합니다:
또한 다음 목록에서 웹사이트를 선택하실 수도 있습니다.
사이트 성능 최적화 방법
최고의 사이트 성능을 위해 중국 사이트(중국어 또는 영어)를 선택하십시오. 현재 계신 지역에서는 다른 국가의 MathWorks 사이트 방문이 최적화되지 않았습니다.
미주
- América Latina (Español)
- Canada (English)
- United States (English)
유럽
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)
