[go: up one dir, main page]

CN105744157A - Image pixel sampling value conversion method and device as well as sampling value processing method and device - Google Patents

Image pixel sampling value conversion method and device as well as sampling value processing method and device Download PDF

Info

Publication number
CN105744157A
CN105744157A CN201610072459.1A CN201610072459A CN105744157A CN 105744157 A CN105744157 A CN 105744157A CN 201610072459 A CN201610072459 A CN 201610072459A CN 105744157 A CN105744157 A CN 105744157A
Authority
CN
China
Prior art keywords
value
metadata
depth
bit
bit depth
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201610072459.1A
Other languages
Chinese (zh)
Inventor
郑喆坤
付庆涛
杨歌
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Xidian University
Original Assignee
Xidian University
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Xidian University filed Critical Xidian University
Priority to CN201610072459.1A priority Critical patent/CN105744157A/en
Publication of CN105744157A publication Critical patent/CN105744157A/en
Priority to CN201610873448.3A priority patent/CN107027054B/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/70Circuitry for compensating brightness variation in the scene
    • H04N23/741Circuitry for compensating brightness variation in the scene by increasing the dynamic range of the image compared to the dynamic range of the electronic image sensors
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/102Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or selection affected or controlled by the adaptive coding
    • H04N19/132Sampling, masking or truncation of coding units, e.g. adaptive resampling, frame skipping, frame interpolation or high-frequency transform coefficient masking
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/90Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using coding techniques not provided for in groups H04N19/10-H04N19/85, e.g. fractals
    • H04N19/98Adaptive-dynamic-range coding [ADRC]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/23Processing of content or additional data; Elementary server operations; Server middleware
    • H04N21/234Processing of video elementary streams, e.g. splicing of video streams or manipulating encoded video stream scene graphs
    • H04N21/2343Processing of video elementary streams, e.g. splicing of video streams or manipulating encoded video stream scene graphs involving reformatting operations of video signals for distribution or compliance with end-user requests or end-user device requirements
    • H04N21/234318Processing of video elementary streams, e.g. splicing of video streams or manipulating encoded video stream scene graphs involving reformatting operations of video signals for distribution or compliance with end-user requests or end-user device requirements by decomposing into objects, e.g. MPEG-4 objects
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/44Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs
    • H04N21/4402Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs involving reformatting operations of video signals for household redistribution, storage or real-time display
    • H04N21/440218Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs involving reformatting operations of video signals for household redistribution, storage or real-time display by transcoding between formats or standards, e.g. from MPEG-2 to MPEG-4
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/80Camera processing pipelines; Components thereof

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Compression Or Coding Systems Of Tv Signals (AREA)

Abstract

本发明提供了一种图像像素采样值转换、采样值处理方法及装置,用于将高比特深度像素采样值转换为低比特深度采样值,包括:将高比特深度像素采样值的取值范围划分成一个或多个分段,确定分段端点的元数据,其中,所述元数据包含所述分段端点的高比特深度像素采样值和与之对应的低比特深度采样值;根据所述元数据,确定图像中高比特深度像素采样值所在分段;根据所述分段端点的元数据,计算所述高比特深度像素采样值对应的低比特深度采样值。通过将高比特深度像素采样值转换为低比特深度采样值的处理方式,降低HDR与标准动态范围视频相互转换中的图像颜色失真和细节损失。

The present invention provides a method and device for image pixel sampling value conversion and sampling value processing, which are used to convert high bit depth pixel sampling values into low bit depth sampling values, including: dividing the value range of high bit depth pixel sampling values into one or more segments, and determine the metadata of the segment endpoints, wherein the metadata includes the high-bit-depth pixel sample values of the segment endpoints and the corresponding low-bit-depth sample values; according to the metadata data, determining the segment where the high-bit-depth pixel sampling value in the image is located; and calculating the low-bit-depth sampling value corresponding to the high-bit-depth pixel sampling value according to the metadata of the segmentation endpoint. By converting high-bit-depth pixel sampling values into low-bit-depth sampling values, image color distortion and detail loss in the conversion between HDR and standard dynamic range video are reduced.

Description

一种图像像素采样值转换、采样值处理方法及装置Method and device for image pixel sampling value conversion and sampling value processing

技术领域technical field

本发明属于视频处理领域,特别涉及一种图像像素采样值转换、采样值处理方法及装置。The invention belongs to the field of video processing, in particular to a method and device for image pixel sampling value conversion and sampling value processing.

背景技术Background technique

传统的低动态范围图像和视频只能反映有限的亮度范围,高动态范围(HighDynamicRange,HDR)图像和视频则能够反映更大的亮度范围,大幅度拓展对比度和色彩,能够更逼真的显示真实场景。Traditional low dynamic range images and videos can only reflect a limited brightness range, while high dynamic range (HighDynamicRange, HDR) images and videos can reflect a larger brightness range, greatly expand contrast and color, and display real scenes more realistically .

在对HDR图像和视频的处理中,HDR图像和视频需要与标准动态范围或低动态范围视频进行转换,以适应不同条件不同场合下的应用。In the processing of HDR images and videos, HDR images and videos need to be converted with standard dynamic range or low dynamic range videos to adapt to applications under different conditions and occasions.

在实现本发明的过程中,发明人发现在HDR与标准动态范围视频相互转换中,若采用传统的线性转换方法对图像进行动态范围转换,存在图像颜色失真和细节损失等问题。In the process of realizing the present invention, the inventors found that in the mutual conversion between HDR and standard dynamic range video, if the traditional linear conversion method is used to convert the dynamic range of the image, there are problems such as image color distortion and loss of detail.

发明内容Contents of the invention

为了解决现有技术存在的不足,本发明提出了一种图像采样值转换方法,用于将高比特深度像素采样值转换为低比特深度采样值,包括:将高比特深度像素采样值的取值范围划分成一个或多个分段,确定分段端点的元数据,其中,所述元数据包含所述分段端点的高比特深度像素采样值和与之对应的低比特深度采样值;根据所述元数据,确定图像中高比特深度像素采样值所在分段;根据所述分段端点的元数据,计算所述高比特深度像素采样值对应的低比特深度采样值;其中,所述比特深度是表示所述像素采样值使用的二进制符号位数。In order to solve the deficiencies in the prior art, the present invention proposes an image sampling value conversion method for converting high bit depth pixel sampling values into low bit depth sampling values, including: converting the high bit depth pixel sampling value dividing the range into one or more segments, determining metadata for segment endpoints, wherein the metadata includes high bit-depth pixel sample values and corresponding low bit-depth sample values for the segment endpoints; according to the According to the metadata, determine the segment where the high bit depth pixel sampling value in the image is located; according to the metadata of the segmentation endpoint, calculate the low bit depth sampling value corresponding to the high bit depth pixel sampling value; wherein, the bit depth is Indicates the number of binary sign bits used for the pixel sample value.

较优地,将高比特深度像素采样值的取值范围划分成多个分段,确定分段端点的元数据,包括:对图像进行分析,确定所述图像的统计直方图信息;根据所述统计直方图信息,确定自适应量化函数的参数;根据自适应量化函数,计算所述分段端点的高比特深度像素采样值对应的低比特深度采样值。Preferably, the value range of the high bit depth pixel sampling value is divided into multiple segments, and determining the metadata of the segment endpoints includes: analyzing the image to determine the statistical histogram information of the image; according to the Statisticalizing the histogram information to determine the parameters of the adaptive quantization function; calculating the low bit depth sampling value corresponding to the high bit depth pixel sampling value of the end point of the segment according to the adaptive quantization function.

较优地,根据所述统计直方图信息,计算所述高比特深度像素采样值对应的归一化累积直方图分布函数值,将其作为所述自适应量化函数的参数。Preferably, the normalized cumulative histogram distribution function value corresponding to the high bit-depth pixel sampling value is calculated according to the statistical histogram information, and used as a parameter of the adaptive quantization function.

较优地,所述自适应量化函数的参数还包括可调整的数值参数。Preferably, the parameters of the adaptive quantization function also include adjustable numerical parameters.

较优地,所述根据所述分段端点的元数据,计算所述高比特深度像素采样值对应的低比特深度采样值,包括:将所述低比特深度采样值设置为所述分段端点的元数据的插值。Preferably, the calculating the low bit depth sampling value corresponding to the high bit depth pixel sampling value according to the metadata of the segmentation endpoint includes: setting the low bit depth sampling value as the segmentation endpoint Interpolation of the metadata.

可选地,将所述低比特深度采样值设置为所述分段端点的元数据的插值,包括:根据所述分段端点的元数据,计算所述分段的斜率值;计算所述高比特深度采样值相对所述分段端点元数据中高比特深度采样值的变化值;将变化率值设置为所述变化值与所述斜率值的乘积;将所述高比特深度采样值对应的低比特深度采样值设置为所述变化率值与所述分段端点元数据中低比特深度采样值的和值或差值。Optionally, setting the low bit depth sampling value as an interpolation value of the metadata of the segmentation endpoint includes: calculating the slope value of the segmentation according to the metadata of the segmentation endpoint; calculating the high the change value of the bit-depth sample value relative to the high bit-depth sample value in the segment endpoint metadata; set the rate of change value to the product of the change value and the slope value; set the low bit-depth sample value corresponding to the high bit-depth sample value The bit-depth sample value is set to the sum or difference of the rate-of-change value and the low-bit-depth sample value in the segment endpoint metadata.

可选地,在确定所述数据元之后,还包括:对所述元数据进行编码,将所述编码比特写入以下码流中的数据单元至少之一:参数集,分片头信息,辅助信息单元,用户自定义数据单元,描述子信息单元。Optionally, after determining the data element, further comprising: encoding the metadata, and writing the encoded bits into at least one of the following data units in the code stream: parameter set, slice header information, auxiliary information Unit, a user-defined data unit, describes a sub-information unit.

与所述图像采样值转换方法相对应地,本发明还提供了一种图像采样值处理方法,用于将低比特深度像素采样值转换为高比特深度采样值,包括:根据元数据,确定分段端点,将低比特深度像素采样值的取值范围划分成一个或多个分段,其中,所述元数据包含所述分段端点的低比特深度像素采样值和与之对应的高比特深度采样值;根据所述元数据,确定图像中低比特深度像素采样值所在分段;根据所述分段端点的元数据,计算所述低比特深度像素采样值对应的高比特深度采样值;其中,所述比特深度是表示所述像素采样值使用的二进制符号位数。Corresponding to the image sampling value conversion method, the present invention also provides an image sampling value processing method, which is used to convert low-bit-depth pixel sampling values into high-bit-depth sampling values, including: according to metadata, determine the Segment endpoint, which divides the value range of low-bit-depth pixel sampling values into one or more segments, wherein the metadata includes the low-bit-depth pixel sampling values of the segment endpoints and the corresponding high-bit-depth Sampling value; according to the metadata, determine the segment where the low bit depth pixel sampling value in the image is located; according to the metadata of the segmentation endpoint, calculate the high bit depth sampling value corresponding to the low bit depth pixel sampling value; wherein , the bit depth is the number of binary sign bits used to represent the pixel sample value.

可选地,在所述根据元数据确定分段端点之前,还包括:解析码流,从所述码流的以下数据单元的至少之一获得所述元数据,包括:参数集,分片头信息,辅助信息单元,用户自定义数据单元,描述子信息单元。Optionally, before determining the segmentation endpoint according to the metadata, it also includes: parsing the code stream, and obtaining the metadata from at least one of the following data units of the code stream, including: parameter set, fragment header information , an auxiliary information unit, a user-defined data unit, and a description sub-information unit.

较优地,所述根据所述分段端点的元数据,计算所述低比特深度像素采样值对应的高比特深度采样值,包括:将所述高比特深度采样值设置为所述分段端点的元数据的插值。Preferably, the calculating the high bit depth sampling value corresponding to the low bit depth pixel sampling value according to the metadata of the segmentation endpoint includes: setting the high bit depth sampling value as the segmentation endpoint Interpolation of the metadata.

可选地,将所述高比特深度采样值设置为所述分段端点的元数据的插值,包括:根据所述分段端点的元数据,计算所述分段的斜率值;计算所述低比特深度采样值相对所述分段端点元数据中低比特深度采样值的变化值;将变化率值设置为所述变化值与所述斜率值的乘积;将所述低比特深度采样值对应的高比特深度采样值设置为所述变化率值与所述分段端点元数据中高比特深度采样值的和值或差值。Optionally, setting the high bit depth sampling value as an interpolation value of the metadata of the segment endpoint includes: calculating the slope value of the segment according to the metadata of the segment endpoint; calculating the low the change value of the bit depth sample value relative to the low bit depth sample value in the segment endpoint metadata; the rate of change value is set to the product of the change value and the slope value; the low bit depth sample value corresponding to The high bit depth sample value is set as the sum or difference of the rate of change value and the high bit depth sample value in the segment endpoint metadata.

本发明还提供了一种图像像素采样值转换装置,用于将高比特深度像素采样值转换为低比特深度采样值,包括:第一确定单元,将高比特深度像素采样值的取值范围划分成一个或多个分段,确定分段端点的元数据,其中,所述元数据包含所述分段端点的高比特深度像素采样值和与之对应的低比特深度采样值;第二确定单元,根据所述元数据,确定图像中高比特深度像素采样值所在分段;第一计算单元,根据所述分段端点的元数据,计算所述高比特深度像素采样值对应的低比特深度采样值;其中,所述比特深度是表示所述像素采样值使用的二进制符号位数。The present invention also provides an image pixel sampling value conversion device, which is used to convert high bit depth pixel sampling values into low bit depth sampling values, comprising: a first determination unit, which divides the value range of high bit depth pixel sampling values into one or more segments, and determine the metadata of the segment endpoints, wherein the metadata includes the high bit-depth pixel sample values of the segment endpoints and the corresponding low bit-depth sample values; the second determining unit , according to the metadata, determine the segment where the high-bit-depth pixel sampling value in the image is located; the first calculation unit calculates the low-bit-depth sampling value corresponding to the high-bit-depth pixel sampling value according to the metadata of the segmentation endpoint ; Wherein, the bit depth is the number of binary sign bits used to represent the pixel sample value.

可选地,所述转换装置还包括:写入单元,对所述元数据进行编码,将所述编码比特写入以下码流中的数据单元至少之一:参数集,分片头信息,辅助信息单元,用户自定义数据单元,描述子信息单元。Optionally, the conversion device further includes: a writing unit, which encodes the metadata, and writes the encoded bits into at least one of the following data units in the code stream: parameter set, slice header information, auxiliary information Unit, a user-defined data unit, describes a sub-information unit.

本发明还提供了一种图像像素采样值处理装置,用于将低比特深度像素采样值转换为高比特深度采样值,包括:第三确定单元,根据元数据,确定分段端点,将低比特深度像素采样值的取值范围划分成一个或多个分段,其中,所述元数据包含所述分段端点的低比特深度像素采样值和与之对应的高比特深度采样值;第四确定单元,根据所述元数据,确定图像中低比特深度像素采样值所在分段;第二计算单元,根据所述分段端点的元数据,计算所述低比特深度像素采样值对应的高比特深度采样值;其中,所述比特深度是表示所述像素采样值使用的二进制符号位数。The present invention also provides an image pixel sampling value processing device, which is used for converting low bit depth pixel sampling values into high bit depth sampling values, including: a third determining unit, determining segmentation endpoints according to metadata, converting low bit depth The value range of the depth pixel sample value is divided into one or more segments, wherein the metadata includes the low bit depth pixel sample value of the segment endpoint and the corresponding high bit depth sample value; the fourth determination The unit determines the segment where the low bit depth pixel sampling value in the image is located according to the metadata; the second calculation unit calculates the high bit depth corresponding to the low bit depth pixel sampling value according to the metadata of the segmentation endpoint A sample value; wherein, the bit depth is the number of binary sign bits used to represent the pixel sample value.

可选地,所述第三确定单元中还包括:解析单元,解析码流,从所述码流的以下数据单元的至少之一获得所述元数据,包括:参数集,分片头信息,辅助信息单元,用户自定义数据单元,描述子信息单元。Optionally, the third determining unit further includes: a parsing unit that parses the code stream, and obtains the metadata from at least one of the following data units of the code stream, including: parameter set, slice header information, auxiliary Information unit, user-defined data unit, description sub-information unit.

本发明提供的技术方案带来的有益效果是:The beneficial effects brought by the technical scheme provided by the invention are:

通过将高比特深度像素采样值转换为低比特深度采样值的处理方式,降低HDR与标准动态范围视频相互转换中的图像颜色失真和细节损失。By converting high-bit-depth pixel sampling values into low-bit-depth sampling values, image color distortion and detail loss in the conversion between HDR and standard dynamic range video are reduced.

附图说明Description of drawings

为了更清楚地说明本发明的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to illustrate the technical solution of the present invention more clearly, the accompanying drawings that need to be used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings in the following description are only some embodiments of the present invention. Ordinary technicians can also obtain other drawings based on these drawings on the premise of not paying creative work.

图1是本发明提供的一种图像像素采样值转换方法的流程示意图;Fig. 1 is a schematic flow chart of an image pixel sampling value conversion method provided by the present invention;

图2是本发明提供的一种图像采样值处理方法的流程示意图;Fig. 2 is a schematic flow chart of a method for processing image sampling values provided by the present invention;

图3是本发明提供的一种图像像素采样值转换装置的结构示意图;Fig. 3 is a schematic structural diagram of an image pixel sampling value conversion device provided by the present invention;

图4是本发明提供的一种图像像素采样值处理装置的结构示意图。Fig. 4 is a schematic structural diagram of an image pixel sample value processing device provided by the present invention.

具体实施方式detailed description

为使本发明的结构和优点更加清楚,下面将结合附图对本发明的结构作进一步地描述。In order to make the structure and advantages of the present invention clearer, the structure of the present invention will be further described below in conjunction with the accompanying drawings.

实施例一Embodiment one

本发明提供了一种图像像素采样值转换方法,用于将高比特深度像素采样值转换为低比特深度采样值,如图1所示,其中所述比特深度是表示所述像素采样值使用的二进制符号位数,主要步骤包括:The present invention provides a method for converting image pixel sampling values, which is used to convert high bit depth pixel sampling values into low bit depth sampling values, as shown in Figure 1, wherein the bit depth is used to represent the pixel sampling values Binary sign digits, the main steps include:

步骤11、将高比特深度像素采样值的取值范围划分成多个分段,确定分段端点的元数据,其中,所述元数据包含所述分段端点的高比特深度像素采样值和与之对应的低比特深度采样值。Step 11. Divide the value range of the high-bit-depth pixel sampling value into multiple segments, and determine the metadata of the segmentation endpoints, wherein the metadata includes the high-bit-depth pixel sampling values and the sum of the segmentation endpoints. The corresponding low bit depth sample value.

确定分段端点元数据的一种方法是:对图像进行分析,确定所述图像的统计直方图信息;根据所述统计直方图信息,确定自适应量化函数的参数;根据自适应量化函数,计算所述分段端点的高比特深度像素采样值对应的低比特深度采样值。其中,根据所述统计直方图信息,计算所述高比特深度像素采样值对应的归一化累积直方图分布函数值,将其作为所述自适应量化函数的参数。A method for determining the segmentation endpoint metadata is: analyzing the image to determine the statistical histogram information of the image; according to the statistical histogram information, determining the parameters of the adaptive quantization function; according to the adaptive quantization function, calculating The low-bit-depth sample value corresponding to the high-bit-depth pixel sample value at the end point of the segment. Wherein, according to the statistical histogram information, calculate the normalized cumulative histogram distribution function value corresponding to the high bit depth pixel sampling value, and use it as a parameter of the adaptive quantization function.

步骤12、根据所述元数据,确定图像中高比特深度像素采样值所在分段。Step 12. According to the metadata, determine the segment where the sampling value of the high bit depth pixel in the image is located.

步骤13、根据所述分段端点的元数据,计算所述高比特深度像素采样值对应的低比特深度采样值。Step 13: Calculate the low bit depth sample value corresponding to the high bit depth pixel sample value according to the metadata of the segmentation endpoint.

一种方法是根据所述高比特深度像素采样值计算所述分段端点的元数据的插值,将所述低比特深度采样值设置为所述插值。计算差值的一种方法是:根据所述分段端点的元数据,计算所述分段的斜率值;计算所述高比特深度采样值相对所述分段端点元数据中高比特深度采样值的变化值;将变化率值设置为所述变化值与所述斜率值的乘积;将所述高比特深度采样值对应的低比特深度采样值设置为所述变化率值与所述分段端点元数据中低比特深度采样值的和值或差值。One approach is to compute an interpolation of metadata for the segment endpoints from the high bit-depth pixel sample values, setting the low bit-depth sample values as the interpolated values. One way to calculate the difference is to: calculate the slope value of the segment based on the metadata of the segment endpoint; calculate the slope value of the high bit depth sample value relative to the high bit depth sample value in the segment endpoint metadata Change value; set the rate of change value as the product of the change value and the slope value; set the low bit depth sample value corresponding to the high bit depth sample value as the rate of change value and the segmentation endpoint element The sum or difference of the low bit depth sampled values in the data.

根据实际应用,例如视频编码应用,当需要将元数据信息传输给接收端时,对元数据进行编码,将编码比特写入码流中以下数据单元的至少之一:参数集,分片头信息,辅助信息单元,用户自定义数据单元,描述子信息单元。According to practical applications, such as video coding applications, when metadata information needs to be transmitted to the receiving end, the metadata is encoded, and the encoded bits are written into at least one of the following data units in the code stream: parameter set, slice header information, Auxiliary information unit, user-defined data unit, description sub-information unit.

本实施例使用本发明的方法实现16bitHDR视频图像转换为10bit标准动态范围视频图像。In this embodiment, the method of the present invention is used to convert a 16-bit HDR video image into a 10-bit standard dynamic range video image.

在实施中,对16bitHDR视频图像的Y`、Cb、Cr三个通道独立进行处理,分别按照本发明的方法转换为10bit视频图像。每个通道均按如下具体方法进行处理:In implementation, the three channels of Y`, Cb, and Cr of the 16bitHDR video image are processed independently, and converted into 10bit video images respectively according to the method of the present invention. Each channel is processed in the following specific ways:

1)对16bit的HDR视频图像像素采样值的取值范围(即0~65535)进行分段,这里将其均匀分为64段,每段宽度为1024,记录65个分段端点,即0,1024,2048,…,65535。1) Segment the value range (ie 0-65535) of the 16-bit HDR video image pixel sampling value, here it is evenly divided into 64 segments, each segment width is 1024, and 65 segmentation endpoints are recorded, namely 0, 1024, 2048, ..., 65535.

2)统计图像直方图信息。2) Statistical image histogram information.

统计当前通道图像像素采样值分布信息,获得归一化累积直方图分布函数CDF(x)。具体计算方法如下:The distribution information of pixel sampling values of the current channel image is counted, and the normalized cumulative histogram distribution function CDF(x) is obtained. The specific calculation method is as follows:

CC DD. Ff (( xx )) == ΣΣ kk == 00 xx PP DD. Ff (( kk ))

PP DD. Ff (( ll )) == NN ll NN

其中,x是当前图像的16bit像素采样值,PDF(l)为直方图概率分布函数,Nl表示当前图像中像素采样值为l的像素点数目,N是当前图像中像素点的总数。Wherein, x is the 16bit pixel sampling value of the current image, PDF(l) is a histogram probability distribution function, N 1 represents the number of pixels whose pixel sampling value is 1 in the current image, and N is the total number of pixels in the current image.

3)将2)中所得到的CDF(x)作为参数,并设置数值参数a和b,确定自适应转换函数,具体函数形式为:3) Take the CDF(x) obtained in 2) as a parameter, and set the numerical parameters a and b to determine the adaptive conversion function. The specific function form is:

ythe y == RR mm aa xx 22 ×× (( xx RR mm aa xx 11 )) aa (( bb -- CC DD. Ff (( xx )) ))

其中,Rmax1表示高比特深度动态范围的最大值,本实施例中为65535,Rmax2表示低比特深度动态范围的最大值,本实施例中为1023,x是当前16bit图像像素采样值,y是x对应的10bit图像像素采样值。Wherein, R max1 represents the maximum value of the dynamic range of high bit depth, which is 65535 in this embodiment, R max2 represents the maximum value of the dynamic range of low bit depth, which is 1023 in this embodiment, x is the current 16bit image pixel sampling value, y is the 10bit image pixel sampling value corresponding to x.

4)根据3)得到的自适应转换函数,计算各分段端点的16bit像素采样值对应的10bit图像像素采样值。并将65个端点以及各自对应的10bit图像像素采样值保存为元数据,可用于从10bit图像重建16bit图像。4) According to the adaptive conversion function obtained in 3), calculate the 10-bit image pixel sampling value corresponding to the 16-bit pixel sampling value of each segment endpoint. And the 65 endpoints and their corresponding 10bit image pixel sampling values are saved as metadata, which can be used to reconstruct 16bit images from 10bit images.

5)根据4)得到的元数据,确定16bit图像像素采样值所在分段的分段端点。5) According to the metadata obtained in 4), determine the segmentation endpoint of the segment where the 16-bit image pixel sampling value is located.

6)根据所述分段端点的元数据,采用插值方法计算16bit像素采样值对应的10bit像素采样值,实现16bit图像转换为10bit图像。计算插值的一种方法是:6) According to the metadata of the segmentation endpoint, an interpolation method is used to calculate the 10-bit pixel sampling value corresponding to the 16-bit pixel sampling value, so as to realize the conversion of the 16-bit image into a 10-bit image. One way to calculate the interpolation is:

ythe y == ythe y 11 ++ ythe y 22 -- ythe y 11 xx 22 -- xx 11 ×× (( xx -- xx 11 ))

其中,x1、x2为所述分段端点元数据中的16bit像素采样值,y1、y2为元数据中x1、x2各自所对应的10bit像素采样值,x是处于x1和x2之间的16bit像素采样值,y是所求的x对应的10bit像素采样值。即为所在分段的斜率值,即为变化率值。Among them, x 1 and x 2 are the 16-bit pixel sampling values in the segment endpoint metadata, y 1 and y 2 are the 10-bit pixel sampling values corresponding to x 1 and x 2 in the metadata respectively, and x is at x 1 The 16-bit pixel sampling value between x and x 2 , and y is the 10-bit pixel sampling value corresponding to x. is the slope value of the segment, is the rate of change value.

在本实施例中,还可以对所述元数据进行编码,将所述编码比特写入以下码流中的数据单元至少之一:参数集,分片头信息,辅助信息单元,用户自定义数据单元,描述子信息单元。In this embodiment, the metadata can also be encoded, and the encoded bits can be written into at least one of the following data units in the code stream: parameter set, slice header information, auxiliary information unit, user-defined data unit , describing the sub-information unit.

实施例二Embodiment two

与所述图像采样值转换方法相对应地,本发明还提供了一种图像采样值处理方法,用于将低比特深度像素采样值转换为高比特深度采样值,如图2所示,其中,所述比特深度是表示所述像素采样值使用的二进制符号位数,主要步骤包括:Corresponding to the image sampling value conversion method, the present invention also provides an image sampling value processing method for converting low bit depth pixel sampling values into high bit depth sampling values, as shown in Figure 2, wherein, The bit depth is the number of binary sign bits used to represent the pixel sample value, and the main steps include:

步骤21、根据元数据,确定分段端点,将低比特深度像素采样值的取值范围划分成多个分段,其中,所述元数据包含所述分段端点的低比特深度像素采样值和与之对应的高比特深度采样值。Step 21. Determine segment endpoints according to the metadata, and divide the value range of the low-bit-depth pixel sample values into multiple segments, wherein the metadata includes the low-bit-depth pixel sample values and The corresponding high bit depth sample value.

步骤22、根据所述元数据,确定图像中低比特深度像素采样值所在分段;Step 22, according to the metadata, determine the segment where the low bit depth pixel sampling value in the image is located;

步骤23、根据所述分段端点的元数据,计算所述低比特深度像素采样值对应的高比特深度采样值;Step 23. According to the metadata of the segmentation endpoint, calculate the high bit depth sample value corresponding to the low bit depth pixel sample value;

一种方法是根据所述低比特深度像素采样值计算所述分段端点的元数据的插值,将所述高比特深度采样值设置为所述插值。计算差值的一种方法是:根据所述分段端点的元数据,计算所述分段的斜率值;计算所述低比特深度采样值相对所述分段端点元数据中低比特深度采样值的变化值;将变化率值设置为所述变化值与所述斜率值的乘积;将所述低比特深度采样值对应的高比特深度采样值设置为所述变化率值与所述分段端点元数据中高比特深度采样值的和值或差值。One approach is to compute an interpolation of metadata for the segment endpoints based on the low bit-depth pixel sample values, setting the high bit-depth sample values as the interpolated values. One method of calculating the difference is: calculating the slope value of the segment according to the metadata of the segment endpoint; calculating the relative value of the low bit depth sample value in the metadata of the segment endpoint set the rate of change value as the product of the change value and the slope value; set the high bit depth sample value corresponding to the low bit depth sample value as the rate of change value and the segmentation endpoint The sum or difference of the high bit depth sample values in the metadata.

