I'm trying to detect the circle object in an image.
But it's only for the circle nearby with the corner of the image..
The program don't have to detect the circle in the center.
Here is the example image with the explanation..
But first of all.. I have to detect the rectangle n the image.
After that i can know the boundary of the image (the rectangle).
In that image, there is 2 rectangle, i is complete rectangle and the other is a half rectangle. Do u know how to recognice those 2 different rectangle.
Here is what i have done..
clear clc close all img = 'G14_2.jpg'; I = imread(img); I = imresize(I, 0.5); Ibw = rgb2gray(I); imshow(Ibw);
threshold = graythresh(Ibw); a_bw = im2bw(Ibw,threshold);
citra_bw= imclearborder(a_bw,4); citra_adjust= imadjust(uint8(citra_bw)); %imshow(citra),figure,imshow(citra_bw); citra_filt=medfilt2(citra_adjust,[3 3]); se=strel('disk',6); citra_intens_opening1 = imerode(citra_filt,se); figure,imshow(citra_intens_opening1); se=strel('disk',6); citra_intens_opening = imopen(citra_intens_opening1,se); figure,imshow(citra_intens_opening); se=strel('disk',6); citra_intens_opening2 = imerode(citra_intens_opening,se); figure,imshow(citra_intens_opening2);
How to do it in Matlab??
What the first step i have to do??
Please help me.. Thanx