detector_orientation_matrix#
- anri.geom.detector_orientation_matrix(o11, o12, o21, o22)[source]#
Return a matrix that transforms detector (slow, fast) pixel values to (z_det, y_det).
This accounts for the varying possible readout directions and origins of the detector. We get a vector coming back in the format \(\left(z_{\text{det}}, y_{\text{det}}, 0\right)\). See Geometry for more details about FABLE geometry. In ImageD11, you can find this in
ImageD11.transform.compute_xyz_lab()- Parameters:
- Returns:
jax.Array– 3x3 image orientation matrix, with the 4 specified elements in the top-left corner.
Notes
\[\begin{split}\begin{pmatrix} o_{11} & o_{12} & 0 \\ o_{21} & o_{22} & 0 \\ 0 & 0 & 1 \end{pmatrix} \begin{pmatrix} s \\ f \\ 0 \end{pmatrix} = \begin{pmatrix} z_{\text{det}} \\ y_{\text{det}} \\ 0 \end{pmatrix}\end{split}\]