IEICE TRANS. INF. & SYST., VOL.E96–D, NO.2 FEBRUARY 2013

349

PAPER

Improved Seam Merging for Content-Aware Image Resizing Kazu MISHIBA†a) , Masaaki IKEHARA†† , Members, and Takeshi YOSHITOME† , Nonmember

SUMMARY In this paper, we propose an improved seam merging method for content-aware image resizing. This method merges a two-pixelwidth seam element into one new pixel in image reduction and inserts a new pixel between the two pixels in image enlargement. To preserve important contents and structure, our method uses energy terms associated with importance and structure. Our method preserve the main structures by using a cartoon version of the original image when calculating the structure energy. In addition, we introduce a new energy term to suppress the distortion generated by excessive reduction or enlargement in iterated merger or insertion. Experimental results demonstrate that the proposed method can produce satisfactory results in both image reduction and enlargement. key words: content-aware image resizing, seam carving, seam merging

using pixel importance. Last, it may fail to preserve main structures like object outlines for preserving many small structures like texture components. In this paper, we propose an improved seam merging method to address these problems. The rest of this paper is organizes as follows: Section 2 represents the detail of the improved seam merging. Experimental results are provided in Sect. 3. Finally, the conclusion is given in Sect. 4.

1.

This section describes our proposed method. We first provide a brief description of the features of our method. The conventional seam merging method reduces image size by repeatedly merging a two-pixel-width seam into a one-pixel-width seam. While it only defines image reduction, the improved seam merging method can reduce and enlarge image size. This method not only merges a two-pixelwidth seam element into one new pixel, but also inserts a new pixel between the two pixels. The former reduces image size, and the latter enlarges. To calculate pixel values on a resized image and energy to select seams, seam merging uses a merging history, which is a record listing which pixels are merged into a pixel in the resizing process. Seam carving ignores formerly removed parts in each resizing process, and that leads to large distortion generated by the accumulation of small distortion. Seam merging prevents such distortion by referring formerly merged parts using merging histories. In the conventional seam merging method, a merging history is defined as a set of pixel coordinates. In the improved seam merging method, it is defined as a multiset, which allows duplicate elements. It enables us to enlarge image size using a seam merging approach. The conventional seam carving and many improved methods used importance energy to preserve important contents. The conventional seam merging introduced structure energy to preserve structure. To preserve important contents and structure, the improved seam merging combines importance and structure energies. The structure energy is calculated by using the cartoon image of an original image for better structure preservation. In addition, we introduce a new energy term to suppress the distortion generated by excessive reduction or enlargement in iterated merger or insertion. To summarize, the differences between the conventional seam merging and the improved seam merging are

Introduction

With the diversity of display device sizes and aspect ratios, studies on the automatic resizing of images are becoming more important. Cropping and scaling are common approaches to change aspect ratios and resolutions. Cropping, however, can discard important parts on an image, and scaling produces distortion in the case of changing aspect ratios. For effective image resizing, several content-aware image resizing methods have been proposed [1], [2]. Seam carving [3] is one of the approaches for content-aware image resizing. It repeatedly removes an 8-connected path of pixels, called seam, from top to bottom or from left to right. In terms of removal, the optimal seam is the one with the least total energy. To preserve important contents, the original seam carving and many improved methods [4]–[6] use pixel importance as the energy. These methods, however, may distort object shapes because they ignore structure preservation. To solve this problem, we proposed seam merging [7], [8], which merges a two-pixel-width seam that minimizes structural distortion to reduce image size. We provide a brief description of this method in Sect. 2. See [7], [8] for more details. The seam merging method provides satisfactory results in many images. This method, however, has the following problems to solve. First, it cannot enlarge images because it was designed only to reduce image size. Second, it may fail to preserve important contents due to the lack of Manuscript received April 4, 2012. Manuscript revised October 26, 2012. † The authors are with the Department of Electrical and Electronic Engineering, Tottori University, Tottori-shi, 680–8550 Japan. †† The author is with the Department of Electronics and Electrical Engineering, Keio University, Yokohama-shi, 223–8522 Japan. a) E-mail: [email protected] DOI: 10.1587/transinf.E96.D.349

2.

Proposed Method

c 2013 The Institute of Electronics, Information and Communication Engineers Copyright 

IEICE TRANS. INF. & SYST., VOL.E96–D, NO.2 FEBRUARY 2013

350

as follows. • The improved seam merging can enlarge image size. • In the improved seam merging, the structure energy is calculated by using the cartoon image of an original image for better structure preservation. • The improved seam merging uses not only an energy term to preserve structure but also energy terms to preserve important contents and to suppress the distortion generated by excessive reduction or enlargement. In the following subsection, we explain the energy definitions in our proposed method. For simplicity, the discussion is limited to the case of resizing images in a horizontal direction. An upper index in brackets (e.g. s(k) ) indicates k-th merging/inserting process. 2.1 Improved Seam Merging

s

s r ∈s

The conventional seam merging method uses structure energy for preserving local structures on an original image. The energy is calculated by using pixel context which expresses a local structure defined as the intensity differences between a pixel and its surrounding pixels. Pixel context is expressed as d(k) (r, n) = I (k) (r) − I (k) (r + n)

A vertical seam is defined as a connected path of seam elements (two-pixel pairs) from top to bottom that contains only one seam element per row. Let s be a seam, which is a set of seam elements s r . Here s r is a seam element which creates a new pixel at r after the merging/inserting process (see Fig. 1). New pixels form a connected path like a seam of seam carving. Given that ri = (xi , i) is a coordinate of a seam element in the i-th row, xi satisfies |xi − xi−1 | ≤ 1. The pixel value of a newly created pixel is defined by using its merging history, which is a multiset. Merging history Q(0) (r) initially has its coordinate r and is updated in the resizing process. The merging history of newly created pixel r is updated by combining merging histories of pixels constituting seam s r . Note that a merging history can contain duplicate elements in the inserting process. In the case where pixel r and q are merged, the merging history is updated as follows: Q(k) (r) = Q(k−1) (r) ∪ Q(k−1) (q)

where N(Q(k) (r)) is the number of elements listed in Q(k) (r) and I (0) (q) is a pixel value at q on an original image. An optimal seam has the least total energy required to create new pixels. Let E (k) (s r ) be an energy required to create a new pixel at r in k-th merging/inserting process. An optimal seam is expressed by  E (k) (s r ). (3) s(k) = arg min

(1)

where Q(0) (r) = {r}. The merging histories of pixels located on the left of the newly created pixels remain unchanged. To compensate for the coordinate change due to merging/inserting, the merging histories of pixels located on the right of the newly created pixels are shifted to left in the merging process and to right in the inserting process. Let I (k) (r) be a pixel value at r on a resized image after k-th merging/inserting process. I (k) (r) is calculated as the average of pixels listed in a merging history:  1 I (k) (r) = I (0) (q) (2) N(Q(k) (r)) (k)

(4)

where n is a relative coordinates. In this paper, we use 4-connected coordinates as n, i.e., n ∈ N where N = {(0, 1), (1, 0), (0, −1), (−1, 0)}. An example of pixel context is shown in Fig. 2. A large change of pixel context makes structure distorted. To prevent such distortion, the energy to create a new pixel grows when the change of pixel context is large after merging. Structure energy is expressed using the change of pixel context as   (d(k) (r, n) − d(0) (q, n))2 . (5) ES(k) (sr ) = q∈Q(k) (r) n∈N

Using this structure energy produces plausible images. In some images, however, it may fail to produce satisfactory results. Figure 3 (b) is a resized image using the energy expressed by Eq. (5). As shown in this figure, body outlines are distorted while unimportant background parts are left. The cause is that the background texture has complicated local structures. Although structure change in areas having many small edges like texture is unnoticeable, structure energy becomes large because of complicated structures. As a result, a seam passes through main structure parts because they have less energy than texture parts have. It leads to significant structure distortion. To obtain better resized images, we need to use structure energy which is little affected by texture components. Our proposed method calculates structure energy using pixel context on the cartoon image of luminance image Y of original image I (0) . Y can be decomposed into two components Y = u + v, such that u represents a cartoon or

q∈Q (r)

Fig. 1 Our method reduces image size by merging a seam and enlarges by inserting a seam.