根据实际应用,例如视频解码应用,当需要从码流中获得元数据时,解析所述码流,从所述码流的以下数据单元的至少之一获得所述元数据,包括:参数集,分片头信息,辅助信息单元,用户自定义数据单元,描述子信息单元。According to an actual application, such as a video decoding application, when metadata needs to be obtained from a code stream, the code stream is parsed, and the metadata is obtained from at least one of the following data units of the code stream, including: a parameter set, Fragment header information, auxiliary information unit, user-defined data unit, and description sub-information unit.

本实施例使用本发明方法实现10bit标准动态范围视频图像转换16bitHDR视频图像This embodiment uses the method of the present invention to realize 10bit standard dynamic range video image conversion 16bitHDR video image

处理中对10bit视频图像的三个通道独立进行处理,分别按照本发明的方法转换为16bit视频图像。每个通道均按如下方法进行处理:During the processing, the three channels of the 10bit video image are processed independently, and are respectively converted into 16bit video images according to the method of the present invention. Each channel is processed as follows:

1)根据元数据,确定各分段端点。本实例采用64分段。1) According to the metadata, determine the end point of each segment. This example uses 64 segments.

2)根据所述元数据,确定10bit图像像素采样值所在分段的分段端点。2) According to the metadata, determine the segment endpoint of the segment where the 10-bit image pixel sampling value is located.

3)根据所述分段端点的元数据,采用插值方法计算10bit像素采样值对应的16bit像素采样值,实现10bit图像转换为16bit图像。计算差值的一种方法是:3) According to the metadata of the segmentation endpoint, the interpolation method is used to calculate the 16-bit pixel sampling value corresponding to the 10-bit pixel sampling value, so as to realize the conversion of the 10-bit image into a 16-bit image. One way to calculate the difference is:

xx == xx 11 ++ xx 22 -- xx 11 ythe y 22 -- ythe y 11 ×× (( ythe y -- ythe y 11 ))

其中,x1、x2为所述分段端点元数据中的16bit像素采样值,y1、y2为元数据中x1、x2各自所对应的10bit像素采样值,x是处于x1和x2之间的16bit像素采样值,y是所求的x对应的10bit像素采样值。即为所在分段的斜率值,即为变化率值。Among them, x 1 and x 2 are the 16-bit pixel sampling values in the segment endpoint metadata, y 1 and y 2 are the 10-bit pixel sampling values corresponding to x 1 and x 2 in the metadata respectively, and x is at x 1 The 16-bit pixel sampling value between x and x 2 , and y is the 10-bit pixel sampling value corresponding to x. is the slope value of the segment, is the rate of change value.

在本实施例中,在确定分段端点之前,可以通过解析码流的方法获得元数据,包括:解析所述码流,从所述码流的以下数据单元的至少之一获得所述元数据,包括:参数集,分片头信息,辅助信息单元,用户自定义数据单元,描述子信息单元。In this embodiment, before determining the segmentation endpoint, the metadata may be obtained by parsing the code stream, including: parsing the code stream, and obtaining the metadata from at least one of the following data units of the code stream , including: parameter set, slice header information, auxiliary information unit, user-defined data unit, and description sub-information unit.

实施例三Embodiment Three

本发明还提供了一种图像像素采样值转换装置3,用于将高比特深度像素采样值转换为低比特深度采样值,如图3所示,其中,所述比特深度是表示所述像素采样值使用的二进制符号位数。所述装置包含以下模块:The present invention also provides an image pixel sample value conversion device 3, which is used to convert a high bit depth pixel sample value into a low bit depth sample value, as shown in FIG. 3, wherein the bit depth represents the pixel sample value The number of binary sign bits used for the value. The device contains the following modules:

第一确定单元31,输入为高比特图像数据,将输入的高比特深度图像像素采样值的取值范围划分成多个分段,确定分段端点的元数据,其中,所述元数据包含所述分段端点的高比特深度像素采样值和与之对应的低比特深度采样值;将各分段端点的元数据输出给第二确定单元32的输入端。The first determination unit 31 is input with high-bit image data, divides the value range of the input high-bit-depth image pixel sampling value into a plurality of segments, and determines the metadata of the segment endpoints, wherein the metadata includes all The high-bit-depth pixel sampling value of the segmentation endpoint and the corresponding low-bit-depth sampling value; output the metadata of each segmentation endpoint to the input terminal of the second determination unit 32 .

第二确定单元32,输入端连接第一确定单元31的输出端,根据输入的元数据,确定图像中高比特深度像素采样值所在分段,将所述分段两个端点的元数据输出给第一计算单元33的输入端。The second determination unit 32, the input terminal is connected to the output terminal of the first determination unit 31, according to the input metadata, determine the segment where the high bit depth pixel sampling value in the image is located, and output the metadata of the two endpoints of the segment to the second determination unit 32 An input terminal of the calculation unit 33 .

第一计算单元33,输入端连接第二确定单元32的输出端,根据输入的分段端点的元数据,计算所述高比特深度像素采样值对应的低比特深度采样值,将得到的低比特深度采样值输出。The first calculation unit 33, the input end of which is connected to the output end of the second determination unit 32, calculates the low bit depth sampling value corresponding to the high bit depth pixel sampling value according to the metadata of the input segmentation endpoint, and the obtained low bit depth Depth sampled value output.

可选地,所述转换装置还包括:Optionally, the conversion device also includes:

写入单元34,对所述元数据进行编码,将所述编码比特写入以下码流中的数据单元至少之一:参数集,分片头信息,辅助信息单元,用户自定义数据单元,描述子信息单元。The writing unit 34 encodes the metadata, and writes the encoded bits into at least one of the following data units in the code stream: parameter set, slice header information, auxiliary information unit, user-defined data unit, descriptor information unit.

实施例四Embodiment Four

本发明还提供了一种图像像素采样值处理装置4,用于将低比特深度像素采样值转换为高比特深度采样值,如图4所示,其中,所述比特深度是表示所述像素采样值使用的二进制符号位数,所述装置包含以下模块:The present invention also provides an image pixel sampling value processing device 4, which is used to convert low bit depth pixel sampling values into high bit depth sampling values, as shown in Fig. 4, wherein the bit depth represents the pixel sampling value The number of signed bits in binary used by the value, the device contains the following modules:

第三确定单元41,根据输入数据得到元数据,根据元数据,确定分段端点,将低比特深度像素采样值的取值范围划分成多个分段,其中,所述元数据包含所述分段端点的低比特深度像素采样值和与之对应的高比特深度采样值;将分段端点元数据输出给第四确定单元42的输入端。The third determining unit 41 obtains metadata according to the input data, and determines segment endpoints according to the metadata, and divides the value range of the low-bit-depth pixel sampling value into a plurality of segments, wherein the metadata includes the segment The low-bit-depth pixel sample value of the segment endpoint and the corresponding high-bit-depth sample value; output the segment endpoint metadata to the input terminal of the fourth determination unit 42 .

第四确定单元42,输入端连接第三确定单元41的输出端,根据输入的分段端点元数据,确定图像中低比特深度像素采样值所在分段,将所述分段两个端点的元数据输出给第二计算单元43的输入端。The fourth determination unit 42, the input terminal is connected to the output terminal of the third determination unit 41, according to the input segment endpoint metadata, determine the segment where the low bit depth pixel sampling value in the image is located, and divide the metadata of the two endpoints of the segment into The data are output to the input of the second computing unit 43 .

