geom#
Geometry transforms to and from laboratory, detector, and sample frames.
Functions
|
Return unit vectors along a beam and across it, horizontally and vertically, in the lab frame. |
|
Convert detector (sc, fc) coordinates to lab (lx, ly, lz) coordinates. |
|
Get the detector's pixel steps and pixel (0, 0) position in the laboratory frame. |
|
Return a matrix that transforms detector (slow, fast) pixel values to (z_det, y_det). |
|
Return a 3D orientation matrix that transforms a point in the detector reference frame to the lab frame. |
|
Return all transformations required to convert from detector pixel to lab space. |
|
Find the dty that brings v_sample into the beam, and the lab position it then occupies. |
|
Find the dty value required to make the beam intersect a specific point v_sample at a given omega. |
|
Convert lab (lx, ly, lz) coordinates to detector (sc, fc) coordinates. |
|
Convert from lab to sample coordinates (apply the diffractometer stack). |
|
Ray-trace from vector in lab frame (unknown length) to detector coordinates (sc, fc). |
|
Sample-frame positions of every voxel of an n x n reconstruction grid, in reconstruction order. |
|
Convert rotation space (origin in corner) to step space (integer steps leading from rotation axis). |
|
Return rotation matrix for positive right-handed rotation about axis by angle (degrees). |
|
Return rotation matrix for positive right-handed rotation about the X axis by angle (degrees). |
|
Return rotation matrix for positive right-handed rotation about the Y axis by angle (degrees). |
|
Return rotation matrix for positive right-handed rotation about the Z axis by angle (degrees). |
|
Convert from sample to lab coordinates (apply the diffractometer stack). |
|
Shift and padding that centre a sinogram of ny dty rows on the rotation axis, as ImageD11 does. |
|
Create reconstruction grid in "step" space (integer units of the step size). |
|
Convert step space (integer steps leading from rotation axis) to rotation space (origin in corner). |
|
Convert step space (integer steps leading from rotation axis) to sample space. |