• 沒有找到結果。

The Gentle Spherical Panorama Image Construction for the Web Navigation System

N/A
N/A
Protected

Academic year: 2021

Share "The Gentle Spherical Panorama Image Construction for the Web Navigation System"

Copied!
4
0
0

加載中.... (立即查看全文)

全文

(1)

The Gentle Spherical Panorama Image Construction for the Web Navigation System

*

Min-Jen Tsai, Chi-Long Kao and Jung Liu

Institute of Information Management, National Chiao Tung University, R.O.C.

ABSTRACT

Among different multimedia format, the panorama images could present the real-life spatial scenery in the Internet which offers better viewing angles than traditional 2D images and videos. This study provides a gentle approach which only takes two images to create the spherical panorama images for the 3D viewing environment as a virtual tour navigation system with low cost (less than $2000 for the whole system). By the help of the 183 degree fisheye lens, the self developed pano head which positions the lens at the center of shooting angle, and the auto-morphing algorithm to transform the fish eye images into the spherical panorama images, the proposed navigation system can easily demonstrate the interior profile, layout of the 3D environment, and the viewing coverage on the screen which offers the detailed information, photos, hot spots for hyperlinks on the web pages. Therefore, the whole spherical panorama images can then be created seamlessly and conveniently for the 3D usage on the Internet which extends the usability for the panorama image based systems.

Index Terms²fisheye, spherical panorama, navigation. 1. INTRODUCTION

In the digital world, almost everything is displayed on the Internet. Since the Internet communication speed and bandwidth increases daily, it enables users to request the multimedia content to obtain the information. Among different multimedia format, the panorama images could present the 3D real-life spatial scenery on the Web which offers better viewing angles than images and videos. Many real estate agents, touring services already offer 2D scene images but few provide 3D information online.

A panorama is made by at least two images or by tens of images. More images will increase the complexity of shooting and stitching, and may cause discontinuity, discordant color levels and inconsistent brightness, which results high production cost for high image resolution. Therefore, this study focuses on how to use two images to create the spherical panorama images, simplify the shooting labor and the assembling methods for panorama image production.

This paper will be organized as follows. The details of the approach will be explained in Section 2. Section 3 will demonstrate the designed web navigation system and conclusion is in Section 4.

2. THE APPROACH

A spherical panorama, covers 360 degree point of views, needs at least two shoots. Using the fisheye lens with more than 180 degree angle, we can capture half of the spherical image. To get another

half of the spherical image, we need to rotate the lens 180 degree with the help of the pano head with the fixed position at the rotation center. Fig. 1 shows the relationship between the shooting angle and the fisheye lens image [1, 2].

The two images made with fisheye lens are twisted due to the lens characteristic. Therefore, we need to correct the twists and project them to the coordinate system of spherical panorama before assembling. During the assembling stage, we need to adjust the overlapped area, as shown in Fig. 9 for both images. The detailed procedures are as following.

2.1. INTRODUCTION OF THE SPHERICAL COORDINATE SYSTEM

Although each of the two images covers half of the spherical view, the scene has been twisted to a circle, due to the 183 degree fisheye lens. Therefore, we need to find the relationship between the following two coordinate systems:

1. The spherical coordinate system: the points in the cubic spaceP1(x1,y1,z1) as shown in Fig. 2.

2. The fisheye coordinate system: the points projected by the fisheye lensP2(s1,t1)as shown in Fig. 6.

The point O is the origin point of the spherical coordinate system in Fig. 2. P1(x1,y1,z1) is the referred point shot from the

scene through the lens, and 'P is the projection point of 1 P1on the

y

x  plane. We denote the following polar coordinate axis,ġ )

