-
Notifications
You must be signed in to change notification settings - Fork 3
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
Error in branchless distance driven #1
Comments
Hello @JeffFessler, Thanks for posting this issue. Do you have a code or geometry to reproduce this error? I have tested the Branchless Distance Driven code for cone-beam geometry, but not for fan-beam. This is the implementation for cone-beam, which works fine. |
Thanks for asking. I had to change the suffix from .m to .txt to upload the exact file. |
I guess it is related with the crazy geometry I have created. When you changed the geo.DSO, for certain angles, the object was being projected outside the detector, causing the error. I am not familiar with CT geometries, so years ago I created that one (as you mentioned "almost parallel beam") just for testing. Now, I have modified to a geometry which I think might be more realistic and maybe close to the fan-beam. I am still not sure. At least it gives some results: This is the modified file: See if it works for you. |
That CT detector geometry is quite realistic. However, there are two problems now. If you look at the sinogram, you can see that there are horizontal bands every 45 or 90 degrees. It should not look like that - so there must be some bug(s) in the code. And in practice it is usually the case that parts of the image (especially the corners) will project outside of the detector and we have to handle that carefully in the code. If you are still working with this code and plan to fix it, please let us know. (cc'ing @SoniaMinseoKim) |
I see, I think it is somehow related to the size of the detector mapped on the X axis, see: So, in #L231 it makes the sonogram darker at certain angles: OpenCodes/Tomography/Computed Tomography (CT)/DistanceDrive/2D/BranchlessDistanceDriven.m Line 231 in 16d062d
There is also the fact that the mapped detector size changes depending on the detector element position. I would need to go back to the paper to see how to fix it. Unfortunately, I am not working with 2D anymore. I will post this as a known issue. Let me know if you guys find out. |
Hello @JeffFessler , Were you able to figure out the problem? Thanks! |
we ended up doing a pretty big rewrite: |
Thanks for providing branchless distance driven code!
The version posted works for "almost parallel beam" geometry
but if we change the geometry parameters to be more like a typical fan-beam geometry
then the code has errors in a while loop.
OpenCodes/Tomography/Computed Tomography (CT)/DistanceDrive/2D/BranchlessDistanceDriven.m
Line 45 in e4f0dcb
Specifically in this while loop
OpenCodes/Tomography/Computed Tomography (CT)/DistanceDrive/2D/BranchlessDistanceDriven.m
Line 230 in e4f0dcb
we get indexing past the end of one of the arrays. Any ideas how to fix?
The text was updated successfully, but these errors were encountered: