Login| Sign Up| Help| Contact|

Patent Searching and Data


Title:
GEOMETRIC METHOD OF TRANSFORMING A TWO-DIMENSIONAL IMAGE.
Document Type and Number:
WIPO Patent Application WO/2010/125041
Kind Code:
A1
Abstract:
Geometric method of transforming a first two-dimensional image into a second two-dimensional image through an image processing applied to the first images or to the second image. In this method, one of said first and second images is divided into several surfaces, each of the surfaces of the divided image is transformed by a bilinear transformation specific to each surface, and the transformed surfaces are grouped together.

Inventors:
GOBERT JEAN (FR)
Application Number:
PCT/EP2010/055589
Publication Date:
November 04, 2010
Filing Date:
April 27, 2010
Export Citation:
Click for automatic bibliography generation   Help
Assignee:
ST ERICSSON FRANCE SAS (FR)
GOBERT JEAN (FR)
International Classes:
G06T3/00
Domestic Patent References:
WO2006031214A12006-03-23
Foreign References:
EP1357516A22003-10-29
US20020122113A12002-09-05
EP1598778A12005-11-23
Other References:
WOLBERG G: "Digital Image Warping , passage", 1 January 1990, DIGITAL IMAGE WARPING, XX, XX, PAGE(S) 41 - 94,117, XP002451703
ZELNIK-MANOR L ET AL: "Squaring the Circles in Panoramas", COMPUTER VISION, 2005. ICCV 2005. TENTH IEEE INTERNATIONAL CONFERENCE ON BEIJING, CHINA 17-20 OCT. 2005, vol. 2, 17 October 2005 (2005-10-17), PISCATAWAY, NJ, USA,IEEE, pages 1292 - 1299, XP010856965, ISBN: 978-0-7695-2334-7
ERIC WEISSTEIN: "Gnomonic Projection", MATHWORLD, 27 October 2007 (2007-10-27), XP002558251, Retrieved from the Internet [retrieved on 20091201]
Attorney, Agent or Firm:
ZAPALOWICZ, Francis (8 Avenue Percier, Paris, FR)
Download PDF:
Claims:
CLAIMS

1. Geometric method of transforming a first two-dimensional image into a second two-dimensional image through an image processing applied to the first image or to the second image, characterized in that one of said first and second images is divided into several surfaces, each of the surfaces of the divided image is transformed by a bilinear transformation specific to each surface, and the transformed surfaces are grouped together.

2. Method according to Claim 1 , characterized in that a bilinear transformation is chosen for each surface so that the result of this transformation applied to a part of the vertices of the surface corresponds to the result of said processing applied to said part of said vertices.

3. Method according to one of Claims 1 or 2, characterized in that said processing is applied to the second image and is a processing inverse to the processing when it is applied to the first image.

4. Method according to Claim 3 , characterized in that it comprises the steps of:

-slicing the transformed image into quadrilateral surfaces (S2); and

-on each of these sliced surfaces (S2) : determining, through said inverse processing on each of the four vertices (xi,yi,i=0..3) of the surface (S2), four points (ui,vi,i=0..3) in the image to be transformed filling the surface through a bilinear transformation which associates said four vertices (xi,yi,i=0..3) of the sliced surface (S2) with said four points (ui,vi,i=0..3).

5. Method according to Claim 4, characterized in that said bilinear transformation on the surface (S2) allows its filling by a surface (S l ) delimited by said four points (ui,vi,i=0..3) and in that said sliced surfaces (S2) are grouped together after they are filled.

6. Method according to any one of Claims 1 to 5 , characterized in that said processing is a perspective transformation.

7. Method according to any one of Claims 1 to 5 , characterized in that said processing comprises an inverse equirectangular transformation and a gnomonic transformation.

8. Method according to any one of Claims 4 to 7, characterized in that it comprises, before the grouping step and for each of the sliced quadrilateral surfaces (S2), a step of determining the error between the sliced surface (S2) after filling and the surface arising from said processing on the whole of the surface (S l ) and if this error is greater than a given threshold then the sliced surface (S2) is subdivided.

9. Method according to Claim 8, characterized in that the error determination step comprises the steps of: -determining a first point in S l associated with the centre of the surface S2 through said bilinear transformation;

-determining a second point in S l associated with the centre of the surface S2 through said inverse processing;

