What does logical AND operator do with label matrices?
8 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Nora Griffith
am 8 Jun. 2021
Kommentiert: Nora Griffith
am 8 Jun. 2021
In this code, blobs are small blobs within a greater tissue (tissuemask). It's my understanding that the output of watershed, wsh, is a label matrix that labels over 400 different blobs.
wsh = watershed(~(blobs)); % separate any connected blobs
c = imdilate(blobs) & wsh & tissuemask;
c is another mask that contains all three here - my question is, how is wsh treated as a logical binary mask when it contains values from 1 to over 400? How does the AND operator treat a label matrix? Does it just include any nonzero value?
0 Kommentare
Akzeptierte Antwort
Gatech AE
am 8 Jun. 2021
The AND operator treats any nonzero value in "wsh" as true, so specific information about the labels is thrown out when creating "c"
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Delaunay Triangulation 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!