Particle size distribution using image processing in MATLAB
Mostrar comentarios más antiguos

I want to plot the number of fat cells in the liver versus their size. For which I wanted to use the following steps.
- Apply adaptive thresholding on the gray level image.
- Find distance transform on the thresholded image.
- Invert the distance transform and assign a high value to the background.
- Extract marker using gray scale reconstruction and assign zero value to marker.
- Apply watershed transformation on the marker embedded inverted distance image to obtain the segmented image.
- Use gray scale reconstruction to find radius of each droplet and subsequently calculate area of each labelled droplet.
In step 3 how do I assign a high value to the background and can you help me with step 4?
8 comentarios
Image Analyst
el 3 de Mzo. de 2013
Which color is the fat cells? Why are you doing marker-based watershed? Are you trying to follow Steve's demo: http://blogs.mathworks.com/steve/2006/06/02/cell-segmentation/
amrutha Priya
el 3 de Mzo. de 2013
Image Analyst
el 3 de Mzo. de 2013
I can't see the article because I don't have an account. Can you show your code so far? Are you able to adapt Steve's algorithm? It shouldn't be too hard.
amrutha Priya
el 3 de Mzo. de 2013
Editada: amrutha Priya
el 3 de Mzo. de 2013
amrutha Priya
el 3 de Mzo. de 2013
amrutha Priya
el 3 de Mzo. de 2013
Image Analyst
el 3 de Mzo. de 2013
I don't have time to write or debug it for you. But I did download your image and looked at its color channels and noticed that you'll get a lot better contract just using the green channel than using rgb2gray() because the red and blue channels are practically worthless and you don't want them to ruin your gray scale image.
amrutha Priya
el 4 de Mzo. de 2013
Respuesta aceptada
Más respuestas (2)
khaled soliman
el 10 de Jul. de 2021
0 votos
Dear ImageAnalyst,
I want to determine the particular size of spray droplets which is attached
9 comentarios
Image Analyst
el 11 de Jul. de 2021
Sorry - the droplets are not individually resolvable.
Jordan Rayner
el 11 de Nov. de 2021
Hi Image Analyst
Can the particle size, of the particles in focus, be determined?
Image Analyst
el 11 de Nov. de 2021
@khaled soliman, this is not an answer to @amrutha Priya. Please start your own question. ALso search for "spray" since I've answered spray questions several times.
@Jordan Rayner you should try to get a better picture first.
Image Analyst
el 21 de Mzo. de 2024
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.
Basically get the diameters or areas and take the histogram
props = regionprops(mask, 'Area', 'EquivDiameter');
histArea = histogram([props.Area])
histDiam = histogram([props.EquivDiameter])
Aditya Sai Deepak
el 30 de Abr. de 2024
how can we find the size of the particles for few different images and make a histogram of all the images into one histogram graph stating like we found ---- this many particles around --- this size ??
Image Analyst
el 30 de Abr. de 2024
@Aditya Sai Deepak, see the FAQ for code samples on how to process a sequence of files:
Inside the loop over files, accumulate your data for areas into one variable then pass it to histogram
% Set these to null before your loop begins though to initialize them!!!
allAreas = [];
allDiams = [];
for k = 1 : numberOfFiles
% Insert extra code here, to read in image, create mask, etc.
% Now measure particles.
props = regionprops(mask, 'Area', 'EquivDiameter');
% Display histograms for this one image.
histArea = histogram([props.Area])
histDiam = histogram([props.EquivDiameter])
% Accumulate
allAreas = [allAreas, [props.Area]];
allDiams = [allDiams, [props.EquivDiameter]];
end
Then after the loop display the histograms of the grand totals:
histogram(allAreas);
Aditya Sai Deepak
el 30 de Abr. de 2024
suppose if i have a 500 nm images , how will I get the size of the particales in nm thorugh histogram data .? I am confused in converting this ,
The bin Values in histogram data are the actual sizes of the particle or should we use some formula to convert them into nm ??
Image Analyst
el 1 de Mayo de 2024
Everything is in pixels. You need to know how many nm per pixel and then multiply the diameter in pixels by the number of nm/pixel.
diameterInNm = diameterInPixels * nmPerPixel; % Pixels cancel out and you're left with units of nm.
See attached demo.
Image Analyst
el 2 de Mayo de 2024
@Aditya Sai Deepak please start your own discussion thread so we don't keep bugging @amrutha Priya with emails of activity on this thread. Attach your code and a couple of images, zipped up.
There I can help you if changing this
baseFileName = TifFiles(k).name;
to this
baseFileName = theFiles(k).name;
does not work.
Maria Luisa Muñoz Leon
el 23 de Abr. de 2023
0 votos
Hi
Can you give the name of the dataset please ?
2 comentarios
Image Analyst
el 23 de Abr. de 2023
What do you mean by dataset? The image that the original poster was using was attached to the original post. Just download it.

DGM
el 23 de Abr. de 2023
Or you can look at the link that's next to the attached image in order to find the source.
Histological patterns in drug-induced liver disease
Categorías
Más información sobre Image Segmentation and Analysis en Centro de ayuda y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
