From: "john john" <>
Newsgroups: comp.soft-sys.matlab
Subject: Anybody can help me for image processing? for detecting circle..
Date: Tue, 22 Jan 2013 09:47:08 +0000 (UTC)
Organization: The MathWorks, Inc.
Lines: 15
Message-ID: <kdln6s$ace$>
Reply-To: "john john" <>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Trace: 1358848028 10638 (22 Jan 2013 09:47:08 GMT)
NNTP-Posting-Date: Tue, 22 Jan 2013 09:47:08 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 2707697
Xref: comp.soft-sys.matlab:787059

Hi Everyone I need help with my image processing can someone here will to help my image processing complete? I am doing egg counter.. my problem how can I trade those white dots? then display how many white dots are there in the images? This is my code for the image processing..

  S = imread('29.jpg');
  B= imcrop(S,[70 55 576 432]);
  S2 = rgb2gray(B);
  S3 = S2>180;
  H = fspecial('unsharp');
  I4 = imfilter(S3,H,'replicate');
  se = strel('disk',11);
  erodedBW = imerode(S3,se);

This is the image being process the original and filtered one..