Архитектура Аудит Военная наука Иностранные языки Медицина Металлургия Метрология Образование Политология Производство Психология Стандартизация Технологии |
Global Smoothness Constraints
One of the most elementary global regularizers is smoothness. For many problems in image processing it makes sense to demand that a quantity to be modeled changes only slowly in space and time. For a segmentation problem this demand means that an object is defi ned just by the fact that it is a connected region with constant or only slowly changing features. Likewise, the depth of a surface and the velocity fi eld of a moving object are continuous at least at most points. Therefore, we now seek a suitable regularizer R to add to the Lagrange function to force spatially smooth solutions. Such a term requires spatial partial derivatives of the modeled feature. The simplest term, containing only fi rst-order derivatives, for a scalar feature f in a 2-Dimage is
For a vector feature f = [f1, f2]T R. f x, f yΣ = α 2 .| ∇ f1|2 + | ∇ f2|2Σ . (17.19) In this additional term the partial derivatives emerge as a sum of squares. This means that we evaluate the smoothness term with the same 17.3 Variational Image Modeling† 449
norm (L2-norm, sum of least squares) as the similarity term. Moreover, in this formulation all partial derivatives are weighted equally. The factor α 2 indicates the relative weight of the smoothness term compared to the similarity term. The complete least-squares error functional for motion determina- tion including the similarity and smoothing terms is then given by L. f , f x, f yΣ =. f ∇ g + gtΣ 2 + α 2 .| ∇ f1|2 + | ∇ f2|2Σ . (17.20) Inserting this Lagrange function into the Euler-Lagrange equation (17.9) yields the following diff erential equation: . ∇ g f + gtΣ gx − α 2 .(f1)xx + (f1)yy Σ = 0 . ∇ g f + gtΣ gy − α 2 .(f2)xx + (f2)yy Σ = 0, or summarized in a vector equation: (17.21)
= 0. (17.22) similar˛ i¸ ty term r smoothn˛ ¸ essrterm It is easy to grasp how the optical fl ow results from this formula. First, imagine that the intensity is changing strongly in a certain direction. The similarity term then becomes dominant over the smoothness term and the velocity will be calculated according to the local optical fl ow. In contrast, if the intensity change is small, the smoothness term becomes dominant. The local velocity will be calculated in such a manner that it is as close as possible to the velocity in the neighborhood. In other words, the fl ow vectors are interpolated from surrounding fl ow vectors. This process may be illustrated further by an extreme example. Let us consider an object with a constant intensity moving against a black background. Then the similarity term vanishes completely inside the object, while at the border the velocity perpendicular to the border can be calculated just from this term.
form of the solution in areas where the similarity term is zero. As the second-order derivatives are zero, the fi rst-order spatial derivatives are constant. This leads to a modeled feature f that changes linearly in space. 450 17 Regularization and Modeling
17.3.5 Elasticity Models‡ At this point of our discussion, it is useful to discuss an analogous physical problem that gives further insight how similarity and smoothing constraints balance each other. With a physical model these two terms correspond to two types of forces. Again, we will use the example of optical fl ow determination. We regard the image as painted onto an elastic membrane. Motion will shift the membrane from image to image. Especially nonuniform motion causes a slight expansion or contraction of the membrane. The similarity term acts as an external force that tries to pull the membrane towards the corresponding displacement vector (DV). The inner elastic forces distribute these deformations continuously over the whole membrane, producing a smooth displacement vector fi eld (DVF). Let us fi rst consider the external forces in more detail. It does not make much sense to set the deformations at those points where we can determine the DV to the estimated displacement without any fl exibility. Instead we allow deviations from the expected displacements which may be larger, the more uncertain the determination of the DV is. Physically, this is similar to a pair of springs whose spring constant is proportional to the certainty with which the displacement can be calculated. The zero point of the spring system is set to the computed displacement vector. As the membrane is two-dimensional, two pairs of springs are required. The direction of the spring system is aligned according to the local orientation (Section 13.3). At an edge, only the displacement normal to the edge can be computed (aperture problem, Section 14.2.2). In this case, only one spring pair is required; a displacement parallel to the edge does not result in a restoring force. The external spring forces are balanced by the inner elastic forces trying to even out the diff erent deformations. Let us look again at the Euler-Lagrange equation of the optical fl ow (Eq. (17.22)) from this point of view. We can now understand this equation in the following way: . ∇ g f + gtΣ ∇ g − α 2∆ f
= 0, (17.23) extern˛ a¸ l force r intern˛ a¸ l forrce where α 2 is an elasticity constant. In the expression for the internal forces only second derivatives appear, because a constant gradient of the optical fl ow does not result in net inner forces. The elasticity features of the membrane are expressed in a single constant. Fur- ther insight into the inner structure of the membrane is given by the Lagrange function (Eq. (17.18)): L. f , f x, x Σ = α 2.| ∇ f 1|2 + | ∇ f |2Σ +. ∇ g f + gtΣ . (17.24) 2
T, deforma˛ t¸ ion energy r –V, po˛ ¸ tential r The Lagrange function is composed of the potential of the external force as it results from the continuity of the optical fl ow and an energy term related to the inner forces. This term is thus called deformation energy. This energy appears in place of the kinetic energy in the classical example of the Lagrange function for a mass point, as the minimum is not sought in time but in space. 17.4 Controlling Smoothness 451 The deformation energy may be split up into several terms which are closely related to the diff erent modes of deformation: T. f Σ = 1 .(f ) + (f ) Σ + 2 1 x 2 y
2 2
(17.25)
.(f1)x − (f2)yΣ +.(f1)y + (f2)xΣ +.(f1)y − (f2)xΣ . sh˛ e¸ ar r rota˛ ¸ tion r Clearly, the elasticity features of the membrane match the kinematics of motion optimally. Each possible deformation that may occur because of the diff erent modes of 2-Dmotion on the image plane is equally weighted. Physically, such a membrane makes no sense. The diff erential equation for a real physical membrane is diff erent [39]: f − (λ + µ) ∇ ( ∇ u ) − µ∆ u = 0. (17.26) The elasticity of a physical membrane is described by the two constants λ and
With the membrane model, only the elongation is continuous, but not the fi rst- order derivative. Discontinuities occur exactly at the points where external forces are applied to the membrane. This results directly from Eq. (17.22). A locally applied external force corresponds to a δ distribution in the similarity term. Integrating Eq. (17.22), we obtain a discontinuity in the fi rst-order deriv- atives. These considerations call into question the smoothness constraints considered so far. We know that the motion of planar surface elements does not result in such discontinuities. Smoothness of the fi rst-order derivatives can be forced if we include second-order derivatives in the smoothness term (Eq. (17.22)) or the deformation energy (Eq. (17.24)). Physically, such a model is similar to a thin elastic plate that cannot be folded like a membrane.
Controlling Smoothness Having discussed the basic properties of smoothness constraints we now turn to the question of how we can adequately treat spatial and tempo- ral discontinuities with this approach. In a segmentation problem, the modeled feature will be discontinuous at the edge of the object. The same is true for the optical fl ow. The smoothness constraint as we have formulated it so far does not allow for discontinuities. We applied a global smoothness constraint and thus obtained a globally smooth fi eld. Thus we need to develop methods that allow us to detect and to model discontinuities adequately. 452 17 Regularization and Modeling
We will fi rst discuss the principal possibilities for varying the minimal problem within the chosen frame. To do so, we rewrite the integral equation for the minimal problem (Eq. (17.6)) using the knowledge about the meaning of the Lagrange function obtained in the last section: ∫ .S( f ) + R( f xp)Σ
dW x → Minimum. (17.27) Ω similar˛ i¸ ty trerm smoothn˛ ¸ ess terrm
In order to incorporate discontinuities, two approaches are possible: 1. Limitation of integration area. The integration area is one of the ways that the problem of discontinuities in the feature f may be solved. If the integration area includes discontinuities, incorrect values are obtained. Thus algorithms must be found that look for edges in f and, as a consequence, restrict the integration area to the segmented areas. Obviously, this is a diffi cult iterative procedure. First, the edges in the image itself do not necessarily coincide with the edges in the feature f . Second, before calculating the feature fi eld f only sparse information is available so that a partition is not possible. 2. Modifi cation of smoothness term. Modifi cation of the smoothness term is another way to solve the discontinuity problem. At points where a discontinuity is suspected, the smoothness constraint may be weakened or may even vanish. This allows discontinuities. Again this is an iterative algorithm. The smoothness term must include a control function that switches off the smoothness constraint in ap- propriate circumstances. This property is called controlled smooth- ness [181]. In the following, we discuss two approaches that modify the integra- tion area for motion determination. The modifi cation of the smoothing term is discussed in detail in Section 17.5.
Integration along Closed Zero-Crossing Curves. Hildreth [68] used the Laplace fi ltered image, and limited any further computations to zero crossings. This approach is motivated by the fact that zero crossings mark the gray value edges (Section 12.2), i. e., the features at which we can compute the velocity component normal to the edge. The big ad- vantage of the approach is that the preselection of promising features considerably decreases any computation required. By selecting the zero crossings, the smoothness constraint is lim- ited to a certain contour line. This seems useful, as a zero crossing most likely belongs to an object but does not cross object boundaries. However, this is not necessarily the case. If a zero crossing is contained within an object, the velocity along the contour should show no disconti- nuities. Selecting a line instead of an area for the smoothness constraint 17.4 Controlling Smoothness 453
A b
Figure 17.3: Two images of a Hamburg taxi. The video images are from the Computer Science Department at Hamburg University and since then have been used as a test sequence for image sequence processing.
changes the integration region from an area to the line integral along the contour s: ( n ¯ f − f⊥ )2 + α 2 Σ ((f1)s)2 + ((f2)s)2Σ Σ d s → minimum, (17.28) where n ¯ is a unit vector normal to the edge and f⊥ the velocity normal to the edge. The derivatives of the velocities are computed in the direction of the edge. The component normal to the edge is given directly by the similarity term, while the velocity term parallel to the edge must be inferred from the smoothness constraint all along the edge. Hildreth [68] computed the solution of the linear equation system resulting from Eq. (17.28) iteratively using the method of conjugate gradients. Despite its elegance, the edge-oriented method shows signifi cant dis- advantages. It is not certain that a zero crossing is contained within an object. Thus we cannot assume that the optical fl ow fi eld is continuous along the zero crossing. As only edges are used to compute the optical fl ow fi eld, only one component of the displacement vector can be com- puted locally. In this way, all features such as either gray value maxima or gray value corners which allow an unambiguous local determination of a displacement vector are disregarded.
Limitation of Integration to Segmented Regions. A region-oriented approach does not omit such points, but still tries to limit the smooth- ness within objects. Again, zero crossings could be used to separate the image into regions or any other basic segmentation technique (Chap- ter 16). Region-limited smoothness just drops the continuity constraint at the boundaries of the region. The simplest approach to this form of 454 17 Regularization and Modeling
A b
C d
Figure 17.4: Determination of the DVF in the taxi scene (Fig. 17.3) using the method of the dynamic pyramid: a – c three levels of the optical fl ow fi eld using a global smoothness constraint; d fi nal result of the optical fl ow using a region- oriented smoothness constraint; kindly provided by M. Schmidt and J. Dengler, German Cancer Research Center, Heidelberg.
constraint is to limit the integration areas to the diff erent regions and to evaluate them separately. As expected, a region-limited smoothness constraint results in an op- tical fl ow fi eld with discontinuities at the region’s boundaries (Fig. 17.4d) which is in clear contrast to the globally smooth optical fl ow fi eld in Fig. 17.4c. We immediately recognize the taxi by the boundaries of the optical fl ow. We also observe, however, that the car is segmented further into re- gions with diff erent optical fl ow fi eld, as shown by the taxi plate on the roof of the car and the back and side windows. The small regions espe- cially show an optical fl ow fi eld signifi cantly diff erent from that in larger regions. Thus a simple region-limited smoothness constraint does not refl ect the fact that there might be separated regions within objects. The optical fl ow fi eld may well be smooth across these boundaries. 17.5 Diff usion Models 455
17.5 Diff usion Models In this section, we take a new viewpoint of variational image modeling. The least-squares error functional for motion determination (17.20)
can be regarded as the stationary solution of a diff usion-reaction sys- tem with homogeneous diff usion if the constant α 2 is identifi ed with a diff usion coeffi cient D:
The standard instationary (partial) diff erential equation for homogeneous diff usion (see Eq. (5.10) in Section 5.2.1) is appended by an additional source term related to the similarity constraint. The source strength is proportional to the deviation from the optical fl ow constraint. Thus this term tends to shift the values for f to meet the optical fl ow constraint. After this introductionary example, we can formulate the relation between a variational error functional and diff usion-reaction systems in a general way. The Euler-Lagrange equation
∂ xp Lfxp − Lf = 0 (17.31) p=1 that minimizes the error functional for the scalar spatiotemporal func- tion f ( x ), x ∈ Ω
can be regarded as the steady state of the diff usion-reaction system
ft = ∂ xp Lfxp − Lf. (17.33) p=1 In the following we shall discuss an aspect of modeling we have not touched so far — the local modifi cation of the smoothness term. In the language of a diff usion model this means a locally varying diff usion coeffi cient in the fi rst-hand term on the right side of Eq. (17.33). From the above discussion we know that to each approach of locally varying diff usion coeffi cient, a corresponding variational error functional exists that is minimized by the diff usion-reaction system. In Section 5.2.1 we discussed a homogeneous diff usion process that generated a multiresolution representation of an image, known as the 456 17 Regularization and Modeling
linear scale space. If the smoothness constraint is made dependent on local properties of the image content such as the gradient, then the in- homogeneous diff usion process leads to the generation of a nonlinear scale space. With respect to modeling, the interesting point here is that a segmentation can be achieved without a similarity term.
17.5.1 Inhomogeneous Diff usion The simplest approach to a spatially varying smoothing term that takes into account discontinuities is to reduce the diff usion coeffi cient at the edges. Thus, the diff usion coeffi cient is made dependent on the strength of the edges as given by the magnitude of the gradient D(f ) = D(| ∇ f |2). (17.34) With a locally varying diff usion constant the diff usion-reaction system becomes ft = ∇. D(| ∇ f |2) ∇ f Σ − Lf. (17.35)
With Eq. (17.35) the regularization term R in the Lagrange function is R = R(| ∇ f |2), (17.36)
Perona and Malik [136] used the following dependency of the diff u- sion coeffi cient on the magnitude of the gradient: λ 2 D = D0 |A f |2 + λ 2, (17.37)
D 1 exp c m . (17.38) (| ∇ (Br ∗ f )( x )|/λ )m This equation implies that for small magnitudes of the gradient the dif- fusion coeffi cient is constant. At a certain threshold of the magnitude of the gradient, the diff usion coeffi cient quickly decreases towards zero. 17.5 Diff usion Models 457
A simple explicit discretization of inhomogeneous diff usion uses reg- ularized derivative operators as discussed in Section 12.5. In the fi rst step, a gradient image is computed with the vector operator
D2
R· D1 R· D2 Σ . (17.40)
Weickert [195] used a more sophisticated implicit solution scheme. However, the scheme is computationally more expensive and less isotropic than the explicit scheme in Eq. (17.41) if gradient operators are used that are optimized for isotropy as discussed in Section 12.5.5. An even simpler but only approximate implementation of inhomoge- nous diff usion controls binomial smoothing using the operator I +R· (B− I). (17.42)
Figure 17.5 shows the application of inhomogeneous diff usion for segmentation of noisy images. The test image contains a triangle and a rectangle. Standard smoothing signifi cantly suppresses the noise but results in a signifi cant blurring of the edges (Fig. 17.5b). Inhomogenous diff usion does not lead to a blurring of the edges and still results in a perfect segmentation of the square and the triangle (Fig. 17.5c). The only disadvantage is that the edges themselves remain noisy because no smoothing is performed at all there. 458 17 Regularization and Modeling
A b
C d
Figure 17.5: a Original, smoothed by b linear diff usion, c inhomogenous but isotropic diff usion, and d anisotropic diff usion. From Weickert [195].
17.5.2 Anisotropic Diff usion As we have seen in the example discussed at the end of the last section, inhomogeneous diff usion has the signifi cant disadvantage that it stops diff usion completely and in all directions at edges, leaving the edges noisy. However, edges are only blurred by diff usion perpendicular to them; diff usion parallel to them is even advantageous as it stabilizes the edges. An approach that makes diff usion independent of the direction of edges is known as anisotropic diff usion. With this approach, the fl ux is no longer parallel to the gradient. Therefore, the diff usion can no longer be described by a scalar diff usion coeffi cient as in Eq. (5.7). Now, 17.5 Diff usion Models 459 a diff usion tensor is required: j = − D ∇ f = − D11 D12 Σ f1 Σ . (17.43) D12 D22 f2 With a diff usion tensor the diff usion-reaction system becomes ft = ∇. D ( ∇ f ∇ f T ) ∇ f Σ − Lf (17.44) and the corresponding regularizer is R = trace R . ∇ f ∇ f T Σ , (17.45)
j ' = − D1' 0 Σ f1' Σ = − Σ D1' f1' Σ . (17.46) 0 D2' f2' D2' f2' The diff usion in the two directions of the axes is now decoupled. The two coeffi cients on the diagonal, D1' and D2' , are the eigenvalues of the diff usion tensor. By analogy to isotropic diff usion, the general solution for homogeneous anisotropic diff usion can be written as
x'2 Σ . y'2 Σ 1 2 1 2
This means that anisotropic diff usion is equivalent to cascaded con- volution with two 1-D Gaussian convolution kernels that are steered in the directions of the principal axes of the diff usion tensor. If one of the two eigenvalues of the diff usion tensor is signifi cantly larger than the other, diff usion occurs only in the direction of the corresponding eigen- vector. Thus the gray values are smoothed only in this direction. The spatial widening is — as for any diff usion process — proportional to the square root of the diff usion constant (Eq. (5.15)). Using this feature of anisotropic diff usion, it is easy to design a dif- fusion process that predominantly smoothes only along edges but not perpendicularly to the edges. The orientation of the edges can be ob- tained, e. g., from the structure tensor (Section 13.3). With the following approach only smoothing across edges is hindered [195]:
D1' 1 exp c m
(17.48) D2' = 1. 460 17 Regularization and Modeling
Figure 17.6: Illustration of least-squares linear regression.
As shown by Scharr and Weickert [162], an effi cient and accurate explicit implementation of anisotropic diff usion is again possible with regularized fi rst-order diff erential derivative optimized for minimum anisotropy:
R12 R22 D2
(17.49)
with D1(R11 · D1 + R12 · D2) + D2(R12 · D1 + R22 · D2). Σ R11 R12 Σ = Σ cos φ sin φ Σ Σ Dx' 0 Σ Σ cos φ − sin φ Σ . R12 R22 − sin φ cos φ 0 Dy' sin φ cos φ
Application of anisotropic diff usion shows that now — in contrast to inhomogeneous diff usion — the edges are also smoothed (Fig. 17.5d). The smoothing along edges has the disadvantage, however, that the cor- ners of the edges are now blurred as with linear diff usion. This did not happen with inhomogeneous diff usion (Fig. 17.5c).
17.6 Discrete Inverse Problems† In the second part of this chapter, we turn to discrete modeling. Dis- crete modeling can, of course, be derived, by directly discretizing the partial diff erential equations resulting from the variational approach. 17.6 Discrete Inverse Problems† 461
Actually, we have already done this in Section 17.5 by the iterative dis- crete schemes for inhomogeneous and anisotropic diff usion. However, by developing discrete modeling independently, we gain further insight. Again, we take another point of view of modeling and now regard it as a linear discrete inverse problem. As an introduction, we start with the familiar problem of linear regression and then develop the theory of discrete inverse modeling.
|
Последнее изменение этой страницы: 2019-05-04; Просмотров: 202; Нарушение авторского права страницы