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

Method createOutputStack

ij/src/main/java/ij/plugin/Slicer.java:458–472  ·  view source on GitHub ↗
(ImagePlus imp, ImageProcessor ip)

Source from the content-addressed store, hash-verified

456 }
457
458 ImageStack createOutputStack(ImagePlus imp, ImageProcessor ip) {
459 int bitDepth = imp.getBitDepth();
460 int w2=ip.getWidth(), h2=ip.getHeight(), d2=outputSlices;
461 int flags = NewImage.FILL_BLACK + NewImage.CHECK_AVAILABLE_MEMORY;
462 ImagePlus imp2 = NewImage.createImage("temp", w2, h2, d2, bitDepth, flags);
463 if (imp2!=null && imp2.getStackSize()==d2)
464 IJ.showStatus("Reslice... (press 'Esc' to abort)");
465 if (imp2==null)
466 return null;
467 else {
468 ImageStack stack2 = imp2.getStack();
469 stack2.setColorModel(ip.getColorModel());
470 return stack2;
471 }
472 }
473
474 ImageProcessor getSlice(ImagePlus imp, double x1, double y1, double x2, double y2, String status) {
475 Roi roi = imp.getRoi();

Callers 1

resliceRectOrLineMethod · 0.95

Calls 9

createImageMethod · 0.95
getStackSizeMethod · 0.95
showStatusMethod · 0.95
getStackMethod · 0.95
setColorModelMethod · 0.95
getBitDepthMethod · 0.45
getWidthMethod · 0.45
getHeightMethod · 0.45
getColorModelMethod · 0.45

Tested by

no test coverage detected