Fig. 2 An example of pixel context. A number in a square indicates a pixel intensity. The pixel context of the gray pixel is expressed as d(r, n1 ) = −4, d(r, n2 ) = 0, d(r, n3 ) = 2, d(r, n4 ) = −1.

MISHIBA et al.: IMPROVED SEAM MERGING FOR CONTENT-AWARE IMAGE RESIZING

351

simplification of Y, while v represents noise or texture of Y. To obtain a cartoon image, we use the TV/L2 model, also known as the Rudin, Osher, and Fatemi model [9]:     2 inf F(u) = |∇u| + λ |v| dxdy, Y = u + v . (6) u

Cartoon image u is an image formed by homogeneous regions and with sharp boundaries. Using u, pixel context is rewritten as d(k) (r, n) = u(k) (r) − u(k) (r + n).

(7)

The update rule of u is as follows.  1 u(0) (q). u(k) (r) = (k) N(Q (r)) (k)

(8)

q∈Q (r)

Figure 3 (d) is a resized image using the cartoon image (Fig. 3 (c)) as calculating structure energy. As shown in this figure, using a cartoon image reduces the effect of texture components and keeps main structures on an image. Keeping important parts is as needed as keeping structure to obtain satisfactory resized results. The conventional seam carving and many improved methods use an importance map to prevent important parts from distortion. These methods, however, may produce distorted results because they repeatedly remove the least important seams ignoring which parts were removed before. It leads to excessive removal of unimportant parts and introduces distortion. To prevent such distortion, Cho et al. [6] proposed the use of importance diffusion, which propagates importance of removed pixels to their neighbors. Our proposed method uses

an importance map and calculates importance energy using merging histories to prevent such distortion. Using importance map T , importance energy to create new pixel r is expressed as  T (q). (9) ET(k) (sr ) = q∈Q(k) (r)

As shown in this equation, image importance is accumulated in the resizing process. Pixel importance can be measured by intensity gradient, saliency measure, object detections, user inputs, and many other criteria [3]. The determination of which criteria should be used as image importance depends on context. To make a fair comparison with conventional methods, in our experiments all the methods including our proposed method use the same importance map, which is the L1 -norm of the intensity gradient of a luminance image:     ∂  ∂  T =  Y  +  Y  . (10) ∂x ∂y Figure 4 (a) shows an importance map of the original image (Fig. 3 (a)). Figure 4 (b) expresses accumulated importance in the resizing process. In this figure, importance on the outline of bodies increases very little while importance on the background region is accumulated. As shown in this example, the importance energy can preserve important contents and prevent excessive reduction on unimportant regions. To obtain more satisfactory results, we introduce an additional energy. In many cases, using the foregoing structure and importance energies can prevent excessive merging/inserting in an area because of energy accumulation. However they fail to prevent it in smooth areas because there is a little energy accumulation. To solve this problem, we introduce the following energy which grows when merging/inserting is repeated. EU(k) (sr ) = N(Q(k) (r)).

(a)

(b)

(c)

(d)

Fig. 3 Resized results using different images for pixel context. (a) Original image. (b) Resized image using pixel context on the original image. (c) Cartoon image of (a). (d) Resized image using pixel context on the cartoon image.

(11)

N(Q(k) (r)) is 1 at all pixels of an original image. This energy is especially effective in image enlargement. Figure 5 (a) is an enlarged image in horizontal direction. In this image, background pixels seem to be naturally stretched. The reason is as follows. N(Q(k) (r)) at an inserted pixel is larger

(a)

(b)

Fig. 4 (a) An importance map of the original image (Fig. 3 (a)). (b) An accumulated importance map of the resized image (Fig. 3 (d)).

IEICE TRANS. INF. & SYST., VOL.E96–D, NO.2 FEBRUARY 2013

352

(1)

(2)

(3)

(4)

(5)

(6)

(7)

(8)

(9)

(10)

(11)

(12)

(13)

(14)

(15)

(16)

(17)

(18)

(19)

(20)

(21)

(22)

(23)

(24)

(25)

(26)

(27)

(28)

(29)

(30)

Fig. 6

(a)

Images for our simulation.

(b)

Fig. 5 (a) Enlarged image in horizontal direction. (b) N(Q(k) (r)) of image (a).

