CN104427242B - Image split-joint method, device and electronic equipment - Google Patents
Image split-joint method, device and electronic equipment Download PDFInfo
- Publication number
- CN104427242B CN104427242B CN201310409830.5A CN201310409830A CN104427242B CN 104427242 B CN104427242 B CN 104427242B CN 201310409830 A CN201310409830 A CN 201310409830A CN 104427242 B CN104427242 B CN 104427242B
- Authority
- CN
- China
- Prior art keywords
- image
- kth
- shooting angle
- images
- predetermined
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Abstract
The invention discloses a kind of image split-joint method, device and electronic equipments, belong to image processing field.The method includes:At least two images are shot according to the signal received in the preview window, the shooting angle of at least two images is identical or different, and there are overlapping regions between adjacent two images;At least two images are spliced, spliced image is obtained.The present invention according to the signal received in the preview window by shooting at least two images, the shooting angle of at least two images is identical or different, and there are overlapping regions between adjacent two images, by this, at least two images splice, and obtain spliced image;It solves the problems, such as to be unable to get the panoramic picture of object in shooting process if camera site changes;The panoramic picture that object can be also obtained in the case where camera site changes is achieved the effect that.
Description
Technical field
The present invention relates to image processing field, more particularly to a kind of image split-joint method, device and electronic equipment.
Background technology
When user is shot using camera, due to the limitation of camera perspective, the panorama of object can not be sometimes taken
Image.Camera perspective refers to the visual range that can see by the camera lens of camera.
In order to get the panoramic picture of object, a kind of existing method is the bat by rotating camera in shooting process
Angle is taken the photograph, the image within the scope of certain angle is obtained, to obtain the panoramic picture of the object in the angular range.
In the implementation of the present invention, inventor has found that the prior art at least has the following disadvantages:Camera was being shot
Cheng Zhong, it is necessary to be maintained at same camera site, if camera site changes in shooting process, be unable to get the complete of object
Scape image.
Invention content
In order to solve the problems, such as to be unable to get the panoramic picture of object in shooting process if camera site changes,
An embodiment of the present invention provides a kind of image split-joint method, device and electronic equipments.Described image joining method, including:
In a first aspect, a kind of image split-joint method is provided, the method includes:
At least two images, the shooting angle of at least two images are shot according to the signal received in the preview window
It is identical or different, and there are overlapping regions between adjacent two images;
At least two images are spliced, spliced image is obtained.
It is described according to the signal acquisition received in the preview window at least two images, including:
Shoot first image shown in described the preview window;
If the image taken recently in described the preview window is i-th image, the i is whole more than or equal to 1
Number;
Receive the dragging signal for acting on described the preview window;
I+1 image is shown in described the preview window according to the dragging signal, the i+1 image and described
There are overlapping regions between i-th image;
Shoot the i+1 image.
It is described to splice at least two images, spliced image is obtained, including:
+ 1 image of kth by kth predetermined image and at least two images described in taking splices, and obtains
Kth stitching image;
Wherein, if k=1, the kth predetermined image is:The 1st image at least two images;
If k ﹥ 1, the kth predetermined image is:- 1 stitching image of kth.
Described+1 image of kth by kth predetermined image and at least two images described in getting splices,
Including:
Obtain the shooting angle of the kth predetermined image;
+ 1 image of the kth is converted into kth conversion image according to the shooting angle of the kth predetermined image,
The kth conversion image is equivalent to what+1 image of the kth was shot under the shooting angle of the kth predetermined image
Image;
The kth predetermined image and the kth conversion image are spliced, kth stitching image is obtained.
Before the shooting angle for obtaining kth predetermined image, further include:
The characteristics of image of the kth+1 image of predetermined image and the kth is extracted respectively;
Detecting the identical rate of the characteristics of image of+1 image of characteristics of image and the kth of the kth predetermined image is
It is no to reach predetermined value;
If testing result, which is the identical rate, reaches predetermined value, the shooting angle of the acquisition kth predetermined image is executed
The step of spending.
After the shooting angle for obtaining kth predetermined image, further include:
Obtain the shooting angle of+1 image of the kth;
Whether the shooting angle for detecting+1 image of shooting angle and the kth of the kth predetermined image is identical;
If testing result differs for shooting angle, the shooting angle according to the kth predetermined image is executed
The step of+1 image of the kth is converted into kth conversion image.
It is described to splice the kth predetermined image and the kth conversion image, including:
Establish kth splice template;
Characteristics of image according to+1 image of characteristics of image and the kth of a kth extracted predetermined image is true
The position of the fixed kth predetermined image and the kth conversion image in the kth splice template;
According to the position of the determining kth predetermined image and the kth conversion image in the kth splice template
It sets and completes splicing.
Second aspect, provides a kind of image splicing device, and described device includes:
Taking module, for shooting at least two images according to the signal that is received in the preview window, described at least two
The shooting angle of image is identical or different, and there are overlapping regions between adjacent two images;
Concatenation module, at least two images for shooting the taking module splice, and obtain spliced figure
Picture.
The taking module, including:
Shooting unit is originated, for shooting shown in described the preview window first image;
Preview unit, for setting the image that the starting shooting unit takes recently in described the preview window as i-th
Image is opened, the i is the integer more than or equal to 1;
Receiving unit, for receiving the dragging signal for acting on described the preview window;
Display unit, the dragging signal for being received according to the receiving unit shows i-th in described the preview window+
1 image, there are overlapping regions between image and i-th image for the i+1;
Follow-up shooting unit, for shooting the i+1 image that the display unit is shown.
The concatenation module, specifically for the kth by kth predetermined image and at least two images described in taking
+ 1 image is spliced, and kth stitching image is obtained;
Wherein, if k=1, the kth predetermined image is:The 1st image at least two images;
If k ﹥ 1, the kth predetermined image is:- 1 stitching image of kth.
The concatenation module, including:
First acquisition unit, the shooting angle for obtaining the kth predetermined image;
The shooting angle degree of converting unit, the kth predetermined image for being got according to the first acquisition unit will
+ 1 image of the kth is converted into kth conversion image, and the kth conversion image is equivalent to+1 image of the kth in institute
State the image shot under the shooting angle of kth predetermined image;
Concatenation unit, the kth conversion image for the kth predetermined image and the converting unit to be converted to
Spliced, obtains kth stitching image.
The concatenation module further includes:
Extraction unit and first detection unit;
The extraction unit, the image for extracting the kth+1 image of predetermined image and the kth respectively are special
Sign;
The first detection unit, the characteristics of image for detecting the kth predetermined image that the extraction unit extracts
Whether reach predetermined value with the identical rate of the characteristics of image of+1 image of the kth;
The first acquisition unit, if the testing result for the first detection unit, which is the identical rate, reaches predetermined
Value then executes the step of acquisition kth opens the shooting angle of predetermined image.
The concatenation module further includes:
Second acquisition unit and second detection unit;
The second acquisition unit, the shooting angle for obtaining+1 image of the kth;
The second detection unit, the shooting for detecting the kth predetermined image that the first acquisition unit is got
Whether the shooting angle of+1 image of kth that angle and the second acquisition unit are got is identical;
The converting unit executes if the testing result for the second detection unit differs for shooting angle
+ 1 image of the kth is converted into the step of kth conversion image by the shooting angle according to the kth predetermined image
Suddenly.
The concatenation unit, including:
Subelement is established, for establishing kth splice template;
Determination subelement, the characteristics of image of the kth for being extracted according to the extraction unit predetermined image and
The characteristics of image of+1 image of the kth determines that the kth predetermined image and the kth conversion image are spelled in the kth
Connect the position in template;
Splice subelement, the kth for being determined according to the determination subelement predetermined image and the kth turn
It changes position of the image in the kth splice template and completes splicing.
The third aspect.A kind of camera is provided, the camera includes the device described in second aspect.
The advantageous effect that technical solution provided in an embodiment of the present invention is brought is:
By shooting at least two images, the shooting angle of at least two images according to the signal received in the preview window
Spend identical or different, and there are overlapping regions between adjacent two images, and by this, at least two images splice, and are spelled
Image after connecing;Solve asking for the panoramic picture for being unable to get object in shooting process if camera site changes
Topic;The panoramic picture that object can be also obtained in the case where camera site changes is achieved the effect that.
Description of the drawings
To describe the technical solutions in the embodiments of the present invention more clearly, make required in being described below to embodiment
Attached drawing is briefly described, it should be apparent that, drawings in the following description are only some embodiments of the invention, for
For those of ordinary skill in the art, without creative efforts, other are can also be obtained according to these attached drawings
Attached drawing.
Fig. 1 is the method flow diagram for the image split-joint method that the embodiment of the present invention one provides;
Fig. 2 a are the method flow diagrams of image split-joint method provided by Embodiment 2 of the present invention;
Fig. 2 b are the method flow diagrams of image split-joint method provided by Embodiment 2 of the present invention;
Fig. 3 a are the implementation schematic diagrames involved by image split-joint method provided by Embodiment 2 of the present invention;
Fig. 3 b are the implementation schematic diagrames involved by image split-joint method provided by Embodiment 2 of the present invention;
Fig. 3 c are the implementation schematic diagrames involved by image split-joint method provided by Embodiment 2 of the present invention;
Fig. 3 d are the implementation schematic diagrames involved by image split-joint method provided by Embodiment 2 of the present invention;
Fig. 4 is the implementation schematic diagram involved by image split-joint method provided by Embodiment 2 of the present invention;
Fig. 5 is the implementation schematic diagram involved by image split-joint method provided by Embodiment 2 of the present invention;
Fig. 6 is the implementation schematic diagram involved by image split-joint method provided by Embodiment 2 of the present invention;
Fig. 7 is the implementation schematic diagram involved by image split-joint method provided by Embodiment 2 of the present invention;
Fig. 8 is the structural schematic diagram for the image splicing device that the embodiment of the present invention three provides;
Fig. 9 is the structural schematic diagram for the image splicing device that the embodiment of the present invention four provides.
Specific implementation mode
To make the object, technical solutions and advantages of the present invention clearer, below in conjunction with attached drawing to embodiment party of the present invention
Formula is described in further detail.
The embodiment of the present invention is illustrated so that electronic equipment is camera as an example.
Embodiment one
Referring to FIG. 1, the method flow diagram of the image split-joint method provided it illustrates the embodiment of the present invention one.The image
Joining method, including:
Step 102, at least two images, the bat of at least two images are shot according to the signal received in the preview window
It is identical or different to take the photograph angle, and there are overlapping regions between adjacent two images;
Camera shoots at least two images, the shooting angle of at least two images according to the signal received in the preview window
Spend identical or different, and there are overlapping regions between adjacent two images.
Step 104, by this, at least two images splice, and obtain spliced image;
By this, at least two images splice camera, obtain spliced image.
In conclusion image split-joint method provided in an embodiment of the present invention, by according to the letter received in the preview window
Number shooting at least two images, the shooting angle of at least two images is identical or different, and is deposited between adjacent two images
In overlapping region, by this, at least two images splice, and obtain spliced image;It solves in shooting process if shot
Position changes, the problem of being unable to get the panoramic picture of object;Reach in the case where camera site changes
It can obtain the effect of the panoramic picture of object.
Embodiment two
A is please referred to Fig.2, it illustrates the method flow diagrams of image split-joint method provided by Embodiment 2 of the present invention.The figure
As joining method, including:
Step 201, start panorama photographing mode;
Camera starts panorama photographing mode, and panorama photographing mode is to be continuously shot multiple images, will be clapped after shooting
Multiple images taken the photograph are spliced, and a Zhang Quanjing image is obtained.For example, user will shoot the complete of the landscape as shown in Fig. 3 a
Scape image, by Fig. 3 a it is found that user's landscape to be shot includes 301, second, First house house 302, one tree
303, second tree 304 and automobile 305, but due to the limitation of camera perspective, can not directly shoot to obtain landscape shown in Fig. 3 a
Panoramic picture, so user start camera panorama photographing mode, the image of landscape shown in multiple Fig. 3 a is continuously shot, more
After opening image taking, confirming button is clicked, multiple images that camera will take are spliced, complete after display splicing
Scape image.
Step 202, first image shown in shooting preview window;
First image shown in camera shooting preview window.For example, after user starts panorama photographing mode, phase is shot
First image shown in the preview window of machine, obtains first image shown in Fig. 3 b, by Fig. 3 b it is found that first image
Only take the part in First house 301 and second house 302.
Step 203, if the image taken recently is i-th image;
The picture taken is marked successively, if the image taken recently is i-th image, which is to be more than or wait
In 1 integer.For example, being first image by iconic marker shown in Fig. 3 b, the photo shot later marks successively.
Step 204, the dragging signal for acting on the preview window is received;
Camera receives the dragging signal for acting on the preview window, and the partial content for the image that upper one is shot hauls out preview
Window, to show the content of next image in the preview window.For example, user shoots to drag in advance after obtaining first image
Look at window, after camera receives the dragging signal, the direction for controlling camera lens toward dragging signal according to the dragging signal is turned round
Gyration, the scene received to the camera lens obtained in this direction.
Step 205, i+1 image, i+1 image and i-th figure are shown in the preview window according to dragging signal
There are overlapping regions as between;
Camera show i+1 image according to dragging signal in the preview window, i+1 open image and i-th image it
Between there are overlapping region, and the shooting angle of i+1 image and i-th image is identical or different.For example, user is shooting
The preview window is dragged after complete first image, to show second image in the preview window, as shown in Figure 3c, including second
Seat house 302 and one tree 303.Shooting angle it is found that first image and second image is compared by Fig. 3 b and Fig. 3 c
Difference, and there are the parts in overlapping region i.e. second house 302 in two images.
Step 206, shooting i+1 image;
Camera shoots i+1 image.For example, user shoots second image to get to image shown in Fig. 3 c.
It repeats step 204 to step 206 and obtains image shown in Fig. 3 d, compared by Fig. 3 c and Fig. 3 d it is found that second figure
Picture is different with the shooting angle of third image, and there are overlapping region i.e. one trees 303 in two images.
It should be noted that in shooting process, user can change shooting angle, shooting direction and shooting distance, this
Shooting angle, shooting have been changed simultaneously when shooting direction, shooting figure 3d to be changed when shooting figure 3c respectively in inventive embodiments
It is illustrated for direction and shooting distance.
Step 207 ,+1 image of kth in kth predetermined image and at least two images taken is spliced,
Obtain kth stitching image;
Camera splices+1 image of kth in kth predetermined image and at least two images taken, obtains
Kth stitching image, wherein if k=1, kth predetermined image is:The 1st image at least two images;If k ﹥ 1,
Then kth predetermined image is:- 1 stitching image of kth.After camera shooting is completed, by first image and second image into
Row splicing obtains first stitching image, then the third image that first stitching image and shooting obtain is spliced, and obtains
To second stitching image, and so on, which is not described herein again.For example, shooting obtains three images, phase in the embodiment of the present invention
Machine obtains panoramic picture after obtaining second stitching image.
Concretely, step 207 may include following sub-step, as shown in Figure 2 b:
Step 207a extracts the characteristics of image of kth+1 image of predetermined image and kth respectively;
Camera extracts the characteristics of image of kth+1 image of predetermined image and kth respectively, and characteristics of image is schemed for distinguishing
The extraction algorithm of picture, characteristics of image is not limited in embodiments of the present invention.For example, k=1 merges first image and second
When opening image, that is, Fig. 3 b and Fig. 3 c, camera extracts the characteristics of image of this two images respectively.
Step 207b, the identical rate that detection kth opens the characteristics of image of+1 image of characteristics of image and kth of predetermined image are
It is no to reach predetermined value;
Whether the identical rate of the characteristics of image of+1 image of characteristics of image and kth of phase machine testing kth predetermined image reaches
To predetermined value, predetermined value is the threshold value that judges two images and can be spliced.Judge the characteristics of image of two images
Whether identical rate reaches the threshold value that can be spliced.If the identical rate of the characteristics of image of two images reaches predetermined value, into
Enter step 207c, otherwise, splicing is unsuccessful.It is assumed that can be carried out when the identical rate of the characteristics of image of two images reaches 20%
Merge, all includes the parts of images in second house 302 in the embodiment of the present invention in Fig. 3 b and Fig. 3 c, it is assumed that Fig. 3 b and Fig. 3 c
The identical rate of characteristics of image reach 20%.
Step 207c obtains the shooting angle of kth predetermined image;
Camera obtains the shooting angle of kth predetermined image.For example, merging first image and second image i.e. figure
When 3b and Fig. 3 c, the shooting angle of first image, that is, Fig. 3 b is obtained.
It should be noted that following step 207d and step 207e can not also be passed through, it is directly entered step 207f.
Step 207d obtains the shooting angle of+1 image of kth;
Camera obtains the shooting angle of+1 image of kth, for example, camera obtains the shooting angle of second image, that is, Fig. 3 c
Degree.
Whether the shooting angle of step 207e ,+1 image of shooting angle and kth of detection kth predetermined image are identical;
Whether the shooting angle of+1 image of shooting angle and kth of phase machine testing kth predetermined image is identical, if detection
As a result it is differed for shooting angle, then enters step step 207f;If testing result is that shooting angle is identical, directly spelled
It connects.For example, phase machine testing first open image shooting angle and the second image i.e. shooting angle of Fig. 3 b and Fig. 3 c whether phase
Together, the embodiment of the present invention is illustrated by taking the shooting angle difference of Fig. 3 b and Fig. 3 c as an example.
+ 1 image of kth is converted into kth conversion image by step 207f according to the shooting angle of kth predetermined image;
+ 1 image of kth is converted into kth conversion image, kth by camera according to the shooting angle of kth predetermined image
Conversion image is equivalent to the image that+1 image of kth is shot under the shooting angle of kth predetermined image.For example, camera root
Second image is converted into first conversion image, first conversion image such as Fig. 4 institute according to the shooting angle of first image
Show.
Kth predetermined image and kth conversion image are spliced, obtain kth stitching image by step 207g;
Camera splices kth predetermined image and kth conversion image, obtains kth stitching image, specifically,
Including establishing kth splice template, the image according to+1 image of characteristics of image and kth of a kth extracted predetermined image is special
Sign determines the position of kth predetermined image and kth conversion image in kth splice template, according to the predetermined figure of determining kth
Complete splicing in the position of picture and kth conversion image in kth splice template.For example, camera establishes the first splice template,
First is determined according to the characteristics of image of the characteristics of image of first image extracted i.e. Fig. 3 b and second i.e. Fig. 3 c of image
The position of image, that is, Fig. 3 b and first conversion image, that is, Fig. 4 in the first splice template is according to first determining image
Fig. 3 b and first conversion image, that is, Fig. 4 complete splicing in the position in the first splice template.Obtain first spliced map
Picture, as shown in Figure 5.
Repeat the splicing that step 207a to step 207g completes first stitching image and third image, specific mistake
Journey repeats no more.Fig. 6 is that will be obtained after third image, that is, Fig. 3 d conversions according to the shooting angle of first stitching image, that is, Fig. 5
Second conversion image, Fig. 7 is first stitching image, that is, Fig. 5 and second and converts the obtained after the splicing of image, that is, Fig. 6
The panoramic picture of two stitching images namely user's landscape of being shot.
In conclusion image split-joint method provided in an embodiment of the present invention, by according to the letter received in the preview window
Number shooting at least two images, the shooting angle of at least two images is identical or different, and is deposited between adjacent two images
In overlapping region, by this, at least two images splice, and obtain spliced image, in splicing, by will at least two
Pictures are converted into the identical image of shooting angle, and then are spliced;Solves the generation of in shooting process if camera site
The problem of change causes shooting angle different and is unable to get the panoramic picture of object;Reach and has changed in camera site
In the case of can also obtain object panoramic picture effect.
Embodiment three
Referring to FIG. 8, the structural schematic diagram of the image splicing device provided it illustrates the embodiment of the present invention three.The image
Splicing apparatus can pass through all or part of software, hardware or both being implemented in combination with as electronic equipment, the figure
As splicing apparatus, including:
Taking module 810, for shooting at least two images according to the signal that is received in the preview window, described at least two
The shooting angle for opening image is identical or different, and there are overlapping regions between adjacent two images.
Concatenation module 820, at least two images for shooting the taking module 810 splice, are spliced
Image afterwards.
In conclusion image splicing device provided in an embodiment of the present invention, by according to the letter received in the preview window
Number shooting at least two images, the shooting angle of at least two images is identical or different, and is deposited between adjacent two images
In overlapping region, by this, at least two images splice, and obtain spliced image;It solves in shooting process if shot
Position changes, the problem of being unable to get the panoramic picture of object;Reach in the case where camera site changes
It can obtain the effect of the panoramic picture of object.
Example IV
Referring to FIG. 9, the structural schematic diagram of the image splicing device provided it illustrates the embodiment of the present invention four.The image
Splicing apparatus can pass through all or part of software, hardware or both being implemented in combination with as electronic equipment, the figure
As splicing apparatus, including:
Taking module 910, for shooting at least two images according to the signal that is received in the preview window, described at least two
The shooting angle for opening image is identical or different, and there are overlapping regions between adjacent two images.
Concretely, the taking module 910, including:
Shooting unit 911 is originated, for shooting shown in described the preview window first image;
Preview unit 912, the image taken recently in described the preview window for setting the starting shooting unit 911
For i-th image, the i is the integer more than or equal to 1;
Receiving unit 913, for receiving the dragging signal for acting on described the preview window;
Display unit 914, the dragging signal for being received according to the receiving unit 913 are shown in described the preview window
Show i+1 image, there are overlapping regions between image and i-th image for the i+1;
Follow-up shooting unit 915, the i+1 image for shooting the display of the display unit 914.
Concatenation module 920, specifically for by the kth predetermined image and at least two images described in taking
+ 1 image of kth is spliced, and kth stitching image is obtained;
Wherein, if k=1, the kth predetermined image is:The 1st image at least two images;
If k ﹥ 1, the kth predetermined image is:- 1 stitching image of kth.
Concretely, the concatenation module 920, including:
Extraction unit 921, first detection unit 922, first acquisition unit 923, second acquisition unit 924, second detect
Unit 925, converting unit 926 and concatenation unit 927;
The extraction unit 921, the image for extracting the kth+1 image of predetermined image and the kth respectively
Feature;
The first detection unit 922, the figure for detecting the kth predetermined image that the extraction unit 921 extracts
As whether the identical rate of the characteristics of image of+1 image of feature and the kth reaches predetermined value;
The first acquisition unit 923 reaches if the testing result for the first detection unit 922 is the identical rate
To predetermined value, then the shooting angle of the kth predetermined image is obtained;
The second acquisition unit 924, the shooting angle for obtaining+1 image of the kth;
The second detection unit 925, for detecting the kth predetermined image that the first acquisition unit 923 is got
Shooting angle and the shooting angle of+1 image of kth that gets of the second acquisition unit 924 it is whether identical;
The converting unit 926, if the testing result for the second detection unit 925 is shooting angle not phase
Together, then+1 image of the kth is converted by kth conversion image according to the kth angle.
The concatenation unit 927, the kth for the kth predetermined image and the converting unit 926 to be converted to
It opens conversion image to be spliced, obtains kth stitching image.
Concretely, the concatenation unit 927, including:
Subelement 927a is established, for establishing kth splice template;
Determination subelement 927b, the image of the kth predetermined image for being extracted according to the extraction unit 921
The characteristics of image of+1 image of feature and the kth determines the kth predetermined image and the kth conversion image described
Position in kth splice template;
Splice subelement 927c, the kth for being determined according to the determination subelement 927b predetermined image and institute
It states position of the kth conversion image in the kth splice template and completes splicing.
In conclusion image splicing device provided in an embodiment of the present invention, by according to the letter received in the preview window
Number shooting at least two images, the shooting angle of at least two images is identical or different, and is deposited between adjacent two images
In overlapping region, by this, at least two images splice, and obtain spliced image, in splicing, by will at least two
Pictures are converted into the identical image of shooting angle, and then are spliced;Solves the generation of in shooting process if camera site
The problem of change causes shooting angle different and is unable to get the panoramic picture of object;Reach and has changed in camera site
In the case of can also obtain object panoramic picture effect.
It should be noted that:The image splicing device that above-described embodiment provides is when carrying out image mosaic, only with above-mentioned each
The division progress of function module, can be as needed and by above-mentioned function distribution by different work(for example, in practical application
Energy module is completed, i.e., the internal structure of device is divided into different function modules, to complete whole described above or portion
Divide function.In addition, the image splicing device that above-described embodiment provides belongs to same design with image split-joint method embodiment, have
Body realizes that process refers to embodiment of the method, and which is not described herein again.
The embodiments of the present invention are for illustration only, can not represent the quality of embodiment.
One of ordinary skill in the art will appreciate that realizing that all or part of step of above-described embodiment can pass through hardware
It completes, relevant hardware can also be instructed to complete by program, the program can be stored in a kind of computer-readable
In storage medium, storage medium mentioned above can be read-only memory, disk or CD etc..
The foregoing is merely presently preferred embodiments of the present invention, is not intended to limit the invention, it is all the present invention spirit and
Within principle, any modification, equivalent replacement, improvement and so on should all be included in the protection scope of the present invention.
Claims (12)
1. a kind of image split-joint method, which is characterized in that the method includes:
Start panorama photographing mode, at least two images are shot according to the signal that is received in the preview window, described at least two
Image includes two different images of shooting angle and shooting direction, and there are overlapping regions between adjacent two images;
Obtain the shooting angle of kth predetermined image;
+ 1 image of kth is converted into kth conversion image, the kth according to the shooting angle of the kth predetermined image
Conversion image is equivalent to the image that+1 image of the kth is shot under the shooting angle of the kth predetermined image;
The kth predetermined image and the kth conversion image are spliced, kth stitching image is obtained;
Wherein, if k=1, the kth predetermined image is:The 1st image at least two images;
If k ﹥ 1, the kth predetermined image is:- 1 stitching image of kth.
2. according to the method described in claim 1, it is characterized in that, it is described according to the signal acquisition received in the preview window extremely
Few two images, including:
Shoot first image shown in described the preview window;
If the image taken recently in described the preview window is i-th image, the i is the integer more than or equal to 1;
Receive the dragging signal for acting on described the preview window;
I+1 image, the i+1 image and described i-th are shown in described the preview window according to the dragging signal
There are overlapping regions between image;
Shoot the i+1 image.
3. according to the method described in claim 1, it is characterized in that, before the shooting angle for obtaining kth predetermined image,
Further include:
The characteristics of image of the kth+1 image of predetermined image and the kth is extracted respectively;
Whether the identical rate for detecting the characteristics of image of+1 image of characteristics of image and the kth of the kth predetermined image reaches
To predetermined value;
If testing result, which is the identical rate, reaches predetermined value, the shooting angle of the acquisition kth predetermined image is executed
Step.
4. according to the method described in claim 1, it is characterized in that, after the shooting angle for obtaining kth predetermined image,
Further include:
Obtain the shooting angle of+1 image of the kth;
Whether the shooting angle for detecting+1 image of shooting angle and the kth of the kth predetermined image is identical;
If testing result differs for shooting angle, the shooting angle according to the kth predetermined image is executed by institute
State the step of+1 image of kth is converted into kth conversion image.
5. according to the method described in claim 1, it is characterized in that, described turn the kth predetermined image and the kth
Image is changed to be spliced, including:
Establish kth splice template;
Institute is determined according to the characteristics of image of+1 image of characteristics of image and the kth of a kth extracted predetermined image
State the position of kth predetermined image and the kth conversion image in the kth splice template;
It is complete according to the position of the determining kth predetermined image and the kth conversion image in the kth splice template
At splicing.
6. a kind of image splicing device, which is characterized in that described device includes:
Taking module shoots at least two images for starting panorama photographing mode according to the signal received in the preview window,
At least two images include two different images of shooting angle and shooting direction, and are existed between adjacent two images
Overlapping region;
Concatenation module, including:
First acquisition unit, the shooting angle for obtaining kth predetermined image;
Converting unit, the shooting angle degree of kth for being got according to the first acquisition unit predetermined image is by kth+1
Image is converted into kth conversion image, and it is pre- in the kth that the kth conversion image is equivalent to+1 image of the kth
Determine the image shot under the shooting angle of image;
Concatenation unit, the kth conversion image for the kth predetermined image and the converting unit to be converted to carry out
Splicing obtains kth stitching image;
Wherein, if k=1, the kth predetermined image is:The 1st image at least two images;
If k ﹥ 1, the kth predetermined image is:- 1 stitching image of kth.
7. device according to claim 6, which is characterized in that the taking module, including:
Shooting unit is originated, for shooting shown in described the preview window first image;
Preview unit is schemed for setting the image that the starting shooting unit takes recently in described the preview window as i-th
Picture, the i are the integer more than or equal to 1;
Receiving unit, for receiving the dragging signal for acting on described the preview window;
Display unit, the dragging signal for being received according to the receiving unit show i+1 in described the preview window
Image, there are overlapping regions between image and i-th image for the i+1;
Follow-up shooting unit, for shooting the i+1 image that the display unit is shown.
8. device according to claim 6, which is characterized in that the concatenation module further includes:
Extraction unit and first detection unit;
The extraction unit, the characteristics of image for extracting the kth+1 image of predetermined image and the kth respectively;
The first detection unit, the characteristics of image for detecting the kth predetermined image that the extraction unit extracts and institute
Whether the identical rate for stating the characteristics of image of+1 image of kth reaches predetermined value;
The first acquisition unit, if the testing result for the first detection unit, which is the identical rate, reaches predetermined value,
The step of then executing the shooting angle of the acquisition kth predetermined image.
9. device according to claim 6, which is characterized in that the concatenation module further includes:
Second acquisition unit and second detection unit;
The second acquisition unit, the shooting angle for obtaining+1 image of the kth;
The second detection unit, the shooting angle for detecting the kth predetermined image that the first acquisition unit is got
Whether the shooting angle of+1 image of kth got with the second acquisition unit is identical;
The converting unit, if the testing result for the second detection unit differs for shooting angle, described in execution
The step of+1 image of the kth is converted into kth conversion image according to the shooting angle of the kth predetermined image.
10. device according to claim 6, which is characterized in that the concatenation unit, including:
Subelement is established, for establishing kth splice template;
Determination subelement, for according to+1 image of characteristics of image and the kth of the kth extracted predetermined image
Characteristics of image determines the position of the kth predetermined image and the kth conversion image in the kth splice template;
Splice subelement, the kth for being determined according to the determination subelement predetermined image and the kth transition diagram
As splicing is completed in the position in the kth splice template.
11. a kind of camera, which is characterized in that the camera includes any device of claim 6 to 10.
12. a kind of computer readable storage medium, which is characterized in that it has program stored therein in the computer readable storage medium,
Described program is for realizing image split-joint method such as described in any one of claim 1 to 5.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310409830.5A CN104427242B (en) | 2013-09-10 | 2013-09-10 | Image split-joint method, device and electronic equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310409830.5A CN104427242B (en) | 2013-09-10 | 2013-09-10 | Image split-joint method, device and electronic equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104427242A CN104427242A (en) | 2015-03-18 |
CN104427242B true CN104427242B (en) | 2018-08-31 |
Family
ID=52975048
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201310409830.5A Active CN104427242B (en) | 2013-09-10 | 2013-09-10 | Image split-joint method, device and electronic equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104427242B (en) |
Families Citing this family (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108027967B (en) * | 2015-11-05 | 2020-09-29 | 华为技术有限公司 | Image stitching method and electronic equipment |
CN105894451B (en) * | 2016-03-30 | 2019-03-08 | 沈阳泰科易科技有限公司 | Panorama Mosaic method and apparatus |
TW201839717A (en) * | 2017-04-19 | 2018-11-01 | 睿緻科技股份有限公司 | Image stitching method and image stitching device |
CN110493511B (en) * | 2019-07-30 | 2023-05-09 | 维沃移动通信有限公司 | Panoramic image generation method and mobile terminal |
CN111553870B (en) * | 2020-07-13 | 2020-10-16 | 成都中轨轨道设备有限公司 | Image processing method based on distributed system |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101420525A (en) * | 2007-10-26 | 2009-04-29 | 鸿富锦精密工业(深圳)有限公司 | Photographing apparatus and method |
CN101582989A (en) * | 2008-05-16 | 2009-11-18 | 卡西欧计算机株式会社 | Image capture apparatus and program |
CN101990032A (en) * | 2009-07-29 | 2011-03-23 | 深圳富泰宏精密工业有限公司 | Mobile electronic device with camera device and control method thereof |
CN102307278A (en) * | 2011-08-25 | 2012-01-04 | 天津九安医疗电子股份有限公司 | Baby monitoring system and control method for same |
CN102340626A (en) * | 2010-07-14 | 2012-02-01 | 株式会社尼康 | Image-capturing device, and image combination program |
CN102819398A (en) * | 2012-08-08 | 2012-12-12 | 许继集团有限公司 | Method for slidingly controlling camera via touch screen device |
Family Cites Families (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN100455266C (en) * | 2005-03-29 | 2009-01-28 | 深圳迈瑞生物医疗电子股份有限公司 | Broad image processing method |
CN101042733A (en) * | 2006-03-22 | 2007-09-26 | 上海品伟数码科技有限公司 | Image split-joint method for obtaining complete finger print with slide collection |
CN101546424B (en) * | 2008-03-24 | 2012-07-25 | 富士通株式会社 | Method and device for processing image and watermark detection system |
CN102207674A (en) * | 2010-03-30 | 2011-10-05 | 鸿富锦精密工业(深圳)有限公司 | Panorama image shooting apparatus and method |
CN103176347B (en) * | 2011-12-22 | 2016-07-27 | 百度在线网络技术(北京)有限公司 | Panorama sketch image pickup method and filming apparatus and electronic equipment |
-
2013
- 2013-09-10 CN CN201310409830.5A patent/CN104427242B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101420525A (en) * | 2007-10-26 | 2009-04-29 | 鸿富锦精密工业(深圳)有限公司 | Photographing apparatus and method |
CN101582989A (en) * | 2008-05-16 | 2009-11-18 | 卡西欧计算机株式会社 | Image capture apparatus and program |
CN101990032A (en) * | 2009-07-29 | 2011-03-23 | 深圳富泰宏精密工业有限公司 | Mobile electronic device with camera device and control method thereof |
CN102340626A (en) * | 2010-07-14 | 2012-02-01 | 株式会社尼康 | Image-capturing device, and image combination program |
CN102307278A (en) * | 2011-08-25 | 2012-01-04 | 天津九安医疗电子股份有限公司 | Baby monitoring system and control method for same |
CN102819398A (en) * | 2012-08-08 | 2012-12-12 | 许继集团有限公司 | Method for slidingly controlling camera via touch screen device |
Also Published As
Publication number | Publication date |
---|---|
CN104427242A (en) | 2015-03-18 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104427242B (en) | Image split-joint method, device and electronic equipment | |
WO2019134516A1 (en) | Method and device for generating panoramic image, storage medium, and electronic apparatus | |
US10165201B2 (en) | Image processing method and apparatus and terminal device to obtain a group photo including photographer | |
CN100583942C (en) | Panorama photography method and apparatus capable of informing optimum photographing position | |
CN202172446U (en) | Wide angle photographing apparatus | |
CN106534651A (en) | Terminal equipment having shooting function | |
EP3110131A1 (en) | Method for processing image and electronic apparatus therefor | |
CN105141858A (en) | Photo background blurring system and photo background blurring method | |
US20150138309A1 (en) | Photographing device and stitching method of captured image | |
EP2413589A2 (en) | Method and apparatus for photographing a panoramic image | |
CN110650241A (en) | Method and device for presenting panoramic photo in mobile terminal and mobile terminal | |
US9888176B2 (en) | Video apparatus and photography method thereof | |
CN103247037A (en) | Image processing method, device and electronic device | |
CN105701762B (en) | Picture processing method and electronic equipment | |
US11393076B2 (en) | Blurring panoramic image blurring method, terminal and computer readable storage medium | |
CN104170371A (en) | Method of realizing self-service group photo and photographic device | |
CN109360150A (en) | A kind of joining method and device of the panorama depth map based on depth camera | |
CN105637852A (en) | Image processing method and apparatus and electronic device | |
CN103716548A (en) | Video picture special effect processing method and device | |
CN105657239A (en) | Image processing method and device | |
WO2019084756A1 (en) | Image processing method and device, and aerial vehicle | |
US10380719B2 (en) | Device and method for generating panorama image | |
CN106303235A (en) | Take pictures processing method and processing device | |
CN106851117B (en) | method for obtaining panoramic photo and electronic equipment | |
WO2015069063A1 (en) | Method and system for creating a camera refocus effect |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |