villekf / OMEGA

Open-source multi-dimensional tomographic reconstruction software (OMEGA)
https://omega-doc.readthedocs.io/en/latest/index.html
GNU General Public License v3.0
65 stars 16 forks source link

main_PET.m issue #37

Closed zjZhao714 closed 1 year ago

zjZhao714 commented 1 year ago

Dear villekf, When I using main_PET.m for my own scanner and my own data ,it appears some mistakes.The command window as follow: image My data format is contain the crystal number only: image What can i do to handle this error? Best wishes

villekf commented 1 year ago

I think the structure of your input data is incorrect. The options.coincidences should include the number of counts for each detector pair. I believe you have first detector number in the first column, number of counts in the second and third, and the second detector number in the fourth? If so, you should combine the counts in a matrix containing all possible detector pair combinations. If some combination has no counts, it should be zero. If not, then I'd need more information to help.

villekf commented 1 year ago

Just to add that alternatively you could also reconstruct only the detector pairs that have counts. In such a case you need to input coordinates for all those pairs and the number of counts. See Custom detector coordinates and/or list mode reconstruction for details.

zjZhao714 commented 1 year ago

Thank you very much and now I know your means,I will try later. Best wishes.

zjZhao714 commented 1 year ago

Dear villekf, Can you tell me the list-mode data format that OMEGA support ? Such as the information does each column correspond to ? So that I can rearrange my data that OMEGA can reconstruction. And I want to ask you does OMEGA can support double layer PET like this: image Best wishes.

villekf commented 1 year ago

For list-mode reconstruction, you should have the x/y/z-coordinates of the detectors in options.x/y/z, respectively. The first column is the first detector, and the second column the second. The order of the detectors doesn't matter in PET though. Then options.SinM has the number of counts for that detector pair. In an event-by-event case it would be just one.

Dual-layer PET should actually be possible with the above manual reconstruction. However, the next release should have support for sinogram dual-layer reconstruction as well. Though since I'm doing CT stuff now, I'm not sure how well I will be able to test the PET part.

zjZhao714 commented 1 year ago

Dear professor, Thank you for your careful reply.

I organize my data to the formation you said,like this : image image

But I can't set options.SinM in the main_PET.m funtion: image

And the same error appearance: image

villekf commented 1 year ago

Did you input the coordinates to options.coincidences? They should be input to options.x/y/z.

Why you can't set the options.SinM? From your screenshot, it seems you could freely input any data/value to it. However, since you've used the options.coincidences so far, I think it should be fine as well as long as you keep using raw data (this is not, however, necessary).

Have you looked at Inveon_PET_main_listmode_example.m? It contains an example of list-mode reconstruction. I recommend using similar settings.

zjZhao714 commented 1 year ago

OK,Thank you very much.