Message Boards Message Boards

0
|
4709 Views
|
2 Replies
|
4 Total Likes
View groups...
Share
Share this post:

How to count for particles in a microscopic photo?

Posted 9 years ago

Hi

I'm wondering how mathematica image processing functions could analyze the microscope photo below and tell me about the particles in the photo: numbers, locations, sizes, brightness, etc.

Thanks a lot for help

Xiaxing

enter image description here

POSTED BY: Xiaxing Xiong
2 Replies

What have you tried? The documentation is full of examples you could reuse. Especially take a look at ComponentMeasurements.

i = Import["https://wolfr.am/69kpZh7D"];
bi = Binarize[i]

enter image description here

cm = ComponentMeasurements[bi, hd = {"Centroid", "Count", "EquivalentDiskRadius"}];
TableForm[cm[[All, 2]], TableHeadings -> {cm[[All, 1]], hd}]

enter image description here

Show[i, Graphics[{Red, Thick, Circle[#[[1]], #[[2]]] & /@ cm[[All, 2, {1, 3}]]}]]

enter image description here

POSTED BY: Vitaliy Kaurov
Posted 9 years ago

Hi Vitaliy

Thank you so much for your help. That's great, and I could start from here.

Best

Xiaxing

POSTED BY: Xiaxing Xiong
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract