CN116681605A - Image tone mapping method, device, electronic device and storage medium - Google Patents
Image tone mapping method, device, electronic device and storage medium Download PDFInfo
- Publication number
- CN116681605A CN116681605A CN202310559768.1A CN202310559768A CN116681605A CN 116681605 A CN116681605 A CN 116681605A CN 202310559768 A CN202310559768 A CN 202310559768A CN 116681605 A CN116681605 A CN 116681605A
- Authority
- CN
- China
- Prior art keywords
- picture
- tone mapping
- mapping curve
- processed
- color information
- 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
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T7/00—Image analysis
- G06T7/90—Determination of colour characteristics
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T2207/00—Indexing scheme for image analysis or image enhancement
- G06T2207/20—Special algorithmic details
- G06T2207/20172—Image enhancement details
- G06T2207/20208—High dynamic range [HDR] image processing
Landscapes
- Engineering & Computer Science (AREA)
- Computer Vision & Pattern Recognition (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Image Processing (AREA)
Abstract
Description
技术领域Technical Field
本申请涉及图像处理技术领域,具体而言,涉及一种图像色调映射方法、装置、电子设备及存储介质。The present application relates to the field of image processing technology, and in particular to an image tone mapping method, device, electronic device and storage medium.
背景技术Background Art
目前大多数游戏场景均是HDR(high dynamic range,高动态范围)画面,采用HDR渲染出来的画面明度值会超过显示器LDR(low dynamic range,低动态范围)能够显示的最大值,从而导致显示器上的显示画面存在曝光过度亮部细节损失等画质问题,那么,就很有必要将HDR画面转换为显示器能够正常显示的LDR画面,以保证显示画面的完整性。Currently, most game scenes are HDR (high dynamic range) pictures. The brightness value of the picture rendered by HDR will exceed the maximum value that the monitor LDR (low dynamic range) can display, resulting in image quality problems such as overexposure and loss of bright details on the display. Therefore, it is necessary to convert the HDR picture into an LDR picture that the monitor can display normally to ensure the integrity of the displayed picture.
现有技术中,是采用游戏引擎内置调好的固定的色调映射曲线将HDR画面转换至LDR画面,但是其并不能满足游戏画面各类风格效果的转换需求,导致在某些场景下画面转换效果较差。In the prior art, a fixed tone mapping curve built into the game engine is used to convert the HDR picture to the LDR picture. However, it cannot meet the conversion requirements of various style effects of the game picture, resulting in poor picture conversion effect in some scenes.
发明内容Summary of the invention
本申请提供一种图像色调映射方法、装置、电子设备及存储介质,以便于提高不同风格画面的色调映射效果。The present application provides an image tone mapping method, device, electronic device and storage medium to improve the tone mapping effect of pictures of different styles.
本申请实施例采用的技术方案如下:The technical solutions adopted in the embodiments of this application are as follows:
第一方面,本申请实施例提供了一种图像色调映射方法,包括:In a first aspect, an embodiment of the present application provides an image tone mapping method, comprising:
获取待处理的第一画面的颜色信息,所述第一画面为高动态范围画面;Acquire color information of a first picture to be processed, where the first picture is a high dynamic range picture;
确定所述第一画面待映射的第二画面的目标画面风格,以及所述目标画面风格对应的目标色调映射曲线;所述第二画面为低动态范围画面;Determining a target picture style of a second picture to be mapped from the first picture, and a target tone mapping curve corresponding to the target picture style; the second picture is a low dynamic range picture;
采用所述目标色调映射曲线对所述第一画面的颜色信息进行色调映射处理,得到所述第一画面对应的第二画面的颜色信息;Performing tone mapping processing on the color information of the first picture by using the target tone mapping curve to obtain color information of a second picture corresponding to the first picture;
根据所述第二画面的颜色信息生成所述第二画面,所述第二画面的画面风格为所述目标画面风格。The second picture is generated according to the color information of the second picture, and the picture style of the second picture is the target picture style.
第二方面,本申请实施例还提供了一种图像色调映射装置,包括:获取模块、确定模块、处理模块、生成模块;In a second aspect, an embodiment of the present application further provides an image tone mapping device, including: an acquisition module, a determination module, a processing module, and a generation module;
所述获取模块,用于获取待处理的第一画面的颜色信息,所述第一画面为高动态范围画面;The acquisition module is used to acquire color information of a first picture to be processed, where the first picture is a high dynamic range picture;
所述确定模块,用于确定所述第一画面待映射的第二画面的目标画面风格,以及所述目标画面风格对应的目标色调映射曲线;所述第二画面为低动态范围画面;The determination module is used to determine a target picture style of a second picture to be mapped from the first picture, and a target tone mapping curve corresponding to the target picture style; the second picture is a low dynamic range picture;
所述处理模块,用于采用所述目标色调映射曲线对所述第一画面的颜色信息进行色调映射处理,得到所述第一画面对应的第二画面的颜色信息;The processing module is used to perform tone mapping processing on the color information of the first picture by using the target tone mapping curve to obtain color information of the second picture corresponding to the first picture;
所述生成模块,用于根据所述第二画面的颜色信息生成所述第二画面,所述第二画面的画面风格为所述目标画面风格。The generating module is used to generate the second picture according to the color information of the second picture, and the picture style of the second picture is the target picture style.
第三方面,本申请实施例提供了一种电子设备,包括:处理器、存储介质和总线,存储介质存储有处理器可执行的机器可读指令,当电子设备运行时,处理器与存储介质之间通过总线通信,处理器执行机器可读指令,以执行如第一方面中提供的图像色调映射方法。In a third aspect, an embodiment of the present application provides an electronic device, comprising: a processor, a storage medium and a bus, wherein the storage medium stores machine-readable instructions executable by the processor. When the electronic device is running, the processor and the storage medium communicate through the bus, and the processor executes the machine-readable instructions to perform the image tone mapping method provided in the first aspect.
第四方面,本申请实施例提供了一种计算机可读存储介质,该存储介质上存储有计算机程序,该计算机程序被处理器运行时执行如第一方面提供的图像色调映射方法。In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the image tone mapping method provided in the first aspect is executed.
本申请的有益效果是:The beneficial effects of this application are:
本申请提供一种图像色调映射方法、装置、电子设备及存储介质,在将HDR画面转换至LDR画面时,会根据HDR画面所要映射至的LDR画面的目标画面风格,调用与目标画面风格对应的色调映射曲线进行色调映射进行处理,使得映射后得到的LDR画面的显示效果更佳。针对用户的不同画面风格处理需求,可采用与画面风格匹配的色调映射曲线执行色调映射处理,避免了不同画面风格对应相同的色调映射曲线,色调映射曲线较单一固定所导致的色调映射后得到的LDR画面效果较差的问题。且相对于根据经验和视觉观察手动调整色调映射曲线的方式而言,本方案基于客观标准建立了画面风格和色调映射曲线之间的映射关系,从而使得采用与画面风格对应的色调映射曲线进行色调映射处理后得到的处理结果更具说服力,且处理结果的好坏具有了衡量标准,避免了依靠主观意识进行处理所导致的处理结果的效果好坏无法衡量的问题。The present application provides an image tone mapping method, device, electronic device and storage medium. When converting an HDR picture to an LDR picture, the tone mapping curve corresponding to the target picture style is called to perform tone mapping according to the target picture style of the LDR picture to which the HDR picture is to be mapped, so that the display effect of the LDR picture obtained after mapping is better. According to the different picture style processing requirements of users, the tone mapping process can be performed using a tone mapping curve that matches the picture style, avoiding the problem that different picture styles correspond to the same tone mapping curve, and the LDR picture effect obtained after tone mapping is poor due to the single and fixed tone mapping curve. And compared with the method of manually adjusting the tone mapping curve based on experience and visual observation, this scheme establishes a mapping relationship between the picture style and the tone mapping curve based on objective standards, so that the processing result obtained after the tone mapping process using the tone mapping curve corresponding to the picture style is more convincing, and the quality of the processing result has a measurement standard, avoiding the problem that the quality of the processing result cannot be measured due to relying on subjective consciousness.
附图说明BRIEF DESCRIPTION OF THE DRAWINGS
为了更清楚地说明本申请实施例的技术方案,下面将对实施例中所需要使用的附图作简单地介绍,应当理解,以下附图仅示出了本申请的某些实施例,因此不应被看作是对范围的限定,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他相关的附图。In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments will be briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present application and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.
图1为本申请实施例提供的一种图像色调映射方法的流程示意图;FIG1 is a schematic diagram of a flow chart of an image tone mapping method provided in an embodiment of the present application;
图2为本申请实施例提供的另一种图像色调映射方法的流程示意图;FIG2 is a schematic diagram of a flow chart of another image tone mapping method provided in an embodiment of the present application;
图3为本申请实施例提供的一种色调映射曲线的示意图;FIG3 is a schematic diagram of a tone mapping curve provided in an embodiment of the present application;
图4为本申请实施例提供的另一种色调映射曲线的示意图;FIG4 is a schematic diagram of another tone mapping curve provided in an embodiment of the present application;
图5为本申请实施例提供的又一种图像色调映射方法的流程示意图;FIG5 is a schematic diagram of a flow chart of another image tone mapping method provided in an embodiment of the present application;
图6为本申请实施例提供的一种图像色调映射装置的示意图;FIG6 is a schematic diagram of an image tone mapping device provided in an embodiment of the present application;
图7为本申请实施例提供的一种电子设备的结构示意图。FIG. 7 is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application.
具体实施方式DETAILED DESCRIPTION
为使本申请实施例的目的、技术方案和优点更加清楚,下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,应当理解,本申请中附图仅起到说明和描述的目的,并不用于限定本申请的保护范围。另外,应当理解,示意性的附图并未按实物比例绘制。本申请中使用的流程图示出了根据本申请的一些实施例实现的操作。应该理解,流程图的操作可以不按顺序实现,没有逻辑的上下文关系的步骤可以反转顺序或者同时实施。此外,本领域技术人员在本申请内容的指引下,可以向流程图添加一个或多个其他操作,也可以从流程图中移除一个或多个操作。To make the purpose, technical scheme and advantages of the embodiments of the present application clearer, the technical scheme in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. It should be understood that the drawings in the present application only serve the purpose of explanation and description and are not used to limit the scope of protection of the present application. In addition, it should be understood that the schematic drawings are not drawn in real proportion. The flowchart used in this application shows the operations implemented according to some embodiments of the present application. It should be understood that the operations of the flowchart can be implemented out of sequence, and the steps without logical context can be reversed in order or implemented simultaneously. In addition, those skilled in the art can add one or more other operations to the flowchart under the guidance of the content of the present application, or remove one or more operations from the flowchart.
另外,所描述的实施例仅仅是本申请一部分实施例,而不是全部的实施例。通常在此处附图中描述和示出的本申请实施例的组件可以以各种不同的配置来布置和设计。因此,以下对在附图中提供的本申请的实施例的详细描述并非旨在限制要求保护的本申请的范围,而是仅仅表示本申请的选定实施例。基于本申请的实施例,本领域技术人员在没有做出创造性劳动的前提下所获得的所有其他实施例,都属于本申请保护的范围。In addition, the described embodiments are only a part of the embodiments of the present application, rather than all of the embodiments. The components of the embodiments of the present application described and shown in the drawings here can be arranged and designed in various configurations. Therefore, the following detailed description of the embodiments of the present application provided in the drawings is not intended to limit the scope of the application claimed for protection, but merely represents the selected embodiments of the present application. Based on the embodiments of the present application, all other embodiments obtained by those skilled in the art without making creative work belong to the scope of protection of the present application.
需要说明的是,本申请实施例中将会用到术语“包括”,用于指出其后所声明的特征的存在,但并不排除增加其它的特征。It should be noted that the term "comprising" will be used in the embodiments of the present application to indicate the existence of the features declared thereafter, but does not exclude the addition of other features.
首先对本申请实施例可能涉及到的一些名词术语进行说明:First, some terms that may be involved in the embodiments of the present application are explained:
Tone mapping:色调映射是在有限动态范围媒介上近似显示高动态范围图像的一项计算机图形学技术。Tone mapping: Tone mapping is a computer graphics technique that approximates the display of high dynamic range images on limited dynamic range media.
HDR(high dynamic range):高动态范围。HDR (high dynamic range): high dynamic range.
LDR(low dynamic range):低动态范围。LDR (low dynamic range): low dynamic range.
RGB:三原色红、绿、蓝。RGB: three primary colors: red, green and blue.
HSV:H(Hue))代表色相,S(Saturation)代表饱和度,V(Value)在HSV中是值,表示颜色明亮的程度。HSV: H (Hue) stands for hue, S (Saturation) stands for saturation, and V (Value) in HSV is the value, which indicates the brightness of the color.
AECS(Academy Color Encoding System):学院色彩编码系统是在电影或电视制作的整个生命周期中管理色彩的行业标准,是一个免费、开放、独立于设备的色彩管理和图像交换系统。AECS (Academy Color Encoding System): The Academy Color Encoding System is the industry standard for managing color throughout the life cycle of film or television production. It is a free, open, device-independent color management and image exchange system.
色调:色调是指图像的相对明暗程度,在彩色图像上表现为颜色。Hue: Hue refers to the relative lightness or darkness of an image, and is represented as color in color images.
色相:色相就是颜色,调整色相就是调整图像的颜色。Hue: Hue is color. Adjusting hue is adjusting the color of the image.
饱和度:饱和度是指图像颜色的浓度。Saturation: Saturation refers to the intensity of the image colors.
明度:明度指颜色的明暗程度。Value: Value refers to the lightness or darkness of a color.
对比度:对比度指不同颜色之间的差别。Contrast: Contrast refers to the difference between different colors.
亮度:亮度又称光亮度,表示光源或受光物体表面明亮程度的数值。Brightness: Brightness is also called light brightness, which indicates the brightness of the light source or the surface of the illuminated object.
接下来对本方案的相关背景进行说明:Next, the relevant background of this plan is explained:
目前大多数游戏场景是HDR画面,采用HDR渲染出来的画面明度值会超过显示器(LDR)能够显示最大值,使得HDR画面在LDR显示器上进行显示时出现画面过曝的情况,画面细节都看不到了。为了保证HDR画面的显示效果,此时我们需要将光照结果从HDR转换为显示器能够正常显示的LDR,这一过程我们通常称之为Tone mapping(色调映射)。用Tonemapping压缩以后,我们所得到的HDR影像就能很好地在显示器上显示了,而变换的过程中画面色相、饱和度、明度、对比度这些都会发生变化。目前大多数游戏引擎内置了调好的Tone mapping,如果没有特殊的画面效果需求,可以直接应用。At present, most game scenes are HDR pictures. The brightness value of the picture rendered by HDR will exceed the maximum value that the monitor (LDR) can display, which makes the HDR picture overexposed when displayed on the LDR monitor, and the details of the picture cannot be seen. In order to ensure the display effect of the HDR picture, we need to convert the lighting result from HDR to LDR that the monitor can display normally. We usually call this process Tone mapping. After compression with Tonemapping, the HDR image we get can be displayed well on the monitor, and the hue, saturation, brightness, and contrast of the picture will change during the transformation. At present, most game engines have built-in adjusted Tone mapping, which can be applied directly if there is no special picture effect requirement.
但是,虽然大多数游戏引擎内置了调好的Tone mapping,但是所设置的Tonemapping较为单一化和固定化,并不能满足游戏画面各类风格效果需求,因此需要进行风格化调整。However, although most game engines have built-in adjusted Tone mapping, the set Tonemapping is relatively simple and fixed, and cannot meet the various style effect requirements of the game screen, so stylized adjustments are needed.
传统的方式是通过调整Tone mapping算法来观察显示画面发生的变化,由于没有这方面的画面衡量标准,只能靠个人经验和水平进行调整,大部是通过人眼感官判断,每个人的视觉感受和标准是不一样的,无法作为一个通用标准去应用,因此需要找到一个客观标准去衡量不同的Tone mapping算法所适用于的处理画面风格,从而针对不同画面风格处理需求,可以采用与其对应的Tone mapping算法进行色调映射,使得对HDR画面进行色调映射后得到的LDR画面效果更佳。The traditional way is to observe the changes in the displayed image by adjusting the Tone mapping algorithm. Since there is no picture measurement standard in this regard, adjustments can only be made based on personal experience and level, and most of them are judged by the human eye. Everyone's visual perception and standards are different, and it cannot be used as a universal standard. Therefore, it is necessary to find an objective standard to measure the processing picture styles applicable to different Tone mapping algorithms. In order to meet the processing requirements of different picture styles, the corresponding Tone mapping algorithm can be used for tone mapping, so that the LDR picture effect obtained after tone mapping of the HDR picture is better.
图1为本申请实施例提供的一种图像色调映射方法的流程示意图;本方法的执行主体可以是计算机设备。如图1所示,该方法可包括:FIG1 is a flow chart of an image tone mapping method provided by an embodiment of the present application; the execution subject of the method may be a computer device. As shown in FIG1 , the method may include:
S101、获取待处理的第一画面的颜色信息,第一画面为高动态范围画面。S101. Obtain color information of a first picture to be processed, where the first picture is a high dynamic range picture.
待处理的第一画面可以指待处理的HDR画面,也即高动态范围画面。The first picture to be processed may refer to an HDR picture to be processed, that is, a high dynamic range picture.
S102、确定第一画面待映射的第二画面的目标画面风格,以及目标画面风格对应的目标色调映射曲线;第二画面为低动态范围画面。S102, determining a target picture style of a second picture to be mapped from the first picture, and a target tone mapping curve corresponding to the target picture style; the second picture is a low dynamic range picture.
而目标画面风格则指将待处理的HDR画面所要映射至的第二画面的画面风格,目标画面风格可以根据用户需求进行自定义设置,也可以是预先配置的,预先配置好不同的HDR画面所要映射至的第二画面的目标画面风格。The target picture style refers to the picture style of the second picture to which the HDR picture to be processed is to be mapped. The target picture style can be customized according to user needs, or it can be pre-configured, with different HDR pictures to be mapped to the target picture style of the second picture.
这里的第二画面则指的是LDR画面,也即,通过色调映射处理,对待处理的HDR画面的颜色信息进行处理,得到HDR画面对应的LDR画面的颜色信息。The second picture here refers to the LDR picture, that is, through tone mapping processing, the color information of the HDR picture to be processed is processed to obtain the color information of the LDR picture corresponding to the HDR picture.
本实施例中,可以预先建立不同的画面风格与不同的色调映射曲线之间的映射关系,并将该映射关系存储至服务器后台,从而在确定了目标画面风格后,则可以调用画面风格与色调映射曲线之间的映射关系,确定目标画面风格所对应的目标色调映射曲线。In this embodiment, a mapping relationship between different picture styles and different tone mapping curves can be established in advance, and the mapping relationship can be stored in the server background. After the target picture style is determined, the mapping relationship between the picture style and the tone mapping curve can be called to determine the target tone mapping curve corresponding to the target picture style.
由于不同的画面风格匹配有对应的色调映射曲线,从而针对不同的画面风格处理需求,可以采用匹配的色调映射曲线进行色调映射,实现了不同画面风格的个性化处理。Since different picture styles are matched with corresponding tone mapping curves, a matching tone mapping curve can be used for tone mapping according to different picture style processing requirements, thereby realizing personalized processing of different picture styles.
需要说明的是,将HDR画面转换至LDR画面的算法有多种,而采用色调映射曲线进行处理属于其中一种可以实现的方式。色调映射曲线的原理是将画面的颜色值从一个范围分布变换到另一个范围分布。具体是将颜色值从一个大的范围映射到了较小的范围,从而使得映射后的颜色能够在低动态范围的显示器上进行显示。It should be noted that there are many algorithms for converting HDR images to LDR images, and using a tone mapping curve is one of the possible ways to achieve this. The principle of a tone mapping curve is to transform the color values of an image from one range distribution to another range distribution. Specifically, the color values are mapped from a large range to a smaller range, so that the mapped colors can be displayed on a display with a low dynamic range.
S103、采用目标色调映射曲线对第一画面的颜色信息进行色调映射处理,得到第一画面对应的第二画面的颜色信息。S103 . Perform tone mapping processing on the color information of the first picture using the target tone mapping curve to obtain color information of the second picture corresponding to the first picture.
基于所确定出的目标色调映射曲线,可以采用目标色调映射曲线对待处理的第一画面的颜色信息进行色调映射处理,从而得到第一画面对应的第二画面的颜色信息。Based on the determined target tone mapping curve, the target tone mapping curve may be used to perform tone mapping processing on the color information of the first picture to be processed, thereby obtaining color information of the second picture corresponding to the first picture.
S104、根据第二画面的颜色信息生成第二画面,第二画面的画面风格为目标画面风格。S104: Generate a second picture according to the color information of the second picture, and the picture style of the second picture is the target picture style.
可选地,根据LDR画面的颜色信息则可生成LDR画面,从而将待处理的HDR画面转换为了LDR画面并在显示器上进行显示,由于经过了色调映射处理,将HDR画面中原本无法在显示器上所显示的画面部分的颜色映射至较小的范围,从而使得处理后得到的第二画面的颜色范围较小,能够在显示器上进行正常显示。Optionally, an LDR picture can be generated based on the color information of the LDR picture, thereby converting the HDR picture to be processed into an LDR picture and displaying it on the display. Due to the tone mapping processing, the color of the part of the HDR picture that originally could not be displayed on the display is mapped to a smaller range, so that the color range of the second picture obtained after processing is smaller and can be displayed normally on the display.
综上,本实施例提供的图像色调映射方法,在将HDR画面转换至LDR画面时,会根据HDR画面所要映射至的LDR画面的目标画面风格,调用与目标画面风格对应的色调映射曲线进行色调映射进行处理,使得映射后得到的LDR画面的显示效果更佳。针对用户的不同画面风格处理需求,可采用与画面风格匹配的色调映射曲线执行色调映射处理,避免了不同画面风格对应相同的色调映射曲线,色调映射曲线较单一固定所导致的色调映射后得到的LDR画面效果较差的问题。且相对于根据经验和视觉观察手动调整色调映射曲线的方式而言,本方案基于客观标准建立了画面风格和色调映射曲线之间的映射关系,从而使得采用与画面风格对应的色调映射曲线进行色调映射处理后得到的处理结果更具说服力,且处理结果的好坏具有了衡量标准,避免了依靠主观意识进行处理所导致的处理结果的效果好坏无法衡量的问题。In summary, the image tone mapping method provided in this embodiment, when converting an HDR picture to an LDR picture, will call the tone mapping curve corresponding to the target picture style to perform tone mapping processing according to the target picture style of the LDR picture to which the HDR picture is to be mapped, so that the display effect of the LDR picture obtained after mapping is better. In view of the different picture style processing requirements of users, a tone mapping curve matching the picture style can be used to perform tone mapping processing, avoiding the problem that different picture styles correspond to the same tone mapping curve, and the LDR picture effect obtained after tone mapping is poor due to the single and fixed tone mapping curve. And compared with the method of manually adjusting the tone mapping curve based on experience and visual observation, this scheme establishes a mapping relationship between the picture style and the tone mapping curve based on objective standards, so that the processing result obtained after tone mapping processing using the tone mapping curve corresponding to the picture style is more convincing, and the quality of the processing result has a measurement standard, avoiding the problem that the quality of the processing result cannot be measured due to relying on subjective consciousness.
图2为本申请实施例提供的另一种图像色调映射方法的流程示意图;步骤S102中,确定目标画面风格对应的目标色调映射曲线之前,本方法还可以包括:FIG. 2 is a flow chart of another image tone mapping method provided by an embodiment of the present application; in step S102, before determining a target tone mapping curve corresponding to a target picture style, the method may further include:
S201、获取多个测试画面,测试画面为高动态范围画面。S201. Acquire multiple test pictures, where the test pictures are high dynamic range pictures.
本实施例通过采集测试画面,并利用预先创建好的各待测色调映射曲线对测试画面进行色调映射处理,根据处理结果来测试各待测色调映射曲线所对应的处理画面风格,也即确定各待测色调映射曲线所适用于的处理画面风格,换句话说,来衡量每种待测色调映射曲线适合对哪种画面风格进行映射处理。This embodiment collects a test picture, and performs tone mapping processing on the test picture using pre-created tone mapping curves to be tested, and tests the processing picture style corresponding to each tone mapping curve to be tested according to the processing result, that is, determines the processing picture style to which each tone mapping curve to be tested is applicable. In other words, it measures which picture style each tone mapping curve to be tested is suitable for mapping processing.
首先可搭建标准测试环境,测试环境可包括:标准测试图卡、测试材质球、测试光线。通过测试光线向测试材质球进行打光,而通过观察测试材质球在打光之后的灰色色阶明度的变化,当灰阶显示出现曝光状态时,停止打光,根据测试材质球的当前打光状态生成测试画面。First, a standard test environment can be built, which may include: standard test charts, test material balls, and test lights. The test material balls are illuminated by test lights, and the changes in the grayscale brightness of the test material balls after illumination are observed. When the grayscale display shows an exposed state, the illumination is stopped, and a test screen is generated according to the current illumination state of the test material balls.
值得注意的是,可以采集多个测试画面,测试画面同样都为HDR画面,有需要执行色调映射处理的需求。It is worth noting that multiple test pictures can be collected, and the test pictures are also HDR pictures, and there is a need to perform tone mapping processing.
S202、采用待测色调映射曲线分别对测试画面进行色调映射处理,生成待测色调映射曲线对应的处理后画面。S202 : Using the tone mapping curve to be tested to perform tone mapping processing on the test pictures respectively, to generate processed pictures corresponding to the tone mapping curve to be tested.
待测色调映射曲线可以包括多个,各待测色调映射曲线均是预先制作好的,但是并不知道各待测色调映射曲线均适合对哪种风格的画面进行色调映射处理,本实施例则是通过测试,以构建各待测色调映射曲线与各画面风格之间的映射关系。There may be multiple tone mapping curves to be tested, and each tone mapping curve to be tested is pre-made, but it is not known which style of picture each tone mapping curve to be tested is suitable for tone mapping processing. This embodiment constructs a mapping relationship between each tone mapping curve to be tested and each picture style through testing.
可选地,对于任意一个待测色调映射曲线而言,可采用待测色调映射曲线对测试画面进行色调映射处理,从而生成待测色调映射曲线对应的处理后画面。Optionally, for any tone mapping curve to be tested, the tone mapping curve to be tested may be used to perform tone mapping processing on the test picture, so as to generate a processed picture corresponding to the tone mapping curve to be tested.
为了提高测试结果的准确性,测试画面可以包括多个,那么,对于一个待测色调映射曲线而言,生成的对应的处理后画面的数量则与测试画面的数量对应,例如:测试画面包括3个时,则待测色调映射曲线对应的处理后画面也包括3个。In order to improve the accuracy of the test results, the test screen may include multiple test pictures. Then, for a tone mapping curve to be tested, the number of corresponding processed pictures generated corresponds to the number of test pictures. For example, when the test screen includes 3, the processed pictures corresponding to the tone mapping curve to be tested also include 3.
S203、确定待测色调映射曲线对应的处理后画面的颜色信息。S203: Determine color information of the processed picture corresponding to the tone mapping curve to be tested.
可根据待测色调映射曲线对应的处理后画面,分别获取待测色调映射曲线对应的处理后画面的颜色信息。According to the processed picture corresponding to the tone mapping curve to be tested, the color information of the processed picture corresponding to the tone mapping curve to be tested can be obtained respectively.
S204、根据待测色调映射曲线对应的处理后画面的颜色信息、以及标准测试图卡,确定待测色调映射曲线对应的处理画面风格,并建立待测色调映射曲线与对应的处理画面风格之间的映射关系。S204: Determine the processed picture style corresponding to the tone mapping curve to be tested according to the color information of the processed picture corresponding to the tone mapping curve to be tested and the standard test chart, and establish a mapping relationship between the tone mapping curve to be tested and the corresponding processed picture style.
可选地,可根据待测色调映射曲线对应的处理后画面的颜色信息、以及标准测试图卡,统计待测色调映射曲线对应的处理后画面的颜色信息与标准测试图卡之间的颜色差异信息,从而根据颜色差异信息,确定待测色调映射曲线对应的处理画面风格,待测色调映射曲线对应的处理画面风格也可以指待测色调映射曲线所适合处理的画面风格。Optionally, based on the color information of the processed picture corresponding to the tone mapping curve to be tested and the standard test chart, the color difference information between the color information of the processed picture corresponding to the tone mapping curve to be tested and the standard test chart can be statistically analyzed, so as to determine the processed picture style corresponding to the tone mapping curve to be tested based on the color difference information. The processed picture style corresponding to the tone mapping curve to be tested may also refer to the picture style that the tone mapping curve to be tested is suitable for processing.
基于上述分析,可确定出不同待测色调映射曲线与其所对应的处理画面风格,从而可构建不同的待测色调映射曲线与不同的处理画面风格之间的映射关系,并将映射关系进行记录。Based on the above analysis, different tone mapping curves to be tested and their corresponding processed picture styles can be determined, so that mapping relationships between different tone mapping curves to be tested and different processed picture styles can be constructed and recorded.
本实施例中通过将不同的待测色调映射曲线对测试画面进行色调映射处理之后的处理后画面的颜色信息与标准测试图卡进行颜色信息的比对分析,得到数据分析结果,从数据量化的角度对不同的待测色调映射曲线的映射处理效果进行衡量,使得衡量结果更加客观,更具说服力。In this embodiment, the color information of the processed picture after tone mapping processing of the test picture by different tone mapping curves to be tested is compared and analyzed with the color information of the standard test chart to obtain the data analysis result, and the mapping processing effects of different tone mapping curves to be tested are measured from the perspective of data quantification, so that the measurement result is more objective and convincing.
可选地,不同待测色调映射曲线的映射阈值不同。Optionally, different tone mapping curves to be tested have different mapping thresholds.
本实施例中预先制作了多个待测色调映射曲线,而每种待测色调映射曲线均具有不同的映射阈值,以使得每种待测色调映射曲线对于相同HDR画面映射后得到的LDR画面具有不同的画面风格,从而实现对更多不同的待测色调映射曲线映射效果的测试。In the present embodiment, a plurality of tone mapping curves to be tested are pre-produced, and each tone mapping curve to be tested has a different mapping threshold, so that each tone mapping curve to be tested has a different picture style for the LDR picture obtained after mapping the same HDR picture, thereby realizing the testing of the mapping effects of more different tone mapping curves to be tested.
图3为本申请实施例提供的一种色调映射曲线的示意图。如图3所示的色调映射曲线的映射阈值为1.25,其中,色调映射曲线的横轴代表HDR画面的颜色值(RGB值),范围是0到无穷大,纵轴代表LDR画面的颜色值(RGB值),范围为0到1,映射阈值表示曲线无限接近或超过纵轴1时的数值。色调映射曲线表示的是HDR画面的RGB颜色值与LDR画面的RGB颜色值之间的映射关系。FIG3 is a schematic diagram of a tone mapping curve provided in an embodiment of the present application. The mapping threshold of the tone mapping curve shown in FIG3 is 1.25, wherein the horizontal axis of the tone mapping curve represents the color value (RGB value) of the HDR picture, ranging from 0 to infinity, and the vertical axis represents the color value (RGB value) of the LDR picture, ranging from 0 to 1, and the mapping threshold represents the value when the curve is infinitely close to or exceeds the vertical axis 1. The tone mapping curve represents the mapping relationship between the RGB color value of the HDR picture and the RGB color value of the LDR picture.
步骤S202中,采用待测色调映射曲线分别对测试画面进行色调映射处理,生成待测色调映射曲线对应的处理后画面,可以包括:若测试画面中当前待处理的颜色信息小于待测色调映射曲线的映射阈值,则根据待测色调映射曲线对当前待处理的颜色信息进行处理,生成待测色调映射曲线对应的处理后画面。In step S202, tone mapping processing is performed on the test picture using the tone mapping curve to be tested to generate a processed picture corresponding to the tone mapping curve to be tested, which may include: if the current color information to be processed in the test picture is less than the mapping threshold of the tone mapping curve to be tested, the current color information to be processed is processed according to the tone mapping curve to be tested to generate a processed picture corresponding to the tone mapping curve to be tested.
本实施例对采用色调映射曲线进行色调映射处理的原理进行说明。对于测试画面而言,其为HDR图,测试画面中会存在亮度超过LDR显示器显示范围的颜色,但是也会存在一些可以正常显示的颜色。This embodiment describes the principle of using a tone mapping curve to perform tone mapping processing. For the test picture, which is an HDR picture, there may be colors in the test picture whose brightness exceeds the display range of the LDR display, but there may also be some colors that can be displayed normally.
而通过色调映射曲线的映射阈值的设定,可以将测试画面中明度超过显示范围的颜色以及未超过显示范围的颜色划分为两种方式进行色调映射。最终的目的是将明度超过显示范围的颜色值映射至LDR画面的颜色范围内,而明度未超过显示范围的颜色值则进行一一对应映射,最终映射后得到的画面中所有颜色值都在LDR画面可以显示的颜色范围内,从而可以在LDR显示器上进行显示。By setting the mapping threshold of the tone mapping curve, the colors in the test screen whose brightness exceeds the display range and the colors that do not exceed the display range can be divided into two ways for tone mapping. The ultimate goal is to map the color values whose brightness exceeds the display range to the color range of the LDR screen, and the color values whose brightness does not exceed the display range are mapped one by one. Finally, all color values in the mapped screen are within the color range that can be displayed by the LDR screen, so that they can be displayed on the LDR display.
在一种实施例中,当测试HDR画面中当前待处理的颜色信息小于待测色调映射曲线的映射阈值时,由于测试HDR画面对应的LDR画面的RGB颜色值并未超过1,也即在LDR画面能够正常显示的颜色范围内,此时,根据色调映射曲线可以看出,HDR画面的颜色值未超过映射阈值时,HDR画面的颜色值与LDR画面的颜色值一一对应,则可根据色调映射曲线以及测试HDR画面中当前待处理的颜色信息,从而生成待测色调映射曲线对应的处理后画面。In one embodiment, when the current color information to be processed in the test HDR picture is less than the mapping threshold of the tone mapping curve to be tested, since the RGB color value of the LDR picture corresponding to the test HDR picture does not exceed 1, that is, it is within the color range that the LDR picture can display normally, at this time, according to the tone mapping curve, it can be seen that when the color value of the HDR picture does not exceed the mapping threshold, the color value of the HDR picture corresponds one-to-one to the color value of the LDR picture, then the processed picture corresponding to the tone mapping curve to be tested can be generated according to the tone mapping curve and the current color information to be processed in the test HDR picture.
本实施中假设待测色调映射曲线为映射阈值为1.25的色调映射曲线,其曲线的函数关系为那么,当测试画面中当前待处理的颜色信息小于1.25时,则可将当前待处理的颜色信息作为x的取值代入函数关系式中,计算得到的y值则为待测画面中的待处理的颜色信息所对应在处理后画面中的颜色信息,这里所计算得到的颜色信息为RGB信息,且其取值在0-1之间,未超过LDR画面的显示范围,从而处理后画面能够在显示器上进行显示。In this implementation, it is assumed that the tone mapping curve to be tested is a tone mapping curve with a mapping threshold of 1.25, and the functional relationship of the curve is: Then, when the current color information to be processed in the test screen is less than 1.25, the current color information to be processed can be substituted into the function relationship as the value of x, and the calculated y value is the color information in the processed screen corresponding to the color information to be processed in the test screen. The color information calculated here is RGB information, and its value is between 0-1, which does not exceed the display range of the LDR screen, so that the processed screen can be displayed on the monitor.
可选地,步骤S202中,采用待测色调映射曲线分别对测试画面进行色调映射处理,生成待测色调映射曲线对应的处理后画面,可以包括:若测试画面中当前待处理的颜色信息大于或等于待测色调映射曲线的映射阈值,则根据预设的颜色阈值,对当前待处理的颜色信息进行处理,生成待测色调映射曲线对应的处理后画面。Optionally, in step S202, tone mapping processing is performed on the test picture using the tone mapping curve to be tested to generate a processed picture corresponding to the tone mapping curve to be tested, which may include: if the current color information to be processed in the test picture is greater than or equal to the mapping threshold of the tone mapping curve to be tested, then the current color information to be processed is processed according to a preset color threshold to generate a processed picture corresponding to the tone mapping curve to be tested.
继续以映射阈值为1.25的待测色调映射曲线为例,当测试画面中当前待处理的颜色信息大于或等于映射阈值1.25时,则会将待处理的颜色信息拉回至预设的颜色阈值1,也即所有的大于或等于映射阈值1.25的待处理颜色信息均会被处理为1,以将颜色信息重新映射至0-1之间,避免颜色信息超过1,当超过1时,则超过LDR画面的显示范围,无法显示。Continuing with the tone mapping curve to be tested with a mapping threshold of 1.25 as an example, when the current to-be-processed color information in the test screen is greater than or equal to the mapping threshold of 1.25, the to-be-processed color information will be pulled back to the preset color threshold of 1, that is, all to-be-processed color information greater than or equal to the mapping threshold of 1.25 will be processed as 1, so as to remap the color information to between 0-1, and avoid the color information exceeding 1. When it exceeds 1, it exceeds the display range of the LDR screen and cannot be displayed.
上述仅是以映射阈值为1.25的待测色调映射曲线为例进行说明,而对于其他任意的待测色调映射曲线,处理方法均是相同的,对于任意的待测色调映射曲线而言,在测试画面中当前待处理的颜色信息小于映射阈值时,均是采用各待测色调映射曲线所对应的曲线函数关系进行颜色映射,而当前待处理的颜色信息大于或等于映射阈值时,则均是将待处理的颜色信息映射为1。The above is only an example of the tone mapping curve to be tested with a mapping threshold of 1.25. For any other tone mapping curve to be tested, the processing method is the same. For any tone mapping curve to be tested, when the current color information to be processed in the test screen is less than the mapping threshold, the curve function relationship corresponding to each tone mapping curve to be tested is used for color mapping. When the current color information to be processed is greater than or equal to the mapping threshold, the color information to be processed is mapped to 1.
在一些实施例中,待测色调映射曲线除了映射阈值为1.25,也可以是映射阈值为3等,或者映射阈值为10,只要满足映射处理后的画面能够在LDR显示器上进行显示,不会产生曝光等现象。而映射阈值的大小取决于测试HDR画面的最大亮度值,控制在合理的阈值范围即可。In some embodiments, the tone mapping curve to be tested may have a mapping threshold of 1.25, a mapping threshold of 3, or a mapping threshold of 10, as long as the mapped image can be displayed on the LDR display without causing exposure. The size of the mapping threshold depends on the maximum brightness value of the tested HDR image, and can be controlled within a reasonable threshold range.
图4为本申请实施例提供的另一种色调映射曲线的示意图;图4所示的色调映射曲线的映射阈值为3。通过上述方法,假设测试画面中当前待处理的颜色信息为2,其超过了1,也即超过了LDR画面的颜色显示范围,而采用图4所示的映射阈值为3的待测色调映射曲线对待处理的颜色信息进行映射,由于待处理的颜色信息2未超过映射阈值3,则可根据映射曲线的函数关系,可确定出当HDR画面的颜色值为2时,对应的LDR画面的颜色值为0.895,而0.895位于0-1之间,在LDR画面的颜色显示范围内,从而处理后画面可以在LDR显示器上进行正常显示。FIG4 is a schematic diagram of another tone mapping curve provided in an embodiment of the present application; the mapping threshold of the tone mapping curve shown in FIG4 is 3. Through the above method, assuming that the current color information to be processed in the test picture is 2, which exceeds 1, that is, exceeds the color display range of the LDR picture, and the color information to be processed is mapped using the tested tone mapping curve with a mapping threshold of 3 shown in FIG4, since the color information to be processed 2 does not exceed the mapping threshold 3, it can be determined according to the functional relationship of the mapping curve that when the color value of the HDR picture is 2, the corresponding color value of the LDR picture is 0.895, and 0.895 is between 0-1, which is within the color display range of the LDR picture, so that the processed picture can be displayed normally on the LDR display.
可选地,步骤S203中,确定待测色调映射曲线对应的处理后画面的颜色信息,可以包括:采用颜色提取工具,对待测色调映射曲线对应的处理后画面中各像素点的颜色信息进行提取,得到待测色调映射曲线对应的处理后画面的颜色信息,颜色信息包括:色相、饱和度和明度。Optionally, in step S203, determining the color information of the processed image corresponding to the tone mapping curve to be tested may include: using a color extraction tool to extract the color information of each pixel in the processed image corresponding to the tone mapping curve to be tested, and obtaining the color information of the processed image corresponding to the tone mapping curve to be tested, the color information including: hue, saturation and brightness.
在一些实施例中,可将待测色调映射曲线对应的处理后画面输入至颜色提取工具中,从而提取到处理后画面中各像素点的颜色信息,值得注意的是,这里提取的颜色信息则是指HSV颜色信息,上面进行色调映射处理时,均是针对RGB颜色的处理,而后续在进行待测色调映射曲线的测试分析时,需要根据HSV颜色信息进行分析,而在0-1的范围内,RGB信息与HSV的信息具有一一对应关系,从而可根据计算得到的RGB信息确定对应的HSV颜色信息。例如:RBG颜色值为R:0.895、G:0.895、B:0.895,对应的HSV颜色值为H:0、S:0、V:89。In some embodiments, the processed image corresponding to the tone mapping curve to be tested can be input into the color extraction tool to extract the color information of each pixel in the processed image. It is worth noting that the color information extracted here refers to HSV color information. When the tone mapping processing is performed above, it is all for RGB color processing. When the tone mapping curve to be tested is subsequently tested and analyzed, it is necessary to analyze it according to the HSV color information. In the range of 0-1, RGB information and HSV information have a one-to-one correspondence, so the corresponding HSV color information can be determined according to the calculated RGB information. For example: RBG color values are R: 0.895, G: 0.895, B: 0.895, and the corresponding HSV color values are H: 0, S: 0, V: 89.
图5为本申请实施例提供的又一种图像色调映射方法的流程示意图;可选地,标准测试图卡可包括:预设色卡以及预设灰阶卡。FIG5 is a flow chart of another image tone mapping method provided in an embodiment of the present application; optionally, the standard test chart may include: a preset color chart and a preset grayscale chart.
本实施例中,所使用的标准测试图卡可包括:预设色卡以及预设灰阶卡。其中,预设色卡可以为18色卡,而预设灰阶卡可以为33灰阶卡,而实际应用中,预设色卡也可以是19或者20色卡等,可以适应性的增加色卡中的颜色分类,而预设灰阶卡也可以是36灰阶卡等,但是33灰阶卡是人类肉眼可以辨别的灰阶范围,超过这个范围人类肉眼无法准确的进行辨别,无法进行有效测试,所以本实施例中采用33灰阶卡。In this embodiment, the standard test chart used may include: a preset color chart and a preset grayscale chart. Among them, the preset color chart may be an 18-color chart, and the preset grayscale chart may be a 33-grayscale chart. In actual applications, the preset color chart may also be a 19-color chart or a 20-color chart, etc., and the color classification in the color chart may be adaptively increased, and the preset grayscale chart may also be a 36-grayscale chart, etc. However, the 33-grayscale chart is a grayscale range that can be distinguished by the human eye. Beyond this range, the human eye cannot accurately distinguish and cannot perform effective testing, so the 33-grayscale chart is used in this embodiment.
其中,预设色卡用于通过对比色相、饱和度以及明度的偏移范围来说明待测色调映射曲线对色彩的影响程度。The preset color card is used to illustrate the influence of the tone mapping curve to be tested on the color by comparing the offset ranges of hue, saturation and brightness.
预设灰阶卡则是用于通过测量明度和对比度的偏移范围来判断画面对比度的变化,检查亮部和暗部细节损失,来判断画面细节的损失程度。The preset grayscale card is used to determine the change in picture contrast by measuring the offset range of brightness and contrast, checking the loss of details in bright and dark areas, and determining the degree of loss of picture details.
18色卡中包括18种基准颜色,同时每种基准颜色还标注有对应的H、S、V的取值。33灰阶卡则包含有33种等级灰度颜色,且每种灰度颜色标注有明度V的取值。The 18-color card includes 18 base colors, and each base color is also marked with the corresponding H, S, and V values. The 33-grayscale card contains 33 grayscale colors, and each grayscale color is marked with the lightness V value.
另外,在一些实施例中,标准测试图卡还可包括红绿蓝白灰黑色卡,红绿蓝白灰黑色卡用于通过测量色相、饱和度以及明度的偏移范围来说明待测色调映射曲线对三原色和黑白灰的影响程度。In addition, in some embodiments, the standard test chart may also include a red, green, blue, white, gray and black chart, which is used to illustrate the influence of the tone mapping curve to be tested on the three primary colors and black, white and gray by measuring the offset range of hue, saturation and brightness.
步骤S204中,根据待测色调映射曲线对应的处理后画面的颜色信息、以及标准测试图卡,确定待测色调映射曲线对应的处理画面风格,可以包括:In step S204, determining the style of the processed picture corresponding to the tone mapping curve to be tested according to the color information of the processed picture corresponding to the tone mapping curve to be tested and the standard test chart may include:
S501、根据待测色调映射曲线对应的处理后画面中各像素点的色相值、饱和度值、明度值以及预设色卡所标识的各基准颜色的色相值、饱和度值和明度值,分别确定待测色调映射曲线对应的色相偏移范围、饱和度偏移范围以及明度偏移范围。S501, determining the hue offset range, saturation offset range, and brightness offset range corresponding to the tone mapping curve to be tested, respectively, according to the hue value, saturation value, and brightness value of each pixel in the processed image corresponding to the tone mapping curve to be tested, and the hue value, saturation value, and brightness value of each reference color identified by a preset color card.
可选地,可将获取到的待测色调映射曲线对应的处理后画面中各像素点的色相值、饱和度值、明度值分别与18色卡中各像素点对应的基准颜色的色相值、饱和度值和明度值进行比对分析,以统计分析处理后画面相比于18色卡的色相偏移范围、饱和度偏移范围以及明度偏移范围。Optionally, the hue value, saturation value, and brightness value of each pixel in the processed image corresponding to the acquired tone mapping curve to be tested can be compared and analyzed with the hue value, saturation value, and brightness value of the reference color corresponding to each pixel in the 18-color card, so as to statistically analyze the hue offset range, saturation offset range, and brightness offset range of the processed image compared to the 18 color cards.
S502、根据色相偏移范围、饱和度偏移范围以及明度偏移范围,确定待测色调映射曲线的色相、饱和度以及明度分析结果。S502: Determine the hue, saturation and brightness analysis results of the tone mapping curve to be tested according to the hue offset range, the saturation offset range and the brightness offset range.
根据色相偏移范围可确定待测色调映射曲线的色相分析结果,根据饱和度偏移范围可确定待测色调映射曲线的饱和度分析结果,根据明度偏移范围可确定待测色调映射曲线的明度分析结果。The hue analysis result of the tone mapping curve to be tested can be determined according to the hue offset range, the saturation analysis result of the tone mapping curve to be tested can be determined according to the saturation offset range, and the brightness analysis result of the tone mapping curve to be tested can be determined according to the brightness offset range.
S503、根据待测色调映射曲线对应的处理后画面中各像素点的明度值以及预设灰阶卡所标识的各等级灰度颜色的明度值,确定待测色调映射曲线对应的色调差值。S503: Determine the tone difference value corresponding to the tone mapping curve to be tested according to the brightness value of each pixel in the processed picture corresponding to the tone mapping curve to be tested and the brightness value of each grayscale color level identified by the preset grayscale card.
同样的,将获取的处理后画面中各像素点的明度值与33灰阶卡中各像素点对应的灰度颜色的明度值进行比对,计算明度差值,得到色调差值。Similarly, the brightness value of each pixel in the processed image is compared with the brightness value of the grayscale color corresponding to each pixel in the 33 grayscale card, and the brightness difference is calculated to obtain the hue difference.
S504、根据色调差值,确定待测色调映射曲线的对比度分析结果。S504: Determine a contrast analysis result of the tone mapping curve to be tested according to the tone difference.
而根据色调差值,则可得到待测色调映射曲线的对比度分析结果。According to the tone difference, the contrast analysis result of the tone mapping curve to be tested can be obtained.
S505、根据色相、饱和度以及明度分析结果以及对比度分析结果,确定待测色调映射曲线对应的处理画面风格。S505 , determining a processing picture style corresponding to the tone mapping curve to be tested according to the hue, saturation, brightness analysis results and the contrast analysis results.
而结合色相分析结果、饱和度分析结果、明度分析结果以及对比度分析结果,则可确定出待测色调映射曲线对应的处理画面风格。也即,从待测色调映射曲线执行色调映射处理后得到的处理后画面的色相、饱和度、明度以及对比度等四个方面综合分析待测色调映射曲线所适用于的色调映射画面风格。By combining the hue analysis results, saturation analysis results, brightness analysis results and contrast analysis results, the processing picture style corresponding to the tested tone mapping curve can be determined. That is, the tone mapping picture style to which the tested tone mapping curve is applicable is comprehensively analyzed from the four aspects of hue, saturation, brightness and contrast of the processed picture obtained after the tested tone mapping curve performs tone mapping processing.
可选地,步骤S505中,根据色相、饱和度以及明度分析结果以及对比度分析结果,确定待测色调映射曲线对应的处理画面风格,可以包括:根据色相、饱和度以及明度分析结果、对比度分析结果以及各预设画面风格的颜色属性信息,将色相、饱和度以及明度分析结果、对比度分析结果与各预设画面风格进行匹配,确定与色相、饱和度以及明度分析结果、对比度分析结果匹配的预设画面风格为待测色调映射曲线对应的处理画面风格。Optionally, in step S505, determining the processing picture style corresponding to the tone mapping curve to be tested according to the hue, saturation and brightness analysis results and the contrast analysis results may include: matching the hue, saturation and brightness analysis results and the contrast analysis results with each preset picture style according to the hue, saturation and brightness analysis results, the contrast analysis results and color attribute information of each preset picture style, and determining that the preset picture style that matches the hue, saturation and brightness analysis results and the contrast analysis results is the processing picture style corresponding to the tone mapping curve to be tested.
通常,不同的画面风格对应的颜色属性也是不同的,也即画面的风格是由画面的颜色属性决定的,而这里的颜色属性则可以包括但不限于颜色的色相、饱和度、明度、对比度、色调等,颜色属性的不同所产生的画面风格也是不同的。例如:电影风格一般都是画面色偏适中、饱和度偏低、明度偏低、对比度偏低。而写实风格一般都是画面色偏小、饱和度适中、明度适中、对比度适中。卡通风格一般都是画面色偏高、饱和度高、明度高、画面对比度高。Usually, different picture styles correspond to different color attributes, that is, the style of the picture is determined by the color attributes of the picture, and the color attributes here can include but are not limited to the color hue, saturation, brightness, contrast, tone, etc., and the picture styles produced by different color attributes are also different. For example: the movie style is generally moderate in color, low in saturation, low in brightness, and low in contrast. The realistic style is generally small in color, moderate in saturation, moderate in brightness, and moderate in contrast. The cartoon style is generally high in color, high in saturation, high in brightness, and high in contrast.
基于此,可将上述得到的待测色调映射曲线对应的色相、饱和度以及明度分析结果、对比度分析结果与各预设画面风格的颜色属性信息进行匹配,并将匹配到的待测色调映射曲线所对应的预设画面风格确定为待测色调映射曲线所对应的处理画面风格。Based on this, the hue, saturation, brightness analysis results, and contrast analysis results corresponding to the tone mapping curve to be tested obtained above can be matched with the color attribute information of each preset picture style, and the preset picture style corresponding to the matched tone mapping curve to be tested can be determined as the processed picture style corresponding to the tone mapping curve to be tested.
如下通过一些数据举例对色相、饱和度以及明度分析结果以及对比度分析结果进行说明:The following is an explanation of the hue, saturation, brightness analysis results and contrast analysis results using some data examples:
如下表1为采用18色卡对色相、饱和度和明度进行分析的数据对比结果,其中,待测色调映射曲线分别包括:第一色调映射曲线(映射阈值为5)、第二色调映射曲线(映射阈值为3)和第三色调映射曲线(映射阈值为1.25),实际应用中,对于所有的待测色调映射曲线均按照下述方式进行分析。The following Table 1 is a data comparison result of analyzing hue, saturation and brightness using 18 color cards, wherein the tone mapping curves to be tested include: a first tone mapping curve (mapping threshold is 5), a second tone mapping curve (mapping threshold is 3) and a third tone mapping curve (mapping threshold is 1.25). In practical applications, all the tone mapping curves to be tested are analyzed in the following manner.
表1Table 1
如下表2为采用33灰阶卡对色调进行分析的数据对比结果:Table 2 below shows the data comparison results of color tone analysis using a 33-grayscale card:
表2Table 2
因此,通过上述分析可得出第一色调映射曲线适用于处理中色偏、低饱和、低明度、低对比度风格的画面;第二色调映射曲线适用于处理低色偏、中饱和、中明度、中对比度风格的画面;第三色调映射曲线适用于处理高色偏、高饱和、高明度、高对比度风格的画面。Therefore, through the above analysis, it can be concluded that the first tone mapping curve is suitable for processing pictures with medium color cast, low saturation, low brightness and low contrast styles; the second tone mapping curve is suitable for processing pictures with low color cast, medium saturation, medium brightness and medium contrast styles; the third tone mapping curve is suitable for processing pictures with high color cast, high saturation, high brightness and high contrast styles.
而假设预设画面风格分别包括:电影风格、写实风格和卡通风格。电影风格一般都是画面色偏适中、饱和度偏低、明度偏低、对比度偏低;写实风格一般都是画面色偏小、饱和度适中、明度适中、对比度适中;卡通风格一般都是画面色偏高、饱和度高、明度高、画面对比度高。Assume that the preset picture styles include: movie style, realistic style and cartoon style. Movie style generally has moderate color, low saturation, low brightness and low contrast; realistic style generally has small color, moderate saturation, moderate brightness and moderate contrast; cartoon style generally has high color, high saturation, high brightness and high contrast.
那么通过匹配,可确定出第一色调映射曲线的处理后画面呈现中色偏、低饱和、低明度、低对比画面效果,对应的处理画面风格可以为电影风格,第二色调映射曲线的处理后画面呈现低色偏、中饱和、中明度、中对比画面效果,更接近真实颜色还原,对应的处理画面风格可以为写实风格。第三色调映射曲线的处理后画面呈现高色偏、高饱和、高明度、高对比画面效果,亮部有一定的细节损失,对应的处理画面风格可以为卡通风格。Then, through matching, it can be determined that the processed image of the first tone mapping curve presents a medium color cast, low saturation, low brightness, and low contrast image effect, and the corresponding processed image style can be a movie style. The processed image of the second tone mapping curve presents a low color cast, medium saturation, medium brightness, and medium contrast image effect, which is closer to the true color restoration, and the corresponding processed image style can be a realistic style. The processed image of the third tone mapping curve presents a high color cast, high saturation, high brightness, and high contrast image effect, and there is a certain loss of details in the bright part, and the corresponding processed image style can be a cartoon style.
当然,本实施例仅仅是列举了三种色调映射曲线以及三种预设画面风格,实际应用中,可以将所有的待测色调映射曲线均采用本方法进行测试,而预设画面风格也不限于本方案所列举的,从而可以确定出任意的待测色调映射曲线所对应的处理画面风格。Of course, this embodiment only lists three tone mapping curves and three preset picture styles. In actual applications, all tone mapping curves to be tested can be tested using this method, and the preset picture styles are not limited to those listed in this solution, so that the processing picture style corresponding to any tone mapping curve to be tested can be determined.
可选地,步骤S103中,采用目标色调映射曲线对第一画面的颜色信息进行色调映射处理,得到第一画面对应的第二画面的颜色信息,可以包括:采用目标色调映射曲线,对第一画面中各像素的颜色信息进行色调映射处理,得到待处理的第一画面对应的第二画面中各像素的颜色信息。Optionally, in step S103, tone mapping is performed on the color information of the first picture using a target tone mapping curve to obtain color information of the second picture corresponding to the first picture, which may include: using the target tone mapping curve to perform tone mapping on the color information of each pixel in the first picture to obtain color information of each pixel in the second picture corresponding to the first picture to be processed.
可选地,采用色调映射曲线对待处理的第一画面进行色调映射处理可以是对第一画面中各像素的颜色信息分别采用色调映射曲线进行映射,得到各像素映射后的颜色信息,而映射后的颜色信息则可以为第一画面所要转换至的第二画面的颜色信息,从而根据映射后的各像素点的颜色信息可以生成第二画面,也即实现将待处理的HDR画面转换为LDR画面,并在显示器上进行LDR画面的显示。Optionally, using a tone mapping curve to perform tone mapping processing on the first picture to be processed can be to map the color information of each pixel in the first picture using the tone mapping curve to obtain the color information of each pixel after mapping, and the mapped color information can be the color information of the second picture to be converted from the first picture, so that the second picture can be generated according to the color information of each pixel after mapping, that is, the HDR picture to be processed is converted into an LDR picture, and the LDR picture is displayed on the display.
综上,本实施例提供的图像色调映射方法,在将HDR画面转换至LDR画面时,会根据HDR画面所要映射至的目标画面风格,调用与目标画面风格对应的色调映射曲线进行色调映射进行处理,使得映射后得到的LDR画面的显示效果更佳。针对用户的不同画面风格处理需求,可采用与画面风格匹配的色调映射曲线执行色调映射处理,避免了不同画面风格对应相同的色调映射曲线,色调映射曲线较单一固定所导致的色调映射后得到的LDR画面效果较差的问题。且相对于根据经验和视觉观察手动调整色调映射曲线的方式而言,本方案基于客观标准建立了画面风格和色调映射曲线之间的映射关系,从而使得采用与画面风格对应的色调映射曲线进行色调映射处理后得到的处理结果更具说服力,且处理结果的好坏具有了衡量标准,避免了依靠主观意识进行处理所导致的处理结果的效果好坏无法衡量的问题。In summary, the image tone mapping method provided in this embodiment, when converting an HDR picture to an LDR picture, will call the tone mapping curve corresponding to the target picture style according to the target picture style to which the HDR picture is to be mapped, and perform tone mapping processing, so that the display effect of the LDR picture obtained after mapping is better. In view of the different picture style processing requirements of users, a tone mapping curve matching the picture style can be used to perform tone mapping processing, avoiding the problem that different picture styles correspond to the same tone mapping curve, and the LDR picture effect obtained after tone mapping is poor due to the single and fixed tone mapping curve. And compared with the method of manually adjusting the tone mapping curve based on experience and visual observation, this scheme establishes a mapping relationship between the picture style and the tone mapping curve based on objective standards, so that the processing result obtained after tone mapping processing using the tone mapping curve corresponding to the picture style is more convincing, and the quality of the processing result has a measurement standard, avoiding the problem that the quality of the processing result cannot be measured due to relying on subjective consciousness.
下述对用以执行本申请所提供的图像色调映射方法的装置、设备及存储介质等进行说明,其具体的实现过程以及技术效果参见上述,下述不再赘述。The following describes the apparatus, device, storage medium, etc. used to execute the image tone mapping method provided in this application. The specific implementation process and technical effects are described above and will not be repeated below.
图6为本申请实施例提供的一种图像色调映射装置的示意图,该图像色调映射装置实现的功能对应上述方法执行的步骤。该装置可以理解为上述的处理设备。如图6所示,该装置可包括:获取模块610、确定模块620、处理模块630、生成模块640;FIG6 is a schematic diagram of an image tone mapping device provided in an embodiment of the present application. The functions implemented by the image tone mapping device correspond to the steps performed by the above method. The device can be understood as the above processing device. As shown in FIG6, the device may include: an acquisition module 610, a determination module 620, a processing module 630, and a generation module 640;
获取模块610,用于获取待处理的第一画面的颜色信息,第一画面为高动态范围画面;An acquisition module 610 is used to acquire color information of a first picture to be processed, where the first picture is a high dynamic range picture;
确定模块620,用于确定第一画面待映射的第二画面的目标画面风格,以及目标画面风格对应的目标色调映射曲线;第二画面为低动态范围画面;A determination module 620 is used to determine a target picture style of a second picture to be mapped from the first picture, and a target tone mapping curve corresponding to the target picture style; the second picture is a low dynamic range picture;
处理模块630,用于采用目标色调映射曲线对第一画面的颜色信息进行色调映射处理,得到第一画面对应的第二画面的颜色信息;A processing module 630 is used to perform tone mapping processing on the color information of the first picture using a target tone mapping curve to obtain color information of the second picture corresponding to the first picture;
生成模块640,用于根据第二画面的颜色信息生成第二画面,第二画面的画面风格为目标画面风格。The generating module 640 is used to generate a second picture according to the color information of the second picture, and the picture style of the second picture is the target picture style.
可选地,获取模块610,还用于获取多个测试画面,测试画面为高动态范围画面;Optionally, the acquisition module 610 is further used to acquire a plurality of test pictures, where the test pictures are high dynamic range pictures;
生成模块640,还用于采用待测色调映射曲线分别对测试画面进行色调映射处理,生成待测色调映射曲线对应的处理后画面;The generating module 640 is further used to perform tone mapping processing on the test pictures respectively using the tone mapping curve to be tested, and generate a processed picture corresponding to the tone mapping curve to be tested;
确定模块620,还用于确定待测色调映射曲线对应的处理后画面的颜色信息;The determination module 620 is further used to determine the color information of the processed picture corresponding to the tone mapping curve to be tested;
确定模块620,还用于根据待测色调映射曲线对应的处理后画面的颜色信息、以及标准测试图卡,确定待测色调映射曲线对应的处理画面风格,并建立待测色调映射曲线与对应的处理画面风格之间的映射关系。The determination module 620 is also used to determine the processed picture style corresponding to the tone mapping curve to be tested according to the color information of the processed picture corresponding to the tone mapping curve to be tested and the standard test chart, and establish a mapping relationship between the tone mapping curve to be tested and the corresponding processed picture style.
可选地,不同待测色调映射曲线的映射阈值不同;生成模块640,具体用于若测试画面中当前待处理的颜色信息小于待测色调映射曲线的映射阈值,则根据待测色调映射曲线对当前待处理的颜色信息进行处理,生成待测色调映射曲线对应的处理后画面。Optionally, the mapping thresholds of different tone mapping curves to be tested are different; a generation module 640 is specifically used to process the current color information to be processed according to the tone mapping curve to be tested if the current color information to be processed in the test picture is less than the mapping threshold of the tone mapping curve to be tested, and generate a processed picture corresponding to the tone mapping curve to be tested.
可选地,不同待测色调映射曲线的映射阈值不同;生成模块640,具体用于若测试画面中当前待处理的颜色信息大于或等于待测色调映射曲线的映射阈值,则根据预设的颜色阈值对当前待处理的颜色信息进行处理,生成待测色调映射曲线对应的处理后画面。Optionally, the mapping thresholds of different tone mapping curves to be tested are different; a generation module 640 is specifically used to process the current color information to be processed according to a preset color threshold if the current color information to be processed in the test picture is greater than or equal to the mapping threshold of the tone mapping curve to be tested, and generate a processed picture corresponding to the tone mapping curve to be tested.
可选地,确定模块620,具体用于采用颜色提取工具,对待测色调映射曲线对应的处理后画面中各像素点的颜色信息进行提取,得到待测色调映射曲线对应的处理后画面的颜色信息,颜色信息包括:色相、饱和度和明度。Optionally, the determination module 620 is specifically used to use a color extraction tool to extract the color information of each pixel in the processed picture corresponding to the tone mapping curve to be tested, and obtain the color information of the processed picture corresponding to the tone mapping curve to be tested, and the color information includes: hue, saturation and brightness.
可选地,标准测试图卡包括:预设色卡以及预设灰阶卡;确定模块620,具体用于根据待测色调映射曲线对应的处理后画面中各像素点的色相值、饱和度值、明度值以及预设色卡所标识的各基准颜色的色相值、饱和度值和明度值,分别确定待测色调映射曲线对应的色相偏移范围、饱和度偏移范围以及明度偏移范围;Optionally, the standard test chart includes: a preset color chart and a preset grayscale chart; a determination module 620, specifically used to determine the hue offset range, saturation offset range and brightness offset range corresponding to the tone mapping curve to be tested, according to the hue value, saturation value and brightness value of each pixel point in the processed picture corresponding to the tone mapping curve to be tested and the hue value, saturation value and brightness value of each reference color identified by the preset color chart;
根据色相偏移范围、饱和度偏移范围以及明度偏移范围,确定待测色调映射曲线的色相、饱和度以及明度分析结果;Determine the hue, saturation and brightness analysis results of the tone mapping curve to be tested according to the hue offset range, the saturation offset range and the brightness offset range;
根据待测色调映射曲线对应的处理后画面中各像素点的明度值以及预设灰阶卡所标识的各等级灰度颜色的明度值,确定待测色调映射曲线对应的色调差值;Determine the tone difference value corresponding to the tone mapping curve to be tested according to the brightness value of each pixel in the processed picture corresponding to the tone mapping curve to be tested and the brightness value of each grayscale color level marked by the preset grayscale card;
根据色调差值,确定待测色调映射曲线的对比度分析结果;Determine the contrast analysis result of the tone mapping curve to be tested according to the tone difference value;
根据色相、饱和度以及明度分析结果以及对比度分析结果,确定待测色调映射曲线对应的处理画面风格。According to the hue, saturation, brightness analysis results and contrast analysis results, the processing picture style corresponding to the tone mapping curve to be tested is determined.
可选地,确定模块620,具体用于根据色相、饱和度以及明度分析结果、对比度分析结果以及各预设画面风格的颜色属性信息,将色相、饱和度以及明度分析结果、对比度分析结果与各预设画面风格进行匹配,确定与色相、饱和度以及明度分析结果、对比度分析结果匹配的预设画面风格为待测色调映射曲线对应的处理画面风格。Optionally, the determination module 620 is specifically used to match the hue, saturation and brightness analysis results, and the contrast analysis results with each preset picture style based on the hue, saturation and brightness analysis results, the contrast analysis results, and the color attribute information of each preset picture style, and determine that the preset picture style that matches the hue, saturation and brightness analysis results, and the contrast analysis results is the processed picture style corresponding to the tone mapping curve to be tested.
可选地,处理模块630,具体用于采用目标色调映射曲线,对第一画面中各像素的颜色信息进行色调映射处理,得到待处理的第一画面对应的第二画面中各像素的颜色信息。Optionally, the processing module 630 is specifically configured to perform tone mapping processing on color information of each pixel in the first picture by using a target tone mapping curve, so as to obtain color information of each pixel in the second picture corresponding to the first picture to be processed.
以上这些模块可以是被配置成实施以上方法的一个或多个集成电路,例如:一个或多个特定集成电路(Application Specific Integrated Circuit,简称ASIC),或,一个或多个微处理器(digital singnal processor,简称DSP),或,一个或者多个现场可编程门阵列(Field Programmable Gate Array,简称FPGA)等。再如,当以上某个模块通过处理元件调度程序代码的形式实现时,该处理元件可以是通用处理器,例如中央处理器(CentralProcessing Unit,简称CPU)或其它可以调用程序代码的处理器。再如,这些模块可以集成在一起,以片上系统(system-on-a-chip,简称SOC)的形式实现。The above modules may be one or more integrated circuits configured to implement the above methods, such as one or more application specific integrated circuits (ASIC), or one or more digital singnal processors (DSP), or one or more field programmable gate arrays (FPGA). For another example, when a module is implemented in the form of a processing element scheduling program code, the processing element may be a general-purpose processor, such as a central processing unit (CPU) or other processors that can call program code. For another example, these modules may be integrated together and implemented in the form of a system-on-a-chip (SOC).
上述模块可以经由有线连接或无线连接彼此连接或通信。有线连接可以包括金属线缆、光缆、混合线缆等,或其任意组合。无线连接可以包括通过LAN、WAN、蓝牙、ZigBee、或NFC等形式的连接,或其任意组合。两个或更多个模块可以组合为单个模块,并且任何一个模块可以分成两个或更多个单元。所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的系统和装置的具体工作过程,可以参考方法实施例中的对应过程,本申请中不再赘述。The above modules can be connected or communicated with each other via a wired connection or a wireless connection. The wired connection may include a metal cable, an optical cable, a hybrid cable, etc., or any combination thereof. The wireless connection may include a connection in the form of a LAN, a WAN, Bluetooth, a ZigBee, or NFC, or any combination thereof. Two or more modules may be combined into a single module, and any one module may be divided into two or more units. Those skilled in the art will clearly understand that for the convenience and brevity of description, the specific working process of the system and device described above can refer to the corresponding process in the method embodiment, and will not be repeated in this application.
图7为本申请实施例提供的一种电子设备的结构示意图,包括:处理器801、存储介质802和总线803,存储介质802存储有处理器801可执行的机器可读指令,当电子设备运行如实施例中的一种图像色调映射方法时,处理器801与存储介质802之间通过总线803通信,处理器801执行机器可读指令,以执行以下步骤:FIG7 is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application, including: a processor 801, a storage medium 802 and a bus 803, wherein the storage medium 802 stores machine-readable instructions executable by the processor 801. When the electronic device runs an image tone mapping method in the embodiment, the processor 801 communicates with the storage medium 802 via the bus 803, and the processor 801 executes the machine-readable instructions to perform the following steps:
获取待处理的第一画面的颜色信息,第一画面为高动态范围画面;Acquire color information of a first picture to be processed, where the first picture is a high dynamic range picture;
确定第一画面待映射的第二画面的目标画面风格,以及目标画面风格对应的目标色调映射曲线;第二画面为低动态范围画面;Determining a target picture style of a second picture to be mapped from the first picture, and a target tone mapping curve corresponding to the target picture style; the second picture is a low dynamic range picture;
采用目标色调映射曲线对第一画面的颜色信息进行色调映射处理,得到第一画面对应的第二画面的颜色信息;Performing tone mapping processing on the color information of the first picture using the target tone mapping curve to obtain color information of the second picture corresponding to the first picture;
根据第二画面的颜色信息生成第二画面,第二画面的画面风格为目标画面风格。A second picture is generated according to the color information of the second picture, and the picture style of the second picture is the target picture style.
在一个可行的实施方案中,处理器801在执行确定目标画面风格对应的目标色调映射曲线之前,还用于:获取多个测试画面,测试画面为高动态范围画面;In a feasible implementation manner, before determining the target tone mapping curve corresponding to the target picture style, the processor 801 is further configured to: acquire a plurality of test pictures, where the test pictures are high dynamic range pictures;
采用待测色调映射曲线分别对测试画面进行色调映射处理,生成待测色调映射曲线对应的处理后画面;Using the tone mapping curve to be tested to perform tone mapping processing on the test pictures respectively, and generate processed pictures corresponding to the tone mapping curve to be tested;
确定待测色调映射曲线对应的处理后画面的颜色信息;Determine the color information of the processed picture corresponding to the tone mapping curve to be tested;
根据待测色调映射曲线对应的处理后画面的颜色信息、以及标准测试图卡,确定待测色调映射曲线对应的处理画面风格,并建立待测色调映射曲线与对应的处理画面风格之间的映射关系。According to the color information of the processed picture corresponding to the tested tone mapping curve and the standard test chart, the processed picture style corresponding to the tested tone mapping curve is determined, and a mapping relationship between the tested tone mapping curve and the corresponding processed picture style is established.
在一个可行的实施方案中,不同待测色调映射曲线的映射阈值不同;处理器801在执行采用待测色调映射曲线分别对测试画面进行色调映射处理,生成待测色调映射曲线对应的处理后画面时,具体用于:若测试画面中当前待处理的颜色信息小于待测色调映射曲线的映射阈值,则根据待测色调映射曲线对当前待处理的颜色信息进行处理,生成待测色调映射曲线对应的处理后画面。In a feasible implementation scheme, different mapping thresholds of tone mapping curves to be tested are different; when the processor 801 executes tone mapping processing on the test picture using the tone mapping curve to be tested to generate a processed picture corresponding to the tone mapping curve to be tested, it is specifically used for: if the current color information to be processed in the test picture is less than the mapping threshold of the tone mapping curve to be tested, the current color information to be processed is processed according to the tone mapping curve to be tested to generate a processed picture corresponding to the tone mapping curve to be tested.
在一个可行的实施方案中,不同待测色调映射曲线的映射阈值不同;处理器801在执行采用待测色调映射曲线分别对测试画面进行色调映射处理,生成待测色调映射曲线对应的处理后画面时,具体用于:若测试画面中当前待处理的颜色信息大于或等于待测色调映射曲线的映射阈值,则根据预设的颜色阈值对当前待处理的颜色信息进行处理,生成待测色调映射曲线对应的处理后画面。In a feasible implementation scheme, different mapping thresholds of tone mapping curves to be tested are different; when the processor 801 executes tone mapping processing on the test picture using the tone mapping curve to be tested to generate a processed picture corresponding to the tone mapping curve to be tested, it is specifically used for: if the current color information to be processed in the test picture is greater than or equal to the mapping threshold of the tone mapping curve to be tested, the current color information to be processed is processed according to a preset color threshold to generate a processed picture corresponding to the tone mapping curve to be tested.
在一个可行的实施方案中,处理器801在执行确定待测色调映射曲线对应的处理后画面的颜色信息时,具体用于:采用颜色提取工具,对待测色调映射曲线对应的处理后画面中各像素点的颜色信息进行提取,得到待测色调映射曲线对应的处理后画面的颜色信息,颜色信息包括:色相、饱和度和明度。In a feasible implementation scheme, when the processor 801 determines the color information of the processed image corresponding to the tone mapping curve to be tested, it is specifically used to: use a color extraction tool to extract the color information of each pixel in the processed image corresponding to the tone mapping curve to be tested, and obtain the color information of the processed image corresponding to the tone mapping curve to be tested, and the color information includes: hue, saturation and brightness.
在一个可行的实施方案中,标准测试图卡包括:预设色卡以及预设灰阶卡;处理器801在执行根据待测色调映射曲线对应的处理后画面的颜色信息、以及标准测试图卡,确定待测色调映射曲线对应的处理画面风格时,具体用于:In a feasible implementation manner, the standard test chart includes: a preset color chart and a preset grayscale chart; when the processor 801 determines the processed picture style corresponding to the tone mapping curve to be tested according to the color information of the processed picture corresponding to the tone mapping curve to be tested and the standard test chart, it is specifically used to:
根据待测色调映射曲线对应的处理后画面中各像素点的色相值、饱和度值、明度值以及预设色卡所标识的各基准颜色的色相值、饱和度值和明度值,分别确定待测色调映射曲线对应的色相偏移范围、饱和度偏移范围以及明度偏移范围;According to the hue value, saturation value, brightness value of each pixel in the processed picture corresponding to the tone mapping curve to be tested and the hue value, saturation value and brightness value of each reference color identified by the preset color card, respectively determine the hue offset range, saturation offset range and brightness offset range corresponding to the tone mapping curve to be tested;
根据色相偏移范围、饱和度偏移范围以及明度偏移范围,确定待测色调映射曲线的色相、饱和度以及明度分析结果;Determine the hue, saturation and brightness analysis results of the tone mapping curve to be tested according to the hue offset range, the saturation offset range and the brightness offset range;
根据待测色调映射曲线对应的处理后画面中各像素点的明度值以及预设灰阶卡所标识的各等级灰度颜色的明度值,确定待测色调映射曲线对应的色调差值;Determine the tone difference value corresponding to the tone mapping curve to be tested according to the brightness value of each pixel in the processed picture corresponding to the tone mapping curve to be tested and the brightness value of each grayscale color level marked by the preset grayscale card;
根据色调差值,确定待测色调映射曲线的对比度分析结果;Determine the contrast analysis result of the tone mapping curve to be tested according to the tone difference value;
根据色相、饱和度以及明度分析结果以及对比度分析结果,确定待测色调映射曲线对应的处理画面风格。According to the hue, saturation, brightness analysis results and contrast analysis results, the processing picture style corresponding to the tone mapping curve to be tested is determined.
在一个可行的实施方案中,处理器801在执行根据色相、饱和度以及明度分析结果以及对比度分析结果,确定待测色调映射曲线对应的处理画面风格时,具体用于:根据色相、饱和度以及明度分析结果、对比度分析结果以及各预设画面风格的颜色属性信息,将色相、饱和度以及明度分析结果、对比度分析结果与各预设画面风格进行匹配,确定与色相、饱和度以及明度分析结果、对比度分析结果匹配的预设画面风格为待测色调映射曲线对应的处理画面风格。In a feasible implementation scheme, when the processor 801 determines the processing picture style corresponding to the tone mapping curve to be tested according to the hue, saturation and brightness analysis results and the contrast analysis results, it is specifically used to: match the hue, saturation and brightness analysis results, the contrast analysis results with each preset picture style according to the hue, saturation and brightness analysis results, the contrast analysis results and the color attribute information of each preset picture style, and determine that the preset picture style that matches the hue, saturation and brightness analysis results, and the contrast analysis results is the processing picture style corresponding to the tone mapping curve to be tested.
在一个可行的实施方案中,处理器801在执行采用目标色调映射曲线对第一画面的颜色信息进行色调映射处理,得到第一画面对应的第二画面的颜色信息时,具体用于采用目标色调映射曲线,对第一画面中各像素的颜色信息进行色调映射处理,得到待处理的第一画面对应的第二画面中各像素的颜色信息。In a feasible implementation scheme, when the processor 801 executes tone mapping processing on the color information of the first picture using the target tone mapping curve to obtain the color information of the second picture corresponding to the first picture, it is specifically used to use the target tone mapping curve to perform tone mapping processing on the color information of each pixel in the first picture to obtain the color information of each pixel in the second picture corresponding to the first picture to be processed.
通过上述方式,当计算机设备获取到待处理的HDR画面以及HDR画面所要映射至的LDR画面的目标画面风格后,会根据HDR画面所要映射至的目标画面风格,调用与目标画面风格对应的色调映射曲线进行色调映射进行处理,使得映射后得到的LDR画面的显示效果更佳。针对用户的不同画面风格处理需求,可采用与画面风格匹配的色调映射曲线执行色调映射处理,避免了不同画面风格对应相同的色调映射曲线,色调映射曲线较单一固定所导致的色调映射后得到的LDR画面效果较差的问题。且相对于根据经验和视觉观察手动调整色调映射曲线的方式而言,本方案基于客观标准建立了画面风格和色调映射曲线之间的映射关系,从而使得采用与画面风格对应的色调映射曲线进行色调映射处理后得到的处理结果更具说服力,且处理结果的好坏具有了衡量标准,避免了依靠主观意识进行处理所导致的处理结果的效果好坏无法衡量的问题。Through the above method, when the computer device obtains the target picture style of the HDR picture to be processed and the LDR picture to which the HDR picture is to be mapped, it will call the tone mapping curve corresponding to the target picture style to perform tone mapping according to the target picture style to which the HDR picture is to be mapped, so that the display effect of the LDR picture obtained after mapping is better. According to the different picture style processing requirements of users, the tone mapping process can be performed using a tone mapping curve that matches the picture style, avoiding the problem that different picture styles correspond to the same tone mapping curve, and the LDR picture effect obtained after tone mapping is poor due to the single and fixed tone mapping curve. And compared with the method of manually adjusting the tone mapping curve based on experience and visual observation, this scheme establishes a mapping relationship between the picture style and the tone mapping curve based on objective standards, so that the processing result obtained after the tone mapping process using the tone mapping curve corresponding to the picture style is more convincing, and the quality of the processing result has a measurement standard, avoiding the problem that the quality of the processing result cannot be measured due to relying on subjective consciousness.
其中,存储介质802存储有程序代码,当程序代码被处理器801执行时,使得处理器801执行本说明书上述“示例性方法”部分中描述的根据本申请各种示例性实施方式的图像色调映射方法中的各种步骤。Among them, the storage medium 802 stores program code, and when the program code is executed by the processor 801, the processor 801 executes various steps in the image tone mapping method according to various exemplary embodiments of the present application described in the above "Exemplary Method" section of this specification.
处理器801可以是通用处理器,例如中央处理器(CPU)、数字信号处理器(DigitalSignal Processor,DSP)、专用集成电路(Application Specific Integrated Circuit,ASIC)、现场可编程门阵列(Field Programmable Gate Array,FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件,可以实现或者执行本申请实施例中公开的各方法、步骤及逻辑框图。通用处理器可以是微处理器或者任何常规的处理器等。结合本申请实施例所公开的方法的步骤可以直接体现为硬件处理器执行完成,或者用处理器中的硬件及软件模块组合执行完成。Processor 801 can be a general-purpose processor, such as a central processing unit (CPU), a digital signal processor (DigitalSignal Processor, DSP), an application-specific integrated circuit (Application Specific Integrated Circuit, ASIC), a field programmable gate array (Field Programmable Gate Array, FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components, and can implement or execute the various methods, steps and logic block diagrams disclosed in the embodiments of the present application. A general-purpose processor can be a microprocessor or any conventional processor, etc. The steps of the method disclosed in conjunction with the embodiments of the present application can be directly embodied as a hardware processor to be executed, or a combination of hardware and software modules in the processor can be executed.
存储介质802作为一种非易失性计算机可读存储介质,可用于存储非易失性软件程序、非易失性计算机可执行程序以及模块。存储器可以包括至少一种类型的存储介质,例如可以包括闪存、硬盘、多媒体卡、卡型存储器、随机访问存储器(Random Access Memory,RAM)、静态随机访问存储器(Static Random Access Memory,SRAM)、可编程只读存储器(Programmable Read Only Memory,PROM)、只读存储器(Read Only Memory,ROM)、带电可擦除可编程只读存储器(Electrically Erasable Programmable Read-Only Memory,EEPROM)、磁性存储器、磁盘、光盘等等。存储器是能够用于携带或存储具有指令或数据结构形式的期望的程序代码并能够由计算机存取的任何其他介质,但不限于此。本申请实施例中的存储介质802还可以是电路或者其它任意能够实现存储功能的装置,用于存储程序指令和/或数据。Storage medium 802, as a non-volatile computer-readable storage medium, can be used to store non-volatile software programs, non-volatile computer executable programs and modules. The memory may include at least one type of storage medium, such as flash memory, hard disk, multimedia card, card-type memory, random access memory (Random Access Memory, RAM), static random access memory (Static Random Access Memory, SRAM), programmable read-only memory (Programmable Read Only Memory, PROM), read-only memory (Read Only Memory, ROM), electrically erasable programmable read-only memory (Electrically Erasable Programmable Read-Only Memory, EEPROM), magnetic memory, disk, optical disk, etc. The memory is any other medium that can be used to carry or store a desired program code in the form of an instruction or data structure and can be accessed by a computer, but is not limited thereto. The storage medium 802 in the embodiment of the present application can also be a circuit or any other device that can realize a storage function, for storing program instructions and/or data.
可选地,本申请实施例还提供了一种计算机可读存储介质,该计算机可读存储介质上存储有计算机程序,该计算机程序被处理器运行时执行,处理器执行以下步骤:Optionally, an embodiment of the present application further provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the processor performs the following steps:
获取待处理的第一画面的颜色信息,第一画面为高动态范围画面;Acquire color information of a first picture to be processed, where the first picture is a high dynamic range picture;
确定第一画面待映射的第二画面的目标画面风格,以及目标画面风格对应的目标色调映射曲线;第二画面为低动态范围画面;Determining a target picture style of a second picture to be mapped from the first picture, and a target tone mapping curve corresponding to the target picture style; the second picture is a low dynamic range picture;
采用目标色调映射曲线对第一画面的颜色信息进行色调映射处理,得到第一画面对应的第二画面的颜色信息;Performing tone mapping processing on the color information of the first picture using the target tone mapping curve to obtain color information of the second picture corresponding to the first picture;
根据第二画面的颜色信息生成第二画面,第二画面的画面风格为目标画面风格。A second picture is generated according to the color information of the second picture, and the picture style of the second picture is the target picture style.
在一个可行的实施方案中,处理器801在执行确定目标画面风格对应的目标色调映射曲线之前,还用于:获取多个测试画面,测试画面为高动态范围画面;In a feasible implementation manner, before determining the target tone mapping curve corresponding to the target picture style, the processor 801 is further configured to: acquire a plurality of test pictures, where the test pictures are high dynamic range pictures;
采用待测色调映射曲线分别对测试画面进行色调映射处理,生成待测色调映射曲线对应的处理后画面;Using the tone mapping curve to be tested to perform tone mapping processing on the test pictures respectively, and generate processed pictures corresponding to the tone mapping curve to be tested;
确定待测色调映射曲线对应的处理后画面的颜色信息;Determine the color information of the processed picture corresponding to the tone mapping curve to be tested;
根据待测色调映射曲线对应的处理后画面的颜色信息、以及标准测试图卡,确定待测色调映射曲线对应的处理画面风格,并建立待测色调映射曲线与对应的处理画面风格之间的映射关系。According to the color information of the processed picture corresponding to the tested tone mapping curve and the standard test chart, the processed picture style corresponding to the tested tone mapping curve is determined, and a mapping relationship between the tested tone mapping curve and the corresponding processed picture style is established.
在一个可行的实施方案中,不同待测色调映射曲线的映射阈值不同;处理器801在执行采用待测色调映射曲线分别对测试画面进行色调映射处理,生成待测色调映射曲线对应的处理后画面时,具体用于:若测试画面中当前待处理的颜色信息小于待测色调映射曲线的映射阈值,则根据待测色调映射曲线对当前待处理的颜色信息进行处理,生成待测色调映射曲线对应的处理后画面。In a feasible implementation scheme, different mapping thresholds of tone mapping curves to be tested are different; when the processor 801 executes tone mapping processing on the test picture using the tone mapping curve to be tested to generate a processed picture corresponding to the tone mapping curve to be tested, it is specifically used for: if the current color information to be processed in the test picture is less than the mapping threshold of the tone mapping curve to be tested, the current color information to be processed is processed according to the tone mapping curve to be tested to generate a processed picture corresponding to the tone mapping curve to be tested.
在一个可行的实施方案中,不同待测色调映射曲线的映射阈值不同;处理器801在执行采用待测色调映射曲线分别对测试画面进行色调映射处理,生成待测色调映射曲线对应的处理后画面时,具体用于:若测试画面中当前待处理的颜色信息大于或等于待测色调映射曲线的映射阈值,则根据预设的颜色阈值对当前待处理的颜色信息进行处理,生成待测色调映射曲线对应的处理后画面。In a feasible implementation scheme, different mapping thresholds of tone mapping curves to be tested are different; when the processor 801 executes tone mapping processing on the test picture using the tone mapping curve to be tested to generate a processed picture corresponding to the tone mapping curve to be tested, it is specifically used for: if the current color information to be processed in the test picture is greater than or equal to the mapping threshold of the tone mapping curve to be tested, the current color information to be processed is processed according to a preset color threshold to generate a processed picture corresponding to the tone mapping curve to be tested.
在一个可行的实施方案中,处理器801在执行确定待测色调映射曲线对应的处理后画面的颜色信息时,具体用于:采用颜色提取工具,对待测色调映射曲线对应的处理后画面中各像素点的颜色信息进行提取,得到待测色调映射曲线对应的处理后画面的颜色信息,颜色信息包括:色相、饱和度和明度。In a feasible implementation scheme, when the processor 801 determines the color information of the processed image corresponding to the tone mapping curve to be tested, it is specifically used to: use a color extraction tool to extract the color information of each pixel in the processed image corresponding to the tone mapping curve to be tested, and obtain the color information of the processed image corresponding to the tone mapping curve to be tested, and the color information includes: hue, saturation and brightness.
在一个可行的实施方案中,标准测试图卡包括:预设色卡以及预设灰阶卡;处理器801在执行根据待测色调映射曲线对应的处理后画面的颜色信息、以及标准测试图卡,确定待测色调映射曲线对应的处理画面风格时,具体用于:In a feasible implementation manner, the standard test chart includes: a preset color chart and a preset grayscale chart; when the processor 801 determines the processed picture style corresponding to the tone mapping curve to be tested according to the color information of the processed picture corresponding to the tone mapping curve to be tested and the standard test chart, it is specifically used to:
根据待测色调映射曲线对应的处理后画面中各像素点的色相值、饱和度值、明度值以及预设色卡所标识的各基准颜色的色相值、饱和度值和明度值,分别确定待测色调映射曲线对应的色相偏移范围、饱和度偏移范围以及明度偏移范围;According to the hue value, saturation value, brightness value of each pixel in the processed picture corresponding to the tone mapping curve to be tested and the hue value, saturation value and brightness value of each reference color identified by the preset color card, respectively determine the hue offset range, saturation offset range and brightness offset range corresponding to the tone mapping curve to be tested;
根据色相偏移范围、饱和度偏移范围以及明度偏移范围,确定待测色调映射曲线的色相、饱和度以及明度分析结果;Determine the hue, saturation and brightness analysis results of the tone mapping curve to be tested according to the hue offset range, the saturation offset range and the brightness offset range;
根据待测色调映射曲线对应的处理后画面中各像素点的明度值以及预设灰阶卡所标识的各等级灰度颜色的明度值,确定待测色调映射曲线对应的色调差值;Determine the tone difference value corresponding to the tone mapping curve to be tested according to the brightness value of each pixel in the processed picture corresponding to the tone mapping curve to be tested and the brightness value of each grayscale color level marked by the preset grayscale card;
根据色调差值,确定待测色调映射曲线的对比度分析结果;Determine the contrast analysis result of the tone mapping curve to be tested according to the tone difference value;
根据色相、饱和度以及明度分析结果以及对比度分析结果,确定待测色调映射曲线对应的处理画面风格。According to the hue, saturation, brightness analysis results and contrast analysis results, the processing picture style corresponding to the tone mapping curve to be tested is determined.
在一个可行的实施方案中,处理器801在执行根据色相、饱和度以及明度分析结果以及对比度分析结果,确定待测色调映射曲线对应的处理画面风格时,具体用于:根据色相、饱和度以及明度分析结果、对比度分析结果以及各预设画面风格的颜色属性信息,将色相、饱和度以及明度分析结果、对比度分析结果与各预设画面风格进行匹配,确定与色相、饱和度以及明度分析结果、对比度分析结果匹配的预设画面风格为待测色调映射曲线对应的处理画面风格。In a feasible implementation scheme, when the processor 801 determines the processing picture style corresponding to the tone mapping curve to be tested according to the hue, saturation and brightness analysis results and the contrast analysis results, it is specifically used to: match the hue, saturation and brightness analysis results and the contrast analysis results with each preset picture style according to the hue, saturation and brightness analysis results, the contrast analysis results and the color attribute information of each preset picture style, and determine that the preset picture style that matches the hue, saturation and brightness analysis results and the contrast analysis results is the processing picture style corresponding to the tone mapping curve to be tested.
在一个可行的实施方案中,处理器801在执行采用目标色调映射曲线对第一画面的颜色信息进行色调映射处理,得到第一画面对应的第二画面的颜色信息时,具体用于采用目标色调映射曲线,对第一画面中各像素的颜色信息进行色调映射处理,得到待处理的第一画面对应的第二画面中各像素的颜色信息。In a feasible implementation scheme, when the processor 801 executes tone mapping processing on the color information of the first picture using the target tone mapping curve to obtain the color information of the second picture corresponding to the first picture, it is specifically used to use the target tone mapping curve to perform tone mapping processing on the color information of each pixel in the first picture to obtain the color information of each pixel in the second picture corresponding to the first picture to be processed.
通过上述方式,当计算机设备获取到待处理的HDR画面以及HDR画面所要转换至的LDR画面的目标画面风格后,会根据HDR画面所要映射至的目标画面风格,调用与目标画面风格对应的色调映射曲线进行色调映射进行处理,使得映射后得到的LDR画面的显示效果更佳。针对用户的不同画面风格处理需求,可采用与画面风格匹配的色调映射曲线执行色调映射处理,避免了不同画面风格对应相同的色调映射曲线,色调映射曲线较单一固定所导致的色调映射后得到的LDR画面效果较差的问题。且相对于根据经验和视觉观察手动调整色调映射曲线的方式而言,本方案基于客观标准建立了画面风格和色调映射曲线之间的映射关系,从而使得采用与画面风格对应的色调映射曲线进行色调映射处理后得到的处理结果更具说服力,且处理结果的好坏具有了衡量标准,避免了依靠主观意识进行处理所导致的处理结果的效果好坏无法衡量的问题。Through the above method, when the computer device obtains the target picture style of the HDR picture to be processed and the LDR picture to be converted to by the HDR picture, it will call the tone mapping curve corresponding to the target picture style to perform tone mapping according to the target picture style to be mapped to the HDR picture, so that the display effect of the LDR picture obtained after mapping is better. According to the different picture style processing requirements of users, the tone mapping process can be performed using a tone mapping curve that matches the picture style, avoiding the problem that different picture styles correspond to the same tone mapping curve, and the LDR picture effect obtained after tone mapping is poor due to the single and fixed tone mapping curve. And compared with the method of manually adjusting the tone mapping curve based on experience and visual observation, this scheme establishes a mapping relationship between the picture style and the tone mapping curve based on objective standards, so that the processing result obtained after the tone mapping process using the tone mapping curve corresponding to the picture style is more convincing, and the quality of the processing result has a measurement standard, avoiding the problem that the quality of the processing result cannot be measured due to relying on subjective consciousness.
在本申请所提供的几个实施例中,应该理解到,所揭露的装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
另外,在本申请各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用硬件加软件功能单元的形式实现。In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of hardware plus software functional units.
上述以软件功能单元的形式实现的集成的单元,可以存储在一个计算机可读取存储介质中。上述软件功能单元存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)或处理器(英文:processor)执行本申请各个实施例所述方法的部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(英文:Read-Only Memory,简称:ROM)、随机存取存储器(英文:Random Access Memory,简称:RAM)、磁碟或者光盘等各种可以存储程序代码的介质。The above-mentioned integrated unit implemented in the form of a software functional unit can be stored in a computer-readable storage medium. The above-mentioned software functional unit is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) or a processor (English: processor) to perform some steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (English: Read-Only Memory, abbreviated: ROM), random access memory (English: Random Access Memory, abbreviated: RAM), disk or optical disk and other media that can store program codes.
Claims (11)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202310559768.1A CN116681605A (en) | 2023-05-15 | 2023-05-15 | Image tone mapping method, device, electronic device and storage medium |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202310559768.1A CN116681605A (en) | 2023-05-15 | 2023-05-15 | Image tone mapping method, device, electronic device and storage medium |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| CN116681605A true CN116681605A (en) | 2023-09-01 |
Family
ID=87781630
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202310559768.1A Pending CN116681605A (en) | 2023-05-15 | 2023-05-15 | Image tone mapping method, device, electronic device and storage medium |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN116681605A (en) |
Citations (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20170139572A1 (en) * | 2015-11-17 | 2017-05-18 | Adobe Systems Incorporated | Image Color and Tone Style Transfer |
| CN108090879A (en) * | 2017-12-12 | 2018-05-29 | 上海顺久电子科技有限公司 | The method and display device that a kind of high dynamic range images to input are handled |
| CN110634169A (en) * | 2019-01-08 | 2019-12-31 | 华为技术有限公司 | Apparatus and method for image processing |
| CN111476851A (en) * | 2020-04-09 | 2020-07-31 | 广州华多网络科技有限公司 | Image processing method, image processing device, electronic equipment and storage medium |
| CN115187476A (en) * | 2022-06-30 | 2022-10-14 | 海宁奕斯伟集成电路设计有限公司 | Tone mapping device and method for high dynamic range image |
| CN115239578A (en) * | 2022-06-17 | 2022-10-25 | 展讯通信(上海)有限公司 | Image processing method and apparatus, computer-readable storage medium, and terminal device |
-
2023
- 2023-05-15 CN CN202310559768.1A patent/CN116681605A/en active Pending
Patent Citations (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20170139572A1 (en) * | 2015-11-17 | 2017-05-18 | Adobe Systems Incorporated | Image Color and Tone Style Transfer |
| CN108090879A (en) * | 2017-12-12 | 2018-05-29 | 上海顺久电子科技有限公司 | The method and display device that a kind of high dynamic range images to input are handled |
| CN110634169A (en) * | 2019-01-08 | 2019-12-31 | 华为技术有限公司 | Apparatus and method for image processing |
| CN111476851A (en) * | 2020-04-09 | 2020-07-31 | 广州华多网络科技有限公司 | Image processing method, image processing device, electronic equipment and storage medium |
| CN115239578A (en) * | 2022-06-17 | 2022-10-25 | 展讯通信(上海)有限公司 | Image processing method and apparatus, computer-readable storage medium, and terminal device |
| CN115187476A (en) * | 2022-06-30 | 2022-10-14 | 海宁奕斯伟集成电路设计有限公司 | Tone mapping device and method for high dynamic range image |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US8902328B2 (en) | Method of selecting a subset from an image set for generating high dynamic range image | |
| US8310499B2 (en) | Balancing luminance disparity in a display by multiple projectors | |
| CN113170028B (en) | Method for generating image data for machine learning based imaging algorithms | |
| CN112669758B (en) | Display screen correction method, device, system and computer readable storage medium | |
| CN112469978B (en) | Color evaluation device, color evaluation method, and display object used in color evaluation method | |
| Smith et al. | Beyond tone mapping: Enhanced depiction of tone mapped HDR images | |
| WO2020064676A1 (en) | Method for simulating the rendering of a make-up product on a body area | |
| CN108234971A (en) | White balance parameter determines method, white balance adjustment method and device, storage medium, terminal | |
| EP4330907A1 (en) | Method, computer program and electronic device for tone mapping | |
| CN112215808A (en) | A method for generating human face skin sensitivity map and related device | |
| JPWO2018203514A1 (en) | Image analysis evaluation method, computer program, image analysis evaluation device | |
| CN109427041A (en) | A kind of image white balance method and system, storage medium and terminal device | |
| CN115035286B (en) | Image processing method, image processing device, terminal and readable storage medium | |
| US20150304620A1 (en) | Color Calibration and Use of Multi-LED Flash Modules | |
| CN115222714A (en) | Screen display effect detection method, device and equipment | |
| CN116681605A (en) | Image tone mapping method, device, electronic device and storage medium | |
| CN112016621B (en) | Training method of classification model, color classification method and electronic equipment | |
| CN118329391B (en) | AR optical waveguide stray light testing method and system | |
| JP2005346474A (en) | Image processing method and apparatus, program, and storage medium | |
| CN111047669B (en) | A color picking method and device | |
| CN109658360B (en) | Image processing method, apparatus, electronic device and computer storage medium | |
| JP2002010283A (en) | Face image display method and face image processing device | |
| CN117710344A (en) | Method and device for detecting color phase stability of printed matter and electronic equipment | |
| KR101957773B1 (en) | Evaluation method for skin condition using image and evaluation apparatus for skin condition using image | |
| CN117896508A (en) | Standard light source-based image white balance 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 |