-computing the distance between these two points. 10. Method according to any one of Claims 4 to 9, in which the filling of each of the sliced surfaces (S2) through the bilinear transformation is carried out in geometric form and comprises the following steps :

-determining, by using the properties of conservation of the barycentres of a bilinear transformation, the lines (Zk) in the surface

(S l ) which result from said bilinear transformation applied to lines of pixels (Lk) in the quadrilateral (S2);

-determining, by using the properties of conservation of the barycentres of a bilinear transformation, the points (p i ) in the surface (S l ) which result from said bilinear transformation applied to pixels

(P l ) in the quadrilateral (S2);

-filling the pixels (P l ) with the values of said points (p i ).

Description:
Geometric method of transforming a two-dimensional image

The present invention relates, generally, to image processing. It applies advantageously, but not limitingly, to any electronic device implementing a complex transformation on a two-dimensional image.

Signal processing and, in particular, image processing require numerous computational resources. Such processing can also take a great deal of time. Such is the case with image processing such as for example perspective transformation or inversion of an equirectangular and gnomonic transformation.

The objective particularly sought is to replace this processing with a transformation that consumes fewer computational resources so as to obtain a processing whose transformation is simple and whose result is close to that of this processing.

According to one aspect, there is proposed a geometric method of transforming a first two-dimensional image into a second two- dimensional image through an image processing applied to the first image or to the second image. According to this aspect, such an objective is achieved by dividing one of said first and second images into several surfaces and then, each of the surfaces of the divided image is transformed by a bilinear transformation specific to each surface, and the transformed surfaces are grouped together. An approximation of the transformed image by the processing is thus obtained. Furthermore, on account of the use of the bilinear transformation, a simple transformation is thus obtained, which does not consume many resources. Such a transformation is also accurate, since it is fairly faithful and does not exhibit a large error with the image after processing. The accuracy is all the larger the smaller the divided surfaces.

According to one alternative, a bilinear transformation is chosen for each surface so that the result of this transformation applied to a part of the vertices of the surface corresponds to the result of said processing applied to said part of said vertices.

According to another alternative, the processing is applied to the second image and is a processing inverse to the processing when it is applied to the first image.

According to one mode of implementation there is proposed a method comprising the steps of: -slicing the transformed image into quadrilateral surfaces

(S2); and

-on each of these sliced surfaces (S2) : determining, through said inverse processing on each of the four vertices (xi,yi,i=0..3) of the surface (S2), four points (ui,vi,i=0..3) in the image to be transformed filling the surface through a bilinear transformation which associates said four vertices (xi,yi,i=0..3) of the sliced surface (S2) with said four points (ui,vi,i=0..3). According to another mode of implementation, said bilinear transformation on the surface (S2) allows its filling by a surface (S l ) delimited by said four points (ui,vi,i=0..3) and, according to this mode of implementation, said sliced surfaces (S2) are grouped together after they are filled.

According to yet another mode of implementation, the processing is a perspective transformation.

According to an additional mode of implementation, the processing is composed of an inverse equirectangular transformation and of a gnomonic transformation.

According to another additional mode of implementation, the method comprises, before the grouping step and for each of the sliced quadrilateral surfaces (S2), a step of determining the error between the sliced surface (S2) after filling and the surface arising from said processing on the whole of the surface (S l ) and if this error is greater than a given threshold then the sliced surface (S2) is subdivided. Thus, in the case where the error is too large, then the dimension of the quadrilateral surface on which the processing must be carried out is reduced. This affords an adaptive processing as a function of the complexity of each of the parts of the image.

According to yet another additional mode of implementation, the error determination step comprises the steps of:

-determining a first point in S l associated with the centre of the surface S2 through said bilinear transformation;

-determining a second point in S l associated with the centre of the surface S2 through said inverse processing;

-computing the distance between these two points. According to a last mode of implementation, the filling of each of the sliced surfaces (S2) through the bilinear transformation is carried out in geometric form and comprises the following steps :

-determining, by using the properties of conservation of the barycentres of a bilinear transformation, the lines (Zk) in the surface (S l ) which result from said bilinear transformation applied to lines of pixels (Lk) in the quadrilateral (S2);

-determining, by using the properties of conservation of the barycentres of a bilinear transformation, the points (p i ) in the surface (S l ) which result from said bilinear transformation applied to pixels (P l ) in the quadrilateral (S2);

-filling the pixels (P l ) with the values of said points (p i ). Other advantages and characteristics of the invention will be apparent on studying the detailed description of modes of implementation and embodiments, taken by way of nonlimiting examples and illustrated by the appended drawings in which:

- Figure 1 represents the input surface and the output surface illustrating the implementation of the method in the case where the processing to be simplified is a perspective transformation;

- Figures 2 and 3 illustrate the implementation of the method in the case of another processing to be simplified;

- Figure 4 illustrates the implementation of the computation of the error in the case of a perspective transformation; and

- Figure 5 illustrates the steps of the whole of the simplified processing method. In Figure 1 is illustrated the transformation making it possible to implement in a simplified manner a perspective transformation processing. The input image corresponds to the image to be transformed by the method. The output image corresponds to the image after transformation by the method. The transformations and processings to which reference will be made hereinafter can equally well be applied directly to the input image or inversely to the output image. Preferably, inverse processing on the output image is used. Indeed, if the direct transformation is used and the output image is generated by successively scanning all the pixels of the input image, it is possible that pixels of the output image may not be visited, thereby creating holes. Whereas by using the indirect transform, all the pixels of the output image are visited. It is therefore to this processing that reference is made hereinafter.

Initially, the output image can be sliced up into several rectangles or quadrilateral surfaces comprising an integer number of pixels (for example 2 m or 2 to the power m along the y axis and 2 n or 2 to the power n along the x axis). An example of these rectangles (n=2, m=2) is illustrated at the bottom of Figure 1 . The rectangle such as illustrated is itself divided into several quadrangles whose dimensions A and B correspond to that of a pixel. Thus, for example, A corresponds to the length of a pixel and B corresponds to the width of a pixel on the arrival image. With each of the intersection points of the two lines is in fact associated a pixel; the latter can be situated on the intersection point or inside the quadrangle whose top left point is the intersection point. An inverse perspective transformation function is then used on the quadrilateral of the output image. The four vertices xi, yi of the quadrilateral are then associated with four points ui, vi in the input image. Accordingly, we start from an output pixel and determine the point which must be associated with it. For the perspective transformation and the determination of the pixel of the input image (ui, vi) to be associated with a pixel of the output image (xi, yi), the following formulae are used here : NXi = a. xi + b. yi + c NYi = d. xi + e. yi + f D = g. xi + h. yi + j

R = 1/D ui = NXi. R vi = NYi. R

The values a, b, c, d, e, f, h, j are constants which depend on the perspective transformation. By virtue of these formulae it is possible to determine, for each of the pixels of the output image, the point in the input image which must be associated with it in order to carry out the perspective transformation.

This transformation is carried out on the vertices xi, yi (i varying from 1 to 4) of a surface S2 sliced in the output image. It allows, through the association of the four vertices (xθ, yθ) (x l , yl )

(x2, y2) (x3 , y3 ) with four points (uθ, vθ) (ul , v l ) (u2, v2) (u3 , v3), the choice of a bilinear transformation TB.

The latter is chosen and defined such that the four vertices (xθ, yθ) (x l , yl ) (x2, y2) (x3 , y3) of said sliced surface S2 after their transformation by TB correspond respectively to the four points (uθ, vθ) (ul , v l ) (u2, v2) (u3 , v3). Carrying out this bilinear transformation

TB on the sliced surface S2 thus allows the filling thereof by a surface

S l delimited by the four points (uθ, vθ) (ul , vl ) (u2, v2) (u3 , v3). An approximation of the perspective transformation with a specific bilinear transformation is thus carried out.

The bilinear transformation TB can for example be carried out in a geometric manner, by using the properties of a bilinear transformation. Indeed, the bilinear transform of a barycentre of two points is equal to the barycentre of the bilinear transforms of each of the points. By way of example, in the sliced surface S2, the position of the bilinear transform of the midpoint of (xθ,yθ) and (x2,y2) is the midpoint of (uθ,vθ) and (u2,v2) of the surface S l . It is this property which is used hereinafter.

The list of lines (/k,k= 1..5) in the surface S l which are the result of the bilinear transform TB applied to the pixel lines is first of all determined. The first and the last line have as ends (uθ,vθ) &

(ul ,vl ) and (u2,v2) & (u3 ,v3). They therefore correspond on account of the choice of the bilinear transform TB respectively to the pixel lines L l and L5. The following lines are determined by virtue of the quantities : du/= (u2-uθ)/(2 m ) dv/= (v2-vθ)/(2 m ) dur= (u3 -ul )/(2 m ) dvr= (v3 -vl )/(2 m ) It is apparent here that the choice of a number of pixels being expressed as a power of 2 along the x axis allows a very fast binary computation. Indeed a division of a binary number by a number such as 2 power r (2 r in mathematical notation) is limited to a shift of r bits of the binary number.

By using these quantities, the ends of the kth line are two points whose coordinates are: (uθ + (k-1). dul, vθ + (k-1). dvl) and (ul

+ (k-1). dur, vl + (k-1). dvr).

The ends of the lines (Lk, k=1..5) are barycentres of the points

(xθ,yθ) & (x2,y2) and (xl,yl) & (x3,y3). The ends of their bilinear transform under TB (Zk, k=1..5) are therefore barycentres of the points (uθ,vθ) & (u2,v2) and (ul,vl) & (u3,v3) on account of the stated property of conservation of the barycentres.

By way of example the ends of L2 are the barycentre (1/3,1) of

(xθ,yθ) and (x2,y2) and the barycentre (1/3,1) of (xl,yl) and (x3,y3).

While the ends of /2 are the barycentre (1/3,1) of (uθ,vθ) and (u2,v2) and the barycentre (1/3,1) of (ul,vl) and (u3,v3). Ω. is therefore the bilinear transform TB of L2.

Thereafter, on each of these lines, points are determined, the first being the left end of the line and the qth point is such that: (uθ + (k-1). du/ + (q-1). du, vθ + (k-1). dv/ + (q-1). dv) with k its line number and du, dv: du = (ul + (k-1). dur - uθ+(k-l). dul) / (2 n ) dv = (vl + (k-1). dvr - vθ+(k-l). dvl) / (2 n )

The choice of a number of pixels along the x axis being expressed in the form 2 power n here again allows a reduction in the computation times.

Each of these points in fact lies at the intersection of two lines whose ends are barycentres of the vertices of Sl. They are therefore indeed the result of the bilinear transform of the points lying at the intersection of the lines whose ends are barycentres with the same coefficients of the vertices of S2. Thus, by way of example, the point pi corresponds to the pixel Pl under the bilinear transform TB.

A square grid, illustrated in Figure 1, can therefore be used. To carry out the filling by the bilinear transformation TB, with each pixel of S2 number q on the kth line (Lk) S2(k,q) is associated the value of the point of Sl number q on the kth line (Zk) Sl(k,q) with k and q varying between 1 and 5 in the example illustrated. An approximation is thus obtained as S2 by bilinear transformation of the perspective transformation of the surface S l . This approximation has the characteristic of not exhibiting any error at the four vertices. In Figures 2 and 3 are schematically represented the carrying out of an inverse equirectangular transformation followed by a gnomonic transformation.

The gnomonic transformation is the transformation which makes it possible to project a spherical image onto a plane tangent at a given point to this sphere. The equirectangular projection makes it possible to project a spherical image onto a plane tangent at a point at the latitude 0, that is to say "on the equator" in the well known case of a representation of the earth.

To illustrate the implementation of the method which has just been described, an image arising from an equirectangular projection in which one wishes to retrieve a detail in a direction whose latitude (=60°) is remote from the equator is used here as input image. The image on which the equirectangular projection has been carried out is in fact a sphere on which great circles lie, these great circles defining planes that are all parallel to one another. A proj ection without geometric deformation would make it possible to obtain oblique and parallel straight lines in the plane. But, in the case of an equirectangular projection which creates significant geometric deformations, the straight oblique lines are curves in the input image, especially around the detail. They are represented as solid lines on the image at the top of Figure 2.

It is therefore proposed to return to the spherical representation and then to project by virtue of the gnomonic representation on a plane tangent to the detail that one wishes to clarify. An inverse equirectangular transformation followed by a gnomonic projection in the plane of the detail is therefore implemented; its latitude being situated at 60° . In Figure 2, at the bottom, the result of the gnomonic projection is called the output image. The input image is the image on which the inverse equirectangular projection is carried out so as to return to the sphere.

The two successive proj ections can be carried out by using the simplified transformation based on a bilinear projection.

One will therefore proceed as in Figure 1. As may be seen in Figure 2, the output image is first of all sliced up into rectangles.

Then, as is illustrated in Figure 3 , a quadrilateral S l is associated with the quadrilateral surface S2. Its four vertices (ui, vi) are determined by carrying out the transform inverse to the processing on the four vertices of the rectangle (xi, yi). In the case of a gnomonic projection the equations implemented for this purpose are :

