CN110458860A - Image processing method and image processing device - Google Patents

Image processing method and image processing device Download PDF

Info

Publication number
CN110458860A
CN110458860A CN201810431094.6A CN201810431094A CN110458860A CN 110458860 A CN110458860 A CN 110458860A CN 201810431094 A CN201810431094 A CN 201810431094A CN 110458860 A CN110458860 A CN 110458860A
Authority
CN
China
Prior art keywords
image
processor
images
area
multiple images
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.)
Pending
Application number
CN201810431094.6A
Other languages
Chinese (zh)
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.)
Altek Corp
Original Assignee
Altek Corp
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 Altek Corp filed Critical Altek Corp
Priority to CN201810431094.6A priority Critical patent/CN110458860A/en
Publication of CN110458860A publication Critical patent/CN110458860A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T5/00Image enhancement or restoration
    • G06T5/90Dynamic range modification of images or parts thereof
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/10Segmentation; Edge detection
    • G06T7/13Edge detection
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/10Segmentation; Edge detection
    • G06T7/194Segmentation; Edge detection involving foreground-background segmentation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/50Depth or shape recovery
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/90Determination of colour characteristics

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Image Processing (AREA)

Abstract

The present invention proposes a kind of image processing method and image processing apparatus.Described image processing method includes: the multiple depth informations for obtaining multiple images by processor and calculating correspondence image;By processor according to the multiple colouring informations, multiple luminance informations and depth information of image by each image segmentation at foreground area and background area;The foreground area of the first image in image is obtained by processor, wherein the brightness of the foreground area of the first image is greater than the first threshold value;The background area that the second image in image is obtained by processor, wherein the brightness of the background area of the second image is less than the second threshold value;And the foreground area of the first image and the background area of the second image are overlapped to generate high dynamic range images by processor.

Description

图像处理方法及图像处理装置Image processing method and image processing device

技术领域technical field

本发明涉及一种图像处理方法及图像处理装置,尤其涉及一种能利用较少系统资源来产生清晰图像的图像处理方法及图像处理装置。The present invention relates to an image processing method and an image processing device, in particular to an image processing method and an image processing device that can generate clear images by using less system resources.

背景技术Background technique

在传统的单张图像获取技术中,若场景的亮度呈现高反差,主体(例如,人像)的亮度会因为传感器动态范围的限制而变成较暗。若为了提高暗部区域的图像亮度而选择较长的曝光时间,会造成图像中其他明亮区域因曝光时间过长而产生过曝的情况,也就是产生主体亮度正常但背景过曝的图像,如图1所示。若为了避免亮部区域过曝而选择较短的曝光时间,会造成图像中的主体区域因曝光不足而过暗,如图2所示。因此,不论如何设定曝光时间,都无法拍到主体与背景皆清晰且明亮的图像。In the traditional single-image acquisition technology, if the brightness of the scene presents high contrast, the brightness of the subject (eg, a portrait) will become darker due to the limitation of the dynamic range of the sensor. If a longer exposure time is selected in order to improve the image brightness in the dark area, other bright areas in the image will be overexposed due to too long exposure time. 1 shown. If a shorter exposure time is selected to avoid overexposure of the bright area, the main area in the image will be too dark due to underexposure, as shown in Figure 2. Therefore, no matter how the exposure time is set, it is impossible to capture a clear and bright image of both the subject and the background.

为了解决上述问题,高动态图像处理技术被提出来。高动态图像处理技术是将多张图像叠成单一高动态范围图像,再通过色调再现(tone reproduction)技术来逐一调整每个像素的亮度。高动态图像处理技术可以较精准地还原现场景物的动态范围,避免图像有过曝区域或过暗区域,并能显示出明亮区域与暗部区域的细节。然而,高动态图像处理技术通常需要获得多张不同曝光时间的图像,因此必须花费较多的计算时间与存储器空间才能完成图像叠合。为了要减少图像叠合时间,区域性色调再现的方法被提出来。然而,区域性色调再现容易产生光晕问题,例如在图像中的黑白边界处会有异常的白边或黑边,如图3中的光晕300。因此,如何能利用较少系统资源来产生清晰图像,是本领域技术人员应致力的目标。In order to solve the above problems, high dynamic image processing technology is proposed. High dynamic image processing technology is to stack multiple images into a single high dynamic range image, and then adjust the brightness of each pixel one by one through tone reproduction technology. The high dynamic image processing technology can accurately restore the dynamic range of the scene, avoid the image with overexposed areas or dark areas, and can display the details of bright areas and dark areas. However, high dynamic image processing technology usually needs to obtain multiple images with different exposure times, so it must spend more computing time and memory space to complete the image overlay. In order to reduce the image overlay time, the method of regional tone reproduction is proposed. However, regional tone reproduction is prone to halo problems, such as abnormal white or black borders at black and white boundaries in the image, such as halo 300 in FIG. 3 . Therefore, how to use less system resources to generate clear images is the goal that those skilled in the art should strive for.

