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

aligned pics look distorted #30

Closed
ywang219 opened this issue Aug 4, 2020 · 5 comments
Closed

aligned pics look distorted #30

ywang219 opened this issue Aug 4, 2020 · 5 comments

Comments

@ywang219
Copy link

ywang219 commented Aug 4, 2020

image

Hello,

I am running around 50 brain slides, but the alignment looks distorted? Is this a problem when running a smaller sample instead of whole brain?

@SaibotMagd
Copy link

What dataset is this? On one hand, obviously the orientation of the atlas don't match the dataset (in result1 the cerebellum is on top in all other pictures on bottom left). On the other, you don't use the reference for the resample_to_auto (result1) picture.

@ywang219
Copy link
Author

ywang219 commented Aug 5, 2020

What dataset is this? On one hand, obviously the orientation of the atlas don't match the dataset (in result1 the cerebellum is on top in all other pictures on bottom left). On the other, you don't use the reference for the resample_to_auto (result1) picture.

image
I changed the parameters so the orientation looks ok. But the alignments are still funky. I used my own dataset, only part of the whole brain.

@ywang219
Copy link
Author

ywang219 commented Aug 5, 2020

What dataset is this? On one hand, obviously the orientation of the atlas don't match the dataset (in result1 the cerebellum is on top in all other pictures on bottom left). On the other, you don't use the reference for the resample_to_auto (result1) picture.

image
I changed the parameters so the orientation looks ok. But the alignments are still funky. I used my own dataset, only part of the whole brain.

update: I aligned the whole brain using another dataset which looks a lot better. the only problem is with the auto-to-reference alignment which looks like a black shadow appearing somewhere in the center eating away the brain as I scroll to the right.
Screenshot from 2020-08-05 16-41-30
Screenshot from 2020-08-05 16-42-31
Screenshot from 2020-08-05 16-42-56

@SaibotMagd
Copy link

SaibotMagd commented Aug 6, 2020

For me it really seems like the reference file isn't sliced and/or rotated correctly. Can you compare the "resample_autofluorescence.tif" to the "ABA_25um_reference__3_-2_1__slice_None_None...tif"-file (it's the version for my dataset I'm working on)?

@nicolasrenier
Copy link
Collaborator

It looks like to me that you are trying the align a half-brain dataset with a full brain reference? With the half brain dataset, you should crop the reference to match the anatomical coverage of the dataset you are trying to align. This can be done with a slice(1,246) in the z axis for instance for the dataset provided online.

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