Define objects and methods for simulated data acquisition.
This not only includes physical things like
turntables, and lenses, but non-physical things such as scanning patterns.
||A square cross-section x-ray beam for probing Phantoms.|
||Return the coordinates of a 2D raster scan.|
Probe(p1=None, p2=None, size=0.0, intensity=1.0, energy=15.0)¶
A square cross-section x-ray beam for probing Phantoms.
Deprecated since version 0.4: Measure now uses theta, h, v coordinates instead.
Implement additional attributes for Probe such as wavelength, etc.
Return the cross-sectional area of a square beam.
Return the closest distance between entities.
Return the half space polytope respresentation of the probe.
Return the intersection with polygon.
measure(phantom, theta, h, perc=None)¶
Measure the phantom from the given position.
Parameters: theta, h – The coordinates of the Probe.
raster_scan2D(sa, st, meta=False)¶
Return the coordinates of a 2D raster scan.
- 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.
theta, h, v (
np.array(M,)) – Probe positions for scan