发明内容SUMMARY OF THE INVENTION

有鉴于此,本发明提供一种图像处理方法及图像处理装置,能利用较少系统资源来产生清晰图像。In view of this, the present invention provides an image processing method and an image processing apparatus, which can utilize less system resources to generate clear images.

本发明提出一种图像处理方法,包括:通过处理器获得多个图像并计算对应上述图像的多个深度信息;通过处理器根据上述图像的多个颜色信息、多个亮度信息及上述深度信息将每个图像分割成前景区域及背景区域;通过处理器获得上述图像中的第一图像的前景区域,其中第一图像的前景区域的亮度大于第一门槛值;通过处理器获得上述图像中的第二图像的背景区域,其中第二图像的背景区域的亮度小于第二门槛值;以及通过处理器叠合第一图像的前景区域及第二图像的背景区域以产生高动态范围图像。The present invention provides an image processing method, comprising: obtaining a plurality of images by a processor and calculating a plurality of depth information corresponding to the above images; Each image is divided into a foreground area and a background area; the foreground area of the first image in the above image is obtained by the processor, wherein the brightness of the foreground area of the first image is greater than the first threshold value; the first image in the above image is obtained by the processor. background areas of two images, wherein the brightness of the background area of the second image is less than the second threshold value; and the processor superimposes the foreground area of the first image and the background area of the second image to generate a high dynamic range image.

在本发明的一实施例中,上述图像处理方法还包括:通过处理器对第二图像的背景区域进行图像过滤操作,图像过滤操作包括背景虚化操作及物体移除操作。In an embodiment of the present invention, the above-mentioned image processing method further includes: performing an image filtering operation on the background area of the second image by the processor, and the image filtering operation includes a background blur operation and an object removal operation.

在本发明的一实施例中,上述图像处理方法还包括:通过处理器从上述图像的前景区域或背景区域获得对应物体的偏移量,并根据偏移量对该些图像进行变形转换(transform)操作。In an embodiment of the present invention, the image processing method further includes: obtaining, by a processor, an offset of a corresponding object from a foreground area or a background area of the image, and transforming these images according to the offset. )operate.

在本发明的一实施例中,上述图像处理方法还包括:通过处理器根据第一图像的前景区域及第二图像的背景区域的亮度对高动态范围图像的前景区域及背景区域的边缘进行色调再现操作。In an embodiment of the present invention, the above image processing method further includes: using a processor to tone the edges of the foreground area and the background area of the high dynamic range image according to the brightness of the foreground area of the first image and the background area of the second image. Repeat operation.

在本发明的一实施例中,上述深度信息根据多镜头图像或结构光信息获得。In an embodiment of the present invention, the above-mentioned depth information is obtained according to a multi-lens image or structured light information.

本发明提出一种图像处理装置,包括:处理器;图像传感器,耦接到处理器并获取多个图像;以及一存储器,耦接到处理器。上述处理器获得多个图像并计算对应上述图像的多个深度信息;根据上述图像的多个颜色信息、多个亮度信息及上述深度信息将每个图像分割成前景区域及背景区域;获得上述图像中的第一图像的前景区域,其中第一图像的前景区域的亮度大于第一门槛值;获得上述图像中的第二图像的背景区域,其中第二图像的背景区域的亮度小于第二门槛值;以及叠合第一图像的前景区域及第二图像的背景区域以产生高动态范围图像。The present invention provides an image processing device, comprising: a processor; an image sensor, coupled to the processor and acquiring a plurality of images; and a memory, coupled to the processor. The above-mentioned processor obtains a plurality of images and calculates a plurality of depth information corresponding to the above-mentioned images; divides each image into a foreground area and a background area according to a plurality of color information, a plurality of brightness information and the above-mentioned depth information of the above-mentioned images; obtains the above-mentioned images The foreground area of the first image in the first image, wherein the brightness of the foreground area of the first image is greater than the first threshold value; obtain the background area of the second image in the above image, wherein the brightness of the background area of the second image is less than the second threshold value ; and superimposing the foreground area of the first image and the background area of the second image to generate a high dynamic range image.

