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)
| 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> |
no test coverage detected