MCPcopy Create free account
hub / github.com/AstroImageJ/astroimagej / updateCounts

Method updateCounts

ij/src/main/java/ij/gui/PointRoi.java:707–711  ·  view source on GitHub ↗

Updates the counts for each category in 'counters'

()

Source from the content-addressed store, hash-verified

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.

Callers 2

PointRoiMethod · 0.95
setCountersMethod · 0.95

Calls 1

fillMethod · 0.45

Tested by

no test coverage detected