Get (automatically) position of pixels that are white in my binary mask image
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
JoaquinB
am 11 Nov. 2019
Bearbeitet: JoaquinB
am 13 Nov. 2019
Hello, i do have a logical image (since i applied a binary mask) and i would like to have the position (x,y) of all the pixels that are white (background is black), automatically, withouth needing to click it.
I have tried 'bwconncomp' but it gives me the indice pixels (in a cell array) instead of the position and since the image is logical type, it gives an error when i want to transform it into position since its a cell array (i.e ind2sub doesnt works with cell arrays).
0 Kommentare
Akzeptierte Antwort
KALYAN ACHARJYA
am 11 Nov. 2019
Bearbeitet: KALYAN ACHARJYA
am 11 Nov. 2019
"Get (automatically) position of pixels that are white in my binary mask image"
Let suppose im1 is a binary image
[r c]=find(im1==1);
Weitere Antworten (0)
Siehe auch
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!