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

Image registration export as tiff #138

Open
sophietheis opened this issue May 21, 2024 · 0 comments
Open

Image registration export as tiff #138

sophietheis opened this issue May 21, 2024 · 0 comments

Comments

@sophietheis
Copy link

Hello,

Is it possible to export as tiff the registered image generate with BigStitcher ?

We have 3D+T images that have been converted into hdf5 format using BigStitcher. In BigStitcher we implement two sequential registration steps (Fast descriptor based registration followed by Assign closest point with ICP) to time register each movie. We have then used semi-automated tracking in Mastodon to track the movement of cells of interest.

Now, we want to spatially register all the movies to have a common reference frame.
So I need to work from the register image generate by BigStitcher as the tracking is based on it. We have tried to implement the registration matrixes from the xmls on the raw tiff images in Python and superimpose the tracks from Mastodon, but the correspondence between tracks and image is completely off, and the registered images is moving much more than the original.
Our xmls files look like this :
image

The workflow we tried is :
1- reslice the z-slice using calibration → pixel size is the same in x, y and z
2- apply affine transformation → matrix “AffineModel3D regularized with an RigidModel3D”
3- apply affine transformation → matrix “AffineModel3D”

We tried changing the order of the matrices, using inverted matrices, inverting the x and z axes, and the correspondence between tracks and image is still off. Maybe we haven’t used the right combination. Is anyone already tried to apply registration matrices from xml on the raw tiff image in Python (or imageJ) in order to save it as tiff?
Otherwise, we wondered if there is a way to directly export the registered image into tiff from BigStitcher.

Thanks,
Sophie

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

1 participant