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);
return values;
}