, , (rT I .

1. Radius

r

: the distance between origin point O to P1.

2. Longitude angleT: the angle between the positive x-axis and the vector OP1', the range is between 0 and 2

S

(0dT2SĪ.

___________________________________________________ * This work was partially supported by the National Science

Council in Taiwan, Republic of China.

!

Fig. 1. The relationship of the shooting angle and the fisheye lens image for the spherical panorama!

1578

(2)

3. Latitude angleI : the angle between the positive z-axix and the vector OP1', the range is between 0 and

S

(0dTdSĪ.

The relationship of (r,T,I) in the spherical coordinate system and (x1,y1,z1) in the cardinal coordinate system is shown below:

) 1 ( sin cos 1 r

T

I

x ġ ) 2 ( sin sin 1 r

T

I

y ) 3 ( cos 1 r

I

z ġ

2.2. THE CORRECTNESS OF THE TWISTED IMAGE FROM THE FISHEYE LENS

In Fig. 3, the relationship of the fisheye lens with the scene location is shown for illustration [3]. The fisheye lens is placed at origin O ĭġ the center of the sphere with the direction faced at the positive y-axis. The cardinal coordinates of the point P1 in the spherical image is(x1,y1,z1)in Fig. 2 and the distance to the center O is the radiusrin Fig. 3. The projection point Q at the y-axis is

1

y and angle between the vector OP and positive y-axis is T . 1 T 1

is called as the view angle of the image point P. We denote T 1 with the value of (x1,y1,z1) as the viewpoint of Pby the right triangle OPQ' as below:

) 4 ( cos 2 1 2 1 2 1 1 1 1 z y x y r y   T

The image twisted to a circular image due to the 183-degree fisheye lens is shown in Fig. 4. Assuming the radius of the 180-degree image is Rġand the projection point P2 of P on the plane

z

x  , has the distance to the centre O is r2. The view angle T 2

has positive relationship with r2. Therefore, we can obtain the relationship among the distance r2 betweenP2 and center O ĭġ the

radiusR, and the view angle T of 2 P2, the ratio called U1ġis shown

below: ) 5 ( 2 2 2 2 2 1 S T S T U R r

The angle between vector OP and the positive z-axis is 2 calledT , and 2 T is the direction angle of the point 2 P as shown in 2

Fig. 5. The relationship of P and the point 2 P1(x1,y1,z1) will be

calculated as following.

The projection point of P1(x1,y1,z1) on plane x z is P as 2 shown in Fig. 5. The projection point of P on positive z-axis is Q, 2 and we get P2Q x1 and OQ z1. In addition, the angle between vector OP2 and positive z-axis is

T

2 with the range from 0 to2 . S

We can obtain the relationship between the direction point P , 2 T2 and the point P1(x1,y1,z1) , by the right triangle 'OP2Q as following: ) 6 ( cos , sin 2 1 2 1 1 2 2 1 2 1 1 2 z x z z x x   T T

The point P at the fisheye lens image is shown in Fig. 6. The 3 coordinates at the x-y plane is (x3,y3)and we can obtain the associated coordinates at the fisheye projection plane

) sin , cos

(r1

T

3 r1

T

3 , whereT3 is the angle between point P and 3 positive x-axis, and r1 RuU1炻T3 90qT2. If the ratio of x 3 and radius

R

is s , the ratio of 1 y3 and radius R is t ĭ the 1

formulas can be simplified by equation (5):

) 7 ( ) sin ( 2 ) 90 cos( cos 2 1 2 1 3 1 3 1 S T T T U T ˜ ˜ q ˜  R R R r R x s ) 8 ( cos 2 ) 90 sin( sin 2 1 2 1 3 1 3 1 S T T T U T ˜ ˜ q ˜ R R R r R y t

There are several methods to turn the spherical images into the spherical panoramas. In this study, we use the cylindrical equidistant projection as shown Fig. 7 [4]. The characteristic of this approach is that the vertical coordinates of the projection has the positive relationship with the angle of elevation or depression which makes the distance corresponding to the view angles. If the width of the panorama is W, height is H, W 2H , and the coordinates of point P3 is (w1,h1). By comparing the relationship between Fig. 4 and Fig. 6, we can obtain w1 which is the ratio of x

coordinate of point P3 and the width of

4 W ,

1

h which is the ratio of y coordinate of point P3 and the height

2

H. The relationship can be

formulated below: ) 9 ( 2 2 2 2 4 4 4 3 3 3 3 1

S

T

S

T

H x H x W x W x w ) 10 ( 2 2 2 2 1 1 3 3 1

S

I

S

I

H y H y h

Using the relationship discussed above, we transform the coordinate system(s1,t2) of the twisted image into the spherical

polar coordinate system(

T

,

I

), by letting the camera faces to the კ!9!ങ౳᜔ᓐ׫ቹቹႽѳय़Ңཀკ! !

კ 10 ങ౳᜔ᓐ׫ቹቹႽѳय़Ңཀკ! Fig. 2. The spherical coordinate system

Fig. 3. The relationship of the fisheye lens with the scene location

(3)

positive x-axis direction. In addition, we also transform the coordinate system(w1,h1) of the spherical image into the spherical polar coordinate system(

T

,

I

), by aligning the left side of the panorama to the x-axis

After these arrangements, we could divide the twisted image into various horizontal and vertical divisions, and the whole image could be dividing into four quadrants. Only the first quadrant on the upper left portion of the image is selected for demonstration since the twisted situation is the same in other quadrants. By simplifying the trigonometric functions of the whole processes, the production of the spherical panoramas could be speeded up. From equation (7) - (10), the following functions can be obtained:

) 11 ( 2uw1 S T ) 12 ( ) 1 ( 2u h1 S I

We could get a new transformation functionT as below by switching these two coordinate systems, (s1,t1)and(w1,h1)Ļġ

(13) ) , ( ) , ( : s1 t1 w1 h1 T o

3. EXPERIMENTS AND DISCUSSION

To demonstrate the effectiveness of the transformation, we transformed the first quadrant of a fisheye image into the spherical panorama as shown in Fig. 8. We can observe that the whole image is a little bit bigger than a quarter of the circle image in Fig. 8(a). The reason is that the visible angle of lens is 183 degree instead of 180 degree and part of the image is twisted, such as the pillar.

After the

T

ġtransformation process, the pillar becomes straight as shown in Fig. 8(b). There are eight quadrants for two images, and the transformation processes are quite similar as mentioned above. The only difference is they basically have the mirror relationship. Finally, we can assemble the eight-quadrant images to get the spherical panorama as shown in Fig. 9. The self developed software can use the following function icons to output the results and their functions are explained as following:

˰Load˱ - The first step is to load two of a series of the fisheye images for assembling.

˰Config˱ - The second step is to input the information of the center position and radius length.

˰Correct˱ - The third step is to fine tune the center position and radius length.

˰Preview˱- The fourth step is to preview the low-resolution

Fig. 4. The fisheye lens projection

Fig. 5. The relationship of the fisheye lens projection with the scene location

Fig. 6. The fisheye lens projection figureġ

w h ) , (w1h1 P O 1 1 1 w 1 h (4) (3) (2) (1) (4) (3) (2) (1) (8) (7) (6) (5) 3 T R t P¶(s1,t1) r1 O (8) (7) (6) (5) T 3 R t s r1 O P¶(s1,t1)

Fig. 7. Equal-space projection of the cylinder

(a) (b)

Fig. 8. The view adjustment from the scene images of fisheye lens (a) to (b)

(4)

panorama.

˰Output ˱ - The fifth step is to export the high-resolution panorama and the process of a 1600x1200 pixel image costs around 24 seconds by using a notebook with Intel Pentium 3 1G CPU and 256M RAM.ġ

The navigation system provides an operation interface, which can shows detailed profile, layout of the whole environment, and the shooting position on the screen. Fig. 10 shows the self developed pano head and 183 degree fisheye lens for creating the spherical panorama images easily and the total cost for the whole system is less than $2000. Fig. 11 is the campus map with the hot spots which can be linked for browsing. A linked scene image from Fig. 11 is shown in Fig. 12 which can be adopted in the web for navigation system for real estate industry because it provides a convenient way for broker employees to create the virtual tour web pages by applying the existing templates with the tools mentioned in Fig. 9 with low cost. Some real cases have been applied in commercial use and interested readers can refer [5] for comparison. For hotel business, this system is also available to provide detailed online information for tourists, for example, the facilities of the hotels and the room setting. In addition, rich links are available on the same page for information interchange.

4. CONCLUSION

In this study, we have developed the transformation relationship between the fisheye image and spherical panoramas. In addition, we have used 183 degree fisheye lens, the pano head which takes the lens at the center of rotation with the self-developed software, which can transform the fisheye image into the spherical panorama images efficiently. The proposed system can illustrate the interior profile, layout of the 3D object, and the shooting position on the screen. It can import detailed information, photos, hot spots for hyperlinks at the web pages. The whole spherical panorama images can then be created seamlessly and conveniently for the 3D usage on the Internet which extends the usability for the panorama image based systems.

REFERENCES

[1] http://www.ipix.com/. Immersive Photography Homepage. [2] http://mathworld.wolfram.com/SphericalCoordinates.html.

Mathworld Wolfram Spherical Coordinates Homepage. [3] http://www.panotools.info/mediawiki/index.php?title=Fishe

ye_Projection. Fisheye Projection Homepage.

[4] http://mathworld.wolfram.com/CylindricalEquidistantProjec tion.html

[5]

http://www.pacific.com.tw/

Fig. 10. The self developed pano head and 183 degree fisheye lens for creating the spherical panorama images Fig. 11. The campus map with hot spot links

Fig. 12. A linked view from Fig. 11

Fig. 9. The interface of the self-developed software

數據

Fig. 1. The relationship of the shooting angle and the fisheye  lens image for the spherical panorama!
Fig. 3. The relationship of the fisheye lens with the scene  location
Fig. 6. The fisheye lens projection figure ġ
Fig. 10. The self developed pano head and 183 degree fisheye  lens for creating the spherical panorama images  Fig

參考文獻

相關文件

Salas, Hille, Etgen Calculus: One and Several Variables Copyright 2007 © John Wiley & Sons, Inc.. All

For ex- ample, if every element in the image has the same colour, we expect the colour constancy sampler to pro- duce a very wide spread of samples for the surface

了⼀一個方案,用以尋找滿足 Calabi 方程的空 間,這些空間現在通稱為 Calabi-Yau 空間。.

You are given the wavelength and total energy of a light pulse and asked to find the number of photons it

• ‘ content teachers need to support support the learning of those parts of language knowledge that students are missing and that may be preventing them mastering the

好了既然 Z[x] 中的 ideal 不一定是 principle ideal 那麼我們就不能學 Proposition 7.2.11 的方法得到 Z[x] 中的 irreducible element 就是 prime element 了..

volume suppressed mass: (TeV) 2 /M P ∼ 10 −4 eV → mm range can be experimentally tested for any number of extra dimensions - Light U(1) gauge bosons: no derivative couplings. =>

incapable to extract any quantities from QCD, nor to tackle the most interesting physics, namely, the spontaneously chiral symmetry breaking and the color confinement.. 