()
| 5272 | } |
| 5273 | |
| 5274 | private void getDimensions() { |
| 5275 | Variable width = getFirstVariable(); |
| 5276 | Variable height = getNextVariable(); |
| 5277 | Variable channels = getNextVariable(); |
| 5278 | Variable slices = getNextVariable(); |
| 5279 | Variable frames = getLastVariable(); |
| 5280 | ImagePlus imp = getImage(); |
| 5281 | int[] dim = imp.getDimensions(); |
| 5282 | width.setValue(dim[0]); |
| 5283 | height.setValue(dim[1]); |
| 5284 | channels.setValue(dim[2]); |
| 5285 | slices.setValue(dim[3]); |
| 5286 | frames.setValue(dim[4]); |
| 5287 | } |
| 5288 | |
| 5289 | public static void registerExtensions(MacroExtension extensions) { |
| 5290 | if (IJ.debugMode) IJ.log("registerExtensions"); |
no test coverage detected