(String title, int width, int height, int nSlices, int type, int options)
| 367 | } |
| 368 | |
| 369 | public static void open(String title, int width, int height, int nSlices, int type, int options) { |
| 370 | int bitDepth = 8; |
| 371 | if (type==GRAY16) bitDepth = 16; |
| 372 | else if (type==GRAY32) bitDepth = 32; |
| 373 | else if (type==RGB) bitDepth = 24; |
| 374 | long startTime = System.currentTimeMillis(); |
| 375 | ImagePlus imp = createImage(title, width, height, nSlices, bitDepth, options); |
| 376 | if (imp!=null) { |
| 377 | WindowManager.checkForDuplicateName = true; |
| 378 | imp.show(); |
| 379 | IJ.showStatus(IJ.d2s(((System.currentTimeMillis()-startTime)/1000.0),2)+" seconds"); |
| 380 | } |
| 381 | } |
| 382 | |
| 383 | public static ImagePlus createImage(String title, int width, int height, int nSlices, int bitDepth, int options) { |
| 384 | ImagePlus imp = null; |
no test coverage detected