To Arrange Count Numbers
이전 댓글 표시
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
KSSV
2018년 8월 1일
What count? What image? What object?
Murat Kocaman
2018년 8월 1일
Guillaume
2018년 8월 1일
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).
답변 (1개)
Guillaume
2018년 8월 1일
0 개 추천
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
Murat Kocaman
2018년 8월 1일
편집: Murat Kocaman
2018년 8월 1일
카테고리
도움말 센터 및 File Exchange에서 AI-Assisted and Automated Labeling에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
