A kind of camera shooting display methods and image display device
Technical field
The present invention relates to camera shooting display field more particularly to a kind of camera shooting display methods and image display devices.
Background technique
Common camera can only select a focus point to be shot when taking pictures in viewfinder range, therefore for scape
For scene more than profound level, the object that taking the photo come can only guarantee in some focus point is clearly and rest part
Just some are fuzzy relatively.In this way, in user's previewing photos, the photo shown on camera be only one focus point region very
Clearly, the photo of rest part Relative Fuzzy.If user wants the clear image in another region in the preview photo, use
Family can only repeatedly shoot to obtain the clear image in another region, in this way can be pretty troublesome, reduce the experience of user.
Summary of the invention
The embodiment of the present invention provides a kind of camera shooting display methods and image display device, can be by once shooting
Journey obtains and shows the clear image of multiple regions on photo, for selection by the user, improves user experience.
In order to achieve the above objectives, the embodiment of the present invention adopts the following technical scheme that
In a first aspect, disclosing a kind of method of camera shooting display, comprising:
The mobile n times of lens are controlled, are once shot after the completion of each movement, N images are obtained and the N is opened into images
Corresponding N group image data is stored in corresponding image file, wherein the lens move preset step-length every time, institute
N/mono- for the focal range that preset step-length is camera is stated, the N is the integer more than or equal to 1;
By the N group image data conversion in described image file at N number of bitmap file, and save N number of bitmap file;
Show the corresponding image of any bitmap file in N number of bitmap file;
The image switching command of user's input is received, described image switching command carries rectangular coordinates value, the rectangle
Coordinate value indicates a region on the image of display;
Compare the clarity that N number of bitmap file is worth corresponding region in the rectangular coordinates, obtains the rectangle and sit
The corresponding maximum bitmap file of region clarity of scale value;
Show the corresponding image of the maximum bitmap file of the clarity.
With reference to first aspect, in the first possible implementation, the mobile n times of the control lens, have been moved every time
It is once shot at rear, obtains N images, comprising:
Control lens motor drives the lens since the initial value of the focal range, the mobile preset step-length,
Mobile starting shutter automatic after the completion is shot every time, obtains N images.
With reference to first aspect, in the second possible implementation, described by the N corresponding N group images of image
Data are stored in corresponding image file, comprising:
Each Zhang Jinhang Joint Photographic Experts Group JPEG in the N images is encoded respectively, obtains the N figures
It is stored in corresponding image file as corresponding N group image data, and by the N group image data;
Each group of image data is recorded in the N group image data in described image file at the end of described image file
In offset.
With reference to first aspect, second of possible reality of the possible implementation of the first of first aspect or first aspect
Existing mode, in the third possible implementation, the N group image data by described image file is decoded into N number of position
Map file, and save N number of bitmap file, comprising:
The corresponding N group image data of N number of image is read in described image file at the end of described image file
Offset;
According to offset of the corresponding N group image data of the N number of image in described image file, read described N number of
The corresponding N group image data of image;
By the N group image data conversion at N number of bitmap file, and save N number of bitmap file.
With reference to first aspect, second of possible reality of the possible implementation of the first of first aspect or first aspect
Existing mode, in the fourth possible implementation, the corresponding figure of any bitmap file in display N number of bitmap file
Picture, comprising: first image of display.
The 4th kind of possible implementation with reference to first aspect, in a fifth possible implementation,
When storing the N corresponding N group image datas of image in image file, the method also includes,
Multifocal photo id is accorded with to the head of the corresponding image data of first image described in write-in described image file
In information;
Before the described image switching command for receiving user's input, the method also includes:
It is described to judge whether the head information of the corresponding image data of first image described in described image file carries
Multifocal photo id symbol.
The possible implementation of second with reference to first aspect, in a sixth possible implementation,
After obtaining N images and the N corresponding N group image datas of image be stored in image file, institute
State method further include:
According to first offset of the one group of image data of user's input in described image file, described first is obtained partially
The corresponding image data of shifting amount, so as to by described image data sharing to other equipment.
Second aspect discloses a kind of image display device, comprising:
Shooting unit is shot for controlling the mobile n times of lens, mobile every time once to be shot after the completion, obtains N
Open image wherein, the lens move preset step-length every time, and the preset step-length is N/mono- of the focal range of camera,
The N is the integer greater than 1;
Coding unit, the N images for obtaining to the shooting unit encode, and obtain the N images
Corresponding N group image data;
Storage unit, the N for the obtaining the coding unit corresponding N group image datas of image are stored in pair
In the image file answered;
Converting unit, the N group image data conversion in the described image file for storing the storage unit is at N number of
Bitmap file;
The storage unit is also used to, and saves N number of bitmap file that the converting unit obtains;
Display unit, any bitmap file is corresponding in N number of bitmap file for showing storage unit storage
Image;
Receiving unit, for receiving the image switching command of user's input, described image switching command carries rectangle seat
Scale value, the rectangular coordinates value indicates a region on the image of display;
Comparing unit, N number of bitmap file for storage unit storage is in the rectangular coordinates value pair
The clarity in the region answered obtains the corresponding maximum bitmap file of region clarity of the rectangular coordinates value;
The display unit is also used to, and shows that the maximum bitmap file of the clarity that the comparing unit obtains is corresponding
Image.
In conjunction with second aspect, in the first possible implementation, the shooting unit is specifically used for, and controls lens horse
Up to the lens are driven, the mobile preset step-length is automatic after the completion of movement every time since the initial value of the focal range
Starting shutter is shot, and N images are obtained.
In conjunction with second aspect, in the second possible implementation, the coding unit is specifically used for, respectively to described
Each Zhang Jinhang Joint Photographic Experts Group jpeg coding in N images, obtains the N corresponding N group picture numbers of image
According to;
The storage unit is also used to, and records each group picture in the N group image data at the end of described image file
As offset of the data in described image file.
In conjunction with the first possible implementation of second aspect, second aspect or second of possible reality of second aspect
Existing mode, in the third possible implementation, the converting unit is specifically used for, and reads at the end of described image file
Offset of the corresponding N group image data of N number of image in described image file;According to the corresponding N group of the N number of image
Offset of the image data in described image file reads the corresponding N group image data of N number of image;By the N group picture
As data conversion is at N number of bitmap file.
In conjunction with the first possible implementation of second aspect, second aspect or second of possible reality of second aspect
Existing mode, in the fourth possible implementation, the display unit is also used to, and shows first image.
The 4th kind of possible implementation in conjunction with second aspect further includes in a fifth possible implementation writing
Enter unit and judging unit,
Said write unit is specifically used for, and the described image that the coding unit obtains is written in multifocal photo id symbol
In the head information of the corresponding image data of first image described in file;
The judging unit is specifically used for, the receiving unit receive user input described image switching command it
Before, judge whether the head information of the corresponding image data of first image described in described image file carries the multifocal
Photo id symbol.
Second of possible implementation in conjunction with second aspect further includes in a sixth possible implementation figure
Picture data acquiring unit,
Described image data acquiring unit is specifically used for, in the N that the storage unit obtains the coding unit
After the corresponding N group image data of image is stored in image file, the one group of image data inputted according to user is described
The first offset in image file obtains the corresponding image data of first offset, to be total to described image data
It enjoys to other equipment.
Camera shooting display methods provided in an embodiment of the present invention and image display device, by the focal range N of common camera
Equal part simultaneously successively carries out n times shooting, obtains N images.The N images are subjected to coding and obtain image data and by the figure
As data are converted to N number of bitmap file, in this way when user clicks other regions of the image currently shown, so that it may pass through ratio
Compared with the maximum bitmap file of clarity obtained in user's click on area and show its corresponding image.With in the prior art can only
Display one only one clear area rest part Relative Fuzzy photo compare, camera shooting display methods provided by the invention and
Image display device, can the maximum image of display resolution according to the demand of user, improve user experience.
Detailed description of the invention
Fig. 1 is the camera shooting display methods flow diagram that the embodiment of the present invention 1 provides;
Fig. 2 is the camera shooting display methods flow diagram that the embodiment of the present invention 2 provides;
Fig. 3 is that the image data that the embodiment of the present invention 2 provides stores schematic diagram;
Fig. 4 is the structural block diagram for the image display device that the embodiment of the present invention 3 provides;
Fig. 5 is the structural block diagram for the image display device that the embodiment of the present invention 4 provides.
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 only a part of the embodiments of the present invention, instead of all the embodiments.It is based on
Embodiment in the present invention, it is obtained by those of ordinary skill in the art without making creative efforts every other
Embodiment shall fall within the protection scope of the present invention.
Embodiment 1:
The embodiment of the invention provides a kind of camera shooting display methods, as shown in Figure 1, the described method comprises the following steps:
101, the mobile n times of control lens, it is mobile every time once to be shot after the completion, obtain N images and by the N
The corresponding N group image data of image is stored in corresponding image file.
Wherein, the lens move preset step-length every time, the preset step-length be the focal range of camera N/
One, the N are the integer greater than 1.
The step of mobile n times of the control lens are shot, obtain N images specifically includes: image display device control
Lens motor processed drives the lens since the initial value of the focal range, and the mobile preset step-length has moved every time
It is shot at rear automatic starting shutter, obtains N images.
Successively N images can be encoded after the image display device obtains the N image, in this way
The N corresponding N group image datas of image are obtained with, wherein every image should all have one group of image data.Later, institute
It states image display device the N group image data is stored in corresponding image file.In addition, the image display device is also
Multifocal photo id can be accorded in write-in described image file in the head information of the corresponding image data of first image, and
The end of described image file records offset of the N group image data in described image file.
102, by the N group image data conversion in described image file at N number of bitmap file, and N number of bitmap is saved
File.
Here, the image display device is by the N group image data conversion in described image file at N number of bitmap file
Step depends on the preservation form of the N group image data described in step 101.According to above-mentioned preservation form, the camera shooting
Display device is when by the N group image data conversion in described image file at N number of bitmap file, first in described image file
End read offset of the N group image data in described image file, then in the corresponding positions of described image file
It sets place and reads the N corresponding N group image data of image, later the N group image data conversion is literary at N number of bitmap
Part, and N number of bitmap file is saved in memory.
103, the corresponding image of any bitmap file in N number of bitmap file is shown.
Under normal circumstances, the image display device can default first image shown in the N image.
104, the image switching command of user's input is received, described image switching command carries rectangular coordinates value.
Wherein, the rectangular coordinates value indicates a region on the image of display.In fact, display of the user in camera
As soon as clicking a region on screen, camera internal generates the image switching for the rectangular coordinates value that one carries user's click on area
Order, correspondingly, camera internal can receive described image switching command.
Before this, the image display device can first determine whether in the head information of the corresponding image data of picture of load
Whether multifocal photo id symbol is carried.If without described in carrying in the head information of the corresponding image data of the picture of the load
Multifocal photo id symbol then proves that the picture of the load is not captured out using image pickup method described in step 101
Come, only a corresponding image, directly displays this image;If in the head information of the corresponding image data of the picture of the load
The multifocal photo id symbol is carried, then proves that the picture of the load is to utilize image pickup method institute described in step 101
It shoots, and is corresponding with N images.
When other regions on the image currently shown when the user clicks, one will be automatically generated in camera internal and is taken
The switching command of rectangular coordinates value with user's click on area (i.e. user needs region to be shown), in order to current display
Image switch over, be shown in the clearest image of user's click on area.
105, N number of bitmap file is worth the clarity in corresponding region in the rectangular coordinates, obtains the square
The corresponding maximum bitmap file of region clarity of shape coordinate value.
In fact, the image display device carrys out N number of bitmap file described in comparison in the rectangle using definition algorithm
The clarity in the corresponding region of coordinate value obtains the corresponding maximum bitmap file of region clarity of the rectangular coordinates value.It is existing
Have in technology, there are a variety of definition algorithms, comprising: the definition algorithm based on gray variance, the gradient based on gray scale it is clear
Clear degree algorithm and edge detection etc..It can be sat come N number of bitmap file described in comparison in the rectangle using one of algorithm
The clarity in the corresponding region of scale value, to obtain the maximum image of clarity that the rectangular coordinates are worth corresponding region.
It is exemplary, clarity is calculated using based on the definition algorithm of gray variance.For on each bitmap file
The rectangular coordinates are worth the clarity evaluation of estimate F that corresponding region calculates the regioni, wherein it is describedDescribed M, N are the height and width of a certain pixel, described f (x, y) pixel
The corresponding gray value of coordinate value (x, y) of point, the uiIt is currently the average gray value of the image.N number of bitmap text is having been calculated
The clarity evaluation of estimate F of partiWhen, just obtain N number of FiValue.Wherein, maximum FiIt is maximum to be worth corresponding bitmap file clarity.
In a step 101, by the focal range N equal part of camera lens, lens motor when the image display device is shot
Successively, the N being achieved in that images are all corresponding with different focus points, therefore institute for the shooting of N/mono- of every mobile focal range
It states clarity of N number of bitmap file in the same region to be different, the image display device described in this way is calculated using clarity
Method is to N number of bitmap file after the clarity that the rectangular coordinates are worth corresponding region is compared, so that it may obtain
One rectangular coordinates is worth the corresponding maximum bitmap file of region clarity.
106, the corresponding image of the maximum bitmap file of clarity is shown.
The corresponding image of the maximum bitmap file of the clarity is shown that user can by the image display device
To see the clear image of click on area, user experience is improved.
Camera shooting display methods provided in an embodiment of the present invention, image display device is by the focal range N etc. of common camera
Divide and successively carry out n times shooting, obtains N images.The N images are subjected to coding and obtain image data and by described image
Data are converted to N number of bitmap file, in this way when user clicks other regions of the image currently shown, the camera shooting display dress
The maximum bitmap file of clarity in user's click on area can be obtained by comparing and show its corresponding image by setting.With
The photo for being only able to display only one clear area rest part Relative Fuzzy in the prior art is compared, provided by the invention
Image display methods, can the maximum image of display resolution according to the demand of user, improve user experience.
Embodiment 2:
The embodiment of the invention provides a kind of camera shooting display methods, as shown in Fig. 2, the described method comprises the following steps:
201, the mobile n times of control lens are shot, and obtain N images.
In specific implementation, image display device control lens motor drives the lens from the starting of the focal range
Value starts, the mobile preset step-length, and mobile starting shutter automatic after the completion is shot every time, obtains N images.Due to every
Secondary shooting is all corresponding with a focal length, therefore the N obtained images are corresponding with different focus points, i.e. clearest on every image
Region be different.The preset step-length is N/mono- of the focal range of camera, and the N is the integer greater than 1.
202, the N corresponding N group image datas of image are stored in corresponding image file.
Saving image under normal conditions is that described image coding is compressed into image data, is then stored in corresponding figure again
As in file.The preservation format of image has JPEG, and (Joint Photographic Experts Group, joint image expert are small
Group), TIFF (Tagged Image File Format, label image file format) etc..It is exemplary, the image display device
JPEG coding is carried out to the N images, N group image data is obtained, wherein every image should all have one group of image data.It is described
The N group image data can be also stored in image file by image display device.
It, can also be described when the N group image data is saved in corresponding image file by the image display device
The end of image file records offset of the every group of image data in described image file, exemplary, can with 8 bytes come
Record the respective offset of N group image data.If the image display device is by corresponding that group of image of first image
Data are stored in the initial position of described image file, then can have recorded at the end of described image file except first image
Offset of the N-1 group image data in described image file except corresponding that group of image data;If the camera shooting display
Corresponding that group of image data of first image is not stored in the initial position of described image file by device, then in the figure
As the end of file just will record offset of the N group image data in described image file.Storage form can be such as Fig. 3 institute
Show, wherein started in the corresponding one group of data of every image of storage with SOI (Star Of Image, image start) label,
Terminated with EOI (End Of Image, image terminate) label.
Optionally, the image display device can also be in the head information of corresponding that group of image data of first image
Multifocal photo id symbol is written.If screening-mode is set in the present embodiment 201 by the image display device in production
The shooting step, then each scene of camera shooting is corresponding with N images.If the image display device was both
It supports screening-mode described in step 201, and supports the screening-mode of only one general focus point, then scheming at first
As corresponding that group of image data head information in write-in multifocal photo id symbol, in order to judge whether the photo is this
The captured multifocal photo come out of the method provided is provided.
In addition, the N corresponding N group image datas of image are stored in it in image file by the image display device
Afterwards, the corresponding image data of image that user chooses can also be obtained according to the demand of user, so that user can will be described
Image data shares to other equipment.I.e. user can scheme for selection one in the N images according to the hobby of oneself
Picture, the image display device obtains the corresponding offset of this image depending on the user's operation, and is existed according to this offset
Image data is obtained in image file, in this way, the image data of the image can be sent to other equipment by user.Alternatively,
Image file on the camera can be transferred on other display equipment, so as to user on the other display equipment root
Image is selected according to hobby, the corresponding image data of the image is obtained and sends it to kith and kin.It is exemplary, it can show on computers
Show the N images, when user chooses one in the N images according to hobby, when user clicks the image, in computer
Portion just obtains offset of the image in described image file, then accesses described image file according to the offset,
It is obtained with the corresponding image data of the image, so that it may give described image data forwarding to other kith and kin.
203, by the N group image data conversion in described image file at N number of bitmap file, and N number of bitmap is saved
File.
In the image display device by the N group image data conversion at N number of bitmap file when depend on step 202 in
The preserving type to the N group image data.If corresponding that group of image data of first image saves described image
The initial position of file, and the end of described image file has recorded in addition to corresponding that group of image data of first image
Offset of the N-1 group image data in described image file, then starting of the image display device in described image file
First group of image data is read in position, and reads remaining each leisure of N-1 group image data in the end position of described image file
Then offset in described image file reads phase in described image file according to the corresponding offset of each group image data
The image data answered.Later, the image display device is again by the N group image data conversion read at bitmap file.Alternatively,
If corresponding that group of image data of first image does not save the initial position of described image file, and described image file
End has recorded offset of the N group image data in described image file.In this way, the image display device is first described
The corresponding offset of N group image data is read at the end of image file, then according to respective offset described
The N group image data is read in image file, later again by the N group image data conversion at bitmap file, and is stored in
In memory.
204, the corresponding image of any bitmap file in N number of bitmap file is shown.
Under normal circumstances, first in N images of the image display device default display.If the camera shooting display dress
It sets and only supports screening-mode described in step 201, then can in the head information of corresponding that group of image data of first image
Not carry multifocal photo id symbol, at this moment the image display device shows any bitmap file pair in N number of bitmap file
The image answered is ok.If it is general that the image display device not only supports that screening-mode described in step 201 is also supported
Photographing mode, then just needing to carry multifocal photo id in the head information of corresponding that group of image data of first image
Symbol, at this moment, first in N images of the image display device default display.
205, judge whether the head information of the corresponding image data of corresponding first image of image file carries
The multifocal photo id symbol.
If carrying, step 206 is carried out, if not carrying, directly displays the corresponding image of image data.
206, the image switching command of user's input is received, described image switching command carries rectangular coordinates value.
Wherein, the rectangular coordinates value indicates a region on the image of display.In fact, when user is current in camera
As soon as clicking a region on the image of display, camera internal generates one and carries (the user's requirement display of user's click on area
Region) rectangular coordinates value image switching command, correspondingly, camera internal can receive described image switching life
It enables.In this manner it is possible to show image, according to the demand of user to improve user experience.
Here, the corresponding focus point of the image that the image display device is currently shown, that is, it is very clear for having a region
Clear.When other regions of the image currently shown when the user clicks, one will be automatically generated inside the image display device
A image switching command, and the rectangular coordinates value that user requires the region of display is carried, so as to the image display device root
Image is switched over according to the demand of user.
207, N number of bitmap file is worth the clarity in corresponding region in the rectangular coordinates, obtains the square
The corresponding maximum bitmap file of region clarity of shape coordinate value.
Carry out N number of bitmap file described in comparison using definition algorithm and is worth the clear of corresponding region in the rectangular coordinates
Degree, to obtain the maximum image of clarity that the rectangular coordinates are worth corresponding region.
It is exemplary, clarity is calculated using based on the definition algorithm of gray variance.For on each bitmap file
The rectangular coordinates are worth the clarity evaluation of estimate that corresponding region calculates the region
It is currently the average gray value of the image.In the clarity evaluation of estimate F that N number of bitmap file has been calculatediWhen, just obtain N number of FiValue.
Wherein, maximum FiIt is maximum to be worth corresponding bitmap file clarity.
The same area as described in step 201, due to using different focal length to carry out n times shooting, on N images
Domain clarity be different.The image display device is existed by more all N number of bitmap files of definition algorithm
The rectangular coordinates are worth the clarity in corresponding region, it will be able to obtain and be worth the clarity in corresponding region in the rectangular coordinates
Maximum bitmap file.
208, the corresponding image of the maximum bitmap file of clarity is shown.
At this moment, the corresponding image of the maximum bitmap file of the clarity shown on the image display device is exactly to use
The maximum image of family click on area clarity.The image display device switches image according to user demand, improves user's body
It tests.In addition, user can also obtain any in the N image according to hobby.
Camera shooting display methods provided in an embodiment of the present invention by the focal range N equal part of common camera and successively carries out N
Secondary shooting obtains N images.The N images are subjected to coding acquisition image data and are converted to described image data N number of
Bitmap file, in this way when user clicks other regions of the image currently shown, so that it may by comparing acquisition in user's point
It hits the maximum bitmap file of clarity in region and shows its corresponding image.There was only one with being only able to display one in the prior art
The photo of a clear area rest part Relative Fuzzy is compared, camera shooting display methods provided by the invention, can be according to user's
The maximum image of demand display resolution, improves user experience.
Embodiment 3:
The embodiment of the invention provides a kind of image display devices, for executing method described in Fig. 1 embodiment of the method,
As shown in figure 4, the image display device includes: shooting unit 401, coding unit 402, storage unit 403, converting unit
404, display unit 405, receiving unit 406 and comparing unit 407.
Shooting unit 401, it is mobile every time once to be shot after the completion for controlling the mobile n times of lens, obtain N figures
As wherein, the lens move preset step-length, N/mono- of the preset step-length for the focal range of camera, the N every time
For the integer greater than 1;Coding unit 402, the N images for obtaining to the shooting unit 401 are encoded, are obtained
The N corresponding N group image datas of image;Storage unit 403, the N figures for obtaining the coding unit 402
As corresponding N group image data is stored in corresponding image file, wherein every image should all have one group of image data;Conversion
Unit 404, the N group image data conversion in the described image file for storing the storage unit 403 is at N number of bitmap text
Part;The storage unit 403 is also used to, and saves N number of bitmap file that the converting unit 404 obtains;Display unit
405, for showing the corresponding image of any bitmap file in N number of bitmap file that the storage unit 403 stores;It receives
Unit 406, for receiving the image switching command of user's input, described image switching command carries rectangular coordinates value, described
Rectangular coordinates value indicates a region on the image of display;Comparing unit 407, for storage unit storage 403
N number of bitmap file be worth the clarity in corresponding region in the rectangular coordinates, it is corresponding to obtain the rectangular coordinates value
The maximum bitmap file of region clarity;The display unit 405 is also used to, and shows that the comparing unit 407 obtains described
The corresponding image of the maximum bitmap file of clarity.
The shooting unit 401 is specifically used for, and control lens motor drives the lens from the starting of the focal range
Value starts, the mobile preset step-length, and mobile starting shutter automatic after the completion is shot every time, obtains N images.
The coding unit 402 is specifically used for, small to each Zhang Jinhang joint image expert in the N images respectively
Group jpeg coding, obtains the N corresponding N group image datas of image.The storage unit 403 is also used to, in described image
The end of file records offset of each group of image data in described image file in the N group image data.
The converting unit 404 is specifically used for, and reads the corresponding image of N number of image at the end of described image file
Offset of the data in described image file;According to the corresponding N group image data of the N number of image in described image file
Offset, read the corresponding N group image data of the N number of image;By the N group image data conversion at N number of bitmap file.
The display unit 405 is specifically used for, and shows first image in described image file.
The image display device further includes writing unit and judging unit, and said write unit is specifically used for, will be multifocal
The head of the corresponding image data of first image in the described image file that the coding unit obtains is written in point photo id symbol
In information.The judging unit is specifically used for, and receives the described image switching command of user's input in the receiving unit 406
Before, it is described multifocal to judge whether the head information of the corresponding image data of corresponding first image of image file carries
Point photo id symbol.
The image display device further includes image data obtaining unit, and described image data acquiring unit is specifically used for,
The N corresponding N group image datas of image that the coding unit 402 obtains are stored in figure in the storage unit 403
After in file, according to first offset of the one group of image data of user's input in described image file, described in acquisition
The corresponding image data of first offset, so as to by described image data sharing to other equipment.
Image display device provided in an embodiment of the present invention by the focal range N equal part of common camera and successively carries out N
Secondary shooting obtains N images.The N images are subjected to coding acquisition image data and are converted to described image data N number of
Bitmap file, in this way when user clicks other regions of the image currently shown, so that it may by comparing acquisition in user's point
It hits the maximum bitmap file of clarity in region and shows its corresponding image.There was only one with being only able to display one in the prior art
The photo of a clear area rest part Relative Fuzzy is compared, and image display device provided by the invention can be according to user's
The maximum image of demand display resolution, improves user experience.
Embodiment 4:
The embodiment of the invention provides a kind of image display devices, in hardware realization, receiving unit described in Fig. 4,
Coding unit, storage unit, converting unit, comparing unit, writing unit, judging unit and image data obtaining unit can be with
Example, in hardware or software form are embedded in the processor of the image display device.The processor can be central processing unit
It (CPu), can also be with single-chip microcontroller.The image display device also device for shooting and display.Wherein, the receiving unit can be with figure
Display unit shown in 4 collectively constitutes touch screen displays, is also possible to button external on the image display device.
As shown in figure 5, the image display device includes: what memory 501, processor 502 and processor 502 connected
Device for shooting 503 and display 504.Wherein, batch processing code is stored in memory 502, and processor 502 is for calling storage
The program code stored in device 501, for performing the following operations:
Device for shooting 503, it is mobile every time once to be shot after the completion for controlling the mobile n times of lens, obtain N images
Wherein, the lens move preset step-length every time, and the preset step-length is N/mono- of the focal range of camera, and the N is
Integer greater than 1.
The processor 502 encodes for the N images to acquisition, obtains the N corresponding N of image
Group image data;The processor 502, it is corresponding for the N obtained the corresponding N group image data of image to be stored in
In image file;The processor 502, the N group image data conversion in the described image file for that will store is at N number of bitmap
File;The processor 502, for saving the N number of bitmap file obtained.
The display 504, for showing the corresponding image of any bitmap file in N number of bitmap file.
The processor 502 is also used to, and receives the image switching command of user's input, and described image switching command carries
Rectangular coordinates value, the rectangular coordinates value indicate a region on the image of display;The processor 502 is also used to, and is compared
N number of bitmap file is worth the clarity in corresponding region in the rectangular coordinates, obtains the corresponding area of the rectangular coordinates value
The maximum bitmap file of domain clarity.
The display 504 is also used to, and shows the corresponding image of the maximum bitmap file of the clarity of acquisition.
The processor 502 is specifically used for, and control lens motor drives the lens from the initial value of the focal range
Start, the mobile preset step-length, mobile starting shutter automatic after the completion is shot every time, obtains N images.
The processor 502 is also used to, respectively to each Zhang Jinhang Joint Photographic Experts Group in the N images
Jpeg coding obtains the N corresponding N group image datas of image;The N group image is recorded at the end of described image file
Offset of each group of image data in described image file in data.
The processor 502 is specifically used for, and reads the corresponding picture number of N number of image at the end of described image file
According to the offset in described image file;According to the corresponding N group image data of the N number of image in described image file
Offset reads the corresponding N group image data of N number of image;By the N group image data conversion at N number of bitmap file.
The display 504 is specifically used for, and shows first image in described image file.
The processor 502 is also used to, and multifocal photo id is accorded with first image pair in write-in described image file
In the head information for the image data answered;Before the described image switching command for receiving user's input, judge that image file is corresponding
The head information of the corresponding image data of first image whether carry multifocal photo id symbol.
The processor 502 is also used to, and is stored in image file by the N corresponding N group image datas of image
Later, the first offset according to one group of image data of user's input in described image file obtains first offset
Measure corresponding image data, so as to by described image data sharing to other equipment.
Image display device provided in an embodiment of the present invention by the focal range N equal part of common camera and successively carries out N
Secondary shooting obtains N images.The N images are subjected to coding acquisition image data and are converted to described image data N number of
Bitmap file, in this way when user clicks other regions of the image currently shown, so that it may by comparing acquisition in user's point
It hits the maximum bitmap file of clarity in region and shows its corresponding image.There was only one with being only able to display one in the prior art
The photo of a clear area rest part Relative Fuzzy is compared, and image display device provided by the invention can be according to user's
The maximum image of demand display resolution, improves user experience.
Those of ordinary skill in the art will appreciate that: realize that all or part of the steps of above method embodiment can pass through
The relevant hardware of program instruction is completed, and program above-mentioned can store in computer-readable storage medium, which exists
When execution, step including the steps of the foregoing method embodiments is executed;And storage medium above-mentioned includes: ROM, RAM, magnetic or disk
Etc. the various media that can store program code.
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, the protection scope of the present invention shall be subject to the protection scope of the claims.