Login| Sign Up| Help| Contact|

Patent Searching and Data


Title:
CAPTURING A SEQUENCE OF IMAGES
Document Type and Number:
WIPO Patent Application WO/2006/002796
Kind Code:
A1
Abstract:
A sequence of images is captured by an imaging device (1) and stored in a digital format. After having captured and stored at least one image, a user is guided to move the device (1) so that an image that can be stitched to the stored image can be captured. Positional information indicating the current orientation of the device (1) is provided; positional information indicating the orientation of the device at the time of capturing each captured image is stored; and the current positional information and the positional information stored for the stored image is utilized for guiding the user to move the device to an orientation where an image that can be stitched to the stored image can be captured. This can be used independently of the subject of the images, and it can guide a user even when the device is directed outside the stitchable range.

Inventors:
GULLIKSSON JOHAN (SE)
Application Number:
PCT/EP2005/006641
Publication Date:
January 12, 2006
Filing Date:
June 17, 2005
Export Citation:
Click for automatic bibliography generation   Help
Assignee:
SONY ERICSSON MOBILE COMM AB (SE)
GULLIKSSON JOHAN (SE)
International Classes:
H04N5/232; (IPC1-7): H04N5/232
Domestic Patent References:
WO2003105466A12003-12-18
Foreign References:
US20020075389A12002-06-20
US20010045986A12001-11-29
EP0942598A21999-09-15
EP1379073A12004-01-07
Attorney, Agent or Firm:
Boesen, Johnny P. (Hans Bekkevolds Allé 7, Hellerup, DK)
Download PDF:
Claims:
P a t e n t c l a i m s :
1. A method of capturing a sequence of images by an imaging device (1 ) and storing said images in a digital format, the method comprising the step of guiding, after having captured and stored at least one image (11, 16), a user to move the imaging device (1) so that an image (12; 17) that can be stitched to said at least one stored image (11,16) can be captured, c h a r a c t e r i z e d in that the method further comprises the steps of • providing positional information indicating the current orientation of the imaging device (1); • storing for each captured image positional information indicating the orientation of the imaging device at the time of capturing that image; and • utilizing the current positional information and the positional informa¬ tion stored for said at least one image for guiding the user to move the imaging device to an orientation where an image (12; 17) that can be stitched to said at least one stored image can be captured.
2. A method according to claim 1, c h a r a c t e r i z e d in that the step of utilizing the current and stored positional information comprises the steps of: • calculating from said stored positional information a suggested new orientation of the imaging device (1 ); • comparing the current positional information with said suggested new orientation; • providing instructions (13, 15) for the user to move the device towards said suggested new orientation; and • indicating when said suggested new orientation has been substantially reached.
3. A method according to claim 1 or2, c h a r a c t e r i z e d in that said current positional information comprises a vector (d ) indicating the viewing direction of the imaging device (1).
4. A method according to any one of claims 1 to3, c h a r a c t e r ¬ i z e d in that the provided positional information further indicates the position of the imaging device.
5. A method according to claim 4, c h a r a c t e r i z e d in that the positional information comprises x, y and z coordinates for the location of the imaging device.
6. A method according to any one of claims 1 to5, c h a r a c t e r ¬ i z e d in that said current positional information is provided by a motion sensor (7) in the imaging device (1 ).
7. A method according to claim 6, c h a r a c t e r i z e d in that a gyroscope is utilized in the motion sensor for providing the current posi¬ tional information.
8. A method according to any one of claims 1 to7, c h a r a c t e r ¬ i z e d in that said current positional information further comprises a cur¬ rent value of a zoom factor.
9. A method according to any one of claims 1 to8, c h a r a c t e r ¬ i z e d in that said current positional information further comprises an indication of lighting conditions in the viewing direction of the imaging device.
10. A method according to claim 2, c h a r a c t e r i z e d in that the method further comprises the step of capturing automatically an image when it is indicated that said suggested new orientation has been substan¬ tially reached.
11. A method according to any one of claims 1 to 10, c h a r a c ¬ t e r i z e d in that the method further comprises the step of presenting said guiding (13, 15) of the user according to a selected one of a number of different stitching models indicating how images should be stitched together.
12. A method according to any one of claims 1 to 11, c h a r a c ¬ t e r i z e d in that the method further comprises the step of controlling a zoom factor in dependence of the current positional information and the positional information stored for said at least one image.
13. A method according to any one of claims 1 to 12, c h a r a c ¬ t e r i z e d in that the method further comprises the step of utilizing, after having captured and stored a number of images, the positional informa¬ tion stored for said images for providing a combined image by stitching said images together.
14. An imaging device (1) for capturing a sequence of images, said device comprising: • storing means (5) for storing said images in a digital format; and • guiding means (6; 13,15) arranged to guide a user, when at least one image (11, 16) has been captured and stored, to move the imaging device so that an image (12; 17) that can be stitched to said at least one stored image (11,16) can be captured, c h a r a c t e r i z e d in that the device further comprises means (7) for providing positional information indicating the current orientation of the imaging device (1), and that the device is further arranged to • store for each captured image positional information indicating the ori¬ entation of the imaging device at the time of capturing that image; and • utilize the current positional information and the positional information stored for said at least one image for guiding the user to move the im¬ aging device to an orientation where ar? image (12; 17) that can be stitched to said at least one stored image can be captured.
15. An imaging device according to claim 14, c h a r a c t e r ¬ i z e d in that the guiding means comprises: • means (6) for calculating from said stored positional information a sug¬ gested new orientation of the imaging device; • means (6) for comparing the current positional information with said suggested new orientation; • means (13, 15) for providing instructions for the user to move the de¬ vice towards said suggested new orientation; and • means (14) for indicating when said suggested new orientation has been substantially reached.
16. An imaging device according to claim 14 or 15, c h a r a c t e r ¬ i z e d in that said current positional information comprises a vector ( d ) indicating the viewing direction of the imaging device (1).
17. An imaging device according to any one of claims 14 to 16, c h a r ¬ a c t e r i z e d in that the provided positional information further in¬ dicates the position of the imaging device.
18. An imaging device according to any one of claims 14 to 17, c h a r ¬ a c t e r i z e d in that said current positional information comprises x, y and z coordinates for the location of the imaging device.
19. An imaging device according to any one of claims 14 to 18, c h a r a c t e r i z e d in that the imaging device comprises a motion sensor (7) for providing said current positional information.
20. An imaging device according to claim 19, c h a r a c t e r ¬ i z e d in that the motion sensor comprises a gyroscope for providing the current positional information.
21. An imaging device according to any one of claims 14 to 20, c h a r ¬ a c t e r i z e d in that said current positional information further comprises a current value of a zoom factor.
22. An imaging device according to any one of claims 14 to 21, c h a r ¬ a c t e r i z e d in that said current positional information further comprises an indication of lighting conditions in the viewing direction of the imaging device.
23. An imaging device according to claim 15, c h a r a c t e r ¬ i z e d in that the device is further arranged to capture automatically an image when it is indicated that said suggested new orientation has been sub¬ stantially reached.
24. An imaging device according to any one of claims 14 to 23, c h a r a c t e r i z e d in that the device is further arranged to present said guiding (13, 15) of the user according to a selected one of a number of different stitching models indicating how images should be stitched together.
25. An imaging device according to any one of claims 14 to 24, c h a r a c t e r i z e d in that the device is further arranged to control a zoom factor in dependence of the current positional information and the positional information stored for said at least one image.
26. An imaging device according to any one of claims 14 to 25, c h a r a c t e r i z e d in that the device is further arranged to utilize, when a number of images has been captured and stored, the posi¬ tional information stored for said images for providing a combined image by stitching said images together.
27. An imaging device according to any one of claims 14 to 26, c h a r ¬ a c t e r i z e d in that the device is a digital camera.
28. An imaging device according to any one of claims 14 to 27, c h a r ¬ a c t e r i z e d in that the device further comprises a mobile tele¬ phone.
Description:
Capturing a sequence of images

