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

blocks on cylindrical geometry still unexpected geometry #1390

Open
KrisThielemans opened this issue Feb 17, 2024 · 2 comments
Open

blocks on cylindrical geometry still unexpected geometry #1390

KrisThielemans opened this issue Feb 17, 2024 · 2 comments
Milestone

Comments

@KrisThielemans
Copy link
Collaborator

KrisThielemans commented Feb 17, 2024

Looks like we don't correctly centre the "bucket" in transaxial direction when there are gaps between blocks. Below are examples wtih 2 blocks/bucket and 1 block/bucket. with the blocks_spacing 20% larger than the block (generated with an improved plot_scanner_LORs.py, now even better on #1391).
2D-2BlocksPerBuckets-ObliqueAt0degrees-XY-LOR
2D-1BlocksPerBuckets-ObliqueAt0degrees-XY-LOR
Of course, a gap between trans-blocks if there's only 1 block per trans-bucket makes no sense. We could use this to "shift" blocks, but I can't see why anyone would want to have such a PET scanner, so I don't think we should do this.

I think we should just centre the bucket.

in axial direction, it looks fine
2D-YZ-LOR

@danieldeidda @markus-jehl @robbietuk

@KrisThielemans KrisThielemans added this to the v6.1 milestone Feb 17, 2024
@KrisThielemans
Copy link
Collaborator Author

KrisThielemans commented Feb 17, 2024

When using the commented code for start_x as opposed to the csi stuff at

float start_y = -1 * scanner.get_effective_ring_radius();
float start_x
= -1 * r
* sin(csi_minus_csiGaps); //(
// ((num_transaxial_blocks_per_bucket-1)/2.)*transaxial_block_spacing
// + ((num_transaxial_crystals_per_block-1)/2.)*transaxial_crystal_spacing
// ); //the first crystal in the bucket

is what I expect.
2D-2BlocksPerBuckets-ObliqueAt0degrees-XY-LOR
2D-1BlocksPerBuckets-ObliqueAt0degrees-XY-LOR

@danieldeidda you made this change in 42bf1e9. Can you remember why?

@robbietuk
Copy link
Collaborator

robbietuk commented Feb 20, 2024

Yes I agree. The second images are correct. There should a test to ensure this is the case...

@KrisThielemans KrisThielemans modified the milestones: v6.1, v6.2 May 14, 2024
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