To Arrange Count Numbers
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Hello,
At the count result on image processing, the result is given in random object numbers. Is there a way to set which count number is which object? I have a reference object and I am trying to have calibration referenced to that object but because it changes in each count I couldn't do that.
3 Kommentare
Guillaume
am 1 Aug. 2018
I think what Murat is refering to by count number is the label value assigned by bwlabel or bwconncomp to the binarised image (which is not random at all by the way).
Antworten (1)
Guillaume
am 1 Aug. 2018
The label value assigned to a blob by bwlabel or similar function is not random. Objects are labeled in order from left to right according to their leftmost pixel. For objects whose leftmost pixel fall on the same column, then the order is top to bottom.
It would be trivial to relabel your objects using a different rule as long as you can give a clear definition of that rule (perhaps you want to base the label on the location of the centroid?).
1 Kommentar
Siehe auch
Kategorien
Mehr zu Image Segmentation and Analysis 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!