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

Planar source defects #29

Closed
zubenscott opened this issue Aug 11, 2017 · 3 comments
Closed

Planar source defects #29

zubenscott opened this issue Aug 11, 2017 · 3 comments
Assignees
Labels

Comments

@zubenscott
Copy link

zubenscott commented Aug 11, 2017

When using the 'planar' source with mcxlab I receive a non-uniform planar illumination. Here's a plot of the normalized fluence on the surface of a phantom close to the source:

fluencedefects

For various parameter values, I get the same 4 defects. Changing photon number, size and shape of the planar source don't appear to make them go away, nor does adding a focal length for the source. Here's the code I use,

First the setup of the phantom:

unitinmm=.2; dim = (1/unitinmm)*[60,40, 30];
volume_center = [dim(1)/2+1;dim(2)/2+1;dim(3)/2+1];
% Defining simple rectangular phantom
object_data=uint8(ones(dim(1),dim(2), dim(3)));
object_props=[0.00001 0.0 0.9 1.33;0.003 5 0.9 1.33];
fluence=illuminate_PreXion(object_data,object_props,volume_center,unitinmm);

Matlab function that defines the illuminating geometry and calls mcx:

illuminate_PreXion.txt
(save as .m file to run)

@fangq
Copy link
Owner

fangq commented Jan 12, 2018

@zubenscott, sorry for my slow response. I just tested your script on the latest git code (nightly-build), and I do not see these artifacts. I am wondering if you can download the latest mcxlab (http://mcx.space/nightly/) and verify if this issue still present?

my screen capture is attached, generated using 5e8 photons.

planar_source_artifact

@fangq
Copy link
Owner

fangq commented Jan 28, 2018

close, no longer reproducible. if the issue remains under certain conditions, feel free to reopen.

@fangq fangq closed this as completed Jan 28, 2018
@fangq
Copy link
Owner

fangq commented Mar 11, 2018

this issue seems to be caused by the same problem that was fixed in Issue #31.
it is also similar to the one reported in Issue #26.

glad this was fixed. Please download the latest nightly build for Windows http://mcx.space/nightly/win64/

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

2 participants