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

Python plot_sinogram_profiles confused by TOF #1363

Open
KrisThielemans opened this issue Feb 2, 2024 · 1 comment
Open

Python plot_sinogram_profiles confused by TOF #1363

KrisThielemans opened this issue Feb 2, 2024 · 1 comment

Comments

@KrisThielemans
Copy link
Collaborator

data is now 4D, so the int sumaxis,select leads to a load of profiles.

@robbietuk can we modify this to pass tuples? Or alternatively "sumallotheraxes"

@KrisThielemans KrisThielemans added this to To do in TOF improvements and fixes via automation Feb 2, 2024
@robbietuk
Copy link
Collaborator

Yes. Let me take a look and get back to you. Behavior control is quite hard. It might be better to merge this with https://github.com/UCL/STIR/blob/master/examples/python/projdata_visualisation/ProjDataVisualisation.py

Some notes for myself:
This utility is hard.

  • The idea is to plot a 1D line profile through (multiple) ProjData.
  • This means each dimension of the data should be: a selected value or summed over all rows.
  • 2D data: The dimension to plot across should be given (i.e. horizontal on plot) and vertical should be a value of the other ProjData dimension or a sum of it.
  • In 3D The horizontal component dimension should be provided and the vertical should be the given values of the other dimensions or a sum.
  • This extends to 4D data.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants