Path: news.mathworks.com!not-for-mail
From: "john john" <myjonas13@gmail.com>
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$1@newscl01ah.mathworks.com>
Reply-To: "john john" <myjonas13@gmail.com>
NNTP-Posting-Host: www-02-blr.mathworks.com
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Trace: newscl01ah.mathworks.com 1358848028 10638 172.30.248.47 (22 Jan 2013 09:47:08 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Tue, 22 Jan 2013 09:47:08 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 2707697
Xref: news.mathworks.com 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);
  imshow(erodedBW)

This is the image being process the original and filtered one..
<<http://i648.photobucket.com/albums/uu201/myjonas13/29_zps61ba495f.jpg>>
<<http://i648.photobucket.com/albums/uu201/myjonas13/filter_zpsfaa347d5.jpg>>