在本发明的一实施例中,上述处理器对第二图像的背景区域进行图像过滤操作,图像过滤操作包括背景虚化操作及物体移除操作。In an embodiment of the present invention, the processor performs an image filtering operation on the background region of the second image, and the image filtering operation includes a background blur operation and an object removal operation.

在本发明的一实施例中,上述处理器从上述图像的前景区域或背景区域获得对应物体的偏移量,并根据偏移量对该些图像进行变形转换操作。In an embodiment of the present invention, the processor obtains the offset of the corresponding object from the foreground area or the background area of the image, and performs a deformation transformation operation on these images according to the offset.

在本发明的一实施例中,上述处理器根据第一图像的前景区域及第二图像的背景区域的亮度对高动态范围图像的前景区域及背景区域的边缘进行色调再现操作。In an embodiment of the present invention, the processor performs a tone reproduction operation on the edges of the foreground area and the background area of the high dynamic range image according to the brightness of the foreground area of the first image and the background area of the second image.

在本发明的一实施例中,上述深度信息根据多镜头图像或结构光信息获得。In an embodiment of the present invention, the above-mentioned depth information is obtained according to a multi-lens image or structured light information.

基于上述,本发明的图像处理方法及图像处理装置会计算多个图像的深度信息,并根据图像的颜色信息、亮度信息及深度信息将每个图像分割成前景区域及背景区域,再从多个图像中获得亮度大于第一门槛值的前景区域及亮度小于第二门槛值的背景区域。最后,叠合上述前景区域及背景区域来产生高动态范围图像。通过将图像分割技术应用于高动态范围图像并以区域为准来进行图像叠合,可以不逐一调整像素亮度以节省运算时间,并得到高品质的高动态范围图像。Based on the above, the image processing method and the image processing device of the present invention will calculate the depth information of multiple images, and divide each image into a foreground area and a background area according to the color information, brightness information and depth information of the images, and then divide each image into a foreground area and a background area. In the image, a foreground area with a brightness greater than the first threshold value and a background area with a brightness less than the second threshold value are obtained. Finally, the aforementioned foreground and background regions are superimposed to generate a high dynamic range image. By applying image segmentation technology to high dynamic range images and superimposing images based on regions, it is possible not to adjust pixel brightness one by one to save computing time and obtain high-quality high dynamic range images.

为让本发明的上述特征和优点能更明显易懂,下文特举实施例,并配合附图作详细说明如下。In order to make the above-mentioned features and advantages of the present invention more obvious and easy to understand, the following embodiments are given and described in detail with the accompanying drawings as follows.

附图说明Description of drawings

图1为本发明现有技术中背景过曝的图像的示意图。FIG. 1 is a schematic diagram of a background overexposed image in the prior art of the present invention.

图2为本发明现有技术中主体过暗的图像的示意图。FIG. 2 is a schematic diagram of an image in which the subject is too dark in the prior art of the present invention.

图3为本发明现有技术中区域性色调再现引起光晕现象的示意图。3 is a schematic diagram of a halo phenomenon caused by regional tone reproduction in the prior art of the present invention.

图4为根据本发明一实施例的图像处理装置的方块图。FIG. 4 is a block diagram of an image processing apparatus according to an embodiment of the present invention.

图5为根据本发明一实施例的图像处理方法的流程图。FIG. 5 is a flowchart of an image processing method according to an embodiment of the present invention.

图6为根据本发明一实施例的高动态范围图像的示意图。FIG. 6 is a schematic diagram of a high dynamic range image according to an embodiment of the present invention.

图7为根据本发明另一实施例的图像处理方法的流程图。FIG. 7 is a flowchart of an image processing method according to another embodiment of the present invention.

附图标记说明Description of reference numerals

300:光晕;300: halo;

400:图像处理装置;400: image processing device;

410:处理器;410: processor;

420:镜头模块;420: lens module;

430:存储器;430: memory;

501(1)~501(n):图像;501(1)~501(n): Image;

502(1)~502(n):深度信息;502(1)~502(n): depth information;

S510、S520、S530、S540、S550:图像处理方法的步骤;S510, S520, S530, S540, S550: steps of the image processing method;

701(1)~701(n):图像;701(1)~701(n): Image;

702(1)~702(n):深度信息;702(1)~702(n): depth information;

S710、S720、S730、S740、S750、S760、S770、S780:图像处理方法的步骤。S710, S720, S730, S740, S750, S760, S770, S780: steps of the image processing method.

具体实施方式Detailed ways

图4为根据本发明一实施例的图像处理装置的方块图。FIG. 4 is a block diagram of an image processing apparatus according to an embodiment of the present invention.

请参照图4,本发明的图像处理装置400包括处理器410、镜头模块420及存储器430。镜头模块420可获取一到多个图像并将图像传送到存储器430存储或暂存。处理器410可对存储器430中的一到多个图像进行运算以得到高动态范围图像。Referring to FIG. 4 , the image processing apparatus 400 of the present invention includes a processor 410 , a lens module 420 and a memory 430 . The lens module 420 can acquire one or more images and transmit the images to the memory 430 for storage or temporary storage. The processor 410 may perform operations on one or more images in the memory 430 to obtain a high dynamic range image.

处理器410可以是中央处理单元(Central Processing Unit,CPU),或是其他可程序化的一般用途或特殊用途的微处理器(Microprocessor)、数字信号处理器(DigitalSignal Processor,DSP)、可程序化控制器、特殊应用集成电路(Application SpecificIntegrated Circuit,ASIC)或其他类似元件或上述元件的组合。镜头模块420可包括镜头(未示出于图中)及图像传感器(未示出于图中)。图像传感器可以是感光耦合元件(ChargeCoupled Device,CCD)图像传感器、互补式金属氧化物半导体(Complementary Metal-Oxide-Semiconductor,CMOS)或其他类型的图像传感器。存储器430可以是任何型态的固定或可移动随机存取存储器(Random Access Memory,RAM)、只读存储器(Read-Only Memory,ROM)、快闪存储器(flash memory)、硬盘驱动器(Hard Disk Drive,HDD)、固态硬盘(SolidState Drive,SSD)或类似元件或上述元件的组合。The processor 410 may be a central processing unit (Central Processing Unit, CPU), or other programmable general-purpose or special-purpose microprocessor (Microprocessor), digital signal processor (Digital Signal Processor, DSP), programmable Controller, Application Specific Integrated Circuit (ASIC) or other similar components or a combination of the above components. The lens module 420 may include a lens (not shown in the figure) and an image sensor (not shown in the figure). The image sensor may be a Charge Coupled Device (CCD) image sensor, a Complementary Metal-Oxide-Semiconductor (CMOS) or other types of image sensors. The memory 430 can be any type of fixed or removable random access memory (Random Access Memory, RAM), read-only memory (Read-Only Memory, ROM), flash memory (flash memory), hard disk drive (Hard Disk Drive) , HDD), solid state drive (Solid State Drive, SSD) or similar components or a combination of the above components.

图5为根据本发明一实施例的图像处理方法的流程图。FIG. 5 is a flowchart of an image processing method according to an embodiment of the present invention.

请参照图5,在步骤S510中,处理器410获得多个图像并计算对应每个图像的深度信息。例如,处理器410会获得图像501(1)~501(n),并分别计算对应图像501(1)~501(n)的深度信息502(1)~502(n)。图像501(1)~501(n)为不同曝光时间的图像。在一实施例中,每个图像的深度信息可由计算双镜头或三镜头所拍摄的图像来获得。在另一实施例中,每个图像的深度信息可由三维结构光深度传感器采集深度数据来获得。本发明并不对图像的深度信息的获得方法做出限制。Referring to FIG. 5, in step S510, the processor 410 obtains a plurality of images and calculates depth information corresponding to each image. For example, the processor 410 obtains the images 501(1)-501(n), and respectively calculates the depth information 502(1)-502(n) corresponding to the images 501(1)-501(n). Images 501(1) to 501(n) are images with different exposure times. In one embodiment, the depth information of each image can be obtained by computing images captured by dual or triple cameras. In another embodiment, the depth information of each image can be obtained by collecting depth data with a three-dimensional structured light depth sensor. The present invention does not limit the method for obtaining the depth information of the image.

在步骤S520中,处理器410将每个图像分割成前景区域及背景区域。具体来说,处理器410可根据图像像素的颜色信息、亮度信息及步骤S510计算出的深度信息来分辨图像中的前景区域及背景区域。In step S520, the processor 410 divides each image into a foreground area and a background area. Specifically, the processor 410 can distinguish the foreground area and the background area in the image according to the color information, brightness information of the image pixels and the depth information calculated in step S510.

