Introduction

Functional and aesthetically correct custom implants are extremely important for patients with large cranial defects (>100 \(\mathrm{cm}^2)\). Usually, small defects are treated using autograft material due to the high rate of a successful incorporation by defect site tissues. However, problems of donor site morbidity, sufficient donor material, bone tissue quality and crafting the correct shape from the available donor increase dramatically with the size of the defect. In these cases, the preoperative fabrication of an implant should be considered.

Using current medical imaging modalities, in our case 3D computed tomography (CT) and specialized software tools, the anatomically correct design of such implants is possible [115]. The different software tools vary in the user interaction required to design the implants: manual, semiautomatic or automatic. Semiautomatic or automatic methods aid considerably the design of such implants, and a complete and coherent software computer-aided design (CAD) pipeline is of great importance to the user in charge of the production of the implants.

In the next sections, we will present the pipeline blocks and methods of our CAD implant design tool that allows the generation of 3D virtual implants that can be further used to produce the physical implants.

Materials and methods

Several CAD tools exist that can be used for implant design ranging from manual to automatic solutions. The core of our CAD tool is a semiautomatic method that relies on the interpolation properties of the radial basis function (RBF), in particular the thin-plate spline (TPS), and the statistical tools of geometric morphometrics (GM) [16, 17]. The GM methods belong to the more general statistical shape analysis methods, which is the analysis of the geometrical properties of sets of shapes by statistical methods. An introduction to these methods is provided in [18]. Before we describe in detail the blocks that compose the CAD tool pipeline, we will introduce the most important methods and compare to related work. All the defects presented in this work including simulated defects used for evaluation are large skull defects (>100 \(\mathrm{cm}^2\)).

Radial basis function

RBFs can be used as surface interpolators, and the reconstruction properties of the RBFs have been described in detail by Carr et al. [14, 19]; the present work is inspired by these methods and builds upon our previous work [20]. RBFs are used in GM to study shape intersubject differences using deformation grids. In computer graphics (CG), RBFs are mainly used for interpolation purposes to generate smooth functions passing through input data (centers) and can be used, for instance, for hole filling.

In GM, however, RBFs are used to encode differences between shapes, or to map one shape onto another. TPS warping and spline relaxation are among the most used applications of RBFs in GM.

The highly complex structure of the human skull in the facial area exhibits sharp edges and holes so that the presented method can only be used for the neurocranium, where TPS can be employed to minimize bending energy [21].

GM: landmark

A detailed landmark classification can be found in the work of Bookstein [16]. In brief, semilandmarks are points on a structure allowing the incorporation of information from ridge curves and surfaces of the structure, i.e., a skull. Classical anatomical landmarks bear full three-dimensional information, whereas semilandmarks present “deficient” coordinates and are computed on base of the available coordinates. Semilandmarks are treated as missing data and are estimated in order to minimize the bending energy between a template shape and the target shape. Two-dimensional semilandmarks and spline relaxation along curves were introduced by Bookstein [22] work that was extended to three dimensions by Gunz et al. [23]. A curve, surface or fully relaxed semilandmark is a landmark with one, two or three unknown dimensions, and thus, semilandmarks can slide on curves, surfaces and in 3D space. Anatomical landmarks are not relaxed, and they are fully defined.

Fully relaxed semilandmarks are generally used to estimate semilandmarks of regions where missing data occur, i.e., defect sites. We will not differentiate between landmarks and semilandmarks; both will be distinguished by relaxation type: anatomical, curve relaxed, surface relaxed and fully relaxed landmark. Missing landmarks are any of the previous ones that are used to delineate the defect region for implant placement with a slight overlap to correctly compute the implant boundary. In most cases, the complete set of missing landmarks is formed by surface relaxed and fully relaxed landmarks.

GM: methods used

From the suite of GM methods, we use the procrustes average shape (PAS), TPS spline relaxation and generalized procrustes analysis (GPA) [24]. The PAS is computed using a database of 130 anonymized CT exams with axial slices and average slice thickness of 1 mm. Demographically, 73 males (average age 51.14 years, standard deviation 16.28 years, maximum 82 years, minimum 21 years) and 57 females (average age 57.26 years, standard deviation 21.32 years, maximum 97 years, minimum 20 years) are in the data set. PAS and GPA align the population of shapes iteratively and are well known [20, 23]. In every iteration, each specimen is relaxed to the PAS and is aligned using GPA. With all shapes aligned and relaxed, we compute the PAS for the actual iteration. The final PAS should be taken from the final iteration.

