Package ij.plugin.filter

Examples of ij.plugin.filter.Analyzer.saveResults()


      ImageProcessor ip = stack.getProcessor(i);
      if (minThreshold!=ImageProcessor.NO_THRESHOLD)
        ip.setThreshold(minThreshold,maxThreshold,ImageProcessor.NO_LUT_UPDATE);
      ip.setRoi(roi);
      ImageStatistics stats = ImageStatistics.getStatistics(ip, measurements, cal);
      analyzer.saveResults(stats, roi);
      if (showResults)     
        analyzer.displayResults();
      values[i-1] = (float)stats.mean;
    }
    if (showingLabels) imp.setSlice(current);
View Full Code Here


    if (roi==null && imp!=null) roi = imp.getRoi();
    ResultsTable rt2 = new ResultsTable();
    Analyzer analyzer = new Analyzer(imp, measurements, rt2);
    ImageProcessor ip = new ByteProcessor(1, 1);
    ImageStatistics stats = new ByteStatistics(ip, measurements, null);
    analyzer.saveResults(stats, roi);
    //IJ.log(rt2.getColumnHeadings());
    int last = rt2.getLastColumn();
    //IJ.log("update1: "+last+"  "+getMaxColumns());
    while (last+1>=getMaxColumns()) {
      addColumns();
View Full Code Here

      ImageProcessor ip = stack.getProcessor(i);
      if (minThreshold!=ImageProcessor.NO_THRESHOLD)
        ip.setThreshold(minThreshold,maxThreshold,ImageProcessor.NO_LUT_UPDATE);
      ip.setRoi(roi);
      ImageStatistics stats = ImageStatistics.getStatistics(ip, measurements, cal);
      analyzer.saveResults(stats, roi);
      if (showResults)     
        analyzer.displayResults();
      values[i-1] = (float)stats.mean;
    }
    if (showingLabels) imp.setSlice(current);
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.