Changeset 2920
 Timestamp:
 06/28/07 15:14:00 (13 years ago)
 File:

 1 edited
Legend:
 Unmodified
 Added
 Removed

trunk/loci/apps/slim/SlimPlotter.java
r2692 r2920 1372 1372 log("Calculating full width half maxes"); 1373 1373 fwhmLines = new float[channels][3][2]; 1374 int grandTotal = 0; 1374 1375 for (int c=0, cc=0; c<channels; c++) { 1375 1376 if (!cVisible[c]) continue; 1376 1377 // sum across all pixels 1377 1378 int[] sums = new int[timeBins]; 1379 int sumTotal = 0; 1378 1380 for (int t=0; t<timeBins; t++) { 1379 1381 if (roiCount == 1) sums[t] = values[c][roiY][roiX][t]; … … 1385 1387 } 1386 1388 } 1389 sumTotal += sums[t]; 1387 1390 } 1388 1391 int maxSum = 0; 1389 1392 for (int t=0; t<timeBins; t++) if (sums[t] > maxSum) maxSum = sums[t]; 1393 grandTotal += sumTotal; 1390 1394 // find full width half max 1391 1395 float half = maxSum / 2f; … … 1411 1415 float h1 = 1000 * fwhm1, h2 = 1000 * fwhm2; 1412 1416 log("\tChannel " + s + ": fwhm = " + (h2  h1) + " ps"); 1417 log("\t counts = " + sumTotal); 1413 1418 log("\t peak = " + sums[maxPeak]); 1414 1419 log("\t center = " + ((h1 + h2) / 2) + " ps"); … … 1417 1422 cc++; 1418 1423 } 1424 log("\tTotal counts = " + grandTotal); 1419 1425 } 1420 1426
Note: See TracChangeset
for help on using the changeset viewer.