English version

Surface Length 3D: An OsiriX plugin for measuring length over surfaces

Amato ACM·Jornal Vascular Brasileiro, 2016

Abstract

Traditional DICOM medical imaging software offers several tools for measuring distance, area and volume. None allow measurement of distances between points along surfaces. The shortest path between points makes it possible to calculate distances between the ostia of vessels, useful in cases of aortic aneurysms and for assessment of visceral vessels for surgical planning. Developing a plugin for OsiriX for measurement of distances along surfaces proved to be achievable. The tool still needs to be validated.

Keywords: software validation; software.

Introduction

OsiriX software has proven very useful for endovascular planning, offering methods for three‑dimensional multiplanar reconstruction and maximum intensity projection.1 These two techniques enable evaluation of the length, extension, and diameter of vessels at any angle. Reconstruction by three dimensional volume provides beautiful images, but has limitations for practical use.2

The advent of fenestrated and branched stent techniques and planning of open surgery for aortic aneurysms with involvement of visceral arteries demand additional information, such as the exit angles of arteries and the distances between them.3 For example, the choice between a Coselli graft and a patch for visceral repairs is based on the variable distance between the arteries. The linear distance is not the relevant dimension, rather it is the surface distance that is needed (Figure 1, Figure 2A). It was identification of this problem that prompted development of the plugin.

Method

The Surface Length 3D plugin4 for OsiriX 3 was developed by the author in Objective C for computers running the OSX operating system with the objective of providing a tool for calculating distances along surfaces and is available free of charge. OsiriX is a software package for viewing medical images that offers great freedom for image manipulation and also allows third party developers to create extensions. The usual method of three dimensional reconstruction in OsiriX is rendering by volume from a three dimensional dataset that comprises a piled group of flat two-dimensional images. These images are acquired in sequence, with a standardized distance between each and with a regular number of two dimensional pixels. Three dimensional pixels are called voxels. To create volume rendering, a camera is placed virtually relative to the space created and all voxels contain information on color and transparency. Surface rendering can be accomplished using a number of different algorithms and consists of a process by which three dimensional data are converted into vector models, i.e. models made up of vertices, lines, and planes. The conversion is dependent on the algorithm chosen, on the structure to be converted, and on the cutoff point chosen. As a result, some structures, such as bones, are very well delineated in a surface render, while others are very poorly delineated. Structures that are poorly delineated are those that do not have consistent density or have adjacent structures with similar densities. The circulatory apparatus does not possess the characteristics needed for good delineation, but using contrast its density can be differentiated from the adjacent structures and it can be duly converted in a surface render. Although the method is called surface rendering, segmentation is actually performed on the vascular contrast and so the vessel wall may not be included in the surface.

Three-dimensional surface rendering of a CT angiogram on a black background, showing the aorta and visceral branches in white next to the spine. Several colored lines (pink, purple, blue, green, cyan and orange) are drawn over the surface of the aortic wall, each tracing the path along the surface between the ostia of different branches.
Figure 1. Three-dimensional view of paths along surfaces on a surface model produced using the Surface Length 3D plugin and OsiriX.

The plugin employs a mathematical algorithm that seeks the shortest surface distance between two points and displays the result as a flattened schematic (Figure 3). The algorithm used, called vtkDijkstraGraphGeodesicPath, calculates a series of lines that describe the shortest path between points along a polygonal mesh. The total distance is calculated by summing the various different lines calculated,5 based on the algorithm developed by Dijkstra (Figure 2).6

Two schematic drawings. A: outline of a vessel in cross-section, a circle with two tubular branches; a straight blue line connects the origins of the two branches across the lumen, while a red line follows the curved wall between them. B: a polygonal mesh of black lines connecting blue vertices, with a green start point and a red end point joined by a dotted red line, illustrating the search for the shortest path along the mesh.
Figure 2. (A) Two-dimensional cross-sectional representation of a vessel showing the difference between a linear measurement and a measurement along a surface; (B) Two-dimensional representation of a polygonal mesh and the algorithmic method for calculating the shortest distance between points.
Flattened schematic on a gray background with three points: Point 1 in red, Points 2 and 3 in blue. A red line labeled 121.1 joins Point 2 and Point 1, a green line labeled 150.8 joins Point 1 and Point 3, and a dotted blue line labeled 261.2 joins Point 2 and Point 3.
Figure 3. Schematic model produced by the plugin of the points selected and the distance between them.