Technical Field of the Invention The invention relates to a method of capturing a sequence of images by an imaging device and storing said images in a digital format, the method com¬ prising the step of guiding, after having captured and stored at least one im¬ age, a user to move the imaging device so that an image that can be stitched to said at least one stored image can be captured. The invention also relates to an imaging device for capturing a sequence of images.

Description of Related Art Picture stitching is a technique where overlapping digital images taken in a sequence can form e.g. one panoramic or 360 degree virtual image. To pro- vide the panoramic effect, a digital camera often interfaces with a computer. A sequence of partly overlapping digital images is captured by the digital camera and stored in the camera or on an external storage medium. The stored images are then subsequently transferred to the computer in which the stitching process of joining together two or more images into one pano- ramie image can be performed by joining edge boundaries of the images. The stitching process may also be performed in the camera itself if sufficient computational resources are available.

Typically, the method used by such stitching applications producing the stitched panoramic image demands heavy image processing to match the overlapping images correctly. During the stitching process the stitching algo¬ rithm use image processing to more or less emulate or reinvent the actual position of the camera for each image. In addition, some image colour ad¬ justments are also made to ensure a consistent quality without any edges. In some cases the edges between frames are blended to ensure that no bor¬ ders will be visible, which increases the processing demands further. One such system is known from EP 462 905 in which an electronic camera includes a sensor for detecting an image of a subject and sensors for detect¬ ing a three dimensional position and azimuth of the camera, focusing amount and zoom amount. Each image is recorded on a record medium such as a floppy disk together with information concerning the three dimensional posi¬ tion in which the camera was located when the image was captured and other types of information regarding the image. In an image reproducing de¬ vice images recorded on the record medium are reproduced on the basis of the information stored together with the images and showing an interrelation- ship between a plurality of recorded images. Thus the position information is used to help combine the images to one panoramic image, so that the proc¬ essing demands are somewhat reduced because the positions do not have to be calculated from the images.

The basic idea of traditional picture stitching is based upon image analysis, where similar patterns are identified between two images. The two images can be rotated, scaled and translated in order to perform a perfect stitch. However, it is important that the two images actually are somewhat over¬ lapped to perform a stitch successfully. If the images do not overlap the stitching algorithm will try to stitch two completely unstitchable pictures, which will fail one way or the other. A good stitching algorithm will tell the user that the pictures are not possible to stitch, while other algorithms may try to stitch the pictures anyway which will lead to a faulty panoramic picture.

However, it will often be very difficult for a user to know at the time of captur¬ ing the individual images whether they will actually overlap sufficiently. You can take a sequence of images, but you do not know if they will match or not because the actual stitching has not taken place yet.

As a help to see at the time of capturing the images whether the images overlap sufficiently it is suggested in EP 1 309 171 to guide the user by a preview strip in the viewfinder of the camera. A strip of e.g. the right portion of a previous picture is perspectively corrected and overlaid on the left por- tion of the current view in the viewfinder. The preview strip assists the user in aligning the current picture and the previous picture by guiding him to move the camera until the current view matches the preview strip. The camera should then be in the desired position or orientation for capturing the next image, so that the images overlap sufficiently for a stitching process to be performed.

Although this system is a good help in many situations it also has its limita¬ tions. By many types of subjects, such as leaves on trees, landscapes or buildings with a lot of similar windows, it can be very difficult to see if the pre¬ view strip and the current view actually overlap each other or not. If the cam¬ era is moved so much that the current view is completely outside the range of views that can be stitched with the previous image, the user will not be able to see anything in the viewfinder that matches the preview strip, and thus he will not know in which direction the camera should be moved in order to re¬ turn to the stitchable range. Further, the system is less flexible because the images must be captured in a predefined order, e.g. from left to right. If the user decides to take a picture to the left of the previous picture instead of to the right of the previous picture, the preview strip will be of no help.

Therefore, it is an object of the invention to provide a method of capturing a sequence of images which can be used independently of the subject of the captured images, and which can guide a user to move the imaging device to an orientation where the current view can be stitched with a previous image even when the device is in an orientation completely outside the stitchable range. Further, the method should be so flexible that images need not be captured in a predefined order.

Summary According to the invention the object is achieved in that the method further comprises the steps of providing positional information indicating the current orientation of the imaging device; storing for each captured image positional information indicating the orientation of the imaging device at the time of cap- turing that image; and utilizing the current positional information and the posi¬ tional information stored for said at least one image for guiding the user to move the imaging device to an orientation where an image that can be stitched to said at least one stored image can be captured.

When the guiding is based on the current orientation of the imaging device compared with the orientation of the imaging device at the time of capturing the previous image, it does not depend on the actual look of the images or the actual position or orientation of the device.

