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

Method dicom

ij/src/main/java/ij/plugin/Options.java:217–235  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

215
216 // DICOM options
217 void dicom() {
218 GenericDialog gd = new GenericDialog("DICOM Options");
219 gd.addCheckbox("Open as 32-bit float", Prefs.openDicomsAsFloat);
220 gd.addCheckbox("Ignore rescale slope", Prefs.ignoreRescaleSlope);
221 gd.addCheckbox("Fixed Z slope and intercept", Prefs.fixedDicomScaling);
222 gd.addMessage("Orthogonal views");
223 gd.setInsets(5, 40, 0);
224 gd.addCheckbox("Rotate YZ", Prefs.rotateYZ);
225 gd.setInsets(0, 40, 0);
226 gd.addCheckbox("Flip XZ", Prefs.flipXZ);
227 gd.showDialog();
228 if (gd.wasCanceled())
229 return;
230 Prefs.openDicomsAsFloat = gd.getNextBoolean();
231 Prefs.ignoreRescaleSlope = gd.getNextBoolean();
232 Prefs.fixedDicomScaling = gd.getNextBoolean();
233 Prefs.rotateYZ = gd.getNextBoolean();
234 Prefs.flipXZ = gd.getNextBoolean();
235 }
236
237 /** Close all images, empty ROI Manager, clear the
238 Results table, clears the Log window and sets

Callers 1

runMethod · 0.95

Calls 6

addCheckboxMethod · 0.95
addMessageMethod · 0.95
setInsetsMethod · 0.95
showDialogMethod · 0.95
wasCanceledMethod · 0.95
getNextBooleanMethod · 0.95

Tested by

no test coverage detected