How can i Access values of PixelIdxList which returned by bwconncomp function ?
8 ビュー (過去 30 日間)
古いコメントを表示
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
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
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?
0 件のコメント
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!