In an expedient embodiment the step of utilizing the current and stored posi¬ tional information comprises the steps of calculating from the stored posi¬ tional information a suggested new orientation of the imaging device; com¬ paring the current positional information with the suggested new orientation; providing instructions for the user to move the device towards the suggested new orientation; and indicating when the suggested new orientation has been substantially reached. By providing moving instructions and indicating when the desired orientation has been reached it is easy for the user to find the orientation.

When the current positional information comprises a vector indicating the viewing direction of the imaging device the orientation of the device is achieved in an easy way which is important e.g. in the situation where the device is rotated on a tripod, so that only the orientation is changed.

The provided positional information may further indicate the position of the imaging device, which is useful e.g. when capturing images of a two dimen¬ sional subject, such as a painting on the wall or the faςade of a building, so that the whole object can be placed more or less in the same focal plane for the lens. In this case the current positional information may comprise x, y and z coordinates for the location of the imaging device. The current positional information may be provided by a motion sensor in the imaging device, and a gyroscope may be utilized in the motion sensor for providing the current positional information. Alternatively, an external sensor in e.g. an accessory unit may be used.

Further, the current positional information may comprise a current value of a zoom factor and an indication of lighting conditions in the viewing direction of the imaging device.

When the method further comprises the step of capturing automatically an image when it is indicated that said suggested new orientation has been sub¬ stantially reached, the device can just be moved according to the guiding in¬ structions, and the device will then capture a sequence of images that are suitable for stitching.

The method may further comprise the step of presenting the guiding of the user according to a selected one of a number of different stitching models indicating how images should be stitched together. Examples of such models could be horizontal panorama left to right, horizontal panorama right to left, vertical panorama top to bottom or an environment map used in 3D graphics, such as a cube or a sphere.

When the method further comprises the step of controlling a zoom factor in dependence of the current positional information and the positional informa- tion stored for said at least one image, the zoom can compensate if the imag¬ ing device is moved to a position somewhat different from the suggested new position. If, for instance, the device is moved a bit too much so that the im¬ ages do no longer overlap, zooming out can make them overlap again.

When the method further comprises the step of utilizing, after having cap¬ tured and stored a number of images, the positional information stored for the images for providing a combined image by stitching said images together, the stitching process can be simplified, because the stitching algorithm does not have to calculate such positional information.

As mentioned, the invention also relates to an imaging device for capturing a sequence of images, said device comprising storing means for storing said images in a digital format; and guiding means arranged to guide a user, when at least one image has been captured and stored, to move the imaging de¬ vice so that an image that can be stitched to said at least one stored image can be captured. When the device further comprises means for providing positional information indicating the current orientation of the imaging device, and the device is further arranged to store for each captured image positional information indicating the orientation of the imaging device at the time of cap¬ turing that image; and to utilize the current positional information and the po¬ sitional information stored for said at least one image for guiding the user to move the imaging device to an orientation where an image that can be stitched to said at least one stored image can be captured, a device is achieved that can provide guiding assistance independently of the subject of the captured images. Further, it can guide a user to move the imaging device to an orientation where the current view can be stitched with a previous im- age even when the device is in an orientation completely outside the stitchable range, and the images need not be captured in a predefined order.

In an expedient embodiment the guiding means comprises means for calcu¬ lating from said stored positional information a suggested new orientation of the imaging device; means for comparing the current positional information with said suggested new orientation; means for providing instructions for the user to move the device towards said suggested new orientation; and means for indicating when said suggested new orientation has been substantially reached. By providing moving instructions and indicating when the desired orientation has been reached it is easy for the user to find the orientation.

When the current positional information comprises a vector indicating the viewing direction of the imaging device, the orientation of the device can be achieved in an easy way which is important e.g. in the situation where the device is rotated on a tripod, so that only the orientation is changed.

The provided positional information may further indicate the position of the imaging device, which is useful e.g. when capturing images of a two dimen¬ sional subject, such as a painting on the wall or the fagade of a building, so that the whole object can be placed more or less in the same focal plane for the lens. In this case the current positional information may comprise x, y and z coordinates for the location of the imaging device.

The imaging device may comprise a motion sensor for providing said current positional information, and the motion sensor may comprise a gyroscope for providing the current positional information.

