Login  Register

Re: programmatically opening a stack from a list of filenames

Posted by Albert Cardona on Apr 02, 2007; 9:25pm
URL: http://imagej.273.s1.nabble.com/programmatically-opening-a-stack-from-a-list-of-filenames-tp3699826p3699829.html

Ben

In the FolderOpener run method:

    list = sortFileList(list);

note how above the String[] list pointer is overwritten. Which means that in
overriding the sortFileList method you are free to resize it. Opening different
images from different folders would not be allowed. Opening different chunks of
different sequences existing within the same will, which is what you need as
far as I understand.

About the constructors:

>
> ImageStack(java.lang.String[] files)
>
> ImagePlus(java.lang.String[] files)


Well, don't stop yourself :) Just extend class ImagePlus and give it the
constructor you need, which is basically the pseudocode from your first email
with some width/height safety checks.

Albert



--------------------------------------------------------------------
This message was sent using Webmail@INI: https://webmail.ini.ethz.ch