The results of this operation are: the PAS (that might happen to be the best fitting shape) and all landmark sets in the database relaxed to the PAS. To compute the best fitting shape, we also make use of GPA; for more details, see sections: measuring the anatomical landmarks, initial landmark estimation and fully relaxed landmark selection. The fully relaxed landmarks are obtained using symmetry information (if possible) and the best fitting shape.

Related work

The closest work to ours is by Min and Dean [810], who also use landmarks and a TPS warp [22] for the reconstruction. Despite a basically similar concept, our approach differs particularly with respect to the determination of the defect boundary, implant triangle mesh generation and the number of specimens that provide the estimate for missing landmarks. The present approach, however, goes beyond their work by incorporating symmetry and the best fitting shape instead of either symmetry or mean shape. We also used the TPS spline relaxation instead of the TPS warp providing a more accurate positioning of the landmarks, as explained later on in the text. The last main difference is that we developed a method to find the best fitting shape from our database; in this paper, we will show that using the best fitting shape combined with symmetry is in most cases superior to just using a mean shape.

The main difference to Carr’s surface interpolation with RBFs for medical imaging [14] is that the missing landmarks and centers of the RBF of the defect site are obtained by GM methods. Carr’s surface interpolation uses the vertices of the defect’s boundary region as the centers of the RBFs.

Wu et al. [6] used anatomical constrained deformations based on reference models (3D-matching and adaptive deformation) and compared their method against RBFs. They found that RBFs provided worse results as only the boundary information was used as centers for the RBFs.

Finaly, Lüthi et al. [5] showed that Procrustes alignment is used to generate a statistical shape model using probabilistic principal component analysis, and Liao et al. [2, 4] used active contours and image registration for the reconstruction. These methods can be used also to estimate missing data; however, they do not allow to incorporate symmetry information, one of the key sources of information of our method.

CAD design pipeline

The CAD tool is built upon the visualization toolkit (VTK) [25], and the design pipeline is shown in Fig. 1. The process starts by performing a manual threshold segmentation (a value of 250 was used in all cases) of the 3D CT DICOM data. Since the region of interest is the largest connected bony region, all small bone fragments and artifacts have to be removed.

Fig. 1
figure 1

Implant design pipeline

Fig. 2
figure 2

Anatomical landmarks (cyan) as seen from different views. The tubular structure is a catheter for ventricular drainage and is shown as it has a Hounsfield units similar to bone

The next step is to manually measure the anatomical landmarks, followed by an initial estimate of all remaining landmark positions. In the defect region, the fully relaxed landmarks are estimated using the TPS relaxation. After n relaxation iterations, the missing landmarks are manually selected and used for generating the outer surface mesh of the implant. The outer mesh serves to calculate the mesh of the implant’s inner surface. Furthermore, the surface has to be fitted to the defect boundary. This implies identifying the triangles of the defect boundary and finally to connect both the inner and the outer meshes to the final implant mesh.

Removal of artifacts and fragments

Artifacts and fragments removal is done with the vtkImageSeedConnectivity, which is a connected component labeling algorithm [26, 27]. In our case only CT volumes of skulls are used, in which the largest connected region in the (multiplanar reformatted) medial sagittal plane corresponds to the skull and not to a bone fragment or an artifact. In the medial sagittal slice, every pixel (actually voxel) above the threshold is tested to find the largest connected region. Once the initial region is found then the remaining slices are processed, in this case in 3D. Finally, the largest connected region is kept and all other removed.

Measuring the anatomical landmarks, initial landmark estimation and fully relaxed landmark selection

Seventeen cranial anatomical landmarks are measured; some are standard landmarks for GM studies [28, 29]; all are listed in Table 1. Two sets of standard landmarks are nonstandard: (8, 9) and (12, 13) were introduced to form a more complete landmark distribution around the skull.

Table 1 Anatomical landmarks used in this study

