xdesign.acquisition
¶
Define objects and methods for simulated data acquisition.
This not only includes physical things like Probe
, detectors,
turntables, and lenses, but nonphysical things such as scanning patterns.
Classes:
Probe ([p1, p2, size, intensity, energy]) 
A square crosssection xray beam for probing Phantoms. 
Functions:
raster_scan2D (sa, st[, meta]) 
Return the coordinates of a 2D raster scan. 

class
xdesign.acquisition.
Probe
(p1=None, p2=None, size=0.0, intensity=1.0, energy=15.0)[source]¶ Bases:
xdesign.geometry.line.Line
A square crosssection xray beam for probing Phantoms.

p1, p2
Deprecated since version 0.4: Measure now uses theta, h, v coordinates instead.
Type: xdesign.geometry.Point

.. todo::
Implement additional attributes for Probe such as wavelength, etc.

cross_section
¶ Return the crosssectional area of a square beam.


xdesign.acquisition.
raster_scan2D
(sa, st, meta=False)[source]¶ Return the coordinates of a 2D raster scan.
Parameters:  sa (int) – The number of projeciton angles in [0, 2PI).
 st (int) – The number of Probe steps at each projection angle. [0.5, 0.5)
 nmeta (int >= 0) – The number of meta steps. Meta steps are the offset from the starting Probe position after each rotation.
Returns: theta, h, v (
np.array
(M,)) – Probe positions for scan