



Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!




Abstract Planar curves may contain undesired noise or details. Naïve techniques may reduce the area enclosed by the curve. The smoothing approach proposed in this paper called area preserving smoothing is designed to explicitly preserve the local area.
Introduction A polyloop is a closed loop polygon, or in other words cycles of edges joining consecutive points. We assume that it is represented by ordered list of points, denoted by its co-ordinates as vertices. We explore smoothing techniques that iteratively adjust vertex positions based on their algorithms. The rest of the paper is organized as follows. First, we discuss Laplacian smoothing. Then we discuss Bi-Laplacian smoothing. Finally, we explore area preserving smoothing using Laplacian, Bi-Laplacian, and Taubin’s method, and compare the techniques.
Laplacian Smoothing The Laplacian, B.l of a vertex B, in the sequence A, B, C of a polyloop is the vector (A+C)/2 – B. If each vertex wants to blend in, it will want to move by its Laplacian, so as to be the average of “its neighbors”. The displacement vector is towards the average of its neighbors. Then, each vertex is moved by a fraction of its displacement vector.
The Laplacian smoothing algorithm of Table 1 tends to smooth out details, as illustrated in figure 1, but ultimately shrinks the curve to a single point as shown in figure 1(d) after many iterations.
Table 1
Pseudo code for Laplacian smoothing scale = (2.0/3.0); C for each point C, in the polyloop { // B, and D are left, and right neighbors of vertex C C’ compute, and store C.l = (B+D)/2 – C; compute C’ = C + scale * C.l B D display new vertices; }
(a) (b) (c) (d) Figure 1: The original (a) results in Laplacian smoothing after 1(a), 200 (b), 1500 (c) and 2500 (d) iterations.
The figure 1 that is used through out this paper is drawn using polyedit Processing program. The figure contains smooth part at the bottom, high frequency noise on the right side, low frequency noise at the top, and high amplitude noise at the top left. In effect, this figure contains a mixture of features that occurs in most of the shapes.
Bi-Laplacian Smoothing In Bi-Laplacian smoothing, the displacement vector is not moved towards the average of the neighbors, but instead towards a target point defined by moving the average of the neighbors 1/3 away from the average of second degree neighbors. Consider the vertices A, B, C, D, and E as shown in figure 2. The vertex C is moved under the constraint C’.l = average of B.l and D.l. C’.l = (B+D)/2 – C’ B.l = (A+C’)/2 – B D.l = (C’+E)/2 – D (B+D)/2 – C’ = (A+C’)/4 – B/2 + (C’+E)/4 – D/ solving for C’, and rearranging the equation, C’ = (B+D)/2 + 1/3 ( (B+D)/2 – (A+E)/2 )
Figure 2
(a) (b) (c) (d) Figure 3: The original (a) results in Bi-Laplacian smoothing after 1(a), 200 (b), 1500 (c) and 7000 (d) iterations.
Area preserving smoothing As shown in figures 2 and 3, the Laplacian and Bi-Laplacian transformations does not preserve area, as the original polyloop eventually shrinks to a point. To preserve the area, we propose the following algorithm.
Pseudo code for area preserving smoothing using Laplacian scale = (2.0 / 3.0) for each odd point C, in the polyloop { // B, and D are left, and right neighbors of vertex C compute, and store C.l = (B+D)/2 – C; compute C’ = C + scale * C.l; find and store the area difference between BCD, and BC’D; } for each even point C, in the polyloop { find average area, avg_area = (delta_area(C-1) + delta_area (C+1) )/2; find length between C’s neighbors, base_length; find d = -2.0 * avg_area /base_length; find tangent to the base, unit tangent to the base length; find unit normal to the base by rotating it counter clock wise; move and store C’ = C – (d * unit_normal); reverse the role of odd and even vertices and do the above procedure again. } TABLE 3
(a) (b) (c) (d) Figure 4: The original (a) results in Area preserving smoothing using Laplacian after 1(a), 200 (b), 1500 (c) and 2500 (d) iterations.
(a) (b) (c) (d) Figure 5: The original (a) results in Area preserving smoothing using Bi-Laplacian after 1(a), 200 (b), 1500 (c) and 2500 (d) iterations.
The results using the area preserving smoothing using Laplacain algorithm is shown in figure 4. The important difference to note in this figure is that, even after number of iterations the original polyloop does not shrink to point as in Laplacian or Bi-Laplacian. In the area preserving algorithm each odd or even point C is moved using Laplacian distance. Similarly, instead of Laplacian, each point C can be moved based on Bi-Laplacian. The area preserving smoothing effect using Bi-Laplacian is shown in figure 5. It is smoother than simple Laplacian, as now each C is moved based on four of its neighbors. This can be seen clearly by comparing the figures 5 (c), and figure 5 (d) with respective figure 4. Even after 2500 iterations, the feature is retained in the area preserving smoothing using Bi-Laplacian. The pseudo algorithm using Bi-Laplacian is same as Laplacian, except that the C.l is calculated using four neighboring points as shown in Table 2.
Taubin’s method to preserve area The basic idea in the Taubin’s method to preserve area is first to move the vertex C by Laplacian distance with scale ‘a’, and in the next iteration to move it by scale ‘-b’. In this way, the area is preserved. The algorithm is shown in Table 4. The values for scale a, and b is chosen based on solving the following two equations:
Conclusion In this paper we first describe existing smoothing techniques, Laplacian and Bi-Laplacian. We showed that Bi-Laplacian is same as the cubic fit to the four of its neighbors. And, we also showed that the Laplacian, and Bi-Laplacian smoothing techniques does not preserve area. Finally, we proposed our new area preserving technique using Laplacian, and Bi-Laplacian, and showed that the area does not shrink to a point even after quite a number of iterations. Taubin’s method to preserve the area was also compared. The area preserving smoothing using Bi-Laplacian is better than any other smoothing algorithm discussed in this paper.
References