}
if (stack!=null) {
imp = new ImagePlus("Imported Stack", stack);
if (imp.getBitDepth()==16 || imp.getBitDepth()==32)
imp.getProcessor().setMinAndMax(min, max);
Calibration cal = imp.getCalibration();
if (fi.fileType==FileInfo.GRAY16_SIGNED)
cal.setSigned16BitCalibration();
imp.show();
}
}