-
Notifications
You must be signed in to change notification settings - Fork 72
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
Unexpected photon trajectories for very low scattering coefficients #174
Comments
thanks, I am able to reproduce this issue in both python and mcxlab. I agree with you both the scattering behavior and the out-of-bbx trajectories are incorrect. I will look into this and will post my updates here. mcxlab test code is attached
|
@dkalsan, again, thanks for reporting this issue. I looked into it further, and was able to identify the cause - the handling of near-zero after a one-line change, I believe this behavior has been fixed. see my above commit. the above matlab demo code now returns correct trajectories, see below. feel free to reopen the ticket if you see anything else is not fixed. |
Interestingly, mcxcl/mcxlabcl does not have this behavior - it uses |
Perfect, I will give it a test. Thanks a lot for taking the time for this! |
Issue
Large number of scattering events take place in a medium with a very low scattering coefficient. To me this behaviour seems counterintuitive as I would expect little to no scattering events.
Setup
A 32x32 pixel 2D volume containing one circular artery in the middle surrounded by background tissue is being simulated. A pencil illumination source located at the top-middle of the volume is used and directed towards the artery. The background tissue is assigned a very low scattering coefficient$\mu_s=10^{-11}$ which leads to unexpected photon trajectories.
Observed behaviour
When plotting the photon trajectories for$\mu_s \in [10^{-11}, 10^0]$ the following can be observed:
Expected behaviour
There should be little to no scattering events in the background tissue for very low$\mu_s$ , i.e. photon traces should be straight lines from the source origin (top-middle) to the artery, and then they should be scattered by the latter.
Code to reproduce
The text was updated successfully, but these errors were encountered: