use of cbit.vcell.VirtualMicroscopy.Image.ImageStatistics in project vcell by virtualcell.
the class ImageDataset method getImageStatistics.
public ImageStatistics getImageStatistics() {
ImageStatistics allImageStatistics = new ImageStatistics();
for (int i = 0; i < getAllImages().length; i++) {
ImageStatistics imageStatistics = getAllImages()[i].getImageStatistics();
if (i == 0) {
allImageStatistics.maxValue = imageStatistics.maxValue;
allImageStatistics.minValue = imageStatistics.minValue;
allImageStatistics.meanValue = imageStatistics.meanValue / getAllImages().length;
} else {
allImageStatistics.maxValue = Math.max(allImageStatistics.maxValue, imageStatistics.maxValue);
allImageStatistics.minValue = Math.min(allImageStatistics.minValue, imageStatistics.minValue);
allImageStatistics.meanValue += imageStatistics.meanValue / getAllImages().length;
}
}
return allImageStatistics;
}
use of cbit.vcell.VirtualMicroscopy.Image.ImageStatistics in project vcell by virtualcell.
the class ImageTimeSeries method getImageStatistics.
public ImageStatistics getImageStatistics() {
ImageStatistics allImageStatistics = new ImageStatistics();
for (int i = 0; i < getAllImages().length; i++) {
ImageStatistics imageStatistics = getAllImages()[i].getImageStatistics();
if (i == 0) {
allImageStatistics.maxValue = imageStatistics.maxValue;
allImageStatistics.minValue = imageStatistics.minValue;
allImageStatistics.meanValue = imageStatistics.meanValue / getAllImages().length;
} else {
allImageStatistics.maxValue = Math.max(allImageStatistics.maxValue, imageStatistics.maxValue);
allImageStatistics.minValue = Math.min(allImageStatistics.minValue, imageStatistics.minValue);
allImageStatistics.meanValue += imageStatistics.meanValue / getAllImages().length;
}
}
return allImageStatistics;
}
Aggregations