Further, the current positional information may comprise a current value of a zoom factor and an indication of lighting conditions in the viewing direction of the imaging device.

When the imaging device is further arranged to capture automatically an im- age when it is indicated that said suggested new orientation has been sub¬ stantially reached, the device can just be moved according to the guiding in¬ structions, and the device will then capture a sequence of images that are suitable for stitching.

The device may further be arranged to present said guiding of the user ac¬ cording to a selected one of a number of different stitching models indicating how images should be stitched together. Examples of such models could be horizontal panorama left to right, horizontal panorama right to left or vertical panorama top to bottom.

When the device is further arranged to control a zoom factor in dependence of the current positional information and the positional information stored for said at least one image, the zoom can compensate if the imaging device is moved to a position somewhat different from the suggested new position. If, for instance, the device is moved a bit too much so that the images do no longer overlap, zooming out can make them overlap again.

When the device is further arranged to utilize, when a number of images has been captured and stored, the positional information stored for said images for providing a combined image by stitching said images together, the stitch¬ ing process can be simplified, because the stitching algorithm does not have to calculate such positional information.

Brief Description of the Drawings The invention will now be described more fully below with reference to the drawings, in which

figure 1 shows a block diagram of an imaging device,

figure 2 shows an imaging device in an coordinate system at the time of cap¬ turing a first image,

figure 3 shows the imaging device of figure 2 after it has been turned,

figure 4 shows a landscape of which a series of stitchable images can be captured,

figure 5 shows that a first image of the landscape of figure 4 has been cap¬ tured,

figure 6 shows a suggested next image of the landscape of figure 4,

figure 7 shows an example of an arrow indicator which can be seen in a viewfinder when the imaging device is moved to the suggested new orienta¬ tion, figure 8 shows an example of an indicator which can be seen in a viewfinder when the imaging device has reached the suggested new orientation,

figure 9 shows an example of an arrow indicator which can be seen in a viewfinder when the imaging device has been turned too much to the right and down,

figure 10 shows that a second image of the landscape of figure 4 has been captured and a next image is suggested,

figure 11 shows an example of an indicator which can be seen in a viewfinder and which indicates that four out of nine images has been taken,

figure 12 shows a template in which three images can be filled in,

figure 13 shows that a first image has been captured and filled into the tem¬ plate of figure 12,

figure 14 shows that two images has been captured and filled into the tem- plate of figure 12,

figure 15 shows that three images has been captured and filled into the tem¬ plate of figure 12, and

figure 16 shows how a series of stitchable images of a wall painting can be captured.

Detailed Description of Embodiments A block diagram of an imaging device 1 is illustrated in figure 1. The imaging device 1 can be a digital camera, a mobile phone with built-in camera or any other electronic device capable of capturing digital images. The device 1 has a lens 2 and an imaging sensor 3 on which the incident light through the lens 2 is focussed, so that an image of the subject seen through the lens 2 is formed on the sensor 3. The current image on the sensor 3 is shown to the user of the device on a viewfinder 4, so that he can check the subject seen through the lens 2 before an image is captured. When an image is captured the image currently detected by the imaging sensor 3 is transmitted to a memory 5 in which the image is stored. This process is controlled by a proc¬ essor unit 6.

The images stored in the memory 5 may subsequently be used for a stitching process, in which overlapping images are combined to a larger or panoramic image. This stitching process may be performed in the imaging device 1 or, which is more usual, in a separate device such as a personal computer on which a stitching algorithm is installed. In the latter case the stored images are either transmitted to the computer from the memory 5, or this memory is moved to the computer.

In order to be able to perform the stitching process a series of overlapping images must have been captured and stored in the memory 5. To help the user in capturing a series of overlapping images, the imaging device 1 also has a positional unit 7 providing positional information which comprises a vector indicating the direction of the lens 2. The positional unit 7 includes a motion sensor, which can typically be a gyroscope, but also other types of sensors can be used. It is noted that instead of having the positional unit 7 integrated in the imaging device 1 , it could also be placed in an accessory device that can be connected to the imaging device 1. The positional infor- mation could also be provided from e.g. a "digital" tripod indicating the orien¬ tation of an imaging device mounted thereon.

