필터 지우기
필터 지우기

i want to display the bobs which are greater than area 15

조회 수: 1 (최근 30일)
Datti Nagadhara Harini
Datti Nagadhara Harini 2014년 4월 26일
댓글: Datti Nagadhara Harini 2014년 4월 26일
code: label = bwlabel(bw,4); stats = regionprops(label,'Centroid','Area'); >> for n = 1:length(stats) disp(sprintf('Blob number = %d, Area = %g, Centroid = (%g, %g)',... n,stats(n).Area,stats(n).Centroid)) end Blob number = 1, Area = 22, Centroid = (11.3182, 5.81818) Blob number = 2, Area = 80, Centroid = (31.825, 114.138) Blob number = 3, Area = 4, Centroid = (50, 144) Blob number = 4, Area = 3, Centroid = (58.6667, 54) Blob number = 5, Area = 166, Centroid = (108.042, 46.8675) Blob number = 6, Area = 186, Centroid = (73.2473, 94.0484) Blob number = 7, Area = 2, Centroid = (61, 114.5) Blob number = 8, Area = 2, Centroid = (63, 114.5) Blob number = 9, Area = 12, Centroid = (75.1667, 154.5) Blob number = 10, Area = 14, Centroid = (79.9286, 142.286) Blob number = 11, Area = 1, Centroid = (79, 139)
  댓글 수: 1
Datti Nagadhara Harini
Datti Nagadhara Harini 2014년 4월 26일
I found it
x =15; >> biggestGrain = find([stats.Area]>=x); I got the result as biggestGrain = 1 2 5 6
That is true only these four regions i nneed. but how to calculate further with these blobs how should i display the 1 2 5 6 blobs

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Performance and Memory에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by