if (options!=null && IJ.isJava14()) {
String options2 = options.replaceAll(" depth=", " slices=");
options2 = options2.replaceAll(" interval=", " frame=");
Macro.setOptions(options2);
}
Calibration cal = imp.getCalibration();
Calibration calOrig = cal.copy();
oldUnitIndex = getUnitIndex(cal.getUnit());
oldUnitsPerCm = getUnitsPerCm(oldUnitIndex);
int stackSize = imp.getImageStackSize();
int channels = imp.getNChannels();
int slices = imp.getNSlices();