When a user takes the first one of a series of overlapping pictures the posi¬ tional unit 7 is activated, and it defines a coordinate system with x, y and z axes according to the position and orientation of the imaging device 1 at the time of capturing the first image. This is illustrated in figure 2 in which the vector d indicates the direction of the lens 2 when the positional unit 7 is activated. It is seen that the coordinate system is arranged so that the direc- tion of the z axis coincides with the direction of the vector d at the time of capturing the first image. At the same time the positional unit 7 starts tracking the vector d indicating the direction of the lens 2 over time. Figure 3 shows a situation where the imaging device 1 has been turned so that the vector d no longer points in the direction of the z axis.

Knowing the size of the sensor 3 and the properties of the lens 2 (including focus, zoom etc.) and the direction of the vector d at the time of capturing the first image the positional unit 7 can calculate a suggested new direction of the imaging device 1 , i.e. of the vector d , in which an image can be cap¬ tured that overlaps the first image sufficiently for the two images to be stitched in a later stitching process, provided the position of the imaging de¬ vice 1 is substantially unchanged. By comparing the current direction of the vector d with the suggested new direction of the vector d guiding instruc- tions can be provided in the viewfinder 4, which helps the user to move the imaging device to the suggested new position. This is illustrated in more de¬ tail below.

It is supposed that a user of the imaging device 1 wants to take a series of images of the landscape shown in figure 4 that can be stitched to a pano¬ ramic image, and that the images are to be taken from left to right. The imag¬ ing device is brought to a position where the section 11 shown in figure 5 can be seen in the viewfinder 4, and the first image is captured by pressing a shutter button or the like. Reference numeral 11 thus also indicates the first captured image. At the same time the positional unit 7 is activated as de¬ scribed above so that this orientation of the imaging device corresponds to the one shown in figure 2. The direction of the vector d is stored in the memory 5 together with the first captured image 11.

In order to take the next image in the series the imaging device 1 should now be turned (as shown in figure 3) so that an image corresponding to the sec¬ tion 12 illustrated in figure 6 can be captured. The processor unit 6 thus cal¬ culates a corresponding suggested new direction of the vector d . If, for in- stance, the opening angle of the lens is 45 degrees it could be suggested to turn the device 40 degrees in order to ensure sufficient overlap. While the user turns the imaging device 1 the positional unit 7 continuously provides the current direction of the vector d which is compared to the suggested new direction, and the difference between the two is used to guide the user, e.g. by means of indicators in shown in the viewfinder 4. Figure 7 shows an ex¬ ample of what can be seen in the viewfinder 4 when the device has been moved approximately half-way to the suggested new orientation. An arrow 13 pointing to the right indicates that the device should be turned further to the right. In figure 8 the suggested new orientation has approximately been reached, and the next image can be captured, which is indicated by the square 14. The square is of course just an example and many other types of symbols could be used instead.

Small deviations from the suggested new orientation are acceptable. In figure 8 the device has actually been lowered a little bit, but this orientation is still sufficient for subsequent stitching of the images, and thus it is indicated by the square 14 that the next image can now be captured. If the device had been moved further down an arrow pointing up could guide the user to move the device up again. Similarly, if the device had been moved too much to the right, an arrow pointing to the left could guide the user to move the device back to the correct orientation. Also arrows pointing in other directions can be used, such as up to the right, etc. An example is shown in figure 9, in which the device has been turned too much to the right and down, so that the im- age shown in the viewfinder 4 cannot be stitched to the image 11. Therefore, the device must now be turned back to the left and up in order to reach the suggested new orientation. This is indicated by the arrow 15 pointing up to the left.

In figure 10 it is illustrated that the user has now captured the second image 16, and again the corresponding direction of the vector d has been stored together with the image. To take the next image in the series the imaging device 1 should now be turned further so that an image corresponding to the section 17 can be captured. Thus the processor unit 6 again calculates a cor¬ responding suggested new direction of the vector d .

The guiding instructions shown in the viewfinder, such as the arrow 13, will typically be presented according to one of a number of different stitching models that are preloaded in the imaging device 1. These models may in¬ clude wide horizontal panorama left to right, wide horizontal panorama right to left, vertical panorama top to bottom, vertical panorama bottom to top, 360 degrees panorama or global projection. The processor 6 may also be able to detect one of the preloaded models based on the movement of the imaging device. If, for instance, the device is turned to the right after the capture of the first image, it may be assumed that the user wants to take a series of stitchable images according to the wide horizontal panorama left to right model.

