File: AddParticles.txt

package info (click to toggle)
imagej 1.46a-1
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 4,248 kB
  • sloc: java: 89,778; sh: 311; xml: 51; 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 "";