Incorrect error message from makeSubstack

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Incorrect error message from makeSubstack

Fred Damen
Greetings,

See example below.  makeSubstack reports that 1 is invalid when it is actually
0.  SubHyperstackMaker.makeSubhyperstack gives the correct error message.

Fred


import ij.*;
import ij.process.*;
import ij.gui.*;
import java.awt.*;
import ij.plugin.*;
import ij.plugin.frame.*;

public class TestmakeSubstack implements PlugIn {

  public void run(String arg) {
    ImagePlus imp = IJ.createHyperStack("title",128,128,2,1,1,32);
    ImagePlus imp2 = (new SubstackMaker()).makeSubstack(imp,"0,1");
    }

}

--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html