tomosipo.reflect

tomosipo.reflect(*, pos, axis)[source]

Create a reflection transform

The transform reflects in the plane through pos with normal vector axis.

The parameters pos and axis are interpreted as homogeneous coordinates. You may pass in both homogeneous or non-homogeneous coordinates. Also, you may pass in multiple rows for multiple timesteps. The following shapes are allowed:

  • (n_rows, 3) [non-homogeneous] or (n_rows, 4) [homogeneous]

  • (3,) [non-homogeneous] or (4,) [homogeneous]

Parameters:
  • posnp.array or scalar A position intersecting the plane of reflection.

  • axis – A normal vector to the plane of reflection. Need not be unit-normal.

Returns:

Return type: