how to process defocused particle in an image

2 ビュー (過去 30 日間)
khalid Elserfy
khalid Elserfy 2019 年 10 月 10 日
回答済み: darova 2019 年 10 月 11 日
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 件のコメント
darova
darova 2019 年 10 月 11 日
What is the difference between these two? Is one of them defocused?
11Untitled.png
khalid Elserfy
khalid Elserfy 2019 年 10 月 11 日
Yes, the faded one is defocused

サインインしてコメントする。

採用された回答

darova
darova 2019 年 10 月 11 日
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 件)

Community Treasure Hunt

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

Start Hunting!

Translated by