Creates a new ImageStack. @param width width in pixels @param height height in pixels @param depth number of images @param bitdepth 8, 16, 32 (float) or 24 (RGB)
(int width, int height, int depth, int bitdepth)
| 659 | * @param bitdepth 8, 16, 32 (float) or 24 (RGB) |
| 660 | */ |
| 661 | public static ImageStack create(int width, int height, int depth, int bitdepth) { |
| 662 | ImageStack stack = IJ.createImage("", width, height, depth, bitdepth).getStack(); |
| 663 | if (bitdepth==16 || bitdepth==32) { |
| 664 | stack.min = Double.MAX_VALUE; |
| 665 | stack.max = 0.0; |
| 666 | } |
| 667 | return stack; |
| 668 | } |
| 669 | |
| 670 | /** Creates an ImageStack from an ImagePlus array. */ |
| 671 | public static ImageStack create(ImagePlus[] images) { |
no test coverage detected