1 Introduction

The surface of a component is an interface which limits the body of the component and separates it from the surrounding medium [1]. It governs the functional behavior of the product, whether that be a mechanical, thermal, chemical or biological property, all of which are of tremendous importance in the tribology of any system. Within a tribological system, contact mechanisms are fundamental and the geometry of contact depends strongly on the surface topography [2].

In many engineering applications, the contact between two surfaces is non-conforming, i.e., the contact area is very small when compared with the geometry of the bodies in contact. Even in situations between conforming contacts, the contact between the asperities that compose the surface topography is known to be non-conforming [3]. Historically, statistical models have been used to predict contact parameters which have contained many assumptions about asperity geometry and height distributions, and in which the asperities on a rough surface were modeled as an array of hemisphere or paraboloid bumps [46]. These models are highly conceptual and thus a geometrically complicated surface is usually represented by a few statistical parameters. Although the statistical modes result in simple relationships and are able to predict important trends in the effect of surface properties on the real area of contact, they are limited because of over simplifying assumptions about asperity geometry and height distributions, the difficulty in determination of statistical roughness parameters [7, 8].

In the 1970s, Nayak [9] and Sayles and Thomas [10] initially used the five nearest-neighbor ordinates in areal surface data to define a peak or pit. In order to investigate contact phenomena of random surfaces, Whitehouse and Phillips [11] also initially defined three areal parameters: summit density, summit height, and summit curvature. These definitions, however, depended on sampling density, and the results could be distorted by measurement noise. In the 1990s an integrated method for the areal characterization of surfaces was explored by Stout et al. [12], which led to the so-called “Birmingham 14 parameters”. Although these parameters could provide a general description of the rough surface in a statistical sense, they neglect the local complexity of surface geometries, which determines the actual contact areas. The last decade saw more novel methods focusing on topographical features [13, 14]. The surface is treated as a collection of Maxwellian features, such as hills, dales, saddle points, ridge lines, and course lines and it is partitioned into a series of regions that contains individual topographically significant features. The segmented geometrical features can then be analyzed individually or statistically.

The segmentation method is a major progress in characterizing surface geometry and a useful tool in analyzing contact phenomena. However this method, in common with statistical methods, only addresses a single independent surface, whereas contact clearly involves the interaction of two mating surfaces. It therefore follows that the influence of the opposite surface should be taken into account while evaluating the master surface. This paper proposes a novel morphological method to simulate the contact of two interacting surfaces. The interaction is simulated by rolling a ball with a given radius, which is sized to simulate the largest reasonable radius at a contact e.g., peak curvature, upon the underlying surface. The contact points of the rolling ball against the rolled surface are then captured. This serves as an indication of surface summits and surface portions which are in real contact.

2 Morphological Operations

2.1 Morphological Operations in Image Processing

Mathematical morphology is a mathematical discipline which aims at extracting the shape and form of objects in an image by probing the image with the structuring element [15].

Four basic morphological operations, namely dilation, erosion, opening, and closing, form the foundation of mathematical morphology. Dilation combines two sets using the vector addition of set elements. The dilation of \(A\) by \(B\) is:

$$D(A,B) = A \oplus \mathop B\limits^{ \vee } . $$
(1)

where \(\mathop B\limits^{ \vee }\) is the reflection of \(B\) through the origin of \(B\).

Erosion is the morphological dual to dilation. It combines two sets using the vector subtraction of set elements:

$$E(A,B) = A \ominus \mathop B\limits^{ \vee } , $$
(2)

where

$$A \ominus B = \overline{{\bar{A} + B}} . $$
(3)

Opening and closing are dilation and erosion combined pairs in sequence. The closing of \(A\) by \(B\) is obtained by applying the dilation followed by the erosion,

$$C(A,B) = E(D(A,B),\mathop B\limits^{ \vee } ). $$
(4)

The reverse order generates the opening:

$$O(A,B) = D(E(A,B),\mathop B\limits^{ \vee } ). $$
(5)

2.2 Morphological Operations in Surface Metrology

Morphological operations are universal in the field of surface metrology. The scanning of a workpiece surface using a tactile probe is a very common practice in geometrical measurement and a hardware implementation of morphological dilation operations [16]. The workpiece surface as the input set is dilated by the structuring element, in this case the spherical probe tip, to generate the morphological output, the measured surface, see Fig. 1.

