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

Method open

ij/src/main/java/ij/gui/NewImage.java:369–381  ·  view source on GitHub ↗
(String title, int width, int height, int nSlices, int type, int options)

Source from the content-addressed store, hash-verified

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;

Callers 1

openImageMethod · 0.95

Calls 4

createImageMethod · 0.95
showMethod · 0.95
showStatusMethod · 0.95
d2sMethod · 0.95

Tested by

no test coverage detected