WO2018018934A1 - 高动态范围图像拍摄方法、装置和终端设备 - Google Patents

高动态范围图像拍摄方法、装置和终端设备 Download PDF

Info

Publication number
WO2018018934A1
WO2018018934A1 PCT/CN2017/080140 CN2017080140W WO2018018934A1 WO 2018018934 A1 WO2018018934 A1 WO 2018018934A1 CN 2017080140 W CN2017080140 W CN 2017080140W WO 2018018934 A1 WO2018018934 A1 WO 2018018934A1
Authority
WO
WIPO (PCT)
Prior art keywords
image
original image
brightness
dynamic range
high dynamic
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.)
Ceased
Application number
PCT/CN2017/080140
Other languages
English (en)
French (fr)
Inventor
杨新勤
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to US16/311,352 priority Critical patent/US10623654B2/en
Priority to EP21181755.6A priority patent/EP3923567A1/en
Priority to EP17833240.9A priority patent/EP3490244B1/en
Publication of WO2018018934A1 publication Critical patent/WO2018018934A1/zh
Anticipated expiration legal-status Critical
Priority to US16/435,538 priority patent/US10616499B2/en
Ceased legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T5/00Image enhancement or restoration
    • G06T5/50Image enhancement or restoration using two or more images, e.g. averaging or subtraction
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/70Circuitry for compensating brightness variation in the scene
    • H04N23/741Circuitry for compensating brightness variation in the scene by increasing the dynamic range of the image compared to the dynamic range of the electronic image sensors
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T5/00Image enhancement or restoration
    • G06T5/90Dynamic range modification of images or parts thereof
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T5/00Image enhancement or restoration
    • G06T5/90Dynamic range modification of images or parts thereof
    • G06T5/92Dynamic range modification of images or parts thereof based on global image properties
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/50Constructional details
    • H04N23/54Mounting of pick-up tubes, electronic image sensors, deviation or focusing coils
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/70Circuitry for compensating brightness variation in the scene
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/70Circuitry for compensating brightness variation in the scene
    • H04N23/71Circuitry for evaluating the brightness variation
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/95Computational photography systems, e.g. light-field imaging systems
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N25/00Circuitry of solid-state image sensors [SSIS]; Control thereof
    • H04N25/50Control of the SSIS exposure
    • H04N25/57Control of the dynamic range
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N25/00Circuitry of solid-state image sensors [SSIS]; Control thereof
    • H04N25/50Control of the SSIS exposure
    • H04N25/57Control of the dynamic range
    • H04N25/58Control of the dynamic range involving two or more exposures
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/20Special algorithmic details
    • G06T2207/20172Image enhancement details
    • G06T2207/20208High dynamic range [HDR] image processing
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/20Special algorithmic details
    • G06T2207/20212Image combination
    • G06T2207/20216Image averaging

