MCPcopy Create free account
hub / github.com/AstroImageJ/astroimagej / run

Method run

ij/src/main/java/ij/plugin/filter/Calibrator.java:69–83  ·  view source on GitHub ↗
(ImageProcessor ip)

Source from the content-addressed store, hash-verified

67 }
68
69 public void run(ImageProcessor ip) {
70 global1 = imp.getGlobalCalibration()!=null;
71 if (!showDialog(imp))
72 return;
73 if (choiceIndex==customIndex) {
74 showPlot(null, null, imp.getCalibration(), null);
75 return;
76 } else if (imp.getType()==ImagePlus.GRAY32) {
77 if (choiceIndex==0)
78 imp.getCalibration().setValueUnit(unit);
79 else
80 IJ.error("Calibrate", "Function must be \"None\" for 32-bit images,\nbut you can change the Unit.");
81 } else
82 calibrate(imp);
83 }
84
85 public boolean showDialog(ImagePlus imp) {
86 String defaultChoice;

Callers

nothing calls this directly

Calls 8

showDialogMethod · 0.95
showPlotMethod · 0.95
errorMethod · 0.95
calibrateMethod · 0.95
getGlobalCalibrationMethod · 0.80
getCalibrationMethod · 0.80
setValueUnitMethod · 0.80
getTypeMethod · 0.65

Tested by

no test coverage detected