第二计算单元43,输入端连接第四确定单元42的输出端,根据输入的分段两个端点的元数据,计算所述低比特深度像素采样值对应的高比特深度采样值,将得到的高比特深度采样值输出。The second calculation unit 43, the input terminal is connected to the output terminal of the fourth determination unit 42, and calculates the high bit depth sampling value corresponding to the low bit depth pixel sampling value according to the input metadata of the two endpoints of the segment, and the obtained High bit depth sampled value output.

可选地,所述第三确定单元41中还包括:Optionally, the third determination unit 41 further includes:

解析单元44,解析码流,从所述码流的以下数据单元的至少之一获得所述元数据,包括:参数集,分片头信息,辅助信息单元,用户自定义数据单元,描述子信息单元。The parsing unit 44, parsing the code stream, obtains the metadata from at least one of the following data units of the code stream, including: parameter set, slice header information, auxiliary information unit, user-defined data unit, and description sub-information unit .

本发明提供了一种图像像素采样值转换、采样值处理方法及装置,用于将高比特深度像素采样值转换为低比特深度采样值,包括:将高比特深度像素采样值的取值范围划分成一个或多个分段,确定分段端点的元数据,其中,所述元数据包含所述分段端点的高比特深度像素采样值和与之对应的低比特深度采样值;根据所述元数据,确定图像中高比特深度像素采样值所在分段;根据所述分段端点的元数据,计算所述高比特深度像素采样值对应的低比特深度采样值。通过将高比特深度像素采样值转换为低比特深度采样值的处理方式,降低HDR与标准动态范围视频相互转换中的图像颜色失真和细节损失。The present invention provides an image pixel sampling value conversion and sampling value processing method and device, which are used to convert high bit depth pixel sampling values into low bit depth sampling values, including: dividing the value range of high bit depth pixel sampling values into one or more segments, and determine the metadata of the segment endpoints, wherein the metadata includes the high-bit-depth pixel sample values of the segment endpoints and the corresponding low-bit-depth sample values; according to the metadata data, determining the segment where the high-bit-depth pixel sampling value in the image is located; and calculating the low-bit-depth sampling value corresponding to the high-bit-depth pixel sampling value according to the metadata of the segment endpoint. By converting high-bit-depth pixel sampling values into low-bit-depth sampling values, image color distortion and detail loss in the conversion between HDR and standard dynamic range video are reduced.

本领域普通技术人员可以理解上述方法中的全部或部分步骤可通过程序来指令相关硬件完成,所述程序可以存储于计算机可读存储介质中,如只读存储器、磁盘或光盘等。可选地,上述实施例的全部或部分步骤也可以使用一个或多个集成电路来实现。相应地,上述实施例中的各模块/单元可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。本申请不限制于任何特定形式的硬件和软件的结合。Those skilled in the art can understand that all or part of the steps in the above method can be completed by instructing relevant hardware through a program, and the program can be stored in a computer-readable storage medium, such as a read-only memory, a magnetic disk or an optical disk, and the like. Optionally, all or part of the steps in the foregoing embodiments may also be implemented using one or more integrated circuits. Correspondingly, each module/unit in the foregoing embodiments may be implemented in the form of hardware, or may be implemented in the form of software function modules. This application is not limited to any specific form of combination of hardware and software.

以上所述,仅为本发明的较佳实例而已,并非用于限定本发明的保护范围。凡在本发明的精神和原则之内,所做的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。The above descriptions are only preferred examples of the present invention, and are not intended to limit the protection scope of the present invention. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of the present invention shall be included within the protection scope of the present invention.

Claims (15)

