Extracting circles in an image.

2 ビュー (過去 30 日間)
Portgas Ace
Portgas Ace 2014 年 8 月 30 日
回答済み: Image Analyst 2014 年 8 月 30 日
I've found several codes regarding on how to find circles in an image. We also have edited it in a way that we can extract the circle out of an image but only on a grayscaled image. But we need to extract the circle in an RGB image so is there a way to do that? Or any codes in the internet where we can start?

回答 (1 件)

Image Analyst
Image Analyst 2014 年 8 月 30 日
Convert the image to hsv with rgb2hsv. Then use imfindcircles on the h channel:
hsv = rgb2hsv(rgbImage);
h = hsv(:,:,1);
[centers, radii, metric] = imfindcircles(h);
viscircles(................

カテゴリ

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

Community Treasure Hunt

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

Start Hunting!

Translated by