Fig. 1
figure 1

The dilation of the workpiece surface by a spherical tip

It could be noticed that the measured data are not the real surface data, but the tip center data. To reconstruct the real surface, an ideal sphere with the same size to the probe tip is employed to roll over the dilated profile, the locus of the sphere center is treated as the real mechanical surface. See Fig. 2. This treatment is in essence a morphological erosion operation. The two operations, a dilation followed by an erosion, are combined to yield a single effect, i.e., the closing operation. The resulted closing envelope overlaps with the profile peaks while it hovers over the profile valleys where the surface local curvature is smaller than that of the tip.

Fig. 2
figure 2

The closing of the workpiece surface by a spherical tip

3 Contact Points and Their Search Procedures

3.1 Contact Points

In physics, the contact points are those points on the surface which are in contact with the rolling ball. These points give an indication that their neighborhood surface portions are most likely to be active in contact phenomenon. By identifying the contact points, those areas of a surface that may be especially susceptible to wear at process start-up can be readily identified and remedial action taken if necessary. From a point of view of mathematical morphology, the contact points are those points on the surface that remain constant with the morphological closing operation, see Fig. 2. Therefore these points might be captured by computing the closing envelope and comparing it with the original surface. The overlapping portions are the contact points. This solution, however, is impractical due to the fact that the numerical comparison is sensitive to round off errors in calculation and this situation is even compounded by sampling the structuring element discretely. As a consequence, a capable algorithm is required to detect contact points in a robust fashion.

3.2 Searching Procedures

In stead of computing the dilation and erosion to yield the closing, the developed method computes the contact points in a geometrical manner. A valuable property which could be of paramount value in searching for contact points is the containment relationship of the contact points in response to diverse ball radii [17]. Given a surface, two balls with different sizes are rolled over the underlying surface, one with a large radius and the other one with a small radius. The contact points of the large ball are contained within the boundaries of those of the small ball. This property establishes the searching sequence for the contact points. The large ball radius is utilized first for ease of computation. The searching routine then downscales the rolling ball until it reaches the given radius settled for simulating the largest curvature of the interacting surface. The following procedures demonstrate the details of searching operations. In the context of the statements below, \(a\) and \(b\) are two known contact points, e.g., two end points of a surface profile, \(r\) is the given radius of the ball (disk).

Procedure 1: If there are sample points lying above \(\overrightarrow {ab}\) (left/positive side of \(\overrightarrow {ab}\)), then the contact point is the furthest sample point orthogonal to \(\overrightarrow {ab}\).

As illustrated in Fig. 3, there are a number of sample points between \(a\) and \(b\). The furthest point from \(\overrightarrow {ab}\) is \(p_{5}\), which in fact is a point on the convex hull of the point set \(\left\{ {a,b,p_{1} , \ldots ,p_{6} } \right\}\) above \(\overrightarrow {ab}\). This searching procedure is suggested by the computation of the convex hull [18] and corresponds to rolling a disk with an infinitely large radius over the surface profile.

Fig. 3
figure 3

Search the furthest point orthogonal to \(\overrightarrow {ab}\)

Procedure 2: If there are no sample points lying above \(\overrightarrow {ab}\) and sample points \(\{ p_{i} \}\) exist in the circular section \(\overrightarrow {ab}\) of the ball with radius \(\alpha = \hbox{max} \{ r,{\raise0.5ex\hbox{$\scriptstyle 1$} \kern-0.1em/\kern-0.15em \lower0.25ex\hbox{$\scriptstyle 2$}}\left| {ab} \right|\}\), then the contact point is that of \(\{ p_{i} \}\) in \(\overrightarrow {ab}\), which has the largest radius among the circumscribed circles of the simplices \(\left\{ {\sigma_{{abp_{i} }} } \right\}\).

