Particle size distribution using image processing in MATLAB
이전 댓글 표시

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
Image Analyst
2013년 3월 3일
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
2013년 3월 3일
Image Analyst
2013년 3월 3일
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
2013년 3월 3일
편집: amrutha Priya
2013년 3월 3일
amrutha Priya
2013년 3월 3일
amrutha Priya
2013년 3월 3일
Image Analyst
2013년 3월 3일
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
2013년 3월 4일
채택된 답변
추가 답변 (2개)
khaled soliman
2021년 7월 10일
0 개 추천
Dear ImageAnalyst,
I want to determine the particular size of spray droplets which is attached
댓글 수: 9
Image Analyst
2021년 7월 11일
Sorry - the droplets are not individually resolvable.
Jordan Rayner
2021년 11월 11일
Hi Image Analyst
Can the particle size, of the particles in focus, be determined?
Image Analyst
2021년 11월 11일
@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
2024년 3월 21일
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
2024년 4월 30일
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
2024년 4월 30일
@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
2024년 4월 30일
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
2024년 5월 1일
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
2024년 5월 2일
@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
2023년 4월 23일
0 개 추천
Hi
Can you give the name of the dataset please ?
댓글 수: 2
Image Analyst
2023년 4월 23일
What do you mean by dataset? The image that the original poster was using was attached to the original post. Just download it.

DGM
2023년 4월 23일
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
카테고리
도움말 센터 및 File Exchange에서 Image Segmentation and Analysis에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