First series

c = tan -1 p

With x, y the coordinates relating to the point of contact on the plane tangent to the sphere at the point defined by the angles λ 0 andφ 0 . p is the distance from the point in the tangent plane to the contact point. The points on the sphere are defined by λ and φ . And in the case of an equirectangular projection: Second series u=s. λ+uO v=s. φ+vO

With u and v the coordinates on the input image. Thus by using the first series of equations, we determine the point of the sphere which is associated with the point (xi,yi, i=0..3) in the gnomonic projection. Then with the second series of equations we determine the point (ui,vi, i=0..3) in the equirectangular projection which is associated with this point on the sphere. The surfaces S l and S2 are therefore defined by these two series of four points.

In the same manner as undertaken for the previous processing, the bilinear transformation associating the vertices of S2 with the vertices of S l is then applied in such a way that the quadrilateral surface S2 is filled. This bilinear transformation can be carried out in the same manner as it was previously carried out, in a geometric manner. Thus, after determining the lines and points in the input image S l , it is possible to associate a point S l (k,q) qth point of the kth line (Zk) with each point S2(k,q) qth point of the kth line (Lk).

The output image such as is illustrated in Figure 2 is thus obtained, in which, in the vicinity of the detail, the various oblique lines are straight and parallel, unlike what was obtained with equirectangular proj ection. Therefore, in the case illustrated, the approximation is faithful enough to the gnomonic projection and the inverse of the equirectangular projection as not to create this geometric deformation.

In Figure 4 is illustrated a means of determining the error during the filling of the surface S2. This error represents the difference between the result obtained with a bilinear transform to fill

S2 and the result obtained with a perspective transformation processing, for example.

To estimate it, we compute the distance between two points in the surface S l of the input image.

The first point arises from the bilinear transformation on the centre of S2 (xc,yc). Given that the transformation is bilinear, to determine its position it suffices to take the centre of the surface S l , the point with coordinates uc l , vc l is thus deduced therefrom. To determine the surface S l , the formulae recalled below are used on the four points of the surface S2 :

NXi = a. xi + b. yi + c NYi = d. xi + e. yi + f

D = g. xi + h. yi + j

R = 1/D ui = NXi. R vi = NYi. R The second point arises from the transformation inverse to the perspective transformation processing on the centre of the rectangle S2 with coordinates (xc, yc).

NXc = a. xc + b. yc + c

NYc = d. xc + e. yc + f D = g. xc + h. yc + j

R = 1/D uc2= NXc. R vc2= NYc. R

It is for example then possible to compute the distance in the form: d=max(abs(uc2-uc l ),abs(vc2-vc l )) The error being maximal at the centre, the choice of the computation of the error at the centre gives the maximum amplitude in the variation of this error, this large amplitude making it possible to discriminate all the more easily between a transformation whose error value is acceptable and a transformation whose value is unacceptable. In Figure 5 is illustrated the whole of the method in which the determination of the error is included. For certain zones, this determination makes it possible to reduce the surface on which the transformation is effected. This allows the accuracy of the transformation to be increased locally for surfaces in which the bilinear transformation was not satisfactory according to the error criterion. This method uses, for example, an error computation such as that illustrated by Figure 4.

First of all the output image is sliced up into several quadrilateral surfaces S2 (501 ). These surfaces are preferably rectangular surfaces. This indeed makes it possible to facilitate the slicing and the carrying out of the bilinear transformation in geometric form.

Then, for an output surface S2, the error between the filling using the bilinear transformation and that which would have been carried out by the processing (502) is determined. This error expressed for example in distance form is then compared with a given threshold

(503).

In the case where the error is greater than the threshold and if possible the surface undergoing processing can be subdivided (504). The method then resumes on each of these subdivisions.

Otherwise, if the error is less than the threshold or if the subdivision is impossible, then the filling of the surface S2 can be achieved using the bilinear transformation (505). Finally, it is determined whether the surface which has just been processed was the last one of the output image (506).

If this surface is indeed the last then the whole set of surfaces can be grouped together (507) and the transformation terminates.

Otherwise it is necessary to go to the next surface (508) of the output image for which the method and the step (502) are repeated.




 
Previous Patent: METHOD FOR PREPARING LACTAMS

Next Patent: ISOXAZOLE DERIVATIVES