在步骤S530中,处理器410对图像进行图像过滤(image filtering)。具体来说,在获得背景像素及前景像素之后,处理器410可对亮度大于一门槛值(例如,第一门槛值)的前景像素进行物体移除处理以移除非主体且正在移动的人。像素亮度大于第一门槛值代表了此前景像素的亮度不会过暗。处理器410还可对亮度小于一门槛值(例如,第二门槛值)的背景像素进行虚化处理,以得到虚化的背景图像。像素亮度小于第二门槛值代表了此背景像素的亮度不会过曝。In step S530, the processor 410 performs image filtering on the image. Specifically, after obtaining background pixels and foreground pixels, the processor 410 may perform object removal processing on foreground pixels whose brightness is greater than a threshold value (eg, a first threshold value) to remove a non-subject and moving person. The pixel brightness greater than the first threshold value means that the brightness of the foreground pixel will not be too dark. The processor 410 may also perform a blurring process on background pixels whose brightness is less than a threshold value (eg, a second threshold value) to obtain a blurred background image. A pixel brightness less than the second threshold value means that the brightness of the background pixel will not be overexposed.

在步骤S540中,处理器410进行图像叠合(fusion)。具体来说,处理器410会选取图像切割后具有正常亮度(即,不会过暗)的前景像素,并将选出的前景像素叠合到没有过曝的背景图像中。如此一来,就可以得到一个背景虚化且保留高动态范围图像细节的图像,如图6所示。In step S540, the processor 410 performs image fusion. Specifically, the processor 410 selects foreground pixels with normal brightness (ie, not too dark) after the image is cut, and superimposes the selected foreground pixels into the background image without overexposure. As a result, an image with a blurred background and retained high dynamic range image detail is obtained, as shown in Figure 6.

在步骤S550中,处理器410输出高动态范围图像。In step S550, the processor 410 outputs a high dynamic range image.

本实施例提出了一种基于区域的高动态范围图像计算方法,直接将图像分成前景区域及背景区域再将符合条件的前景区域及背景区域叠合成高动态范围图像。由于本实施例并没有对每个像素的亮度调整亮度以进行图像叠合,因此可大幅节省产生高高动态范围图像的运算时间。This embodiment proposes a region-based high dynamic range image calculation method, which directly divides the image into a foreground region and a background region, and then superimposes the eligible foreground and background regions into a high dynamic range image. Since the brightness of each pixel is not adjusted to perform image stacking in this embodiment, the computation time for generating a high dynamic range image can be greatly reduced.

图7为根据本发明另一实施例的图像处理方法的流程图。FIG. 7 is a flowchart of an image processing method according to another embodiment of the present invention.

请参照图7,在步骤S710中,处理器410获得多个图像并计算对应每个图像的深度信息。例如,处理器410会获得图像701(1)~701(n),并分别计算对应图像701(1)~701(n)的深度信息702(1)~702(n)。图像701(1)~701(n)为不同曝光时间的图像。Referring to FIG. 7, in step S710, the processor 410 obtains multiple images and calculates depth information corresponding to each image. For example, the processor 410 obtains the images 701(1)-701(n), and respectively calculates the depth information 702(1)-702(n) corresponding to the images 701(1)-701(n). Images 701(1) to 701(n) are images with different exposure times.

在步骤S720中,处理器410将每个图像分割成前景区域及背景区域。具体来说,处理器410可根据图像像素的颜色信息、亮度信息及步骤S710计算出的深度信息来分辨图像中的前景区域及背景区域。In step S720, the processor 410 divides each image into a foreground area and a background area. Specifically, the processor 410 can distinguish the foreground area and the background area in the image according to the color information, brightness information of the image pixels and the depth information calculated in step S710.

在步骤S730中,处理器410进行移动估测(motion estimation)。在步骤S740中,处理器410进行图像变形转换(image transform)。具体来说,处理器410可估算前景物或背景物的移动量,并根据此移动量来进行图像的变形转换以减少叠合图像失真的状况。这可以防止拍摄多张图像时因为手震或其他的移动而造成图像偏移的状况。In step S730, the processor 410 performs motion estimation. In step S740, the processor 410 performs an image transform. Specifically, the processor 410 can estimate the movement amount of the foreground object or the background object, and perform image deformation transformation according to the movement amount to reduce the distortion of the superimposed image. This prevents images from shifting due to jitter or other movement when shooting multiple images.

