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

create_projdata_template with span=2 can give wrong num_axial_positions #1467

Open
KrisThielemans opened this issue Jul 4, 2024 · 1 comment
Labels

Comments

@KrisThielemans
Copy link
Collaborator

template_sino=my_DSTE_3D_rd3_template.hs
cat > my_input.txt <<EOF
Discovery STE
1
n
0
2

create a DSTE with span=2 (as default for GE scanners) with max_ring_diff=2. This results in

matrix axis label [4] := segment
!matrix size [4] := 3
matrix axis label [2] := axial coordinate
!matrix size [2] := { 43,47,43}
minimum ring difference per segment := { -2,-1,2}
maximum ring difference per segment := { -2,1,2}

However, the scanner has 24 rings, so the first and last number of axial coordinates are too large. (They are appropriate for max_rd=3 I guess), and in fact should be even, resulting in a warning of a half-ring shift in the m coordinate.

This is probably an old bug, but I spotted the warning about the shift when debugging FBP3DRP in #1464

@KrisThielemans
Copy link
Collaborator Author

I still don't know why FBP3DRP failed in #1461 as no relevant code was changed there, except possibly the template for test_simulate_and_recon.sh. However, checking what was happening in the debugger, the find_rmin_rmax code in FBP3DRPReconstruction didn't seem to cope with the span=2, max_rd=2 case, so that should probably throw an error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant