Returns an empty image stack that has the same width, height and color table as this image.
()
| 1862 | /** Returns an empty image stack that has the same |
| 1863 | width, height and color table as this image. */ |
| 1864 | public ImageStack createEmptyStack() { |
| 1865 | ColorModel cm; |
| 1866 | if (ip!=null) |
| 1867 | cm = ip.getColorModel(); |
| 1868 | else |
| 1869 | cm = createLut().getColorModel(); |
| 1870 | return new ImageStack(width, height, cm); |
| 1871 | } |
| 1872 | |
| 1873 | /** Returns the image stack. The stack may have only |
| 1874 | one slice. After adding or removing slices, call |
no test coverage detected