From: adaa 4girls on
hi,
i am a software student .i am doing project regarding cytogenetics using matlab.i need a code for seperating the overlapped object.please help me out.....
From: ImageAnalyst on
On Jul 25, 4:38 am, "adaa 4girls" <adaa4gi...(a)gmail.com> wrote:
> hi,
> i am a software student .i am doing project regarding cytogenetics using matlab.i need a code for seperating the overlapped object.please help me out.....

---------------------------------------------------------------------
Look into watershed segmentation. MATLAB's Image Processing Toolbox
has a demo on splitting objects using marker controlled watershed
segmentation.

Here's another reference page:
http://cmm.ensmp.fr/~beucher/wtshed.html
From: adaa 4girls on
ImageAnalyst <imageanalyst(a)mailinator.com> wrote in message <1e6c0156-dc83-4889-9e86-4b6e9e972adb(a)f33g2000yqe.googlegroups.com>...
> On Jul 25, 4:38 am, "adaa 4girls" <adaa4gi...(a)gmail.com> wrote:
> > hi,
> > i am a software student .i am doing project regarding cytogenetics using matlab.i need a code for seperating the overlapped object.please help me out.....
>
> ---------------------------------------------------------------------
> Look into watershed segmentation. MATLAB's Image Processing Toolbox
> has a demo on splitting objects using marker controlled watershed
> segmentation.
>
> Here's another reference page:
> http://cmm.ensmp.fr/~beucher/wtshed.html
---------------------------------------------------------------------------
thanks for the reply..
i hav written the code to find the no. of objects in the input image.. but it doesnt give correct count.. can u rectify the error...

code:
img1=imread('female (2).jpg')
figure,imshow(img1)
title('original image')
img1=rgb2gray(img1);
figure,imshow(img1)
title('gray')
noise=wiener2(img1,[5,5]);
figure,imshow(noise)
title('without noise')
img2=im2bw(noise,graythresh(noise));
figure,imshow(img2)
title('threshold images')
img2=~img2;
imshow(img2)
title('complemented images')
Ifill = imfill(img2,'holes');
figure, imshow(Ifill)
title('filled')
B = bwboundaries(Ifill);
imshow(Ifill)
se = strel('disk',2);
closeBW = imclose(Ifill,se);
figure, imshow(closeBW)
title('counted images')
text(10,10,strcat('\color{green}Objects Found:',num2str(length(B))))
hold on
for k = 1:length(B) boundary = B{k};
plot(boundary(:,2), boundary(:,1), 'g', 'LineWidth', 0.2),end