(ImagePlus imp, ImageProcessor ip)
| 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(); |
no test coverage detected