Results

The plugin developed proved capable of measuring distances between different structures along surfaces duly extracted from three dimensional datasets (Figure 1).

Discussion

The initial objective of the project was to measure distances along surfaces and this proved to be attainable. The capacity to identify aortas and the distances between visceral vessels that need special grafts, whether deployed with traditional surgery or using endovascular techniques, could be one of the tool’s possible applications, but this still needs to be evaluated. During a period in which the method was presented to other specialties, we detected a possibility for applications in neurosurgery, for definition of sites for drainage of subdural hematomas using distances measurable from reference points in the skull to triangulate the site (Figure 4); and in plastic surgery, to conduct surface measurements between reference points.

A preliminary validation of distance measurements using the standard tools available in OsiriX showed a precision of 0.3 mm with good reliability.7 Notwithstanding, the plugin developed uses an original mathematical algorithm for calculating measurements that must be validated for medical use. Development of this tool and conversion to make it compatible for use with more up to date versions of OsiriX should expand the possible applications. Further studies could be conducted to validate the tool using phantom data before moving on to applications in practice.

Screenshot of OsiriX showing a white three-dimensional surface rendering of a skull with red, green and blue paths drawn over the cranial vault. A Processing window lists the point pairs with direct and surface distances in millimeters: point 1 to point 2, 108.2 and 121.1; point 1 to point 3, 129.7 and 150.8; point 2 to point 3, 186.3 and 261.2. A Surface Length 3D Wizard window shows step 4, Report.
Figure 4. Example application of surface length plugin to measurement of bony structures of the skull.

Conclusions

Measurement along surfaces is a technique that is not widely known because there are no other tools that enable such measurements. It could be useful in many medical specialties, including vascular surgery. However, further investigation is needed.

Declarations

Amato – Instituto de Medicina Avançada, Departamento de Cirurgia Vascular, São Paulo, SP, Brazil. Financial support: None. Conflicts of interest: No conflicts of interest declared concerning the publication of this article. The study was carried out at Amato – Instituto de Medicina Avançada, São Paulo, SP, Brazil.

Submitted: June 20, 2016. Accepted: October 14, 2016.

References

  1. Amato AC, Benitti DA. Impact of continuing education in vascular images analysis for endovascular planning. J Vasc Bras. 2014;13(4):285-8. http://dx.doi.org/10.1590/1677-5449.0014.
  2. Amato AC, Benitti DA. The new age of endovascular surgery planning. J Vasc Bras. 2011;10(4):279-81.
  3. Rubin GD, Paik DS, Johnston PC, Napel S. Measurement of the aorta and its branches with helical CT. Radiology. 1998;206(3):823-9. PMid:9494508. http://dx.doi.org/10.1148/radiology.206.3.9494508.
  4. Amato Software [site na Internet]. Surface Length 3D - OsiriX Plugin [citado 2016 dez 8]. http://software.amato.com.br/content/surface-length-3d-osirix-plugin
  5. Visualization Toolkit [site na Internet]. vtkDijkstraGraphGeodesicPath Class Reference [citado 2016 dez 8]. http://www.vtk.org/doc/nightly/html/classvtkDijkstraGraphGeodesicPath.html
  6. Cormen TH, Leiserson CE, Rivest RL. Algorithms. Cambridge: MIT Press; 1990.
  7. Kim G, Jung HJ, Lee HJ, Lee JS, Koo S, Chang SH. Accuracy and reliability of length measurements on three-dimensional computed tomography using open-source OsiriX software. J Digit Imaging. 2012;25(4):486-91. PMid:22270788. http://dx.doi.org/10.1007/s10278-012-9458-6.