This procedure includes two different cases, \(\left| {ab} \right| \le 2r\) and \(\left| {ab} \right| > 2r\). For the first case, see Fig. 4a, the disk with the given radius \(r\) is not empty because it encloses two sample points, in this case \(p_{1}\) and \(c\). From this, it follows that some sample points between \(\overrightarrow {ab}\) must be contact points. Next the circumscribed circle of \(\left\{ {\sigma_{{abp_{i} }} } \right\}\) is calculated. It is obvious that the circumcircle of \(\sigma_{abc}\) is empty, while other circumcircles are not, and its radius is the largest so far calculated. The second case where \(\left| {ab} \right| > 2r\) is presented in Fig. 4b, and from this we can find a similar result.

Fig. 4
figure 4

Search the contact point within the area \(\overrightarrow{{ab}}\): a \(\left| {ab} \right| \le 2r\); b \(\left| {ab} \right| > 2r\)

Procedure 3: If \(\left| {ab} \right| > 2r\), no sample points lie above \(\sigma_{ab}\) and no points lie within the circular section \(\overrightarrow {ab}\) of the ball which has a radius \(\alpha = {\raise0.5ex\hbox{$\scriptstyle 1$} \kern-0.1em/\kern-0.15em \lower0.25ex\hbox{$\scriptstyle 2$}}\left| {ab} \right|\), then the contact point is identified as that which has the smallest radius among the circumscribed circles of \(\left\{ {\sigma_{{abp_{i} }} } \right\}\).

See Fig. 5. Among the calculated circumcircles, only \(\sigma_{abc}\) contains no sample points and furthermore has the smallest radius.

Fig. 5
figure 5

Search the contact point within the area \(\overrightarrow{{ab}}\) with \(\left| {ab} \right| > 2r\)

Both Procedures 3 and 4 calculate the circumscribed circles. The difference is that the former takes the largest circumcircle and the later takes the smallest one. However, the two situations can be unified by the use of the signed circumcircle radius.

If there are sample points \(\left\{ {p_{i} } \right\}\) lying below \(\sigma_{ab}\) (right/negative side of \(\overrightarrow {ab}\)) and no point above, the simplex \(\sigma_{{abp_{i} }}\) has a unique circumscribed circle with radius \(\alpha\). If the center of the circumscribed circle is on the positive side of \(\sigma_{ab}\), then the circle has the positive radius \(+ \alpha\), otherwise the negative radius \(- \alpha\). In Fig. 6, \(\sigma_{{abp_{1} }}\) has its circumcircle center \(o_{1}\) above \(\sigma_{ab}\), thus it has a positive radius. Conversely, the center of the circumcircle of \(\sigma_{{abp_{2} }}\) lies below \(\sigma_{ab}\), therefore its radius is negative. The critical case is that of \(\sigma_{abp}\) which has its circumcircle center \(o\) at the centerpoint of \(\sigma_{ab}\). In this case it is taken that the radius is positive. With the signed circumscribed circle radius, Procedure 2 and Procedure 3 are unified and both take the largest circumcircle radius.

Fig. 6
figure 6

Signed circumscribed circle radius

Procedure 4: If \(\left| {ab} \right| \le 2r\), no sample points lie above \(\sigma_{ab}\) and no sample points lie within the circular section \(\overrightarrow {ab}\) of the given disk with radius \(r\), meaning that the disk is empty, then there are no contact points between \(\sigma_{ab}\) and the searching procedure exits.

To determine the termination of the searching procedure, Procedure 4 suggests three conditions. These conditions can be calculated by examining the sampled point distribution below \(\sigma_{ab}\), see Fig. 7. First of all, \(\left| {ab} \right|\) has to be equal or smaller than \(2r\), which means the given disk is larger than the smallest circumcircle of \(\sigma_{ab}\). In Fig. 7, there are 7 sample points between \(a\) and \(b\). They fall into three categories:

Fig. 7
figure 7

Sampled points distribution below \(ab\)

  1. (1)

    Points lying within the circular section \(\overrightarrow {ab}\) of the ball with the given radius, such as \(p_{3}\) and \(p_{7}\), and may be contact points. They are featured by the positive radius \(\left\{ {\rho_{i} } \right\}\) of the circumcircle of \(\left\{ {\sigma_{{abp_{i} }} } \right\}\) and \(\rho_{i} > = r\).

  2. (2)

    Points lying in the circular section \(\overrightarrow {ab}\) of the smallest circumcircle of \(\sigma_{ab}\), but that are not in category (1), such as \(p_{1}\), \(p_{4}\) and \(p_{5}\). These points cannot be contact points as they have positive radii \(\left\{ {\rho_{i} } \right\}\) of the circumcircle of \(\left\{ {\sigma_{{abp_{i} }} } \right\}\), but \(\rho_{i} < r\). Thus in this case \(0 \le \rho_{i} < r\).

  3. (3)

    Points not contained in categories (1) and (2), such as \(p_{2}\) and \(p_{6}\), and cannot be contact points. These points have negative radii \(\left\{ {\rho_{i} } \right\}\) of the circumcircle of \(\left\{ {\sigma_{{abp_{i} }} } \right\}\), i.e., \(\rho_{i} < 0\).

