MATLAB Answers

how to process defocused particle in an image

4 views (last 30 days)
khalid Elserfy
khalid Elserfy on 10 Oct 2019
Answered: darova on 11 Oct 2019
hi
i am trying to process image of particle , but the issue is that i get defocused particle, so is there any method to adjust the focus for these defocused particles or remove them
i need to do image binarization after solving that issue to measure particle properties and trace theri velocity through successive frame
i attached image for binarized

  6 Comments

Show 3 older comments
khalid Elserfy
khalid Elserfy on 11 Oct 2019
Yes sure I tried, but I may affect the sizing of the focused object to remove these defocused ones
darova
darova on 11 Oct 2019
What is the difference between these two? Is one of them defocused?
11Untitled.png

Sign in to comment.

Accepted Answer

darova
darova on 11 Oct 2019
I have an idea:
  • Binarize image two times with different threshold
  • Separate each blob with bwlabel
  • Compare areas of intersected blobs. If A1/A2 < value then delete blob
img1.png
I = imread('123.png');
I1 = im2bw(I,graythresh(I)-0.3);
I2 = im2bw(I,graythresh(I)+0.0);
subplot(121)
imshow(I)
II = cat(3,I1*0,I2,I1);
subplot(122)
imshow(II)

  0 Comments

Sign in to comment.

More Answers (0)

Sign in to answer this question.