than at adjacent pixels. Therefore, the inserted pixel decreases the probability of pixel insertion at adjacent positions. As a result, new pixels are nearly equally inserted in unimportant regions. Figure 5 (b) is the distribution of N(Q(k) (r)) of the enlarged image. As shown in this figure, the concentration of pixel insertion on one area can be avoided. Finally, to define the energy in Eq. (3) for selecting an optimal seam with the three energies ES(k) , ET(k) and EU(k) , we need to normalize these energies, which are defined in different measures. Before starting the resizing process, we calculate the following maximum energy on each of the three energies individually, and then divide each energy by the corresponding maximum energy in the resizing process.  E∗(1) (s r ). (12) E∗ = max s

s r ∈s

Using normalized energies, the total energy to create a new pixel at r is expressed as E (k) (sr ) = ES(k) (sr ) + ET(k) (sr ) + EU(k) (sr ).

(13)

An optimal seam expressed Eq. (3) can be found using dynamic programming. 3.

Experimental Results

To validate our method, we implemented our proposed method and tested it on a variety of images. Figure 6 shows all images for our simulation. Firstly we discuss the case of image reduction. Figure 7 shows some results of image reduction with improved seam carving methods [4], [6], the conventional seam merging method [8], and the improved seam merging method.

The widths of the resized images are reduced by half. The original image of Fig. 7 (1) can be relatively well-resized with all methods. The reason is that this image consists of broad background region with smooth texture and foreground objects with sharp edges and texture. There are some silhouettes in the foreground of the original image of Fig. 7 (2). It is hard to resize such an image with less distortion because objects without texture like silhouettes are generally not regarded as important. The conventional methods [4], [6] regard the background with texture as important. As a result, the silhouettes are excessively reduced. In the result of the conventional seam merging method, the silhouettes are preserved better than of [4], [6] but seems unnatural. Our proposed method reduces unimportant background, preserving the silhouette. The reason is as follows. In a cartoon image of the original image of Fig. 7 (2), the background is almost homogeneous. Therefore, our method can preserve the silhouettes, which have clear structure. The original images of Fig. 7 (3) and (4) have some texture on the backgrounds. In these images, our proposed method preserves figures of foreground objects well while the other conventional methods reduce figures. In Fig. 7 (5), our proposed method keeps the shape of the straight edge of the cup while the other conventional methods distort. We show the objective validity of our proposed method. Table 1 shows the comparison of Bi-Directional Warping (BDW) distance. The BDW distance expresses the average distortion in a resized image and the maximum BDW distance the degree of significant artifact. A smaller value means less distortion. See Appendix for more details. As shown in this table, the BDW distance and the maximum BDW distance in our proposed method are the smallest in many images than in the other methods. This shows our proposed method can resize a wide variety of images with less distortion. We next show the results of image enlargement with [4] and our method. As shown in Fig. 8, our method keeps main objects and structures, while seam carving based approach [4] distorts some objects. In image enlargement, seam carving once removes seams, and then duplicates corresponding seams on an original image. The reason is straightforward pixel inserting creates a stretching artifact [3]. Additionally, seam carving needs to break the pro-

MISHIBA et al.: IMPROVED SEAM MERGING FOR CONTENT-AWARE IMAGE RESIZING

353

(1)

(2)

(3)

(4)

(5)

(a) Original

(b) Rubinstein [4] Fig. 7

(c) Cho [6]

(d) Seam merging [8]

(e) Proposed method

Comparison of our method with other methods in image reduction.

cess into several steps in the case of excessive image enlarging (for instance, greater than 50%). As shown in this process, seam carving selects seams optimized for image reduction, not for image enlargement. In contrast, our method en-

larges images straightforwardly without excessive stretching artifact thanks to the accumulation of energies.

IEICE TRANS. INF. & SYST., VOL.E96–D, NO.2 FEBRUARY 2013

354 Table 1 BDW distances [×103 ] and maximum BDW distances [×104 ]. Numbers in brackets indicate ranking order. method image (1) (2) (3) (4) (5) (6) (7) (8) (9) (10) (11) (12) (13) (14) (15) (16) (17) (18) (19) (20) (21) (22) (23) (24) (25) (26) (27) (28) (29) (30)

4.

Rubinstein [4] BDW MAX 0.577(4) 1.69(4) 0.722(4) 2.54(4) 0.702(4) 1.12(4) 0.658(4) 2.51(4) 0.378(4) 1.99(4) 1.78(2) 1.69(4) 0.887(4) 2.69(4) 0.301(4) 0.727(4) 1.22(3) 1.57(4) 1.49(3) 2.13(4) 0.974(3) 2.60(4) 0.995(4) 1.40(4) 0.308(4) 1.73(4) 0.922(4) 3.83(3) 0.350(3) 2.73(4) 0.324(4) 0.662(4) 0.594(3) 1.20(3) 0.488(3) 2.30(3) 0.0663(4) 0.923(4) 0.177(2) 0.632(3) 0.714(4) 1.28(3) 0.874(3) 2.68(4) 0.170(1) 1.12(4) 0.541(1) 1.28(4) 0.393(2) 0.695(4) 0.736(4) 2.20(4) 0.642(4) 2.16(4) 0.616(4) 2.71(4) 1.50(3) 4.66(3) 0.120(4) 0.831(4)

Cho [6] BDW MAX 0.440(3) 1.13(3) 0.376(1) 1.31(3) 0.498(2) 0.986(3) 0.555(3) 2.22(3) 0.207(2) 1.30(3) 1.79(4) 1.66(3) 0.477(1) 1.81(3) 0.227(1) 0.535(3) 1.25(4) 1.49(3) 1.51(4) 1.78(3) 0.990(4) 1.88(3) 0.968(2) 1.03(2) 0.248(3) 1.25(3) 0.862(3) 3.89(4) 0.401(4) 2.31(3) 0.298(3) 0.542(3) 0.638(4) 1.43(4) 0.551(4) 2.79(4) 0.0558(3) 0.505(3) 0.234(4) 0.918(4) 0.635(3) 1.54(4) 0.919(4) 2.21(3) 0.237(4) 0.863(3) 0.606(4) 1.17(3) 0.417(4) 0.515(3) 0.703(2) 1.11(3) 0.578(3) 1.28(3) 0.479(3) 1.85(3) 1.54(4) 4.82(4) 0.0782(3) 0.553(3)

Conclusion

