フィルターのクリア

Detecting particles in image using morphology

1 回表示 (過去 30 日間)
Tinna Armasamy
Tinna Armasamy 2017 年 6 月 22 日
Hi,
I need assistance in detecting all overlapping particles from a soil image using imerode and then calculate the diameter of each particles. Attached is sample image to do the erosion method.This is the code I have tried so far :-
bw = imread('1.Left Upper.tif');
figure;
imshow(bw);
bw = rgb2gray(bw);
figure;
imshow(bw);
se = strel('disk',6,0);
i2 = imopen(bw,se);
figure;
imshow(i2,[]);
i3 =(i2>80);
figure;
imshow(i3);
cc = bwconncomp(i3,8);
n= cc.NumObjects;
But I am still unable to detect smaller particles. Please help. Thank you.

回答 (0 件)

カテゴリ

Help Center および File ExchangeAgriculture についてさらに検索

製品

Community Treasure Hunt

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

Start Hunting!

Translated by