Skip to content

Commit

Permalink
Vaa3d Reader: do not require ImageJ 1.47a
Browse files Browse the repository at this point in the history
Like the previous commit, we do not want to require a newer ImageJ
version unless really necessary.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
  • Loading branch information
dscho committed Jan 17, 2013
1 parent b13bd01 commit 7e7c288
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
import ij.IJ;
import ij.CompositeImage;
import ij.ImagePlus;
import ij.gui.NewImage;
import ij.io.OpenDialog;
import ij.macro.Interpreter;
import ij.measure.Calibration;
Expand Down Expand Up @@ -129,10 +130,10 @@ private boolean parse(URL url) {
// actually parse image file
if (!Interpreter.isBatchMode())
IJ.showStatus("Allocating volume memory...");
ImagePlus hyperStack = IJ.createImage(
ImagePlus hyperStack = NewImage.createImage(
new File(url.getPath()).getName(),
width, height, n_channels * n_slices,
8 * bytesPerPixel);
8 * bytesPerPixel, NewImage.FILL_BLACK);
if (n_channels > 1) {
hyperStack.setDimensions(n_channels, n_slices, 1);
hyperStack = new CompositeImage(hyperStack, CompositeImage.COMPOSITE);
Expand Down

0 comments on commit 7e7c288

Please sign in to comment.