tools.RigidMotionEstimate#

class bartorch.tools.RigidMotionEstimate#

Bases:

A 2D or 3D rigid transform in SimpleITK physical coordinates.

Parameters:
  • parameters (array_like) – (angle, tx, ty) in 2D or (angle_x, angle_y, angle_z, tx, ty, tz) in 3D, as SimpleITK’s Euler2DTransform and Euler3DTransform take them. Angles are in radians, translations in the unit of the image spacing.

  • center (array_like) – Centre of rotation, in physical (x, y[, z]) order.

  • covariance (array_like, default=None) – Covariance of parameters, in the same order.

  • metric (float, default=None) – Final registration metric value.

  • stop_condition (str, default=None) – SimpleITK optimizer stop description.

Notes

SimpleITK indexes an image in (x, y[, z]) order, the reverse of the array’s axes: tx is along the last array axis. The 3D angles compose as \(R_z R_x R_y\). The arrays are stored as float64 NumPy copies.

property dimension#

Two or three spatial dimensions.

property angles#

Euler angles in radians.

property translation#

Translation in physical (x, y[, z]) order.

property matrix#

The transform about its centre as a homogeneous (d + 1, d + 1) matrix.