A ray-casting approach [3032] was used to measure/set the landmarks via a trilinear interpolated ray sampled at 0.05 mm. Figure 2 shows some of the anatomical landmarks on the skull. An initial estimate of the semilandmarks was obtained applying different projection schemes, by using different sets of anatomical landmarks (according to the anatomical location) to generate projection planes or lines where rays are casted to the surface.

This is exemplified on one of these regions, the region defined by the bilateral landmarks fronto temporale and zygomatic root. These landmarks define a plane that allows defining circular sampling lines perpendicular to it with the respective center at midline, defined by the line connecting the centroids of the two pairs of bilateral landmarks. For demonstration purposes, a few sampling and initialization points on the boundary (green and blue points, respectively) are shown. This ray-casting is defined via the projection centers along the midline (red points in Fig. 3) and the corresponding circular sampling points (green dots in Fig. 3). Corresponding (surface relaxed) landmarks are generated if the ray reaches the last voxel above or equal to a threshold; else, the landmark is considered fully relaxed. The initial estimates for a complete skull (727 landmarks) are shown in Fig. 4. Missing anatomical landmarks need to be estimated for defective skulls. All missing landmarks can be estimated via symmetry or else via the best fitting shape (defined below). To estimate these anatomical landmarks via symmetry, we first calculate the side (left or right) of the skull that has most fully relaxed landmarks; this will be defined as target and the opposite side as the template. The bilateral missing landmarks are excluded. The template set will contain all the defined landmarks of the corresponding side, while the target set the symmetric points; if these are missing, they are set to fully relaxed. In this case, the landmarks do not slide (explained below—only one iteration is required). After the TPS relaxation, the fully relaxed landmarks will hold the new landmark positions. This procedure is repeated twice, for each side of the skull. For the bilateral missing landmarks, the best fitting shape is used, by setting the missing landmarks to fully relaxed and performing TPS relaxation to obtain their position. Once the anatomical landmarks are known, the remaining landmarks can also be obtained in a similar fashion.

Fig. 3
figure 3

Projection scheme: the solid line represents the plane formed by the 4 anatomical bilateral landmarks fronto temporale and zigomatic root (light blue). The dark blue points are sampling positions along the lateral boundaries used to define the semicircles orthogonal to the plane. The green points are sampling positions along the semicircles, and the red points are sampled in the midline. The projection is started at the red points radially in the direction of the sampling points (arrows). The rays stop at the last voxel above or equal to threshold, providing the new landmark positions

Fig. 4
figure 4

Landmarks placed on the skull surface using the initial estimation method (727 landmarks). The initial estimation uses anatomical landmarks (cyan) to define projection schemes used to place the surface landmarks (violet)

In the symmetry case, the TPS is used considering that the available landmarks (surface landmarks) are not relaxed; they do not slide, because surface normals are pointing generally in opposite directions for bilateral landmarks; this means that the tangent planes are not equivalent, and consequently, the sliding is not possible. Once we obtain the landmark estimation of one side, we have to repeat the operation for the remaining side.

The best fitting shape is obtained via GPA alignment of the patient shape and all relaxed shapes in the database including the PAS without considering the fully relaxed landmarks. The set (patient shape, database shape or PAS) with the smallest root-mean-square error (RMSE) between the landmark positions of the patient shape and each shape in the database is taken as the best fitting shape.

Some landmarks still exist that have to be set manually to full relaxation, c. f. Fig. 5, e.g., at the inner surface of the skull or at the boundary region of the defect.

Fig. 5
figure 5

Initial landmark estimation of a defective skull. Landmarks on the inner surface of the skull and on the boundary region of the defect need to be selected manually to full relaxation (arrows point to some of these landmarks)

TPS relaxation

The TPS relaxation is used to obtain the PAS, to estimate missing data and to slide surface landmarks to positions with minimum bending energy. All skulls in the database are complete (with no defect) with anatomical and surface landmarks. For the relaxation calculations, the anatomical landmarks are considered as surface landmarks. Setting anatomical landmarks to surface relaxed landmarks will allow sliding all the landmarks to positions providing minimal bending energy between target and template shapes. Moreover, user subjectivity in landmark measurement is eliminated. Some TPS-generated landmarks might be slightly misplaced with respect to the correct anatomical sites (mainly due to the user initial setting); however, they are guaranteed to be in homologous positions.