To sum up, the searching procedure terminates when no points lie above \(\sigma_{ab}\), \(\left| {ab} \right| \le 2r\) and \(\rho_{i} < r\).

3.3 Searching Algorithm

A practical recursive algorithm has been constructed based on the above searching procedures. The pseudocode of the algorithm to compute contact points on the surface profile is presented in Fig. 8. The algorithm starts with the left end sample point \(a\) and the right end sample point \(b\) of the measured profile, which are guaranteed to be the initial contact points as they are on the convex hull. The algorithm then starts to search the contact points between \(a\) and \(b\) in sequence by applying procedures 1–4. Once a contact point is found, such as a point \(c\), it can be treated as a partition point and the profile \((a,b)\) is partitioned into two segments \((a,c)\) and \((c,b)\). The algorithm keeps partitioning the segments into smaller ones until the segment being evaluated satisfies the condition specified by Procedure 4 and that segment is accepted as the boundary facet. The vertices of all final boundary facets are then defined as the contact points.

Fig. 8
figure 8

Recursive algorithm for searching contact points on the surface profile

The searching procedures for profile data also hold for areal data if the disk is replaced by a ball and the circumcircle is replaced by a circumsphere. In such a case instead of starting with the left and right profile ends in the scenario of profiles, it is easier to start with the convex hull faces for areal data and thereafter repeat the partition for each convex hull face. Figure 9a illustrates an example surface with 50 \(\times\) 50 points on which the convex hull faces are presented as the triangular meshes. The algorithm searches for contact points by computing signed circumsphere radii and partitions each convex hull face. For instance, starting with a convex hull face \(\sigma_{abc}\), a contact point \(d\) is found by seeking the largest circumsphere radius of \(\left\{ {\sigma_{{abcp_{i} }} } \right\}\), where \(\left\{ {p_{i} } \right\}\) are the sample points inside the circumsphere of \(\sigma_{abc}\). Then \(\sigma_{abc}\) is partitioned into three new simplices \(\sigma_{abd}\), \(\sigma_{bcd}\) and \(\sigma_{cad}\). The partition process is repeated on each new generated simplex until it can hold an empty circumsphere. The highlighted triangle in Fig. 9a denotes one of convex hull faces. The resulting boundary facets are highlighted in Fig. 9b. When the searching procedure is completed, the vertices of the obtained boundary facets are the desired contact points, as shown in Fig. 9c.

Fig. 9
figure 9

Partition procedure on an areal data. a Convex hull faces of the areal data. b Boundary facets generated by partitioning one of the convex hull face; c Final boundary facets

3.4 Verification

For the purpose of verifying the proposed method, it is applied to an experimental profile and a surface, respectively. The profile is 1.25 mm in length with sampling interval of 5 μm and applied by the morphological method using disks with radius 5 and 0.5 mm, respectively. Figure 10 illustrates the contact points of the profile. It is clearly shown in the figure that the contact points of the 5 mm disk identify significant profile peaks while those of the 0.5 mm disk involve less significant peaks. Furthermore, the contact points of the 5 mm disk are contained in those of the 0.5 mm disk. The experimental surface illustrated in Fig. 11 is 0.495 × 0.495 mm2 in size with sampling interval of 5 μm in both X direction and Y direction. A similar result can also be found on the surface, using balls with radius 5 and 1 mm, respectively.

Fig. 10
figure 10

The contact points of an experimental profile. a Disk radius 5 mm. b Disk radius 0.5 mm

Fig. 11
figure 11

The contact points of an experimental surface. a Ball radius 5 mm. b Ball radius 1 mm

4 Case Study

