フィルターのクリア

how to detect white spot in an image????

2 ビュー (過去 30 日間)
yogesh nandurkar
yogesh nandurkar 2016 年 2 月 5 日
コメント済み: Image Analyst 2016 年 2 月 8 日
i am new one with matlab. i want do this programm detecting empty medicine strip...

回答 (1 件)

Image Analyst
Image Analyst 2016 年 2 月 5 日
[labeledImage, numSpots] = bwlabel(binaryImage);
  2 件のコメント
yogesh nandurkar
yogesh nandurkar 2016 年 2 月 8 日
編集済み: Image Analyst 2016 年 2 月 8 日
thanks for your help.... for detecting object i used regionprops(BW). and got the result...
stats = regionprops('table',bw,'Centroid',...
'MajorAxisLength','MinorAxisLength')
centers = stats.Centroid;
diameters = mean([stats.MajorAxisLength stats.MinorAxisLength],2);
radii = diameters/2;
Image Analyst
Image Analyst 2016 年 2 月 8 日
Rather than averaging the major and minor axis lengths, you might want to consider asking for 'EquivDiameter' which is the diameter of a circle with the same number of pixels as your blob.
If I've solved, it then can you please "Accept this Answer"?

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

カテゴリ

Help Center および File ExchangeExplore and Edit Images with Image Viewer App についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by