在步骤S750中,处理器410对图像进行图像过滤(image filtering)。具体来说,在获得背景像素及前景像素之后,处理器410可对亮度大于一门槛值(例如,第一门槛值)的前景像素进行物体移除处理以移除非主体且正在移动的人。像素亮度大于第一门槛值代表了此前景像素的亮度不会过暗。处理器410还可对亮度小于一门槛值(例如,第二门槛值)的背景像素进行虚化处理,以得到虚化的背景图像。像素亮度小于第二门槛值代表了此背景像素的亮度不会过曝。In step S750, the processor 410 performs image filtering on the image. Specifically, after obtaining background pixels and foreground pixels, the processor 410 may perform object removal processing on foreground pixels whose brightness is greater than a threshold value (eg, a first threshold value) to remove a non-subject and moving person. The pixel brightness greater than the first threshold value means that the brightness of the foreground pixel will not be too dark. The processor 410 may also perform a blurring process on background pixels whose brightness is less than a threshold value (eg, a second threshold value) to obtain a blurred background image. A pixel brightness less than the second threshold value means that the brightness of the background pixel will not be overexposed.

在步骤S760中,处理器410进行图像叠合。具体来说,处理器410会选取图像切割后具有正常亮度(即,不会过暗)的前景像素,并将选出的前景像素叠合到没有过曝的背景图像中。In step S760, the processor 410 performs image stacking. Specifically, the processor 410 selects foreground pixels with normal brightness (ie, not too dark) after the image is cut, and superimposes the selected foreground pixels into the background image without overexposure.

在步骤S770中,处理器410对叠合的图像进行色调调整。具体来说,处理器410可调整叠合图像的整体对比效果,以得到对比度更高的图像。此外,处理器410还可根据选出的前景区域及背景区域的亮度对高动态范围图像的前景区域及背景区域的边缘进行色调再现操作,以解决传统区域性色调再现操作所产生的光晕问题。In step S770, the processor 410 performs tone adjustment on the superimposed images. Specifically, the processor 410 may adjust the overall contrast effect of the superimposed image to obtain an image with higher contrast. In addition, the processor 410 can also perform tone reproduction operation on the edges of the foreground area and the background area of the high dynamic range image according to the brightness of the selected foreground area and background area, so as to solve the problem of halo caused by the traditional regional tone reproduction operation .

在步骤S780中,处理器410输出高动态范围图像。In step S780, the processor 410 outputs a high dynamic range image.

在本实施例中,通过移动估测及变形转换等方法,来减少拍摄多张图像时因手震或其他移动造成叠合图像不正确的问题。本实施例还可调整叠合完的图像的整体对比效果以产生品质更好的高动态范围图像。In this embodiment, methods such as motion estimation and deformation conversion are used to reduce the problem of incorrect superimposed images caused by hand shake or other movements when shooting multiple images. In this embodiment, the overall contrast effect of the superimposed images can also be adjusted to generate a high dynamic range image with better quality.

综上所述,本发明的图像处理方法及图像处理装置会计算多个图像的深度信息,并根据图像的颜色信息、亮度信息及深度信息将每个图像分割成前景区域及背景区域,再从多个图像中获得亮度大于第一门槛值的前景区域及亮度小于第二门槛值的背景区域。最后,叠合上述前景区域及背景区域来产生高动态范围图像。通过将图像分割技术应用于高动态范围图像并以区域为准来进行图像叠合,可以不逐一调整像素亮度以节省运算时间,并得到高品质的高动态范围图像。To sum up, the image processing method and the image processing device of the present invention will calculate the depth information of multiple images, and divide each image into a foreground area and a background area according to the color information, brightness information and depth information of the images, and then divide each image into a foreground area and a background area. A foreground area with a brightness greater than the first threshold value and a background area with a brightness less than the second threshold value are obtained from the plurality of images. Finally, the aforementioned foreground and background regions are superimposed to generate a high dynamic range image. By applying image segmentation technology to high dynamic range images and superimposing images based on regions, it is possible not to adjust pixel brightness one by one to save computing time and obtain high-quality high dynamic range images.