It may even be possible to switch between models by analyzing the data from the positional unit 7. As an example, the device can switch from left to right panorama to right to left panorama by identifying the fact that the user directs the device to the left of the first captured image instead of to the right. Thus when e.g. two images have already been captured in the order from left to right, the device can provide guiding instructions depending on the move¬ ment of the device. If the device is moved to the right, the user is guided to take an image that can be stitched with the right edge of image 1 , and if the device is moved to the left, the user is guided to take an image that can be stitched with the left edge of image 2. Thus the stitchable image may be ex¬ panded to either side during the process of capturing the images. This mixed mode is most effective in combination with a proper user interface like the indicators 13, 14 and 15 described above that guides the user to turn the im¬ aging device into the correct position. When the user has directed the device towards the picture part that overlaps either edge of the first image, the user is prompted that it is a correct direction for a successful stitch, e.g. by the square 14, and if the device is moved to a direction outside the stitchable area, the user is requested to move the device back towards a usable direc¬ tion, e.g. by arrows such as 13 and 15.

As mentioned above, the square 14 shown in figure 8 or a similar symbol indicates to the user that the suggested new orientation has approximately been reached, and that he can now capture the next image. However, the device can also be arranged to capture the next image automatically when the correct orientation has been reached. The user then just moves the imag¬ ing device according to the arrow indicator, and each time a correct orienta- tion has been reached, a new image is captured automatically and the arrow indicator guides the user further to the next suggested new orientation. In this way it is very easy to capture a series of stitchable images, because the im¬ aging device can just be turned so that the panoramic scene is covered as guided by the arrow indicator, and the images are then automatically taken according to the selected stitching model, e.g. three images left to right.

Instead of, or in combination to, indicating by e.g. arrows 13 and 15 how the user should move the imaging device to arrive at the suggested new orienta¬ tion, the device could also control an external motorized tripod to automati- cally move the device to this orientation.

Since the imaging device 1 knows the lens direction when a picture is taken, it is also possible to fill in a stitching template to form e.g. a panoramic pic¬ ture. Also this method is accompanied with a suitable interface that guides the user to move the device to a correct direction. This can be the arrows described above, but also a symbolic icon that forms a template "matrix" showing what is filled in and what is not can be used as a guide. An example is shown in figure 11 where the icon 18 indicates that nine images, which can be stitched to a three times three panorama, are to be captured. It is indi- cated that four images have already been captured, and the imaging device is now in an orientation ready for capturing the fifth image. The icon indicating the template may also show miniature versions of the im¬ ages already captured. This is illustrated in figures 12 to 15 where a horizon¬ tal panorama of three images is to be captured. Figure 12 shows an icon il¬ lustrating the three positions Pos 1 , Pos 2 and Pos 3 before any of the im- ages has been captured. The mode is first activated when the first image is taken, e.g. Pos 1. It does not matter in what order the images are taken since the imaging device knows how the user is moving the device. In figure 13 the first image 21 has been captured and is shown in Pos 1 of the icon. Similarly, in figure 14 the image 22 has been filled into Pos 3, and finally in figure 15 the image 23 has been filled into Pos 2, and the panorama is complete. This icon and the icon 18 of figure 11 may of course be combined with the arrow indicators described earlier, so that the arrows guides the user to turn the imaging device, and when a correct orientation has been reached e.g. the icon 18 indicates to the user which one of the positions in the template can now be captured.

As mentioned above, the positional unit 7 provides positional information comprising the vector d indicating the direction of the lens 2. In many situa¬ tions where a series of images forming a panorama of a three dimensional scene is to be captured, this is sufficient because the position of the imaging device should remain substantially unchanged during the process of captur¬ ing the images in order to obtain stitchable images. However, there are also situations in which it would be expedient to change the position of the imag¬ ing device instead of or in combination with the direction of the lens when capturing a series of images to be stitched. This is mainly situations where the object is two dimensional, such as a painting on the wall or the fagade of a building, so that the whole object can be placed more or less in the same focal plane for the lens. Therefore the positional unit 7 may be arranged to provide the relative position of the imaging device in form of the x, y and z coordinates in the coordinate system mentioned above. The relative position of the imaging device is then used in the same way as the lens direction above to provide the instructions or indications guiding the user to move the imaging device to a correct position for the next image to be captured. Also in this case a gyroscope may be used in the positional unit 7 to provide the positional information, but other types of position sensors may also be used instead of or in combination with the gyroscope. As examples, global positioning systems, ultrasonic sensors and electromagnetic sensors may be mentioned.

