Re: Extracting one particular slice from 3D tiff stack
Posted by
Wayne Rasband on
Jan 11, 2010; 11:08pm
URL: http://imagej.273.s1.nabble.com/Extracting-one-particular-slice-from-3D-tiff-stack-tp3689749p3689753.html
On Jan 10, 2010, at 2:50 PM, Andrew Yancy <
[hidden email]> wrote:
> So a virtual stack is just a stack that's too big to read from disk
> into RAM? That might be close to what I want, if it's the case that
> the only slices that are actually read from disk are the first one
> and the one I specify. It's kind of annoying because this sort of
> thing is one of the most basic image manipulation commands in Matlab:
>
> single_layer_tiff = imread(stack_filename, slice_number)
>
> I was hoping there was a similar thing in ImageJ, preferably a
> simple library function. Thanks for your help and for any more
> insight you can give, I appreciate it!
The ImageJ 1.43o daily build has a new open(path,n) macro function
that opens the nth image in a tiff stack. In a plugin, use
ImagePlus imp = IJ.open(path,n);
-wayne
>