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

Method createImage

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

Source from the content-addressed store, hash-verified

381 }
382
383 public static ImagePlus createImage(String title, int width, int height, int nSlices, int bitDepth, int options) {
384 ImagePlus imp = null;
385 switch (bitDepth) {
386 case 8: imp = createByteImage(title, width, height, nSlices, options); break;
387 case 16: imp = createShortImage(title, width, height, nSlices, options); break;
388 case 32: imp = createFloatImage(title, width, height, nSlices, options); break;
389 case 24:
390 if ((options&SIGNED_INT)!=0)
391 imp = createIntImage(title, width, height, nSlices, options);
392 else
393 imp = createRGBImage(title, width, height, nSlices, options);
394 break;
395 default: throw new IllegalArgumentException("Invalid bitDepth: "+bitDepth);
396 }
397 return imp;
398 }
399
400 boolean showDialog() {
401 if (staticType<GRAY8|| staticType>RGB)

Callers 15

createImageMethod · 0.95
createOutputStackMethod · 0.95
zScaleMethod · 0.95
openMethod · 0.95
revertToSavedMethod · 0.45
openJpegOrGifUsingURLMethod · 0.45
openJpegOrGifMethod · 0.45
paintMethod · 0.45
ImageRoiMethod · 0.45
setZeroTransparentMethod · 0.45
setProcessorMethod · 0.45
paintDoubleBufferedMethod · 0.45

Calls 5

createByteImageMethod · 0.95
createShortImageMethod · 0.95
createFloatImageMethod · 0.95
createIntImageMethod · 0.95
createRGBImageMethod · 0.95

Tested by

no test coverage detected