Definitions

  • the present application relates to the field of photographing technology, and in particular, to a high dynamic range image capturing method, apparatus, and terminal device.
  • High Dynamic Range Imaging is a set of shooting techniques used to achieve greater exposure dynamic range (ie, greater difference in brightness) than conventional digital image technology.
  • the purpose of high dynamic range images is to accurately represent the brightness of the real world from the direct sunlight to the darkest shadow.
  • the captured image can clearly show the details of the scene, whether it is high light or shadow, so that the effect of the image is close to the effect of the human eye.
  • the purpose of the present application is to solve at least one of the above technical problems to some extent.
  • the first object of the present application is to propose a high dynamic range image capturing method, which achieves a synthetic high dynamic range image close to the human eye visual effect and improves the quality of the high dynamic range image.
  • a second object of the present application is to propose a high dynamic range image capturing apparatus.
  • a third object of the present application is to propose a terminal device.
  • a fourth object of the present application is to propose a non-volatile computer storage medium.
  • the first aspect of the present application provides a high dynamic range image capturing method, the method comprising:
  • a high dynamic range image is synthesized based on the reference image and the original image.
  • the high dynamic range image capturing method of the embodiment of the present application detects the brightness distribution type of the original image captured by the terminal device after the initial position is exposed to the central area, and triggers the MEMS to image sensor according to the brightness distribution type and the preset moving distance. Move to one or more reference positions, and take a corresponding reference image after exposing the central area to the reference position, thereby synthesizing the high dynamic range image according to the reference image and the original image. Thereby, the synthesized high dynamic range image is achieved close to the human eye visual effect, and the quality of the high dynamic range image is improved.
  • the high dynamic range image capturing method of the embodiment of the present application further has the following additional technical features:
  • the brightness distribution type of the original image captured by the detecting terminal device after the initial position is exposed to the central area includes:
  • triggering the MEMS to move the image sensor to one or more reference positions according to the brightness distribution type and the preset moving distance includes:
  • the second MEMS system is triggered to move the image sensor in the positive direction of the horizontal direction and/or the negative direction to one or more reference positions according to a preset moving distance.
  • the method before the triggering the MEMS to move the image sensor to the one or more reference positions according to the brightness distribution type and the preset moving distance, the method further includes:
  • the synthesizing the high dynamic range image according to the reference image and the original image includes:
  • the synthesizing the high dynamic range image according to the reference image and the original image includes:
  • a high dynamic range image is synthesized based on reference pixel values corresponding to respective pixel positions in the original image.
  • the second aspect of the present application provides a high dynamic range image capturing apparatus, including: a detecting module, configured to detect a brightness distribution type of an original image captured by a terminal device after being exposed to a central area at an initial position;
  • a triggering module configured to trigger the MEMS to move the image sensor to one or more reference positions according to the brightness distribution type and a preset moving distance
  • a photographing module configured to photograph a corresponding reference image after exposing the central area to the reference position
  • a synthesizing module configured to synthesize a high dynamic range image according to the reference image and the original image.
  • the high dynamic range image capturing apparatus of the embodiment of the present application detects a brightness distribution type of an original image captured by the terminal device after the initial position is exposed to the central area, and triggers the MEMS to image the image according to the brightness distribution type and the preset moving distance. Move to one or more reference positions, and take a corresponding reference image after exposing the central area to the reference position, thereby synthesizing the high dynamic range image according to the reference image and the original image. Thereby, the synthesized high dynamic range image is achieved close to the human eye visual effect, and the quality of the high dynamic range image is improved.
  • the high dynamic range image capturing apparatus of the embodiment of the present application further has the following additional technical features:
  • a determining unit configured to determine that a brightness of the original image is horizontally distributed when the first difference meets a preset threshold
  • the second MEMS system is triggered to move the image sensor in a positive direction of the horizontal direction and/or a negative direction to one or more reference positions according to a preset moving distance.
  • a first acquiring unit configured to acquire a reference pixel value corresponding to each pixel position in the overlapping portion of the original image from the reference image when the collection of the reference images does not cover the original image
  • a first synthesizing unit configured to synthesize a high dynamic range image according to an average value corresponding to each pixel position in the overlapping portion, and an original pixel value corresponding to the non-overlapping portion of the reference image in the original image.
  • a high dynamic range image is synthesized based on the reference image and the original image.
  • the terminal device of the embodiment of the present application detects a brightness distribution type of an original image captured by the terminal device after the initial position is exposed to the central area, and triggers the MEMS system to move the image sensor to one or according to the brightness distribution type and the preset moving distance.
  • a plurality of reference positions, and after the exposure of the central area to the reference position, the corresponding reference image is captured, and then the high dynamic range image is synthesized according to the reference image and the original image. Thereby, the synthesized high dynamic range image is achieved close to the human eye visual effect, and the quality of the high dynamic range image is improved.
  • a high dynamic range image is synthesized based on the reference image and the original image.
  • FIG. 1 is a flow chart of a high dynamic range image capture method in accordance with one embodiment of the present application
  • FIGS. 2(a) to 2(b) are schematic diagrams showing types of original image brightness distribution according to an embodiment of the present application.
  • FIG. 3 is a schematic structural view of a microelectromechanical system according to an embodiment of the present application.
  • FIG. 4 is a schematic diagram of a connection between a microelectromechanical system and an image sensor according to an embodiment of the present application
  • FIG. 6 is a flowchart of a high dynamic range image capturing method according to another embodiment of the present application.
  • FIG. 7 is a flowchart of a high dynamic range image capturing method according to still another embodiment of the present application.
  • FIG. 8 is a flowchart of a high dynamic range image capturing method according to still another embodiment of the present application.
  • FIG. 9 is a schematic structural diagram of a high dynamic range image capturing apparatus according to an embodiment of the present application.
  • FIG. 10 is a schematic structural diagram of a high dynamic range image capturing apparatus according to another embodiment of the present application.
  • FIG. 11 is a schematic structural diagram of a high dynamic range image capturing apparatus according to still another embodiment of the present application.
  • FIG. 12 is a schematic structural diagram of a high dynamic range image capturing apparatus according to still another embodiment of the present application.
  • FIG. 14 is a schematic structural diagram of a terminal device according to an embodiment of the present application.
  • FIG. 1 is a flow chart of a high dynamic range image capture method in accordance with one embodiment of the present application.
  • the high dynamic range image capturing method may include:
  • the high dynamic range image capturing method provided by the embodiment of the present application needs to detect the distribution of the brightness in the captured original image, and take reference images of different exposure intensities for regions of different brightness, and then The above reference image is synthesized into a high dynamic range image.
  • the reference image of the synthesized high dynamic range image is exposed according to the different brightness of the captured scene, and the different reference images clearly expose the regions of different brightness of the original image, and the reference image is combined with the high dynamic range image to clearly present the captured scene. Details, the image quality is higher.
  • the first difference satisfies the preset threshold, it indicates that the upper half and the lower half of the pixel brightness in the original image are large, thereby determining that the brightness of the original image is horizontally distributed.
  • the second difference satisfies the preset threshold, it indicates that the left and right halves of the pixel brightness in the original image are different. Larger to determine the vertical distribution of the original image.
  • the MEMS system may be triggered to move the image sensor to one or more according to the brightness distribution type and the preset moving distance.
  • the reference position is taken, and after the central area is exposed at the reference position, the corresponding reference image is taken.
  • the first MEMS is triggered to move the image sensor in the positive or negative direction of the vertical direction to one or more reference positions according to a preset moving distance.
  • the image sensor is moved in the positive direction of the vertical direction to a reference position for photographing, and thus the sky is appropriately exposed in the obtained reference image.
  • the reference image clearly shows the details of the sky.
  • the image sensor is moved in the positive direction of the horizontal direction to a reference position for photographing, and thus the obtained reference image is subjected to appropriate exposure of the sky.
  • the reference image clearly shows the details of the sky.
  • the image sensor is moved in a negative direction in the horizontal direction to a reference position for photographing, and thus the obtained reference image is subjected to appropriate exposure of the windmill.
  • the reference image clearly shows the details of the windmill.
  • FIG. 6 is a flowchart of a high dynamic range image capturing method according to another embodiment of the present application. As shown in FIG. 6, step S130 may include:
  • the original pixel value and the reference pixel value corresponding to each pixel position in the overlapping portion of the reference image and the original image are obtained, and when the portion where the original image overlaps the reference image is a sky image, the sky in the original image is acquired.
  • the original pixel value corresponding to each pixel position in the image, and the reference pixel value corresponding to each pixel position in the sky image in the reference image, the pixels corresponding to the original image and the reference image are averaged.
  • the original image is subjected to corresponding synthesis processing, that is, the average value is assigned to the corresponding pixel position in the original image, and the original image is
  • the original pixel values corresponding to the non-overlapping portions of the reference image are not altered to generate a composite high dynamic range image that clearly reflects the details of each region of the scene being captured.
  • the reference pixel values corresponding to the positions of the pixels in the original image are acquired from the reference image.
  • the high dynamic range image capturing method of the embodiment of the present application detects the brightness distribution type of the original image captured by the terminal device after the initial position is exposed to the central area, and triggers the micro according to the brightness distribution type and the preset moving distance.
  • the electromechanical system moves the image sensor to one or more reference positions, and takes a corresponding reference image after exposing the central area to the reference position, thereby synthesizing the high dynamic range image according to the reference image and the original image.
  • the synthesized high dynamic range image is achieved close to the human eye visual effect, and the quality of the high dynamic range image is improved.
  • the brightness distribution type of the original image may be detected according to the distribution of the pixel brightness of the original image captured by the terminal device after the central region is exposed at the initial position.
  • a first resolution corresponding to a horizontal direction and a second resolution corresponding to a vertical direction in the image sensor may be acquired, and then corresponding to the first resolution and the second resolution
  • the arithmetic processing determines the moving distance corresponding to the movement of the image sensor.
  • S440 Trigger the MEMS to move the image sensor to one or more reference positions according to the brightness distribution type and the preset moving distance, and take a corresponding reference image after exposing the central area to the reference position.
  • FIG. 9 is a schematic structural diagram of a high dynamic range image capturing device according to an embodiment of the present application. As shown in FIG. 9, the high dynamic range is shown.
  • the image capturing apparatus includes a detecting module 10, a triggering module 20, a photographing module 30, and a synthesizing module 40.
  • FIG. 10 is a schematic structural diagram of a high dynamic range image capturing apparatus according to another embodiment of the present application.
  • the detecting module 10 may include: a detecting unit 11 and a determining unit 12.
  • the detecting unit 11 is configured to detect whether a first difference between the brightness of the upper half of the original image and the brightness of the lower half of the pixel meets a preset threshold.
  • the determining unit 12 is configured to determine that the brightness of the original image is horizontally distributed when the first difference satisfies the preset threshold.
  • the detecting unit 11 is further configured to detect, when the first difference does not satisfy the preset threshold, whether the second difference between the left half pixel brightness and the right half pixel brightness in the original image meets a preset threshold.
  • the determining unit 12 is further configured to determine that the brightness of the original image is vertically distributed when the second difference meets the preset threshold.
  • the triggering module 20 is configured to trigger the MEMS to move the image sensor to one or more reference positions according to the brightness distribution type and the preset moving distance.
  • the triggering module 20 is configured to: when the brightness of the original image is horizontally distributed, trigger the first MEMS to move the image sensor in a positive direction or a negative direction of the vertical direction to one or more according to a preset moving distance. Reference locations.
  • the triggering module 20 is configured to trigger the second MEMS to move the image sensor in a positive direction or a negative direction in the horizontal direction to one or more reference positions according to a preset moving distance when the brightness of the original image is vertically distributed.
  • the photographing module 30 is configured to photograph a corresponding reference image after exposing the central area to the reference position.
  • the synthesizing module 40 is configured to synthesize a high dynamic range image according to the reference image and the original image.
  • FIG. 11 is a schematic structural diagram of a high dynamic range image capturing apparatus according to still another embodiment of the present application.
  • the composition module 40 may include: a first acquiring unit 41, The calculation unit 42 and the first synthesis unit 43.
  • the first obtaining unit 41 is configured to obtain a reference pixel value corresponding to each pixel position in the overlapping portion of the original image from the reference image when the collection of the reference images does not cover the original image.
  • the calculating unit 42 is configured to calculate an average value corresponding to each pixel position in the overlapping portion according to the original pixel value and the reference pixel value corresponding to each pixel position in the overlapping portion.
  • the first synthesizing unit 43 is configured to synthesize a high dynamic range image according to an average value corresponding to each pixel position in the overlapping portion and an original pixel value corresponding to the non-overlapping portion of the reference image in the original image.
  • FIG. 12 is a schematic structural diagram of a high dynamic range image capturing apparatus according to still another embodiment of the present application.
  • the composition module 40 may include: a second acquiring unit 44 and Second synthesis unit 45.
  • the second obtaining unit 44 is configured to obtain the reference image from the reference image when the collection of the reference image covers the original image.
  • the second synthesizing unit 45 is configured to synthesize a high dynamic range image according to reference pixel values corresponding to respective pixel positions in the original image.
  • the high dynamic range image capturing apparatus of the embodiment of the present application detects the brightness distribution type of the original image captured by the terminal device after the initial position is exposed to the central area, and triggers the micro according to the brightness distribution type and the preset moving distance.
  • the electromechanical system moves the image sensor to one or more reference positions, and takes a corresponding reference image after exposing the central area to the reference position, thereby synthesizing the high dynamic range image according to the reference image and the original image.
  • the synthesized high dynamic range image is achieved close to the human eye visual effect, and the quality of the high dynamic range image is improved.
  • FIG. 13 is a schematic structural diagram of a high dynamic range image capturing apparatus according to still another embodiment of the present application. As shown in FIG. 13 , the high dynamic range image capturing apparatus may further include: an acquiring module. 50 and determination module 60.
  • the determining module 60 is configured to determine the moving distance according to the first resolution and the second resolution.
  • the high dynamic range image capturing apparatus of the embodiment of the present application acquires a first resolution corresponding to a horizontal direction and a second resolution corresponding to a vertical direction in the image sensor, and according to the first resolution and the first The second resolution determines the moving distance. Therefore, the MEMS system can move the image sensor at a more suitable moving distance when detecting the type of the brightness distribution of the original image, so that the captured reference image more clearly presents the image of the region in which the different brightness is located. The details effectively improve the quality of the synthesized high dynamic range image.
  • FIG. 14 is a schematic structural diagram of a terminal device according to an embodiment of the present application.
  • the terminal device 1000 includes: a housing 1100 and a shell.
  • processor 1140 operates by reading executable program code stored in memory 1130 A program corresponding to the executable program code for performing the following steps:
  • the type of brightness distribution of the original image taken by the terminal device after exposure to the central area at the initial position is detected.
  • the triggering micro-electromechanical system moves the image sensor to one or more reference positions, and takes a corresponding reference image after exposing the central area to the reference position.
  • a high dynamic range image is synthesized from the reference image and the original image.
  • the terminal device in the embodiment of the present application detects the brightness distribution type of the original image captured by the terminal device after the initial position is exposed to the central area, and triggers the MEMS to image according to the brightness distribution type and the preset moving distance.
  • the sensor moves to one or more reference positions, and after the center position is exposed at the reference position, a corresponding reference image is taken, and then a high dynamic range image is synthesized according to the reference image and the original image.
  • the synthesized high dynamic range image is achieved close to the human eye visual effect, and the quality of the high dynamic range image is improved.

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computing Systems (AREA)
  • Studio Devices (AREA)

