Coordinate Systems

From high-school maths, you should be familiar with the cartesian coordinate system, and how to denote co-ordinates in the 2D plane, using (x, y) coordinates.

2D cartesian coordinates

Figure 1: 2D cartesian coordinate system, by Kbolino, Public domain, via Wikimedia Commons

The same principle can be extended to 3D, with (x, y, z) coordinates.

3D cartesian coordinates

Figure 2: 3D cartesian coordinate system, by Cronholm144, Public domain, via Wikimedia Commons

With 3D coordinate systems, you should be aware of whether coordinates are right or left handed. In this course, we will use right handed coordinates exclusively.

Right handed coordinates

Figure 3: Right handed coordinates, thumb=X, index=Y, middle=Z, by Abdull, CC BY-SA 3.0, via via Wikimedia Commons

In medical imaging in general, and in particular, in image-guided surgery, it is important, not to flip axes around. Software must not accidentally mix up, the left and right hand side of the patient, which in many parts of the anatomy look very similar. So, do not switch left/right handed coordinates, without a lot of software testing.

Image-Guided Surgery (IGS) Systems

Each image-guided surgery system will have a set of coordinate systems. It is essential to know how to convert coordinates from one coordinate system to another. For example, in the SmartLiver laparoscopic liver surgery application, there is:

Coordinate systems for laparoscopic liver surgery

The different coordinate systems are:

  • The 3D CT image = CT

  • The video camera = camera

  • The tracking markers on the end of the laparoscope = marker

  • The tracking system = world

Converting Coordinates

Let a transformation be denoted by T, where T is a 4 \times 4 matrix:

T = \begin{bmatrix} R & t \\ 0 & 1 \end{bmatrix}

where R is a 3 \times 3 orthonormal rotation matrix, and t a 3 \times 1 translation vector.

Then the transformation of coordinates from coordinate system A to coordinate system B is given by:

x^{\prime} = {}^B_{}T_A x

where x is a 3D point, in coordinate system A, represented as a 4 \times 1 column vector using homogeneous coordinates, and x^{\prime} represents the location of the same point, in coordinate system B.

Worked Example

So, using the laparoscopic liver surgery system above, an anatomical structure such as the liver can be represented as a set of triangles, which comprises 3D points, and their edge connectivity. This coordinates of this triangle mesh can be converted to video camera coordinates thus:

x_{camera} = {}^{camera}_{}T_{marker} {}^{marker}_{}T_{world} {}^{world}_{}T_{CT} x_{CT}

where

  • {}^{world}_{}T_{CT} registers CT coordinates to world (tracker) coordinates

  • {}^{marker}_{}T_{world} is the inverse of the {}^{world}_{}T_{marker} which is obtained from the tracking system

  • {}^{camera}_{}T_{marker} is given by calibrating the pose of the video camera with respect to the tracking marker

# Conclusion

So, the main technical idea behind many IGS systems are to take:

  • image data, in this example, we used a triangle mesh representing the liver, derived from CT

  • tracking system, tracking markers

  • computer

and correctly calibrate/register/track so that the image data can be displayed in the correct coordinate system. The core idea is geometrical.

However, the real science/art is in designing the calibration and registration procedures so they can be performed in a reasonable time-frame by clinical staff, without impacting the clinical workflow, to the benefit of the patient.