aspire.sinogram package¶
Submodules¶
aspire.sinogram.sinogram module¶
- class aspire.sinogram.sinogram.Sinogram(data, dtype=None)¶
- Bases: - object- Initialize a Sinogram Object. This is a stack of one or more line projections or sinograms. - The stack can be multidimensional with ‘self.n’ equal to the product of the stack dimensions. Singletons will be expanded into a stack with one entry. - Parameters:
- data – Numpy array containing image data with shape (…, angles, radial points). 
- dtype – Optionally cast data to this dtype. Defaults to data.dtype. 
 
- Returns:
- Sinogram instance holding data. 
 - asnumpy()¶
- Return image data as a (<stack>, angles, radians) read-only array view. - Returns:
- read-only ndarray view 
 
 - backproject(angles)¶
- Backprojection method for a single stack of lines. - Parameters:
- angles – np.ndarray 1D array of angles in radians. Each entry in the array corresponds to different angles which are used to reconstruct the image. 
- Returns:
- An Image object containing the original stack size with a newly reconstructed numpy array of the images. Expected return shape should be (…, n_radial_points, n_radial_points) 
 
 - copy()¶
 - stack_reshape(*args)¶
- Reshape the stack axis. - *argsargs:
- Integer(s) or tuple describing the intended shape. 
- Returns:
- Sinogram instance