Abstract

本申请公开了一种高动态范围图像拍摄方法、装置和终端设备,其中,方法包括:检测终端设备在初始位置对中心区域曝光后拍摄的原始图像的亮度分布类型,根据亮度分布类型和预设的移动距离,触发微机电系统将图像传感器移动到一个或多个参考位置,并在参考位置对中心区域曝光后拍摄对应的参考图像;根据参考图像和原始图像合成高动态范围图像。由此,实现了合成的高动态范围图像接近人眼视觉效果,提高了高动态范围图像的质量。

Description

高动态范围图像拍摄方法、装置和终端设备
相关申请的交叉引用
本申请要求广东欧珀移动通信有限公司于2016年07月29日提交的、申请名称为“高动态范围图像拍摄方法、装置和终端设备”的、中国专利申请号“201610616167.X”的优先权。
技术领域
本申请涉及拍摄技术领域,尤其涉及一种高动态范围图像拍摄方法、装置和终端设备。
背景技术
高动态范围图像(High Dynamic Range Imaging,HDR)是用来实现比普通数字图像技术更大曝光动态范围(即更大的明暗差别)的一组拍摄技术。高动态范围图像的目的就是要准确地表示真实世界中从太阳光直射到最暗的阴影范围内的亮度。使得拍摄的图像可将拍摄景物中,无论高光还是阴影部分的细节,都能清晰的呈现出来,使得图像呈现的效果接近人眼视觉的效果。
通常,在进行高动态范围图像拍摄时,会拍摄同一位置三种曝光强度(低曝光、中曝光、高曝光)的图像,然后把这三张图像合成一张图像。对于中等强度的曝光,可以准确地控制,但是对于低曝光和高曝光这两种情形,并没法准确控制,只能按照一个固定的时间进行曝光控制。从而,容易导致生成的高动态范围图像中的阴影区域仍然欠曝,高光区域继续过曝,合成出来的高动态范围图像质量不高。
发明内容
本申请的目的旨在至少在一定程度上解决上述的技术问题之一。
为此,本申请的第一个目的在于提出一种高动态范围图像拍摄方法,该方法,该方法实现了合成的高动态范围图像接近人眼视觉效果,提高了高动态范围图像的质量。
本申请的第二个目的在于提出一种高动态范围图像拍摄装置。
本申请的第三个目的在于提出一种终端设备。
本申请的第四个目的在于提出一种非易失性计算机存储介质。
为了实现上述目的,本申请第一方面实施例提出了一种高动态范围图像拍摄方法,该方法包括:
检测终端设备在初始位置对中心区域曝光后拍摄的原始图像的亮度分布类型;
根据所述亮度分布类型和预设的移动距离,触发微机电系统将图像传感器移动到一个或多个参考位置,并在所述参考位置对中心区域曝光后拍摄对应的参考图像;
根据所述参考图像和所述原始图像合成高动态范围图像。
本申请实施例的高动态范围图像拍摄方法,检测终端设备在初始位置对中心区域曝光后拍摄的原始图像的亮度分布类型,根据亮度分布类型和预设的移动距离,触发微机电系统将图像传感器移动到一个或多个参考位置,并在参考位置对中心区域曝光后拍摄对应的参考图像,进而根据参考图像和原始图像合成高动态范围图像。由此,实现了合成的高动态范围图像接近人眼视觉效果,提高了高动态范围图像的质量。
另外,本申请实施例的高动态范围图像拍摄方法,还具有如下附加的技术特征:
在本申请的一个实施例中,所述检测终端设备在初始位置对中心区域曝光后拍摄的原始图像的亮度分布类型,包括:
检测所述原始图像中上半部分像素亮度与下半部分像素亮度之间的第一差值是否满足预设阈值;
如果所述第一差值满足预设阈值,则确定所述原始图像的亮度呈水平分布;
如果所述第一差值不满足预设阈值,则检测所述原始图像中左半部分像素亮度与右半部分像素亮度之间的第二差值是否满足预设阈值;
如果所述第二差值满足预设阈值,则确定所述原始图像的亮度呈垂直分布。
在本申请的一个实施例中,根据所述亮度分布类型和预设的移动距离,触发微机电系统将图像传感器移动到一个或多个参考位置,包括:
如果所述原始图像的亮度呈水平分布,则触发第一微机电系统按照预设的移动距离,将图像传感器沿垂直方向的正方向,和/或,负方向移动到一个或多个参考位置;或,
如果所述原始图像的亮度呈垂直分布,则触发第二微机电系统按照预设的移动距离,将图像传感器沿水平方向的正方向,和/或,负方向移动到一个或多个参考位置。
在本申请的一个实施例中,在所述根据所述亮度分布类型和预设的移动距离,触发微机电系统将图像传感器移动到一个或多个参考位置之前,还包括:
获取所述图像传感器中与水平方向对应的第一分辨率,以及与垂直方向对应的第二分辨率;
根据所述第一分辨率和所述第二分辨率确定所述移动距离。
在本申请的一个实施例中,所述根据所述参考图像和所述原始图像合成高动态范围图像,包括:
如果所述参考图像的合集没有覆盖所述原始图像,则从所述参考图像中获取与所述原 始图像交叠部分中各像素位置对应的参考像素值;
根据所述交叠部分中各像素位置对应的原始像素值和所述参考像素值,计算所述交叠部分中各像素位置对应的均值;
根据所述交叠部分中各像素位置对应的均值,以及所述原始图像中与所述参考图像非交叠部分对应的原始像素值合成高动态范围图像。
在本申请的一个实施例中,,所述根据所述参考图像和所述原始图像合成高动态范围图像,包括:
如果所述参考图像的合集覆盖所述原始图像,则从所述参考图像中获取与所述原始图像中各像素位置对应的参考像素值;
根据与所述原始图像中各像素位置对应的参考像素值合成高动态范围图像。
为了实现上述目的,本申请第二方面实施例提出了一种高动态范围图像拍摄装置,包括:检测模块,用于检测终端设备在初始位置对中心区域曝光后拍摄的原始图像的亮度分布类型;
触发模块,用于根据所述亮度分布类型和预设的移动距离,触发微机电系统将图像传感器移动到一个或多个参考位置;
拍摄模块,用于在所述参考位置对中心区域曝光后拍摄对应的参考图像;
合成模块,用于根据所述参考图像和所述原始图像合成高动态范围图像。
本申请实施例的高动态范围图像拍摄装置,检测终端设备在初始位置对中心区域曝光后拍摄的原始图像的亮度分布类型,根据亮度分布类型和预设的移动距离,触发微机电系统将图像传感器移动到一个或多个参考位置,并在参考位置对中心区域曝光后拍摄对应的参考图像,进而根据参考图像和原始图像合成高动态范围图像。由此,实现了合成的高动态范围图像接近人眼视觉效果,提高了高动态范围图像的质量。
另外,本申请实施例的高动态范围图像拍摄装置,还具有如下附加的技术特征:
在本申请的一个实施例中,所述检测模块包括:
检测单元,用于检测所述原始图像中上半部分像素亮度与下半部分像素亮度之间的第一差值是否满足预设阈值;
确定单元,用于在所述第一差值满足预设阈时,确定所述原始图像的亮度呈水平分布;
所述检测单元还用于在所述第一差值不满足预设阈值时,检测所述原始图像中左半部分像素亮度与右半部分像素亮度之间的第二差值是否满足预设阈值;
所述确定单元还用于在所述第二差值满足预设阈值时,确定所述原始图像的亮度呈垂直分布。
在本申请的一个实施例中,所述触发模块用于:
在所述原始图像的亮度呈水平分布时,触发第一微机电系统按照预设的移动距离,将图像传感器沿垂直方向的正方向,和/或,负方向移动到一个或多个参考位置;或,
在所述原始图像的亮度呈垂直分布时,触发第二微机电系统按照预设的移动距离,将图像传感器沿水平方向的正方向,和/或,负方向移动到一个或多个参考位置。
在本申请的一个实施例中,所述装置还包括:获取模块,用于获取所述图像传感器中与水平方向对应的第一分辨率,以及与垂直方向对应的第二分辨率;
确定模块,用于根据所述第一分辨率和所述第二分辨率确定所述移动距离。
在本申请的一个实施例中,所述合成模块包括:
第一获取单元,用于在所述参考图像的合集没有覆盖所述原始图像时,从所述参考图像中获取与所述原始图像交叠部分中各像素位置对应的参考像素值;
计算单元,用于根据所述交叠部分中各像素位置对应的原始像素值和所述参考像素值,计算所述交叠部分中各像素位置对应的均值;
第一合成单元,用于根据所述交叠部分中各像素位置对应的均值,以及所述原始图像中与所述参考图像非交叠部分对应的原始像素值合成高动态范围图像。
在本申请的一个实施例中,所述合成模块包括:
第二获取单元,用于在所述参考图像的合集覆盖所述原始图像时,从所述参考图像中获取与所述原始图像中各像素位置对应的参考像素值;
第二合成单元,用于根据与所述原始图像中各像素位置对应的参考像素值合成高动态范围图像。
为了实现上述目的,本申请第三方面实施例提出了一种终端设备,包括:壳体和位于所述壳体内的微电机系统、图像传感器、存储器和处理器,其中,所述微机电系统控制所述图像传感器移动;所述处理器通过读取所述存储器中存储的可执行程序代码来运行与所述可执行程序代码对应的程序,以用于执行以下步骤:
检测终端设备在初始位置对中心区域曝光后拍摄的原始图像的亮度分布类型;
根据所述亮度分布类型和预设的移动距离,触发微机电系统将图像传感器移动到一个或多个参考位置,并在所述参考位置对中心区域曝光后拍摄对应的参考图像;
根据所述参考图像和所述原始图像合成高动态范围图像。
本申请实施例的终端设备,检测终端设备在初始位置对中心区域曝光后拍摄的原始图像的亮度分布类型,根据亮度分布类型和预设的移动距离,触发微机电系统将图像传感器移动到一个或多个参考位置,并在参考位置对中心区域曝光后拍摄对应的参考图像,进而根据参考图像和原始图像合成高动态范围图像。由此,实现了合成的高动态范围图像接近人眼视觉效果,提高了高动态范围图像的质量。
本申请第四方面实施例提供了一种非易失性计算机存储介质,所述计算机存储介质存储有一个或者多个程序,当所述一个或者多个程序被一个设备执行时,使得所述设备执行以下步骤:检测终端设备在初始位置对中心区域曝光后拍摄的原始图像的亮度分布类型;
根据所述亮度分布类型和预设的移动距离,触发微机电系统将图像传感器移动到一个或多个参考位置,并在所述参考位置对中心区域曝光后拍摄对应的参考图像;
根据所述参考图像和所述原始图像合成高动态范围图像。
本申请附加的方面和优点将在下面的描述中部分给出,部分将从下面的描述中变得明显,或通过本申请的实践了解到。
附图说明
本申请上述的和/或附加的方面和优点从下面结合附图对实施例的描述中将变得明显和容易理解,其中:
图1是根据本申请一个实施例的高动态范围图像拍摄方法的流程图;
图2(a)-图2(b)是根据本申请一个实施例的原始图像亮度分布示类型示意图;
图3是根据本申请一个实施例的微机电系统的结构示意图;
图4是根据本申请一个实施例的微机电系统与图像传感器的连接示意图;
图5(a)-图5(b)是根据本申请一个实施例的微机电系统控制图像传感器拍摄的场景示意图;
图6是根据本申请另一个实施例的高动态范围图像拍摄方法的流程图;
图7是根据本申请又一个实施例的高动态范围图像拍摄方法的流程图;
图8是根据本申请还一个实施例的高动态范围图像拍摄方法的流程图;
图9是根据本申请一个实施例的高动态范围图像拍摄装置的结构示意图;
图10是根据本申请另一个实施例的高动态范围图像拍摄装置的结构示意图;
图11是根据本申请又一个实施例的高动态范围图像拍摄装置的结构示意图;
图12是根据本申请还一个实施例的高动态范围图像拍摄装置的结构示意图;
图13是根据本申请再一个实施例的高动态范围图像拍摄装置的结构示意图;以及
图14是根据本申请一个实施例的终端设备的结构示意图。
具体实施方式
下面详细描述本申请的实施例,所述实施例的示例在附图中示出,其中自始至终相同或类似的标号表示相同或类似的元件或具有相同或类似功能的元件。下面通过参考附图描 述的实施例是示例性的,旨在用于解释本申请,而不能理解为对本申请的限制。
下面参考附图描述本申请实施例的高动态范围图像拍摄方法、装置和终端。
图1是根据本申请一个实施例的高动态范围图像拍摄方法的流程图。
如图1所示,该高动态范围图像拍摄方法可包括:
S110,检测终端设备在初始位置对中心区域曝光后拍摄的原始图像的亮度分布类型。
通常,在拍摄高动态范围图像时,可通过调整光圈的大小以及快门的速度等,在同一位置拍摄出三种曝光强度(低曝光、中曝光、高曝光)的图像,之后将这三种曝光强度的图像合成以生成高动态范围图像。
然而,由于拍摄环境的亮度以及操作的复杂性,可能无法在拍摄景物时,准确进行高曝光强度以及低曝光强度的控制,从而很容易导致合成的高动态范围图像中,阴影区域仍然欠曝,高光区域继续过曝,合成出来的高动态范围图像质量不高。
为了解决上述问题,提高图像质量,本申请实施例提供的高动态范围图像拍摄方法,需要检测拍摄的原始图像中亮度的分布情况,以针对不同亮度的区域,拍摄不同曝光强度的参考图像,然后将上述参考图像合成高动态范围图像。
从而,合成高动态范围图像的参考图像是根据拍摄景物的不同亮度进行曝光的,不同的参考图像清晰曝光了原始图像不同亮度的区域,进而参考图像合成高动态范围图像可清晰呈现拍摄景物的每个细节,图像质量较高。
具体地,在实际实施过程中,检测终端设备在初始位置对中心区域曝光后拍摄的原始图像的亮度分布类型,比如确定出原始图像亮度是如图2(a)所示的水平分布的,即原始图像中同一水平线的亮度是一致的,还是如图2(b)所示的垂直分布的,即原始图像中同一垂直线的亮度是一致的等。
需要说明的是,根据具体应用场景的不同,可采用不同的方式检测终端设备在初始位置对中心区域曝光后拍摄的原始图像的亮度分布类型:
在本申请的一个实施例中,可检测原始图像中上半部分像素亮度与下半部分像素亮度之间的第一差值是否满足预设阈值。其中,预设阈值是根据大量实验标定的像素的差值,可通过该差值可以准确判定像素之间的亮度是否差距较明显。
进而,如果第一差值满足预设阈值,则表明原始图像中的像素亮度上半部分和下半部分差距大,从而确定原始图像的亮度呈水平分布。
如果第一差值不满足预设阈值,则表明原始图像中的像素亮度上半部分和下半部分相对一致,差距不明显,因而检测原始图像中左半部分像素亮度与右半部分像素亮度之间的第二差值是否满足预设阈值。
如果第二差值满足预设阈值,则表明原始图像中的像素亮度左半部分和右半部分差距 较大,从而确定原始图像的亮度呈垂直分布。
S120,根据亮度分布类型和预设的移动距离,触发微机电系统将图像传感器移动到一个或多个参考位置,并在参考位置对中心区域曝光后拍摄对应的参考图像。
具体地,在确定原始图像的亮度分布类型后,为了根据不同的原始图像亮度拍摄不同的参考图像,可根据亮度分布类型和预设的移动距离,触发微机电系统将图像传感器移动到一个或多个参考位置,并在参考位置对中心区域曝光后,拍摄对应的参考图像。
具体地,微机电系统是在微电子技术(半导体制造技术)基础上发展起来的,融合了光刻、腐蚀、薄膜、LIGA、硅微加工、非硅微加工和精密机械加工等技术制造的高科技电子机械器件。
如图3所示,微机电系统包括固定电极122、活动电极124及可形变连接件126。活动电极124与固定电极122配合。连接件126固定连接固定电极122及活动电极124。固定电极122及活动电极124用于在驱动电压的作用下产生静电力。连接件126用于在静电力的作用下沿活动电极124移动的方向形变以允许活动电极124移动从而带动图像传感器进行移动。
其中,需要说明的是,根据具体应用需求的不同,设置相应的微机电系统控制图像传感器向不同的方向移动,即如图4所示,可在图像传感器的水平方向和垂直方向分别设置微机电系统,从而微机电系统可带动图像传感器进行水平向左或者向右移动、水平向上或者向下移动等。其中,上述微机电系统控制图像传感器每次移动的步长等,可由系统根据大量实验数据进行标定,也可由用户根据需求自行设置等。
为了更加清楚的说明根据微机电系统如何根据该亮度分布类型和移动距离控制图像传感器移动,下面举例说明:
第一种示例,如果原始图像的亮度呈水平分布,则触发第一微机电系统按照预设的移动距离,将图像传感器沿垂直方向的正方向,或负方向移动到一个或多个参考位置。
在本示例中,如图5(a)中的原始图像(1)图所示,拍摄风景的原始图像时,原始图像中上侧的天空和下侧的草地的亮度差距明显,天空所在区域较为明亮,草地所在区域较为阴暗,原始图像中的草地可能出现过曝现象,草地可能出现欠曝现象。
从而,如图5(a)的参考图像(2)图所示,将图像传感器沿垂直方向的正方向移动到一个参考位置进行拍摄,从而得到的参考图像中,天空得到合适的曝光,得到的参考图像清晰地呈现天空的细节。
或者,如图5(a)的参考图像(3)图所示,将将图像传感器沿垂直方向的负方向移动到一个参考位置进行拍摄,从而得到的参考图像中,草地得到合适的曝光,得到的参考图像清晰地呈现草地的细节。
第二种示例,如果原始图像的亮度呈垂直分布,则触发第二微机电系统按照预设的移动距离,将图像传感器沿水平方向的正方向,或负方向移动到一个或多个参考位置。
在本示例中,如图5(b)中的原始图像(1)图所示,拍摄风景的原始图像时,原始图像中左侧的风车和右侧的天空的亮度差距明显,天空所在区域较为明亮,风车所在区域较为阴暗,原始图像中的天空可能出现过曝现象,风车可能出现欠曝现象。
从而,如图5(b)的参考图像(2)图所示,将图像传感器沿水平方向的正方向移动到一个参考位置进行拍摄,从而得到的参考图像中,天空得到合适的曝光,得到的参考图像清晰地呈现天空的细节。
或者,如图5(b)的参考图像(3)图所示,将图像传感器沿水平方向的负方向移动到一个参考位置进行拍摄,从而得到的参考图像中,风车得到合适的曝光,得到的参考图像清晰地呈现风车的细节。
S130,根据参考图像和原始图像合成高动态范围图像。
具体地,将参考图像和原始图像进行合成,以消除原始图像中过曝或者欠曝的情况,使得得到的高动态范围图像清晰呈现拍摄景物的每个细节,呈现的图像效果更加接近人眼的视觉效果,得到的高动态范围图像的图像质量较好。
需要说明的是,根据具体应用需求的不同,可采用不同的处理方式根据参考图像和原始图像合成高动态范围图像,下面结合附图6和7详细举例说明:
图6是根据本申请另一个实施例的高动态范围图像拍摄方法的流程图,如图6所示,步骤S130可包括:
S210,如果参考图像的合集没有覆盖原始图像,则从参考图像中获取与原始图像交叠部分中各像素位置对应的参考像素值。
具体地,如果参考图像的合集仅仅包含原始图像中部分原始图像,并没有覆盖原始图像,则可以从参考图像中获取与原始图像交叠部分中各像素位置对应的参考像素值。
举例而言,当如图5(a)的原始图像(1)图所示的原始图像的参考图像,只有图5(a)的(2)图时,(2)图没有呈现完全草地的相关图像,并没有覆盖(1)图,则从(2)图中获取与原始图像(1)图交叠的天空以及小部分草地的像素位置对应的参考像素值。
S220,根据交叠部分中各像素位置对应的原始像素值和参考像素值,计算交叠部分中各像素位置对应的均值。
举例而言,获取参考图像与原始图像的交叠部分中,各像素位置对应的原始像素值和参考像素值,当原始图像与参考图像交叠的部分是天空图像时,则获取原始图像中天空图像中各像素位置对应的原始像素值,以及参考图像中天空图像中各像素位置对应的参考像素值,将原始图像与参考图像对应的像素取均值。
S230,根据交叠部分中各像素位置对应的均值,以及原始图像中与参考图像非交叠部分对应的原始像素值合成高动态范围图像。
具体地,在获取到原始图像与参考图像的交叠部分中,各像素位置对应的均值后,对原始图像进行相应的合成处理,即将该均值赋予原始图像中对应的像素位置,原始图像中与参考图像非交叠部分对应的原始像素值不做更改,以生成可以清晰反应拍摄景物的每个区域细节的合成高动态范围图像。
图7是根据本申请又一个实施例的高动态范围图像拍摄方法的流程图,如图7所示,步骤S130可包括:
S310,如果参考图像的合集覆盖原始图像,则从参考图像中获取与原始图像中各像素位置对应的参考像素值。
具体地,如果参考图像的合集包含原始图像中全部原始图像,覆盖了原始图像,则可以从参考图像中获取与原始图像中各像素位置对应的参考像素值。
举例而言,当如图5(a)的原始图像(1)图所示的原始图像的参考图像,包含图5(a)的(2)图和(3)图时,(2)图和(3)图呈现完全(1)图中草地和天空的相关图像,覆盖(1)图中所示的图像,则从(2)图和(3)图中分别获取与原始图像(1)图中天空对应的参考像素值以及草地对应的参考像素值。
S320,根据与原始图像中各像素位置对应的参考像素值合成高动态范围图像。
具体地,在获取到与原始图像各像素位置对应的参考图像的参考像素值后,可将原始图像的原始像素值与对应的参考像素值,进行相应的运算处理,比如将原始像素值与对应的参考像素值进行均值处理获取像素均值等,进而将处理得到的像素值赋予原始像素对应的像素位置的像素值,以合成高动态范围图像,该高动态范围图像可以清晰反应拍摄景物的每个区域的细节。
综上所述,本申请实施例的高动态范围图像拍摄方法,检测终端设备在初始位置对中心区域曝光后拍摄的原始图像的亮度分布类型,根据亮度分布类型和预设的移动距离,触发微机电系统将图像传感器移动到一个或多个参考位置,并在参考位置对中心区域曝光后拍摄对应的参考图像,进而根据参考图像和原始图像合成高动态范围图像。由此,实现了合成的高动态范围图像接近人眼视觉效果,提高了高动态范围图像的质量。
基于以上实施例,应当理解的是,在实际应用中,为了更好地利用图像传感器的分辨率等,使得得到的高动态范围图像的质量更高,在检测终端设备在初始位置对中心区域曝光后拍摄的原始图像的亮度分布类型后,可根据预设的控制策略和移动距离触发微机电系统在图像传感器分辨率的分布情况,确定出上述图像传感器移动的移动距离。
具体地,图8是根据本申请还一个实施例的高动态范围图像拍摄方法的流程图,如图 8所示,该方法包括:
S410,检测终端设备在初始位置对中心区域曝光后拍摄的原始图像的亮度分布类型。
具体地,可根据终端设备在初始位置对中心区域曝光后拍摄的原始图像的像素亮度的分布情况,检测原始图像的亮度分布类型。
S420,获取图像传感器中与水平方向对应的第一分辨率,以及与垂直方向对应的第二分辨率。
S430,根据第一分辨率和第二分辨率确定移动距离。
具体地,当检测原始图像的亮度分布类型后,为了使得拍摄的参考图像能针对每个亮度进行合适的曝光,需要设置确定图像传感器移动时合适的移动距离。
具体而言,根据具体应用场景的不同,可以采取不同方式确定出图像传感器移动时合适的移动距离:
在本申请的一个实施例中,可获取图像传感器中与水平方向对应的第一分辨率,以及与垂直方向对应的第二分辨率,进而通过对第一分辨率和第二分辨率进行相应的运算处理,确定出图像传感器移动对应的移动距离。
在本实施例中,获取图像传感器的水平方向的第一分辨率w,垂直方向的第二分辨率为h,w大于等于h,如果原始图像的亮度是水平分布的,则可将
Figure PCTCN2017080140-appb-000001
的值,即第二分辨率的四分之一值作为图像传感器垂直移动对应的移动距离。
如果原始图像的亮度是处置分布的,则可将
Figure PCTCN2017080140-appb-000002
的值,即第一分辨率的四分之一值作为图像传感器水平移动对应的移动距离。
S440,根据亮度分布类型和预设的移动距离,触发微机电系统将图像传感器移动到一个或多个参考位置,并在参考位置对中心区域曝光后拍摄对应的参考图像。
S450,根据参考图像和原始图像合成高动态范围图像。
本实施例中步骤S450和S460的具体实施方式参见上述实施例中的步骤S120-S130的实施过程,此处不再赘述。
综上所述,本申请实施例的高动态范围图像拍摄方法,获取图像传感器中与水平方向对应的第一分辨率,以及与垂直方向对应的第二分辨率,并根据第一分辨率和第二分辨率确定移动距离。由此,可使得在检测获知原始图像的亮度分布类型时,微机电系统可以更加合适的移动距离移动图像传感器,使得拍摄的参考图像更加清晰的呈现出原始图像中,不同亮度所在区域的图像的细节,有效提高了合成的高动态范围图像的质量。
为了实现上述实施例,本申请还提出了一种高动态范围图像拍摄装置,图9是根据本申请一个实施例的高动态范围图像拍摄装置的结构示意图,如图9所示,该高动态范围图像拍摄装置包括:检测模块10、触发模块20、拍摄模块30和合成模块40。
其中,检测模块10,用于检测终端设备在初始位置对中心区域曝光后拍摄的原始图像的亮度分布类型。
图10是根据本申请另一个实施例的高动态范围图像拍摄装置的结构示意图,如图10所示,该检测模块10可包括:检测单元11和确定单元12。
其中,检测单元11,用于检测原始图像中上半部分像素亮度与下半部分像素亮度之间的第一差值是否满足预设阈值。
确定单元12,用于在第一差值满足预设阈时,确定原始图像的亮度呈水平分布。
检测单元11还用于在第一差值不满足预设阈值时,检测原始图像中左半部分像素亮度与右半部分像素亮度之间的第二差值是否满足预设阈值。
确定单元12还用于在第二差值满足预设阈值时,确定原始图像的亮度呈垂直分布。
触发模块20,用于根据亮度分布类型和预设的移动距离,触发微机电系统将图像传感器移动到一个或多个参考位置。
具体地,触发模块20用于:在原始图像的亮度呈水平分布时,触发第一微机电系统按照预设的移动距离,将图像传感器沿垂直方向的正方向,或负方向移动到一个或多个参考位置。
或者触发模块20用于在原始图像的亮度呈垂直分布时,触发第二微机电系统按照预设的移动距离,将图像传感器沿水平方向的正方向,或负方向移动到一个或多个参考位置。
拍摄模块30,用于在参考位置对中心区域曝光后拍摄对应的参考图像。
合成模块40,用于根据参考图像和原始图像合成高动态范围图像。
图11是根据本申请又一个实施例的高动态范围图像拍摄装置的结构示意图,如图11所示,在如图9所示的基础上,该合成模块40可包括:第一获取单元41、计算单元42和第一合成单元43。
其中,第一获取单元41,用于在参考图像的合集没有覆盖原始图像时,从参考图像中获取与原始图像交叠部分中各像素位置对应的参考像素值。
计算单元42,用于根据交叠部分中各像素位置对应的原始像素值和参考像素值,计算交叠部分中各像素位置对应的均值。
第一合成单元43,用于根据交叠部分中各像素位置对应的均值,以及原始图像中与参考图像非交叠部分对应的原始像素值合成高动态范围图像。
图12是根据本申请还一个实施例的高动态范围图像拍摄装置的结构示意图,如图12所示,在如图9所示的基础上,该合成模块40可包括:第二获取单元44和第二合成单元45。
其中,第二获取单元44,用于在参考图像的合集覆盖原始图像时,从参考图像中获取 与原始图像中各像素位置对应的参考像素值。
第二合成单元45,用于根据与原始图像中各像素位置对应的参考像素值合成高动态范围图像。
需要说明的是,前述对高动态范围图像拍摄方法实施例的描述,也适应于对本申请实施例的高动态范围图像拍摄装置的描述,其实现原理类似,在此不再赘述。
综上所述,本申请实施例的高动态范围图像拍摄装置,检测终端设备在初始位置对中心区域曝光后拍摄的原始图像的亮度分布类型,根据亮度分布类型和预设的移动距离,触发微机电系统将图像传感器移动到一个或多个参考位置,并在参考位置对中心区域曝光后拍摄对应的参考图像,进而根据参考图像和原始图像合成高动态范围图像。由此,实现了合成的高动态范围图像接近人眼视觉效果,提高了高动态范围图像的质量。
图13是根据本申请再一个实施例的高动态范围图像拍摄装置的结构示意图,如图13所示,在如图9所示的基础上,该高动态范围图像拍摄装置还可包括:获取模块50和确定模块60。
确定模块60,用于根据第一分辨率和第二分辨率确定移动距离。
需要说明的是,前述对高动态范围图像拍摄方法实施例的描述,也适应于对本申请实施例的高动态范围图像拍摄装置的描述,其实现原理类似,在此不再赘述。
综上所述,本申请实施例的高动态范围图像拍摄装置,获取图像传感器中与水平方向对应的第一分辨率,以及与垂直方向对应的第二分辨率,并根据第一分辨率和第二分辨率确定移动距离。由此,可使得在检测获知原始图像的亮度分布类型时,微机电系统可以更加合适的移动距离移动图像传感器,使得拍摄的参考图像更加清晰的呈现出原始图像中,不同亮度所在区域的图像的细节,有效提高了合成的高动态范围图像的质量。
为了实现上述实施例,本申请还提出了一种终端设备,图14是根据本申请一个实施例的终端设备的结构示意图,如图14所示,该终端设备1000包括:壳体1100和位于壳体1100内的微电机系统1110、图像传感器1120、存储器1130和处理器1140,其中,微机电系统1110控制图像传感器1120移动;处理器1140通过读取存储器1130中存储的可执行程序代码来运行与可执行程序代码对应的程序,以用于执行以下步骤:
检测终端设备在初始位置对中心区域曝光后拍摄的原始图像的亮度分布类型。
根据亮度分布类型和预设的移动距离,触发微机电系统将图像传感器移动到一个或多个参考位置,并在参考位置对中心区域曝光后拍摄对应的参考图像。
根据参考图像和原始图像合成高动态范围图像。
需要说明的是,前述对高动态范围图像拍摄方法实施例的描述,也适应于对本申请实施例的终端设备的描述,其实现原理类似,在此不再赘述。
综上所述,本申请实施例的终端设备,检测终端设备在初始位置对中心区域曝光后拍摄的原始图像的亮度分布类型,根据亮度分布类型和预设的移动距离,触发微机电系统将图像传感器移动到一个或多个参考位置,并在参考位置对中心区域曝光后拍摄对应的参考图像,进而根据参考图像和原始图像合成高动态范围图像。由此,实现了合成的高动态范围图像接近人眼视觉效果,提高了高动态范围图像的质量。
在本说明书的描述中,参考术语“一个实施例”、“一些实施例”、“示例”、“具体示例”、或“一些示例”等的描述意指结合该实施例或示例描述的具体特征、结构、材料或者特点包含于本申请的至少一个实施例或示例中。在本说明书中,对上述术语的示意性表述不必须针对的是相同的实施例或示例。而且,描述的具体特征、结构、材料或者特点可以在任一个或多个实施例或示例中以合适的方式结合。此外,在不相互矛盾的情况下,本领域的技术人员可以将本说明书中描述的不同实施例或示例以及不同实施例或示例的特征进行结合和组合。
尽管上面已经示出和描述了本申请的实施例,可以理解的是,上述实施例是示例性的,不能理解为对本申请的限制,本领域的普通技术人员在本申请的范围内可以对上述实施例进行变化、修改、替换和变型。

