-
Notifications
You must be signed in to change notification settings - Fork 29
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
TOF sinogram-division leads to an error #1082
Comments
Presumably this creates 3 temporary projdata (each with .hs and .s). Can you please check that headers are the same (aside from filename of course), and do |
The headers are all the same (example attached), but the file sizes differ. The two "get_uniform_copy(1)" sinograms are both 2.1 GB while the one that's created via division is only 1.1 GB big. |
ok. a bug. I guess at the moment you will have to pass via |
@evgueni-ovtchinnikov any ideas? sizes are a bit weird (might even indicate it's filled with the wrong type as it's half the size) |
@KrisThielemans the division is performed in |
they should, in the sense that Note that the test code above is with "in file" settings, not "in memory". Possibly this is something that @NicoleJurjew could test if the same problem occurs when using temp data in memory. |
@NicoleJurjew can I get your |
Thanks for your help, using "as_array" for the division I could solve my problem! @evgueni-ovtchinnikov, @KrisThielemans , I sent a link to a OneDrive with the files via email. Please let me know if you can't access or need more information. |
Quite a few operations on PETAcquisitionData are performed by loops like these:
As I discovered, these loops ignore the TOF dimension, which, in particular, gives reduced norm, and may be the reason for other trouble. |
ok. this is a bit difficult. The reason we have this is Easiest would be to have an extra loop over tof, but unfortunately it will need to be within an A possible alternative is to make sure that all those loops are replaced by calls to equivalent STIR functionality. That is probably the most productive way of doing things, as they will be useful in STIR anyway. Of course, we will need to add the TOF loop there on the TOF branch, but that is quite natural. @evgueni-ovtchinnikov which functionality are you missing in STIR with these loops? |
@KrisThielemans the functionality we have problems at the moment is the data algebra: any algebraic operation on in-file |
I had a quick look and see these loops in
These wouldn't be too hard to write in STIR I believe. It'd allow cleaning-up some STIR code as well. (They'd have to be overloaded for Much better would be to write STIR iterators for What do you think? |
@NicoleJurjew I think this can be closed since #1208? |
@KrisThielemans yes, I wasn't aware those were still floating around. Thanks! |
When I try to divide two TOF-sinograms, the operation itself works. When I try to do something with the object that is created, however, I get an error message. Here is what I did:
This leads to the error message attached.
The text was updated successfully, but these errors were encountered: