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

Method createHyperStack

ij/src/main/java/ij/IJ.java:2476–2483  ·  view source on GitHub ↗

Creates a new hyperstack. @param title image name @param width image width in pixels @param height image height in pixels @param channels number of channels @param slices number of slices @param frames number of frames @param bitdepth 8, 16, 32 (float) or 24 (RGB)

(String title, int width, int height, int channels, int slices, int frames, int bitdepth)

Source from the content-addressed store, hash-verified

2474 * @param bitdepth 8, 16, 32 (float) or 24 (RGB)
2475 */
2476 public static ImagePlus createHyperStack(String title, int width, int height, int channels, int slices, int frames, int bitdepth) {
2477 ImagePlus imp = createImage(title, width, height, channels*slices*frames, bitdepth);
2478 imp.setDimensions(channels, slices, frames);
2479 if (channels>1 && bitdepth!=24)
2480 imp = new CompositeImage(imp, IJ.COMPOSITE);
2481 imp.setOpenAsHyperStack(true);
2482 return imp;
2483 }
2484
2485 /** Opens a new image. <code>Type</code> should contain "8-bit", "16-bit", "32-bit" or "RGB".
2486 In addition, it can contain "white", "black" or "ramp". <code>Width</code>

Callers 3

makeSubhyperstackMethod · 0.95
runMethod · 0.45
compositeToRGBMethod · 0.45

Calls 3

createImageMethod · 0.95
setDimensionsMethod · 0.95
setOpenAsHyperStackMethod · 0.95

Tested by

no test coverage detected