Filter löschen
Filter löschen

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

1 Ansicht (letzte 30 Tage)
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 Kommentar
LT
LT am 13 Mär. 2017
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.

Melden Sie sich an, um zu kommentieren.

Antworten (1)

Image Analyst
Image Analyst am 13 Dez. 2015
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?

Kategorien

Mehr zu Loops and Conditional Statements finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by