In this paper, we have proposed the improved seam merging method for content-aware image resizing. This method merges a two-pixel-width seam element into one new pixel in image reduction and inserts a new pixel between the two pixels in image enlargement. To preserve important contents and structure, our method uses energy terms associated with importance and structure. Our method preserve the main structures by using a cartoon version of the original image when calculating the structure energy. In addition, we introduce a new energy term to suppress the distortion generated by excessive reduction or enlargement in iterated merger or insertion. Experimental results demonstrate that the proposed method can produce satisfactory results in both image reduction and enlargement. Our future work is to extend our proposed method for video resizing. Acknowledgements We thank the following Flickr (http://www.flickr.com/) users for Creative Commons imagery: Aaron Landry (Flower Cupcakes), alles-schlumpf (camels, ring), BekiPe (Pick a card), betta design (Taj Mahal), chelmsfordblue

Seam merging [8] BDW MAX 0.419(2) 1.0(2) 0.479(3) 1.16(2) 0.484(1) 0.888(2) 0.530(2) 1.66(2) 0.181(1) 1.03(2) 1.79(3) 1.54(2) 0.518(3) 1.62(2) 0.229(2) 0.487(2) 1.18(2) 1.17(2) 1.42(2) 1.42(1) 0.880(2) 1.62(2) 0.970(3) 1.19(3) 0.216(1) 0.961(2) 0.727(2) 2.86(2) 0.328(2) 1.45(1) 0.260(2) 0.410(2) 0.582(2) 1.02(2) 0.239(2) 1.45(2) 0.0357(2) 0.251(2) 0.222(3) 0.623(2) 0.410(2) 0.892(2) 0.763(2) 1.70(2) 0.191(2) 0.555(2) 0.576(2) 0.946(2) 0.402(3) 0.466(2) 0.712(3) 1.08(2) 0.568(1) 1.02(1) 0.412(2) 1.38(2) 1.15(2) 3.88(2) 0.0712(2) 0.388(2)

Proposed method BDW MAX 0.299(1) 0.670(1) 0.395(2) 0.691(1) 0.528(3) 0.694(1) 0.490(1) 1.52(1) 0.227(3) 0.735(1) 1.53(1) 1.26(1) 0.482(2) 1.50(1) 0.271(3) 0.426(1) 1.03(1) 0.961(1) 1.35(1) 1.46(2) 0.863(1) 1.31(1) 0.90(1) 0.733(1) 0.240(2) 0.939(1) 0.683(1) 2.48(1) 0.320(1) 1.94(2) 0.248(1) 0.410(1) 0.476(1) 0.626(1) 0.147(1) 1.19(1) 0.0332(1) 0.231(1) 0.176(1) 0.50(1) 0.391(1) 0.860(1) 0.605(1) 1.23(1) 0.194(3) 0.535(1) 0.590(3) 0.938(1) 0.368(1) 0.444(1) 0.671(1) 0.90(1) 0.571(2) 1.03(2) 0.358(1) 0.760(1) 0.953(1) 3.38(1) 0.0648(1) 0.373(1)

(hockey), cliff1066 (an object in front of a wall), dcis steve (cards), fedfil (Rouen), gwenael.piaser (two little tourists), hao (Center City), Ingy The Wingy (soccer), Jungle Boy (girls), leftymgp (Mocking Bird), looseends (windows with lace curtains), lrargerich (abbey hallway), macropoulos (butterfly), melisslissliss (snow mountain), Naixn (boy and girl), oschene (Square Vase), Paraflyer (parrots), Ricymar Fine Art Photography (Sea World), simpologist (Moody Cornish Landscape), Steve took it (lake), Tammra McCauley (Pumpkin Farm), toshi (cup), twicepix (car), volveravanzar (jump). References [1] D. Vaquero, M. Turk, K. Pulli, M. Tico, and N. Gelfand, “A survey of imageretargeting techniques,” Proc. SPIE Applications of Digital Image Processing XXXIII, 2010. [2] A. Shamir and O. Sorkine, “Visual media retargeting,” SIGGRAPH ASIA Courses, pp.1–13, New York, NY, USA, 2009. [3] S. Avidan and A. Shamir, “Seam carving for content-aware image resizing,” ACM Trans. Graph., vol.26, no.3, p.10, 2007. [4] M. Rubinstein, A. Shamir, and S. Avidan, “Improved seam carving for video retargeting,” ACM Trans. Graph., vol.27, no.3, pp.1–9, 2008. [5] S. Goferman, L. Zelnik-Manor, and A. Tal, “Context-aware saliency detection,” Proc. IEEE Conf. Computer Vision and Pattern Recognition, pp.2376–2383, 2010. [6] S. Cho, H. Choi, Y. Matsushita, and S. Lee, “Image retargeting us-

MISHIBA et al.: IMPROVED SEAM MERGING FOR CONTENT-AWARE IMAGE RESIZING

355

(a) Original

(b) Rubinstein [4] Fig. 8

[7]

[8]

[9] [10]

ing importance diffusion,” Proc. IEEE Int. Conf. Image Processing, pp.977–980, 2009. K. Mishiba and M. Ikehara, “Connectivity prior non-linear image resizing,” IEICE Trans. Inf. & Syst. (Japanese Edition), vol.J94-D, no.1, pp.356–364, Jan. 2011. K. Mishiba and M. Ikehara, “Seam merging for image resizing with structure preservation.,” Proc. IEEE Int. Conf. Acoustics, Speech and Signal Processing, pp.1001–1004, 2011. L. Rudin, S. Osher, and E. Fatemi, “Nonlinear total variation based noise removal algorithms,” Physica D, vol.60, pp.259–268, 1992. M. Rubinstein, A. Shamir, and S. Avidan, “Multi-operator media retargeting,” ACM Trans. Graph., vol.28, no.3, pp.1–11, 2009.

Appendix:

(c) Proposed method

Results of image enlargement with Rubinstein’s method and our proposed method.

Bi-directional Warping

Bi-Directional Warping (BDW) is an algorithm for measuring a distance between two images [10]. The following is how to calculate the BDW distance in this paper. Let S and

T be given images divided into h rows, and S i , T i be respectively row i in S and T (see Fig. A· 1 (a)). The BDW distance is given by BDW(S , T ) =

h 1  A-DT W(S i , T i ) NS i=1

+

h 1  A-DT W(T i , S i ) NT i=1

(A· 1)

where NS and NT are the total number of elements (patches) in S and T respectively, and function A-DT W is an Asymmetric Dynamic Time Warping measure (A-DTW). A-DTW is an algorithm for measuring similarity between two onedimensional signals. Let S  and T  be two one-dimensional signals, and S i and T j patches in S  and T  , respectively. We use the following A-DTW:

IEICE TRANS. INF. & SYST., VOL.E96–D, NO.2 FEBRUARY 2013

356

(a)

(b)

Fig. A· 1 Calculation of BDW. (a) Images S and T are divided into rows, and then the A-DTW measure from rows of S to rows of T is calculated. (b) The A-DTW measure is the sum of the minimum distance between two one-dimensional signals (patches in this case).

A-DT W(S  , T  ) = min

s 

 d(S i , T x(i) ),

Masaaki Ikehara received the B.E., M.E., and Dr.Eng. degrees in electrical engineering from Keio University, Yokohama, Japan, in 1984, 1986, and 1989, respectively. He was appointed Lecturer at Nagasaki University, Nagasaki, Japan, from 1989 to 1992. In 1992, he joined the Faculty of Engineering, Keio University. From 1996 to 1998, he was a Visiting Researcher at the University of Wisconsin, Madison, and Boston University, Boston, MA. He is currently a Professor with the Department of Electronics and Electrical Engineering, Keio University. His research interests are in the areas of multirate signal processing, wavelet image coding, and filter design problems.

i=1

s.t. ∀i, 1 ≤ x(i − 1) ≤ x(i) ≤ t, (A· 2) 



where s and t are the total number of patches in S and T respectively, x is a mapping x : [1, . . . , s] → [1, . . . , t], and d(S i , T j ) is a distance between patch S i and T j (see Fig. A· 1 (b)). We use n × n patches with overlap of n − 1 pixels between adjacent patches. The distance d(S i , T j ) is given by the mean squared differences of pixel values. As shown above, the BDW distance expresses the average similarity between corresponding two patches. The maximum BDW distance is the sum of the maximum alignment errors of S → T and T → S . The maximum alignment error is the maximum distance of d(S i , T j ) in Eq. (A· 2). In seam-carving-like image resizing, most elements are usually well aligned, yet a small number of deformed elements are enough to cause a visual artifact [10]. Therefore, the maximum BDW distance can measure the most noticeable artifact. We use four scales of patch size, n = 4, 8, 16, 32, and use the average to calculate the BDW distance and the maximum BDW distance.

Kazu Mishiba received the B.E. and M.E. in 2004 and 2006, respectively from Keio University, Yokohama, Japan. In 2006, He joined FUJI FILM CO., Ltd. He received the Ph.D in 2011 from Keio University. He was an assistant professor at Keio University in 2011. He is currently an assistant professor at Tottori University. His research interests are in the areas of image interpolation, content-aware resizing, and image editing.

Takeshi Yoshitome received the B.S. and M.S. degrees in computer science from Tsukuba University, Japan, in 1982 and 1984, respectively. In 1984, he joined the Electrical Communication Laboratories, Nippon Telegraph and Telephone Corporation (NTT), Kanagawa, Japan and has been engaged in research and development of image processing systems. He received the Ph.D degree in computer science from Tsukuba University in 2010. He is currently a professor at Tottori University.

Improved Seam Merging for Content-Aware Image Resizing

Feb 2, 2013 - SUMMARY. In this paper, we propose an improved seam merging method for content-aware image resizing. This method merges a two-pixel-.

3MB Sizes 1 Downloads 200 Views

Recommend Documents

Interest Seam Image
tions, such as near duplicate video clip search, video genre recognition and ..... Seam Image” means the proposed retrieval system without scene verification.

Fuzzy Logic based Protection for Image Resizing by ...
Thus, seam carving is not completely protection free for low energy objects with high content. Examples of such objects may be human beings, buildings, small objects etc. For this reason, we introduce a fuzzy logic based image segmentation method and

Optimal Multiple Surfaces Searching for Video/Image Resizing - A ...
Content-aware video/image resizing is of increasing rel- evance to allow high-quality image and video resizing to be displayed on devices with different resolution. In this paper, we present a novel algorithm to find multiple 3-D surfaces simultaneou

An Improved Hybrid Model for Molecular Image ...
1 Introduction. Image denoising is an active area of interest for image ... e-mail: [email protected]. K. Kannan e-mail: [email protected]. M.R. Kaimal.

seam pdf
There was a problem previewing this document. Retrying... Download. Connect more apps... Try one of the apps below to open or edit this item. seam pdf.

Discontinuous Seam-Carving for Video Retargeting
ence to the spatial domain by introducing piece-wise spa- tial seams. Our spatial coherence measure minimizes the change in gradients during retargeting, ...

pdf resizing software
Page 1 of 1. File: Pdf resizing software. Download now. Click here if your download doesn't start automatically. Page 1 of 1. pdf resizing software. pdf resizing ...

seam carving with rate-dependent seam path information - IEEE Xplore
7-1-2 Yoto, Utsunomiya, Tochigi, 321-8585 Japan email: {tanaka, madoka, kato}@is.utsunomiya-u.ac.jp. ABSTRACT. In this paper, we present a seam carving, ...

Tag-Based Image Retrieval Improved by Augmented ... - IEEE Xplore
period of an event by leveraging millions of training web images and their associated rich textual descriptions. For any given query tag (e.g., “car”), the inverted ...

Improved Variational Methods in Medical Image ...
... here is to provide tools to track and quantify changes in forests, water supplies ...... Epstein and Gage proved in [39] via the following lemma, that under certain ...

Tag-Based Image Retrieval Improved by Augmented ... - IEEE Xplore
IEEE TRANSACTIONS ON MULTIMEDIA, VOL. 14, NO. 4, AUGUST 2012. 1057. Tag-Based Image Retrieval Improved by Augmented. Features and ...

Merging scenarios
Another drawback of scenarios is that a description of a system is usually defined by a set of scenarios, which represent typical .... This assumption limits the search for non-local choice to the set of ... a local property of choice nodes, but must

pdf resizing software
... was a problem previewing this document. Retrying... Download. Connect more apps... Try one of the apps below to open or edit this item. pdf resizing software.

SEAM final banner.pdf
SEAM final banner.pdf. SEAM final banner.pdf. Open. Extract. Open with. Sign In. Details. Comments. General Info. Type. Dimensions. Size. Duration. Location.

Bundled Depth-Map Merging for Multi-View Stereo
Although the back-end techniques are al- ready used in some other .... intra-line results by dynamic programming within the top-. K candidates. This scan-line ...

Bundled Depth-Map Merging for Multi-View Stereo - Semantic Scholar
without loss of result accuracy. To improve convergence of the minimization, the nor- mal direction can be initialized with a rough normal es- timation methods as [12, 13]. This paper adopts the grid search method suggested in [13]. Suppose n0 = −â

PartBook for Image Parsing
effective in handling inter-class selectivity in object detec- tion tasks [8, 11, 22]. ... intra-class variations and other distracted regions from clut- ...... learning in computer vision, ECCV, 2004. ... super-vector coding of local image descripto

PartBook for Image Parsing
effective in handling inter-class selectivity in object detec- tion tasks [8, 11, 22]. ... automatically aligning real-world images of a generic cate- gory is still an open ...

SEAM M1 presentation BG.pdf
More information about history and present of ... the Management Board of 5 persons. The Association main office is in. Sofia. ... SEAM M1 presentation BG.pdf.

Path merging and destination removal
result in further enhancement of the performance of high- speed networks. Index terms- routing, virtual path layout, ATM,. MPLS, graph theory, NP-complete. r.

Bundled Depth-Map Merging for Multi-View Stereo
Depth-map merging is one typical technique category for ... model is generated from the optimized 3D point cloud using ..... computer vision, chapter 13.

Improved Algorithms for Orienteering and Related Problems
approximation for k-stroll and obtain a solution of length. 3OPT that visits Ω(k/ log2 k) nodes. Our algorithm for k- stroll is based on an algorithm for k-TSP for ...

Improved Algorithms for Orienteering and Related Problems
Abstract. In this paper we consider the orienteering problem in undirected and directed graphs and obtain improved approximation algorithms. The point to ...