필터 지우기
필터 지우기

How can i Access values of PixelIdxList which returned by bwconncomp function ?

조회 수: 1 (최근 30일)
Zeinab Abd ElMonam
Zeinab Abd ElMonam 2015년 12월 13일
댓글: LT 2017년 3월 13일
L = bwconncomp(BW);
STATS = regionprops(L, 'all');
pixels=l.PixelIdxList; % it return array of vectors , each one has num of pixels*1
% i want to access that vector
% how can i access it
  댓글 수: 1
LT
LT 2017년 3월 13일
You can look at the right side of the window where it displays the loaded matrices and click on CC it will open a new window with the matrix. You can go through each column that way if you prefer.

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

답변 (1개)

Image Analyst
Image Analyst 2015년 12월 13일
If you want it for each blob in turn, then you need to access it in a loop
for k = 1 : length(STATS)
theseLinearIndexes = STATS(k).PixelIdxList;
% Now do something with them.....
end
Why do you want it?

카테고리

Help CenterFile Exchange에서 Loops and Conditional Statements에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by