For analyzing defective skull data, the anatomical landmarks are also set to surface relaxed landmarks. All available surface landmarks are used, and the best fitting shape is iteratively searched.

GM is frequently performed with TPS relaxation on triangular meshes, but never, as far as we know, was the voxel information used directly. The process is started by computing the surface relaxation tangent plane where the landmarks can slide. The normal of the plane can be computed with a 3D extension of the 2D Sobel operator [33] that uses trilinear interpolation to generate isotropic data. The plane can be defined using the normal and the landmark position. Some tangent planes and the normal vectors at the landmarks of a complete skull are displayed in Fig. 6.

Fig. 6
figure 6

Normals (green lines) of the local tangent planes (yellow) for each landmark

Landmark relaxation slides the landmarks on the tangent planes so that they eventually move off the anatomical surface under consideration and need to be projected back on the surface. It is essential for the whole process that this projection generates landmarks on the outer surface. This is assured by sampling around the landmarks in a \(101\times 101\times 101\) voxels bounding box to classify whether voxels are in the outer surface or not: its value has to be at least the bone threshold and at least one of its 26 neighbors has to be below threshold. All other possibilities are classified as non-boundary voxels, ideally providing two sets of voxels corresponding to inner and outer surfaces, respectively. For the following, the outer surface only is considered. The new landmark position will correspond to the voxel with the smallest distance to the previous landmark position.

Exterior surface interpolation using 2D RBF

The interpolation of the exterior surface is done with a 2D RBF [14] that allows the construction of a depth map centered at the (manually selected) missing landmarks of the defective skull. In order to close the implant boundary to the rest of the defective skull, some of the missing landmarks are placed on the bone, see later.

The depth map requires a plane that allows the correct implant reconstruction. This plane is defined by the normal vector chosen as the actual direction of the surgical implant insertion process and a point at the centroid of the missing landmarks. One point of this vector is defined as the centroid of all the landmarks, and the other is the centroid of the missing landmarks. The exterior surface (Fig. 7) is obtained by evaluating the depth map at points corresponding to the vertices of the mesh on a regular triangle grid (\(z = 0\)) with adaptable numbers of columns and rows in order to create triangles greater than the largest neighbor voxel distance.

Fig. 7
figure 7

Exterior mesh obtained using the 2D RBF. The yellow points are missing landmarks, and the other points surface landmarks, the surface is shown in cyan

Triangle classification and connectivity test

The connectivity test is crucial for implant design. The mesh is sampled regularly along the triangle surface and interpolated trilinearly using its eight neighbor voxels. Each triangle is labeled:

  1. “1”

    In space: All sampling gray values are below the threshold.

  2. “2”

    Inside the bone: All sampling gray values are above the threshold.

  3. “3”

    Else: Mixed.

All triangles with the label “2” intercept the outer surface of the skull and can be discarded. The implant corresponds to the largest connected region formed by triangles with label 1 (cyan region, Fig. 8) that can be chosen simply by counting its triangles on the regular grid.

In (Fig. 9), the two possible test configurations [34] with a maximum of twelve connected neighbors (gray triangles) are presented, and the configuration to be used is dependent on the triangle type: upper or lower triangle.

Fig. 8
figure 8

Outer surface mesh as the largest connected region (selection of triangles with value “1”). The red triangles are directly connected to the cyan region and have value “3” (boundary triangles). The yellow points and violet points are fully relaxed and surface relaxed landmarks, respectively

Fig. 9
figure 9

Two test configurations used for triangle connectivity, depending on the type of triangle tested: upper (bottom) or lower (top) triangle. The green circles are the corresponding vertices used to search for the connected neighbor triangles (gray)

This test, similar to the connected components labeling algorithm [26, 27], is applied to the triangles; if no neighbor triangles share the value, a new group is formed. If only one shares the label, it is added to this labeled group; if more than one connected triangles share the same label, a new group is created and groups are merged.

Boundary fitting

