A gamut compressing device for compressing video data in a first gamut into video data in a second gamut. The device includes a compression unit compressing a value of color data in the first gamut, not contained in the second gamut, into a value of color data contained in the second gamut through a predetermined compression calculation. A gradation generating unit generates gradation such that a plurality of values of color data having the same value as a result of the compression become different in the second gamut.
|
7. A gamut compressing device for compressing video data in a first gamut into video data in a second gamut, comprising:
a compression unit compressing a value of color data in the first gamut, not contained in the second gamut, into a value of color data contained in the second gamut through a predetermined compression calculation; and
a gradation generating unit generating gradation so that a plurality of values of color data having the same value as a result of the compression in the compressing step become different in value in the second gamut,
wherein the gradation generating unit modifies the plurality of pieces of color data having the same value to be different in value by enhancing one of a color component and a color attribute having a maximum difference in the state thereof prior to compressing process performed by the compression unit so that the maximum difference is enlarged.
6. A gamut compressing device for compressing video data in a first gamut into video data in a second gamut, comprising:
compression means for compressing a value of color data in the first gamut, not contained in the second gamut, into a value of color data contained in the second gamut through a predetermined compression calculation; and
gradation generating means for generating gradation so that a plurality of values of color data having the same value as a result of the compression in the compressing step become different in value in the second gamut,
wherein the gradation generating means modifies the plurality of pieces of color data having the same value to be different in value by enhancing one of a color component and a color attribute having a maximum difference in the state thereof prior to compressing process performed by the compression means so that the maximum difference is enlarged.
1. A gamut compression method for compressing video data in a first gamut into video data in a second gamut, comprising the steps of:
compressing a value of color data in the first gamut, not contained in the second gamut, into a value of color data contained in the second gamut through a predetermined compression calculation, utilizing a gamut compression device; and
generating gradation in a manner such that a plurality of pieces of color data having the same value as a result of the compression in the compressing step become different in value in the second gamut, utilizing a color gradation generator,
wherein the gradation generating step comprises modifying the plurality of pieces of color data having the same value to be different in value by enhancing one of a color component and a color attribute having a maximum difference in the state thereof prior to the compressing step so that the maximum difference is enlarged.
2. The gamut compression method according to
wherein the gradation generating step comprises:
modifying the plurality of pieces of color data having the same value in value in the state thereof prior to the compressing step, and
the compressing step is repeated with the modified color data so that the values of the color data become different subsequent to the compressing step.
3. The gamut compression method according to
wherein the gradation generating step comprises:
modifying the plurality of pieces of color data having the same value in value subsequent to the compressing step so that the values of the color data become different.
4. The gamut compression method according to
compressing the video data in the first gamut into the video data in the second gamut by referencing a lookup table that represents mapping between the color data value in the first gamut and the color data value in the second gamut,
the lookup table obtained through the compressing step and the gradation generating step.
5. The gamut compression method according to
a table generating step of generating a lookup table that represents mapping between the color data value in the first gamut and the color data value in the second gamut, the lookup table obtained through the compressing step and the gradation generating step, wherein the video data in the first gamut is compressed into the video data in the second gamut by referencing the lookup table generated in the table generating step.
|
The present invention contains subject matter related to Japanese Patent Application JP 2005-260699 filed in the Japanese Patent Office on Sep. 8, 2005, the entire contents of which are incorporated herein by reference.
1. Field of the Invention
The present invention relates to a gamut compression method, a gamut compression device, and a program for performing appropriate color reproduction between different types of devices or between different types of media for use in a color management system.
2. Description of the Related Art
To reproduce color among different types of devices and different types of media, a difference in gamut between input and output devices needs to be corrected. The technique for this process is referred to as a color gamut compression. For example, there are a variety of types of display output devices including a cathode ray tube (CRT), a projector, and a liquid-crystal panel. The projectors include various subtypes such as DLP projector and SXRD projector, and the liquid-crystal panels include a subtype such as LED backlight panel. These types have different color gamuts thereof.
For example,
The reproducible color gamut is different from device to device. When a video signal is displayed on a given display output device, the video signal needs to be corrected in accordance with the display output device.
To correct difference in gamut, in widely accepted practice, signal values unique to device and media, such as R, G and B values, are converted into a device-independent display color system such as L*a*b color space standardized by Commission Internationale de I'Ecalairage (CIE), and compression is performed on the device-independent color system.
The color gamut compression is mainly divided into two major processes, namely, compression technique and clipping technique ad disclosed in the paper entitled “The Fundamentals of Gamut Mapping: A Survey”, JOURNAL OF IMAGING SCIENCE AND TECHNOLOGY, Volume 45, Number 3, May/June 2001, authored by Jan Morovic and M. Ronnier Luo.
The compression technique is to compress all colors. More specifically, when a first gamut is compressed into a second gamut, color conversion is performed so that all colors contained in the first gamut are contained in the second gamut. The compression technique provides the advantages that relative color relationship remains unchanged and that gradation expression is maintained. On the other hand, the compression technique has the disadvantage that a color that can be reproduced faithfully in the second gamut on a reproduction destination device, namely, a color needing no compression is also compressed.
In contrast, in the clipping technique, colors contained in the second gamut, out of the colors contained in the first gamut, namely, colors that can be reproduced faithfully on a reproduction destination device are reproduced (without being compressed), and only ones that cannot be reproduced, namely, only ones not contained in the gamut of the reproduction destination device are compressed.
The clipping technique has the advantage that the reproducible colors are faithfully reproduced. However, the disadvantage of the clipping process is that gradation expression is not sufficient because many compressed colors outside the gamut become the same.
A technique of using a lookup table (hereinafter referred to as LUT) for deriving a color data value in the second gamut as an output value from a color data value in the first gamut as an input value is effective. The LUT created in the known clipping technique causes the output values responsive to a plurality of input values to be the same, and provides insufficient gradation.
The advantage of the clipping technique over the compression technique in the field of the color compression field is reported in the paper entitled “The Fundamentals of Gamut Mapping: A Survey”, JOURNAL OF IMAGING SCIENCE AND TECHNOLOGY, Volume 45, Number 3, May/June 2001, authored by Jan Morovic and M. Ronnier Luo. If the gradation expression is maintained in the clipping technique, the clipping technique can become a very effective gamut compression technique.
It is thus desirable to provide an effective gamut compression technique that maintains gradation expression while performing the gamut compression in the clipping technique.
In accordance with one embodiment of the present invention, a gamut compression method for compressing video data in a first gamut into video data in a second gamut, includes the steps of compressing a value of color data in the first gamut, not contained in the second gamut, into a value of color data contained in the second gamut through a predetermined compression calculation, and generating gradation in a manner such that a plurality of values of color data having the same value as a result of the compression in the compressing step become different in value in the second gamut.
The gradation generating step may include modifying the plurality of pieces of color data having the same value to be different in value by enhancing one of a color component and a color attribute having a maximum difference in the state thereof prior to the compressing step so that the maximum difference is enlarged.
The gradation generating step may include modifying the plurality of pieces of color data having the same value in value in the state thereof prior to the compressing step, and the compressing step may be repeated with the modified color data so that the values of the color data become different subsequent to the compressing step.
The gradation generating step may include modifying the plurality of pieces of color data having the same value in value subsequent to the compressing step so that the values of the color data become different.
The gamut compression method may further includes compressing the video data in the first gamut into the video data in the second gamut by referencing a lookup table that represents mapping between the color data value in the first gamut and the color data value in the second gamut, the lookup table obtained through the compressing step and the gradation generating step.
In accordance with another embodiment of the present invention, a program for causing an image processing apparatus to perform the steps of compressing a value of color data in the first gamut, not contained in the second gamut, into a value of color data contained in the second gamut through a predetermined compression calculation, and generating gradation in a manner such that a plurality of values of color data having the same value as a result of the compression in the compressing step become different in value in the second gamut.
The gradation generating step may include modifying the plurality of pieces of color data having the same value to be different in value by enhancing one of a color component and a color attribute having a maximum difference in the state thereof prior to the compressing step so that the maximum difference is enlarged.
The program may cause the image processing apparatus to perform a table generating step of generating a lookup table that represents mapping between the color data value in the first gamut and the color data value in the second gamut, the lookup table obtained through the compressing step and the gradation generating step.
In accordance with another embodiment of the present invention, a gamut compressing device for compressing input video data in a first gamut into a second gamut to obtain output data includes a lookup table unit for deriving a color data value in the second gamut from a color data value in the first gamut, and a color conversion unit for obtaining output image data in the second gamut by referencing the lookup table. The lookup table unit compresses a value of color data in the first gamut, not contained in the second gamut, into a value of color data contained in the second gamut through a predetermined compression calculation, and performs a gradation process to generate gradation in a manner such that a plurality of values of color data having the same value as a result of the compression in the compressing step become different in value in the second gamut. The lookup table unit thus generates table data representing mapping between the color data value in the first gamut and the color data value in the second gamut.
In the gradation generation process for generating the lookup table, the plurality of pieces of color data having the same value are set to be different in value by enhancing one of a color component and a color attribute having a maximum difference in the state thereof prior to the compressing step so that the maximum difference is enlarged. The gamut compression technique of one embodiment of the present invention is based on the clipping technique for compressing the value of color data in the first gamut, not contained in the second gamut, into the value of color data contained in the second gamut through the predetermined compression calculation. Through the clipping technique, the compression result of the color data value is accounted for in the lookup table (LUT), and color data of an actually input vide signal is obtained by referencing the LUT.
In accordance with the clipping technique, a plurality of pieces of color data can become the same subsequent to the compression, thereby destroying gradation. To maintain gradation, the plurality of pieces of color data that have the same value subsequent to the compression are modified to be different in value in the second gamut.
If a plurality of colors are compressed into a single color in the clipping compression process, a color component or a color attribute having a maximum difference prior to the compression is enhanced to effectively express gradation.
The “color component” refers to any of the values of red (R), green (G), and blue (B). The “color attribute” refers to any of the values of a, b, C, and H. L represents lightness, C represents chroma saturation, and H represents hue. Further, a and b are the value of L*a*b* color specification system, and combination of a and b represents all hues. The a value represents the chroma saturation of magenta to green, and the b value represents the chroma saturation of yellow to blue.
In accordance with embodiments of the present invention, gradation is maintained through the gamut compression using the clipping technique. More specifically, a color that can be reproduced in the output gamut is faithfully reproduced by skipping compression, and a color outside the output gamut, even if compressed, can be expressed in gradation.
When the LUT for use in gamut compression is generated using the color compression method and program in accordance with embodiments of the present invention, all output values of the LUT can be made different. The LUT is effectively used.
Video sources 51 through 54 of
To cause a monitor 58 to display the video data stored on the media/server system 55, the video data is gamut compressed by CMS 57 and then supplied to the monitor 58. In this case, gamut compression is performed in a manner such that the video of in the gamut unique to each of the video sources 52, 53 and 54 matches a gamut of the monitor 58.
The editing system 56 performs a variety of editing processes on the video data supplied from a video source and stores the editing results onto a master medium. For example, a data stream is created as a video content through an editing process. Master media of the video content are thus created.
A monitor 60 monitors video at each point of time in a pre-editing phase, in the middle of editing, and a post-editing phase in the editing system 56. The CMS 59 performs the gamut compression, thereby converting the video data used in the editing system 56 into video data in a gamut reproducible on the monitor 60, and providing the monitor 60 with the converted video data.
The video data stored on master media 61 may be output from a variety of output devices or stored on a variety of media.
Each of output devices 66 and 67 may be one of a projector, a LCD display device, a film recorder, and a television device. The output devices 66 and 67 may be not only a moving image display device and a recording device but also a printer device.
Each of media 68 and 69 may one of package medium, such as digital versatile disk (DVD) and a blu-ray disk, a tape medium, a hard disk drive (HDD), and a solid-state memory medium.
When the video data stored on the master media 61 is output to the output devices 66 and 67 for display or printing, the CMS 62 and the CMS 63 may perform the gamut conversion in accordance with the output devices 66 and 67.
When the video data recorded on the master media 61 is recorded onto the media 68 and 69, the CMS's 64 and 65 perform gamut compression.
With the gamut compression performed by the system of
The gamut compression device 1 of
As shown in
The LUT generator 30, external to the gamut compression device 31, may be a general-purpose image processing apparatus generating the LUT in accordance with a LUT generating program or a dedicated apparatus generating the LUT for gamut compression. The generated LUT may be transmitted to the gamut compression device 31 in a communication process. The LUT generator 30 and the gamut compression device 31 can communicate with each other using wired or wireless communication. The generated LUT generated by the LUT generator 30 is stored onto a predetermined recording medium, and then transferred to the gamut compression device 31 via the recording medium.
For example, each of the CMS's 57, 69, 62, 63, 64, and 65 of
In each case of
The LUT maps the color data in the first gamut to the color data in the second gamut when the value of color data in the first gamut, not contained in the second gamut, is converted into the color data value contained in the second gamut through predetermined compression calculation in the clipping process. A plurality of pieces of color data having the same value subsequent to the compression are made different in the second gamut through gradation process. The LUT includes table data that maps the first color data value in the first gamut to the color data value in the second gamut.
With the LUT generated by the LUT generator 2 or the LUT generator 30, each of the color converters 3 and 32 simply references the LUT in response to input RGB data for output RGB data. In this way, the gamut compression is performed using the clipping technique with gradation maintained.
The structure of the gamut compression device 1 is described below with reference to
The gamut compression device 1 includes an arithmetic unit 10, a gamut database 11, a memory 12, an input unit 14, and an output unit 15.
The arithmetic unit 10 performs an arithmetic process as the LUT generator 2 and the color converter 3 of
The gamut database 11 stores information concerning the gamut of each device.
The memory 12 is composed of memory areas such as of a read-only memory (ROM), a random-access memory (RAM), and a non-volatile memory. The ROM area stores programs and process coefficients of the arithmetic process of the arithmetic unit 10. The programs include a program of a LUT generation process defining a process operation of the LUT generator 2, and a program of a color conversion process using the LUT defining the process of the color converter 3. The RAM area in the memory 12 serves as a working area for the arithmetic process. The non-volatile memory area stores the LUT generated in the process of the LUT generator 2 in the arithmetic unit 10.
The input unit 14 receives the video data to be subjected to the gamut compression. The input unit 14 transfers the RGB value of the input video data to the arithmetic unit 10.
The output unit 15 outputs the video data of the RGB value converted by the color converter 3 in the arithmetic unit 10 to an external device such as a monitor.
The LUT generator 2, the color converter 3, and a memory interface 13 in the arithmetic unit 10 are implemented using software or hardware.
The LUT generator 2 includes, as software functional blocks, a converter 21, a gamut boundary determiner 22, a gamut compressor 23, a color gradation generator 24, and a memory controller 25.
The converter 21 performs a conversion process between RGB values, Lab values, and LCH values.
L value (lightness value), value a, and value b are obtained based on the RGB values from the following equation (1):
where Xn, Yn, and Zn are tristimulus values of a light source, and (Xn, Yn, Zn)=(95.04, 100.00, 108.89) in the case of standard illuminant D65.
C value (chroma saturation), and H value (hue) in the LCH are determined from the a value and the b value using the following equation (2):
C=√{square root over (a2+b2)}
H=arctan(b/a) Equation (2)
In the process of the LUT generator 2, the RGB value is converted into the LCH value, and the LCH value is converted into the RGB value. In accordance with equations (1) and (2), the RGB values are converted into the LCH values via the Lab values. Conversely, the LCH values are converted into the RGB values through inverse operation.
In the LUT generation process to be discussed later, the gamut boundary determiner 22 converts input RGB values in an input gamut into LCH values, converts the LCH values into output RGB values, and then determines whether the output RGB values fall within an output gamut.
The gamut compressor 23 performs a compression operation in a predetermined arithmetic process on the output RGB values that the gamut boundary determiner 22 has determined to be outside the output gamut so that the output RGB values fall within the output gamut. In one example, an operation of ΔE94 color difference equation defined by CIE, as represented by equation (3) is performed.
Instead of equation (3), another color difference equation, such as equation (4), may also be acceptable:
ΔE*=√{square root over ((ΔL*)2+(Δa*)2+(Δb*)2)}{square root over ((ΔL*)2+(Δa*)2+(Δb*)2)}{square root over ((ΔL*)2+(Δa*)2+(Δb*)2)} Equation (4)
The color gradation generator 24 processes a plurality of pieces of color data becoming the same in value subsequent to the compression of the gamut compressor 23 so that the plurality of pieces of color data become different in value in the output gamut. The gamut boundary determiner 22 measures the boundary of the output gamut for each of the RGB values and the gamut compressor 23 compresses the RGB values determined to be outside the output gamut. This operation means the gamut compression in the clipping technique. A plurality of RGB values that have undergone the compression operation may happen to be the same or a compressed RGB value and an uncompressed RGB value (in other words, an RGB value determined to be within the output gamut) may happen to be the same. The color gradation generator 24 modify the output RGB values happening to be same into different values in order to maintain gradation.
The memory controller 25 reserves a memory area in the memory 12 for the LUT generation process, generates an LUT skeleton, and overwrites data.
The LUT generator 2 thus constructed accesses one of the gamut database 11 and the memory 12 via the memory interface 13.
The color converter 3 captures, via the memory interface 13, the LUT generated in the process of the LUT generator 2. The color converter 3 converts input RGB values supplied by the input unit 14 into the output RGB values by referencing the LUT, and supplies the output RGB values to the output unit 15.
The gamut compression process executed by the gamut compression device 1 thus constructed is described below.
An image created to be reproduced on a projector device might be reproduced on a CRT. The gamut of the projector device is typically wider than the gamut of the CRT generally defined in SRGB or ITU-R709.
The gamut of the projector device is the first gamut, namely, the input gamut in the gamut compression process. The gamut of the CRT is the second gamut, namely, the output gamut in the color compression process.
When the gamut compression is performed so that the image created to be reproduced on the projector device may be actually reproduced on the CRT, a reproducible color contained in the input gamut (gamut of the projector device) but not contained in the output gamut (gamut of the CRT) is compressed so that that color is reproducible on the CRT.
In the flow of gamut compression process, a color reproducible in the input gamut is mapped to device-independent CIELAB color space. A color mapped outside the CRT gamut in the device-independent CIELAB color space is compressed into a color within the CRT gamut.
The operation of one of the color difference equations (3) and (4) is performed as the compression process. To compress a color providing a minimum color difference, the use of a color difference equation taking into consideration non-linearity in the CIELAB color space, such as equation (4) as the ΔE94 color difference equation, is effective.
A plurality of colors may be compressed into the same color. Since these colors are shown as the same color on a reproduction device (such as the CRT), gradation disappears. To overcome this drawback, the present embodiment modifies the color data so that a color component or attribute, having a maximum difference, prior to the compression is enhanced.
The color component refers to one of the R, G, or B values, and the attribute refers to one of L, C and H values as three attributes of the human vision.
The concept of this embodiment is described below with reference to
As shown in
Each of the colors I and II in the input gamut is acquired as a target to be compressed into the output gamut (steps S1-1 and S2-1)
The color I as the RGB values is converted into the LCH values (step S1-2). The color II as the RGB values is converted into the LCH values (step S2-2).
As a result of converting the color I into the LCH values, the L value, the C value, and the H value are 50, 50, and 10, respectively (step S1-3). As a result of converting the color II into the LCH values, the L value, the C value, and the H value are 50, 50, and 11, respectively (step S2-3).
The LCH values of each of the colors I and II are compressed in accordance with the above equation (3) (step S1-4 and S2-4).
As a result of compression operation, the L value, the C value, and the H value of the color I are 49, 49, and 10, respectively (step S1-5). As a result of compression operation, the L value, the C value, and the H value of the color II are 49, 49, and 10, respectively (step S2-5). More specifically, the compression of the colors I and II into the output gamut results in the same color in the output gamut. This means that gradation disappears in the output gamut.
A process to gain gradation now starts. The LCH values prior to the compression (steps S1-3 and S2-3) are recognized to detect, from among the other attributes, attributes that cause the largest difference and the LCH values prior to compression are modified to enhance the distribute difference (steps S1-6 and S2-6).
Since the largest difference is found in the H value from among the LCH values prior to compression (the values in steps S1-3 and S2-3), the uncompressed LCH values are modified to enhance the H value difference. As a result, the uncompressed LCH values of the color I are modified to be 50, 50, and 9 (step S1-7), and the uncompressed LCH values of the color II are modified to be 50, 50, and 12 (step S2-7).
The LCH values of the modified colors I and II are compressed again (steps S1-8 and S2-8).
As a result of compression operation, the L value, the C value and the H value of the color I become 49, 49, and 9, respectively (step S1-9), and the L value, the C value and the H value of the color II become 49, 49, and 11, respectively (step S2-9). More specifically, the colors I and II are compressed into different colors in the output gamut. This means that the color gradation of the colors I and II is maintained in the output gamut.
The compressed LCH values of the color I and the color II are converted to respective RGB values (steps S1-10 and S2-10).
The converted RGB values are output RGB values, namely, the color I′ and the color II′ obtained as a result of compression process (steps S1-11 and S2-11).
The compression process is performed with the RGB values converted into the LCH values herein. Alternatively, the compression process may be performed on Lab values. The color attribute difference is enhanced as the LCH values. Alternatively, a difference in the Lab values may be enhanced or a difference in the color component (RGB values) may be enhanced. It is important that the output RGB values of the colors I′ and II′ be different.
As understood from the color I and the color II of
To make the plurality of pieces of color data different in value, the compression process is performed on the plurality of color data having the same value with the uncompressed value thereof modified. The compressed color data values become different.
A specific example of the gamut compression process based on the concept is described below.
The process to be executed by the LUT generator 2 is described below with reference to
Steps F101 and F102 are performed by the memory controller 25 in the memory access function thereof.
Steps F103, F104, and F116 are performed by the converter 21 in the conversion function thereof and by the memory controller 25 in the memory access function thereof.
Steps F105, F106, F107, and F108 are performed by the gamut boundary determiner 22 in the determination function thereof and by the memory controller 25 in the memory access function thereof.
Step F109 is performed by the gamut compressor 23 in the compression calculation function thereof and by the memory controller 25 in the memory access function thereof.
Steps F110, F111, F112, F113, F114, and F115 are performed by the color gradation generator 24 in the gradation generation function thereof and by the memory controller 25 in the memory access function thereof.
In the process of
The LUT generator 2 then creates a skeleton of a three-dimensional LUT (hereinafter referred to as 3DLUT) in the RAM area of the memory 12 in step F102. The LUT generator 2 determines the number of segments as the 3DLUT while six 3DLUTs having the same skeleton, namely, LUT #1, . . . , LUT #6 as shown in
The number of segments of the 3DLUT may be determined dependent on the system, for example, may be 9×9×9, 17×17×17, 33×33×33, or the like.
In step F103, the LUT generator 2 converts all RGB values (input RGB values) in the input gamut into LCH values, and enters the LCH values to the lattice points in the LUT #1.
In step F104, the LCH values at the lattice points of the LUT #1 are converted into the RGB values in the output gamut, and the RGB values in the output gamut are input to lattice points of the LUT #2. As shown in
The LUT generator 2 performs processes in steps F105 and F107 in parallel. More specifically, in step F105, the LUT generator 2 extracts a lattice point having the RGB value thereof falling within the range of the output gamut in connection with the RGB values of the lattice points of the LUT #2. In step F107, the LUT generator 2 extracts a lattice point having the RGB value thereof falling outside the range of the output gamut.
If all of the R value, the G value, and the B value fall within a range of 0.0 to 1.0, those RGB values are determined as falling within the range of the output gamut. If any one of the R value, the G value, and the B value falls outside the range of 0.0 to 1.0, the RGB values are determined as falling outside the range of the output gamut.
The within/outside determination of the output gamut is performed on each of the RGB values at the lattice points. As shown in
In step F105, the LUT generator 2 extracts the lattice point having the RGB values falling within the range of the output gamut as shown in
As shown in
For example, the LCH values recorded on the LUT #1 are written in the lattice points of the LUT #3 corresponding to the lattice points having the RGB values falling within the range of the output gamut in the LUT #2 as represented by the small blank circles in
In step F107, the LUT generator 2 extracts the lattice points having the RGB values falling outside the range of the output gamut as shown in
More specifically, as shown in
For example, the LCH values recorded on the LUT #1 are written in the lattice points of the LUT #4 corresponding to the lattice points having the RGB values falling outside the range of the output gamut in the LUT #2 as represented by the small blank circles in
The lattice point represented by the small blank circle having the LCH values in the LUT #3 of
The LCH values input to the LUT #3 of
The LCH values input to the LUT #4 of
In step F109, the LUT generator 2 performs compression process on the color at the lattice position input to the LUT #4 of
Subsequent to steps F105 through F109, the LUT generator 2 combines the LUT #3 of
In step F111, lattice points having the same LCH value, from among the LCH values written on the LUT #5, are searched for and then grouped.
As previously discussed, two different LCH values may become the same value as a result of compression process. Furthermore, a compressed LCH value may become equal to another uncompressed LCH value. In step F111, such LCH values equal to each other are searched for.
If lattice points having the same LCH value are found, processing proceeds from step F112 to step F113. The lattice points having the same LCH value are grouped together.
Subsequent to the grouping process of
In step F115, a plurality of LCH values read from the LUT #1 are updated to enhance the maximum difference therebetween, and the updated LCH values overwrite the LUT #1.
The LCH values at the corresponding two lattice points on the LUT #1 are read. The LCH values at the two lattice points are compared with L value with L value, C value with C value, and H value with H value in order to determine one giving the largest difference. For example, the LCH values on one lattice point on the LUT #1 are the L value=50, the C value=50, and the H value=10. The LCH values on the other lattice point on the LUT #1 are the L value=50, the C value=50, and the H value=11. Between the two sets of LCH values, the H value provides the largest difference.
The two colors originally offer characteristic difference in the H value. The LCH values are updated to enhance the difference. More specifically, operation is performed for H=H+D on one set of LCH values, and for H=H−D on the other set of LCH values. Value D enhances the difference in attribute. The value D will be described later.
By enhancing the difference in the H value, one set of LCH values (L value=50, C value=50, and H value=10) is modified to L value=50, C value=50, and H value=9, and the other set of LCH values (L value=50, C value=50, and H value=11) is modified to L value=50, C value=50, and H value=12. The modified values overwrite on the LUT #1 as represented by dual concentric circles.
The H value is modified herein. If the L value provides the largest difference between a plurality of lattice points in the group, the L value is modified. If the C value provides the largest difference, the C value is modified. When the L value is modified, L=L+D results on one set of the LCH values and L=L−D results on the other set of LCH values. When the V value is modified, C=C+D results on one set of the LCH values and C=C−D results on the other set of LCH values.
When the LCH values on the LUT #1 are modified in step F115, processing returns to step F104 to repeat the above-referenced process.
As for the lattice points having the same LCH value subsequent to the compression process, the uncompressed LCH values are modified so that the difference in the color is enhanced, and step F104 and subsequent steps are repeated. The lattice points are now likely to have different values in step F111. In other words, the colors, which suffers from gradation failure as a result of compression for the first time, may have gradation next.
From the relationship between the input gamut and the output gamut, however, the iterated process may not necessarily make all lattice points different in LCH value. Based on the premise that some lattice points having the same LCH value may remain on the LUT #5, the number of iteration processes of steps F104 through F115 may be limited to a certain number.
If it is determined in step F112 that the same LCH value is not present in the lattice points on the LUT #5, processing proceeds to step F116. The LCH values stored at the lattice points of the LUT #5 at that moment are converted into the output RGB values, and the output RGB values are written onto the corresponding lattice points of the LUT #6.
The LUT #6 is the 3DLUT finally created by the LUT generator 2, namely, supplied to the color converter 3 for use in the gamut compression process of the actual video data.
Upon completing the LUT #6 in step F116, the LUT generator 2 ends the LUT generation process by writing the LUT #6 onto the non-volatile memory area in the memory 12. The LUT #6 may be supplied to the color converter 3 later at any convenient time.
When the color converter 3 performs the gamut compression process on the input video data, the R value, the G value, and the B value of the input video data specify a single lattice point of the LUT #6. Since the output RGB values are stored at the lattice point, the color converter 3 reads the output RGB values and outputs the output RGB values as the gamut compressed values.
The output RGB values, represented by the solid black triangle symbols and written on the lattice points of the LUT #6 are RGB values converted from different LCH values, and are thus different from each other. Although the gamut compression device 1 performs the gamut compression process based on the clipping technique, gradation is maintained. Faithful reproduction is performed with reproducible color uncompressed while color gradation is maintained. Excellent gamut compression is thus performed.
Since all output values on the LUT #6 are made different, the LUT is effectively used, in other words, not wasted in the size thereof.
The compression process is performed with the input RGB values converted into the LCH values. Alternatively, the compression process is performed on the Lab values.
In the configuration of
A second gamut compression process is now described.
When the compression operation is performed on the colors I and II, the L value, the C value and the H value of the color I become 49, 49, and 10 and the L value, the C value and the H value of the color I also become 49, 49, and 10. In other words, when the compression operation is performed to contain the colors I and II in the output gamut, the same color results in the output gamut. In this state, color gradation is missing in the output gamut.
In the first gamut compression process, the uncompressed LCH values are modified, and the compression operation is repeated again. In the second gamut compression process, the compressed LCH values are modified to provide gradation (steps S1-21 and S2-21).
In this case, the uncompressed values of the LCH values becoming equal to each other subsequent to compression are recognized (steps S1-3 and S2-3), and an attribute providing the largest difference, from among the color attributes, are detected. This process step is identical to that of the first gamut compression process. However, the compressed LCH values are modified to enhance the difference in the second gamut compression process.
For example, the maximum difference is found in the H value in the uncompressed LCH values (steps S1-3 and S2-3). The uncompressed LCH values are modified to enhance the H value difference. As a result, the compressed LCH values of the color I are modified to be 49, 49, and 9, and the compressed LCH values of the color II are modified to be 49, 49, and 12 (steps S1-22 and S2-22).
The compressed LCH values of the colors I and II are converted into the RGB values (steps S1-23 and S2-23).
The converted RGB values, namely, output RGB values are colors I′ and II′ converted through the compression operation (steps S1-24 and S2-24).
In the second gamut compression process as well, the compression operation may be performed on the Lab values rather than on the LCH values converted from the RGB values. The color attribute difference is enhanced as the LCH values. Alternatively, a difference in the Lab values may be enhanced or a difference in the color component (RGB values) may be enhanced. It is important that the output RGB values of the colors I′ and II′ be different.
As understood from the color I and the color II of
To make the plurality of pieces of color data different in value, the compression process is performed on the plurality of color data having the same value with the compressed value thereof modified. The compressed color data values become thus different.
The second gamut compression process is specifically described with reference to
Steps F201 through F217 of
Steps F201 and F202 are performed by the memory controller 25 in the memory access function thereof.
Steps F203, F204, and F217 are performed by the converter 21 in the conversion function thereof and by the memory controller 25 in the memory access function thereof.
Steps F205, F206, F207, and F208 are performed by the gamut boundary determiner 22 in the determination function thereof and by the memory controller 25 in the memory access function thereof.
Step F209 is performed by the gamut compressor 23 in the compression calculation function thereof and by the memory controller 25 in the memory access function thereof.
Steps F210, F211, F212, F213, F214, F215 and F216 are performed by the color gradation generator 24 in the gradation generation function thereof and by the memory controller 25 in the memory access function thereof.
As shown in
In step F213, the grouping operation is performed as shown in
In step F215, a value having the largest difference from among a plurality of LCH values read from the LUT #1 is determined. In step F216, the LCH values of the LUT #5 are modified so that the largest difference of the value is enhanced, and the modified LCH values overwrite the LUT #5.
The LCH values at the same two lattice points of the LUT #1 are read. The LCH values at the two lattice points are compared with the L value with the L value, the C value with the C value, and the H value with the H value. The value providing the largest difference is determined. For example, the LCH values on one lattice point on the LUT #1 are the L value=50, the C value=50, and the H value=10. The LCH values on the other lattice point on the LUT #1 are the L value=50, the C value=50, and the H value=11. Between the two sets of LCH values, the H value provides the largest difference.
The two colors originally offer characteristic difference in the H value. The LCH values are updated to enhance the difference on the LUT #5.
More specifically, operation is performed for H=H+D on one set of LCH values, and for H=H−D on the other set of LCH values. Value D enhances the difference in attribute.
For example, the LCH values at the two lattice points in the group GPn on the LUT #5 are the same, namely, the L value=49, the V value=49, and the H value=10. Since the LCH values on the LUT #1 provide the largest difference in the H value on the LUT #1, one set of LCH values in the GPn on the LUT #5 are modified to be the L value=49, the C value=49, and the H value=11, and the other set of LCH values in the GPn on the LUT #5 are modified to be the L value=49, the C value=49, and the H value=9, and the modified LCH values overwrite on the LUT #5.
The H value is modified herein. If the L value from among the uncompressed LCH values provides the largest difference between the plurality of lattice points within the group, the L value is modified. If the C value provides the largest difference, the C value is modified.
After the modification of the LCH values of the LUT #5 in step F216, processing returns to step F211. Lattice points having the same LCH values on the LUT #5 are searched for, and the same process is repeated.
Concerning the lattice points having the same LCH values subsequent to the compression operation, an attribute value providing the largest difference in the uncompressed LCH values is determined. The compressed LCH values on the LUT #5 are then modified so that a difference appears therebetween. Through iterating the process of steps F211 through F216, it is determined in step F212 there are no lattice points having the same LCH values on the LUT #5.
If it is determined in step F212 that there are no lattice points having the same LCH values on the LUT #5, processing proceeds to step F217. The LCH values stored at the lattice points on the LUT #5 at that moment are converted into the RGB values, and the resulting RGB values are written on the same lattice points on the LUT #6.
The LUT #6 is the 3DLUT finally created by the LUT generator 2, namely, supplied to the color converter 3 for use in the gamut compression process of the actual video data.
Upon completing the LUT #6 in step F217, the LUT generator 2 ends the LUT generation process by writing the LUT #6 onto the non-volatile memory area in the memory 12. The LUT #6 may be supplied to the color converter 3 later at any convenient time.
When the color converter 3 performs the gamut compression process on the input video data, the R value, the G value, and the B value of the input video data specify a single lattice point of the LUT #6. Since the output RGB values are stored at the lattice point, the color converter 3 reads the output RGB values and outputs the output RGB values as the gamut compressed values.
The output RGB values written on the lattice points of the LUT #6 are RGB values converted from different LCH values, and are thus different from each other. Although the gamut compression device 1 performs the gamut compression process based on the clipping technique, gradation is maintained. Faithful reproduction is performed with reproducible color uncompressed while color gradation is maintained. Excellent gamut compression is thus performed.
Since all values on the LUT #6 become different, the LUT is effectively used.
The 3DLUT (LUT #6) is created through the process of
When the LCH values are modified to enhance the difference in the L value, L=L+D results on one set of LCH values and L=L−D results on the other set of LCH values as previously discussed. The D value is intended to enhance the difference in the original attribute that happens to have the same value as a result of compression. With an appropriate D value set, the original gradation is still expressed even after the gamut compression process.
The method of enhancement using the D value is not limited to the above-referenced addition and subtraction method. Any other method is also acceptable if the method can enhance the difference. The D value is not necessarily a fixed one.
Methods of determining the D value, representing the degree of enhancement, are described below.
Degree of Enhancement Determined by Color Component and Color Attribute
An R value of 8 bits is considered. An 8-bit R value is referred to as Ri (i=0-255). For each of the 255 Ri values, the G value and the B value are fixed, and then the L value, the a value, the b value, the C value, and the H value are calculated.
Let Li, ai, bi, Ci, and Hi represent the values calculated from Ri, and Li, ai, and bi are calculated from the following equation (5):
where Xn, Yn, and Zn are tristimulus values of a light source, and (xn, Yn, Zn)=(95.04, 100.00, 108.89) in the case of standard illuminant D65.
Furthermore, Ci and Hi are calculated from the following equation (6):
Ci=√{square root over (ai2+bi2)}
Hi=arctan(bi/ai) Equation (6)
ΔLi, Δai, Δbi, ΔCi and ΔHi are determined as below from Li, ai, bi, Ci, and Hi thus calculated:
ΔLi=|Li−Li−1|
Δai=|ai−ai−1|
Δbi=|bi−bi−1|
ΔCi=|Ci−Ci−1|
ΔHi=|Hi−Hi−1|
A two-dimensional table (LUT-i) of
Similarly, as for the G value, Li, ai, bi, Ci and Hi are determined for each Gi (i=0-255) with the R value and the B value fixed, and further ΔLi, Δai, Δbi, ΔCi and ΔHi are determined. A two-dimensional table (LUT-ii) of
Similarly, as for the B value, Li, ai, bi, Ci and Hi are determined for each Bi (i=0-255) with the R value and the G value fixed, and further ΔLi, Δai, Δbi, ΔCi and ΔHi are determined. A two-dimensional table (LUT-iii) of
The two-dimensional table (LUT-i) of
The two-dimensional table (LUT-ii) of
Which of the two-dimensional tables of
The D value causes a difference on a plurality of colors that has become the same in value through the compression operation in the gamut compression process (LUT generation process). If a difference is desired in the R value, the D value is determined from the two-dimensional table (LUT-i) of
The D value may be fixed or variable. If gradation is desired to be maintained with the difference in the R value enhanced and if the D value is fixed, an appropriate D value may be selected from the two-dimensional table (LUT-i).
To make the D value variable, a D value may be selected from the two-dimensional table (LUT-i) in the course of process.
Degree of Enhancement Determined Based on Color Attribute
As previously discussed, the D value causes any one of the attribute values, namely, the L value, the C value, and the H value to vary. The D value may be varied depending on the attribute to be changed. For example, when the L value is varied, a DL is used as L=L+DL and L=L−DL. When the H value is varied, a DH value is used as H=H+DH and H=H−DH. When the C value is varied, a DC value is used as C=C+DC and C=C−DC.
As the DL value, a maximum ΔL within a range of i=0 to 255 in the two-dimensional table (LUT-i) of
When the color data value is varied using the a value and the b value, a Da value may be used to perform the addition and subtraction operation on the a value, and a Db value may be used to perform the addition and subtraction operation on the b value.
Degree of Enhancement Determined Based on a Combination of Gamut of Compression Source (Input Gamut) and Gamut of Compression Destination (Output Gamut)
The D value depending on the combination of the input gamut and the output gamut is determined on the two-dimensional tables by setting the matrix Ml of equation (5) in response to the combination of the input gamut and the output gamut.
Degree of Enhancement Determined Based on the Gamut of Compression Destination (Output Gamut)
The gamut is wide or narrow depending on the device as shown in
For example, if the output gamut is as narrow as ITU-709, the D value is set to be large. If the output gamut is as wide as film color, the D value is set to be small.
Degree of Enhancement Determined Based on the Lattice Points of the 3DLUT
The D value is selected from the two-dimensional tables of
Degree of Enhancement Determined Based on Bit Length
A variation of i in the creation of the two-dimensional LUT is set depending on the bit length of the RGB values. For example, in an 8-bit RGB system, i=0-255, in a 10-bit RGB system, i=0-1024, in a 12-bit RGB system, i=0-4096, and in a 16-bit RGB system, i=0-65535. A two-dimensional table indicating the D value is created, and the D value is determined from the two-dimensional table.
A program of one embodiment of the present invention is executed by the arithmetic unit 10 (LUT generator 2) of
The programs may be stored on the ROM area or the non-volatile area in the memory 12.
The program of the embodiments of the present invention may be pre-recorded on a personal computer, a hard disk drive as a recording medium contained in an apparatus of a video editing system, or a ROM in a microcomputer having a CPU.
The program of the embodiments of the present invention may also be temporarily or permanently stored on one of removable recording media including a flexible disk, compact disc read-only memory (CD-ROM), magneto-optical (MO) disk, digital versatile disk (DVD), blu-ray disk, magnetic disk, semiconductor memory, and memory card. Such a removable recording medium may be supplied in package software.
The program of the embodiments of the present invention may be installed to a personal computer from the removable recording medium, or may be downloaded to the personal computer from a download site via a network such as a local area network (LAN) or the Internet.
With the program of the embodiments of the present invention, the gamut compression device providing the above-described advantages is easily embodied. The gamut compression device may be embodied by a general-purpose or dedicated information processing apparatus.
A program recording medium storing the program helps the gamut compression device of the above-described embodiments to be easily provided or to be distributed.
It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and alterations may occur depending on design requirements and other factors insofar as they are within the scope of the appended claims or the equivalents thereof.
Patent | Priority | Assignee | Title |
10542186, | Sep 30 2015 | Dolby Laboratories Licensing Corporation | 2D LUT color transforms with reduced memory footprint |
11749145, | Dec 11 2019 | GOOGLE LLC | Color calibration of display modules using a reduced number of display characteristic measurements |
11842678, | Oct 12 2021 | GOOGLE LLC | High-brightness mode on an OLED display |
8487947, | Sep 28 2006 | Intel Corporation | Video processing architecture having reduced memory requirement |
9905195, | Sep 16 2015 | AsusTek Computer Inc. | Image processing method |
Patent | Priority | Assignee | Title |
5844699, | Nov 15 1990 | Canon Kabushiki Kaisha | Color image processing apparatus |
6101272, | Dec 12 1996 | FUJIFILM Corporation | Color transforming method |
6414690, | Dec 08 1999 | Xerox Corporation | Gamut mapping using local area information |
20030020934, | |||
20030165266, | |||
JP10229502, | |||
JP200294826, | |||
JP2003244457, | |||
JP200337745, |
Executed on | Assignor | Assignee | Conveyance | Frame | Reel | Doc |
Sep 07 2006 | Sony Corporation | (assignment on the face of the patent) | / | |||
Oct 16 2006 | OSAKI, YUKI | Sony Corporation | ASSIGNMENT OF ASSIGNORS INTEREST SEE DOCUMENT FOR DETAILS | 018580 | /0641 | |
Oct 20 2006 | KAWADA, NORIHIKO | Sony Corporation | ASSIGNMENT OF ASSIGNORS INTEREST SEE DOCUMENT FOR DETAILS | 018580 | /0641 |
Date | Maintenance Fee Events |
May 11 2010 | ASPN: Payor Number Assigned. |
Oct 07 2013 | M1551: Payment of Maintenance Fee, 4th Year, Large Entity. |
Oct 03 2017 | M1552: Payment of Maintenance Fee, 8th Year, Large Entity. |
Sep 24 2021 | M1553: Payment of Maintenance Fee, 12th Year, Large Entity. |
Date | Maintenance Schedule |
Apr 13 2013 | 4 years fee payment window open |
Oct 13 2013 | 6 months grace period start (w surcharge) |
Apr 13 2014 | patent expiry (for year 4) |
Apr 13 2016 | 2 years to revive unintentionally abandoned end. (for year 4) |
Apr 13 2017 | 8 years fee payment window open |
Oct 13 2017 | 6 months grace period start (w surcharge) |
Apr 13 2018 | patent expiry (for year 8) |
Apr 13 2020 | 2 years to revive unintentionally abandoned end. (for year 8) |
Apr 13 2021 | 12 years fee payment window open |
Oct 13 2021 | 6 months grace period start (w surcharge) |
Apr 13 2022 | patent expiry (for year 12) |
Apr 13 2024 | 2 years to revive unintentionally abandoned end. (for year 12) |