필터 지우기
필터 지우기

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 CenterFile Exchange에서 Explore 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