FileInfo fi = WindowManager.getImage(imagesIDs[i]).getOriginalFileInfo();
boolean add = false;
if (fi != null
&& fi instanceof LsmFileInfo) {
LsmFileInfo lsm = (LsmFileInfo)fi;
CZ_LSMInfo cz = (CZ_LSMInfo) ((ImageDirectory) lsm.imageDirectories.get(0)).TIF_CZ_LSMINFO;
if (filter.equals("time")) if (cz.DimensionTime>1) add = true;
if (filter.equals("z")) if (cz.DimensionZ>1) add = true;
if (filter.equals("lambda"))
if ((cz.SpectralScan==1 && cz.channelWavelength != null) && cz.channelWavelength.Channels >= 1) add = true;
if (filter.equals("")) add = true;