The boundary triangles (red triangles, Fig. 8) that have value “3” are directly connected to the triangles of the largest connected region. Triangles sharing only one edge with (i) the remaining boundary triangles and (ii) the triangles of the largest connected region are removed, and now all boundary triangles have at least two connecting edges, and the fitting process can be initialized.

Fig. 10
figure 10

Placement of the boundary triangles outside the bone. (Top) Sampling along the connected edges. (Bottom) Sampling the non-connected edge (several iterations might be performed, updating the edge position, until an edge containing only outside sampling points is found). The gray area represents the bone defect area, the red dots represent the sampling points inside, and the blue dots represent the points outside. The orange arrows represent the direction of the edges sampling, and the small green arrows represent the sampling performed with a direction parallel to the implant vector; this is used to provide a small gap between bone and implant; in our case, a maximum distance of 1 mm from the origin sampling point was used. If the sampling positions along these directions contain inside sampling points, then the correspondent origin sampling point is considered also an inside sampling point, otherwise an outside sampling point

In order to fit the implant to the defect region, it is necessary to ensure that its boundary triangles are completely outside the bone. The process starts by independently sampling along the inner edges of border triangles of the implant as depicted in Fig. 10 (top). The sampling is stopped when a sampling position below threshold (outside of bone) is found; at the previous step, there is still some overlap (Fig. 10, top right). Next, the border edge is sampled (Fig. 10, bottom left), if the edge has “inside sampling points,” then the edge gets discarded and the triangle vertices of the new edge are updated; this process is repeated until one edge with only “outside sampling points” is found. Furthermore, in order to produce a small gap between bone and implant, sampling was performed with directions parallel to the implant vector (Fig. 10—green arrows); in our case, a maximum distance of 1 mm from the origin sampling point was used, but this can be chosen freely to control the gap size that allows accounting for accumulated errors and ease intraoperative placement (Fig. 11). If the sampling positions along these directions contain “inside sampling points,” then the correspondent origin sampling point is considered also an “inside sampling point,” otherwise an “outside sampling point.”

Fig. 11
figure 11

Exterior implant surface after boundary fitting

Fig. 12
figure 12

Projection of the outer surface at different sampling rates to obtain the inner surface

Creating the implant interior surface and its connection onto the exterior surface

To correctly represent the inner profile of the boundary region, a much higher triangle density than on the outer surface is needed.

Figure 12 shows the two-dimensional sketch of the effects of different sampling rates. The inner surface of the implant does not resemble the outer surface of the bone at locations where the implant should fit: Red lines (implant) are seen to intersect the bone. This can be attributed to insufficient sampling [35, 36]. We use a triangle subdivision scheme [37] for the outer surface that stops if a maximum set of divisions or if all triangles edges are shorter than the minimum voxel edge distance. The implant outer surface vertices are ray-casted toward the bone surface along rays parallel to the implant vector direction (Fig. 12), similar to [3032]. A maximum implant thickness can be set. For safety purposes, the rays are pushed back by 0.2 mm from their stopping points.

The last step is to connect inner and outer surfaces. First, the outer boundary edge is broken up to match the number of vertices on the inner surface with the help of the previous process, and the vertices are connected correctly (Fig. 13).

Fig. 13
figure 13

Connecting inner (green) and outer (blue) surfaces

Evaluation

The TPS spline relaxation is known to converge delivering sets of landmarks that minimize bending energy between the shapes involved. We used the evolution of the RMSE between iterations as an indicator of convergence. This test was applied to all skulls in the database, obtaining a combined RMSE of all possible landmark sets. And also the RMSE values for one complete skull wich is not from the database, one skull with an unilateral defect (but with all anatomical landmarks) and one skull with an bilateral defect (three anatomical landmarks are missing). The PAS was not tested because it depends on the alignment of all shapes in the database producing a slightly different PAS pose at every iteration. Since all shapes of the database are being tested, the PAS test would be redundant, because if all shapes converge, also the mean shape should converge.

Fig. 14
figure 14

Artificial skull defect (replacing surface landmarks (violet points) by fully relaxed landmarks (yellow points) and performing 10 TPS relaxation iterations). The region covered by the artificial defect involves the parietal and occipital bones

