how to detect circle using hough transform for color image?

2 ビュー (過去 30 日間)
Muhammad Hammad Malik
Muhammad Hammad Malik 2018 年 3 月 7 日
コメント済み: Anton Riyanto 2018 年 5 月 8 日
currently i am working to circle the color image using hough transform,but i am unable to do that.kindly guide me. i have extracted color image and now want to circle that by using hough transform or any other good method. thanks

採用された回答

Paul Shoemaker
Paul Shoemaker 2018 年 3 月 7 日
Have you searched the Matlab File Exchange? This one was featured on the "Pick of the Week" blog and may address your need.
Paul Shoemaker
  2 件のコメント
Muhammad Hammad Malik
Muhammad Hammad Malik 2018 年 3 月 8 日
i tried this one but i want to circle color image. i applied this matlab code but i am having error in h = circle_hough(e, radii, 'same', 'normalise'); kindly solve the reason.thanks
im = imread('coins.png'); e = edge(im, 'canny'); imshow(e); radii = 15:1:40; h = circle_hough(e, radii, 'same', 'normalise'); %error peaks = circle_houghpeaks(h, radii, 'nhoodxy', 15, 'nhoodr', 21, 'npeaks', 10); imshow(im); hold on; for peak = peaks [x, y] = circlepoints(peak(3)); plot(x+peak(1), y+peak(2), 'g-'); end hold off
Anton Riyanto
Anton Riyanto 2018 年 5 月 8 日
you should convert image into grayscale im = rgb2gray(imread('coins.png'));

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeImage Processing and Computer Vision についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by