虽然本发明已以实施例揭示如上,然其并非用以限定本发明,任何所属技术领域中技术人员,在不脱离本发明的精神和范围内,当可作些许的更改与润饰,故本发明的保护范围当视权利要求所界定者为准。Although the present invention has been disclosed above with examples, it is not intended to limit the present invention. Any person skilled in the art can make some changes and modifications without departing from the spirit and scope of the present invention. Therefore, the present invention The scope of protection shall be subject to those defined in the claims.

Claims (12)

1. a kind of image processing method characterized by comprising
Multiple images are obtained by processor and calculate multiple depth informations of corresponding described multiple images;
Believed by the processor according to the multiple colouring informations, multiple luminance informations and the multiple depth of described multiple images Each described multiple images are divided into foreground area and background area by breath;
The foreground area of the first image in described multiple images is obtained by the processor, wherein the first image The foreground area brightness be greater than the first threshold value;
The background area that the second image in described multiple images is obtained by the processor, wherein second image The background area brightness less than the second threshold value;And
The foreground area of the first image and the background area of second image are overlapped by the processor To generate a high dynamic range images.
2. image processing method according to claim 1, further includes: by the processor to the institute of second image It states background area and carries out image filtering operation, described image filter operation includes that background blurring operation and object remove operation.
3. image processing method according to claim 1, further includes: by the processor from the institute of described multiple images State the offset that foreground area or the background area obtain corresponding object, and according to the offset to described multiple images into Row deformation conversion operation.
4. image processing method according to claim 1, further includes: by the processor according to the first image The prospect of the brightness of the background area of the foreground area and second image to the high dynamic range images The edge of region and the background area carries out tone rendering operation.
5. image processing method according to claim 1, wherein the multiple depth information is according to more lens images or knot Structure optical information obtains.
6. a kind of image processing apparatus characterized by comprising
Processor;
Imaging sensor is couple to the processor and obtains multiple images;And
Memory is couple to the processor, wherein the processor
Obtain multiple depth informations of described multiple images and corresponding described multiple images;
It will be each described more according to the multiple colouring informations, multiple luminance informations and the multiple depth information of described multiple images A image segmentation is at foreground area and background area;
The foreground area of the first image in described multiple images is obtained, wherein the foreground area of the first image Brightness be greater than the first threshold value;
The background area for obtaining the second image in described multiple images, wherein the background area of second image Brightness less than the second threshold value;And
The foreground area of the first image and the background area of second image are overlapped to generate high dynamic range Enclose image.
7. image processing apparatus according to claim 6, wherein the background of the processor to second image Region carries out image filtering operation, and described image filter operation includes that background blurring operation and object remove operation.
8. image processing apparatus according to claim 6, wherein the prospect of the processor from described multiple images Region or the background area obtain the offset of corresponding object, and are deformed according to the offset to described multiple images Conversion operation.
9. image processing apparatus according to claim 6, wherein the processor according to the first image it is described before The brightness of the background area of scene area and second image to the foreground areas of the high dynamic range images and The edge of the background area carries out tone rendering operation.
10. image processing apparatus according to claim 6, wherein the multiple depth information is according to more lens images or knot Structure optical information obtains.
11. a kind of image processing method characterized by comprising
Obtain multiple depth informations of multiple images and corresponding described multiple images;
It will be each described more according to the multiple colouring informations, multiple luminance informations and the multiple depth information of described multiple images A image segmentation is at foreground area and background area;And
According to the back of one of the foreground area of one of described multiple images and described multiple images Scene area generates high dynamic range images.
12. a kind of image processing apparatus characterized by comprising
Processor;
Imaging sensor is couple to the processor and obtains multiple images;And
Memory is couple to the processor, wherein the processor
Obtain multiple depth informations of multiple images and corresponding described multiple images;
It will be each described more according to the multiple colouring informations, multiple luminance informations and the multiple depth information of described multiple images A image segmentation is at foreground area and background area;And
According to the back of one of the foreground area of one of described multiple images and described multiple images Scene area generates high dynamic range images.
CN201810431094.6A 2018-05-08 2018-05-08 Image processing method and image processing device Pending CN110458860A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810431094.6A CN110458860A (en) 2018-05-08 2018-05-08 Image processing method and image processing device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810431094.6A CN110458860A (en) 2018-05-08 2018-05-08 Image processing method and image processing device

Publications (1)

Publication Number Publication Date
CN110458860A true CN110458860A (en) 2019-11-15

Family

ID=68480097

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810431094.6A Pending CN110458860A (en) 2018-05-08 2018-05-08 Image processing method and image processing device