The next test was an evaluation of the landmark position after relaxation, using four different approaches by combining testing symmetry, best fitting shape and PAS. The combinations are:

  1. 1.

    Symmetry and best fitting shape

  2. 2.

    Symmetry and PAS

  3. 3.

    No symmetry only best fitting shape

  4. 4.

    No symmetry only PAS

Five complete skulls not contained in the database were used. Surface landmarks were manually selected and converted to fully relaxed landmarks at different regions of the skull to simulate defects. Ideally, these landmarks should be placed on the skull surface after relaxation. We computed the mean error (\(\mu \)), maximum error (max) and percentage of landmarks with error less or equal to 1 mm. The last metric was chosen because the most similar previous work have used it, enabling a comparison. The errors were calculated for fully relaxed landmarks only and were measured as the distance from the estimated positions to the closest point on the exterior skull surface (ground truth). Ten iterations of the TPS relaxation were performed. Region A includes the parietal and occipital bones; region B the frontal, sphenoid and temporal bones; region C the frontal and parietal bones; region D the frontal bone(including one orbit); and finally region E the frontal bone (including both orbits). An example of one artificial skull defect (yellow landmarks are fully relaxed) is shown in Fig. 14 corresponding to Specimen 2 region A.

Results

The results of the convergence test can be seen in Table 2. In all cases, after approximately 10 iterations, the RMSE drops to considerable small values; thus, the method is converging correctly, with the calculated landmark sets properly representing the shape of the skull region under consideration, and 10 iterations seem to be sufficient.

Table 2 Landmark convergence

The results of the landmark position evaluation after relaxation are presented in Fig. 15. The overall means are presented in Table 3. From the results, we can observe that when using symmetry information, a higher accuracy was achieved, but there was no significant difference between using the best fitting shape or the PAS. The values of the four tests presented prove the robustness of this method, even in the worst case (no symmetry only PAS—Region E, Specimen 3) a mean error of 1.01 mm, maximum error 4.39 mm and 66.17 % of the fully relaxed landmarks have an error less or equal to 1 mm.

Fig. 15
figure 15

Distance from estimated positions to the closest point on the exterior skull surface: mean error (\(\mu \)), maximum error (max) and percentage of landmarks with error (\(\le \)1 mm). The calculations were performed with the results of the four tests: symmetry and best fitting shape, symmetry and PAS, no symmetry only best fitting shape and no symmetry only PAS. Ten iterations of the TPS relaxation were performed. Regions: A parietal and occipital bones: B frontal, sphenoid and temporal bones; C frontal and parietal region; D frontal region including one orbit; and E frontal region including both orbits. Five different specimens were tested. In the graphs, (A1) corresponds to Region A, specimen 1, and the remaining cases follow the same convention

From all the cases studied, the maximum mean error was approximately 1 mm, a value satisfactory for the clinical problem we are considering.

Two examples of implants designed by our software are presented in Figs. 16 and 17. An implant for a bilateral defect and a unilateral defect is shown. In Fig. 17, the skull and implant are clipped axially to allow optimal visualization of surface fitting.

Discussion

The TPS methods require landmarks that are initially placed in anatomical locations. TPS relaxation is used to optimize the landmarks position by allowing them to slide on the surface of the skull to minimize the bending energy. After the relaxation, the landmark positions can be compared to the landmarks of the skulls in the database. As shown in Table 2, the landmark sets within a few relaxation iterations have minimum variation between iterations and the calculated landmark sets properly represent the shape of the skull region under consideration. The small differences that are still present in the last iterations can mainly be attributed to CT resolution affecting the surface tangents.

The values of the four tests presented in Fig. 15 prove the robustness of this method; even in the worst case (no symmetry only PAS—Region E (frontal bone), specimen 3), a mean error of 1.01 mm, maximum error 4.39 mm and 66.17 % of the fully relaxed landmarks with an error less or equal to 1 mm are found. Some regions provide better estimations; Region A (parietal and occipital bones) and Region E (frontal bone) are worst. The reason Region A produces less accurate results is due to a smaller density of landmarks in comparison with other regions; this should be corrected in the future. Regarding Region E, it is expected to be the most difficult region to estimate [38].

