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

Stitching 4+ channels together #39

Open
pawlowac opened this issue Oct 23, 2018 · 8 comments
Open

Stitching 4+ channels together #39

pawlowac opened this issue Oct 23, 2018 · 8 comments

Comments

@pawlowac
Copy link

Hi,

What is the simplest way to stitch an image together with 4+ channels? I plan to stitch up to 30 images each with 4+ channels, and I'm hoping to streamline it as much as possible.

I appreciate your assistance and advice!

Thanks,
Andrew

@iannellog
Copy link
Collaborator

iannellog commented Oct 24, 2018 via email

@pawlowac
Copy link
Author

pawlowac commented Oct 24, 2018

HI Dr. Iannello,

Thank you for your assistance.

  • are channels of each tile stored in the same files or each channel is
    stored in a different file (in the formar case which format are you using
    since your images may have more than 3 channels)?

Ideally we'd like to have all channels in the same file, but we are flexible. We are exporting tif files from Nikon elements and we have the option of all channels in the same tif, RGB, or one tif per channel. I'm thinking I need to generate the xml_merging.xml file for one channel, then using that xml_merging.xml file to stitch the other channels. (e.g., complete stitching for channel 3, then use the channel 3 xml_merging.xml file to merge channel 1, 2, and 4).

  • in case channels are stored in different files, the tile matrices
    corresponding to different channels have the same structure?

Yes, the x-y-z coordinates are the same for each channel.

  • in case channels are stored in different files, the folders corresponding
    to different channels are subfolders of a common folder or there is a
    different root directory for each channel?

I haven't attempted this and I am wondering what your advice would be. I have only stitched one channel so far. Ideally it would be (I think) a 3-level hierarchical folder (i.e., '/channel_1/FFFFFF/FFFFFF_SSSSSS/FFFFFF_SSSSSS_ZZZZZZ.tif') but I am open to your advice.

  • how do you perform the import of a single channel image: do you configure
    your tiles according to the two-level hierarchy of folders and use the
    import step of TeraStitcher to generate the xml_import.xml file or,
    alternatively, you generate the xml_import.xml file with an independent
    tool without performing the import step of TeraStitcher?

Currently I generate the xml_import.xml file using the --import command with the two-level hierarchy folders (i.e., /FFFFFF/FFFFFF_SSSSSS/FFFFFF_SSSSSS_ZZZZZZ.tif')

Best,
Andrew

@iannellog
Copy link
Collaborator

iannellog commented Oct 24, 2018 via email

@pawlowac
Copy link
Author

I'm using the command line version.

Andrew

@iannellog
Copy link
Collaborator

iannellog commented Oct 25, 2018 via email

@pawlowac
Copy link
Author

Fantastic, thank you!

My email is andrew_pawlowski at hms dot harvard dot edu

Andrew

@JeffreyStirman
Copy link

Would I also be able to get this demo? I too need to stitch 3-4 channels of images and curr use the folder structure mentioned above:
/channel_1/FFFFFF/FFFFFF_SSSSSS/ZZZZZZ.tif

@iannellog
Copy link
Collaborator

Sorry for the delay of the answer, but I am in vacations until the end of Augurst.

Attached you will find:

  • a complete demo about how to stitch multi-channel datasets with TeraStitcher/TeraConverter, including a README that guide you step-by-step (the images are synthetic)

Make reference to the TeraTools Guide accessible from the GitHub site; it is not always easy to read, but may perhaps help you in better understanding the procedure described in the README file; look at section 1.8 and Appendix C for details about multi-channel stitching.

Let me know if you get to save the attachment.

I hope this may help.

-- Giulio

multi-channel-stitching-demo.zip

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

No branches or pull requests

3 participants