In hip replacement, the introduction of modular large head metal-on-metal (LHMoM) hips promised low wear rates and reduce chances of dislocation couple with an increased range of motion compared to the conventional metal-on-metal hips. The clinical experience of the use of LHMoM hip replacements shows that they exhibit a significantly higher revision rate compared to other types of implant, at 5 years the revision rate is 7.8 % compared to 6.3 % for hip resurfacings and 2 % for conventional cemented implants [19]. The difference in revision rate between resurfacings and LHMoM hips has been attributed to the neck/taper junction [20, 21], thus the specification and measurement of this area of the component is key to the understanding of the operation of the implant and the failure mechanisms at this interface.

The interlocking male taper surface that mates with the femoral head female counterpart has a structured micro-threaded surface, see Fig. 12. The specification of such surfaces is not well-understood but has been shown to be important as possible corrosion and wear at this interface have been identified as a possible source of debris that could cause tissue reaction and progress to implant failure. Analysis of this structured conical surface requires the extraction and examination of the conical form and contact. In this example vertical measurements are performed axially relative to the aligned component axis such that the outputted value of profile straightness can then be used as a measure of conical form.

Fig. 12
figure 12

Total hip replacement femoral stem with highlighted micro-threaded taper surface

The combined effect of form and roughness has long been recognized in the measurement of the form of machined rough surfaces [22]. The effect of the surface structure on the resulting form value can be disproportionate, thus the size of the probe relative to texture spacing has to be large [23, 24]. Current industry practice in the measurement of hip stem tapers is to attempt to perform this task through use of mechanical filtering, using a large diameter ruby stylus on a CMM. However, this is largely performed on a trial and error basis and makes no account of how much useful data is being discounted or erroneous data included through the bridging of surface contact points. Furthermore, the use of such a large stylus method is suboptimal as the required component accuracy is on the limit of that of the CMM (<1 μm). This coupled with the difficulties in locating data points when using a prohibitively large measurement stylus means that this method is far from ideal.

To overcome the deficits of mechanically traversing the stylus on CMM, the morphological method is employed to improve measurement accuracy and extract the contact points. To achieve this, a number of new hip replacement femoral stems were measured, a series of linear measurements are performed on each component, axially along the neck taper. The measurements were performed using a Talyrond 365 roundness machine (Taylor Hobson, UK) with a 5 μm diamond stylus. Figure 13a presents such an example profile with sampling length 8 mm and sampling interval 0.25 μm. For convenience of visualization, the profile was translated and rotated, see Fig. 13b. The contact points with disk radius 5 mm are then extracted from the profile texture. Finally, the form error of the straightness of the profile was calculated by applying the minimum zone method to the contact point set. The obtained straightness is 1.434 μm in the example.

Fig. 13
figure 13

Form evaluation of an experimental taper junction. a Surface profile measured along the neck taper. b The extracted contact points and the minimum zone for straightness

The morphological method searching for contact points on the surface allows for the optimization of mechanical traversing process by the determination of what equivalent stylus size would be required to perform this task. The use of a roundness machine and the proposed morphological method enable the data to be captured at a higher density and accuracy (Gauge resolution ~ 30 nm) with a greater level of control in the extraction of the true envelope profile.

5 Conclusion

In the contact phenomenon of interacting surfaces, peak features on surfaces play a dominate role in that they determine the position of first contact and how the contact will occur. Both statistics-based methods and feature-based methods address the characterization of a single independent surface while neglecting the influence of the mating surface. This paper proposes a method of using the morphological method to simulate the interaction of two mating surfaces, which is carried out by rolling a ball with radius equal to the largest curvature of the slave surface at a contact upon the underlying surface.

The contact points of the rolling ball may serve as an identification of those surface areas that are in real contact and the morphological closing operation can be used to detect contact points. However an accurate solution cannot be reach by the traditional computation method. A geometrical algorithm is developed for both profile and areal data based on four searching procedures. This method can accurately capture the contact points and has been verified by application to an experimental profile and a surface.

The contact points are employed to evaluate the underlying form of the textured surface of hip replacement taper junction. The use of surface texture instrument and the proposed morphological method guarantees the precision of measurement and accuracy of evaluation and allows for more accurate specification of component form which has been shown to be of prime importance to component performance.