• Ingen resultater fundet

In addition to being permissible, we must require that a solid has a bounded maximum curvature and no singularities in a transition region of the bound-ary. This size of the transition region should be chosen in accordance with our

4The observation in the proof of Proposition 4.6 that the boundary mapping is continuous because it is composed of continuous functions is due to F.–E. Wolter (private communica-tions).

method of reconstruction. For the time being, we will simply assume that the transition region (see Section 3.4) is of widthr.

Intuitively, it seems that both things are ensured if we can roll a closed ball of radius r on either side of the boundary of the solid in such a way that it touches all points on the boundary from either side. This is illustrated in Figure 4.3. Since the ball touches the surface at all points, it seems certain that the

Figure 4.3: Balls rolling on either side of the boundary of a solid.

curvature of the boundary does not exceed the curvature of the ball. Likewise, the medial axis should not come closer to the boundary thanr. However these things need to be made more precise, and this can be done using Euclidean Morphology. The property that a ball can roll on the inside can be expressed formally by saying that the solid should be invariant with respect to opening with a closed ball of radius r. Likewise, we can use invariance with respect to closing to ensure that the ball can roll on the outside. These properties will be calledr–openness andr–closedness. r–openness is defined as follows

Definition 4.7 A solidS isr–open iff

S=O(S, br) (4.7)

where O(S, br) is the open operation on S using br as a structuring element.

r–openness simply means that we can represent the solid as the union of an (infinite) number of closed balls of radiusr. Hence, the sphere fits everywhere, and we are thus ensured that we can “roll” the ball on the interior side. Of course, the same thing must hold for the inverse solid, i.e. Si must also be r–open. To avoid using the inverse, we observe that it can be shown that

S=C(S, br) =⇒ Si=O(Si, br) (4.8) where C(S, br) is the close operation on S usingbras the structuring element.

In other words, ifS is closed with an open ball it implies thatSi is open with

4.4 Openness and Closedness 71

a closed ball. This follows from (A.12) in Appendix A. Consequently, we can express the quality that we may roll the sphere on the exterior in the following way

Definition 4.8 A solidS isr–closed iff

S=C(S, br) (4.9)

wherebris an open ball of radiusr.

We can now state the main result of this chapter in the form of two propositions.

Both of these assume that we are dealing with permissible solids that are r–

open andr–closed. The first of these propositions is about the medial surfaces M(S) andM(Si).

Proposition 4.9 Given a permissible solid S that is r–open and r–closed, the shortest distance from any point p ∈ ∂S to any point belonging to M(S) or M(Si)isr.

b

rp 1

b

xp

0

b

rp2

p

S

Figure 4.4: Illustration of the proof that the medial axis is always at a distance of at leastr from∂S.

Proof: Due to symmetry, we only need to show that this holds for one of the medial surfaces. We chooseM(S) and give a proof by contradiction. Let there

be given a closed ball of radiusx < r at a pointp0,bxp0 ⊂S. Assume that this ball is maximal and touches ∂S at a point p. Because S is r–closed, there is an exterior ballbrp1 ⊆Si which also touchesp. Becausebrp1 ⊆Si and bxp0 ⊂S they can only share points belonging to the boundary which means they must be tangent. Consequently, they share the tangent plane of∂S atp. BecauseS is r–open there is also a closed ball of radius r, brp2 ⊆S, containing p. By a similar argument,brp2shares the aforementioned tangent plane. However, ifbrp2 andbxp0 are tangent and both on the same side of∂S it follows thatbxp0 ⊂brp2. This contradicts the assumption thatbxp0 is maximal.

Hence, no centre of a maximal ball is closer to∂Sthanr. LetCdenote the union of all centres of maximal balls. The arguments above imply that C ⊆ S⊖br since the erosion ofS bybr includes all points that are at least a distance ofr from∂S.

We know thatS⊖bris a closed set5, and thatM(S) =C, i.e. M(S) isCplus the limit points ofC. Using (A.16), it now follows thatM(S) =C⊆S⊖br. In other words,M(S), is fully contained inS⊖brany point of which is at least a distance ofrfrom ∂S2

The next proposition regards maximum curvature:

Proposition 4.10 Given a permissible solidS that isr–open andr–closed and a point qso that |dS(q)|=σ where0≤σ < r

Kmax(q)≤ 1

r− |σ| (4.10)

if Kmax is defined at q.

Proof Again due to symmetry, only points inS need to be discussed. Letp be the point on∂S closest toq. Clearly,σ=kp−qk. Due to the fact thatS isr–open andr–closed, there are two tangent, closed balls of radiusrtouching pfrom either side of the boundary. Let these be brp0 ⊆S and brp1 ⊆Si. The configuration is shown in Figure 4.5.

Now, letbr+σp1 be a sphere of radiusr+σwhich has the same centre asbrp1, and letbrp0σ be a sphere of radiusr−σwith the same centre asbrp0.

For any point x in the interior of brp0σ, it is clear that d(x, ∂brp0) > σ and

5Proposition III–27 in [151] states among other things that a closed set eroded by a compact set is a closed set.

4.4 Openness and Closedness 73

p q

brp0

brp1

br+σp1

br-σp0

p p1

0

S

Figure 4.5: Translated instances ofbr touchqfrom either side.

consequently, thatd(x, ∂S)> σ. Hence,dS(x)<−σ. Similarly, for any point x∈br+σp1 ,d(x, ∂brp1)< σ. Thus,d(x, ∂S)< σ and, therefore,dS(x)>−σ.

This means that any pointxnearqand on the same−σ–isosurface must lie on the boundary or between the two closed ballsbr+σp1 andbrp0σ.

Let there be given a normal section,α, which is formed as the intersection of the

−σ–isosurface and a plane containingqand the normal to the−σ–isosurface at q. The centre of the osculating circle to αat q lies in the line defined by the surface normal [80]. Since the closed balls brp0σ and br+σp1 share the tangent plane and, consequently, the normal (direction) of the −σ–isosurface at q, the intersection of the normal plane and these balls are circles of the same radiir−σ andr+σ. Because the osculating circle is defined as the limit position of three points that (as we know from the above) must be on the boundary or outside brp0σ and br+σp1 , we conclude that the minimum radius of the osculating circle to a normal section is r−σ. Finally, the radius of the osculating circle is the inverse of the curvature ofαatq. Consequently, the greatest normal curvature is r−|1σ| 2

It should be noted that we are not guaranteed that the maximum curvature is defined at a given point. The signed distance function is only known to be C1

and the principal curvatures are computed from the second order derivatives of the signed distance function. However, the continuity of the distance function reflects the continuity of the surface in the sense that it can be shown that for a Ck hypersurface where k ≥ 2, the signed distance function is Ck in a neighbourhood of the surface [94]. Since we are typically interested in solids whose surfaces are piecewise Ck where k ≥2 (e.g. a cube with filleted edges and corners) it is likely that the distance function is locally at least C2 and hence that the maximum curvature is continuous in most of the volume and discontinuous only at points where the closest surface component changes.