필터 지우기
필터 지우기

How to identify particles in image

조회 수: 18 (최근 30일)
Isaiah Stefan Engle
Isaiah Stefan Engle 2017년 5월 15일
댓글: Indrajit Nandi 2021년 3월 31일
I have been working on this project for quite some time and am now seeking some outside opinions. I must create a script that will identify each of the small particles. I have looked at multiple threshold techniques and not many seem to be working. For example, I tried turning it into a binary image and getting rid of noise using the function bwareaopen, but there is still a lot of noise and the imfindcircles function is being thrown off. Any fresh ideas to identify these beads would be very helpful. Accuracy is a must in this project! The small beads are the ones I'm identifying, they are the ones that have the most consistent size in the image.

답변 (1개)

Image Analyst
Image Analyst 2017년 5월 15일
Have you tried a Bottom Hat Filter, imbothat()?
rgbImage = imread('StackOverflow#1.JPG');
subplot(2,2,1);
grayImage = rgb2gray(rgbImage);
imshow(grayImage, []);
axis on;
subplot(2,2,2);
se = strel('disk', 4, 0);
filteredImage = imbothat(grayImage, se);
imshow(filteredImage, []);
axis on;
% Histogram
subplot(2,2,3);
histogram(filteredImage, 256);
grid on;
xticks(0:16:255);
% Threshold
binaryImage = filteredImage > 40;
subplot(2,2,4);
imshow(binaryImage);
  댓글 수: 8
Isaiah Stefan Engle
Isaiah Stefan Engle 2017년 5월 17일
I also tried this approach earlier. The problem is that there are also dust particles that have around the same area of pixels. For example, the first image displays two separate dimers and 5 single beads. The second image displays a dust particle that has the same area of pixels as the bonded beads. The method you are suggesting is unfortunately unable to distinguish the two.
Indrajit Nandi
Indrajit Nandi 2021년 3월 31일
Were you able to solve the problem?

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Geometric Transformation and Image Registration에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by