CN104954687A - Image generation method and device - Google Patents
Image generation method and device Download PDFInfo
- Publication number
- CN104954687A CN104954687A CN201510366752.4A CN201510366752A CN104954687A CN 104954687 A CN104954687 A CN 104954687A CN 201510366752 A CN201510366752 A CN 201510366752A CN 104954687 A CN104954687 A CN 104954687A
- Authority
- CN
- China
- Prior art keywords
- image
- local
- images
- instruction
- areas
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Landscapes
- Studio Devices (AREA)
- Image Processing (AREA)
Abstract
The invention discloses an image generation method and device. Photometry and image acquisition are performed on N areas of an object respectively, N initial images are obtained, then acutance comparison is performed on local images of M local areas of each of the obtained N initial images, the local image with the highest acutance in the local images of each initial image is selected as a target local image of the local images, the target local images are synthesized into an exhibition image, so that images with the highest acutance can be obtained from all the local areas of the images, and the problem of overexposure or underexposure of partial areas of the images is solved.
Description
Technical Field
The present invention relates to the field of image imaging, and in particular, to an image generation method and apparatus.
Background
At present, when a user uses a terminal to take a picture, focusing and photometry are generally performed by clicking a view finding image of a screen, and finally a focus and a photometry point are overlapped, so that a judgment error of photometry can occur in some scenes in the shooting mode, for example, when the user shoots a building with a high height, the sky is expected to be used as a background, if the user clicks the building to perform focusing and photometry, overexposure can occur in the sky, details such as clouds and the like in the sky cannot be recorded at all, and if the user clicks the sky to perform focusing and photometry, underexposure can occur in the building, so that the building is dark; both of the above two situations cannot satisfy the user's needs and cannot obtain an image with the best effect.
Disclosure of Invention
The invention provides an image generation method and device, which are used for obtaining an image with the highest sharpness in each area of the image and avoiding the problems of overexposure or underexposure in partial areas of the image.
In one aspect, the present invention provides an image generating method, including:
receiving an instruction for generating an object image;
performing photometry on N areas of the object according to the instruction to obtain N photometric values, wherein N is a positive integer greater than 1;
respectively carrying out image acquisition on the object by the N photometric values to obtain N initial images;
dividing the N initial images into M local areas respectively, wherein M is a positive integer greater than 1;
performing sharpness comparison on local images displayed by local areas i in the M local areas respectively corresponding to the N initial images, and selecting a local image with the highest sharpness in the local images displayed by the local areas i as a target local image of the local area i, wherein i is a positive integer less than or equal to M;
and synthesizing the target local images into a display image.
Preferably, the image capturing the object with the N photometric values respectively, and obtaining N initial images includes:
receiving a focusing instruction of a user, and acquiring a first focal length according to the focusing instruction of the user;
respectively carrying out image acquisition on the object according to the N photometric values and the first focal length to obtain N initial images;
or,
carrying out automatic focusing according to the instruction for generating the object image to obtain a second focal length;
and respectively carrying out image acquisition on the object by the N photometric values and the second focal length to obtain N initial images.
Preferably, the value of N is determined according to a preset sharpness level, the first focal length, or the second focal length.
Preferably, the N regions of the object are regular N regions or irregular N regions.
Preferably, the performing photometry on N regions of the object according to the instruction respectively, and obtaining N photometric values includes:
and respectively performing spot photometry on the N areas of the object according to the instruction to obtain N photometric values.
In another aspect, the present invention provides an image generating apparatus, including:
a first receiving unit for receiving an instruction to generate an object image;
a light measuring unit, configured to perform light measurement on N regions of the object according to the instruction, respectively, to obtain N light measurement values, where N is a positive integer greater than 1;
the acquisition unit is used for acquiring images of the object by the N photometric values respectively to obtain N initial images;
the dividing unit is used for dividing the N initial images into M local areas respectively, wherein M is a positive integer larger than 1;
a selecting unit, configured to perform sharpness comparison on local images displayed in a local area i of the M local areas corresponding to the N initial images, respectively, and select a local image with the highest sharpness in the N local images corresponding to the local area i as a target local image of the local area i, where i is a positive integer less than or equal to M;
and the synthesizing unit is used for synthesizing the target local images into the display images.
Preferably, the apparatus further comprises:
the second receiving unit is used for receiving a focusing instruction of a user and acquiring a first focal length according to the focusing instruction of the user; or,
the third receiving unit is used for carrying out automatic focusing according to the instruction for generating the object image and acquiring a second focal length;
the acquisition unit is specifically configured to:
respectively carrying out image acquisition on the object according to the N photometric values and the first focal length to obtain N initial images; or,
and respectively carrying out image acquisition on the object by the N photometric values and the second focal length to obtain N initial images.
Preferably, the value of N is determined according to a preset sharpness level, the first focal length, or the second focal length.
Preferably, the N regions of the object are regular N regions or irregular N regions.
Preferably, the light measuring unit is specifically configured to:
and respectively performing spot photometry on N areas of the object according to the instruction to obtain N photometric values, wherein N is a positive integer greater than 1.
Therefore, according to the image generation method and the image generation device provided by the invention, N initial images are obtained by respectively performing photometry and image acquisition on N areas of an object, then the sharpness comparison is performed on the local images of M local areas of the N initial images, the local image with the highest sharpness in each local image is selected as the target local image of the local area, and the target local area images are synthesized into the display image, so that the image with the highest sharpness in each local area of the image can be obtained, and the problem of overexposure or underexposure of the image part area is avoided.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a schematic flowchart of an image generation method according to an embodiment of the present invention;
FIG. 2 is a schematic flow chart of another image generation method according to an embodiment of the present invention;
FIG. 3 is a schematic flow chart of another image generation method according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of an image generating apparatus according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of another image generating apparatus according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of another image generating apparatus according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The embodiment of the invention provides an image generation method, which comprises the following steps:
receiving an instruction for generating an object image;
performing photometry on N areas of the object according to the instruction to obtain N photometric values, wherein N is a positive integer greater than 1;
respectively carrying out image acquisition on the object by the N photometric values to obtain N initial images;
dividing the N initial images into M local areas respectively, wherein M is a positive integer greater than 1;
performing sharpness comparison on local images displayed by local areas i in the M local areas respectively corresponding to the N initial images, and selecting a local image with the highest sharpness in the local images displayed by the local areas i as a target local image of the local area i, wherein i is a positive integer less than or equal to M;
and synthesizing the target local images into a display image.
The following describes the image generation method provided by the present invention in detail with reference to fig. 1 to 3:
referring to fig. 1, a schematic flow chart of an image generating method according to an embodiment of the present invention is shown, where the method includes the following steps:
step S101 receives an instruction to generate an object image.
In order to generate an object image, a command is issued to an image generating device, for example, a user presses a specific button, and the image generating device receives the command to generate the object image, and the image generating device may be a portable terminal with a camera device, such as a mobile phone, a tablet computer, and so on. The instruction to generate the object image instructs photometry of the object to generate the image.
And step S102, performing photometry on N areas of the object according to the instruction to obtain N photometric values, wherein N is a positive integer greater than 1.
In this embodiment, before performing photometry, the framed subject image is divided into N regions, and then photometry is performed on the N regions, respectively, so that N photometric values can be obtained. Because the brightness of the reflected light of each area in the framed object image may be different, the framed image is divided into N areas, and the N areas are respectively subjected to photometry, so that finer and more accurate photometric values of the N areas can be obtained. For example, the through image, i.e., the through object image described above, may be equally divided into 9 regions of 3 × 3, and light metering may be performed for each of the 9 regions.
And S103, respectively carrying out image acquisition on the object by the N photometric values to obtain N initial images.
N initial images, which may have different photometric values, may be obtained by performing image acquisition or photographing on the entire framed subject image N times with the obtained N photometric values, respectively.
In the embodiment of the invention, the object image can be collected once each photometric value is obtained, and the image can also be collected after N photometric values are obtained. For example, when the subject image to be viewed is divided into 9 regions, the 9 regions are subjected to image acquisition, and 9 initial images are obtained.
Step S104, dividing the N initial images into M local areas respectively, wherein M is a positive integer greater than 1.
And dividing each image in the N initial images into M local areas respectively to obtain N M local area images. For example, each initial image is divided into 12 local regions with the same area, shape and position.
Step S105, performing sharpness comparison on the local images displayed by the local area i of the M local areas corresponding to the N initial images, and selecting a local image with the highest sharpness in the local images displayed by the local area i as a target local image of the local area i, where i is a positive integer less than or equal to M.
Sharpness, also referred to as "sharpness", is an indicator that reflects the sharpness of the image plane and the sharpness of the image edges. If the sharpness is adjusted higher, the contrast of details on the image plane is also higher, and the image looks clearer. For example, in the case of high sharpness, not only the wrinkles and spots of the face on the screen are clearer, but also the swelling or sinking of the facial muscles can be lifelike. In another case, where the dark or black lines are in the vertical direction or the black-and-white image suddenly changes, in the case of higher sharpness, the edges of the lines or the joints of the black-and-white image suddenly change are sharper, and the whole picture is more clear.
And performing sharpness comparison on the local images displayed in each corresponding local area among the N initial images, and selecting the local image with the highest sharpness from the local images displayed in a certain local area as a target local image of the local area. In other words, sharpness comparison of the local images of the local regions 1 to M is performed in sequence, and M target local region images are obtained. The local image with the highest sharpness in the local images corresponding to the target local image, i.e. the local area, is the image of the local area taken with the most suitable photometric value.
For example, the sharpness of 12 local areas of each of 9 initial images is compared, that is, the sharpness of the corresponding local area of each of the 9 images is compared, the local area image with the highest sharpness is selected as the target local area image of the local area, and all the local areas are sequentially compared and selected.
And step S106, synthesizing the target local images into a display image.
After step S105, the M target local images of the M target local regions obtained are synthesized to generate a new image, i.e., a presentation image, which can be output, and the output image is an image with the most average overall photometry.
According to the image generation method provided by the embodiment of the invention, N initial images are obtained by respectively carrying out photometry and image acquisition on N areas of an object, then the sharpness comparison is carried out on the local images of M local areas of the obtained N initial images, the local image with the highest sharpness in each local image is selected as the target local image of the local area, and the target local area images are synthesized into the display image, so that the image with the highest sharpness in each local area of the image can be obtained, and the problem of overexposure or underexposure of the image part area is avoided.
Referring to fig. 2, a schematic flow chart of another image generation method according to an embodiment of the present invention is shown, where the method includes the following steps:
in step S201, an instruction to generate an object image is received.
Step S202, performing spot photometry on N areas of the object according to the instruction to obtain N photometric values, wherein N is a positive integer greater than 1.
After dividing the framed object image into N regions, the N regions can be respectively subjected to spot photometry, that is, when performing photometry, the N regions are clicked to respectively perform photometry, so that N photometric values are obtained, and thus, finer and more accurate photometric values of the N regions can be obtained.
Step S203, receiving a focusing instruction of a user, and acquiring a first focal length according to the focusing instruction of the user.
And S204, respectively carrying out image acquisition on the object by the N photometric values and the first focal length to obtain N initial images.
After photometry is completed, focusing is required, in this embodiment, manual focusing is adopted, a focused focal length is obtained according to a focusing instruction, and then, the object is subjected to image acquisition by adopting the focal length and the N photometry values, so that N initial images are obtained. Note that focusing may be performed simultaneously with photometry.
The method comprises the steps of dividing an object image into N areas, wherein the value of the N areas can be determined according to a preset definition level or a first focal length, and the N areas can be regular N areas or irregular N areas.
And taking N images by adopting N photometric values, and adopting the previously obtained focal length, namely keeping the focal length unchanged.
Step S205, dividing the N initial images into M local areas, respectively, where M is a positive integer greater than 1.
Step S206, performing sharpness comparison on the local images displayed by the local area i of the M local areas respectively corresponding to the N initial images, and selecting a local image with the highest sharpness in the local images displayed by the local area i as a target local image of the local area i, where i is a positive integer less than or equal to M.
And step S207, synthesizing the target local images into a display image.
Steps S205 to S207 are the same as steps S104 to S106 of the embodiment shown in fig. 1, respectively, and are not described again here.
According to the image generation method provided by the embodiment of the invention, N initial images are obtained by respectively performing photometry and image acquisition on N areas of a framed object, then the sharpness comparison is performed on the local images of M local areas of the N initial images, the local image with the highest sharpness in each local image is selected as the target local image of the local area, and the target local area images are synthesized into the display image, so that the image with the highest sharpness in each local area of the image can be obtained, and the problem of overexposure or underexposure of the image part area is avoided.
Referring to fig. 3, a schematic flow chart of another image generating method according to an embodiment of the present invention is shown, where the method includes the following steps:
in step S301, an instruction to generate an object image is received.
Step S302, performing spot photometry on N areas of the object according to the instruction to obtain N photometric values, wherein N is a positive integer greater than 1
After dividing the framed object image into N regions, spot photometry can be performed on the N regions respectively, that is, when performing photometry, the N regions are clicked to perform photometry respectively, so as to obtain N photometric values, and thus, a more precise and accurate photometric value of the N regions can be obtained.
And step S303, carrying out automatic focusing according to the instruction for generating the object image, and acquiring a second focal length.
And S304, respectively carrying out image acquisition on the object by the N photometric values and the second focal length to obtain N initial images.
After the photometry is finished, focusing is required, and the embodiment adopts automatic focusing. After receiving an instruction of generating an object image, triggering automatic focusing to obtain a focused focal length, and then carrying out image acquisition on the object by adopting the focal length and N photometric values to obtain N initial images. And automatic focusing is adopted, so that the photographing can be carried out quickly.
And dividing the object image into N areas, wherein the value of the N area can be determined according to a preset definition level or a second focal length, and the N areas can be regular N areas or irregular N areas.
And taking N images by adopting N photometric values, and adopting the previously obtained focal length, namely keeping the focal length unchanged.
Step S305, dividing the N initial images into M local regions, respectively, where M is a positive integer greater than 1.
Step S306, performing sharpness comparison on the local images displayed by the local area i of the M local areas respectively corresponding to the N initial images, and selecting a local image with the highest sharpness in the local images displayed by the local area i as a target local image of the local area i, where i is a positive integer less than or equal to M.
And step S307, synthesizing the target local images into a display image.
Steps S305 to S307 are the same as steps S104 to S106 of the embodiment shown in fig. 1 or steps S205 to S207 of the embodiment shown in fig. 2, respectively, and are not repeated herein. According to the image generation method provided by the embodiment of the invention, N initial images are obtained by respectively carrying out photometry and image acquisition on N areas of an object, then the sharpness comparison is carried out on the local images of M local areas of the obtained N initial images, the local image with the highest sharpness in each local image is selected as the target local image of the local area, and the target local area images are synthesized into the display image, so that the image with the highest sharpness in each local area of the image can be obtained, and the problem of overexposure or underexposure of the image part area is avoided.
An embodiment of the present invention further provides an image generating apparatus, including:
a first receiving unit for receiving an instruction to generate an object image;
a light measuring unit, configured to perform light measurement on N regions of the object according to the instruction, respectively, to obtain N light measurement values, where N is a positive integer greater than 1;
the acquisition unit is used for acquiring images of the object by the N photometric values respectively to obtain N initial images;
the dividing unit is used for dividing the N initial images into M local areas respectively, wherein M is a positive integer larger than 1;
a selecting unit, configured to perform sharpness comparison on local images displayed in a local area i of the M local areas corresponding to the N initial images, respectively, and select a local image with the highest sharpness in the N local images corresponding to the local area i as a target local image of the local area i, where i is a positive integer less than or equal to M;
and the synthesizing unit is used for synthesizing the target local images into the display images.
The image generating apparatus provided by the present invention is described in detail below with reference to fig. 4 to 6:
referring to fig. 4, a schematic structural diagram of an image generating apparatus according to an embodiment of the present invention is shown, where the apparatus 1000 includes:
a first receiving unit 11, configured to receive an instruction to generate an object image.
In order to generate an object image and issue an instruction to an image generating apparatus, for example, a user presses a specific button, the first receiving unit 11 receives the instruction to generate the object image, the image generating apparatus may be a portable terminal with a camera device, such as a mobile phone, a tablet computer, and the like, and people often use such a portable terminal to take a picture. The instruction to generate the object image instructs photometry of the object to generate the image.
And a light metering unit 12, configured to perform light metering on the N regions of the object respectively according to the instruction, and obtain N light metering values, where N is a positive integer greater than 1.
In the present embodiment, before performing photometry, the photometry unit 12 divides the framed subject image into N regions, and then performs photometry on the N regions, respectively, so that N photometric values can be obtained. Since the brightness and the like of each region in the subject image to be viewed may be different, the viewed image is divided into N regions, and the N regions are subjected to photometry, so that finer and more accurate photometric values of the N regions can be obtained.
And the acquisition unit 13 is used for respectively carrying out image acquisition on the object by the N photometric values to obtain N initial images.
The acquisition unit 13 performs image acquisition or photographing on the entire framed subject image N times with the obtained N photometric values, respectively, and N initial images, which may have different photometric values, may be obtained.
A dividing unit 14, configured to divide the N initial images into M local areas, where M is a positive integer greater than 1.
The dividing unit 14 divides each of the N initial images into M local regions, respectively, to obtain N × M local region images.
A selecting unit 15, configured to perform sharpness comparison on local images displayed by a local area i of the M local areas corresponding to the N initial images, and select a local image with the highest sharpness in the local images displayed by the local area i as a target local image of the local area i, where i is a positive integer less than or equal to M.
Sharpness, also referred to as "sharpness", is an indicator that reflects the sharpness of the image plane and the sharpness of the image edges. If the sharpness is adjusted higher, the contrast of details on the image plane is also higher, and the image looks clearer. For example, in the case of high sharpness, not only the wrinkles and spots of the face on the screen are clearer, but also the swelling or sinking of the facial muscles can be lifelike. In another case, where the dark or black lines are in the vertical direction or the black-and-white image suddenly changes, in the case of higher sharpness, the edges of the lines or the joints of the black-and-white image suddenly change are sharper, and the whole picture is more clear.
The selecting unit 15 compares the sharpness of the partial images displayed in each of the N initial images, and selects the partial image with the highest sharpness from the M partial images displayed in the partial areas at the position as the target partial image of the partial area at the position. And sequentially carrying out sharpness comparison on the images of the M local areas to obtain M target local area images. The image with the highest sharpness in the target partial image, i.e., the partial area image, is an image photographed with the most appropriate photometric value.
And the synthesizing unit 16 is used for synthesizing the target local images into the display image.
And synthesizing the obtained M target local area images into a display image, and outputting the display image, wherein the output image is the image with the best sharpness.
According to the image generation device provided by the embodiment of the invention, after the first receiving unit receives the instruction of generating the object image, the light measuring unit and the acquisition unit respectively perform light measurement and image acquisition on N areas of the object to obtain N initial images, then the selection unit performs sharpness comparison on local images of M local areas of the N initial images, the local image with the highest sharpness in each local area is selected as the target local image of the local area, and the synthesis unit synthesizes the target local images into the display image, so that the image with the highest sharpness in each local area of the image can be obtained, and the problem of overexposure or underexposure of the image part area is avoided.
Referring to fig. 5, a schematic structural diagram of another image generating apparatus according to an embodiment of the present invention is shown, where the apparatus 2000 includes:
a first receiving unit 21 for receiving an instruction to generate an image of the object.
And the light metering unit 22 is configured to perform spot light metering on N regions of the object according to the instruction, so as to obtain N light metering values, where N is a positive integer greater than 1.
After the light metering unit 22 divides the framed object image into N regions, the light metering unit can perform spot light metering on the N regions, that is, when the light metering unit performs light metering, the N regions are clicked to perform light metering respectively, so as to obtain N light metering values, and thus, a finer and accurate light metering value of the N regions can be obtained.
The second receiving unit 23 is configured to receive a focusing instruction of a user, and obtain a first focal length according to the focusing instruction of the user.
And the acquisition unit 24 is configured to acquire an image of the object according to the N photometric values and the first focal length, respectively, to obtain N initial images.
After the light measurement unit 22 finishes measuring light, the device 2000 needs to perform focusing, in this embodiment, manual focusing is adopted, a focused focal length is obtained according to a focusing instruction received by the second receiving unit 23, and the acquisition unit 24 acquires an image of an object by using the focal length and N light measurements, so as to obtain N initial images.
Dividing the object image into N areas, wherein the N can determine a value according to a preset definition level or a first focal length, and the N areas can be regular N areas or irregular N areas.
And taking N images by adopting N photometric values, and adopting the previously obtained focal length, namely keeping the focal length unchanged.
A dividing unit 25, configured to divide the N initial images into M local areas, where M is a positive integer greater than 1.
A selecting unit 26, configured to perform sharpness comparison on local images displayed by a local area i of the M local areas corresponding to the N initial images, and select a local image with the highest sharpness in the local images displayed by the local area i as a target local image of the local area i, where i is a positive integer less than or equal to M.
And a synthesizing unit 27, configured to synthesize the target partial images into a presentation image.
The functions of the dividing unit 25, the selecting unit 26, and the synthesizing unit 27 are similar to those of the dividing unit 14, the selecting unit 15, and the synthesizing unit 16, respectively, in the embodiment shown in fig. 4, and are not described again here.
According to the image generation device provided by the embodiment of the invention, after the first receiving unit receives the instruction of generating the object image, the light measuring unit and the acquisition unit respectively perform light measurement and image acquisition on N areas of the object to obtain N initial images, then the selection unit performs sharpness comparison on local images of M local areas of the N initial images, the local image with the highest sharpness in each local area is selected as the target local image of the local area, and the synthesis unit synthesizes the target local images into the display image, so that the image with the highest sharpness in each local area of the image can be obtained, and the problem of overexposure or underexposure of the image part area is avoided.
Referring to fig. 6, which is a schematic structural diagram of another image generating apparatus according to an embodiment of the present invention, the apparatus 3000 includes:
a first receiving unit 31 for receiving an instruction to generate an image of the object.
A light metering unit 32, configured to perform spot light metering on N regions of the object according to the instruction to obtain N light metering values, where N is a positive integer greater than 1
The photometry unit 32 divides the framed subject image into N regions, and then performs spot photometry on the N regions, that is, when performing photometry, the N regions are clicked to perform photometry, so as to obtain N photometric values, which can obtain finer and accurate photometric values of the N regions.
And a third receiving unit 33, configured to perform automatic focusing according to the instruction for generating the object image, and obtain a second focal length.
And the acquisition unit 34 is configured to acquire images of the object according to the N photometric values and the second focal length, respectively, to obtain N initial images.
After the light measuring unit 32 finishes measuring light, the device 3000 needs to perform focusing, and this embodiment adopts auto-focusing. After the first receiving unit 31 receives an instruction for generating an object image, automatic focusing is triggered, the third receiving unit 33 obtains a focused focal length, and the acquisition unit 34 acquires an image of the object by using the focal length and N photometers to obtain N initial images. And automatic focusing is adopted, so that the photographing can be carried out quickly.
And dividing the object image into N areas, wherein the value of the N area can be determined according to a preset definition level or a second focal length, and the N areas can be regular N areas or irregular N areas.
And taking N images by adopting N photometric values, and adopting the previously obtained focal length, namely keeping the focal length unchanged.
A dividing unit 35, configured to divide the N initial images into M local areas, where M is a positive integer greater than 1.
A selecting unit 36, configured to perform sharpness comparison on local images displayed by a local area i of the M local areas corresponding to the N initial images, and select a local image with the highest sharpness in the local images displayed by the local area i as a target local image of the local area i, where i is a positive integer less than or equal to M.
And a synthesizing unit 37, configured to synthesize the target partial images into a display image.
The dividing unit 35, the selecting unit 36, and the synthesizing unit 37 have functions similar to those of the dividing unit 14, the selecting unit 15, and the synthesizing unit 16 in the embodiment shown in fig. 4, or the dividing unit 25, the selecting unit 26, and the synthesizing unit 27 in the embodiment shown in fig. 5, respectively, and are not described again here.
According to the image generation device provided by the embodiment of the invention, after the first receiving unit receives the instruction of generating the object image, the light measuring unit and the acquisition unit respectively perform light measurement and image acquisition on N areas of the object to obtain N initial images, then the selection unit performs sharpness comparison on local images of M local areas of the N initial images, the local image with the highest sharpness in each local area is selected as the target local image of the local area, and the synthesis unit synthesizes the target local images into the display image, so that the image with the highest sharpness in each local area of the image can be obtained, and the problem of overexposure or underexposure of the image part area is avoided.
It should be noted that, for simplicity of description, the above-mentioned method embodiments are described as a series of acts or combination of acts, but those skilled in the art will recognize that the present invention is not limited by the order of acts, as some steps may occur in other orders or concurrently in accordance with the invention. Further, those skilled in the art should also appreciate that the embodiments described in the specification are preferred embodiments and that the acts and modules referred to are not necessarily required by the invention.
In the foregoing embodiments, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
From the above description of the embodiments, it is clear to those skilled in the art that the present invention can be implemented by hardware, firmware, or a combination thereof. When implemented in software, the functions described above may be stored on or transmitted over as one or more instructions or code on a computer-readable medium. Computer-readable media includes both computer storage media and communication media including any medium that facilitates transfer of a computer program from one place to another. A storage media may be any available media that can be accessed by a computer. Taking this as an example but not limiting: the computer-readable medium may include Random Access Memory (RAM), Read-Only Memory (ROM), Electrically erasable programmable Read-Only Memory (EEPROM), Compact disk Read-Only Memory (CD-ROM) or other optical disk storage, magnetic disk storage or other magnetic storage devices, or any other medium that can be used to carry or store desired program code in the form of instructions or data structures and that can be accessed by a computer. Furthermore, the method is simple. Any connection is properly termed a computer-readable medium. For example, if software is transmitted from a website, a server, or other remote source using a coaxial cable, a fiber optic cable, a twisted pair, a Digital Subscriber Line (DSL), or wireless technologies such as infrared, radio, and microwave, the coaxial cable, the fiber optic cable, the twisted pair, the DSL, or the wireless technologies such as infrared, radio, and microwave are included in the fixation of the medium. Disk and disc, as used herein, includes Compact Disc (CD), laser disc, optical disc, Digital Versatile Disc (DVD), floppy Disk and blu-ray disc where disks usually reproduce data magnetically, while discs reproduce data optically with lasers. Combinations of the above should also be included within the scope of computer-readable media.
In short, the above description is only a preferred embodiment of the present invention, and is not intended to limit the scope of the present invention. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.
Claims (10)
1. An image generation method, comprising:
receiving an instruction for generating an object image;
performing photometry on N areas of the object according to the instruction to obtain N photometric values, wherein N is a positive integer greater than 1;
respectively carrying out image acquisition on the object by the N photometric values to obtain N initial images;
dividing the N initial images into M local areas respectively, wherein M is a positive integer greater than 1;
performing sharpness comparison on local images displayed by local areas i in the M local areas respectively corresponding to the N initial images, and selecting a local image with the highest sharpness in the local images displayed by the local areas i as a target local image of the local area i, wherein i is a positive integer less than or equal to M;
and synthesizing the target local images into a display image.
2. The method of claim 1, wherein said image capturing the object with the N photometric values, respectively, obtaining N initial images comprises:
receiving a focusing instruction of a user, and acquiring a first focal length according to the focusing instruction of the user;
respectively carrying out image acquisition on the object according to the N photometric values and the first focal length to obtain N initial images;
or,
carrying out automatic focusing according to the instruction for generating the object image to obtain a second focal length;
and respectively carrying out image acquisition on the object by the N photometric values and the second focal length to obtain N initial images.
3. The method of claim 2, wherein the N is determined to be a value according to a preset sharpness level, or the first focus distance, or the second focus distance.
4. The method of claim 2, wherein the N regions of the object are regular N regions or irregular N regions.
5. The method of claim 2, wherein the performing photometry on the N regions of the object according to the instruction, respectively, obtaining N photometric values comprises:
and respectively performing spot photometry on the N areas of the object according to the instruction to obtain N photometric values.
6. An image generation apparatus, comprising:
a first receiving unit for receiving an instruction to generate an object image;
a light measuring unit, configured to perform light measurement on N regions of the object according to the instruction, respectively, to obtain N light measurement values, where N is a positive integer greater than 1;
the acquisition unit is used for acquiring images of the object by the N photometric values respectively to obtain N initial images;
the dividing unit is used for dividing the N initial images into M local areas respectively, wherein M is a positive integer larger than 1;
a selecting unit, configured to perform sharpness comparison on local images displayed in a local area i of the M local areas corresponding to the N initial images, respectively, and select a local image with the highest sharpness in the N local images corresponding to the local area i as a target local image of the local area i, where i is a positive integer less than or equal to M;
and the synthesizing unit is used for synthesizing the target local images into the display images.
7. The apparatus of claim 6, wherein the apparatus further comprises:
the second receiving unit is used for receiving a focusing instruction of a user and acquiring a first focal length according to the focusing instruction of the user; or,
the third receiving unit is used for carrying out automatic focusing according to the instruction for generating the object image and acquiring a second focal length;
the acquisition unit is specifically configured to:
respectively carrying out image acquisition on the object according to the N photometric values and the first focal length to obtain N initial images; or,
and respectively carrying out image acquisition on the object by the N photometric values and the second focal length to obtain N initial images.
8. The apparatus of claim 7, wherein the N is determined to be a value according to a preset sharpness level, or the first focus distance, or the second focus distance.
9. The apparatus of claim 7, wherein the N regions of the object are regular N regions or irregular N regions.
10. The apparatus of claim 7, wherein the light metering unit is specifically configured to:
and respectively performing spot photometry on N areas of the object according to the instruction to obtain N photometric values, wherein N is a positive integer greater than 1.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510366752.4A CN104954687B (en) | 2015-06-26 | 2015-06-26 | A kind of image generating method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510366752.4A CN104954687B (en) | 2015-06-26 | 2015-06-26 | A kind of image generating method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104954687A true CN104954687A (en) | 2015-09-30 |
CN104954687B CN104954687B (en) | 2018-11-16 |
Family
ID=54168992
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510366752.4A Active CN104954687B (en) | 2015-06-26 | 2015-06-26 | A kind of image generating method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104954687B (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106570110A (en) * | 2016-10-25 | 2017-04-19 | 北京小米移动软件有限公司 | De-overlapping processing method and apparatus of image |
CN108259775A (en) * | 2018-04-09 | 2018-07-06 | 京东方科技集团股份有限公司 | A kind of imaging method, imaging device and rearview mirror |
CN109831625A (en) * | 2019-01-30 | 2019-05-31 | 努比亚技术有限公司 | It takes pictures processing method, mobile terminal and computer readable storage medium |
CN114760412A (en) * | 2022-03-16 | 2022-07-15 | 深圳市大疆创新科技有限公司 | Method and device for acquiring full-field high-sharpness image and movable platform |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2004007298A (en) * | 2002-06-03 | 2004-01-08 | Olympus Corp | Imaging apparatus and imaging method |
CN101630061A (en) * | 2009-08-17 | 2010-01-20 | 公安部物证鉴定中心 | Optical confocal three-dimensional data acquisition system of tool traces and acquisition method thereof |
CN102131051A (en) * | 2010-12-28 | 2011-07-20 | 惠州Tcl移动通信有限公司 | Image pick-up equipment and image acquisition method and device thereof |
CN103518223A (en) * | 2011-04-18 | 2014-01-15 | 高通股份有限公司 | White balance optimization with high dynamic range images |
-
2015
- 2015-06-26 CN CN201510366752.4A patent/CN104954687B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2004007298A (en) * | 2002-06-03 | 2004-01-08 | Olympus Corp | Imaging apparatus and imaging method |
CN101630061A (en) * | 2009-08-17 | 2010-01-20 | 公安部物证鉴定中心 | Optical confocal three-dimensional data acquisition system of tool traces and acquisition method thereof |
CN102131051A (en) * | 2010-12-28 | 2011-07-20 | 惠州Tcl移动通信有限公司 | Image pick-up equipment and image acquisition method and device thereof |
CN103518223A (en) * | 2011-04-18 | 2014-01-15 | 高通股份有限公司 | White balance optimization with high dynamic range images |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106570110A (en) * | 2016-10-25 | 2017-04-19 | 北京小米移动软件有限公司 | De-overlapping processing method and apparatus of image |
CN108259775A (en) * | 2018-04-09 | 2018-07-06 | 京东方科技集团股份有限公司 | A kind of imaging method, imaging device and rearview mirror |
US10880490B2 (en) | 2018-04-09 | 2020-12-29 | Boe Technology Group Co., Ltd. | Imaging method, imaging device, rearview mirror and storage medium |
CN108259775B (en) * | 2018-04-09 | 2021-01-22 | 京东方科技集团股份有限公司 | Imaging method, imaging device and rearview mirror |
CN109831625A (en) * | 2019-01-30 | 2019-05-31 | 努比亚技术有限公司 | It takes pictures processing method, mobile terminal and computer readable storage medium |
CN114760412A (en) * | 2022-03-16 | 2022-07-15 | 深圳市大疆创新科技有限公司 | Method and device for acquiring full-field high-sharpness image and movable platform |
CN114760412B (en) * | 2022-03-16 | 2024-06-18 | 深圳市大疆创新科技有限公司 | Method and device for acquiring full-field high-sharpness image and movable platform |
Also Published As
Publication number | Publication date |
---|---|
CN104954687B (en) | 2018-11-16 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US12250452B2 (en) | Real time assessment of picture quality | |
CN109064545B (en) | Method and device for data acquisition and model generation of house | |
CN102959943B (en) | Stereoscopic panoramic image synthesizer and method and image capture apparatus | |
CN105765967B (en) | The method, system and medium of the setting of first camera are adjusted using second camera | |
CN109495686B (en) | Shooting method and equipment | |
JP6388673B2 (en) | Mobile terminal and imaging method thereof | |
AU2017247070B2 (en) | Three-dimensional, 360-degree virtual reality camera exposure control | |
JP5434361B2 (en) | Image processing apparatus and image processing method | |
US20140092272A1 (en) | Apparatus and method for capturing multi-focus image using continuous auto focus | |
US20150279056A1 (en) | High-quality post-rendering depth blur | |
JP2017509259A (en) | Imaging method for portable terminal and portable terminal | |
CN104867125B (en) | Obtain the method and device of image | |
CN104954687B (en) | A kind of image generating method and device | |
CN112017137B (en) | Image processing method, device, electronic equipment and computer readable storage medium | |
CN103905725A (en) | Image processing apparatus and image processing method | |
CN110300268A (en) | Camera switching method and equipment | |
US20160292842A1 (en) | Method and Apparatus for Enhanced Digital Imaging | |
US20130242138A1 (en) | Enhanced resolution image capture | |
KR20170011876A (en) | Image processing apparatus and method for operating thereof | |
CN105467741B (en) | A kind of panorama photographic method and terminal | |
CN113014820A (en) | Processing method and device and electronic equipment | |
CN104935815B (en) | Method, device and the camera and mobile terminal taken pictures | |
TWI468772B (en) | Device and method for taking photographs | |
JP2021125873A (en) | Display control device and its control method | |
CN112351215A (en) | Photometric mode switching method and device and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
CP03 | Change of name, title or address | ||
CP03 | Change of name, title or address |
Address after: 519085 Guangdong Zhuhai science and technology innovation coastal Meizu Technology Building Patentee after: MEIZU TECHNOLOGY Co.,Ltd. Address before: 519080 Technology Innovation Coast Meizu science and technology building, Xiangzhou District, Zhuhai, Guangdong Patentee before: Meizu Technology (China) Co.,Ltd. |