Posted by
Thomas Launey on
Mar 25, 2015; 9:24am
URL: http://imagej.273.s1.nabble.com/problem-with-stack-tools-make-Substack-tp5012181.html
Hello,
It seems that "make substack" require the list of image index to be
sorted, when used with the "delete" option.
Running the macro below demonstrate the problem.
newImage("TestStack", "16-bit random", 64, 64, 16);
run("Label...", "format=0 starting=1 interval=1 x=15 y=5 font=18 text=[]
range=1-16");
// substack (only make copy)
run("Make Substack...", " slices=5,10,3");
// this works
newImage("TestStack_with_delete", "16-bit random", 64, 64, 16);
run("Label...", "format=0 starting=1 interval=1 x=15 y=5 font=18 text=[]
range=1-16");
// Substack with delete
run("Make Substack...", "delete slices=5,10,3");
// Does not work. Extract (and delete) slices 5,10,1 !!!!
There are obvious work around but the error is completely silent and I
lost a few hairs before I found it.
Cheers
--
Thomas Launey,
Team Leader, Lab. Synaptic Molecules of Memory Persistence
RIKEN Brain Science Institute
tel:+81 48 467 5484 / Fax:+81 48 467 5485
--
ImageJ mailing list:
http://imagej.nih.gov/ij/list.html