()
| 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 |
no test coverage detected