Counting silk worm eggs or fish eggs

Hi,
I am working on counting the no of eggs laid by silkworm or fish eggs.
I am doing that with image segmantaion technique with all the filters and noise removal but i am not getting best accurate output. I have to make sure that syatem takes inly eggs in to consideration but not the background letters and distrbances.
Can anyone please help in this ? Do you have any good techniques to solve this issue?
The sample pic is attached

4 Comments

In fact I love these segmentation questions, although in RHS side has some challenges to get accurate results due to blurring/overlap.
yes. kalyan sir.
I expected answer from you sir. I have read your blogs which were very informative.
I am facing this issue too. Kinldy help me if possible
Can any one please share me source code for this counting fish eggs to my gmail mangalanagendramma@gmail.com?
@Mangala Nageshwari, please start your own question and upload your own photo. Place your eggs on a contrasting background, like black velvet, or a vividly colored paper. We'll put it in Answers so everyone can benefit from it.

Sign in to comment.

Answers (1)

You can try several approaches to see how much accuracy can be stated only after the results.
One Way:
hsv_im=rgb2hsv(im_data);
threshold=.... % around 0.58 to 6
worm_im=hsv_im(:,:,3)>threshold;
Nest steps Morpho operation,
  • Remove the largest opject (Outer Boundary)
  • Remove all tiny pixels
  • Apply Morpho imerode function (To disconnect the connected worm)
  • Be care ful on previous steps, it might be remove smaller worm pixel data
  • Counts the total object in the image
Note:The accuracy can be stated only after the results.
:)

4 Comments

Thank you sir.
There are 541 eggs on manual counting
Have you tried the above approach?
I know almost nothing of matlab, but recently on my lab we've been counting fish eggs. Can u help me with a code for that? I'll need some detail since I dont know much of the language. thanks in advance in case ur able to help
@Vívian Helena Sure, we could try to help. Start your own new question after doing the links below.
To learn fundamental concepts, invest 2 hours of your time here:
It's a generic, general purpose demo of how to threshold an image to find blobs, and then measure things about the blobs, and extract certain blobs based on their areas or diameters.

Sign in to comment.

Categories

Find more on Modify Image Colors in Help Center and File Exchange

Products

Release

R2020a

Asked:

on 15 Dec 2020

Commented:

on 12 May 2023

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!