[OpenSPIM] Image Stitching Best Practices
Feinstein, Timothy N
tnf8 at pitt.edu
Mon Jun 29 22:58:50 CDT 2015
Hi folks,
As promised, here is a quick cheat sheet to terastitcher, at least the version that we used about a year ago.
https://www.dropbox.com/sh/z3kx6etqsn4bn56/AAAzv5boNf0zSh6i0kgp5I_ca?dl=0
The larger file shows a set of 9x9 image stacks, 1000x1000 pixels at 10 um per pixel and a z step of 50 microns (not a real experiment). The other file is a screen shot of the folder hierarchy that we would make from it. The first hierarchical level of folders is named for the Y-coordinate top left pixel position (in calibrated units, e.g. nm) of columns 1, 2 and 3 (i.e., 000000, 008000 and 016000 microns). You have to use six digits for each number.
The next hierarchy of folders is named for the parent folder _underscore_ the X-coordinate of the top left pixel in each column extending to the right from the column for which the parent folder is named. These units take into account overlap, so if each volume overlaps with neighboring volumes by 100 microns then the origin of each subsequent volume will be spaced 800 pixels apart rather than 1000. You can estimate the overlap based on machine settings, but we found that column spacing was not always regular, and got better results by estimating X and Y overlap in ImageJ for each set of neighboring stacks.
Now for the hard part. The last hierarchy is the image files. These are named after the parent folder _underscore_ the Z position of each slice in calibrated units. The Z position is absolute - this means you have estimate how every stack relates to the first or highest stack, whose top slice is at Z position 0. The first slice of every other stack will start at a different positive integer. We measured the Z misalignment by scrolling through neighboring stacks in ImageJ to see where they lined up. You have to relate the starting position of each stack to its neighbor and so on until all of them exist in the same coordinate space as the highest stack. Then you can name your files. Like I said you basically can't do this without a bulk file naming utility.
Having done the hard part yourself, Terastitcher then performs non-rigid alignment to give you one single stitched file. The alignment itself is remarkably fast, even on computers with non-ludicrous processors and RAM.
I might have exaggerated a bit when I say we worked it out in a week. I think it was more like two weeks. Naturally we started with an experiment where the sample must have touched the objective a little so overlap in X, Y and Z was all over the place. When stack acquisitions go more smoothly you can sometimes get away with assuming one overlap value across the board.
Hope this helps!
All the best,
Tim
Timothy Feinstein, Ph.D.
Research Scientist
University of Pittsburgh Department of Developmental Biology
-----Original Message-----
From: m.pawlowska at nencki.gov.pl [mailto:m.pawlowska at nencki.gov.pl]
Sent: Monday, June 29, 2015 9:37 AM
To: Feinstein, Timothy N
Cc: openspim at openspim.org
Subject: Re: [OpenSPIM] Image Stitching Best Practices
Hi Timothy,
I heard about TeraStitcher and I tried to use it on my SPIM data, but I got stuck. TeraStitcher expects a certain format of data, OpenSPIM data is quite different, so either the data has to be converted or TeraStitcher settings changed, but I failed at it. Could you describe in more detail how you do it? You mention a "cheat sheet" in the other message.
Regards,
Monika
W dniu 2015-06-29 15:18, Feinstein, Timothy N napisaĆ(a):
> Hi Gabriel,
>
> Among the open source options I have had great results with the
> TeraStitcher plugin for Vaa3d. See my message about it in another
> forum here:
>
> http://lists.umn.edu/cgi-bin/wa?A2=ind1411&L=CONFOCALMICROSCOPY&P=R101
> 49
> [1]
>
> Best,
>
> Tim
>
> Timothy Feinstein, Ph.D.
> Research Scientist
> University of Pittsburgh Department of Developmental Biology
>
> From: Gabriel Davis Jones <gabriel.jones at florey.edu.au>
> Date: Saturday, June 27, 2015 at 1:18 AM
> To: "openspim at openspim.org" <openspim at openspim.org>
> Subject: [OpenSPIM] Image Stitching Best Practices
>
> Hi All,
>
> We are currently imaging large volumes that require us to acquire
> multiple stacks of the same angle.
> Is there currently a best way to stitch images acquired OpenSPIM?
> Should we use the grid/collection stitching plugin or is there a
> better way to go about it?
>
> Thanks,
>
> Gabriel
>
> Links:
> ------
> [1]
> http://lists.umn.edu/cgi-bin/wa?A2=ind1411&L=CONFOCALMICROSCOPY&am
> p;P=R10149
>
> _______________________________________________
> OpenSPIM mailing list
> OpenSPIM at openspim.org
> http://openspim.org/mailman/listinfo/openspim
More information about the OpenSPIM
mailing list