Login  Register

Re: Macro to open more than one stack-series with two channels in the same folder

Posted by Rainer M. Engel on Dec 18, 2012; 10:35am
URL: http://imagej.273.s1.nabble.com/Macro-to-open-more-than-one-stack-series-with-two-channels-in-the-same-folder-tp5001189p5001196.html

> image--L0000--S00--U00--V00--J08--E02--O00--X01--Y02--T0000--Z00--C00--001.ome.tif
> image--L0000--S00--U00--V00--J08--E02--O00--X01--Y02--T0000--Z00--C00--002.ome.tif
> image--L0000--S00--U00--V00--J08--E02--O00--X01--Y02--T0000--Z00--C00.ome.tif
> image--L0000--S00--U00--V00--J08--E02--O00--X01--Y02--T0000--Z00--C01--001.ome.tif
> image--L0000--S00--U00--V00--J08--E02--O00--X01--Y02--T0000--Z00--C01--002.ome.tif
> image--L0000--S00--U00--V00--J08--E02--O00--X01--Y02--T0000--Z00--C01.ome.tif
> image--L0000--S00--U00--V00--J08--E02--O00--X01--Y02--T0000--Z01--C00--001.ome.tif
> image--L0000--S00--U00--V00--J08--E02--O00--X01--Y02--T0000--Z01--C00--002.ome.tif
> image--L0000--S00--U00--V00--J08--E02--O00--X01--Y02--T0000--Z01--C00.ome.tif
> image--L0000--S00--U00--V00--J08--E02--O00--X01--Y02--T0000--Z01--C01--001.ome.tif
> image--L0000--S00--U00--V00--J08--E02--O00--X01--Y02--T0000--Z01--C01--002.ome.tif
> image--L0000--S00--U00--V00--J08--E02--O00--X01--Y02--T0000--Z01--C01.ome.tif
> image--L0000--S00--U00--V00--J08--E02--O00--X01--Y02--T0000--Zn--C00--001.ome.tif
> image--L0000--S00--U00--V00--J08--E02--O00--X01--Y02--T0000--Zn--C00--002.ome.tif
> image--L0000--S00--U00--V00--J08--E02--O00--X01--Y02--T0000--Zn--C00.ome.tif
> image--L0000--S00--U00--V00--J08--E02--O00--X01--Y02--T0000--Zn--C01--001.ome.tif
> image--L0000--S00--U00--V00--J08--E02--O00--X01--Y02--T0000--Zn--C01--002.ome.tif
> image--L0000--S00--U00--V00--J08--E02--O00--X01--Y02--T0000--Zn--C01.ome.tif
>

Hey Sergi,

maybe I would try to solve this problem incremental. First get clean
sequences and then process them as desired.

Sure, one could process them via..
> filelist = getFileList(folder);

but speaking in terms of a naming convention your example above shows
potentially 12 different sequences. So if this file naming is mandatory,
you could store it in a text-file or array while execution, make a
sorting/renaming of the files as desired, process them as wanted
imported/converted to/as separate stacks .. i.e.

Sometimes I'm some kind of fascinated why rather simple things can
become complex mostly unintended as it seems. Could you provide more
information about your naming scheme?

Is it mandatory?
Which Images should be interpreted/imported as one stack?
Do the tiffs already contain slices?

Maybe you could ask Volker Hilsenstein to help you..

All the best and beyond,
Rainer



--
Rainer M. Engel, Dipl. Digital Artist
scientific|Media GbR
Pichelsdorferstr. 143
D-13595 Berlin

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