1.一种图像像素采样值转换方法,用于将高比特深度像素采样值转换为低比特深度采样值,其特征在于,包括:1. An image pixel sampling value conversion method, for converting a high bit depth pixel sampling value into a low bit depth sampling value, characterized in that, comprising: 将高比特深度像素采样值的取值范围划分成一个或多个分段,确定分段端点的元数据,其中,所述元数据包含所述分段端点的高比特深度像素采样值和与之对应的低比特深度采样值;Divide the value range of the high bit-depth pixel sample value into one or more segments, and determine the metadata of the segment endpoints, wherein the metadata includes the high bit-depth pixel sample values of the segment endpoints and their Corresponding low bit depth sample values; 根据所述元数据,确定图像中高比特深度像素采样值所在分段;According to the metadata, determine the segment where the high bit depth pixel sampling value in the image is located; 根据所述分段端点的元数据,计算所述高比特深度像素采样值对应的低比特深度采样值;calculating a low bit depth sample value corresponding to the high bit depth pixel sample value according to the metadata of the segmentation endpoint; 其中,所述比特深度是表示所述像素采样值使用的二进制符号位数。Wherein, the bit depth is the number of binary sign bits used to represent the pixel sample value. 2.根据权利要求1所述方法,其特征在于,将高比特深度像素采样值的取值范围划分成多个分段,确定分段端点的元数据,包括:2. The method according to claim 1, wherein the value range of the high bit depth pixel sampling value is divided into a plurality of segments, and the metadata of the segment endpoints are determined, including: 对图像进行分析,确定所述图像的统计直方图信息;Analyzing the image to determine statistical histogram information of the image; 根据所述统计直方图信息,确定自适应量化函数的参数;determining parameters of an adaptive quantization function according to the statistical histogram information; 根据自适应量化函数,计算所述分段端点的高比特深度像素采样值对应的低比特深度采样值。According to the adaptive quantization function, the low bit depth sample value corresponding to the high bit depth pixel sample value of the end point of the segment is calculated. 3.根据权利要求2所述方法,其特征在于,还包括:3. The method according to claim 2, further comprising: 根据所述统计直方图信息,计算所述高比特深度像素采样值对应的归一化累积直方图分布函数值,将其作为所述自适应量化函数的参数。According to the statistical histogram information, calculate the normalized cumulative histogram distribution function value corresponding to the high bit depth pixel sampling value, and use it as a parameter of the adaptive quantization function. 4.根据权利要求3所述方法,其特征在于,还包括:4. The method according to claim 3, further comprising: 所述自适应量化函数的参数还包括可调整的数值参数。The parameters of the adaptive quantization function also include adjustable numerical parameters. 5.根据权利要求1所述方法,其特征在于,所述根据所述分段端点的元数据,计算所述高比特深度像素采样值对应的低比特深度采样值,包括:5. The method according to claim 1, wherein the calculating the low bit depth sampling value corresponding to the high bit depth pixel sampling value according to the metadata of the segmentation endpoint comprises: 将所述低比特深度采样值设置为所述分段端点的元数据的插值。Sets the low bit depth sample value as an interpolated value of the segment endpoint's metadata. 6.根据权利要求5所述的方法,其特征在于,包括:6. The method of claim 5, comprising: 根据所述分段端点的元数据,计算所述分段的斜率值;calculating a slope value for the segment based on the metadata of the segment endpoint; 计算所述高比特深度采样值相对所述分段端点元数据中高比特深度采样值的变化值;calculating a change in the high-bit-depth sampled value relative to the high-bit-depth sampled value in the segment endpoint metadata; 将变化率值设置为所述变化值与所述斜率值的乘积;setting the rate of change value to be the product of said change value and said slope value; 将所述高比特深度采样值对应的低比特深度采样值设置为所述变化率值与所述分段端点元数据中低比特深度采样值的和值或差值。The low bit-depth sample value corresponding to the high bit-depth sample value is set as the sum or difference of the change rate value and the low bit-depth sample value in the segment endpoint metadata. 7.根据权利要求1所述的方法,其特征在于,还包括:7. The method of claim 1, further comprising: 对所述元数据进行编码,将所述编码比特写入以下码流中的数据单元至少之一:参数集,分片头信息,辅助信息单元,用户自定义数据单元,描述子信息单元。The metadata is encoded, and the encoded bits are written into at least one of the following data units in the code stream: parameter set, slice header information, auxiliary information unit, user-defined data unit, and description sub-information unit. 8.一种图像采样值处理方法,用于将低比特深度像素采样值转换为高比特深度采样值,其特征在于,包括:8. An image sampling value processing method, for converting a low bit depth pixel sampling value into a high bit depth sampling value, characterized in that, comprising: 根据元数据,确定分段端点,将低比特深度像素采样值的取值范围划分成一个或多个分段,其中,所述元数据包含所述分段端点的低比特深度像素采样值和与之对应的高比特深度采样值;According to the metadata, determine the segmentation endpoint, and divide the value range of the low-bit-depth pixel sampling value into one or more segments, wherein the metadata includes the low-bit-depth pixel sampling value and the sum of the segmentation endpoint. The corresponding high bit depth sampling value; 根据所述元数据,确定图像中低比特深度像素采样值所在分段;According to the metadata, determine the segment where the low bit depth pixel sampling value in the image is located; 根据所述分段端点的元数据,计算所述低比特深度像素采样值对应的高比特深度采样值;calculating a high bit depth sample value corresponding to the low bit depth pixel sample value according to the metadata of the segmentation endpoint; 其中,所述比特深度是表示所述像素采样值使用的二进制符号位数。Wherein, the bit depth is the number of binary sign bits used to represent the pixel sample value. 9.根据权利要求8所述方法,其特征在于,在所述根据元数据确定分段端点之前,还包括:9. The method according to claim 8, further comprising: before determining the segmentation endpoint according to the metadata: 解析码流,从所述码流的以下数据单元的至少之一获得所述元数据,包括:参数集,分片头信息,辅助信息单元,用户自定义数据单元,描述子信息单元。Parse the code stream, and obtain the metadata from at least one of the following data units of the code stream, including: parameter set, slice header information, auxiliary information unit, user-defined data unit, and description sub-information unit. 10.根据权利要求8所述方法,其特征在于,所述根据所述分段端点的元数据,计算所述低比特深度像素采样值对应的高比特深度采样值,包括:10. The method according to claim 8, wherein the calculating the high bit depth sampling value corresponding to the low bit depth pixel sampling value according to the metadata of the segmentation endpoint comprises: 将所述高比特深度采样值设置为所述分段端点的元数据的插值。The high bit-depth sample value is set as an interpolation of the segment endpoint's metadata. 11.根据权利要求10所述方法,其特征在于,包括:11. The method of claim 10, comprising: 根据所述分段端点的元数据,计算所述分段的斜率值;calculating a slope value for the segment based on the metadata of the segment endpoint; 计算所述低比特深度采样值相对所述分段端点元数据中低比特深度采样值的变化值;calculating a change in the low-bit-depth sampled value relative to the low-bit-depth sampled value in the segment endpoint metadata; 将变化率值设置为所述变化值与所述斜率值的乘积;setting the rate of change value to be the product of said change value and said slope value; 将所述低比特深度采样值对应的高比特深度采样值设置为所述变化率值与所述分段端点元数据中高比特深度采样值的和值或差值。The high bit-depth sample value corresponding to the low bit-depth sample value is set as the sum or difference of the change rate value and the high bit-depth sample value in the segment endpoint metadata. 12.一种图像像素采样值转换装置,用于将高比特深度像素采样值转换为低比特深度采样值,其特征在于,包括:12. A device for converting image pixel sampled values, used to convert high bit depth pixel sampled values into low bit depth sampled values, comprising: 第一确定单元,将高比特深度像素采样值的取值范围划分成一个或多个分段,确定分段端点的元数据,其中,所述元数据包含所述分段端点的高比特深度像素采样值和与之对应的低比特深度采样值;The first determination unit divides the value range of high bit-depth pixel sampling values into one or more segments, and determines the metadata of the segment endpoints, wherein the metadata includes the high bit-depth pixels of the segment endpoints Sampled values and their corresponding low-bit-depth sampled values; 第二确定单元,根据所述元数据,确定图像中高比特深度像素采样值所在分段;The second determining unit, according to the metadata, determines the segment where the sampling value of the high bit depth pixel in the image is located; 第一计算单元,根据所述分段端点的元数据,计算所述高比特深度像素采样值对应的低比特深度采样值;The first calculation unit calculates the low bit depth sample value corresponding to the high bit depth pixel sample value according to the metadata of the segmentation endpoint; 其中,所述比特深度是表示所述像素采样值使用的二进制符号位数。Wherein, the bit depth is the number of binary sign bits used to represent the pixel sample value. 13.根据权利要求12所述装置,其特征在于,还包括:13. The device according to claim 12, further comprising: 写入单元,对所述元数据进行编码,将所述编码比特写入以下码流中的数据单元至少之一:参数集,分片头信息,辅助信息单元,用户自定义数据单元,描述子信息单元。A writing unit, encoding the metadata, and writing the encoded bits into at least one of the following data units in the code stream: parameter set, slice header information, auxiliary information unit, user-defined data unit, and descriptor information unit. 14.一种图像像素采样值处理装置,用于将低比特深度像素采样值转换为高比特深度采样值,其特征在于,包括:14. An image pixel sampling value processing device for converting a low bit depth pixel sampling value into a high bit depth sampling value, characterized in that it comprises: 第三确定单元,根据元数据,确定分段端点,将低比特深度像素采样值的取值范围划分成一个或多个分段,其中,所述元数据包含所述分段端点的低比特深度像素采样值和与之对应的高比特深度采样值;The third determination unit determines the segmentation endpoints according to the metadata, and divides the value range of the low bit depth pixel sample value into one or more segments, wherein the metadata includes the low bit depth of the segmentation endpoints Pixel sample values and their corresponding high bit depth sample values; 第四确定单元,根据所述元数据,确定图像中低比特深度像素采样值所在分段;A fourth determination unit, according to the metadata, determines the segment where the sampling value of the low-bit-depth pixel in the image is located; 第二计算单元,根据所述分段端点的元数据,计算所述低比特深度像素采样值对应的高比特深度采样值;The second calculation unit calculates the high bit depth sample value corresponding to the low bit depth pixel sample value according to the metadata of the segmentation endpoint; 其中,所述比特深度是表示所述像素采样值使用的二进制符号位数。Wherein, the bit depth is the number of binary sign bits used to represent the pixel sample value. 15.根据权利要求14所述方法,其特征在于,所述第三确定单元,还包括:15. The method according to claim 14, wherein the third determining unit further comprises: 解析单元,解析码流,从所述码流的以下数据单元的至少之一获得所述元数据,包括:参数集,分片头信息,辅助信息单元,用户自定义数据单元,描述子信息单元。The parsing unit parses the code stream, and obtains the metadata from at least one of the following data units of the code stream, including: parameter set, slice header information, auxiliary information unit, user-defined data unit, and description sub-information unit.
CN201610072459.1A 2016-02-02 2016-02-02 Image pixel sampling value conversion method and device as well as sampling value processing method and device Pending CN105744157A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201610072459.1A CN105744157A (en) 2016-02-02 2016-02-02 Image pixel sampling value conversion method and device as well as sampling value processing method and device
CN201610873448.3A CN107027054B (en) 2016-02-02 2016-10-01 Image pixel sampling value processing method and device, image conversion method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610072459.1A CN105744157A (en) 2016-02-02 2016-02-02 Image pixel sampling value conversion method and device as well as sampling value processing method and device

