Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete
Site preparation description, it is clear that described embodiments are some of the embodiments of the present invention, instead of all the embodiments.Based on this hair
Embodiment in bright, every other implementation obtained by those of ordinary skill in the art without making creative efforts
Example, shall fall within the protection scope of the present invention.
First embodiment
A kind of image display method is disclosed in the embodiment of the present invention, is applied to mobile terminal, which includes first
The second camera of camera and rotatable predetermined angle, the second camera are camera lens towards adjustable camera, are passed through
Predetermined angle is rotated to realize the adjusting of camera lens direction, and wherein the predetermined angle is a preset angular range, for example, default
Angular range be 0 ° to 360 °, alternatively, the predetermined angle include in a set angle range by preset interval selection it is more
A walk-off angle angle value claps to obtain different pictures to realize second camera under different angle, specifically, multiple walk-off angle angle value
It can be and obtain according to being chosen in the set angle range at equal intervals.As shown in connection with fig. 1, this method comprises:
Step 101: obtaining target image.
Specifically, which is the image for implementing amplification display operation for user, and needing to be based in subsequent process should
Target image is handled to amplify display.The acquisition of the target image can be and check instruction according to the picture of user, from shifting
It is chosen in dynamic terminal photograph album and obtains the target image, or directly by taking pictures to obtain.
Step 102: receiving the target magnification region and object magnification of mobile terminal user's input.
The target magnification region is a region on target image, using the display image in the target area as amplification
Object amplifies display according to the object magnification.
Wherein, the acquisition of the target magnification region and object magnification, can be, which ought receive two fingers of user, exists
When the contrary slide carried out on screen, connect according to the finger in the gesture slide with the initial of display screen
It is carried on the back on the display screen to obtain the target magnification region of user's input, and according to the finger in the gesture slide touching position
To sliding path length or other parameters come obtain user input object magnification.
Step 103: in pre-stored at least one enlarged drawing associated with each region of target image, base
In object magnification, extract and the associated target enlarged drawing of target magnification region.
When amplifying display to the target magnification region in target image, directly from least one pre-stored enlarged drawing
The target enlarged drawing to match with the target magnification region and the object magnification is extracted, as in amplify display.
Wherein, at least one enlarged drawing associated with each region of target image, corresponding to each of target image
At least one amplification factor in a region, under different amplification factors, each region for obtaining target image is associated extremely
A few enlarged drawing, in order to which during subsequent amplification display, directly the matching of progress photo is extracted, and finally on display circle
It is shown on face, promote the fluency of amplification display process, which is based on target figure
As generating in advance and storing to obtain, which can carry out pixel and display according to other assistant images
The promotion of effect is not only restricted to the real-time amplifying operation of user, so that amplification display effect and amplification display response speed obtain
It is promoted.
Step 104: being based on target enlarged drawing, display is amplified to target magnification region.
It is being based on object magnification, is extracting with after the associated target enlarged drawing of target magnification region, target is put
Big region amplifies display.
Wherein, which is 1 times of focal length, and second camera is N times of focal length, N >=4.Due to second camera
Focal length is N times of the first camera, therefore the visual field of second camera is the 1/N of the first camera2, with one times of focal length clap one
Original image claps to obtain the cell area image of setting regions in original image with N times of focal length, and the cell area image is by original image
Setting regions in image detail show, have more effective pixel points parameters, assist the setting area of original image
The amplification of image generates in domain.Wherein, N >=4, can be as far as possible with the photo for ensuring that second camera is taken under N times of focal length
Image frame in the thin setting regions by original image is shown, obtains enough valid pixels, is made clear after taking pictures
Look at picture when, user amplifies Shi Jieke to arbitrary region in image and clearly shows, guaranteeing to have when amplification display can be clear
Clear image display effect promotes user experience.
At least one is being stored in advance by obtaining target image in image display method disclosed in the embodiment of the present invention
In enlarged drawing, it is based on object magnification, extraction and the associated target enlarged drawing of target magnification region, is based ultimately upon the mesh
Mark enlarged drawing amplifies display to target magnification region;The process, by the associated target in each region in target image
Enlarged drawing carries out pre-acquiring and storage, the amplification in order to the target enlarged drawing obtained based on this, to target magnification region
Image carries out the promotion of pixel and display effect, when the amplification of subsequent user is checked, directly from pre-stored enlarged drawing,
Target enlarged drawing corresponding with target magnification region and object magnification is extracted in matching, is checked with responding the amplification of user
Operation, realizes that the amplification of image is shown, promotes the fluency of amplification display process, promotes the clarity of amplification display image, makes
To obtaining preferably amplifying display effect when certain a part is amplified and checked in image.
Second embodiment
A kind of image display method is disclosed in the embodiment of the present invention, is applied to mobile terminal, which includes first
The second camera of camera and rotatable predetermined angle, the second camera are camera lens towards adjustable camera, are passed through
Predetermined angle is rotated to realize the adjusting of camera lens direction, and wherein the predetermined angle is a preset angular range, for example, default
Angular range be 0 ° to 360 °, alternatively, the predetermined angle include in a set angle range by preset interval selection it is more
A walk-off angle angle value claps to obtain different pictures to realize second camera under different angle, specifically, multiple walk-off angle angle value
It can be and obtain according to being chosen in the set angle range at equal intervals.As shown in connection with fig. 2, this method comprises:
Step 201: during the first camera and second camera acquisition preview image, receiving photographing instruction.
Firstly, before the target magnification region to target image amplifies, being needed by shooting in the present embodiment
The enlarged drawing that the moment generates different images region is completed to the original image for being formed as target image, and taking pictures.
When camera is opened, mobile terminal is in interface of taking pictures, and camera can constantly be acquired external sights, obtain
It to preview image and exports to display interface, the photographing instruction of user in this process is received, to carry out photographing operation.
Step 202: the first camera of control shoots an original image.
According to photographing instruction, the first camera is executed photographing instruction, shoots an original image, obtained based on the original image
To next target image.
Step 203: original image is divided into N*N image-region.
Image has width and length, and original image is carried out the realization process of region division by this, for example, by image
Broadside and long side are divided into N sections, and the endpoint of the section divided on broadside and long side connect to form line, and original image is divided into N*
N number of image-region, which can be by carrying out establishing coordinate on the display screen to carry out region to the original image of display
Division.Preferably, the size of the N*N image-region is identical, which does not overlap, this N*N figure
As all areas in region overlay original image.Original image is divided into N*N image-region, with what is obtained for division
Each image-region generates corresponding enlarged drawing.
Step 204: control second camera shoots N by rotation2Zhang little Qu area image, every cell area image difference
It is corresponded with the image in each region in N*N image-region.
The N2Zhang little Qu area image is different from the focal length of original image when shooting.The N2Zhang little Qu area image passes through control
The rotation of second camera is clapped, and the rotation of second camera can control camera towards different directions in original image
The content that different zones are absorbed is shot respectively, corresponding with each region in N*N image-region respectively to obtain
The N2Zhang little Qu area image.
Wherein, which is 1 times of focal length, and second camera is N times of focal length, N >=4.Due to second camera
Focal length is N times of the first camera, therefore the visual field of second camera is the 1/N of the first camera2, shot with one times of focal length
To an original image, N can be obtained with N times of focal length shooting2Zhang little Qu area image, the zonule in the cell area image are and original
N*N image-region dividing in beginning image corresponds, the figure with each region in N*N image-region respectively
As one-to-one N2The details of image in each region is shown there is more valid pixels by Zhang little Qu area image
Point parameter, auxiliary generate at least one enlarged drawing associated with each N*N image-region divided.Wherein, N >=4, with
Ensure that the division of N*N image-region is sufficiently fine, the image-region quantity divided is enough, makes browsing pictures after taking pictures
When, user amplifies Shi Jieke to arbitrary region in image and clearly shows, guarantees amplification display Shi Youneng clearly image
Display effect promotes user experience.
Step 205: for each image-region in the N*N image-region, being based on the N2Zhang little Qu area image generates
At least one enlarged drawing.
Wherein, which corresponds at least one amplification factor.It is shown to amplify subsequent image
When can extract the amplification picture of corresponding region, need to generate those amplification pictures in advance, wherein based on divided
N*N image-region in each image-region and generated with the one-to-one cell area image in those regions, obtain
At least one enlarged drawing corresponding to each image-region.The generation of at least one enlarged drawing, specifically can be, by N*
Each image-region amplification in N number of image-region, and pixel in corresponding cell area image and pixel display are joined
Number is sampled, and the pixel parameter of the two is synthesized, and obtain each image-region has clearly pixel display effect
The enlarged drawing of fruit avoids amplified image from becoming the case where void fogs.
As a specific embodiment, wherein N should be based on for each image-region in N*N image-region2?
Cell area image, the step of generating at least one enlarged drawing, comprising:
According to preset interval W, 1 to G discrete value D between N is extracted1、D2……DG;By G discrete value D1、D2……DG
It is determined as amplification factor set, the corresponding amplification factor of each discrete value in the amplification factor set;For N*N image
Each image-region in region, each amplification factor and N based on the amplification factor set2Zhang little Qu area image generates extremely
A few enlarged drawing.
Wherein, G is the natural number greater than 0, and each discrete value is greater than 1 and is less than or equal to N.
For the N*N region divided in original image, each region may be the area that user amplifies display
Domain, and each region may have a variety of different amplification factors, therefore combining each image-region and N in original image2
Zhang little Qu area image generate enlarged drawing when, it is thus necessary to determine that the image magnification of enlarged drawing, and due to original image be
It is clapped under 1 times of focal length of the first camera, cell area image is to clap under N times of focal length of second camera, extracts 1 between N
Preset interval discrete value as amplification factor, generate enlarged drawing, obtaining details can clearly show, have good amplification
The enlarged drawing of display effect.Wherein, preset interval W can be 0.1, i.e., more between 1-N using 0.1 as interval fetch bit
A discrete value is as amplification factor, according to those discrete values, in conjunction with N2Zhang little Qu area image generates each image in original image
The enlarged drawing of the corresponding different amplification in region.
Specifically, should be for each image-region in N*N image-region, each amplification based on amplification factor set
Multiple and N2Zhang little Qu area image, when generating at least one enlarged drawing, need by amplification factor set each value with
N is compared, when comparison result difference, corresponding different generating process.
As a specific embodiment, wherein should be for each image-region in N*N image-region, based on putting
The each amplification factor and N of big multiple set2Zhang little Qu area image, the step of generating at least one enlarged drawing, comprising:
For each image-region in N*N image-region, it is corresponding in original image to obtain each image-region
Image, and it is labeled as the first image;It is equal to each amplification factor of N for value in amplification factor set, by N2Open zonule
Cell area image corresponding with the first image is determined as enlarged drawing in image, and is labeled as the second image;For amplification factor
Value is less than each amplification factor of N in set, and the first image is carried out image with the second image and is synthesized, composograph is generated,
And composograph is determined as enlarged drawing.
Value is less than each amplification factor of N in amplification factor set, then needs each image-region and zonule figure
As being synthesized, specially pixel between the two is synthesized, to obtain the enlarged drawing of imaging clearly;And work as times magnification
Value is equal to each amplification factor of N in manifold conjunction, directly makees the corresponding cell area image of image in each image-region
For enlarged drawing, the generation operation of image is reduced, the generation effect and formation efficiency of enlarged drawing are improved.
Wherein, the first image and the second image are carried out image and synthesize by this, generate the realization process of composograph, need by
Effective pixel points in first image are allocated and adjust, and the first image and the second image can be carried out pixel ginseng at this time
Several sampling synthesis, or the pixel value of the pixel of corresponding content in the second image is given to corresponding content in magnification region
Display area, with realize to screen pixel cell carry out color filling, remain to amplified display picture detail with higher
Clarity is shown.
As a specific embodiment, wherein it is less than each amplification factor of N for value in amplification factor set,
First image is carried out image with second image to synthesize, generates composograph, and composograph is determined as enlarged drawing
The step of, comprising:
It is less than each amplification factor of N for value in amplification factor set, the first image is subjected to interpolation;It obtains and passes through
F interpolating pixel point after interpolation in the first image;Second image is sampled, F sampling pixel points are obtained;F are inserted
Value pixel replaces with F sampling pixel points, generates composograph;Composograph is determined as the enlarged drawing.
Wherein, according to formula F=(pic/ (N2))×M2, it is calculated when being amplified to M times, the interpolating pixel point of generation
Number, wherein pic is the resolution ratio of the first image, and M is the amplification factor.
How the process combines cell area image, generates specially when the value in amplification factor set is less than N
The implementation process of the corresponding enlarged drawing of image-region in original image.Wherein, according to each times magnification that value is less than to N
First image is carried out interpolation amplification, makes the first image up-sizing on the basis of original display size, the first image Central Plains by number
Need to carry out Interpolation compensation between some effective pixel points to adapt to amplified display size, but those interpolating pixel points can be made
At picture image blur, the second image clapped under N times of focal length is sampled at this time, obtained sampling pixel points and interpolation picture
Vegetarian refreshments is corresponding identical display content, those interpolating pixel points are replaced with sampling pixel points, imaging clearly can be obtained
Enlarged drawing, it is ensured that amplify the clear effect of display.
Step 206: for each image-region, first established between image-region and at least one enlarged drawing is closed
Connection relationship.
By in N*N image-region each image-region with its corresponding at least one enlarged drawing be associated,
Establish incidence relation between the two, in order to it is subsequent an image-region is amplified when, can accurately identify and extract
Enlarged drawing associated there, to amplify display.
Step 207: storing at least one enlarged drawing and the first incidence relation.
Wherein, which is that each image-region in N*N image-region is put at least one generated
Incidence relation between big image, stores at least one enlarged drawing and the first incidence relation, to original graph
As according to the incidence relation, finding the corresponding enlarged drawing of image-region that user chooses, the original graph when amplifying display
As also being saved simultaneously.
Wherein, preservation form can be is associated in the form of database, and after shooting original image, user is only seen
At least one enlarged drawing of this original image, preservation is not present in display interface, the amplification in these image data bases
Image will associate with original image, chosen and shown for subsequent.
Step 208: obtaining target image.
When carrying out instant image viewing and amplification display after image taking, which is aforementioned step
The original image clapped in rapid, obtains the original image;When having taken multiple original images, user is to wherein one
It when image is checked and amplifies display, is chosen and is instructed according to the photo of user, selection one is original from multiple original images
Image becomes the target image.
Step 209: receiving the target magnification region and object magnification of mobile terminal user's input.
Wherein, which is a region on target image, which is to divide to obtain N*N
One in a image-region, using the display image in the target area as amplification subject, according to the object magnification into
Row amplification display.
Wherein, which, which can be, chooses behaviour to the manual point touching that display screen carries out by receiving user
Make, operation is touched by the point to obtain target magnification region and point touching and operate corresponding amplification factor;Alternatively, being held according to user
Capable two fingers touch screen gesture matches to obtain the target magnification region, and determines target times magnification by stroke that finger streaks
Number.
Step 210: in pre-stored at least one enlarged drawing associated with each region of target image, base
In object magnification, extract and the associated target enlarged drawing of target magnification region.
The process generates and each image district in target image due to having been realized in abovementioned steps when taking pictures and completing
At least one associated enlarged drawing of domain, therefore, at this time in the target magnification region and target amplification for getting user's input
After multiple, directly according to those user instructions, from the enlarged drawing of storage, extracted according to the first incidence relation,
Treatment process when photo amplification is checked is greatly saved;And the target enlarged drawing extracted, to combine N in advance2?
A cell area image corresponding with target magnification region in cell area image and generate, the image in the target magnification region
It is compensated in amplification process by the valid pixel in cell area image, makes to put with the associated target of target magnification region
Big image has better details display effect, improves the display resolution of amplified display image.
Step 211: being based on target enlarged drawing, display is amplified to target magnification region.
The amplification shows process, and the target enlarged drawing can be directly loaded in display interface, makes browse graph after taking pictures
Arbitrary region that can clearly in enlarged drawing when piece, promotes user experience.
Display process in the present embodiment, to take pictures stage execution based on the original image and N clapped in user2Zhang little Qu
The enlarged drawing that area image carries out generates operation, and the generation of enlarged drawing is placed on the image taking stage, puts subsequent image
Directly matching load correspondence image, raising image amplify display speed when checking greatly.
Further, specifically, should it is pre-stored it is associated with each region of target image at least one put
In big image, it is based on object magnification, when extracting target enlarged drawing associated with target magnification region, it is also necessary to by target
Amplification factor is compared with N, when comparison result difference, corresponding different image zooming-out and image display operations.
On the one hand, when object magnification is less than N or is equal to N, corresponding following image zooming-out and display operation.
It wherein, should be in pre-stored at least one enlarged drawing associated with each region of the target image
In, the step of being based on the object magnification, extract target enlarged drawing associated with the target magnification region, comprising:
The object magnification is compared with N;If the object magnification is less than N, in target amplification region
In at least one associated described composograph of domain, extracting amplification factor is the composograph of the object magnification as institute
State target enlarged drawing;If the object magnification is equal to N, and the corresponding cell area image of the target magnification region is true
It is set to the target enlarged drawing.
Then, corresponding, the step of target enlarged drawing should be based on, amplify display to target magnification region, comprising: aobvious
Show the target enlarged drawing.
The process, due to being pre-stored in memory element and the associated different amplifications in each region of target image
At least one enlarged drawing of multiple, therefore, when object magnification is less than N, directly from least one enlarged drawing
The enlarged drawing for extracting correspondence image region and corresponding amplification factor is shown, image generated time and synthesis money are saved
Source;And when object magnification is equal to N, then target magnification region enlarged drawing corresponding after N times of amplification is at N times
The cell area image clapped under focal length, directly from the N clapped2It is one corresponding that target magnification region is chosen in Zhang little Qu area image
Cell area image shown, fast response time.
On the other hand, when object magnification is greater than N, corresponding following operation.
Wherein, after the step of object magnification is compared with N, this method further include:
If the object magnification is greater than N, the corresponding cell area image of target magnification region is determined as target and is put
Big image.
Then, accordingly, the step of being based on target enlarged drawing, display amplified to target magnification region, comprising:
The interpolation amplification multiple for determining the target enlarged drawing is S;According to interpolation amplification multiple S, by target enlarged drawing
As carrying out interpolation amplification;Show the target enlarged drawing after interpolation amplification.
Wherein, S=T-N, S are interpolation amplification multiple, and T is object magnification.
The process, due to aforementioned each amplification factor and N based on amplification factor set2Zhang little Qu area image generates extremely
In the embodiment of a few enlarged drawing, at amplification factor corresponding at least one enlarged drawing for being stored in memory element
It, then, can be from least one pre-stored amplification when the object magnification of user's input is greater than N between 1 times to N times
Corresponding N times of enlarged drawing is extracted in image, i.e., cell area image corresponding with the mark magnification region of user's input is small at this
Amplifying operation is executed on the basis of area image again, until reaching object magnification.Specifically, it is based on zonule figure
The amplification of picture, to be realized by interpolation amplification.
The realization process of above steps is illustrated, such as N value is 4, the first camera is 1 times of coke at this time
Away from second camera is 4 times of focal lengths, and the visual field of second camera is the 1/16 of the first camera, and the first camera is clapped
Original image is divided into 4*4 image-region, and control second camera shoots N by rotation2I.e. 16 cell area images are opened,
Every cell area image is corresponded with the image in each region in 4*4 image-region respectively, is based on 16 zonules
Image synthesizes enlarged drawing corresponding to each image-region;In the generating process of enlarged drawing, it can extract between 1 to 4
Discrete value, such as extraction discrete value be 2 and 3, this 2 and 3 formed amplification factor set, i.e., each image-region is pressed respectively
It is amplified according to the amplification factor of 2 times and 3 times, obtains corresponding enlarged drawing, enlarged drawing corresponding to each image-region
There are the image of 2 times of an amplification and the image of 3 times of an amplification, establishes the association between enlarged drawing and corresponding image-region
Relationship simultaneously saves, and when in order to subsequent amplification display, enlarged drawing corresponding with target magnification region is read directly in memory
As being shown, such as when the target magnification region of user's input is the 8th image-region in 4*4 image-region,
The object magnification of user's input is 3 times, then chooses from the enlarged drawing generated and the 8th figure according to incidence relation
As the corresponding amplification factor in region is that 3 times of enlarged drawing is shown, when the object magnification of user's input is 4 times, then
Cell area image corresponding with the 8th image-region is the enlarged drawing for amplifying 4 times, directly shows the cell area image
Show, and when the object magnification of user's input is 5 times, then in cell area image corresponding with the 8th image-region
On the basis of implement be enlarged, which is put again and is twice, the image obtained in the 8th image-region is amplified 5
Enlarged drawing again, which is shown.The enlarged drawing generated in advance by this, so that
Final amplification display operation has the amplification display effect being more clear, and improves the response speed of amplification display.
Image display method disclosed in the embodiment of the present invention, in conjunction with the N*N image-region that original image divides,
And the one-to-one N of image with each region of division2Zhang little Qu area image generates at least one enlarged drawing, establishes figure
As the incidence relation between region and those enlarged drawings and storage, it is subsequent display is amplified to target image when, preparatory
In at least one enlarged drawing of storage, it is based on object magnification, extracts and amplifies with the associated target of target magnification region
Image is based ultimately upon the target enlarged drawing and amplifies display to target magnification region;The process, will be each in target image
The enlarged drawing of the associated different amplification in region carries out pre-generatmg and storage, passes through the figure with different focal length multiple
Piece synthesizes the enlarged drawing of different amplification, when the amplification of subsequent user is checked, directly extracts from matching and amplifies with target
Region and the corresponding target enlarged drawing of object magnification, realize that the amplification of image is shown, promote amplification display process
Fluency promotes the clarity of amplification display image, makes preferably to be put when certain a part in image is amplified and checked
Big display effect.
3rd embodiment
A kind of image display method is disclosed in the embodiment of the present invention, is applied to mobile terminal, and going back mobile terminal includes first
The second camera of camera and rotatable predetermined angle, the second camera are camera lens towards adjustable camera, are passed through
Predetermined angle is rotated to realize the adjusting of camera lens direction, and wherein the predetermined angle is a preset angular range, for example, default
Angular range be 0 ° to 360 °, alternatively, the predetermined angle include in a set angle range by preset interval selection it is more
A walk-off angle angle value claps to obtain different pictures to realize second camera under different angle, specifically, multiple walk-off angle angle value
It can be and obtain according to being chosen in the set angle range at equal intervals.As shown in connection with fig. 3, this method comprises:
Step 301: during the first camera and second camera acquisition preview image, receiving photographing instruction.
When camera is opened, mobile terminal is in interface of taking pictures, and camera can constantly be acquired external sights, obtain
It to preview image and exports to display interface, the photographing instruction of user in this process is received, to carry out photographing operation.
Step 302: the first camera of control shoots an original image.
According to photographing instruction, the first camera is executed photographing instruction, shoots an original image, obtained based on the original image
To next target image.
Step 303: the original image is divided into N*N image-region.
Image has width and length, and original image is carried out the realization process of region division by this, for example, by image
Broadside and long side are divided into N sections, and the endpoint of the section divided on broadside and long side connect to form line, and original image is divided into N*
N number of image-region, which can be by carrying out establishing coordinate on the display screen to carry out region to the original image of display
Division.Preferably, the size of the N*N image-region is identical, which does not overlap, this N*N figure
As all areas in region overlay original image.
Step 304: control second camera shoots N by rotation2Zhang little Qu area image, every cell area image difference
It is corresponded with the image in each region in N*N image-region.
The N2Zhang little Qu area image is different from the focal length of original image when shooting.The N2Zhang little Qu area image passes through control
The rotation of second camera is clapped, and the rotation of second camera can control camera towards different directions in original image
The content that different zones are absorbed is shot respectively, corresponding with each region in N*N image-region respectively to obtain
The N2Zhang little Qu area image.
Wherein, which is 1 times of focal length, which is N times of focal length, N >=4.
Due to N times that the focal length of second camera is the first camera, the visual field of second camera is the first camera shooting
The 1/N of head2, shoot to obtain an original image with one times of focal length, N can be obtained with N times of focal length shooting2Zhang little Qu area image, this is small
Zonule in area image is to correspond with the N*N image-region divided in original image, this is a with N*N respectively
The one-to-one N of image in each region in image-region2Zhang little Qu area image shows the details of the image in each region
It shows and, there are more effective pixel points parameters, auxiliary generates associated at least with each N*N image-region divided
One enlarged drawing.Wherein, N >=4, the division to ensure N*N image-region is sufficiently fine, the image-region quantity divided
Enough, when making browsing pictures after taking pictures, user amplifies Shi Jieke to arbitrary region in image and clearly shows, guarantees
Amplification shows Shi Youneng clearly image display effect, promotes user experience.
Step 305: for each image-region in the N*N image-region, establishing the image-region and zonule figure
The second incidence relation as between.
The step claps to obtain an original graph in the first camera and second camera of multiple proportion in control focal length respectively
As and with divide N of the region with corresponding relationship in original image2After Zhang little Qu area image, directly by the association of the rwo
Relationship is set up, to obtain N*N image-region and the N in original area2One-to-one relationship between Zhang little Qu area image,
In order to it is subsequent an image-region is amplified when, can accurately identify and extract zonule figure associated there
Picture carrys out unfolded image amplifying operation.
Step 306: storing the N2Zhang little Qu area image and the second incidence relation.
Wherein, enlarged drawing is the cell area image, which is each image in N*N image-region
Region and the N2Incidence relation between Zhang little Qu area image, to the N2Zhang little Qu area image and the second incidence relation are stored,
By the incidence relation, to find the corresponding cell of image-region that user chooses when amplifying display to original image
Area image, make it is subsequent when receiving user to the amplifying operation of target magnification region in image, can directly by this second
Incidence relation obtains the pre-stored operation object that implement image synthesis based on it, the i.e. N2And it should in Zhang little Qu area image
The corresponding cell area image of target magnification region, checks process in the amplification of image, and the target magnification region is corresponding
Image carries out image with the cell area image and synthesizes.
The process, only need to be to N2Each image-region and zonule figure in Zhang little Qu area image and N*N image-region
Incidence relation as between is stored, and is just carried out real-time image synthesis in the subsequent amplification display stage, is reduced the figure of storage
Piece quantity saves memory space, wherein the original image is also saved simultaneously, to form the target image in subsequent process.
Step 307: obtaining target image.
When carrying out instant image viewing and amplification display after image taking, which is aforementioned step
The original image clapped in rapid, obtains the original image;When having taken multiple original images, user is to wherein one
It when image is checked and amplifies display, is chosen and is instructed according to the photo of user, selection one is original from multiple original images
Image becomes the target image.
Step 308: receiving the target magnification region and object magnification of mobile terminal user's input.
Wherein, which is a region on target image, which is to divide to obtain N*N
One in a image-region, using the display image in the target area as amplification subject, according to the object magnification into
Row amplification display.
Wherein, which, which can be, chooses behaviour to the manual point touching that display screen carries out by receiving user
Make, operation is touched by the point to obtain target magnification region and point touching and operate corresponding amplification factor;Alternatively, being held according to user
Capable two fingers touch screen gesture matches to obtain the target magnification region, and determines target times magnification by stroke that finger streaks
Number.
Step 309: object magnification is compared with N.
Specifically, be somebody's turn to do in pre-stored at least one enlarged drawing associated with each region of target image,
It is needed when extracting target enlarged drawing associated with target magnification region by object magnification and N based on object magnification
It is compared, when comparison result difference, corresponding different image zooming-out and image display operations.
Step 310: if object magnification is less than N, the corresponding cell area image of target magnification region being determined as mesh
Mark enlarged drawing.
At this point, as corresponding to each image-region being pre-stored in memory element in N*N image-region
Cell area image, the cell area image due to be clapped under N times of focal length, therefore identical display content in cell area image but
There are more effectively display pixel points, it, can be by corresponding with target magnification region small when object magnification is less than N
Area image generates the enlarged drawing with clear display effect.At this point, according to the second incidence relation of storage, extraction and mesh
The corresponding cell area image of magnification region is marked, it is first determined as to target enlarged drawing.
Step 311: the corresponding image of target magnification region being subjected to image with target enlarged drawing and is synthesized.
It is put in conjunction with extracted cell area image corresponding with target magnification region with target according to object magnification
Corresponding display image is integrated in big region, and the image for obtaining target magnification region is amplified to object magnification
Final image.The image synthesizing procedure can be corresponding to target magnification region by the valid pixel in target enlarged drawing
Image carry out pixel compensation, the composograph with better details display effect after synthesize, promoted amplify shows
The clarity of image;And the amplification that image is arranged in image synthesizing procedure is shown the stage by the process, reduces output image memory,
Save memory space.
Specifically, the detailed process of image synthesis, comprising: according to the object magnification, by target magnification region pair
The image answered carries out interpolation;Obtain the E interpolating pixel point after interpolation in the corresponding image of target magnification region;To target
Enlarged drawing is sampled, and E sampling pixel points are obtained;E interpolating pixel point is replaced with into E sampling pixel points, generates and closes
Image after.
Step 312: image of the display after image synthesizes.
In the present embodiment, before the target magnification region to target image amplifies, need to obtain shape by shooting
Original image and N corresponding with the different images region divided in original image as target image2Zhang little Qu area image, is deposited
Both storages and incidence relation between the two, according to the incidence relation, obtain and target magnification region in subsequent amplification display
Corresponding small image-region, then the synthesis of image is amplified in conjunction with the two in real time, and then show to the image of synthesis,
The amplification that image is arranged in image synthesizing procedure is shown the stage, reduces image by the reproduced image resolution for promoting amplification display image
Amount of storage saves memory space.
On the other hand, as a specific embodiment, wherein in the step of object magnification is compared with N
Later, this method further include: if object magnification is equal to N, the corresponding cell area image of target magnification region is determined as
Target enlarged drawing.
Then, corresponding, the step of being based on the target enlarged drawing, amplify display to target magnification region, comprising: aobvious
Show the target enlarged drawing.
When object magnification is equal to N, target magnification region enlarged drawing corresponding after N times of amplification is in N
The cell area image clapped under times focal length extracts and target amplification region from storing data then directly according to the second incidence relation
The corresponding cell area image in domain, is directly shown, image generated time and synthesis resource are saved.
On the other hand, as a specific embodiment, wherein in the step of object magnification is compared with N
Later, this method further include: if the object magnification is greater than N, by the corresponding cell area image of the target magnification region
It is determined as target enlarged drawing.
Then, the step of target enlarged drawing should be based on, display is amplified to the target magnification region, comprising:
The interpolation amplification multiple for determining target enlarged drawing is P;According to the interpolation amplification multiple P, by the target enlarged drawing into
Row interpolation amplification;Show the target enlarged drawing after interpolation amplification.
Wherein, P=Q-N, P are interpolation amplification multiple, and Q is object magnification.
The process can be in target magnification region after N times of amplification when the object magnification of user's input is greater than N
Implement on the basis of corresponding enlarged drawing it is further be enlarged, i.e., with zonule corresponding to target magnification region
Amplifying operation again is executed on the basis of image, until reaching object magnification.Specifically, it is based on cell area image
Amplification, to be realized by interpolation amplification.The display resolution for promoting enlarged drawing, makes to put certain a part in image
It obtains preferably amplifying display effect when checking greatly.
The realization process of above steps is illustrated, such as N value is 4, the first camera is 1 times of coke at this time
Away from second camera is 4 times of focal lengths, and the visual field of second camera is the 1/16 of the first camera, and the first camera is clapped
Original image is divided into 4*4 image-region, and control second camera shoots N by rotation2I.e. 16 cell area images are opened,
Every cell area image is corresponded with the image in each region in 4*4 image-region respectively, later, is not generated first each
Enlarged drawing corresponding to image-region, first establish each image-region of 4*4 image-region and corresponding cell area image it
Between incidence relation and preservation, in order to subsequent amplification display when, directly according to the incidence relation, the target chosen based on user
Image-region and corresponding cell area image, carry out the generation of real-time enlarged drawing.
Such as when the target magnification region of user's input is the 8th image-region in 4*4 image-region, user's input
Object magnification be 3 times, the amplification factor is less than 4, then by the image of the 8th image-region and corresponding zonule figure
As carrying out real-time image synthesis, the enlarged drawing after being synthesized is shown, if the object magnification of user's input is 4
Times, which is equal to 4, then it is assumed that the corresponding cell area image of the 8th image-region is to scheme in the 8th image-region
Picture is amplified enlarged drawing at 4 times, is directly shown, if the object magnification of user's input is 5 times, the amplification
Multiple is greater than 4, then implements to be enlarged on the basis of the 8th image-region corresponding cell area image, by the zonule
Image is put be twice again, and the enlarged drawing that the image in the 8th image-region is amplified 5 times is obtained, this finally obtained is put
Big image is shown.According to the incidence relation that generates in advance, according to 4*4 image-region of division and 16 corresponding
Cell area image generates the enlarged drawing of target magnification region in real time, is more clear so that final amplification display operation has
Amplification display effect, and reduce output image memory, save memory space.
Image display method disclosed in the embodiment of the present invention, shooting obtain original image and the N*N obtained with division
The one-to-one N of image-region2Zhang little Qu area image, the incidence relation established between image-region and those cell area images are simultaneously deposited
Storage, it is subsequent display is amplified to target image when, according to the incidence relation of storage, extract real-time and target magnification region pair
The cell area image answered, is based on object magnification, generates enlarged drawing in real time to be shown;The process, storage is drawn in advance
Incidence relation between the image-region and cell area image that divide, in the subsequent enlarged drawing stage, according to corresponding relationship and corresponding pair
Side, synthesis has the enlarged drawing of object magnification in real time, realizes that the amplification of image is shown, reduces output image memory, saves
Memory space promotes the clarity of amplification display image, makes better to obtaining when certain a part is amplified and checked in image
Amplify display effect.
Fourth embodiment
A kind of mobile terminal is disclosed in the embodiment of the present invention, which includes the first camera and rotatable preset angle
The second camera of degree, the second camera are camera lens towards adjustable camera, realize mirror by rotation predetermined angle
Head direction adjusting, wherein the predetermined angle be a preset angular range, for example, preset angular range be 0 ° extremely
360 °, alternatively, the predetermined angle includes the multiple walk-off angle angle value chosen in a set angle range by preset interval, specifically
Ground, multiple walk-off angle angle value can be and obtain according to choosing in the set angle range at equal intervals.The mobile terminal can be real
The details of existing image display method of the first embodiment into 3rd embodiment, and reach identical effect.
In conjunction with shown in Fig. 4, Fig. 5, Fig. 6, which includes: to obtain module 401, the first receiving module 402, extract mould
Block 403 and amplification display module 404.
Module 401 is obtained, for obtaining target image.
First receiving module 402, for receiving the target magnification region and object magnification of mobile terminal user's input.
Extraction module 403, in each of the pre-stored target image obtained with the acquisition module 401
In at least one associated enlarged drawing of region, it is based on the received object magnification of first receiving module 402,
It extracts and the received associated target enlarged drawing of target magnification region of first receiving module 402.
Amplify display module 404, the target enlarged drawing for extracting based on the extraction module 403, to described
Target magnification region amplifies display;
Wherein, first camera is 1 times of focal length, and the second camera is N times of focal length, N >=4.
Wherein, mobile terminal further include: the second receiving module 405, the first control module 406, the first division module
407, the second control module 408, generation module 409, first establish module 410 and the first memory module 411.
Second receiving module 405, for connecing during first camera and second camera acquisition preview image
Receive photographing instruction.
First control module 406 shoots an original image for controlling first camera.
First division module 407, for controlling first control module 406 described in the first camera shooting
Original image is divided into N*N image-region.
Second control module 408 shoots N for controlling the second camera by rotation2Zhang little Qu area image, often
Each region in the N*N image-region that Zhang Suoshu cell area image is divided with first division module 407 respectively
Image correspond.
Generation module 409, for being controlled based on described second for each image-region in the N*N image-region
Molding block 408 controls the N of the second camera shooting2Zhang little Qu area image generates at least one enlarged drawing.
First establishes module 410, and each image-region for generating for the generation module 409 establishes the figure
As the first incidence relation between region and at least one described enlarged drawing.
First memory module 411, for storing at least one enlarged drawing and institute described in the generation of generation module 409
State the first first incidence relation for establishing the foundation of module 410.
Wherein, which includes: that the first extracting sub-module 4091, first determines submodule 4092 and generates son
Module 4093.
First extracting sub-module 4091, for extracting 1 to G discrete value D between N according to preset interval W1、D2……
DG。
First determines submodule 4092, the G discrete value D for extracting first extracting sub-module 40911、
D2……DGIt is determined as amplification factor set, the corresponding amplification factor of each discrete value in the amplification factor set.
Submodule 4093 is generated, for being based on described first for each image-region in the N*N image-region
Determine each amplification factor and the N of the amplification factor set that submodule 4092 determines2Zhang little Qu area image generates
At least one enlarged drawing.
Wherein, G is the natural number greater than 0, and each discrete value is greater than 1 and is less than or equal to N.
Wherein, which includes: acquiring unit 40931, determination unit 40932 and synthesis unit 40933.
Acquiring unit 40931, for obtaining described each for each image-region in the N*N image-region
The corresponding image in the original image of image-region, and it is labeled as the first image.
Determination unit 40932, for being equal to each amplification factor of N for value in the amplification factor set, by institute
State N2Cell area image corresponding with the first image that the acquiring unit 40931 obtains is determined as in Zhang little Qu area image
The enlarged drawing, and it is labeled as the second image.
Synthesis unit 40933, for being less than each amplification factor of N for value in the amplification factor set, by institute
Second image that the first image and the determination unit 40932 for stating the acquisition of acquiring unit 40931 determine carries out figure
As synthesis, composograph is generated, and the composograph is determined as the enlarged drawing.
Wherein, which includes: interpolation subelement 409331, obtains subelement 409332, sampling subelement
409333, it generates subelement 409334 and determines subelement 409335.
Interpolation subelement 409331 will for being less than each amplification factor of N for value in the amplification factor set
The first image carries out interpolation.
Subelement 409332 is obtained, for obtaining after 409331 interpolation of interpolation subelement in the first image
F interpolating pixel point.
It samples subelement 409333 and obtains F sampling pixel points for sampling to second image.
Subelement 409334 is generated, the F interpolating pixel point for obtaining the acquisition subelement 409332 replaces
It is changed to the sampling subelement 409333 and samples the obtained F sampling pixel points, generate composograph.
Determine subelement 409335, the composograph for generating the generation subelement 409334 is determined as institute
State enlarged drawing.
Wherein, F=(pic/ (N2))×M2, wherein pic is the resolution ratio of the first image, and M is the amplification factor.
Wherein, extraction module 403 includes: that the first comparison submodule 4031, the second extracting sub-module 4032 and third are extracted
Submodule 4033.
First compares submodule 4031, for the object magnification to be compared with N.
Second extracting sub-module 4032, it is associated in target magnification region if being less than N for the object magnification
In at least one described composograph, extracts the composograph that amplification factor is the object magnification and put as the target
Big image.
Third extracting sub-module 4033, if being equal to N for the object magnification, by the target magnification region pair
The cell area image answered is determined as the target enlarged drawing.
Then the amplification display module 404 includes: the first display sub-module 4041.
First display sub-module 4041, for showing that second extracting sub-module 4032 or the third extract submodule
The target enlarged drawing that block 4033 extracts.
Wherein, mobile terminal further include: second determines submodule 4034.
Second determines submodule 4034, if being greater than N for the object magnification, by the target magnification region pair
The cell area image answered is determined as the target enlarged drawing.
Then the amplification display module 404 includes: that third determines submodule 4042,4043 and of the first interpolation amplification submodule
Second display sub-module 4044.
Third determines submodule 4042, for determining that the interpolation amplification multiple of target enlarged drawing is S.
First interpolation amplification submodule 4043, the interpolation for determining that submodule 4042 determines according to the third are put
The target enlarged drawing is carried out interpolation amplification by big multiple S.
Second display sub-module 4044, for showing after 4043 interpolation amplification of the first interpolation amplification submodule
The target enlarged drawing.
Wherein, P=Q-N, S are the interpolation amplification multiple, and T is the object magnification.
Wherein, mobile terminal further include: third receiving module 412, third control module 413, the second division module
414, the 4th control module 415, second establish module 416 and the second memory module 417.
Third receiving module 412, for connecing during first camera and second camera acquisition preview image
Receive photographing instruction.
Third control module 413 shoots an original image for controlling first camera.
Second division module 414, for controlling the third control module 413 described in the first camera shooting
Original image is divided into N*N image-region.
4th control module 415 shoots N for controlling the second camera by rotation2Zhang little Qu area image, often
Zhang Suoshu cell area image is corresponded with the image in each region in the N*N image-region respectively.
Second establishes module 416, in the N*N image-region for dividing for second division module 414
Each image-region, establish described image region and the 4th control module 415 control the second camera shooting
The second incidence relation between the cell area image.
Second memory module 417 controls the institute of the second camera shooting for storing the 4th control module 415
State N2Zhang little Qu area image and described second establishes second incidence relation that module 416 is established.
Wherein, the enlarged drawing is the cell area image.
Wherein, which includes: that the second comparison submodule 4035 and the 4th determines submodule 4036.
Second compares submodule 4035, for the object magnification to be compared with N.
4th determines submodule 4036, if being less than N for the object magnification, by the target magnification region pair
The cell area image answered is determined as the target enlarged drawing.
Then, which includes: synthesis submodule 4045 and third display sub-module 4046.
Submodule 4045 is synthesized, for the corresponding image of the target magnification region to be determined that submodule is true with the described 4th
The fixed target enlarged drawing carries out image synthesis.
Third display sub-module 4046, for showing the image after the image synthesis of the synthesis submodule.
Wherein, mobile terminal further include: the 5th determines submodule 4037.
5th determines submodule 4037, if being equal to N for the object magnification, by the target magnification region pair
The cell area image answered is determined as the target enlarged drawing.
Then the amplification display module 404 includes: the 4th display sub-module 4047.
4th display sub-module 4047, for showing that the described 5th determines the determining target enlarged drawing of submodule.
Wherein, mobile terminal further include: the 6th determines submodule 4038.
6th determines submodule 4038, if being greater than N for the object magnification, by the target magnification region pair
The cell area image answered is determined as the target enlarged drawing.
Then the amplification display module 404 includes: the 7th determining submodule 4048,4049 and of the second interpolation amplification submodule
5th display sub-module 40410.
7th determines submodule 4048, for determining that the interpolation amplification multiple of target enlarged drawing is P.
Second interpolation amplification submodule 4049, for determining the submodule determining interpolation amplification times according to the described 7th
The target enlarged drawing is carried out interpolation amplification by number P.
5th display sub-module 40410, for showing the institute after the second interpolation amplification submodule interpolation amplification
State target enlarged drawing.
Wherein, P=Q-N, P are the interpolation amplification multiple, and Q is the object magnification.
At least one amplification is being stored in advance by obtaining target image in mobile terminal disclosed in the embodiment of the present invention
In image, it is based on object magnification, extraction and the associated target enlarged drawing of target magnification region, the target is based ultimately upon and puts
Big image amplifies display to target magnification region;The process amplifies the associated target in each region in target image
Image carries out pre-acquiring and storage, in order to the target enlarged drawing obtained based on this, to the enlarged drawing of target magnification region
The promotion for carrying out pixel and display effect, when the amplification of subsequent user is checked, directly from pre-stored enlarged drawing, matching
Target enlarged drawing corresponding with target magnification region and object magnification is extracted, checks behaviour to respond the amplification of user
Make, realize that the amplification of image show, promote the fluency of amplification display process, promotes the clarity that amplification shows image, make pair
Certain a part, which amplifies, in image obtains preferably amplifying display effect when checking.
Sixth embodiment
As shown in fig. 7, the mobile terminal 600 includes: at least one processor 601, memory 602, at least one network
Interface 604 and user interface 603 and camera, the camera include the of the first camera 606 and rotatable predetermined angle
Two cameras 607.Various components in mobile terminal 600 are coupled by bus system 605.It is understood that bus system
605 for realizing the connection communication between these components.Bus system 605 further includes that power supply is total in addition to including data/address bus
Line, control bus and status signal bus in addition.But for the sake of clear explanation, various buses are all designated as total linear system in Fig. 7
System 605.
Wherein, user interface 603 may include display, keyboard or pointing device (for example, mouse, trace ball
(trackball), touch-sensitive plate or touch screen etc..
It is appreciated that the memory 602 in the embodiment of the present invention can be volatile memory or nonvolatile memory,
It or may include both volatile and non-volatile memories.Wherein, nonvolatile memory can be read-only memory (Read-
Only Memory, ROM), programmable read only memory (Programmable ROM, PROM), the read-only storage of erasable programmable
Device (Erasable PROM, EPROM), electrically erasable programmable read-only memory (Electrically EPROM, EEPROM) or
Flash memory.Volatile memory can be random access memory (Random Access Memory, RAM), be used as external high
Speed caching.By exemplary but be not restricted explanation, the RAM of many forms is available, such as static random access memory
(Static RAM, SRAM), dynamic random access memory (Dynamic RAM, DRAM), Synchronous Dynamic Random Access Memory
(Synchronous DRAM, SDRAM), double data speed synchronous dynamic RAM (Double Data Rate
SDRAM, DDRSDRAM), enhanced Synchronous Dynamic Random Access Memory (Enhanced SDRAM, ESDRAM), synchronized links
Dynamic random access memory (Synch Link DRAM, SLDRAM) and direct rambus random access memory (Direct
Rambus RAM, DRRAM).The memory 602 of the system and method for description of the embodiment of the present invention is intended to include but is not limited to these
With the memory of any other suitable type.
In some embodiments, memory 602 stores following element, executable modules or data structures, or
Their subset of person or their superset: operating system 6021 and application program 6022.
Wherein, operating system 6021 include various system programs, such as ccf layer, core library layer, driving layer etc., are used for
Realize various basic businesses and the hardware based task of processing.Application program 6022 includes various application programs, such as media
Player (Media Player), browser (Browser) etc., for realizing various applied business.Realize the embodiment of the present invention
The program of method may be embodied in application program 6022.
In embodiments of the present invention, by the program or instruction of calling memory 602 to store, specifically, can be application
The program or instruction stored in program 6022, processor 601 is for obtaining target image;Receive the mesh of mobile terminal user's input
Mark magnification region and object magnification;It is pre-stored it is associated with each region of the target image at least one
In enlarged drawing, it is based on the object magnification, is extracted and the associated target enlarged drawing of the target magnification region;It is based on
The target enlarged drawing amplifies display to the target magnification region, wherein and first camera is 1 times of focal length,
The second camera is N times of focal length, N >=4.
The method that the embodiments of the present invention disclose can be applied in processor 601, or be realized by processor 601.
Processor 601 may be a kind of IC chip, the processing capacity with signal.During realization, the above method it is each
Step can be completed by the integrated logic circuit of the hardware in processor 601 or the instruction of software form.Above-mentioned processing
Device 601 can be general processor, digital signal processor (Digital Signal Processor, DSP), dedicated integrated electricity
Road (Application Specific Integrated Circuit, ASIC), ready-made programmable gate array (Field
Programmable Gate Array, FPGA) either other programmable logic device, discrete gate or transistor logic,
Discrete hardware components.It may be implemented or execute disclosed each method, step and the logic diagram in the embodiment of the present invention.It is general
Processor can be microprocessor or the processor is also possible to any conventional processor etc..In conjunction with institute of the embodiment of the present invention
The step of disclosed method, can be embodied directly in hardware decoding processor and execute completion, or with the hardware in decoding processor
And software module combination executes completion.Software module can be located at random access memory, and flash memory, read-only memory may be programmed read-only
In the storage medium of this fields such as memory or electrically erasable programmable memory, register maturation.The storage medium is located at
The step of memory 602, processor 601 reads the information in memory 602, completes the above method in conjunction with its hardware.
It is understood that the embodiment of the present invention description these embodiments can with hardware, software, firmware, middleware,
Microcode or combinations thereof is realized.For hardware realization, processing unit be may be implemented in one or more specific integrated circuits
(Application Specific Integrated Circuits, ASIC), digital signal processor (Digital Signal
Processing, DSP), digital signal processing appts (DSP Device, DSPD), programmable logic device (Programmable
Logic Device, PLD), field programmable gate array (Field-Programmable Gate Array, FPGA), general place
It manages in device, controller, microcontroller, microprocessor, other electronic units for executing herein described function or combinations thereof.
For software implementations, can by execute the embodiment of the present invention described in function module (such as process, function etc.) come
Realize technology described in the embodiment of the present invention.Software code is storable in memory and is executed by processor.Memory can
With portion realizes in the processor or outside the processor.
Optionally, processor 601 is also used to: acquiring preview image process in first camera and second camera
In, receive photographing instruction;It controls first camera and shoots an original image;The original image is divided into N*N
Image-region;The second camera is controlled by rotation, shoots N2Zhang little Qu area image, every cell area image difference
It is corresponded with the image in each region in the N*N image-region;For each figure in the N*N image-region
As region, it is based on the N2Zhang little Qu area image generates at least one enlarged drawing;For each image-region, described in foundation
The first incidence relation between image-region and at least one described enlarged drawing;Store at least one described enlarged drawing and institute
State the first incidence relation.
As another embodiment, processor 601 is also used to: according to preset interval W, it is discrete to G between N to extract 1
Value D1、D2……DG;By the G discrete value D1、D2……DGIt is determined as amplification factor set, in the amplification factor set
The corresponding amplification factor of each discrete value;For each image-region in the N*N image-region, it is based on the amplification
The each amplification factor and the N of multiple set2Zhang little Qu area image generates at least one enlarged drawing;Wherein, G be greater than
0 natural number, each discrete value are greater than 1 and are less than or equal to N.
Optionally, as another embodiment, processor 601 is also used to: for each of described N*N image-region
Image-region obtains the corresponding image in the original image of each image-region, and is labeled as the first image;For
Value is equal to each amplification factor of N in the amplification factor set, by the N2In Zhang little Qu area image with first figure
As corresponding cell area image is determined as the enlarged drawing, and it is labeled as the second image;For in the amplification factor set
Value is less than each amplification factor of N, and the first image is carried out image with second image and is synthesized, composite diagram is generated
Picture, and the composograph is determined as the enlarged drawing.
Optionally, as another embodiment, processor 601 is also used to: small for value in the amplification factor set
In each amplification factor of N, the first image is subjected to interpolation;F after interpolation in the first image are obtained to insert
It is worth pixel;Second image is sampled, F sampling pixel points are obtained;The F interpolating pixel point is replaced with into institute
F sampling pixel points are stated, composograph is generated;The composograph is determined as the enlarged drawing;Wherein, F=(pic/
(N2))×M2, wherein pic is the resolution ratio of the first image, and M is the amplification factor.
Optionally, as another embodiment, processor 601 is also used to: the object magnification and N are compared
It is right;If the object magnification is less than N, at least one associated described composograph of target magnification region, extract
Amplification factor is the composograph of the object magnification as the target enlarged drawing;If described object magnification etc.
In N, then the corresponding cell area image of the target magnification region is determined as the target enlarged drawing;Show that the target is put
Big image.
Optionally, as another embodiment, processor 601 is also used to:, will if the object magnification is greater than N
The corresponding cell area image of the target magnification region is determined as the target enlarged drawing;Determine the interpolation of target enlarged drawing
Amplification factor is S;According to the interpolation amplification multiple S, the target enlarged drawing is subjected to interpolation amplification;Interpolation is passed through in display
The amplified target enlarged drawing;Wherein, S=T-N, S are the interpolation amplification multiple, and T is the object magnification.
Optionally, as another embodiment, processor 601 is also used to: in first camera and second camera
During acquiring preview image, photographing instruction is received;It controls first camera and shoots an original image;It will be described original
Image is divided into N*N image-region;The second camera is controlled by rotation, shoots N2Zhang little Qu area image, every institute
Cell area image is stated to correspond with the image in each region in the N*N image-region respectively;Described N*N is schemed
As each image-region in region, the second incidence relation between described image region and the cell area image is established;It deposits
Store up the N2Zhang little Qu area image and second incidence relation;Wherein, the enlarged drawing is the cell area image.
Optionally, as another embodiment, processor 601 is also used to: the object magnification and N are compared
It is right;If the object magnification is less than N, the corresponding cell area image of the target magnification region is determined as the target
Enlarged drawing;The corresponding image of the target magnification region is carried out image with the target enlarged drawing to synthesize;Display is passed through
Image after image synthesis.
Optionally, as another embodiment, processor 601 is also used to:, will if the object magnification is equal to N
The corresponding cell area image of the target magnification region is determined as the target enlarged drawing;Show the target enlarged drawing.
Optionally, as another embodiment, processor 601 is also used to:, will if the object magnification is greater than N
The corresponding cell area image of the target magnification region is determined as the target enlarged drawing;Determine the interpolation of target enlarged drawing
Amplification factor is P;According to the interpolation amplification multiple P, the target enlarged drawing is subjected to interpolation amplification;Interpolation is passed through in display
The amplified target enlarged drawing;Wherein, P=Q-N, P are the interpolation amplification multiple, and Q is the object magnification.
The mobile terminal can be realized each process that terminal is realized in previous embodiment, to avoid repeating, here no longer
It repeats.
At least one amplification is being stored in advance by obtaining target image in mobile terminal disclosed in the embodiment of the present invention
In image, it is based on object magnification, extraction and the associated target enlarged drawing of target magnification region, the target is based ultimately upon and puts
Big image amplifies display to target magnification region;The process amplifies the associated target in each region in target image
Image carries out pre-acquiring and storage, in order to the target enlarged drawing obtained based on this, to the enlarged drawing of target magnification region
The promotion for carrying out pixel and display effect, when the amplification of subsequent user is checked, directly from pre-stored enlarged drawing, matching
Target enlarged drawing corresponding with target magnification region and object magnification is extracted, checks behaviour to respond the amplification of user
Make, realize that the amplification of image show, promote the fluency of amplification display process, promotes the clarity that amplification shows image, make pair
Certain a part, which amplifies, in image obtains preferably amplifying display effect when checking.
7th embodiment
As shown in figure 8, the mobile terminal 700 can be mobile phone, tablet computer, personal digital assistant (Personal
Digital Assistant, PDA) or vehicle-mounted computer etc..
Mobile terminal 700 in Fig. 8 includes radio frequency (Radio Frequency, RF) circuit 710, memory 720, input
Unit 730, display unit 740, processor 760, voicefrequency circuit 770, WiFi (Wireless Fidelity) module 780 and electricity
Source 790 and camera, the camera include the second camera 752 of the first camera 751 and rotatable predetermined angle.
Wherein, input unit 730 can be used for receiving the number or character information of user's input, and generation and mobile terminal
The related signal input of 700 user setting and function control.Specifically, in the embodiment of the present invention, which can
To include touch panel 731.Touch panel 731, also referred to as touch screen collect the touch operation of user on it or nearby
(for example user uses the operations of any suitable object or attachment on touch panel 731 such as finger, stylus), and according to preparatory
The formula of setting drives corresponding attachment device.Optionally, touch panel 731 may include touch detecting apparatus and touch controller
Two parts.Wherein, the touch orientation of touch detecting apparatus detection user, and touch operation bring signal is detected, by signal
Send touch controller to;Touch controller receives touch information from touch detecting apparatus, and is converted into contact coordinate,
The processor 760 is given again, and can be received order that processor 760 is sent and be executed.Furthermore, it is possible to using resistance-type,
The multiple types such as condenser type, infrared ray and surface acoustic wave realize touch panel 731.In addition to touch panel 731, input unit
730 can also include other input equipments 732, other input equipments 732 can include but is not limited to physical keyboard, function key
One of (such as volume control button, switch key etc.), trace ball, mouse, operating stick etc. are a variety of.
Wherein, display unit 740 can be used for showing information input by user or be supplied to the information and movement of user
The various menu interfaces of terminal 700.Display unit 740 may include display panel 741, optionally, can use LCD or organic hair
The forms such as optical diode (Organic Light-Emitting Diode, OLED) configure display panel 741.
It should be noted that touch panel 731 can cover display panel 741, touch display screen is formed, when the touch display screen is examined
After measuring touch operation on it or nearby, processor 760 is sent to determine the type of touch event, is followed by subsequent processing device
760 provide corresponding visual output according to the type of touch event in touch display screen.
Touch display screen includes Application Program Interface viewing area and common control viewing area.The Application Program Interface viewing area
And arrangement mode of the common control viewing area does not limit, can be arranged above and below, left-right situs etc. can distinguish two it is aobvious
Show the arrangement mode in area.The Application Program Interface viewing area is displayed for the interface of application program.Each interface can be with
The interface elements such as the icon comprising at least one application program and/or widget desktop control.The Application Program Interface viewing area
Or the empty interface not comprising any content.This commonly uses control viewing area for showing the higher control of utilization rate, for example,
Application icons such as button, interface number, scroll bar, phone directory icon etc. are set.
Wherein processor 760 is the control centre of mobile terminal 700, utilizes various interfaces and connection whole mobile phone
Various pieces, by running or executing the software program and/or module that are stored in first memory 721, and calling storage
Data in second memory 722 execute the various functions and processing data of mobile terminal 700, thus to mobile terminal 700
Carry out integral monitoring.Optionally, processor 760 may include one or more processing units.
In embodiments of the present invention, by call store the first memory 721 in software program and/or module and/
Or the data in the second memory 722, processor 760 is for obtaining target image;Receive the mesh of mobile terminal user's input
Mark magnification region and object magnification;It is pre-stored it is associated with each region of the target image at least one
In enlarged drawing, it is based on the object magnification, is extracted and the associated target enlarged drawing of the target magnification region;It is based on
The target enlarged drawing amplifies display to the target magnification region, wherein and first camera is 1 times of focal length,
The second camera is N times of focal length, N >=4.
Optionally, as another embodiment, processor 760 is also used to acquire in first camera and second camera
During preview image, photographing instruction is received;It controls first camera and shoots an original image;By the original image
It is divided into N*N image-region;The second camera is controlled by rotation, shoots N2Zhang little Qu area image is every described small
Area image is corresponded with the image in each region in the N*N image-region respectively;For the N*N image district
Each image-region in domain is based on the N2Zhang little Qu area image generates at least one enlarged drawing;For each image district
The first incidence relation between described image region and at least one described enlarged drawing is established in domain;Storage it is described at least one
Enlarged drawing and first incidence relation.
As another embodiment, processor 760 is also used to extract 1 to G discrete value between N according to preset interval W
D1、D2……DG;By the G discrete value D1、D2……DGIt is determined as amplification factor set, it is every in the amplification factor set
The corresponding amplification factor of a discrete value;For each image-region in the N*N image-region, it is based on the times magnification
The each amplification factor and the N that manifold is closed2Zhang little Qu area image generates at least one enlarged drawing;Wherein, G is greater than 0
Natural number, each discrete value be greater than 1 and be less than or equal to N.
Optionally, as another embodiment, processor 760 is also used to for each figure in the N*N image-region
As region, the corresponding image in the original image of each image-region is obtained, and is labeled as the first image;For institute
Each amplification factor that value in amplification factor set is equal to N is stated, by the N2In Zhang little Qu area image with the first image
Corresponding cell area image is determined as the enlarged drawing, and is labeled as the second image;For being taken in the amplification factor set
Value is less than each amplification factor of N, and the first image is carried out image with second image and is synthesized, composograph is generated,
And the composograph is determined as the enlarged drawing.
Optionally, as another embodiment, processor 760 is also used to be less than N for value in the amplification factor set
Each amplification factor, the first image is subjected to interpolation;Obtain the F interpolation picture after interpolation in the first image
Vegetarian refreshments;Second image is sampled, F sampling pixel points are obtained;The F interpolating pixel point is replaced with into the F
A sampling pixel points generate composograph;The composograph is determined as the enlarged drawing;Wherein, F=(pic/ (N2))
×M2, wherein pic is the resolution ratio of the first image, and M is the amplification factor.
Optionally, as another embodiment, processor 760 is also used to for the object magnification being compared with N;If
The object magnification is less than N, then at least one associated described composograph of target magnification region, extracts times magnification
Number is the composograph of the object magnification as the target enlarged drawing;If the object magnification is equal to N,
The corresponding cell area image of the target magnification region is determined as the target enlarged drawing;Show the target enlarged drawing
Picture.
Optionally, as another embodiment, if processor 760 is also used to the object magnification greater than N, by institute
It states the corresponding cell area image of target magnification region and is determined as the target enlarged drawing;Determine that the interpolation of target enlarged drawing is put
Big multiple is S;According to the interpolation amplification multiple S, the target enlarged drawing is subjected to interpolation amplification;Display is put by interpolation
The target enlarged drawing after big;Wherein, S=T-N, S are the interpolation amplification multiple, and T is the object magnification.
Optionally, as another embodiment, processor 760 is also used to adopt in first camera and second camera
During collecting preview image, photographing instruction is received;It controls first camera and shoots an original image;By the original graph
As being divided into N*N image-region;The second camera is controlled by rotation, shoots N2Zhang little Qu area image, described in every
Cell area image is corresponded with the image in each region in the N*N image-region respectively;For the N*N image
Each image-region in region establishes the second incidence relation between described image region and the cell area image;Storage
The N2Zhang little Qu area image and second incidence relation;Wherein, the enlarged drawing is the cell area image.
Optionally, as another embodiment, processor 760 is also used to for the object magnification being compared with N;
If the object magnification is less than N, the corresponding cell area image of the target magnification region is determined as the target and is put
Big image;The corresponding image of the target magnification region is carried out image with the target enlarged drawing to synthesize;Display is by figure
As the image after synthesis.
Optionally, as another embodiment, if processor 760 is also used to the object magnification equal to N, by institute
It states the corresponding cell area image of target magnification region and is determined as the target enlarged drawing;Show the target enlarged drawing.
Optionally, as another embodiment, if processor 760 is also used to the object magnification greater than N, by institute
It states the corresponding cell area image of target magnification region and is determined as the target enlarged drawing;Determine that the interpolation of target enlarged drawing is put
Big multiple is P;According to the interpolation amplification multiple P, the target enlarged drawing is subjected to interpolation amplification;Display is put by interpolation
The target enlarged drawing after big;Wherein, P=Q-N, P are the interpolation amplification multiple, and Q is the object magnification.
The mobile terminal can be realized each process that terminal is realized in previous embodiment, to avoid repeating, here no longer
It repeats.
At least one amplification is being stored in advance by obtaining target image in mobile terminal disclosed in the embodiment of the present invention
In image, it is based on object magnification, extraction and the associated target enlarged drawing of target magnification region, the target is based ultimately upon and puts
Big image amplifies display to target magnification region;The process amplifies the associated target in each region in target image
Image carries out pre-acquiring and storage, in order to the target enlarged drawing obtained based on this, to the enlarged drawing of target magnification region
The promotion for carrying out pixel and display effect, when the amplification of subsequent user is checked, directly from pre-stored enlarged drawing, matching
Target enlarged drawing corresponding with target magnification region and object magnification is extracted, checks behaviour to respond the amplification of user
Make, realize that the amplification of image show, promote the fluency of amplification display process, promotes the clarity that amplification shows image, make pair
Certain a part, which amplifies, in image obtains preferably amplifying display effect when checking.
Those of ordinary skill in the art may be aware that the embodiment in conjunction with disclosed in the embodiment of the present invention describe it is each
Exemplary unit and algorithm steps can be realized with the combination of electronic hardware or computer software and electronic hardware.These
Function is implemented in hardware or software actually, the specific application and design constraint depending on technical solution.Profession
Technical staff can use different methods to achieve the described function each specific application, but this realization is not answered
Think beyond the scope of this invention.
It is apparent to those skilled in the art that for convenience and simplicity of description, the system of foregoing description,
The specific work process of device and unit, can refer to corresponding processes in the foregoing method embodiment, and details are not described herein.
In embodiment provided herein, it should be understood that disclosed device and method can pass through others
Mode is realized.For example, the apparatus embodiments described above are merely exemplary, for example, the division of the unit, only
A kind of logical function partition, there may be another division manner in actual implementation, for example, multiple units or components can combine or
Person is desirably integrated into another system, or some features can be ignored or not executed.Another point, shown or discussed is mutual
Between coupling, direct-coupling or communication connection can be through some interfaces, the INDIRECT COUPLING or communication link of device or unit
It connects, can be electrical property, mechanical or other forms.
The unit as illustrated by the separation member may or may not be physically separated, aobvious as unit
The component shown may or may not be physical unit, it can and it is in one place, or may be distributed over multiple
In network unit.It can select some or all of unit therein according to the actual needs to realize the mesh of this embodiment scheme
's.
It, can also be in addition, the functional units in various embodiments of the present invention may be integrated into one processing unit
It is that each unit physically exists alone, can also be integrated in one unit with two or more units.
It, can be with if the function is realized in the form of SFU software functional unit and when sold or used as an independent product
It is stored in a computer readable storage medium.Based on this understanding, technical solution of the present invention is substantially in other words
The part of the part that contributes to existing technology or the technical solution can be embodied in the form of software products, the meter
Calculation machine software product is stored in a storage medium, including some instructions are used so that a computer equipment (can be a
People's computer, server or network equipment etc.) it performs all or part of the steps of the method described in the various embodiments of the present invention.
And storage medium above-mentioned includes: that USB flash disk, mobile hard disk, ROM, RAM, magnetic or disk etc. are various can store program code
Medium.
The above description is merely a specific embodiment, but scope of protection of the present invention is not limited thereto, any
Those familiar with the art in the technical scope disclosed by the present invention, can easily think of the change or the replacement, and should all contain
Lid is within protection scope of the present invention.Therefore, protection scope of the present invention should be subject to the protection scope in claims.
All the embodiments in this specification are described in a progressive manner, the highlights of each of the examples are with
The difference of other embodiments, the same or similar parts between the embodiments can be referred to each other.
Although the preferred embodiment of the embodiment of the present invention has been described, once a person skilled in the art knows bases
This creative concept, then additional changes and modifications can be made to these embodiments.So the following claims are intended to be interpreted as
Including preferred embodiment and fall into all change and modification of range of embodiment of the invention.
Finally, it is to be noted that, in embodiments of the present invention, relational terms such as first and second and the like are only
Only it is used to distinguish one entity or operation from another entity or operation, without necessarily requiring or implying these realities
There are any actual relationship or orders between body or operation.Moreover, the terms "include", "comprise" or its it is any its
He is intended to non-exclusive inclusion by variant, so that process, method, article or terminal including a series of elements are set
Standby includes not only those elements, but also including other elements that are not explicitly listed, or further includes for this process, side
Method, article or the intrinsic element of terminal device.In the absence of more restrictions, being limited by sentence "including a ..."
Fixed element, it is not excluded that including that there is also other identical in the process, method of the element, article or terminal device
Element.
Above-described is the preferred embodiment of the present invention, it should be pointed out that the ordinary person of the art is come
It says, can also make several improvements and retouch under the premise of not departing from principle of the present invention, these improvements and modifications also exist
In protection scope of the present invention.