It can be expected that symmetry and the best fitting shape provide the best solutions. But as Table 3 shows, the values obtained are almost similar to those obtained when using symmetry and PAS. This might be due to a suboptimal population of our database. Our results evidence that symmetry provides better estimates. The complete skulls used for the evaluation process were not particularly asymmetric; they are representative of the normal population, though exceptions could of course exist especially when the patient suffered trauma or pathologies producing some levels of asymmetry. Our method is able to compensate to some extent for asymmetry cases because it incorporates information of the landmarks surrounding the defect; this way constrains the process to obtain the missing landmarks. Furthermore, for the symmetry cases, there are always two sets of points source and target (from opposite sides of the skull—each landmark is labeled either left of right). The missing landmarks are estimated using the TPS that uses the least bending energy to deform these shapes, i.e., a combination of information from both sides is used. This is in fact the main difference between our method and traditional symmetry methods that typically only use information from the opposite side of the defect and try to fit it to the defect side.

Wu et. al [6] reported an average of 81.6 % (68–96 %) surface points with an error less than 1 voxel. In our case, using symmetry and the best fitting shape, an average of 89.29 % (72.64–100 %) missing landmarks with an error less or equal to 1 mm was obtained. Wu’s method used a mixture of small and large defects and reported for the large defects an average of 80.5 % surface points within 1 voxel error.

Table 3 Overall means of the: mean error (\(\overline{\mu }\)), maximum error (\(\overline{max}\)) and percentage of landmarks with error ( \(\overline{\le 1}\)mm) , using the four different methods
Fig. 16
figure 16

Bilateral defect implant

When compared to symmetry methods like mirrored volume, our method can look more complicated. Our method requires that the user identifies anatomical landmarks (17 points), and once the landmark initial projections have been performed, it is also necessary to select the missing landmarks, while in the mirror volume techniques, the user must try to fit the mirrored volume to the defect area and most likely perform several manual postprocessing steps before the implant shape is finally obtained. It is crucial here to highlight the user-dependent dimension of such manual postprocessing and the related poor reproducibility and repeatability of such method, not to mention the time required to perform such adjustments. Though this manual approach might look less complex, we think that this approach can reveal itself as complex and time-consuming without providing systematic robust results. Ultimately, if the defect is bilateral, the mirror volume cannot be used.

The computation of the implant vector could be performed using alternative methods for irregularly distributed landmarks. But the present approach is simple and suffices for the majority of cases and allows for manual correction.

The boundary fitting method is not intended to produce the most accurate approximation. The goal, instead, is to obtain a smooth boundary free from sharp edges that follows the main contours of the boundary with a surgical safe margin.

Fig. 17
figure 17

Unilateral defect implant. Axially clipped to allow visualizing surface fitting

All applied methods were designed for the 2D RBF case, including the connectivity optimizations. One might argue to use 3D RBFs instead [19, 39], but for the majority of cases investigated, 2D RBFs are sufficient. Only for cases where ambiguities in the depth map occur, most likely to happen at orbital regions, 3D RBFs will be the method of choice. Another advantage of the 3D RBFs is that missing landmarks do not have to be selected as the 3D RBFs provide a signed distance measure for testing whether each point (voxel) is inside, outside or on the boundary of the volume. With this signed distance measure, all points can be classified.

Fig. 18
figure 18

Reconstruction limitation. A part of the frontal bone forming the top of the orbit is missing, resulting in a leaking effect during the connectivity test

At this time, this method has two limitations. First, if the defect area is not or is insufficiently covered by the landmark set, the reconstruction process will not be ideal and may possibly fail. Second is if a leaking effect occurs during the connectivity test due to empty regions. Figure 18 shows such a case (the frontal bone forming the top of the orbit is part of the defect area). This problem can possibly be overcome by using 3D RBFs.

The present approach, however, is simple and computationally cheap and can also be used to reconstruct other bony regions with smooth surfaces such as the femur. In an anthropological context, the method could be valuable for reconstructing fragmentary bone remains.

Conclusion

An original and innovative method for constructing implants to cover large uni- or bilateral defects to the neurocranium is presented by combining symmetry and best fitting shape.

The whole design process can be used as a CAD software that allows producing model files of the implant for fabrication.