Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix series assignment for multiseries files #46

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

yoda-vid
Copy link

I've been working with lightsheet multiseries .czi files and tried to stitch with the "Positions from file" mode, but the resulting tiles all came from the same series. The fix for me was to set the series on value when building the ImporterOptions.

I also made a small simplification to use the series index directly when creating the ImageCollectionElement objects, though the change doesn't appear to be necessary.

I tested the changes in headless mode with a multiseries file generated by Zeiss Zen 2014 after dual illumination fusion, both with order "Defined by TileConfiguration" (including 3D and 2D subsets, with TileConfiguration.txt built separately beforehand) and "Defined by image metadata" (though my multiseries file does not appear to give tile offsets in the metadata). It'd be helpful to test with other multiseries files from other systems.

@StephanPreibisch
Copy link
Member

Hi, thanks a lot! I think it does need some testing. I am a bit worried that it might break loading other types of data. Did you try it on anything else than your images yet?

Cheers, Stephan

@yoda-vid
Copy link
Author

I don't have any other multiseries files at the moment to test but will keep my eye out for any. The main area I was focusing on was to set the series when fusing a multiseries file. I could see the series being set when building the layout, but fusion opened the same series for each tile until I set it explicitly in the ImagePlus open method. Do most multiseries files increment their series automatically though?

Thanks,
David

@yoda-vid
Copy link
Author

I had a chance to test another multiseries image generated with Zeiss Zen 2012 from 2-photon tiled imaging, and it also repeatedly opened the first series only unless I set the series explicitly. The fix for me was really just the options.setSeriesOn(getIndex(), true); line.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants