Precise preoperative planning is a vital principle of success in orthopaedic surgery. Arguably, no field in medicine is as dependent for its success on accurate planning and implementation of alignment correction and implant placement. Traditionally, preoperative planning has been performed on standard radiographs with various techniques, including the use of clear plastic templates [7–9, 11]. Recently, digital templating was proposed as a method to electronically overlay templates from a digital library on clinical radiographs for arthroplasties [3]. The advocates of this technique cite the wide variety of available templates, the speed and precision of the technique, and elimination of hard-copy printouts of radiographs with their associated cost. The disadvantages of digital templating are the dependence on the digital library, cost of the software, and limitations in software design for each application.
The purposes of this study are to describe (1) the techniques used in deformity analysis and preoperative surgical planning using standard radiographs for joint arthroplasty and corrective osteotomies of the extremities, (2) the use of CT scans to analyze rotational deformities in the presence and absence of joint prostheses and in planning corrective rotational osteotomies or revision joint replacement, and (3) the techniques for analyzing angular deformities of the spine. For all these applications, the specific use of a widely available image analysis software is discussed.
|
Techniques/Steps |
|---|
|
1. Placement of lines |
|
A. Multiple layers can be created by going to the layer menu at the top and selecting “New” and then “Layer” |
|
B. Select the “line tool” (Fig. 1, large white arrow) on the “toolbar” |
|
C. Draw the path for the lines by pressing the left mouse button and dragging the mouse to the end of the line and then releasing the left mouse button |
|
D. Finalize the line on the new layer by placing the cursor over the line, pressing the right mouse button and selecting “fill path”. The line will now be placed definitively on the new layer established as shown in 1A |
|
2. Angular measurements |
|
A. Angles can be measured by selecting the “measure tool” (Fig. 1, small black arrows) |
|
B. To measure an Angle ABC, press the left mouse button and drag from Points A to B |
|
C. At this point, a linear measurement is given at the top of the screen |
|
D. Keep the cursor over Point B and press the “Alt” button; the ruler is then converted to an angle icon on the image |
|
E. Press the left mouse button again and drag the mouse to Point C |
|
F. At this point, an angular measurement is given for the Angle ABC in the "Info" window (under "Window" menu at top of screen) |
|
3. Placement of text |
|
A. Creating a new layer and then selecting the “text” tool (Fig. 1, letter T) |
|
B. Press the left click button and drag the mouse to create a text box; text can be typed into the text box |
|
C. If text is not visible, be sure the font is large enough to match the size of the image and change the color to improve contrast |
|
Procedures/Steps |
|---|
|
1. Image and template software entry |
|
A. Scan template overlays for desired digital templating using a standard tabletop scanner |
|
B. Convert images to black and white by selecting the “Image” toolbar followed by “Mode”; select “Grayscale” |
|
C. Save template image files in separate folders as jpeg (.jpg) files (select “File” toolbar followed by “Save as” and select a file name with a “Format” as “JPEG”) |
|
D. Enter desired radiographs, CT images, or MR images into software by directly downloading them or by scanning them |
|
E. In cases of standard radiographs, some form of calibration template must be placed on the skin at the level of the joint |
|
F. In cases of CT or MRI, the calibration bar from the scanner must be included on the image |
|
G. Select the “Window” menu on the Photoshop menu window at the top of the screen containing the items: “File,” “Edit,” “Image,” “Layer,” etc |
|
H. Be sure both “show tools” and “show layers” are selected |
|
I. Collect and save all images used for that specific case on the computer desktop or in a separate folder |
|
J. The preoperative radiograph is opened as the initial image |
|
2. Placement of template image on preoperative radiograph |
|
A. The desired template image is opened in the software |
|
B. The template image is inverted to make it more visible by selecting the “Image” menu, followed by “Adjust,” and “Invert” or by pressing Ctrl I |
|
C. From the Photoshop toolbar (Fig. 1), select the top left “Marquee Tool” (black arrow) in the shape of a rectangle |
|
D. On the template image, the “Marquee Tool” is used to outline the template along with a 10-cm segment of the calibration ruler found on most implant templates |
|
E. Absence of a ruler on the template makes size calibration impossible |
|
F. Press Ctrl C to copy this portion of the template image |
|
G. Select the preoperative radiograph image and press Ctrl V to paste the desired portion of the template image onto the preoperative radiograph image |
|
H. At this point, under the “Layers Palette” (Fig. 2), one will see a new layer (that of the template image) |
|
I. Toggle the visibility of this layer by pressing the “visibility toggle,” which appears as an eye on the Layers Palette (Fig. 2, black arrow) |
|
J. Change the opacity of the new template image by selecting the template layer on the Layers Palette (Fig. 2) and using the Opacity tool on the upper right of the Layers Palette (Fig. 2, large black arrowhead); slide it to 50%; at this point, the template image becomes partially transparent |
|
K. Change the brightness/contrast of the new template image by selecting the template layer as described previously and selecting the “Image” toolbar followed by “Adjust”; select “Brightness/Contrast” |
|
3. Transforming the template image |
|
A. Next, the size of the selected portion of the template image is adjusted to the radiograph |
|
B. Press Ctrl T to “free transform” the template layer |
|
C. Once this has been selected, a rectangle encloses the entire template image layer |
|
D. The rectangle can be resized either vertically or horizontally by passing the cursor over any of its sides, pressing the left mouse button, and dragging the mouse |
|
E. The rectangle can be rotated by passing the cursor over its corners, pressing the left mouse button, and dragging the mouse |
|
F. Ensure the magnification change seen at the top of the page is equal for both the height and width to avoid template image distortion |
|
G. Press the Enter button once you have positioned and resized the template image appropriately |
|
H. Repeat the “free transform” process as necessary |
|
4. Repositioning the template image |
|
A. Select the layer of the template image in the Layers Palette (Fig. 2, template image not shown) |
|
B. Use the Move tool in the top right of the Photoshop toolbar (Fig. 1, large black arrowhead) |
|
C. Left click on the template image and drag it to the desired position with the mouse |
|
5. Calibrating the template image |
|
A. Rotate the template image, resize, and reposition it as directed in 3A–E so that its ruler portion superimposes the calibration of the preoperative radiograph; for example, the 100-mm ruler should be exactly matched to the 100-mm radiographic marker on the skin |
|
B. Once the sizing has been selected, the template image can again be rotated and repositioned (but not resized) and placed in the desired position over the bone |
|
C. The same technique can be performed for multiple templates (ie, femoral and acetabular for THA, femoral and tibial for TKA, calibrated rulers, etc) |
|
D. While working on a new template, make the previous template layers invisible by toggling the layer visibility icon on the Layers Palette (Fig. 2, black arrow) |
|
Steps |
|---|
|
A. Copy and paste desired cuts as separate layers into new image document (Fig. 2) |
|
B. Make all images invisible by toggling the layer visibility icon on the Layers Palette (Fig. 2, black arrow) |
|
C. Alter the opacity of the image listed higher on the layer list to 50% (Fig. 2, black arrowhead) |
|
D. The images will be superimposed at this point |
|
E. Draw lines along the axes that are to be measured (eg, femoral neck axis, transmalleolar axis, etc) as directed in general techniques (Table 1) |
|
F. Measure angles as directed in general techniques (Table 1) |
A second objective in planning TKA using digital templating is to select the size of the implants preoperatively. This can be performed by scanning each of the templates into a separate image file and calibrating the templates to the calibration markers placed on the radiograph (Table 2). The preoperative plan can be performed by overlaying the template images digitally on the radiographs (Fig. 3C). This technique allows a close approximation of the ultimate implant sizes preoperatively (Fig. 3D–E).
The purpose of this article is to provide technical guidelines for use of a widely digital imaging software program to achieve three objectives: the use of deformity analysis and preoperative surgical planning of standard radiographs in joint arthroplasty and corrective osteotomies, the use of CT scans to analyze rotational deformities, and the analysis of angular deformities of the spine. Using these techniques, preoperative planning can be performed from anywhere and at any time as long as the images can be scanned or downloaded directly from the radiographic archive into the software program. The critical requirements of any software program used for this application include the ability to select and resize certain segments of any image, the use of multiple layers, and the ability to alter the opacity of various layers. The same approaches can be used for essentially any orthopaedic procedure requiring linear or angular correction and/or implantation of size-specific implants.
The approach suggested has some important limitations. The techniques are limited to two-dimensional imaging and each view needs to be templated independently. This limitation makes management of complex three-dimensional deformities difficult, if not impossible. Another limitation of this technique is that the accuracy and precision have not been validated. The techniques require a baseline investment of time from each operator with a variable learning curve. This can lead to insufficient interobserver and intraobserver reliability. Finally and most importantly, when used in preoperative planning, the techniques presented here provide a tool to place the implants and perform osteotomies based on a preoperative goal. However, the ideal position of implants and extremity alignment in arthroplasty and corrective osteotomies are points of ongoing debate.
Adobe® Photoshop® has been used in some medical and dental applications. Chalazonitis et al. [5] detailed a method to optimize images of radiographs obtained with a digital camera using Photoshop® software. They described several of the techniques discussed in this article. However, the emphasis of their study was not on preoperative planning and/or the use of the overlay template technique discussed in this article. The segmentation of MR images has been a difficult challenge often requiring either semiautomated or fully manual segmentation of images to separate bone from the surrounding soft tissues. Park et al. [13] described the use of special functions of Photoshop® software to perform semiautomatic segmentation of MR images. They then used these segmented images to make three-dimensional reconstructions of various anatomic structures, including the skin, bones, digestive tract, respiratory tract, urinary tract, cardiovascular system, and nervous system. They were able to fulfill their objective of substantially accelerating the segmentation process over manual segmentation. In yet another medical application of the same type of software, Carvalho et al. [4] described a digital subtraction radiography technique to evaluate chronic periapical dental lesions. The progression of these lesions was followed with serial radiographs. Traditionally, these evaluations have been qualitative. However, by using the digital subtraction technique, the authors were able to determine if the lesions were healing or expanding and also to quantify the size of the osseous lesions at each time point. The techniques for image rotation, sizing, and the use of layers are similar to those discussed in the current article.
Despite the limitations, the techniques presented here recapitulate the same techniques that have been used for decades using planning tools such as tracing paper, plastic templates, and printed radiographs. The ultimate objective of this study was to show that a universally available digital imaging software package can be used for a wide variety of orthopaedic applications, including analysis of deformities, size-specific templating of implant-related procedures, and planning of corrective surgical procedures. With progression of the digital age and gradual elimination of hard-copy radiographs, digital deformity analysis and surgical planning may soon become the standard technique.









