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

Method getNCounters

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

Returns the number of counters.

()

Source from the content-addressed store, hash-verified

465
466 /** Returns the number of counters. */
467 public int getNCounters() {
468 int n = 0;
469 for (int counter=0; counter<nCounters; counter++) {
470 if (getCount(counter)>0) n++;
471 }
472 return n;
473 }
474
475 /** Returns the counter assocated with the specified point. */
476 public int getCounter(int index) {

Callers 4

measurePointMethod · 0.95
promptBeforeDeletingMethod · 0.95
okToDeleteRoiMethod · 0.80
decodeAndSetRoiMethod · 0.80

Calls 1

getCountMethod · 0.95

Tested by

no test coverage detected