Skip to content

Quadra script bugfix: rotational shift between STIR and Siemens recons#1688

Merged
KrisThielemans merged 5 commits intoUCL:masterfrom
z-k-li:master
Mar 13, 2026
Merged

Quadra script bugfix: rotational shift between STIR and Siemens recons#1688
KrisThielemans merged 5 commits intoUCL:masterfrom
z-k-li:master

Conversation

@z-k-li
Copy link
Contributor

@z-k-li z-k-li commented Mar 6, 2026

Changes in this pull request

Included a view offset in the projection data to make sure no rotational shifts occur between Siemens and STIR reconstructions for Quadra data. As done in PR #1682.
Some small modifications were also implemented.

Testing performed

Related issues

Checklist before requesting a review

  • I have performed a self-review of my code
  • [] I have added docstrings/doxygen in line with the guidance in the developer guide
  • [] I have implemented unit tests that cover any new or modified functionality (if applicable)
  • The code builds and runs on my machine
  • [] documentation/release_XXX.md has been updated with any functionality change (if applicable)

Contribution Notes

Please tick the following:

  • The content of this Pull Request (the Contribution) is intentionally submitted for inclusion in STIR (the Work) under the terms and conditions of the Apache-2.0 License.
  • I (or my institution) have signed the STIR Contribution License Agreement (not required for small changes).

Copy link
Collaborator

@KrisThielemans KrisThielemans left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you please change the view_offset in Scanner.cxx, for both Vison 600 and Quadra? We then wouldn't need this change in the preprocess scripts anymore.
In any case, it avoids wrong things when NOT using the preprocess scripts.

@KrisThielemans
Copy link
Collaborator

I've merged #1681, which might give you a conflict for the python exponent (but I don't think so)

@z-k-li
Copy link
Contributor Author

z-k-li commented Mar 9, 2026

Can you please change the view_offset in Scanner.cxx, for both Vison 600 and Quadra? We then wouldn't need this change in the preprocess scripts anymore. In any case, it avoids wrong things when NOT using the preprocess scripts.

Have implemented the view offset in the Scanner.cxx for both Vision and Quadra.

Copy link
Collaborator

@KrisThielemans KrisThielemans left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unfortunately, some white space and other unnecessary changes. The former should disappear when you run pre-commit run --all.

Main question is: did you run it and see if it gave the same header? (for Vision 600 and Quadra I guess)

DOI = proj_info.get_scanner().get_average_depth_of_interaction()
print('New Depth of interaction:', DOI)

def view_offset_adaption(projdata, view_offset):
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess I'd leave the function in, in case we need it in the future (but not use it)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sure, I will leave this in

@KrisThielemans KrisThielemans self-assigned this Mar 13, 2026
@KrisThielemans KrisThielemans added this to the v6.4 milestone Mar 13, 2026
@KrisThielemans KrisThielemans merged commit 233cc6d into UCL:master Mar 13, 2026
11 of 13 checks passed
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

Successfully merging this pull request may close these issues.

3 participants