HK1227202B - Methods of encoding and decoding image data - Google Patents
Methods of encoding and decoding image data Download PDFInfo
- Publication number
- HK1227202B HK1227202B HK17100619.2A HK17100619A HK1227202B HK 1227202 B HK1227202 B HK 1227202B HK 17100619 A HK17100619 A HK 17100619A HK 1227202 B HK1227202 B HK 1227202B
- Authority
- HK
- Hong Kong
- Prior art keywords
- image data
- color gamut
- color
- local
- gamut
- Prior art date
Links
Description
本申请是申请日为2011年9月6日、申请号为“201180049970.5”(国际阶段申请号为PCT/US2011/050484)、发明名称为“使用局部色域定义的图像处理方法和设备”的发明专利申请的分案申请。This application is a divisional application of the invention patent application with the application date of September 6, 2011, application number "201180049970.5" (international stage application number is PCT/US2011/050484), and invention name "Image processing method and device using local color gamut definition".
对相关申请的引用References to Related Applications
本申请要求2010年10月18日提交的美国专利临时申请61/394,294的优先权,其全部内容通过引用合并于此。This application claims priority to U.S. Provisional Application No. 61/394,294, filed October 18, 2010, the entire contents of which are incorporated herein by reference.
技术领域Technical Field
本发明涉及图像处理、图像数据压缩、图像显示和图像再现。本发明的实施例提供了用于对图像数据进行处理以传送到下游装置并在下游装置上进行显示的方法和设备。The present invention relates to image processing, image data compression, image display and image reproduction. Embodiments of the present invention provide methods and apparatus for processing image data for transmission to and display on a downstream device.
背景技术Background Art
图像数据(包括视频数据和静止图像数据)可以具有多种不同格式中的任意一种。一些示例图像数据格式为:RGB、YLU、GIF、TIFF、JPEG/JIF、PNG、BMP、PDF、RAW、FITS、MPEG、MP4、诸如BEF、HDRi、JPEGXR、JPEGHDR、RGBE、ScRGB的高动态范围(HDR)格式以及多种其它格式。图像数据格式可以具有在各方面域中显著不同的能力,诸如可以指定的不同颜色范围(即,色域(gamut))、可以指定的亮度级别范围(即,动态范围)、可以指定的色域内的离散颜色的数量、可以指定的离散亮度级别的数量等。一些图像数据格式包括具有不同能力的多个版本。Image data (including video data and still image data) can have any of a variety of different formats. Some example image data formats are: RGB, YLU, GIF, TIFF, JPEG/JIF, PNG, BMP, PDF, RAW, FITS, MPEG, MP4, high dynamic range (HDR) formats such as BEF, HDRi, JPEGXR, JPEGHDR, RGBE, ScRGB, and a variety of other formats. Image data formats can have capabilities that differ significantly in various aspects, such as the range of different colors that can be specified (i.e., gamut), the range of brightness levels that can be specified (i.e., dynamic range), the number of discrete colors within a gamut that can be specified, the number of discrete brightness levels that can be specified, etc. Some image data formats include multiple versions with different capabilities.
可以在很多不同的颜色空间中指定颜色。一些示例包括RGB、HSV、CIE LUV、YCbCr、YIQ、xvYCC、HSL、XYZ、CMYK、CIE LAB、IPT等。不同的图像数据格式可以在不同的颜色空间中指定颜色。Colors can be specified in many different color spaces. Some examples include RGB, HSV, CIE LUV, YCbCr, YIQ, xvYCC, HSL, XYZ, CMYK, CIE LAB, IPT, and others. Different image data formats can specify colors in different color spaces.
显示器可包括广泛种类的基本显示器技术中的任意技术。显示器技术的范围包括从数字影院显示到电视机,其可包括:液晶显示(LCD)面板显示器,其中LCD面板由不同类型的背光系统来从背后照亮;发光二极管(LED)显示器;有机LED显示器(OLED显示器);等离子显示器;阴极射线管(CRT)显示器;激光投影仪;数字微镜装置(DMD)显示器;电致发光显示器等。在这些一般技术的任意技术内,对于发光和/或滤波元件可以有广泛种类的不同构造和构成。结果,不同的显示器可具有在各方面中显著不同的能力,诸如可以显示的不同颜色范围(即,色域)、可以显示的亮度值范围(即,显示的动态范围)等。Displays can include any of a wide variety of basic display technologies. Display technologies range from digital cinema displays to televisions and may include: liquid crystal display (LCD) panel displays, where the LCD panel is backlit by different types of backlighting systems; light emitting diode (LED) displays; organic LED displays (OLED displays); plasma displays; cathode ray tube (CRT) displays; laser projectors; digital micromirror device (DMD) displays; electroluminescent displays, and the like. Within any of these general technologies, there can be a wide variety of different configurations and arrangements for the light emitting and/or filtering elements. As a result, different displays can have significantly different capabilities in various aspects, such as different ranges of colors that can be displayed (i.e., color gamuts), ranges of brightness values that can be displayed (i.e., dynamic ranges of displays), and the like.
宽色域的显示器可能能够再现传统显示器上可显示的色域之外的颜色。然而,能由提供至显示器的图像数据来指定的离散颜色的范围和数量会受到多种因素的约束,诸如图像数据格式的能力、图像数据带宽、图像数据压缩等。A wide color gamut display may be able to reproduce colors outside the gamut displayable on a conventional display. However, the range and number of discrete colors that can be specified by the image data provided to the display are constrained by various factors, such as the capabilities of the image data format, the image data bandwidth, and image data compression.
需要用于对具有不同色域的图像数据进行处理和显示的方法和设备。需要用于对图像数据进行处理和显示以便以高精度在显示器上再现不同的颜色的方法和设备。特别期望如下方法和设备:其可以以高效方式将图像数据传递到显示器或其它下游装置,并且可以在不同图像数据格式、可用图像数据带宽和图像数据压缩的约束内进行操作。There is a need for methods and apparatus for processing and displaying image data having different color gamuts. There is a need for methods and apparatus for processing and displaying image data so as to reproduce different colors on a display with high accuracy. In particular, there is a need for methods and apparatus that can efficiently deliver image data to a display or other downstream device and that can operate within the constraints of different image data formats, available image data bandwidth, and image data compression.
发明内容Summary of the Invention
以下描述了并在附图中示出了本发明的多个方面和本发明的示例实施例。Various aspects of the invention and example embodiments of the invention are described below and illustrated in the accompanying drawings.
根据本发明的一个方面,提供了一种对图像数据进行编码以传送到下游装置的方法,所述方法包括:接收图像数据,所述图像数据具有格式和内容色域;确定所述图像数据的一个或更多个色域特性;至少部分基于所述色域特性,确定用于所述图像数据的局部色域定义;以及对所述图像数据应用色域变换,其中,将由所述图像数据指定的颜色坐标映射到所述局部色域定义的相应颜色坐标;以及其中,具有所述格式的所述图像数据的色域是能够由该格式表示的颜色的范围;所述图像数据的内容色域是所述图像数据中出现的颜色的范围;以及与具有所述格式的所述图像数据的色域相比,所述局部色域定义限定更少的颜色坐标值。According to one aspect of the present invention, a method for encoding image data for transmission to a downstream device is provided, the method comprising: receiving image data, the image data having a format and a content gamut; determining one or more gamut characteristics of the image data; determining a local gamut definition for the image data based at least in part on the gamut characteristics; and applying a gamut transform to the image data, wherein color coordinates specified by the image data are mapped to corresponding color coordinates of the local gamut definition; and wherein the gamut of the image data having the format is the range of colors that can be represented by the format; the content gamut of the image data is the range of colors appearing in the image data; and the local gamut definition limits fewer color coordinate values than the gamut of the image data having the format.
根据本发明的另一个方面,提供了一种对图像数据进行解码以在显示器上进行再现的方法,所述图像数据具有格式,所述方法包括:从所述图像数据提取元数据,所述元数据表示局部色域定义;对所述图像数据进行解压缩;以及对所述图像数据应用色域变换,其中,所述色域变换将所述局部色域定义的颜色坐标值映射到图像数据格式的颜色坐标值;以及其中,具有所述格式的所述图像数据的色域是能够由该格式表示的颜色坐标值的范围,所述局部色域定义包括所述图像数据中出现的颜色坐标值的范围,以及与具有所述格式的所述图像数据的色域相比,所述局部色域定义限定更少的颜色坐标值。According to another aspect of the present invention, there is provided a method for decoding image data for reproduction on a display, the image data having a format, the method comprising: extracting metadata from the image data, the metadata representing a local color gamut definition; decompressing the image data; and applying a color gamut transform to the image data, wherein the color gamut transform maps color coordinate values of the local color gamut definition to color coordinate values of the image data format; and wherein the color gamut of the image data having the format is a range of color coordinate values that can be represented by the format, the local color gamut definition includes a range of color coordinate values appearing in the image data, and the local color gamut definition limits fewer color coordinate values than the color gamut of the image data having the format.
附图说明BRIEF DESCRIPTION OF THE DRAWINGS
附图示出了本发明的非限制性实施例。The accompanying drawings illustrate non-limiting embodiments of the invention.
图1A和图1B是CIE u’v’颜色空间中的色域图。1A and 1B are color gamut diagrams in the CIE u'v' color space.
图2A和图2C是根据示例实施例的对图像数据进行编码的方法的流程图。2A and 2C are flowcharts of a method of encoding image data according to example embodiments.
图2B和图2D是根据示例实施例的对图像数据进行解码的方法的流程图。2B and 2D are flowcharts of a method of decoding image data according to example embodiments.
图3A、图3B和图3C是可在图2A的方法中使用的、根据示例实施例的选择局部色域定义的方法的流程图。3A , 3B, and 3C are flowcharts of a method of selecting a local color gamut definition according to example embodiments, which may be used in the method of FIG. 2A .
图4示出了被划分成子帧块的图像数据的帧的区域。FIG. 4 shows an area of a frame of image data divided into sub-frame blocks.
图5示出了用于图像数据的帧的区域的预定义色域定义。FIG5 illustrates a predefined color gamut definition for a region of a frame of image data.
图6A和图6B是分别示出根据示例实施例的编码设备和解码设备的框图。6A and 6B are block diagrams respectively illustrating an encoding apparatus and a decoding apparatus according to example embodiments.
具体实施方式DETAILED DESCRIPTION
在以下描述中,阐述了具体细节以便为本领域技术人员提供更透彻的理解。然而,可能没有详细示出或描述公知的要素以避免不必要地模糊本公开。因此,描述和附图应被视为说明性意义而非限制性意义。In the following description, specific details are set forth to provide a more thorough understanding for those skilled in the art. However, well-known elements may not be shown or described in detail to avoid unnecessarily obscuring the present disclosure. Therefore, the description and drawings should be regarded as illustrative rather than restrictive.
可以在三维或三分量颜色空间中表示颜色。内容色域可以被定义为图像数据中的局部像素组所占据的颜色空间的范围。图像数据格式的色域可以被定义为可由图像数据格式指定的颜色空间的范围。例如,在每个分量使用四位的三分量颜色空间中指定颜色的图像数据格式允许在图像数据格式的色域内指定高达(24)3或4096个颜色或分量组合。除非考虑大样本图像数据(例如,长帧序列),否则图像数据中的局部像素组不可能需要可由图像数据格式指定的所有可能颜色。此外,可以理解,某些颜色分量组合趋向于比其它颜色分量组合更频繁地出现在图像数据中。Colors may be represented in a three-dimensional or three-component color space. The content color gamut may be defined as the range of color space occupied by local groups of pixels in the image data. The color gamut of an image data format may be defined as the range of color space that may be specified by the image data format. For example, an image data format that specifies colors in a three-component color space using four bits per component allows up to (2 4 ) 3 or 4096 color or component combinations to be specified within the color gamut of the image data format. Unless a large sample of image data (e.g., a long sequence of frames) is considered, it is unlikely that local groups of pixels in the image data will require all possible colors that may be specified by the image data format. Furthermore, it will be appreciated that certain color component combinations tend to appear more frequently in image data than other color component combinations.
本文中描述的方法和设备的特定实施例可应用于图像数据的一个或多个帧或者帧的区域没有使用可由图像数据格式指定的全色域的情况。在这样的情况下,可使用局部色域定义来对图像数据进行编码。如以下所说明的,局部色域定义的使用可有利于图像数据压缩、图像数据的增加颜色深度指定以及视频递送管线(video delivery pipeline)的下游装置对图像数据的处理。Certain embodiments of the methods and apparatus described herein may be applied to situations where one or more frames, or regions of frames, of image data do not utilize the full color gamut that may be specified by the image data format. In such situations, the image data may be encoded using a local color gamut definition. As described below, the use of a local color gamut definition may facilitate image data compression, increased color depth specification for image data, and processing of the image data by downstream devices in a video delivery pipeline.
图1A和图1B例如示出了如下情况:以内容色域边界22为界的内容色域(图像数据中的局部像素组占据的颜色范围)的区域占据了图像数据的各个图像数据格式的整个色域的区域的一部分。在图1A中,可以假设图像数据为具有以色域边界20为界的色域的Rec.709格式。在图1B中,可以假设图像数据为具有以色域边界26为界的色域的宽色域格式(即,具有比Rec.709格式更宽的色域)。对于这些情况中的每种情况,可以使用可至少部分基于内容色域边界22而确定的局部色域定义来对图像数据进行编码。为了参考目的,在图1A和图1B上还绘出了谱轨迹30(表示纯谱或单色颜色的点的轨迹)和CIE标准发光体D65(表示平均日光的白点)。应理解,为了易于图示,图1A和图1B在二维空间中示出了色域边界。如上所指出的,可以在三维或三分量颜色空间中表示颜色。在三维颜色空间中指定的颜色信息可被变换到如下颜色空间:在该颜色空间中,沿着两条轴(诸如图1A和图1B所示)指定色度信息并且沿着第三条轴(图1A和图1B中未示出)指定亮度信息。Figures 1A and 1B illustrate, for example, situations where an area of the content gamut (the range of colors occupied by a local group of pixels in the image data), bounded by content gamut boundary 22, occupies a portion of the area of the entire gamut of the respective image data formats of the image data. In Figure 1A , the image data can be assumed to be in a Rec. 709 format having a gamut bounded by gamut boundary 20. In Figure 1B , the image data can be assumed to be in a wide gamut format (i.e., having a gamut wider than the Rec. 709 format) having a gamut bounded by gamut boundary 26. For each of these situations, the image data can be encoded using a local gamut definition that can be determined at least in part based on content gamut boundary 22. For reference purposes, a spectrum locus 30 (a locus representing points of pure spectral or monochromatic colors) and CIE standard illuminant D65 (a white point representing average daylight) are also plotted on Figures 1A and 1B. It should be understood that for ease of illustration, Figures 1A and 1B illustrate the gamut boundaries in two dimensions. As noted above, colors can be represented in a three-dimensional or three-component color space. Color information specified in a three-dimensional color space can be transformed into a color space in which chromaticity information is specified along two axes (such as shown in Figures 1A and 1B) and luminance information is specified along a third axis (not shown in Figures 1A and 1B).
在图1A所示的情况下,可定义具有与内容色域边界22一致的局部色域边界24的局部色域。在其它实施例中,局部色域边界24可包围或包括内容色域边界22和/或接近内容色域边界22。局部色域所占据的颜色空间的原点可被定义在局部色域内的某个点。在对图像数据进行编码期间,在图像数据中指定的颜色坐标可被映射到局部色域中的相应颜色坐标。由于局部色域包括图像数据格式的色域的区域的一部分,因此可使用减少数量的位来表示局部色域内的颜色坐标。因此,在这样的情况下可采用局部色域定义来减少用于表示图像的数据量。In the case shown in Figure 1A, a local color gamut can be defined having a local color gamut boundary 24 that is consistent with the content color gamut boundary 22. In other embodiments, the local color gamut boundary 24 can surround or include the content color gamut boundary 22 and/or be close to the content color gamut boundary 22. The origin of the color space occupied by the local color gamut can be defined at a point within the local color gamut. During encoding of the image data, color coordinates specified in the image data can be mapped to corresponding color coordinates in the local color gamut. Because the local color gamut includes a portion of the area of the color gamut of the image data format, a reduced number of bits can be used to represent the color coordinates within the local color gamut. Therefore, in such cases, the local color gamut definition can be used to reduce the amount of data used to represent the image.
针对无线或有线数据传送的带宽限制可能限制可传送到显示器的图像数据量。因此,可能期望应用诸如以上参照图1A描述的局部色域定义,以在保留图像的原始颜色深度的同时减少表示图像中的颜色所需的数据量。Bandwidth limitations for wireless or wired data transfer may limit the amount of image data that can be transmitted to a display. Therefore, it may be desirable to apply a local color gamut definition, such as that described above with reference to FIG. 1A , to reduce the amount of data required to represent the colors in an image while preserving the original color depth of the image.
在其它实施例中,可采用局部色域定义来减小在图像数据格式的色域的分区内可指定的颜色之间的步阶的大小(即,减少颜色之间的量化级),从而增加可指定颜色的精度。在图像中一次可以表示的特定色域内的颜色的数量或颜色深度受到用于表示每个像素的颜色的位数(即,“位深”)所限制。例如,假设要编码的图像数据的内容色域以图1A的内容色域边界22为界,并且正使用16位深度颜色方案(使用5位来表示32级红色、使用6位来表示64级绿色并且使用5位来表示32位蓝色,总共为32×64×32或65,536个不同的颜色)来表示所示出的以色域边界20为界的Rec.709格式内的所有可用颜色。在一些图像帧或帧区域中,可能不使用可由这种颜色方案指定的所有65,536级颜色;因此,为了减少颜色之间的量化级,可应用新的局部色域定义,在该新的局部色域定义中,所有65,536级颜色被重新定义为该局部色域内的颜色。局部色域定义的使用可以以局部色域之外的颜色深度为代价来增加局部色域内的颜色深度(从而减少颜色之间的量化级)。例如,如果在Rec.709格式内将局部色域定义为具有与内容色域边界22一致的局部色域边界24,则可定义新的16位深度颜色方案来表示局部色域内的所有可用颜色,从而将局部色域内可指定的颜色数量增加到65,536(即,32×64×32)。In other embodiments, a local color gamut definition may be employed to reduce the size of the steps between colors that can be specified within a partition of the color gamut of the image data format (i.e., reduce the quantization levels between colors), thereby increasing the precision with which colors can be specified. The number of colors within a particular color gamut that can be represented in an image at one time, or the color depth, is limited by the number of bits used to represent the color of each pixel (i.e., the "bit depth"). For example, assume that the content color gamut of the image data to be encoded is bounded by the content color gamut boundary 22 of FIG. 1A , and that a 16-bit depth color scheme (using 5 bits to represent 32 levels of red, 6 bits to represent 64 levels of green, and 5 bits to represent 32 bits of blue, for a total of 32×64×32 or 65,536 different colors) is being used to represent all available colors within the Rec. 709 format shown as bounded by the color gamut boundary 20. In some image frames or frame regions, all 65,536 levels of color that can be specified by such a color scheme may not be used; therefore, to reduce the quantization levels between colors, a new local color gamut definition may be applied in which all 65,536 levels of color are redefined as colors within the local color gamut. The use of a local color gamut definition may increase the color depth within the local color gamut (thereby reducing the quantization levels between colors) at the expense of the depth of colors outside the local color gamut. For example, if the local color gamut is defined within the Rec.709 format as having a local color gamut boundary 24 that coincides with the content color gamut boundary 22, a new 16-bit depth color scheme may be defined to represent all available colors within the local color gamut, thereby increasing the number of colors that can be specified within the local color gamut to 65,536 (i.e., 32×64×32).
在显示器能够以比可由图像数据格式指定的颜色深度更大的颜色深度来再现颜色和/或期望对颜色之间的量化级的更精细控制的某些情况下,可能期望使用局部色域定义来增加颜色深度。例如,如图1B所示,如果在不同的图像数据格式之间位深是恒定的,则宽色域格式(具有以色域边界26为界的色域)中的图像数据的颜色指定精度将比诸如Rec.709格式的较窄色域格式(具有以色域边界20为界的色域)中的图像数据的颜色指定精度低。较宽色域中的颜色的量化级之间的差必然较大,以允许在增加的色域区域中指定颜色。为了增加可以指定颜色的精度,可以以较高位深来提供图像数据,但是在多数情况下这可能是不实际的。In certain situations where a display is capable of reproducing colors at a greater color depth than can be specified by the image data format and/or where finer control over the quantization levels between colors is desired, it may be desirable to increase the color depth using a local color gamut definition. For example, as shown in FIG1B , if the bit depth is constant between different image data formats, the color specification accuracy of image data in a wide color gamut format (having a color gamut bounded by a color gamut boundary 26) will be lower than the color specification accuracy of image data in a narrower color gamut format such as the Rec.709 format (having a color gamut bounded by a color gamut boundary 20). The difference between the quantization levels of colors in the wider color gamut is necessarily larger to allow colors to be specified in the increased color gamut area. In order to increase the accuracy with which colors can be specified, the image data can be provided at a higher bit depth, but this may not be practical in most cases.
在图1B的示例中,图像数据为宽色域格式,并且内容色域(由色域边界22定义)的一些颜色在Rec.709色域之外。图像数据的内容色域占据所示出的以色域边界26为界的宽色域格式的色域的区域的一部分。为了增加可以表示图像数据中的颜色的精度,可为图像数据定义具有与内容色域边界22一致的或包括内容色域边界22的局域色域边界24的局部色域。新的颜色方案可被定义为表示该局部色域内的颜色。在图像数据中指定的颜色坐标可被映射到局部色域中的相应颜色坐标。In the example of FIG1B , the image data is in a wide color gamut format, and some colors of the content color gamut (defined by color gamut boundary 22) are outside the Rec. 709 color gamut. The content color gamut of the image data occupies a portion of the area of the color gamut of the wide color gamut format shown as being bounded by color gamut boundary 26. To increase the accuracy with which colors in the image data can be represented, a local color gamut having a local color gamut boundary 24 that coincides with or includes content color gamut boundary 22 can be defined for the image data. A new color scheme can be defined to represent colors within this local color gamut. Color coordinates specified in the image data can be mapped to corresponding color coordinates in the local color gamut.
用于示出如何可通过使用局部色域定义来增加颜色深度的示例如下:假设由颜色分量码字的N个组合来描述图像数据格式的全色域,并且与图像数据格式的全色域相比局部内容色域较小(例如,局部内容色域需要N个可能组合的子集)。可以确定局部内容色域边界,并且可以重新分配N个码字以占据直到局部内容色域边界的颜色空间。因此,可以使用N个码字以比先前高的颜色分辨率(颜色深度)来指定图像数据格式的全色域的较小分区中的颜色。An example illustrating how color depth can be increased by using a local color gamut definition is as follows: Assume that the full color gamut of an image data format is described by N combinations of color component codewords, and that the local content color gamut is smaller than the full color gamut of the image data format (e.g., the local content color gamut requires a subset of the N possible combinations). The local content color gamut boundary can be determined, and the N codewords can be reallocated to occupy the color space up to the local content color gamut boundary. Thus, the N codewords can be used to specify colors in a smaller partition of the full color gamut of the image data format at a higher color resolution (color depth) than before.
用于局部色域定义的新颜色方案可具有与图像数据格式相同的位深。在其它情况下,用于局部色域定义的新颜色方案可具有比图像数据格式减小的位深,同时仍允许以期望的颜色深度来指定局部色域内的颜色。The new color scheme used for the local color gamut definition may have the same bit depth as the image data format. In other cases, the new color scheme used for the local color gamut definition may have a reduced bit depth than the image data format, while still allowing colors within the local color gamut to be specified at a desired color depth.
在一些实施例中,可在图像数据的后期制作处理期间由专业的颜色分级机(colorgrader)来选择和使用对于局部色域定义的新颜色方案,以便以比图像数据格式的现有颜色方案可允许的精度更大的精度来指定颜色。在其它实施例中,可由下游装置来确定或检索对于局部色域定义的新颜色方案,并且该新颜色方案被用来增强已应用了色域压缩(例如,将宽色域图像数据压缩到更常用色域(例如,Rec.709色域)的约束的处理)的处理后图像数据的颜色指定。In some embodiments, the new color scheme defined for the local color gamut can be selected and used by a specialized color grader during post-production processing of the image data to specify colors with greater precision than would otherwise be permitted by the existing color scheme of the image data format. In other embodiments, the new color scheme defined for the local color gamut can be determined or retrieved by a downstream device and used to enhance the color specification of processed image data to which color gamut compression (e.g., a process that compresses wide color gamut image data into the constraints of a more commonly used color gamut (e.g., the Rec. 709 color gamut) has been applied.
在使用局部色域定义对图像数据进行编码的情况下,可将关于局部色域定义的信息传输到下游装置,以使得下游装置能够对图像数据进行解码。这样的信息可被编码为图像数据中的元数据,或者可作为图像数据的帧前面(诸如,在电影、广播、场景等的开端处)的元数据来传输。下游装置(例如,机顶盒或显示处理器)可通过下述方式来对图像数据进行解码以进行显示:从图像数据提取局部色域信息,并且应用这样的信息来将使用局部色域定义所定义的颜色坐标值转换为用于在显示器上进行再现的颜色坐标值。重新映射后的颜色坐标值可具有与普通颜色坐标值相同的格式和定义,以使得图像数据的传送、显示等不受影响。In the case where the image data is encoded using a local color gamut definition, information about the local color gamut definition may be transmitted to a downstream device so that the downstream device can decode the image data. Such information may be encoded as metadata in the image data, or may be transmitted as metadata in front of a frame of image data (such as at the beginning of a movie, broadcast, scene, etc.). A downstream device (e.g., a set-top box or display processor) may decode the image data for display by extracting the local color gamut information from the image data and applying such information to convert color coordinate values defined using the local color gamut definition into color coordinate values for reproduction on a display. The remapped color coordinate values may have the same format and definition as ordinary color coordinate values so that the transmission, display, etc. of the image data are not affected.
在显示之前,下游装置可选地对解码图像数据进行滤波,以减少在解码之后可能出现在图像数据中的视觉假象(visual artifact)。视觉假象可能是由于在帧或帧区域之间应用不同的局部色域定义来对图像数据进行编码而导致的。Prior to display, the downstream device may optionally filter the decoded image data to reduce visual artifacts that may appear in the image data after decoding. Visual artifacts may result from encoding the image data using different local color gamut definitions between frames or frame regions.
在特定实施例中,可在视频递送管线中的不同级使用局部色域信息,以有利于对颜色信息的指定和取决于局部颜色特性的操作。典型的视频递送管线包括各种级,诸如内容捕获、后期制作编辑、编码、传送、解码和显示。由上游装置在管线中较早生成的局部色域信息可在管线向下传递(例如,利用元数据),以在对视频数据进行处理时对一个或多个下游装置进行引导。下游装置可使用局部颜色特性来例如:增强图像中的细节、掩盖或抑制噪声或假象、执行局部色调映射和/或确定双调制显示器中的有色背光所需要的局部色域。可通过使用已由上游装置预先计算的且提供给下游装置的局部色域信息来降低这样的操作的总计算成本。In certain embodiments, local color gamut information may be used at various stages in a video delivery pipeline to facilitate the specification of color information and operations that depend on local color characteristics. A typical video delivery pipeline includes various stages, such as content capture, post-production editing, encoding, transmission, decoding, and display. Local color gamut information generated earlier in the pipeline by an upstream device may be passed down the pipeline (e.g., using metadata) to guide one or more downstream devices in processing the video data. Downstream devices may use the local color characteristics to, for example, enhance detail in an image, mask or suppress noise or artifacts, perform local tone mapping, and/or determine the local color gamut required for a colored backlight in a dual-modulation display. The overall computational cost of such operations may be reduced by using local color gamut information that has been pre-calculated by an upstream device and provided to downstream devices.
图2A示出了根据一个实施例的使用局部色域定义对图像数据进行编码的方法100。方法100以接收内容图像数据102来开始,该内容图像数据102可包括图像数据的一个或多个帧或者帧的区域。内容图像数据102可包括例如视频数据。在块104处对内容图像数据102的内容色域进行表征。块104的色域表征可包括例如确定以下中的一个或多个:FIG2A illustrates a method 100 for encoding image data using a local color gamut definition, according to one embodiment. The method 100 begins by receiving content image data 102, which may include one or more frames or regions of frames of image data. The content image data 102 may include, for example, video data. At block 104, the content color gamut of the content image data 102 is characterized. The color gamut characterization of block 104 may include, for example, determining one or more of the following:
●包括内容色域的所有点或内容色域的一部分的边界;A boundary that includes all points of the content gamut or a portion of the content gamut;
●包括内容色域的所有点或内容色域的一部分的边界内的区域;An area within the boundaries that includes all points of the content gamut or a portion of the content gamut;
●关于针对局部像素组指定的颜色坐标或颜色信息的统计信息,诸如平均值、标准偏差、方差、最大值和最小值等。• Statistical information about color coordinates or color information specified for a local pixel group, such as mean, standard deviation, variance, maximum and minimum values, etc.
以下还参照图3A至图3C来讨论色域表征方法。The color gamut characterization method is also discussed below with reference to FIG. 3A to FIG. 3C .
在块107处,对在块104处确定的色域表征进行评估,以确定条件是否适合于对图像数据应用局部色域变换。如果在块107处确定条件是适合的,则在块108处确定或检索对于内容图像数据102的局部色域。局部色域可选自预定局部色域定义的集合或者可基于块104处的色域表征来针对内容图像数据102而生成。以下参照图3A至图3C来讨论确定局部色域定义的方法。可为图像的块或其它区域指定局部色域定义。在一些实施例中,可将帧划分成多个子帧块,这些子帧块中的一个或多个可与局部色域定义相关联。在其它实施例中,可关于图像的色域特性来定义与局部色域相关联的区域(例如,可为帧内具有类似色调的对象或区域指定局部色域)。At block 107, the color gamut representation determined at block 104 is evaluated to determine whether conditions are suitable for applying a local color gamut transform to the image data. If conditions are determined to be suitable at block 107, a local color gamut for the content image data 102 is determined or retrieved at block 108. The local color gamut can be selected from a set of predetermined local color gamut definitions or can be generated for the content image data 102 based on the color gamut representation at block 104. Methods for determining local color gamut definitions are discussed below with reference to Figures 3A to 3C. Local color gamut definitions can be assigned to blocks or other regions of an image. In some embodiments, a frame can be divided into multiple sub-frame blocks, one or more of which can be associated with a local color gamut definition. In other embodiments, the region associated with the local color gamut can be defined based on the color gamut characteristics of the image (e.g., a local color gamut can be assigned to objects or regions within a frame having similar hues).
块108的局部色域可由与内容色域一致的或包围内容色域的色域边界来限定。色域边界可以以多种方式中的任意方式来表示,诸如:The local color gamut of block 108 may be defined by a color gamut boundary that is consistent with or encompasses the content color gamut. The color gamut boundary may be represented in any of a variety of ways, such as:
作为现有色域(例如,Rec.709色域)中的点的子集的点集合;以及多项式表示。A set of points that is a subset of the points in an existing color gamut (eg, the Rec. 709 color gamut); and a polynomial representation.
在图1A和图1B中绘出了与由内容色域边界22限定的内容色域对应的局部色域边界24的示例。局部色域可在与图像数据格式的色域相同或不同的颜色空间中。定义局部色域的颜色空间的原点可位于局部色域内的某个点处,但是这不是必须的,并且原点可被定义在某个其它位置。在某些实施例中,原点可位于图像数据的颜色坐标值的平均值处。An example of a local color gamut boundary 24 corresponding to the content color gamut defined by the content color gamut boundary 22 is depicted in FIG1A and FIG1B . The local color gamut may be in the same or a different color space than the color gamut of the image data format. The origin of the color space defining the local color gamut may be located at a point within the local color gamut, but this is not required, and the origin may be defined at some other location. In some embodiments, the origin may be located at the average of the color coordinate values of the image data.
在块110处,对图像数据应用局部色域变换,以将由内容图像数据102指定的颜色坐标映射到局部色域中的相应颜色坐标。在一些实施例中,可定义新的颜色方案来表示局部色域中的颜色坐标。新颜色方案可具有与图像数据格式相同或不同的位深;位深确定在局部色域中可指定颜色的精度。例如,在内容色域占据传统或非宽色域格式的色域的区域的一部分的情况(例如,图1A所示的情况)下,则可能对于图像数据不需要使用全位深,并且可使用减小的位深来表示局部色域内的颜色坐标。另一方面,在内容色域占据宽色域格式的色域的区域的一部分并且内容色域的至少一部分在传统或非宽色域格式的色域之外的情况(例如,图1B所示的情况)下,则可使用图像数据格式的全位深来表示局部色域内的所有可用颜色以达到期望精度水平。At block 110, a local color gamut transform is applied to the image data to map color coordinates specified by the content image data 102 to corresponding color coordinates in the local color gamut. In some embodiments, a new color scheme may be defined to represent color coordinates in the local color gamut. The new color scheme may have the same or a different bit depth than the image data format; the bit depth determines the precision with which colors can be specified in the local color gamut. For example, where the content color gamut occupies a portion of the area of the color gamut of a conventional or non-wide color gamut format (e.g., the case shown in FIG. 1A ), it may not be necessary to use the full bit depth for the image data, and a reduced bit depth may be used to represent color coordinates within the local color gamut. On the other hand, where the content color gamut occupies a portion of the area of the color gamut of a wide color gamut format and at least a portion of the content color gamut is outside the gamut of the conventional or non-wide color gamut format (e.g., the case shown in FIG. 1B ), the full bit depth of the image data format may be used to represent all available colors within the local color gamut to achieve the desired level of precision.
块110处的局部色域变换可利用例如以下来执行:The local color gamut transform at block 110 may be performed using, for example, the following:
●查找表(LUT);Look-up table (LUT);
●函数,其接受输入值并将这些输入值转换为局部色域中的相应输出值;A function that accepts input values and converts those input values into corresponding output values in the local color gamut;
●等等。●And so on.
在某些实施例中,为了表征色域、评估色域特性、确定局部色域变换、和/或应用局部色域变换(即,方法100A的块104、107、108和/或110)的目的,可将颜色信息从其原始颜色空间变换到另一颜色空间中。新的颜色空间可能对于视觉和感知分析更方便。到新颜色空间的变换可有利于图像数据处理以及图像数据的更高效表示。到新颜色空间的变换可以是非线性的。In certain embodiments, for the purposes of characterizing the color gamut, evaluating color gamut characteristics, determining a local color gamut transform, and/or applying a local color gamut transform (i.e., blocks 104, 107, 108, and/or 110 of method 100A), color information may be transformed from its original color space into another color space. The new color space may be more convenient for visual and perceptual analysis. The transformation to the new color space may facilitate image data processing and more efficient representation of image data. The transformation to the new color space may be nonlinear.
可将在原始颜色空间中评估的、关于图像数据颜色信号的统计信息转换为新颜色空间中的不同统计值。在表征色域时,对于原始和/或新颜色空间中的局部像素组,可以考虑诸如平均值、最大值、最小值、标准偏差、方差等的统计度量。还可以考虑诸如距平均值的距离的一些界限描述。Statistical information about the color signals of the image data, evaluated in the original color space, can be converted into different statistical values in the new color space. When characterizing the color gamut, statistical metrics such as mean, maximum, minimum, standard deviation, and variance can be considered for local groups of pixels in the original and/or new color spaces. Boundary descriptions such as distance from the mean can also be considered.
根据一些实施例,可在块110处应用一种或多种变换,以减小变换后的颜色信号信息的范围,同时保留显著的颜色特性。在一些实施例中,通过对各种统计度量的非线性变换进行测试,可以选择并应用最优变换,以压缩颜色信号信息,同时使显著颜色特性的失真最小化或减小该失真。根据特定实施例,应用非线性变换,随后应用一般的最优线性变换(例如,奇异值分解或主成分分析)以进一步压缩颜色信号信息。According to some embodiments, one or more transforms may be applied at block 110 to reduce the range of the transformed color signal information while preserving the salient color characteristics. In some embodiments, by testing nonlinear transforms on various statistical metrics, an optimal transform may be selected and applied to compress the color signal information while minimizing or reducing the distortion of the salient color characteristics. According to certain embodiments, a nonlinear transform is applied followed by a generally optimal linear transform (e.g., singular value decomposition or principal component analysis) to further compress the color signal information.
在块112处,对内容图像数据102进行压缩。可使用适合于图像数据格式的一种或多种技术来执行压缩,诸如:At block 112, the content image data 102 is compressed. Compression may be performed using one or more techniques appropriate to the image data format, such as:
●如可用于例如JPEG图像数据和MPEG视频数据的、诸如利用离散余弦变换(DCT)的变换编码;• transform coding, such as using the discrete cosine transform (DCT), as may be used for example for JPEG image data and MPEG video data;
●如可用于例如MPEG视频数据的预测编码;● as can be used, for example, for predictive coding of MPEG video data;
●如可用于例如GIF和TIFF图像数据的无损压缩(例如,蓝波-立夫-卫曲压缩(Lempel-Ziv-Welch compression));• Lossless compression (e.g., Lempel-Ziv-Welch compression) as may be used for, for example, GIF and TIFF image data;
●基于小波的压缩;Wavelet-based compression;
●上述一种或多种技术的组合;●A combination of one or more of the above technologies;
●等等。●And so on.
在一些实施例中,使用标准图像编码技术(例如,DCT、频率相关或频率无关量化、频率扫描排序、固定或可变运行长度编码等)对残差图像数据(即,在输入或先前帧图像数据与应用预测技术之后的预测输出或随后帧图像数据之间的差)进行编码。使用帧间或帧内预测技术来执行预测。可将帧划分为局部子帧块。通过使用先前编码的图像数据来预测每个连续块。残差图像数据由于基于块的预测技术而携带有输入图像的一些统计信息和一些新的局部统计信息。如本文中所述的局部色域表示技术可以应用于残差图像数据。In some embodiments, the residual image data (i.e., the difference between the input or previous frame image data and the predicted output or subsequent frame image data after applying the prediction technique) is encoded using standard image coding techniques (e.g., DCT, frequency-dependent or frequency-independent quantization, frequency scan ordering, fixed or variable run length coding, etc.). Prediction is performed using inter-frame or intra-frame prediction techniques. The frame can be divided into local sub-frame blocks. Each consecutive block is predicted using previously encoded image data. Due to the block-based prediction technique, the residual image data carries some statistical information of the input image and some new local statistical information. The local color domain representation technique described herein can be applied to the residual image data.
为了辅助下游装置对图像数据进行处理和解码,在块114处,可将元数据116嵌入在图像数据中,或者可连同图像数据一起传送元数据116。元数据116可提供关于特定帧或者帧的区域的局部色域定义的信息。元数据116可包括,例如:下游装置可用的局部色域定义库40(图5)的索引;用于标识帧的应用了局部色域定义(例如,如索引所指定的局部色域定义)的区域的坐标42(图5);关于映射函数的或者可以从其得到查找表的信息(即,用于将使用局部色域定义所定义的颜色坐标映射回到图像数据中的颜色坐标以在显示器上进行再现),等等。然后,输出包括元数据116的、压缩后的处理后图像数据118,以传送到下游装置。To assist downstream devices in processing and decoding the image data, metadata 116 may be embedded in the image data or transmitted along with the image data at block 114. The metadata 116 may provide information about the local color gamut definition for a particular frame or region of a frame. The metadata 116 may include, for example, an index into a library of local color gamut definitions 40 ( FIG. 5 ) available to the downstream device; coordinates 42 ( FIG. 5 ) identifying the region of the frame to which the local color gamut definition (e.g., the local color gamut definition specified by the index) is applied; information about a mapping function or a lookup table from which a lookup table may be derived (i.e., for mapping color coordinates defined using the local color gamut definition back to color coordinates in the image data for reproduction on a display); and the like. Compressed processed image data 118 including the metadata 116 is then output for transmission to the downstream device.
可能不是在每种情况下都应用局部色域定义。例如,在方法100中,对于图像数据的某些帧或帧的区域,如果通过块107对色域特性的评估而确定条件不适合于对图像数据应用局部色域变换,则可不应用局部色域定义。在这样的情况下,方法100可绕过局部色域确定和变换,并且继续到在块112处对图像数据进行压缩。在一些实施例中,可将表示没有对这样的图像数据应用局部色域定义的元数据116传输到下游装置。The local color gamut definition may not be applied in every case. For example, in method 100, for certain frames or regions of the image data, if the evaluation of the color gamut characteristics at block 107 determines that conditions are not suitable for applying a local color gamut transform to the image data, then the local color gamut definition may not be applied. In such cases, method 100 may bypass the local color gamut determination and transformation and proceed to compressing the image data at block 112. In some embodiments, metadata 116 indicating that the local color gamut definition was not applied to such image data may be transmitted to a downstream device.
例如,如图2B的方法120所示,随后可由显示器或其它下游装置对已根据图2A的方法100编码的处理后图像数据118进行解码,以将该数据准备用于输出到显示器。方法120以接收处理后图像数据118来开始。方法120通过从处理后图像数据118提取元数据116而继续到块122。在块124处,对图像数据进行解压缩。在块126处,通过对图像数据应用逆局部色域变换来对解压缩后的图像数据的颜色信息进行解码。块126的逆变换可至少部分基于元数据116,元数据116引导从可应用的局部色域定义的颜色坐标值到图像数据格式的颜色坐标值的映射,以在显示器上进行再现。例如,实现方法120的下游装置可使得局部色域定义库40(参见图5)对其可用。元数据116可包括用于对局部色域定义库40进行索引的局部色域标志和用于标识帧的应用了特定局部色域定义的区域的坐标(参见图5)。在一些实施例中,可使用元数据116来配置局部色域定义库40。For example, as shown in method 120 of FIG. 2B , processed image data 118, which has been encoded according to method 100 of FIG. 2A , can then be decoded by a display or other downstream device to prepare the data for output to the display. Method 120 begins by receiving processed image data 118. Method 120 continues to block 122 by extracting metadata 116 from processed image data 118. At block 124, the image data is decompressed. At block 126, the color information of the decompressed image data is decoded by applying an inverse local color gamut transform to the image data. The inverse transform in block 126 may be based at least in part on metadata 116, which guides the mapping of color coordinate values from the applicable local color gamut definition to color coordinate values in the image data format for reproduction on a display. For example, a downstream device implementing method 120 may have the local color gamut definition library 40 (see FIG. 5 ) available to it. The metadata 116 may include a local color gamut flag for indexing the local color gamut definition library 40 and coordinates for identifying regions of the frame to which a particular local color gamut definition is applied (see FIG. 5 ). In some embodiments, the metadata 116 may be used to configure the local color gamut definition library 40 .
在其它实施例中,块126的变换可从可应用的局部色域定义的颜色坐标值映射到不同的颜色空间(例如,RGB颜色空间)内的颜色坐标值,以在显示器上进行再现。In other embodiments, the transform of block 126 may map color coordinate values from the applicable local color gamut definition to color coordinate values within a different color space (eg, an RGB color space) for reproduction on a display.
在方法120的块128处,可选地对解码图像数据进行滤波,以减少解码之后可能出现在图像数据中的视觉假象。所得到的滤波后解码图像数据作为输出图像数据130被输出到显示器。At block 128 of method 120, the decoded image data is optionally filtered to reduce visual artifacts that may appear in the image data after decoding.The resulting filtered decoded image data is output as output image data 130 to a display.
传输元数据116需要用于允许下游装置对图像数据进行解码的一些开销。尽管开销增加,但是在内容色域的区域是图像数据格式的色域的区域的一部分的情况下,可通过使用局部色域定义对图像数据进行编码而在适当的环境中实现对图像数据的更大压缩(诸如在图1A所示的情况下)。Transmission metadata 116 requires some overhead to allow downstream devices to decode the image data. Despite the increased overhead, greater compression of the image data can be achieved in appropriate circumstances by encoding the image data using a local color gamut definition, such as in the case shown in FIG. 1A , where the area of the content color gamut is a fraction of the area of the color gamut of the image data format.
图3A、图3B和图3C分别示出了根据示例实施例的、可作为方法100(图2A)的块104、107和108的具体示例实现而应用的方法200、240和280。在方法200、240和280中的每种方法中,在块202处接收内容图像数据102的帧并且将该帧划分为子帧块,每个子帧块均包括与表示颜色信息的值相关联的N×N个像素。图4例如示出了被划分成四个子帧块32的帧31的区域。帧实际上可以具有多于所示出的四个子帧块。在图4的所示出的示例中,每个子帧块32具有8×8个像素。如果在CIE LUV颜色空间中表示图像数据,则子帧块的64个像素中的每个可与L’、u’、v’值相关联。对于在其它颜色空间中表示的图像数据,每个像素可与其它颜色值相关联。Figures 3A, 3B, and 3C illustrate methods 200, 240, and 280, respectively, which may be applied as specific example implementations of blocks 104, 107, and 108 of method 100 (Figure 2A), according to example embodiments. In each of methods 200, 240, and 280, a frame of content image data 102 is received at block 202 and divided into sub-frame blocks, each of which includes N×N pixels associated with a value representing color information. Figure 4, for example, illustrates a region of frame 31 divided into four sub-frame blocks 32. A frame may actually have more than the four sub-frame blocks shown. In the example shown in Figure 4, each sub-frame block 32 has 8×8 pixels. If the image data is represented in the CIE LUV color space, each of the 64 pixels of the sub-frame block may be associated with an L', u', and v' value. For image data represented in other color spaces, each pixel may be associated with other color values.
在方法200、240和280中的每个方法中,在块204处确定每个子帧块32的色域特性。基于这样的色域特性,可在块206处评估一个或多个条件。如果满足某些条件,则在块208处检索局部色域定义。In each of methods 200, 240, and 280, color gamut characteristics of each sub-frame block 32 are determined at block 204. Based on such color gamut characteristics, one or more conditions may be evaluated at block 206. If certain conditions are met, then a local color gamut definition is retrieved at block 208.
对于方法200、240和280中的每个方法,根据图像数据确定的色域特性可包括表示每个子帧块的平均颜色的值(如在块204A处确定的)。在一些实施例中,这样的值可以是例如DCT系数矩阵的DC系数(即,DC值)(参见图4)。DC系数33的确定可包括对子帧块32中的像素值应用离散余弦变换(DCT)。图像数据的色域特性还可包括每个子帧块的最小颜色值和最大颜色值(如在块204B处所确定的)。当在CIE LUV颜色空间中表示图像数据的情况下,可对于L’、u’、v’分量中的每个分量来分开地计算每个子帧块32的平均值(例如,DC系数33)以及最小值和最大值。在特定其它实施例中,可利用来自上游装置(诸如颜色分级工具)的传输或者图像数据中的元数据而将块204处的色域特性提供到编码器。For each of methods 200, 240, and 280, the color gamut characteristics determined based on the image data may include a value representing the average color of each sub-frame block (as determined at block 204A). In some embodiments, such a value may be, for example, a DC coefficient (i.e., DC value) of a DCT coefficient matrix (see FIG. 4 ). Determination of the DC coefficient 33 may include applying a discrete cosine transform (DCT) to the pixel values in the sub-frame block 32. The color gamut characteristics of the image data may also include a minimum and maximum color value for each sub-frame block (as determined at block 204B). When the image data is represented in the CIE LUV color space, the average value (e.g., DC coefficient 33) and the minimum and maximum values for each sub-frame block 32 may be calculated separately for each of the L', u', and v' components. In certain other embodiments, the color gamut characteristics at block 204 may be provided to the encoder via transmission from an upstream device (such as a color grading tool) or via metadata within the image data.
方法200、240和280在块206处所评估的条件和在块208处选择或生成的局部色域定义方面不同。图3A的方法200评估条件是否适合于使用局部色域定义以有利于数据压缩。图3B的方法240评估条件是否适合于使用局部色域定义以增加颜色深度。图3C的方法280包括方法200和240的方面,并且评估条件是否适合于使用局部色域定义以有利于数据压缩或增加颜色深度。Methods 200, 240, and 280 differ in the conditions evaluated at block 206 and the local color gamut definition selected or generated at block 208. Method 200 of FIG. 3A evaluates whether conditions are suitable for using a local color gamut definition to facilitate data compression. Method 240 of FIG. 3B evaluates whether conditions are suitable for using a local color gamut definition to increase color depth. Method 280 of FIG. 3C includes aspects of methods 200 and 240 and evaluates whether conditions are suitable for using a local color gamut definition to facilitate data compression or increase color depth.
如上所述,图3A的方法200以在块202处将帧划分为子帧块32以及在块204处确定色域特性来开始。在块204处确定色域特性之后,方法200通过针对每个子帧块32来评估(1)平均值与最小值之间的差的绝对值以及(2)平均值与最大值之间的差的绝对值是否分别小于预定阈值(即,“阈值1”)而继续到块206B。如果这些差不小于阈值,则方法200可通过在块209处返回条件不适于使用局部色域定义的指示而继续。例如,内容色域可能覆盖这样大的区域:其使得在考虑了将关于局部色域定义的使用的信息传输到下游装置时的开销之后,局部色域定义的使用不会减少图像数据超过微小量。As described above, the method 200 of FIG3A begins by dividing the frame into sub-frame blocks 32 at block 202 and determining color gamut characteristics at block 204. After determining the color gamut characteristics at block 204, the method 200 continues to block 206B by evaluating, for each sub-frame block 32, whether (1) the absolute value of the difference between the average and the minimum value and (2) the absolute value of the difference between the average and the maximum value, respectively, are less than a predetermined threshold value (i.e., "Threshold 1"). If these differences are not less than the threshold value, the method 200 may continue by returning an indication that conditions are not suitable for use of a local color gamut definition at block 209. For example, the content color gamut may cover an area so large that use of the local color gamut definition does not reduce the image data by more than a negligible amount, after accounting for the overhead of transmitting information regarding the use of the local color gamut definition to a downstream device.
在替选实施例中,可在方法200的块206B处评估一个或多个其它条件,以确定是否适合于使用局部色域定义,以用于数据压缩目的。这些其它条件可包括,例如:In alternative embodiments, one or more other conditions may be evaluated at block 206B of method 200 to determine whether it is appropriate to use a local color gamut definition for data compression purposes. These other conditions may include, for example:
●评估作为图像数据格式的色域的面积的百分比的内容色域的面积;• Evaluate the area of the content gamut as a percentage of the area of the image data format's gamut;
●评估作为图像数据格式的色域的体积的百分比的内容色域的体积(即,考虑三维颜色空间中的色域);• Evaluate the volume of the content gamut as a percentage of the volume of the image data format's gamut (ie, considering the gamut in a three-dimensional color space);
●评估平均值与图像数据格式的色域的边界之间的距离;= Evaluate the distance between the mean and the boundaries of the color gamut of the image data format;
●评估相邻子帧块的颜色特性;● Evaluate the color characteristics of adjacent subframe blocks;
●评估应用局部色域变换的成本和益处(例如,成本可包括视觉假象);• Evaluate the costs and benefits of applying a local color gamut transform (e.g., costs may include visual artifacts);
●评估应用全局色域变换的成本和益处;● Evaluate the costs and benefits of applying a global color gamut transform;
●等等。●And so on.
如果在方法200的块206B处评估的、平均值与最小值/最大值之间的差小于阈值,则方法200通过在块208D处检索对于图像数据的局部色域定义而继续。局部色域定义可:选自预定局部色域定义的集合,从存储器检索,从视频信号提取,和/或基于在块204处确定的平均值和/或最小和最大值(或其它色域特性)来生成。局部色域定义可具有与内容色域一致的或包围内容色域的边界。If the difference between the average and the minimum/maximum values, as evaluated at block 206B of method 200, is less than the threshold, method 200 continues by retrieving a local color gamut definition for the image data at block 208D. The local color gamut definition may be selected from a set of predetermined local color gamut definitions, retrieved from a memory, extracted from a video signal, and/or generated based on the average and/or minimum and maximum values (or other color gamut characteristics) determined at block 204. The local color gamut definition may have boundaries that coincide with or encompass the content color gamut.
图3B的方法240确定可以用于对图像数据进行编码以增加其颜色深度的局部色域定义。可在例如图像数据格式具有宽色域(比诸如Rec.709格式的传统色域宽的色域)的情况下应用方法240,因为在这样的情况下,可能期望增加在图像数据中可指定颜色的精度。如以上参照图1B所说明的,使用局部色域定义对图像数据进行编码可允许在图像数据格式的色域的一个区域内指定更大数量的颜色,而不需增加图像数据的位深。Method 240 of FIG3B determines a local color gamut definition that can be used to encode image data to increase its color depth. Method 240 can be applied, for example, in situations where the image data format has a wide color gamut (wider than a conventional color gamut such as the Rec. 709 format), because in such situations, it may be desirable to increase the precision with which colors can be specified in the image data. As described above with reference to FIG1B , encoding image data using a local color gamut definition can allow a greater number of colors to be specified within a region of the color gamut of the image data format without increasing the bit depth of the image data.
如图3B所示,在块204处确定色域特性之后,方法240通过确定内容色域的边界上的点是否足够靠近图像数据格式的色域的边界而继续到块206A。如果边界不充分靠近,则方法240可通过在块209处返回条件不适合于使用局部色域定义的指示而继续(例如,由于内容色域没有逼近宽色域格式的色域的边界,因此不需要定义特殊的局部色域;然而,在一些实施例中,可使用另一色域定义来对图像数据进行编码,诸如,传统或非宽色域格式的色域定义)。As shown in Figure 3B, after determining the color gamut characteristics at block 204, method 240 continues to block 206A by determining whether a point on the boundary of the content color gamut is sufficiently close to the boundary of the color gamut of the image data format. If the boundary is not sufficiently close, method 240 may continue by returning an indication that the conditions are not suitable for using a local color gamut definition at block 209 (e.g., because the content color gamut does not approach the boundary of the color gamut of the wide color gamut format, there is no need to define a special local color gamut; however, in some embodiments, another color gamut definition may be used to encode the image data, such as the color gamut definition of a traditional or non-wide color gamut format).
如果内容色域的边界足够靠近图像数据格式的色域的边界,则方法240通过评估(1)平均值与最小值之间的差的绝对值以及(2)平均值与最大值之间的差的绝对值是否分别小于预定阈值(即,“阈值2”)而继续到块206C。如果这些差不小于阈值,则方法240可通过在块209处返回条件不适合于使用局部色域定义的指示而继续。例如,内容色域可能覆盖这样大的区域:其使得局部色域定义的使用不会增加颜色深度超过显著程度。If the boundary of the content color gamut is sufficiently close to the boundary of the color gamut of the image data format, then the method 240 proceeds to block 206C by evaluating whether (1) the absolute value of the difference between the average and the minimum value and (2) the absolute value of the difference between the average and the maximum value are each less than a predetermined threshold value (i.e., "Threshold 2"). If these differences are not less than the threshold value, then the method 240 may continue by returning an indication that the conditions are not suitable for use of a local color gamut definition at block 209. For example, the content color gamut may cover an area so large that use of a local color gamut definition does not increase the color depth more than noticeably.
如果在方法240的块206C处评估的平均值与最小值/最大值之间的差小于阈值,则方法240通过在块208A处检索对于图像数据的局部色域定义而继续。局部色域定义可选自预定局部色域定义的集合,或者可基于在块204处确定的平均值和/或最小和最大值(或其它色域特性)而生成局部色域定义。局部色域定义可具有与内容色域一致的或者包围内容色域的边界。可为局部色域定义新的颜色方案以增加颜色深度。If the difference between the average and the minimum/maximum values evaluated at block 206C of method 240 is less than the threshold, method 240 continues by retrieving a local color gamut definition for the image data at block 208A. The local color gamut definition may be selected from a set of predetermined local color gamut definitions, or may be generated based on the average and/or minimum and maximum values (or other color gamut characteristics) determined at block 204. The local color gamut definition may have boundaries that coincide with or encompass the content color gamut. A new color scheme may be defined for the local color gamut to increase color depth.
在其它实施例中,可以定义局部色域定义而与内容色域边界与图像数据格式的色域边界的靠近程度无关。然而,某些操作(诸如基于局部色域信息的变换)可基于局部内容色域边界与图像数据格式的色域边界的相对关系和/或与相邻子帧块的局部内容色域边界的相对关系。In other embodiments, the local color gamut definition may be defined regardless of how close the content color gamut boundary is to the color gamut boundary of the image data format. However, certain operations (such as transforms based on local color gamut information) may be based on the relative relationship of the local content color gamut boundary to the color gamut boundary of the image data format and/or to the local content color gamut boundary of an adjacent sub-frame block.
图3C的方法280包括方法200和240的方面以检索局部色域定义,从而有利于数据压缩或增加颜色深度。在方法280中,与方法200和240的步骤类似的步骤标有相同的附图标记。如在图3C中可见,在块204处确定色域特性之后,方法280通过针对每个子帧块32评估如上参照图3A的块206B以及图3B的块206A、206C所述的条件而继续到块206(其包括块206A、206B、206C)。基于这样的评估的结果,方法280继续到如图3C所示的以下步骤之一:Method 280 of FIG3C includes aspects of methods 200 and 240 to retrieve a local color gamut definition, thereby facilitating data compression or increasing color depth. In method 280, steps similar to those of methods 200 and 240 are labeled with the same reference numerals. As can be seen in FIG3C, after determining the color gamut characteristics at block 204, method 280 proceeds to block 206 (which includes blocks 206A, 206B, and 206C) by evaluating the conditions described above with reference to block 206B of FIG3A and blocks 206A and 206C of FIG3B for each subframe block 32. Based on the results of such evaluation, method 280 proceeds to one of the following steps as shown in FIG3C:
●在块209处返回条件不适合于使用局部色域定义的指示;• returning an indication at block 209 that the condition is not suitable for use of the local color gamut definition;
●在块208A处检索局部色域定义以增加颜色深度;以及• Retrieving a local color gamut definition at block 208A to increase color depth; and
●在块208D处检索局部色域定义以有利于数据压缩。• Retrieve the local color gamut definition at block 208D to facilitate data compression.
在方法200、240和280的一些实施例中,如果条件不适合于使用局部色域定义,则方法240可简单地在块209处什么都不做(使得图像处理继续接下来的步骤而不选择和应用局部色域定义),而不是在块209处返回指示。In some embodiments of methods 200, 240, and 280, if conditions are not suitable for using a local color gamut definition, method 240 may simply do nothing at block 209 (causing image processing to continue with the next steps without selecting and applying a local color gamut definition), rather than returning an indication at block 209.
应理解,可对图像数据的每个子帧块(或其它部分)执行确定和评估色域特性以及选择局部色域定义的步骤(如以上对于方法200、240和280所描述的)。可对于图像数据的连续帧重复这些方法。It should be understood that the steps of determining and evaluating color gamut characteristics and selecting a local color gamut definition (as described above for methods 200, 240, and 280) may be performed for each subframe block (or other portion) of image data. These methods may be repeated for successive frames of image data.
图2C示出了根据另一实施例的使用局部色域定义对图像数据进行编码的示例方法100A。图2C的方法100A在一些方面与图2A的方法100类似,并且除了对于方法100A的步骤的附图标记附有字母“A”之外,将类似的附图标记用于表示类似的步骤。可对内容图像数据102的每帧(或帧的区域)执行方法100A。FIG2C illustrates an example method 100A for encoding image data using a local color gamut definition according to another embodiment. The method 100A of FIG2C is similar in some respects to the method 100 of FIG2A , and similar reference numerals are used to represent similar steps, except that the reference numerals for the steps of method 100A are appended with the letter "A." The method 100A may be performed on each frame (or region of a frame) of the content image data 102.
方法100A以接收内容图像数据102的帧或帧的区域来开始。在块104A处表征内容图像数据102的内容色域。在块107A处,对在块104A处确定的色域表征进行评估,以确定条件是否适合于对图像数据应用局部色域变换。在块104A和107A处执行的步骤可与在方法100的块104和107处执行的步骤类似。Method 100A begins by receiving a frame or region of a content image data 102. At block 104A, the content color gamut of the content image data 102 is characterized. At block 107A, the color gamut characterization determined at block 104A is evaluated to determine whether conditions are suitable for applying a local color gamut transform to the image data. The steps performed at blocks 104A and 107A may be similar to the steps performed at blocks 104 and 107 of method 100.
如果在块107A处确定条件适合,则方法100A可通过以下方式继续:确定图像数据的平均颜色坐标值,并且基于这样的平均颜色坐标值,对图像数据的剩余颜色坐标值应用局部色域变换。例如,在所示出的方法100A的实施例中,在块106A处,可对图像数据的像素值应用离散余弦变换(DCT),以确定图像数据的DCT系数矩阵的DC系数33(即,DC值)(参见图4)。基于DC系数33,可在块108A处确定局部色域变换。可在块110A处对图像数据应用局部色域变换,以使得DCT系数矩阵中的剩余值(即,AC系数34,参见图4)趋向于随着局部色域变换将颜色坐标值映射到接近DC系数33的新值而平均来说变得更小。因此,在块111A处对变换后的图像数据进行量化时,可将AC系数34中的很多个量化为零,从而有利于在块112A处对图像数据进行压缩。在块110A处的局部色域变换不会影响DC系数33。在某些实施例中,可基于帧内的块(或其它区域)的DC系数或者基于帧内的多个相邻块的DC系数(例如,诸如相邻块的DC系数的平均值)而确定块110A处的局部色域变换。If the conditions are determined to be met at block 107A, method 100A may continue by determining an average color coordinate value for the image data and, based on such average color coordinate value, applying a local color gamut transform to the remaining color coordinate values of the image data. For example, in the illustrated embodiment of method 100A, a discrete cosine transform (DCT) may be applied to the pixel values of the image data at block 106A to determine the DC coefficient 33 (i.e., DC value) of the DCT coefficient matrix of the image data (see FIG. 4 ). Based on the DC coefficient 33, a local color gamut transform may be determined at block 108A. A local color gamut transform may be applied to the image data at block 110A so that the remaining values in the DCT coefficient matrix (i.e., AC coefficients 34, see FIG. 4 ) tend to become smaller, on average, as the local color gamut transform maps the color coordinate values to new values closer to the DC coefficient 33. Consequently, when the transformed image data is quantized at block 111A, many of the AC coefficients 34 may be quantized to zero, thereby facilitating compression of the image data at block 112A. The local color gamut transform at block 110A does not affect the DC coefficient 33. In some embodiments, the local color gamut transform at block 110A may be determined based on the DC coefficient of the block (or other region) within the frame, or based on the DC coefficients of multiple neighboring blocks within the frame (e.g., such as an average of the DC coefficients of the neighboring blocks).
在方法100A中所使用的、用于在块106A处确定DC或平均值以及在块110A处应用局部色域变换的变换不限于离散余弦变换。在其它实施例中,可应用某种其它变换,该变化以确定对于图像数据的DC或平均分量来开始,并且然后对于每个值确定与平均分量的差(或“残差”)。The transform used in method 100A for determining the DC or mean value at block 106A and applying the local color gamut transform at block 110A is not limited to a discrete cosine transform. In other embodiments, some other transform may be applied that begins by determining the DC or mean component for the image data and then determines the difference (or "residual") from the mean component for each value.
为了辅助下游装置对图像数据进行处理和解码,在块114A处,可将元数据116嵌入在图像数据中,或者可连同图像数据一起传送元数据116。元数据116可包括对图像数据应用了局部色域变换的表示。在特定实施例中,元数据116可提供关于用于确定和应用局部色域变换的算法的信息(例如,局部色域变换是基于帧内的单个块的DC系数还是基于帧内的多个相邻块的DC系数而选择的,等等。)。所得到的变换后的、压缩后的处理后图像数据118A被输出到下游装置。To assist downstream devices in processing and decoding the image data, metadata 116 may be embedded in the image data or transmitted along with the image data at block 114A. The metadata 116 may include an indication that a local color gamut transform was applied to the image data. In particular embodiments, the metadata 116 may provide information about the algorithm used to determine and apply the local color gamut transform (e.g., whether the local color gamut transform was selected based on the DC coefficient of a single block within a frame or based on the DC coefficients of multiple adjacent blocks within a frame, etc.). The resulting transformed, compressed processed image data 118A is output to the downstream device.
在其它实施例中,不需要执行方法100A的块104A和107A。在这样的实施例中,可基于子帧块的DC系数和/或周围或附近子帧块的DC系数,对图像数据的每个子帧块(或其它区域)执行局部色域变换。在接收到图像数据的子帧块(或其它区域)时,方法可通过确定对于图像数据的子帧块的DC系数而继续,如在例如方法100A的块106处所描述的那样。在其它实施例中,可基于由例如颜色分级工具生成的、且利用在图像数据中传送的元数据而传输的色域信息,对图像数据的每个子帧块执行局部色域变换。In other embodiments, blocks 104A and 107A of method 100A need not be performed. In such embodiments, a local color gamut transform may be performed on each sub-frame block (or other region) of image data based on the DC coefficient of the sub-frame block and/or the DC coefficients of surrounding or nearby sub-frame blocks. Upon receiving the sub-frame block (or other region) of image data, the method may continue by determining the DC coefficient for the sub-frame block of image data, as described, for example, at block 106 of method 100A. In other embodiments, a local color gamut transform may be performed on each sub-frame block of image data based on color gamut information generated, for example, by a color grading tool and transmitted using metadata transmitted in the image data.
在对图像数据的每个子帧块(或其它区域)执行局部色域变换的某些实施例中,在方法100A的块114A处可能不需要将元数据116编码在图像数据中。例如,下游装置可被配置成通过以下方式来继续:在基于预定算法(例如,基于块的DC系数和/或周围或附近子帧块的DC系数的算法)对图像数据的每个子帧块应用了局部色域变换这一假设下,对图像数据进行解码。In some embodiments where a local color gamut transform is performed on each sub-frame block (or other region) of image data, it may not be necessary to encode metadata 116 in the image data at block 114A of method 100A. For example, a downstream device may be configured to proceed by decoding the image data under the assumption that a local color gamut transform is applied to each sub-frame block of the image data based on a predetermined algorithm (e.g., an algorithm based on the DC coefficient of the block and/or the DC coefficients of surrounding or nearby sub-frame blocks).
图2D示出了可由显示器或其它下游装置执行、以用于对已根据例如图2C的方法100A编码的图像数据进行解码的方法120A的示例实现。可对处理后图像数据118的每个帧或帧的区域来执行方法120A,以准备用于输出到显示器的图像数据。图2D的方法120A在一些方面与图2B的方法120类似,并且除了用于方法120A的步骤的附图标记附有字母“A”之外,将类似的附图标记用于表示类似的步骤。FIG2D illustrates an example implementation of a method 120A that can be performed by a display or other downstream device to decode image data that has been encoded according to, for example, method 100A of FIG2C . Method 120A can be performed on each frame or region of frames of processed image data 118 to prepare the image data for output to the display. Method 120A of FIG2D is similar in some respects to method 120 of FIG2B , and similar reference numerals are used to represent similar steps, except that the reference numerals for the steps of method 120A are appended with the letter "A."
方法120A以接收处理后图像数据118的帧或帧的区域来开始。方法120通过从处理后图像数据118提取元数据116而继续到块122A。在块124A处,对处理后图像数据118进行解压缩。如果在块124B处元数据116表示对图像数据应用了局部色域变换,则在块125A处,从图像数据提取DC系数33(由于其不受在方法100A的块110A处应用的局部变换的影响)。基于这样的DC系数33,可在块125B处确定逆局部色域变换,即,基于DC系数33(对于特定实施例,可选地连同元数据116),下游装置可以确定在方法100A的块108A处确定局部色域变换所用的算法。在块126A处,对图像数据应用逆局部色域变换,以将可应用的局部色域定义的颜色坐标值映射到图像数据格式的颜色坐标值以在显示器上进行再现。在其它实施例中,块126A的变换可从可应用的局部色域定义的颜色坐标值映射到不同的颜色空间(例如,RGB颜色空间)内的颜色坐标值以在显示器上进行再现。Method 120A begins by receiving a frame or region of a frame of processed image data 118. Method 120 continues to block 122A by extracting metadata 116 from the processed image data 118. At block 124A, the processed image data 118 is decompressed. If, at block 124B, the metadata 116 indicates that a local color gamut transform was applied to the image data, then, at block 125A, a DC coefficient 33 is extracted from the image data (since it is unaffected by the local transform applied at block 110A of method 100A). Based on this DC coefficient 33, an inverse local color gamut transform can be determined at block 125B. That is, based on the DC coefficient 33 (optionally in conjunction with the metadata 116, for certain embodiments), a downstream device can determine the algorithm used to determine the local color gamut transform at block 108A of method 100A. At block 126A, an inverse local color gamut transform is applied to the image data to map the color coordinate values of the applicable local color gamut definition to color coordinate values in the image data format for reproduction on a display. In other embodiments, the transform of block 126A may map the color coordinate values of the applicable local color gamut definition to color coordinate values in a different color space (e.g., an RGB color space) for reproduction on a display.
在方法120A的块128A处,可对解码图像数据进行滤波以减少在解码之后可能出现在图像数据中的视觉假象。所得到的滤波后解码图像数据作为输出图像数据130被输出到显示器。At block 128A of method 120A, the decoded image data may be filtered to reduce visual artifacts that may appear in the image data after decoding. The resulting filtered decoded image data is output as output image data 130 to a display.
图6A和图6B分别示出了可用于实现本文中所述的一种或多种方法的编码设备和解码设备140、160。可使用解码设备160对已由编码设备140编码的图像数据进行解码。编码设备140可实现例如方法100(图2A)、100A(图2C)、200(图3A)、240(图3B)和280(图3C)中的一种或多种。解码设备160可实现例如方法120(图2B)和120A(图2D)。6A and 6B illustrate encoding and decoding devices 140 and 160, respectively, that can be used to implement one or more methods described herein. The decoding device 160 can be used to decode image data that has been encoded by the encoding device 140. The encoding device 140 can implement, for example, one or more of the methods 100 ( FIG. 2A ), 100A ( FIG. 2C ), 200 ( FIG. 3A ), 240 ( FIG. 3B ), and 280 ( FIG. 3C ). The decoding device 160 can implement, for example, the methods 120 ( FIG. 2B ) and 120A ( FIG. 2D ).
在所示出的图6A的实施例中,编码设备140包括色域表征和选择单元142。色域表征和选择单元142可被配置成执行例如方法200(图3A)、240(图3B)和280(图3C)中的一种或多种。色域表征和选择单元142可被配置成接收内容图像数据102并且确定或获得内容图像数据102的色域特性。色域表征和选择单元142可有权访问局部色域定义的存储库144。色域表征和选择单元142可执行软件和/或硬件功能以评估内容图像数据102的色域特性。可对图像数据帧的多个子帧块中的每个子帧块执行这样的评估。基于这样的评估,色域表征和选择单元142可从局部色域定义的存储库144选择适当的局部色域定义146以用于对图像数据进行编码。如上所述,局部色域定义146的使用可有利于数据压缩或更精确的颜色再现。In the illustrated embodiment of FIG. 6A , encoding device 140 includes a color gamut characterization and selection unit 142. The color gamut characterization and selection unit 142 may be configured to perform, for example, one or more of methods 200 ( FIG. 3A ), 240 ( FIG. 3B ), and 280 ( FIG. 3C ). The color gamut characterization and selection unit 142 may be configured to receive content image data 102 and determine or obtain color gamut characteristics of the content image data 102. The color gamut characterization and selection unit 142 may have access to a repository 144 of local color gamut definitions. The color gamut characterization and selection unit 142 may execute software and/or hardware functions to evaluate the color gamut characteristics of the content image data 102. This evaluation may be performed for each of a plurality of sub-frame blocks of an image data frame. Based on this evaluation, the color gamut characterization and selection unit 142 may select an appropriate local color gamut definition 146 from the repository 144 of local color gamut definitions for use in encoding the image data. As described above, the use of the local color gamut definition 146 may facilitate data compression or more accurate color reproduction.
可将局部色域定义146连同内容图像数据102一起提供到色域变换单元148。色域变换单元148被配置成将由内容图像数据102指定的颜色坐标映射到局部色域定义的相应颜色坐标,从而得到被提供到编码设备140的压缩单元152的变换后数据150。The local color gamut definition 146 may be provided to a color gamut transform unit 148 along with the content image data 102. The color gamut transform unit 148 is configured to map color coordinates specified by the content image data 102 to corresponding color coordinates of the local color gamut definition, resulting in transformed data 150 that is provided to a compression unit 152 of the encoding device 140.
对于一些图像数据帧或子帧块,可能根据对色域特性的评估而确定条件不适合于使用局部色域定义。在这样的情况下,色域表征和选择单元142使得内容图像数据102被传递到压缩单元152,从而绕过色域变换单元148。For some frames or sub-frame blocks of image data, it may be determined based on an evaluation of the color gamut characteristics that conditions are not suitable for using a local color gamut definition. In such cases, the color gamut characterization and selection unit 142 causes the content image data 102 to be passed to the compression unit 152, thereby bypassing the color gamut conversion unit 148.
压缩单元152可操作用于使用适当的压缩技术(诸如上述压缩算法之一)对其所接收的图像数据进行压缩。所得到的压缩图像数据154被传递到元数据写入器156,元数据写入器156与色域变换单元148通信并且有权访问元数据存储库中的元数据116。基于从色域变换单元148接收的信号,元数据写入器156可对元数据(例如,指定局部色域定义的元数据)进行编码,该元数据将辅助下游装置对元数据进行解码。然后,输出包括元数据116的所得到的处理后图像数据118以传送到下游装置。Compression unit 152 is operable to compress the image data it receives using an appropriate compression technique, such as one of the compression algorithms described above. The resulting compressed image data 154 is passed to metadata writer 156, which is in communication with color gamut conversion unit 148 and has access to metadata 116 in a metadata repository. Based on the signal received from color gamut conversion unit 148, metadata writer 156 can encode metadata (e.g., metadata specifying a local color gamut definition) that will assist downstream devices in decoding the metadata. The resulting processed image data 118, including the metadata 116, is then output for transmission to downstream devices.
图6B示出了可对处理后图像数据118进行接收和解码以在显示器上进行再现的下游装置(即,解码设备160)。在所示出的实施例中,解码设备160包括元数据读取器或提取器162,该元数据读取器或提取器162被配置成从处理后图像数据118提取元数据116。随后将图像数据提供至解压缩单元164以进行解压缩。逆变换单元168接收未压缩数据166和元数据116。受元数据116的引导,逆变换单元168通过对图像数据应用可应用的局部色域变换的逆来对图像数据进行解码。逆变换可将局部色域定义的颜色坐标值映射到图像数据格式的颜色坐标值以在显示器上进行再现。滤波器172对所得到的解码图像数据170进行滤波以减少解码后的视觉假象,并且将图像数据130输出到显示器。FIG6B illustrates a downstream device (i.e., a decoding device 160) that can receive and decode processed image data 118 for reproduction on a display. In the illustrated embodiment, decoding device 160 includes a metadata reader or extractor 162 configured to extract metadata 116 from processed image data 118. The image data is then provided to a decompression unit 164 for decompression. An inverse transform unit 168 receives uncompressed data 166 and metadata 116. Guided by metadata 116, inverse transform unit 168 decodes the image data by applying the inverse of an applicable local color gamut transform to the image data. The inverse transform maps color coordinate values defined by the local color gamut to color coordinate values in an image data format for reproduction on a display. A filter 172 filters the resulting decoded image data 170 to reduce visual artifacts after decoding and outputs the image data 130 to a display.
可实现根据本发明的方法和设备的一些具体方式包括:Some specific ways in which the method and apparatus according to the present invention may be implemented include:
●包括根据本发明的实施例的设备的图像处理芯片;● an image processing chip comprising a device according to an embodiment of the present invention;
●包括本文中所述的解码设备的机顶盒、电视机、计算机监视器、投影仪和/或其它显示器;● a set-top box, television, computer monitor, projector, and/or other display that includes a decoding device as described herein;
●包括本文中所述的编码设备的图像数据源,诸如DVD播放器(例如,蓝光播放器)、视频播放器、摄像装置、移动电话等;A source of image data, such as a DVD player (e.g., a Blu-ray player), a video player, a camera, a mobile phone, etc., including the encoding apparatus described herein;
●包括固件或其它计算机可读指令的物理或非暂态计算机可读介质,这些固件或其它计算机可读指令在被执行时,配置可编程处理器和/或可配置逻辑设备来执行根据本发明的方法;● a physical or non-transitory computer-readable medium including firmware or other computer-readable instructions that, when executed, configure a programmable processor and/or a configurable logic device to perform a method according to the present invention;
●一个或多个中央处理单元(CPU)、一个或多个微处理器、一个或多个现场可编程门阵列(FPGA)、一个或多个专用集成电路(ASIC)、一个或多个图形处理单元(GPU)或其任意组合、或者包括能够执行根据本发明的方法的硬件和/或软件的任意其它适当处理单元;以及one or more central processing units (CPUs), one or more microprocessors, one or more field programmable gate arrays (FPGAs), one or more application specific integrated circuits (ASICs), one or more graphics processing units (GPUs), or any combination thereof, or any other suitable processing unit comprising hardware and/or software capable of performing the methods according to the present invention; and
●包括本文中所述的编码设备的颜色分级工具。• A color grading tool including the encoding device described herein.
此外,本公开提供的技术可配置如下:In addition, the technology provided by this disclosure can be configured as follows:
方案1.一种对图像数据进行编码以传送到下游装置的方法,包括:Solution 1. A method for encoding image data for transmission to a downstream device, comprising:
接收图像数据,所述图像数据具有内容色域;receiving image data, the image data having a content color gamut;
确定所述图像数据的一个或更多个色域特性;determining one or more color gamut characteristics of the image data;
至少部分基于所述色域特性,确定用于所述图像数据的局部色域定义;以及determining a local color gamut definition for the image data based at least in part on the color gamut characteristic; and
对所述图像数据应用色域变换,其中,将由所述图像数据指定的颜色坐标映射到所述局部色域定义的相应颜色坐标。A color gamut transform is applied to the image data, wherein color coordinates specified by the image data are mapped to corresponding color coordinates defined by the local color gamut.
方案2.根据1所述的方法,包括:在应用所述色域变换之后对所述图像数据进行压缩。Option 2. The method according to claim 1, comprising: compressing the image data after applying the color gamut transformation.
方案3.根据1或2中任一项所述的方法,包括:将与所述局部色域定义对应的元数据编码在所述图像数据中。Option 3. The method according to any one of 1 or 2 includes: encoding metadata corresponding to the local color gamut definition in the image data.
方案4.根据1至3中任一项所述的方法,其中,所述图像数据包括图像数据的子帧块。Option 4. A method according to any one of 1 to 3, wherein the image data includes subframe blocks of image data.
方案5.根据4所述的方法,其中,所述色域特性包括表示所述子帧块的平均颜色的值。Option 5. The method according to claim 4, wherein the color gamut characteristic includes a value representing an average color of the sub-frame block.
方案6.根据5所述的方法,其中,对所述子帧块应用离散余弦变换DCT以提供DCT系数矩阵,并且所述色域特性包括所述DCT系数矩阵的DC值。Option 6. The method according to claim 5, wherein a discrete cosine transform (DCT) is applied to the subframe block to provide a DCT coefficient matrix, and the color gamut characteristic includes a DC value of the DCT coefficient matrix.
方案7.根据4至6中任一项所述的方法,其中,所述色域特性包括所述子帧块的最小颜色值和最大颜色值。Option 7. The method according to any one of Claims 4 to 6, wherein the color gamut characteristics include a minimum color value and a maximum color value of the subframe block.
方案8.根据4至7中任一项所述的方法,其中,所述色域特性包括所述内容色域的面积。Option 8. A method according to any one of Claims 4 to 7, wherein the color gamut characteristic includes an area of the content color gamut.
方案9.根据4至7中任一项所述的方法,其中,所述色域特性包括所述内容色域的体积。Option 9. A method according to any one of Claims 4 to 7, wherein the color gamut characteristic comprises a volume of the content color gamut.
方案10.根据4至9中任一项所述的方法,其中,所述色域特性包括图像数据的相邻子帧块的颜色特性。Option 10. The method according to any one of 4 to 9, wherein the color gamut characteristics include color characteristics of adjacent sub-frame blocks of image data.
方案11.根据1至10中任一项所述的方法,其中,所述图像数据具有如下的图像数据格式:该图像数据格式具有比Rec.709色域宽的色域。Option 11. The method according to any one of items 1 to 10, wherein the image data has an image data format having a color gamut wider than a Rec.709 color gamut.
方案12.根据1至11中任一项所述的方法,其中,所述内容色域是所述图像数据格式的色域的子集。Option 12. A method according to any one of 1 to 11, wherein the content color gamut is a subset of the color gamut of the image data format.
方案13.根据12所述的方法,其中,所述局部色域定义限定所述内容色域内的颜色的范围。Option 13. The method of claim 12, wherein the local color gamut definition limits the range of colors within the content color gamut.
方案14.根据13所述的方法,其中,所述局部色域定义具有与所述图像数据格式相同的位深。Option 14. The method according to 13, wherein the local color gamut definition has the same bit depth as the image data format.
方案15.根据1至14中任一项所述的方法,其中,评估色域特性包括将由所述图像数据指定的颜色坐标变换到新的颜色空间。Option 15. A method according to any one of claims 1 to 14, wherein evaluating the color gamut characteristics includes transforming the color coordinates specified by the image data into a new color space.
方案16.根据1至15中任一项所述的方法,其中,应用所述色域变换包括将由所述图像数据指定的颜色坐标变换到新的颜色空间。Option 16. A method according to any one of claims 1 to 15, wherein applying the color gamut transform includes transforming the color coordinates specified by the image data into a new color space.
方案17.根据16所述的方法,其中,所述色域变换是非线性的。Option 17. The method according to 16, wherein the color gamut transformation is nonlinear.
方案18.一种对图像数据进行解码以在显示器上进行再现的方法,包括:Embodiment 18. A method of decoding image data for rendering on a display, comprising:
从所述图像数据提取元数据,所述元数据表示局部色域定义;extracting metadata from the image data, the metadata representing a local color gamut definition;
对所述图像数据进行解压缩;以及decompressing the image data; and
对所述图像数据应用逆色域变换,其中,所述逆色域变换将所述局部色域定义的颜色坐标值映射到图像数据格式的颜色坐标值。An inverse color gamut transform is applied to the image data, wherein the inverse color gamut transform maps color coordinate values defined by the local color gamut to color coordinate values in an image data format.
方案19.根据18所述的方法,包括:在应用所述逆色域变换之后对所述图像数据进行滤波,以减少视觉假象的出现。Option 19. The method according to 18, comprising: filtering the image data after applying the inverse color gamut transform to reduce the occurrence of visual artifacts.
方案20.一种对图像数据进行解码以在显示器上进行再现的方法,包括:Embodiment 20. A method of decoding image data for rendering on a display, comprising:
确定所述图像数据的一个或更多个色域特性;determining one or more color gamut characteristics of the image data;
基于所述色域特性,确定用于对所述图像数据进行编码的局部色域定义;determining a local color gamut definition for encoding the image data based on the color gamut characteristic;
对所述图像数据应用逆色域变换,其中,所述逆色域变换将所述局部色域定义的颜色坐标值映射到图像数据格式的颜色坐标值。An inverse color gamut transform is applied to the image data, wherein the inverse color gamut transform maps color coordinate values defined by the local color gamut to color coordinate values in an image data format.
方案21.根据20所述的方法,其中,所述色域特性包括所述图像数据的DC值。Option 21. The method according to 20, wherein the color gamut characteristic includes a DC value of the image data.
方案22.一种用于对图像数据进行编码的设备,包括:Solution 22. A device for encoding image data, comprising:
色域表征和选择单元,被配置成:The color gamut characterization and selection unit is configured to:
接收图像数据;receiving image data;
确定所述图像数据的色域特性;以及determining a color gamut characteristic of the image data; and
基于对所述色域特性的评估,从存储库选择局部色域定义;以及selecting a local color gamut definition from a repository based on the evaluation of the color gamut characteristics; and
色域变换单元,被配置成:The color gamut conversion unit is configured to:
接收所述图像数据和所述局部色域定义;以及receiving the image data and the local color gamut definition; and
通过将由所述图像数据指定的颜色坐标映射到所述局部色域定义的相应颜色坐标,来应用局部色域变换。A local color gamut transform is applied by mapping color coordinates specified by the image data to corresponding color coordinates defined by the local color gamut.
方案23.根据22所述的设备,包括:压缩单元,被配置成对由所述色域变换单元变换后的图像数据进行接收和压缩。Solution 23. The device according to 22 comprises: a compression unit configured to receive and compress the image data transformed by the color gamut transformation unit.
方案24.根据22或23中任一项所述的设备,包括:Solution 24. The device according to any one of 22 or 23, comprising:
元数据写入器,被配置成将与所述局部色域定义对应的元数据编码在所述图像数据中。A metadata writer is configured to encode metadata corresponding to the local color gamut definition in the image data.
方案25.一种用于对图像数据进行解码的设备,包括:Solution 25. A device for decoding image data, comprising:
元数据提取器,被配置成从所述图像数据提取元数据,所述元数据表示局部色域定义;a metadata extractor configured to extract metadata from the image data, the metadata representing a local color gamut definition;
解压缩单元,被配置成对所述图像数据进行解压缩;以及a decompression unit configured to decompress the image data; and
逆变换单元,被配置成对所述图像数据应用逆色域变换,其中,所述逆色域变换将所述局部色域定义的颜色坐标值映射到图像数据格式的颜色坐标值。An inverse transform unit is configured to apply an inverse color gamut transform to the image data, wherein the inverse color gamut transform maps color coordinate values defined by the local color gamut to color coordinate values in an image data format.
方案26.根据25所述的设备,包括:滤波单元,被配置成对逆变换后的图像数据进行滤波,以减少视觉假象的出现。Option 26. The device according to option 25, comprising: a filtering unit configured to filter the inverse-transformed image data to reduce the occurrence of visual artifacts.
方案27.一种用于对图像数据进行解码的设备,包括:Solution 27. A device for decoding image data, comprising:
局部色域定义单元,被配置成:评估所述图像数据的色域特性,并且基于所述色域特性,确定用于对所述图像数据进行编码的局部色域定义;a local color gamut definition unit configured to: evaluate a color gamut characteristic of the image data, and determine a local color gamut definition for encoding the image data based on the color gamut characteristic;
解压缩单元,被配置成对所述图像数据进行解压缩;以及a decompression unit configured to decompress the image data; and
逆变换单元,被配置成对所述图像数据应用逆色域变换,其中,所述逆色域变换将所述局部色域定义的颜色坐标值映射到图像数据格式的颜色坐标值。An inverse transform unit is configured to apply an inverse color gamut transform to the image data, wherein the inverse color gamut transform maps color coordinate values defined by the local color gamut to color coordinate values in an image data format.
方案28.一种存储有计算机可执行指令的非暂态计算机可读介质,所述计算机可执行指令当被加载在处理器上时,使得所述处理器执行方法1至21中任一项的步骤。Embodiment 28. A non-transitory computer-readable medium storing computer-executable instructions, wherein when the computer-executable instructions are loaded on a processor, the processor is caused to perform the steps of any one of methods 1 to 21.
尽管以上讨论了多个示例性方面和实施例,但是本领域技术人员将意识到这些示例性方面和实施例的某些变型、置换、添加及子组合。因此,旨在使下面所附权利要求以及以下给出的权利要求被理解为包括在其真实精神和范围内的所有这样的变型、置换、添加和子组合。Although various exemplary aspects and embodiments have been discussed above, those skilled in the art will appreciate certain variations, permutations, additions, and sub-combinations of these exemplary aspects and embodiments. It is therefore intended that the following appended claims, as well as the claims set forth below, be interpreted as including all such variations, permutations, additions, and sub-combinations as are within their true spirit and scope.
Claims (19)
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| US61/394,294 | 2010-10-18 |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| HK1227202A1 HK1227202A1 (en) | 2017-10-13 |
| HK1227202B true HK1227202B (en) | 2019-10-11 |
Family
ID=
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN105915874B (en) | The method and apparatus and decoder encoded to vision signal | |
| RU2710888C2 (en) | Method and device for colour picture encoding and decoding | |
| RU2710291C2 (en) | Methods and apparatus for encoding and decoding colour hdr image | |
| US10672148B2 (en) | Compressing and uncompressing method for high bit-depth medical gray scale images | |
| RU2710873C2 (en) | Method and device for colour image decoding | |
| CN106464923B (en) | Method and apparatus for signaling picture/video format | |
| EP3185558A1 (en) | Method, apparatus and system for determining a luma value | |
| CN107852501A (en) | Method and apparatus for encoding both an HDR image and an SDR image obtained from said HDR image using a color mapping function | |
| US10205967B2 (en) | Extended YCC format for backward-compatible P3 camera video | |
| TW201601518A (en) | Method and device for signaling in a bitstream a picture/video format of an LDR picture and a picture/video format of a decoded HDR picture obtained from said LDR picture and an illumination picture | |
| HK40096551A (en) | Image processing methods and apparatus using localized gamut definitions | |
| HK1227202B (en) | Methods of encoding and decoding image data | |
| HK1227201B (en) | Method and apparatus for decoding image data | |
| HK1227590B (en) | Method and apparatus for decoding image data and encoding a video signal | |
| HK40036367A (en) | Image processing methods and apparatus using localized gamut definitions | |
| HK40036367B (en) | Image processing methods and apparatus using localized gamut definitions | |
| HK1227201A1 (en) | Method and apparatus for decoding image data | |
| HK1227591B (en) | Method and apparatus for encoding a video signal, and decoder | |
| HK1227591A1 (en) | Method and apparatus for encoding a video signal, and decoder | |
| HK1227590A1 (en) | Method and apparatus for decoding image data and encoding a video signal | |
| HK1227202A1 (en) | Methods of encoding and decoding image data | |
| TW201601524A (en) | Method and device for signaling in a bitstream a picture/video format of an LDR picture and a picture/video format of a decoded HDR picture obtained from said LDR picture and an illumination picture | |
| EP4483576A1 (en) | Methods and systems for high bit depth and high dynamic range image compression |