Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

Thread Subject:
Anybody can help me for image processing? for detecting circle..

Subject: Anybody can help me for image processing? for detecting circle..

From: john john

Date: 22 Jan, 2013 09:47:08

Message: 1 of 1

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>>

Tags for this Thread

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Contact us