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 CenterFile Exchange에서 Image Processing Toolbox에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by