PHS3000 PET¶
This documents the monashspa.PHS3000.PET
library that you will import into code used in the PHS3000 unit when performing experiment 4.6 PET.
-
monashspa.PHS3000.PET.
pet_rebuild
(filepath, filter_name=None, npoints=None, call_show=True)[source]¶ Perform inverse radon transform on acquired PET data and plots results
Parameters: filepath – A string containing the path to the txt file containing the PET data
Keyword Arguments: - filter_name –
A string containing the name of the filter to use during reconstruction. Defaults to
None
(no reconstruction). Options are:- None: don’t reconstruct
- ’none’: Reconstruct with no filter
- ’ramp’: Reconstruct using the Ram-Lak filter
- ’Shepp-Logan’: Reconstruct using the Shepp-Logan filter
- ’cosine’: Reconstruct using the cosine filter
- ’hamming’: Reconstruct using the hamming filter
- ’hann’: Reconstruct using the hann filter
- npoints – The number of points to reconstruct
- call_show – Whether to call
matplotlib.pyplot.show()
at the end of the function (prior to returning). Defaults toTrue
. Set this toFalse
if you are not using Spyder/IPython and wish your entire script to complete before showing any plots. Note, you will need to explicitly callmatplotlib.pyplot.show()
if you set this toFalse
.
Returns: A 2D numpy array containing the coincidence counts (rows correspond to each linear stage position and columns to each rotation stage position)
- filter_name –