現在この質問をフォロー中です
- フォローしているコンテンツ フィードに更新が表示されます。
- コミュニケーション基本設定に応じて電子メールを受け取ることができます。
エラーが発生しました
ページに変更が加えられたため、アクションを完了できません。ページを再度読み込み、更新された状態を確認してください。
古いコメントを表示
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 日
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!Web サイトの選択
Web サイトを選択すると、翻訳されたコンテンツにアクセスし、地域のイベントやサービスを確認できます。現在の位置情報に基づき、次のサイトの選択を推奨します:
また、以下のリストから Web サイトを選択することもできます。
最適なサイトパフォーマンスの取得方法
中国のサイト (中国語または英語) を選択することで、最適なサイトパフォーマンスが得られます。その他の国の 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)
