Updates the counts for each category in 'counters'
()
| 705 | |
| 706 | /** Updates the counts for each category in 'counters' */ |
| 707 | public void updateCounts() { |
| 708 | Arrays.fill(counts, 0); |
| 709 | for (int i=0; i<nPoints; i++) |
| 710 | counts[(counters==null || counters[i]>=counts.length) ? 0 : counters[i]] ++; |
| 711 | } |
| 712 | |
| 713 | /** Sets the stack position (image number) of all points in this Roi. |
| 714 | * The points are only displayed when the stack is at the specified position. |
no test coverage detected