-
Notifications
You must be signed in to change notification settings - Fork 2
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
Need to provide FOV mask as part of the input data #47
Comments
@KrisThielemans :related to that issue. what is the most efficient way in STIR to generate a binary STIR image that shows whether the binary STIR image is > 0? In numpy it would be sth like |
Apologies for the delay on this issue. Our plan was to let this FOV mask correspond to wherever the provided OSEM is > 0, but I wanted to check how that looks like first... Regarding the question, I'm assuming you mean SIRF (for mask = im.minimum(im.allocate(eps))/eps that wouldn't be very efficient though. @evgueni-ovtchinnikov @paskino @casperdcl any great ideas? |
(1) ok. just wanted to make sure that I was not missing a method of (2) I guess using OSEM >0, instead of adjoint_ones > 0 for the fov mask should be fine since the OSEM |
I have finally (!) checked that the above assumption isn't quite accurate: for some of the Siemens_mMR data, there are voxels which are non-zero in the reference image but are zero in the OSEM image. I believe that this is because of the penalty (in fact, OSEM can set voxels to zero "by accident" if the data is very noisy in a subset, but I don't think that's happening here). However, all these voxels are in the end-planes, and are NOT in the evaluation VOIs. So, using |
I have now checked that with the settings used for the projector mask = STIR.TruncateToCylinderProcessor().process(OSEM_image.allocate(1)) gives identical results to adjoint_ones > 0, i.e.
Also, there are no non-zero voxels in either the OSEM or the reference image outside this mask. |
Summary:
|
Dataset
as returned bypetric.get_data
should have another memberFOV_mask
, which is asirf.STIR.ImageData
which is zero where the solution has to be zero, and 1 where the solution has to be non-negative.The text was updated successfully, but these errors were encountered: