필터 지우기
필터 지우기

How find NumObjects filed like PixelIdList in program separately?

조회 수: 1 (최근 30일)
Nasreen Ehsan
Nasreen Ehsan 2016년 5월 3일
댓글: Guillaume 2016년 5월 3일
CC = bwconncomp(BW)
CC =
Connectivity: 8
ImageSize: [3 3]
NumObjects: 2
PixelIdxList: {[1] [2x1 double]}
the PixelIdxList field is a cell array with the indexes of coordinates for each region. The length of each array is the size of each region:
>> numPixels = cellfun(@numel,CC.PixelIdxList)
numPixels =
1 2
  댓글 수: 1
Guillaume
Guillaume 2016년 5월 3일
Can you please be a bit clearer about what you're asking. It looks like you posted an excerpt from the doc and that's all.

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

답변 (0개)

Community Treasure Hunt

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

Start Hunting!

Translated by