File: AddParticles.txt

package info (click to toggle)
imagej 1.54g-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 6,520 kB
  • sloc: java: 132,209; sh: 286; xml: 255; makefile: 6
file content (12 lines) | stat: -rw-r--r-- 419 bytes parent folder | download | duplicates (13)
1
2
3
4
5
6
7
8
9
10
11
12
// Adds particle analyzer ROIs to the ROI Manager
  if (nResults==0)
      return "Results table is empty";
  if (isNaN(getResult('XStart', 0)))
      return "Run the particle analyzer with \"Clear Results\" \nand \"Record Starts\" checked, then try again.";
  for (i=0; i<nResults; i++) {
      x = getResult('XStart', i);
      y = getResult('YStart', i);
      doWand(x,y);
      roiManager("add");
  }
  return "";