Claims (14)

  1. 一种高动态范围图像拍摄方法,其特征在于,包括以下步骤:
    检测终端设备在初始位置对中心区域曝光后拍摄的原始图像的亮度分布类型;
    根据所述亮度分布类型和预设的移动距离,触发微机电系统将图像传感器移动到一个或多个参考位置,并在所述参考位置对中心区域曝光后拍摄对应的参考图像;
    根据所述参考图像和所述原始图像合成高动态范围图像。
  2. 如权利要求1所述的方法,其特征在于,所述检测终端设备在初始位置对中心区域曝光后拍摄的原始图像的亮度分布类型,包括:
    检测所述原始图像中上半部分像素亮度与下半部分像素亮度之间的第一差值是否满足预设阈值;
    如果所述第一差值满足预设阈值,则确定所述原始图像的亮度呈水平分布;
    如果所述第一差值不满足预设阈值,则检测所述原始图像中左半部分像素亮度与右半部分像素亮度之间的第二差值是否满足预设阈值;
    如果所述第二差值满足预设阈值,则确定所述原始图像的亮度呈垂直分布。
  3. 如权利要求1或2所述的方法,其特征在于,根据所述亮度分布类型和预设的移动距离,触发微机电系统将图像传感器移动到一个或多个参考位置,包括:
    如果所述原始图像的亮度呈水平分布,则触发第一微机电系统按照预设的移动距离,将图像传感器沿垂直方向的正方向,和/或,负方向移动到一个或多个参考位置;或,
    如果所述原始图像的亮度呈垂直分布,则触发第二微机电系统按照预设的移动距离,将图像传感器沿水平方向的正方向,和/或,负方向移动到一个或多个参考位置。
  4. 如权利要求1-3任一所述的方法,其特征在于,在所述根据所述亮度分布类型和预设的移动距离,触发微机电系统将图像传感器移动到一个或多个参考位置之前,还包括:
    获取所述图像传感器中与水平方向对应的第一分辨率,以及与垂直方向对应的第二分辨率;
    根据所述第一分辨率和所述第二分辨率确定所述移动距离。
  5. 如权利要求1-4任一所述的方法,其特征在于,所述根据所述参考图像和所述原始图像合成高动态范围图像,包括:
    如果所述参考图像的合集没有覆盖所述原始图像,则从所述参考图像中获取与所述原始图像交叠部分中各像素位置对应的参考像素值;
    根据所述交叠部分中各像素位置对应的原始像素值和所述参考像素值,计算所述交叠部分中各像素位置对应的均值;
    根据所述交叠部分中各像素位置对应的均值,以及所述原始图像中与所述参考图像非交叠部分对应的原始像素值合成高动态范围图像。
  6. 如权利要求1-5任一所述的方法,其特征在于,所述根据所述参考图像和所述原始图像合成高动态范围图像,包括:
    如果所述参考图像的合集覆盖所述原始图像,则从所述参考图像中获取与所述原始图像中各像素位置对应的参考像素值;
    根据与所述原始图像中各像素位置对应的参考像素值合成高动态范围图像。
  7. 一种高动态范围图像拍摄装置,其特征在于,包括:
    检测模块,用于检测终端设备在初始位置对中心区域曝光后拍摄的原始图像的亮度分布类型;
    触发模块,用于根据所述亮度分布类型和预设的移动距离,触发微机电系统将图像传感器移动到一个或多个参考位置;
    拍摄模块,用于在所述参考位置对中心区域曝光后拍摄对应的参考图像;
    合成模块,用于根据所述参考图像和所述原始图像合成高动态范围图像。
  8. 如权利要求7所述的装置,其特征在于,所述检测模块包括:
    检测单元,用于检测所述原始图像中上半部分像素亮度与下半部分像素亮度之间的第一差值是否满足预设阈值;
    确定单元,用于在所述第一差值满足预设阈时,确定所述原始图像的亮度呈水平分布;
    所述检测单元还用于在所述第一差值不满足预设阈值时,检测所述原始图像中左半部分像素亮度与右半部分像素亮度之间的第二差值是否满足预设阈值;
    所述确定单元还用于在所述第二差值满足预设阈值时,确定所述原始图像的亮度呈垂直分布。
  9. 如权利要求7或8所述的装置,其特征在于,所述触发模块用于:
    在所述原始图像的亮度呈水平分布时,触发第一微机电系统按照预设的移动距离,将图像传感器沿垂直方向的正方向,和/或,负方向移动到一个或多个参考位置;或,
    在所述原始图像的亮度呈垂直分布时,触发第二微机电系统按照预设的移动距离,将图像传感器沿水平方向的正方向,和/或,负方向移动到一个或多个参考位置。
  10. 如权利要求7-9任一所述的装置,其特征在于,还包括:
    获取模块,用于获取所述图像传感器中与水平方向对应的第一分辨率,以及与垂直方向对应的第二分辨率;
    确定模块,用于根据所述第一分辨率和所述第二分辨率确定所述移动距离。
  11. 如权利要求7-10任一所述的装置,其特征在于,所述合成模块包括:
    第一获取单元,用于在所述参考图像的合集没有覆盖所述原始图像时,从所述参考图像中获取与所述原始图像交叠部分中各像素位置对应的参考像素值;
    计算单元,用于根据所述交叠部分中各像素位置对应的原始像素值和所述参考像素值,计算所述交叠部分中各像素位置对应的均值;
    第一合成单元,用于根据所述交叠部分中各像素位置对应的均值,以及所述原始图像中与所述参考图像非交叠部分对应的原始像素值合成高动态范围图像。
  12. 如权利要求7-11任一所述的装置,其特征在于,所述合成模块包括:
    第二获取单元,用于在所述参考图像的合集覆盖所述原始图像时,从所述参考图像中获取与所述原始图像中各像素位置对应的参考像素值;
    第二合成单元,用于根据与所述原始图像中各像素位置对应的参考像素值合成高动态范围图像。
  13. 一种终端设备,其特征在于,包括:壳体和位于所述壳体内的微电机系统、图像传感器、存储器和处理器,其中,所述微机电系统控制所述图像传感器移动;所述处理器通过读取所述存储器中存储的可执行程序代码来运行与所述可执行程序代码对应的程序,以用于执行以下步骤:
    检测终端设备在初始位置对中心区域曝光后拍摄的原始图像的亮度分布类型;
    根据所述亮度分布类型和预设的移动距离,触发微机电系统将图像传感器移动到一个或多个参考位置,并在所述参考位置对中心区域曝光后拍摄对应的参考图像;
    根据所述参考图像和所述原始图像合成高动态范围图像。
  14. 一种非易失性计算机存储介质,其特征在于,所述计算机存储介质存储有一个或者多个程序,当所述一个或者多个程序被一个设备执行时,使得所述设备执行以下步骤:
    检测终端设备在初始位置对中心区域曝光后拍摄的原始图像的亮度分布类型;
    根据所述亮度分布类型和预设的移动距离,触发微机电系统将图像传感器移动到一个或多个参考位置,并在所述参考位置对中心区域曝光后拍摄对应的参考图像;
    根据所述参考图像和所述原始图像合成高动态范围图像。
PCT/CN2017/080140 2016-07-29 2017-04-11 高动态范围图像拍摄方法、装置和终端设备 Ceased WO2018018934A1 (zh)

Priority Applications (4)

Application Number Priority Date Filing Date Title
US16/311,352 US10623654B2 (en) 2016-07-29 2017-04-11 Method and device for capturing high dynamic range image, and electronic device
EP21181755.6A EP3923567A1 (en) 2016-07-29 2017-04-11 Method and device for capturing high dynamic range image, and electronic device
EP17833240.9A EP3490244B1 (en) 2016-07-29 2017-04-11 Method and apparatus for shooting image having high dynamic range, and terminal device
US16/435,538 US10616499B2 (en) 2016-07-29 2019-06-09 Method and device for capturing high dynamic range image, and electronic device

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201610616167.XA CN106161979B (zh) 2016-07-29 2016-07-29 高动态范围图像拍摄方法、装置和终端设备
CN201610616167.X 2016-07-29

Related Child Applications (2)

Application Number Title Priority Date Filing Date
US16/311,352 A-371-Of-International US10623654B2 (en) 2016-07-29 2017-04-11 Method and device for capturing high dynamic range image, and electronic device
US16/435,538 Continuation US10616499B2 (en) 2016-07-29 2019-06-09 Method and device for capturing high dynamic range image, and electronic device

Publications (1)

Publication Number Publication Date
WO2018018934A1 true WO2018018934A1 (zh) 2018-02-01

Family

ID=57327711

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/080140 Ceased WO2018018934A1 (zh) 2016-07-29 2017-04-11 高动态范围图像拍摄方法、装置和终端设备

Country Status (4)

Country Link
US (2) US10623654B2 (zh)
EP (2) EP3490244B1 (zh)
CN (2) CN107370962B (zh)
WO (1) WO2018018934A1 (zh)

Families Citing this family (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106254773B (zh) 2016-07-29 2018-01-23 广东欧珀移动通信有限公司 光学图像稳定系统、成像装置及电子装置
CN107370962B (zh) 2016-07-29 2019-10-15 Oppo广东移动通信有限公司 高动态范围图像拍摄方法、装置和终端设备
WO2018112763A1 (zh) * 2016-12-20 2018-06-28 广东欧珀移动通信有限公司 图像处理方法与装置、控制方法与装置、成像与电子装置
CN109997351B (zh) * 2016-12-22 2021-02-23 华为技术有限公司 用于生成高动态范围图像的方法和装置
JP7439556B2 (ja) * 2020-02-14 2024-02-28 オムロン株式会社 画像処理装置、画像センサ、画像処理装置の制御方法
CN111311532B (zh) * 2020-03-26 2022-11-11 深圳市商汤科技有限公司 图像处理方法及装置、电子设备、存储介质
CN111479072B (zh) * 2020-04-14 2021-12-17 深圳市道通智能航空技术股份有限公司 高动态范围图像合成方法、装置、图像处理芯片及航拍相机
CN112489095B (zh) * 2020-11-25 2021-08-17 东莞埃科思科技有限公司 参考图的选取方法、装置、存储介质及深度相机
TWI852079B (zh) * 2022-09-08 2024-08-11 大陸商廣州印芯半導體技術有限公司 圖像融合方法

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1451230A (zh) * 2000-07-21 2003-10-22 纽约市哥伦比亚大学托管会 图象拼合方法与设备
CN1936640A (zh) * 2005-09-23 2007-03-28 鸿富锦精密工业(深圳)有限公司 数码相机模组
CN101888487A (zh) * 2010-06-02 2010-11-17 中国科学院深圳先进技术研究院 高动态范围视频成像系统和图像生成方法
CN102348066A (zh) * 2010-07-30 2012-02-08 株式会社尼康 摄像装置及图像合成程序
CN104079837A (zh) * 2014-07-17 2014-10-01 广东欧珀移动通信有限公司 一种基于图像传感器的对焦方法及装置
US20150373252A1 (en) * 2014-06-20 2015-12-24 Qualcomm Incorporated Autofocus for folded optic array cameras
US20160182887A1 (en) * 2014-12-23 2016-06-23 Mems Drive, Inc. Three dimensional imaging with a single camera
CN106161979A (zh) * 2016-07-29 2016-11-23 广东欧珀移动通信有限公司 高动态范围图像拍摄方法、装置和终端设备

Family Cites Families (18)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5828793A (en) 1996-05-06 1998-10-27 Massachusetts Institute Of Technology Method and apparatus for producing digital images having extended dynamic ranges
US9826159B2 (en) * 2004-03-25 2017-11-21 Clear Imaging Research, Llc Method and apparatus for implementing a digital graduated filter for an imaging apparatus
JP4466261B2 (ja) * 2004-07-30 2010-05-26 カシオ計算機株式会社 撮像装置、明るさ補正方法及びプログラム
JP4089911B2 (ja) * 2005-02-23 2008-05-28 三菱電機株式会社 画像入力装置
JP4852321B2 (ja) * 2006-02-28 2012-01-11 パナソニック株式会社 撮像装置
US8189100B2 (en) * 2006-07-25 2012-05-29 Qualcomm Incorporated Mobile device with dual digital camera sensors and methods of using the same
US8242426B2 (en) * 2006-12-12 2012-08-14 Dolby Laboratories Licensing Corporation Electronic camera having multiple sensors for capturing high dynamic range images and related methods
US7907185B2 (en) * 2007-07-16 2011-03-15 Aptina Imaging Corporation Lens correction logic for image sensors
JP4618342B2 (ja) * 2008-05-20 2011-01-26 日本テキサス・インスツルメンツ株式会社 固体撮像装置
CN101360192A (zh) * 2008-08-15 2009-02-04 苏州大学 一种数字光学成像系统及其成像方法
JP2010273038A (ja) * 2009-05-20 2010-12-02 Hoya Corp 撮像装置
KR101133733B1 (ko) * 2009-12-10 2012-04-09 삼성전자주식회사 전자 셔터를 이용한 다단계 노출 방법 및 이를 이용한 촬영 장치
US20120281126A1 (en) 2011-04-11 2012-11-08 Fossum Eric R Digital integration sensor
CN104782116B (zh) * 2012-09-18 2016-12-14 菲力尔系统公司 热图像中的行和列降噪
CN103516984A (zh) 2013-09-13 2014-01-15 广东欧珀移动通信有限公司 相机智能切换hdr模式的方法及装置
US9578217B2 (en) 2014-05-27 2017-02-21 Mems Drive, Inc. Moving image sensor package
CN104581345B (zh) * 2014-12-29 2017-11-24 广东欧珀移动通信有限公司 一种调整显示帧的方法及装置
JP6503907B2 (ja) * 2015-06-12 2019-04-24 リコーイメージング株式会社 撮影装置、撮影制御装置、撮影制御方法、及び撮影制御プログラム

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1451230A (zh) * 2000-07-21 2003-10-22 纽约市哥伦比亚大学托管会 图象拼合方法与设备
CN1936640A (zh) * 2005-09-23 2007-03-28 鸿富锦精密工业(深圳)有限公司 数码相机模组
CN101888487A (zh) * 2010-06-02 2010-11-17 中国科学院深圳先进技术研究院 高动态范围视频成像系统和图像生成方法
CN102348066A (zh) * 2010-07-30 2012-02-08 株式会社尼康 摄像装置及图像合成程序
US20150373252A1 (en) * 2014-06-20 2015-12-24 Qualcomm Incorporated Autofocus for folded optic array cameras
CN104079837A (zh) * 2014-07-17 2014-10-01 广东欧珀移动通信有限公司 一种基于图像传感器的对焦方法及装置
US20160182887A1 (en) * 2014-12-23 2016-06-23 Mems Drive, Inc. Three dimensional imaging with a single camera
CN106161979A (zh) * 2016-07-29 2016-11-23 广东欧珀移动通信有限公司 高动态范围图像拍摄方法、装置和终端设备

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
See also references of EP3490244A4 *

Also Published As

Publication number Publication date
CN106161979B (zh) 2017-08-25
US10616499B2 (en) 2020-04-07
EP3490244A1 (en) 2019-05-29
CN107370962B (zh) 2019-10-15
CN107370962A (zh) 2017-11-21
EP3490244B1 (en) 2021-08-04
US20190222739A1 (en) 2019-07-18
US10623654B2 (en) 2020-04-14
US20190297247A1 (en) 2019-09-26
EP3923567A1 (en) 2021-12-15
EP3490244A4 (en) 2019-07-17
CN106161979A (zh) 2016-11-23

Similar Documents

Publication Publication Date Title
CN106161979B (zh) 高动态范围图像拍摄方法、装置和终端设备
CN111526299B (zh) 一种高动态范围图像合成方法和电子设备
JP4497211B2 (ja) 撮像装置、撮像方法及びプログラム
KR101633460B1 (ko) 다중 노출 제어 장치 및 그 방법
JP6460653B2 (ja) 画像処理装置、それを備えた撮像装置、画像処理方法、及び画像処理プログラム
JP5226600B2 (ja) 画像変形装置およびその動作制御方法
WO2018018929A1 (zh) 图像暗角补偿方法、装置和终端设备
WO2016101742A1 (en) Light field collection control methods and apparatuses, light field collection devices
CN103997599A (zh) 图像处理设备、图像拾取设备以及图像处理方法
JP2015204470A (ja) 撮像装置およびその制御方法ならびにプログラム
JP2018201156A (ja) 画像処理装置および画像処理方法
KR101605129B1 (ko) 디지털 촬영 장치, 그 제어 방법 및 이를 기록한 기록 매체
JP7475846B2 (ja) 情報処理装置、撮像装置、情報処理方法および撮像装置の制御方法
JP2014171146A (ja) 撮影装置
JP2008199461A (ja) 撮像装置
JP7512173B2 (ja) 情報処理装置、撮像装置、プログラム、記憶媒体及び方法
JP5111023B2 (ja) 撮像装置及びその制御方法
HK40071388A (zh) 一种高动态范围图像合成方法和电子设备
JP2018164150A (ja) 撮像装置、画像処理装置、及び、画像処理システム
EP3241349A1 (en) Stereo imaging
JP6817855B2 (ja) 画像処理装置、撮像装置、画像処理方法、及びプログラム
HK40071388B (zh) 一种高动态范围图像合成方法和电子设备
JP2009145622A (ja) 電子カメラ
JP2018050231A (ja) 撮像装置、撮像方法および撮像制御プログラム
JP2016200701A (ja) 撮像装置及びその制御方法、プログラム並びに記憶媒体

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 17833240

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

ENP Entry into the national phase

Ref document number: 2017833240

Country of ref document: EP

Effective date: 20190228