Country Status (1)

Country Link
CN (1) CN110458860A (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103518223A (en) * 2011-04-18 2014-01-15 高通股份有限公司 White balance optimization with high dynamic range images
US20140254920A1 (en) * 2013-03-06 2014-09-11 Samsung Electronics Co., Ltd. Method and apparatus for enhancing quality of 3d image
CN104463775A (en) * 2014-10-31 2015-03-25 小米科技有限责任公司 Device and method for achieving depth-of-field effect of image
TW201534103A (en) * 2014-02-25 2015-09-01 Altek Corp Electronic device and calibration method thereof
US20170256039A1 (en) * 2016-03-07 2017-09-07 Novatek Microelectronics Corp. Method of Processing High Dynamic Range Images Using Dynamic Metadata
CN107197169A (en) * 2017-06-22 2017-09-22 维沃移动通信有限公司 A kind of high dynamic range images image pickup method and mobile terminal
CN107635093A (en) * 2017-09-18 2018-01-26 维沃移动通信有限公司 An image processing method, mobile terminal and computer-readable storage medium
CN107948519A (en) * 2017-11-30 2018-04-20 广东欧珀移动通信有限公司 Image processing method, device and equipment

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103518223A (en) * 2011-04-18 2014-01-15 高通股份有限公司 White balance optimization with high dynamic range images
US20140254920A1 (en) * 2013-03-06 2014-09-11 Samsung Electronics Co., Ltd. Method and apparatus for enhancing quality of 3d image
TW201534103A (en) * 2014-02-25 2015-09-01 Altek Corp Electronic device and calibration method thereof
CN104463775A (en) * 2014-10-31 2015-03-25 小米科技有限责任公司 Device and method for achieving depth-of-field effect of image
US20170256039A1 (en) * 2016-03-07 2017-09-07 Novatek Microelectronics Corp. Method of Processing High Dynamic Range Images Using Dynamic Metadata
CN107197169A (en) * 2017-06-22 2017-09-22 维沃移动通信有限公司 A kind of high dynamic range images image pickup method and mobile terminal
CN107635093A (en) * 2017-09-18 2018-01-26 维沃移动通信有限公司 An image processing method, mobile terminal and computer-readable storage medium
CN107948519A (en) * 2017-11-30 2018-04-20 广东欧珀移动通信有限公司 Image processing method, device and equipment

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
都琳等: "基于权重最小二乘结构边缘保持色调映射算法", 《激光与红外》 *

Similar Documents

Publication Publication Date Title
CN108335279B (en) Image fusion and HDR imaging
US10997696B2 (en) Image processing method, apparatus and device
CN108012080B (en) Image processing method, image processing device, electronic equipment and computer readable storage medium
CN107370958B (en) Image blurring processing method and device and shooting terminal
TW201947536A (en) Image processing method and image processing device
US8947501B2 (en) Scene enhancements in off-center peripheral regions for nonlinear lens geometries
US9451172B2 (en) Method and apparatus for correcting multi-exposure motion image
US10764496B2 (en) Fast scan-type panoramic image synthesis method and device
CN111028189A (en) Image processing method, device, storage medium and electronic device
CN111986129A (en) HDR image generation method and device based on multi-shot image fusion and storage medium
JP6999802B2 (en) Methods and equipment for double camera-based imaging
CN107948500A (en) Image processing method and device
US10298853B2 (en) Image processing apparatus, method of controlling image processing apparatus, and imaging apparatus
WO2019109805A1 (en) Method and device for processing image
TW201432616A (en) Image capturing device and image processing method thereof
JP6270413B2 (en) Image processing apparatus, imaging apparatus, and image processing method
WO2020029679A1 (en) Control method and apparatus, imaging device, electronic device and readable storage medium
CN110349163A (en) Image processing method and apparatus, electronic device, computer-readable storage medium
CN108198152A (en) Image processing method and device, electronic equipment, computer readable storage medium
CN111953893B (en) High dynamic range image generation method, terminal device and storage medium
WO2019105297A1 (en) Image blurring method and apparatus, mobile device, and storage medium
CN110213498B (en) Image generation method and apparatus, electronic device, computer-readable storage medium
CN110881108B (en) Image processing method and image processing device
WO2019105298A1 (en) Image blurring processing method, device, mobile device and storage medium
CN108156369A (en) Image processing method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20191115

WD01 Invention patent application deemed withdrawn after publication