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

tilt image center/dimensions for projection_model_to_projection_matrices? #25

Open
McHaillet opened this issue Nov 13, 2024 · 5 comments

Comments

@McHaillet
Copy link

Hey @brisvag @alisterburt ,

I had a question about generating matrices from a projectionmodel. I was wondering why the projection_model_to_projection_matrices() function requires a tilt image center but tomogram dimensions. Is there a specific reason for this?
My intuition would be to give tilt image dimensions and tomogram dimensions, or vice versa (both centers).

@alisterburt
Copy link
Collaborator

huh I forgot I even added this 😆

no good reason, just a poor design decision! Let's go with dimensions for both

@McHaillet
Copy link
Author

Lol!

no good reason, just a poor design decision! Let's go with dimensions for both

Or does center make more sense? 😕 That gives the user more control over the center point, e.g. size / 2, size // 2 + 1

@alisterburt
Copy link
Collaborator

Thinking out loud - the shifts in the projection model are shifts which 'center' the tilt image (so that when backprojected everything lines up), everything lining up depends on the convention for the center so allowing a user to change the tilt image center introduces a possibility for error. If we fix the center then the user of the spec is only responsible for getting the shifts right, not the shifts and the tilt image center

Based on that I think dimensions makes more sense... does that make sense?

@McHaillet
Copy link
Author

I like your thinking, that is probably the most straightforward usage! Shall I make a PR for it?

@alisterburt
Copy link
Collaborator

would love one! appreciate you spending time on this :-)

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

2 participants