Publications (1)

Publication Number Publication Date
CN105744157A true CN105744157A (en) 2016-07-06

Family

ID=56244758

Family Applications (2)

Application Number Title Priority Date Filing Date
CN201610072459.1A Pending CN105744157A (en) 2016-02-02 2016-02-02 Image pixel sampling value conversion method and device as well as sampling value processing method and device
CN201610873448.3A Active CN107027054B (en) 2016-02-02 2016-10-01 Image pixel sampling value processing method and device, image conversion method and device

Family Applications After (1)

Application Number Title Priority Date Filing Date
CN201610873448.3A Active CN107027054B (en) 2016-02-02 2016-10-01 Image pixel sampling value processing method and device, image conversion method and device

Country Status (1)

Country Link
CN (2) CN105744157A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110226327A (en) * 2017-01-20 2019-09-10 世宗大学校产学协力团 Video encoding method/device, image decoding method/device and the recording medium for preserving bit stream
CN111292282A (en) * 2020-01-21 2020-06-16 展讯通信(上海)有限公司 Method and device, storage medium, and terminal for generating low-bit-width HDR images
CN111724316A (en) * 2017-04-11 2020-09-29 华为技术有限公司 Method and apparatus for processing high dynamic range images

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114422829B (en) * 2022-01-30 2024-11-22 杭州雾联科技有限公司 HDR cloud video processing method, system and device

Family Cites Families (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6850642B1 (en) * 2000-01-31 2005-02-01 Micron Technology, Inc. Dynamic histogram equalization for high dynamic range images
US20090317017A1 (en) * 2008-06-20 2009-12-24 The Hong Kong University Of Science And Technology Image characteristic oriented tone mapping for high dynamic range images
EP2449526A1 (en) * 2009-06-29 2012-05-09 Thomson Licensing Zone-based tone mapping
EP2777252B1 (en) * 2011-11-09 2016-02-10 Fraunhofer Gesellschaft zur Förderung der angewandten Forschung e.V. Inter-layer prediction between layers of different dynamic sample value range
US9129445B2 (en) * 2012-03-14 2015-09-08 Dolby Laboratories Licensing Corporation Efficient tone-mapping of high-bit-depth video to low-bit-depth display
JP6262198B2 (en) * 2012-03-26 2018-01-17 コーニンクレッカ フィリップス エヌ ヴェKoninklijke Philips N.V. Luminance region based apparatus and method for HDR image encoding and decoding
CN103295194B (en) * 2013-05-15 2015-11-04 中山大学 Brightness-controllable and detail-preserving tone mapping method
US9699428B2 (en) * 2013-09-09 2017-07-04 Apple Inc. Lens shading modulation
US8958658B1 (en) * 2013-09-10 2015-02-17 Apple Inc. Image tone adjustment using local tone curve computation
EP2961168A1 (en) * 2014-06-27 2015-12-30 Thomson Licensing Method and apparatus for predicting image samples for encoding or decoding

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110226327A (en) * 2017-01-20 2019-09-10 世宗大学校产学协力团 Video encoding method/device, image decoding method/device and the recording medium for preserving bit stream
US11412218B2 (en) 2017-01-20 2022-08-09 Industry Academy Cooperation Foundation Of Sejong University Image encoding method/device, image decoding method/device and recording medium having bitstream stored thereon
CN110226327B (en) * 2017-01-20 2022-08-09 世宗大学校产学协力团 Video encoding method/device, video decoding method/device, and recording medium storing bitstream
US11778179B2 (en) 2017-01-20 2023-10-03 Industry Academy Cooperation Foundation Of Sejong University Image encoding method/device, image decoding method/device and recording medium having bitstream stored thereon
US12192455B2 (en) 2017-01-20 2025-01-07 Industry Academy Cooperation Foundation Of Sejong University Image encoding method/device, image decoding method/device and recording medium having bitstream stored thereon
CN111724316A (en) * 2017-04-11 2020-09-29 华为技术有限公司 Method and apparatus for processing high dynamic range images
CN111724316B (en) * 2017-04-11 2023-11-10 华为技术有限公司 Method and apparatus for processing high dynamic range image
CN111292282A (en) * 2020-01-21 2020-06-16 展讯通信(上海)有限公司 Method and device, storage medium, and terminal for generating low-bit-width HDR images
CN111292282B (en) * 2020-01-21 2023-02-17 展讯通信(上海)有限公司 Method and device for generating low-bit-width HDR images, storage medium, and terminal
EP4095793A4 (en) * 2020-01-21 2023-10-25 Spreadtrum Communications (Shanghai) Co., Ltd. METHOD AND DEVICE FOR GENERATING A LOW-BITWIDTH HDR IMAGE, STORAGE MEDIUM AND TERMINAL DEVICE
US12231779B2 (en) 2020-01-21 2025-02-18 Spreadtrum Communications (Shanghai) Co., Ltd. Method and apparatus for generating low bit width HDR image, storage medium, and terminal

Also Published As

Publication number Publication date
CN107027054B (en) 2021-05-11
CN107027054A (en) 2017-08-08

Similar Documents

Publication Publication Date Title
CN111275628B (en) Image signal conversion processing method, device and terminal equipment
CN103402091B (en) Cloud desktop picture classification nad code method
CN105744157A (en) Image pixel sampling value conversion method and device as well as sampling value processing method and device
CN110521198B (en) Method and apparatus for reconstructing HDR images
CN113538287B (en) Video enhancement network training method, video enhancement method and related devices
CN103716623B (en) Video compression encoding-and-decoding method and encoder-decoder on the basis of weighting quantification
US20170257645A1 (en) Apparatus and method to improve image or video quality or encoding performance by enhancing discrete cosine transform coefficients
WO2021031877A1 (en) Methods and apparatus for image coding and decoding, and chip
US9460525B2 (en) Tile-based compression and decompression for graphic applications
CN107431822B (en) Image coding/decoding method and equipment
CN105144726A (en) Custom data indicating nominal range of samples of media content
CN105825530A (en) Coastal zone hyperspectral image distributed lossy coding and decoding method based on region of interest
WO2020113827A1 (en) Image compression method
CN114463208A (en) Dimension-building surveillance video image enhancement method based on limited contrast adaptive histogram equalization method
CN103915077B (en) A kind of method that high-dynamics image is shown on general display devices
WO2021042300A1 (en) Encoding method, decoding method, and encoding apparatus and decoding apparatus
CN101415118A (en) Encoding method and system
CN101657973A (en) Recording medium with program for encoding and decoding with bit precision and device thereof
WO2023082773A1 (en) Video encoding method and apparatus, video decoding method and apparatus, and device, storage medium and computer program
CN115604476A (en) Variable-code-rate semantic structured image encoding and decoding method and system
CN103152586B (en) A kind of 2D video based on degree of depth template turns 3D transmission of video and method for reconstructing
CN107027027A (en) Coding, coding/decoding method and the device and the coding/decoding system of image of image
CN105306941A (en) Video coding method
US11165944B2 (en) Media data processing method, apparatus and system
US12108091B2 (en) Media data processing method, apparatus and system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C02 Deemed withdrawal of patent application after publication (patent law 2001)
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20160706