Figure 16 shows an example where a wall painting 30 is to be photographed as a panorama. First the imaging device is positioned in position 31 and an image covering the section 32 of the painting 30 is captured. At the same time the positional unit 7 is activated, and the coordinate system with the x, y and z axes is defined according to the position and orientation of the device. The position and lens direction at that time is stored together with the image, and a suggested new position 33 is calculated, i.e. it is suggested to move the device in the direction of the x axis. The position and orientation of the device is now tracked and guiding instructions presented to the user, e.g. as the arrow 13 in figure 7. When position 33 is reached this can be indicated by the square 14 in figure 8 or a similar symbol, and an image covering the sec¬ tion 34 of the painting 30 is captured. It is then suggested to move the device to position 35 in which the section 36 of the painting 30 can be captured. In figure 16 only the position of the device is changed, while the orientation of the device, i.e. the direction of the lens, is maintained, but in some situations it will be convenient to change position as well as orientation, and therefore the system tracks them both and utilizes them for the guiding instructions.

Other parameters may also be stored together with each captured image and tracked during movement of the device. If the lens 2 of the imaging device 1 has a zoom function, the zoom setting influences the viewing angle of the lens, and thus the calculation of a suggested new orientation or position of the device depends on the zoom factor of the already captured image as well as the current zoom factor. In some cases the processor 6 could also auto¬ matically control the zoom factor by analyzing the positional information pro¬ vided by the positional unit 7. If the imaging device, e.g. in the situation illus- trated in figure 16, is moved further away from the subject, the zoom may zoom in in order to compensate for the movement. Similarly, it may zoom out to compensate when the device is moved closer to the subject. If the imaging device in the situation shown in figures 6, 7 and 8 is turned too much to the right so that the current view does not overlap the already captured image anymore, the device can zoom out until a sufficient overlap is present again instead of guiding the user to turn the device back to the left. The zoom factor can be obtained from a zoom detector mounted on the lens.

Especially in the situation shown in figure 16 the focus setting of the lens or the distance from the device to the subject can be relevant when calculating the suggested new orientation or position of the device. These parameters may be obtained from a focusing detector mounted on the lens and from a distance meter. Also the lighting conditions may be detected and utilized.

The data stored together with the images, such as position, orientation, zoom and focus data, may preferably be stored in the same format as the image itself, such as JPEG Exif 2.2. It is also relevant that the images are stored in a format that indicates that the image is a part of the same stitching session. A file format that bunch the images into one file, such as ZIP or other file for¬ mats that contain all images of a session, could be used.

As mentioned above the positional information is utilized in the calculation of a suggested new orientation or position during the process of capturing the images for later stitching, but since the positional information corresponding to each captured image is stored together with the image, it can also be used as an assistance in the subsequent stitching process. The stitching algorithm uses a couple of transformations of an image to perform an advanced stitch. The simple case used for stitching is panorama stitching. Panorama stitching is horizontal and it only stitches left to right and right to left. The more ad¬ vanced stitching modes enable stitching in any part of the image. These stitching modes are most often used on a personal computer with large cal¬ culation capacity. The pictures to be stitched are analyzed in every possible way in order to perform a stitch. This means rotation, skew, resize, transla¬ tion, slanting, etc. of the image. This is more or less to emulate the position and/or the orientation of the imaging device when the images were captured. Instead of using powerful computer resources to try to find out how the de- vice was oriented during the capture the data from the positional unit in com¬ bination with the other parameters stored with the images will be used as input to the stitching algorithm. Thus the stitching algorithm will get a hint on how the imaging device was positioned or oriented at the time when the im¬ age was taken, and the stitching can be simplified considerably.

Although a preferred embodiment of the present invention has been de¬ scribed and shown, the invention is not restricted to it, but may also be em¬ bodied in other ways within the scope of the subject-matter defined in the following claims.