JP4872616B2 - Image processing apparatus, image processing method, and program - Google Patents

Image processing apparatus, image processing method, and program Download PDF

Info

Publication number
JP4872616B2
JP4872616B2 JP2006308185A JP2006308185A JP4872616B2 JP 4872616 B2 JP4872616 B2 JP 4872616B2 JP 2006308185 A JP2006308185 A JP 2006308185A JP 2006308185 A JP2006308185 A JP 2006308185A JP 4872616 B2 JP4872616 B2 JP 4872616B2
Authority
JP
Japan
Prior art keywords
value
color
target
luminance
converted
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
JP2006308185A
Other languages
Japanese (ja)
Other versions
JP2008124912A (en
Inventor
昭博 伊東
英俊 川島
勇一 西國
登志郎 郡山
敏江 小檜山
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Fujifilm Business Innovation Corp
Original Assignee
Fuji Xerox Co Ltd
Fujifilm Business Innovation Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Fuji Xerox Co Ltd, Fujifilm Business Innovation Corp filed Critical Fuji Xerox Co Ltd
Priority to JP2006308185A priority Critical patent/JP4872616B2/en
Publication of JP2008124912A publication Critical patent/JP2008124912A/en
Application granted granted Critical
Publication of JP4872616B2 publication Critical patent/JP4872616B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Description

本発明は、画像データの色を補正する画像処理装置に関する。   The present invention relates to an image processing apparatus that corrects the color of image data.

プリンタでの印刷や、ディスプレイ表示などの種々の出力に対応するため、画像データの色を様々に変換する技術が開発されている。この色変換の技術の一つとして、変換の対象となる値と変換後の値とを関連づけたテーブル(カラールックアップテーブル:CLUT)を用いる方法がある。このCLUTを用いる色変換技術では、演算を用いる方法よりも自由度の高い変換を行うことができる反面、テーブルを格納させておくために比較的大きいメモリ容量を要するという欠点もある。   In order to cope with various outputs such as printing with a printer and display on a display, techniques for variously converting colors of image data have been developed. As one of the color conversion techniques, there is a method of using a table (color lookup table: CLUT) in which values to be converted are associated with converted values. The color conversion technique using the CLUT can perform conversion with a higher degree of freedom than a method using calculation, but has a disadvantage that a relatively large memory capacity is required to store the table.

この欠点は特に入力側の色(変換の対象となる色の値)の範囲が広くなるほど顕著となる。一方、一般にL*a*b*などの色空間では、明度0で彩度が100など、色としては実在しない値も含まれる。しかしながらCLUTを用いる色変換方法では、このような実在しない値に関する変換値をもテーブルとして設定しておく必要があり、無駄が多い。   This disadvantage becomes more prominent as the range of colors on the input side (color values to be converted) becomes wider. On the other hand, in general, in a color space such as L * a * b *, values that do not exist as colors, such as lightness 0 and saturation 100, are included. However, in the color conversion method using the CLUT, it is necessary to set conversion values relating to such non-existing values as a table, which is wasteful.

そこで、比較的広い色域を有する色空間から、実効的な色域を抽出して定義し、画像データに含まれる色を、この実効的な色域内の色に変換してからCLUTでの色変換処理を行うことで、実効的な色域を入力値とするCLUTの利用を可能とし、CLUTを有効に利用する技術が考えられている。   Therefore, an effective color gamut is extracted and defined from a color space having a relatively wide color gamut, and the colors included in the image data are converted into colors within the effective color gamut before the colors in the CLUT. By performing the conversion process, it is possible to use a CLUT having an effective color gamut as an input value, and a technique for effectively using the CLUT has been considered.

ところが、比較的広い色域を有する色空間から、実効的な色域の色へ変換するにあたっては、実効的な色域外にある色の調整方法が問題となっている。この調整方法としては、例えば、特許文献1に開示の方法を採用できる。
特開2004−201184号公報
However, when converting from a color space having a relatively wide color gamut to an effective color gamut, there is a problem with a method for adjusting a color outside the effective color gamut. As this adjustment method, for example, the method disclosed in Patent Document 1 can be adopted.
JP 2004-201184 A

しかしながら、特許文献1に開示の方法では、色域の値を超える値の色については、色相・彩度を維持した状態で明度を変更することで色域内の色に変換される。また色域の値を下回る値の色については、色相・明度を維持した状態で彩度を変更することで色域内の色に変換される。このように明度または彩度が単独で変更される結果、意図しない色が発現してしまう場合があった。   However, in the method disclosed in Patent Document 1, a color with a value exceeding the value of the color gamut is converted to a color within the color gamut by changing the lightness while maintaining the hue and saturation. In addition, a color having a value lower than the color gamut is converted to a color within the color gamut by changing the saturation while maintaining the hue and brightness. In this way, as a result of changing the brightness or saturation alone, an unintended color may appear.

本発明は上記実情に鑑みて為されたもので、明度・彩度のバランスに配慮しつつ、色の調整を行うことのできる画像処理装置を提供することを、その目的の一つとする。   The present invention has been made in view of the above circumstances, and an object of the present invention is to provide an image processing apparatus capable of adjusting a color while considering the balance between lightness and saturation.

上記従来例の問題点を解決するための本発明は、画像処理装置であって、処理の対象となる画像データ中の色値をそれぞれ、所定の色空間での値に変換する手段と、前記所定の色空間に関して予め規定された値域を記憶する手段と、前記変換により、いずれかの色値が、前記記憶されている値域の上限を超えた値に変換されたときに、調整用のオフセット値を算出するオフセット算出手段と、前記算出したオフセット値を前記変換後の各値に加算し、当該加算後の各値の最大値が前記色空間の上限となるよう、前記変換後の各値を補正する手段と、を含むことを特徴としている。   The present invention for solving the problems of the conventional example is an image processing apparatus, wherein each of color values in image data to be processed is converted into a value in a predetermined color space; Means for storing a pre-defined value range with respect to a predetermined color space, and an offset for adjustment when any color value is converted to a value exceeding the upper limit of the stored value range by the conversion An offset calculation means for calculating a value, and the calculated offset value is added to each value after the conversion, and each value after the conversion is such that the maximum value of each value after the addition becomes the upper limit of the color space. And means for correcting.

ここで前記オフセット算出手段は、前記値域の上限を超えた変換後の値を、所定の方法で定めた目標輝度の色を表わす値に変換するオフセット値を算出することとしてもよい。   Here, the offset calculation means may calculate an offset value for converting a value after conversion exceeding the upper limit of the range into a value representing a color of target luminance determined by a predetermined method.

また、前記目標輝度は、前記変換後の値で表わされる色を対象色として、対象色の色度を維持しつつ、輝度を変更して前記値域内の色に調整したときの輝度と、前記対象色の輝度と、の間に設定されることとしてもよい。   Further, the target luminance is a color when the color represented by the converted value is a target color, while maintaining the chromaticity of the target color while changing the luminance to a color within the range, and It may be set between the brightness of the target color.

また、前記目標輝度は、前記変換後の値で表わされる色を対象色として、対象色の色度を維持しつつ、輝度を変更して前記値域内の色に調整したときの輝度と、前記対象色の輝度とを、所定の比を用いて加重平均した値であってもよい。   Further, the target luminance is a color when the color represented by the converted value is a target color, while maintaining the chromaticity of the target color while changing the luminance to a color within the range, and It may be a value obtained by weighted averaging the luminance of the target color using a predetermined ratio.

さらに本発明の一態様に係る画像処理装置は、処理の対象となる画像データ中の色値を、所定の色空間での値に変換する手段と、前記所定の色空間に関して予め規定された値域を記憶する手段と、前記変換により、色値が、前記記憶されている値域外の値に変換されたときに、当該変換後の値で表わされる色を対象色として、対象色の色度を白色に近づけて変更し、輝度を変更して前記値域内の色に調整したときの輝度と、前記対象色の輝度との間に、目標輝度を設定する手段と、前記変換後の値で表わされる色を、前記設定した目標輝度の色に補正する手段と、を含むことを特徴としている。   Furthermore, an image processing apparatus according to an aspect of the present invention includes means for converting a color value in image data to be processed into a value in a predetermined color space, and a value range defined in advance for the predetermined color space. When the color value is converted to a value outside the stored value range by the conversion, the chromaticity of the target color is set with the color represented by the converted value as the target color. A means for setting a target luminance between the luminance when the luminance is adjusted close to white, the luminance is adjusted to a color within the range, and the luminance of the target color, and is expressed by the converted value. And a means for correcting the color to be set to the color of the set target luminance.

また、前記目標輝度は、前記変換後の値で表わされる色を対象色として、対象色の色度を白色に近づけて変更し、輝度を変更して前記値域内の色に調整したときの輝度と、前記対象色の輝度とを、所定の比を用いて加重平均した値であってもよい。   The target luminance is a luminance when the color represented by the converted value is the target color, the chromaticity of the target color is changed to be close to white, and the luminance is changed to be adjusted to a color within the range. And the luminance of the target color may be a weighted average value using a predetermined ratio.

ここで前記比は、変換後の値が表わす色の明度または色相の少なくとも一方に基づいて定められてもよいし、前記比は、変換後の値が前記値域の上限を超えている場合と、変換後の値が前記値域の下限を下回っている場合とで異なる値に設定されてもよい。   Here, the ratio may be determined based on at least one of the brightness or hue of the color represented by the converted value, and the ratio may be determined when the converted value exceeds the upper limit of the range. The value after conversion may be set to a different value when the value is below the lower limit of the range.

さらに本発明の別の態様に係る画像処理方法は、処理の対象となる画像データ中の色値を、所定の色空間での値に変換する手順と、前記変換により、色値が、前記所定の色空間に関して予め規定された値域の上限を超えた値に変換されたときに、調整用のオフセット値を算出する工程と、前記算出したオフセット値を前記変換後の値に加算し、当該加算後の最大値が前記色空間の上限となるよう補正する工程と、を含むことを特徴としている。   Furthermore, an image processing method according to another aspect of the present invention provides a procedure for converting a color value in image data to be processed into a value in a predetermined color space, and the color value is converted into the predetermined value by the conversion. A step of calculating an offset value for adjustment when the value is converted to a value exceeding the upper limit of a predetermined range with respect to the color space, and adding the calculated offset value to the converted value, And a step of correcting so that the later maximum value becomes the upper limit of the color space.

さらに本発明の別の態様に係るプログラムは、コンピュータに、処理の対象となる画像データ中の色値を、所定の色空間での値に変換する手順と、前記変換により、色値が、前記所定の色空間に関して予め規定された値域の上限を超えた値に変換されたときに、調整用のオフセット値を算出する手順と、前記算出したオフセット値を前記変換後の値に加算し、当該加算後の最大値が前記色空間の上限となるよう補正する手順と、を実行させることを特徴としている。   Furthermore, a program according to another aspect of the present invention provides a computer with a procedure for converting a color value in image data to be processed into a value in a predetermined color space, and the color value is converted into a value by the conversion. A procedure for calculating an offset value for adjustment when converted to a value exceeding the upper limit of a predetermined range for a predetermined color space, and adding the calculated offset value to the converted value, Correcting the maximum value after the addition to be the upper limit of the color space.

本発明の実施の形態について図面を参照しながら説明する。本発明の実施の形態に係る画像処理装置は、例えばプリンタサーバによって実現され、図1に示すように、制御部11、記憶部12、通信部13を含んで構成される。また、この画像処理装置1は、プリンタ等の出力装置2と、クライアント装置3とに接続されている。   Embodiments of the present invention will be described with reference to the drawings. The image processing apparatus according to the embodiment of the present invention is realized by, for example, a printer server, and includes a control unit 11, a storage unit 12, and a communication unit 13, as shown in FIG. The image processing apparatus 1 is connected to an output device 2 such as a printer and a client device 3.

制御部11は、CPU等であり、記憶部12に格納されているプログラムに従って動作する。本実施の形態では、この制御部11は、クライアント装置3から受信される画像データを処理の対象として、当該画像データに含まれる色を調整する処理を行う。そして、当該調整後の画像データを出力装置2に出力する。   The control unit 11 is a CPU or the like, and operates according to a program stored in the storage unit 12. In the present embodiment, the control unit 11 performs the process of adjusting the color included in the image data with the image data received from the client device 3 as a processing target. Then, the adjusted image data is output to the output device 2.

記憶部12は、メモリ素子や、ディスクデバイス等であり、制御部11によって実行されるプログラムを保持している。このプログラムは、例えばDVD−ROMやCD−ROM等の記憶媒体に格納された状態で提供され、この記憶部12に複写して格納されてもよい。また、この記憶部12は、制御部11のワークメモリとしても動作する。   The storage unit 12 is a memory element, a disk device, or the like, and holds a program executed by the control unit 11. This program may be provided in a state of being stored in a storage medium such as a DVD-ROM or a CD-ROM, and may be copied and stored in the storage unit 12. The storage unit 12 also operates as a work memory for the control unit 11.

通信部13は、ネットワークインタフェース等の通信手段であり、出力装置2や、クライアント装置3との間でデータを送受する。ここでは、クライアント装置3から受信される画像データを制御部11に出力する。また、制御部11から入力される指示に従って、出力装置2へ画像データを送信する。   The communication unit 13 is a communication unit such as a network interface, and transmits and receives data to and from the output device 2 and the client device 3. Here, the image data received from the client device 3 is output to the control unit 11. Further, the image data is transmitted to the output device 2 in accordance with an instruction input from the control unit 11.

ここで制御部11の具体的な処理の内容について説明する。制御部11は、クライアント装置3から、出力側機器である出力装置2(ここではプリンタ)にて印刷するべき画像データを受信する。この画像データは、例えば、ビットマップの画像データである。   Here, the specific processing contents of the control unit 11 will be described. The control unit 11 receives image data to be printed from the client device 3 by the output device 2 (here, a printer) which is an output side device. This image data is, for example, bitmap image data.

本実施の形態に係る画像処理装置1は、この制御部11のソフトウエア処理により、機能的に図2に示すように、色空間変換部21と、後処理部22と、色変換部23とを含んで構成される。ここに色空間変換部21は、処理対象となったビットマップの画像データに含まれる各画素の値(色値)を、所定の色空間での値に変換する。ここで所定の色空間には、予め有意な色を表わす値の範囲(値域)が定められているものとする。   As shown in FIG. 2 functionally, the image processing apparatus 1 according to the present embodiment performs the software processing of the control unit 11 so that the color space conversion unit 21, the post-processing unit 22, the color conversion unit 23, It is comprised including. The color space conversion unit 21 converts the value (color value) of each pixel included in the bitmap image data to be processed into a value in a predetermined color space. Here, it is assumed that a value range (value range) representing a significant color is determined in advance in the predetermined color space.

後処理部22は、色空間変換部21での変換結果により、変換後の値が上記値域外にあると判断される場合に、当該値を値域内の値に調整する処理を行う。この処理の内容については後に述べる。   The post-processing unit 22 performs a process of adjusting the value to a value in the range when it is determined that the converted value is outside the above-described range based on the conversion result in the color space conversion unit 21. The contents of this process will be described later.

色変換部23は、後処理部22が出力する色の値を入力値として、予め定められたCLUTを参照し、入力値に対応付けられている出力値(例えばCMYK値)を出力する。ここでは例えば出力装置2へ出力することとしてもよい。また、入力値がCLUT上にない場合は、入力値に近接する値を少なくとも一つ、CLUTから見出し、見出した値に関連づけられている出力値を用いて、補間または補外処理によって出力値を演算する。なお、ここではCLUTの入力値は、予め定めた値域内の値としておいて構わない。後処理部22により、変換後の値が必ず所定の値域内の値に補正されるからである。   The color conversion unit 23 uses the color value output from the post-processing unit 22 as an input value, refers to a predetermined CLUT, and outputs an output value (for example, a CMYK value) associated with the input value. Here, for example, it may be output to the output device 2. If the input value is not on the CLUT, at least one value close to the input value is found from the CLUT, and the output value is obtained by interpolation or extrapolation using the output value associated with the found value. Calculate. Here, the input value of the CLUT may be a value within a predetermined range. This is because the post-processing unit 22 always corrects the converted value to a value within a predetermined value range.

ここで後処理部22の動作について述べる。以下の例では、色空間変換部21が色値をRGB(Red,Green,Blueからなる色空間)値に変換するものとし、R,G,Bの各成分が「0」から「1」の間にある範囲を、有意な色域として規定しておく。   Here, the operation of the post-processing unit 22 will be described. In the following example, it is assumed that the color space conversion unit 21 converts color values into RGB (color space consisting of Red, Green, and Blue) values, and each of R, G, and B components is “0” to “1”. The range in between is defined as a significant color gamut.

後処理部22は、まず変換後の値が値域を下回っているか否かを判断し、下回っている場合はそれに対応する処理を行い、次いで変換後の値が値域を上回っているか否かを判断し、上回っている場合は、それに対応する処理を実行する。   The post-processing unit 22 first determines whether or not the converted value is below the range, and if it is below, performs a corresponding process, and then determines whether or not the converted value is above the range. However, if it exceeds, the corresponding processing is executed.

すなわち後処理部22は、図3に示すように、変換後のRGBの値(以下、区別のため、この値を対象値と呼ぶ)の各成分の値のうち最小の値minRGBを取得する(S11)。そして、この最小値minRGBが値域の最小値である「0」未満(つまり負の値)となっているか否かを調べる(S12)。つまり、対象値のいずれかの成分の値が負となっているか否かを調べる。   That is, as shown in FIG. 3, the post-processing unit 22 acquires the minimum value minRGB among the component values of the converted RGB values (hereinafter, this value is referred to as a target value for distinction) ( S11). Then, it is checked whether or not the minimum value minRGB is less than “0” which is the minimum value in the range (that is, a negative value) (S12). That is, it is checked whether the value of any component of the target value is negative.

ここでいずれかの成分が負の値となっている場合、初期の輝度値として、対象値により表現される色の輝度を演算する(S13)。具体的な例として、初期の輝度値Yorgを、
Yorg=0.2126×R+0.7152×G+0.0722×B
と演算すればよい。なお、Yorgが「0」未満となっているときにはYorg=0と補正しておく。
If any of the components has a negative value, the luminance of the color represented by the target value is calculated as the initial luminance value (S13). As a specific example, the initial luminance value Yorg is
Yorg = 0.2126 × R + 0.7152 × G + 0.0722 × B
And calculate. When Yorg is less than “0”, Yorg = 0 is corrected.

そして後処理部22は、対象値の各成分のうち最小の値が「0」となるよう、各成分にminRGBの絶対値を加算する(S14)。ここではminRGBは負なので、
R′=R−minRGB
G′=G−minRGB
B′=B−minRGB
とすればよい。この調整後のRGB値は、対象値の色度を白色の方向に近づけて変更し、併せて輝度を変更したもので、値域内の色に変換した場合の値となる。
Then, the post-processing unit 22 adds the absolute value of minRGB to each component so that the minimum value among the components of the target value is “0” (S14). Here minRGB is negative, so
R '= R-minRGB
G '= G-minRGB
B '= B-minRGB
And it is sufficient. The RGB value after this adjustment is obtained by changing the chromaticity of the target value close to the white direction and changing the luminance at the same time, and is a value when converted to a color in the range.

後処理部22は、この調整後のRGB値の輝度Ycufをさらに演算する(S15)。
Ycuf=0.2126×R′+0.7152×G′+0.0722×B′
The post-processing unit 22 further calculates the luminance Ycuf of the RGB value after adjustment (S15).
Ycuf = 0.2126 x R '+ 0.7152 x G' + 0.0722 x B '

ここで後処理部22はYcuf=0であるかを調べ、(S16)、Ycuf=0であればR,G,Bの各成分の値を「0」に設定して(S17)、当該値を出力し(S18)、処理を終了する。   Here, the post-processing unit 22 checks whether Ycuf = 0 (S16). If Ycuf = 0, the values of the R, G, and B components are set to “0” (S17), Is output (S18), and the process ends.

また、処理S16にて、Ycuf=0でなければ、目標輝度Ytgtを、対象色の色度を白色に近づけて変更し、輝度を変更して前記値域内の色に調整したときの輝度Ycufと、元の輝度Yorgとの間に設定する(S19)。   If Ycuf is not 0 in step S16, the target luminance Ytgt is changed to the luminance Ycuf when the chromaticity of the target color is changed to be close to white, and the luminance is changed and adjusted to a color within the range. And the original luminance Yorg are set (S19).

具体的には、係数β(0≦β≦1)を用い、
Ytgt=β×Yorg+(1−β)×Ycuf
として、目標輝度を演算する。
Specifically, the coefficient β (0 ≦ β ≦ 1) is used,
Ytgt = β × Yorg + (1−β) × Ycuf
As a result, the target luminance is calculated.

そして後処理部22は、出力するRGB値を、対象値のRGB成分の値とこの目標輝度とを用いて、
Rout=R′×Ytgt/Ycuf
Gout=G′×Ytgt/Ycuf
Bout=B′×Ytgt/Ycuf
と演算し(S20)、処理S18に移行してこの値を出力する。
Then, the post-processing unit 22 uses the RGB component value of the target value and the target luminance as the output RGB value,
Rout = R ′ × Ytgt / Ycuf
Gout = G ′ × Ytgt / Ycuf
Bout = B ′ × Ytgt / Ycuf
(S20), the process proceeds to step S18, and this value is output.

なお、処理S12において、対象値のいずれの成分の値も負となっていない場合(つまり、どの成分とも値域内にあり、対象値が値域内にある場合)は、対象値をそのまま出力して(S21)、処理を終了する。   In step S12, if none of the components of the target value is negative (that is, if any component is in the range and the target value is in the range), the target value is output as it is. (S21), the process ends.

次に後処理部22は、図4に示すように、対象値のうちいずれかの成分が、有意な色域の最大値である「1」を超えているか(値域の上限を超えているか)否かを調べる(S1)。これは例えば、対象値の各成分のうち、最大の値maxRGBを選択し、当該最大の値が「1」を超えているか否かによって判断できる。   Next, as illustrated in FIG. 4, the post-processing unit 22 determines whether any component of the target value exceeds “1” that is the maximum value of the significant color gamut (whether it exceeds the upper limit of the range). Whether or not is checked (S1). This can be determined, for example, by selecting the maximum value maxRGB among the components of the target value and determining whether the maximum value exceeds “1”.

後処理部22は、ここで変換後の値が値域の上限を超えている場合、初期の輝度値として、対象値により表現される色の輝度を演算する(S2)。具体的な例として、初期の輝度値Yorgを、
Yorg=0.2126×R+0.7152×G+0.0722×B
と演算する。そして、対象値のうち最大の成分値maxRGBで、対象値の各成分を除する。すなわち、成分の最大値により対象値を正規化する(S3)。つまり、
R′=R/maxRGB
G′=G/maxRGB
B′=B/maxRGB
を演算する。
If the converted value exceeds the upper limit of the range, the post-processing unit 22 calculates the luminance of the color represented by the target value as the initial luminance value (S2). As a specific example, the initial luminance value Yorg is
Yorg = 0.2126 × R + 0.7152 × G + 0.0722 × B
And calculate. Then, each component of the target value is divided by the maximum component value maxRGB among the target values. That is, the target value is normalized by the maximum value of the component (S3). In other words,
R '= R / maxRGB
G '= G / maxRGB
B '= B / maxRGB
Is calculated.

さらに、この正規化後の対象値の輝度値Yminを演算する(S4)。   Further, the luminance value Ymin of the target value after normalization is calculated (S4).

Ymin=0.2126×R′+0.7152×G′+0.0722×B′   Ymin = 0.2126 x R '+ 0.7152 x G' + 0.0722 x B '

このYmin値は、対象値の各成分間の比(色度)を維持しつつ、輝度を変更することにより、定められた値域内の値に変換したときの輝度値に相当する。   This Ymin value corresponds to a luminance value when converted into a value within a predetermined range by changing the luminance while maintaining the ratio (chromaticity) between the components of the target value.

模式的に、L*a*b*空間で表すと、図5に示すように、対象値の各成分が「0」から「1」の範囲にあるときの値域に相当する色域γに対し、色空間変換部21にて変換した後のRGB値(対象値)で表される色が、この色域γの外Pにあるときを考えると、処理S2にて演算したときの輝度Yorgは、元の対象値の輝度そのものとなる。従って、輝度を保存して、色域γ内の色に補正する場合は、Y=Yorgと、色域γの外縁とが交わる位置Qに相当する色となる。   Schematically in L * a * b * space, as shown in FIG. 5, with respect to the color gamut γ corresponding to the value range when each component of the target value is in the range of “0” to “1”. When the color represented by the RGB value (target value) after conversion by the color space conversion unit 21 is outside P of this color gamut γ, the luminance Yorg calculated in the process S2 is , The brightness of the original target value itself. Therefore, when the luminance is stored and corrected to a color within the color gamut γ, the color corresponds to the position Q where Y = Yorg and the outer edge of the color gamut γ intersect.

また、色度を保存しつつ、輝度を変更する場合は、Y=Yminと、色域γの外縁とが交わる位置Rに相当する色となる。   When the luminance is changed while preserving chromaticity, the color corresponds to the position R where Y = Ymin and the outer edge of the color gamut γ intersect.

後処理部22は、色度を維持しつつ、輝度を変更して値域内の色に調整したときの輝度Yminと、変換後の色の輝度そのものである輝度Yorgと、の間に目標輝度Ytgtを設定する(S5)。具体的には、係数α(0≦α≦1)を用い、
Ytgt=α×Yorg+(1−α)×Ymin
として、目標輝度を演算する。
The post-processing unit 22 maintains the target luminance Ytgt between the luminance Ymin when the luminance is changed and adjusted to a color within the range while maintaining the chromaticity, and the luminance Yorg that is the luminance of the converted color itself. Is set (S5). Specifically, the coefficient α (0 ≦ α ≦ 1) is used,
Ytgt = α × Yorg + (1−α) × Ymin
As a result, the target luminance is calculated.

これにより図5において、YorgとYminの間、α:1−αの比で表される位置に目標輝度Ytgtが設定される。   Thus, in FIG. 5, the target luminance Ytgt is set at a position represented by a ratio of α: 1−α between Yorg and Ymin.

後処理部22は、ここで演算した目標輝度Ytgtが「1」を超える(または「1」以上)か否かを調べ(S6)、超える(または以上)である場合はR,G,Bの各出力値を「1」に設定して(S7)、このRGB値を出力する(S8)。   The post-processing unit 22 checks whether or not the target luminance Ytgt calculated here exceeds “1” (or “1” or more) (S6), and if it exceeds (or more), R, G, B Each output value is set to “1” (S7), and this RGB value is output (S8).

一方、処理S7で、目標輝度Ytgtが「1」を超えない(または「1」未満)である場合は、変換後の色空間の各成分に係る調整用のオフセット値(ここでは対象値の各成分に共通のオフセット値)ofsRGBを演算する(S9)。   On the other hand, if the target luminance Ytgt does not exceed “1” (or less than “1”) in the process S7, an adjustment offset value (here, each of the target values) related to each component of the color space after conversion. The offset value ofsRGB common to the components is calculated (S9).

ofsRGB=(maxRGB×Ytgt−Yorg)/(1−Ytgt)   ofsRGB = (maxRGB × Ytgt−Yorg) / (1−Ytgt)

そして、算出したオフセット値を、対象値の各成分に加算し、加算後の各成分の値の最大値で正規化して、加算後の最大値が色空間の値域に収まるよう補正する(S10)。具体例として、後処理部22は、
Rout=(R+ofsRGB)/(maxRGB+ofsRGB)
Gout=(G+ofsRGB)/(maxRGB+ofsRGB)
Bout=(B+ofsRGB)/(maxRGB+ofsRGB)
と演算し、処理S8に移行して、このRout、Gout、Boutを各成分とするRGB値を出力する。
Then, the calculated offset value is added to each component of the target value, normalized by the maximum value of each component value after addition, and corrected so that the maximum value after addition falls within the range of the color space (S10). . As a specific example, the post-processing unit 22
Rout = (R + ofsRGB) / (maxRGB + ofsRGB)
Gout = (G + ofsRGB) / (maxRGB + ofsRGB)
Bout = (B + ofsRGB) / (maxRGB + ofsRGB)
And the process proceeds to step S8 to output RGB values having Rout, Gout, and Bout as components.

この例によると、図5において、色域γの外縁に沿って、Yminに相当する点RからYorgに相当する点Qへオフセットの値だけ白色(L*=1)の方向に移動した点Sの値に補正される。   According to this example, in FIG. 5, along the outer edge of the color gamut γ, the point S moved from the point R corresponding to Ymin to the point Q corresponding to Yorg by the offset value in the direction of white (L * = 1). It is corrected to the value of.

なお、処理S1において、対象値のうちいずれかの成分が、有意な色域の最大値である「1」を超えていない(値域の上限を超えていない)場合は、処理S21に移行し、対象値を出力して、処理を終了する。   If any component of the target values does not exceed “1”, which is the maximum value of the significant color gamut (does not exceed the upper limit of the range) in process S1, the process proceeds to process S21. The target value is output and the process ends.

入力される画像データがビットマップのデータである場合は、図3や図4に示した処理を、例えば各画素値ごとに行うことになる。   When the input image data is bitmap data, the processing shown in FIGS. 3 and 4 is performed for each pixel value, for example.

本実施の形態では、このようにして、色空間変換後に、当該変換後の色空間で定められた値域外の値となった色について、当該色の元々の輝度Yorgと、当該色の色度を維持して輝度を変更し、値域内の色に補正した場合の輝度Ymod(YminまたはYcuf)とに基づいて、例えばそれらの間に、目標輝度Ytgtを定める。そして、この目標輝度の値となるよう、変換後の色(対象値で表される色)を補正する。   In the present embodiment, after the color space conversion is performed in this way, the original luminance Yorg of the color and the chromaticity of the color for the color that has a value outside the range defined in the color space after the conversion. The target brightness Ytgt is determined between them, for example, based on the brightness Ymod (Ymin or Ycuf) when the brightness is changed while maintaining the brightness and corrected to a color within the range. Then, the converted color (the color represented by the target value) is corrected so that the target luminance value is obtained.

ここで、目標輝度Ytgtは、上述のように、YorgとYmodとの間の所定比(上述のαまたはβ)で分割された点に定められても良い。これらの比は、対象値が表わす色の明度または色相の少なくとも一方に基づいて定めてもよい。すなわち、対象値が表わす色の明度または色相の関数として、経験的に定めることができる。   Here, as described above, the target luminance Ytgt may be determined at a point divided by a predetermined ratio (α or β described above) between Yorg and Ymod. These ratios may be determined based on at least one of the lightness or hue of the color represented by the target value. That is, it can be determined empirically as a function of the lightness or hue of the color represented by the target value.

また、対象値が値域の上限を超えている(オーバーフロー)場合の比αと、対象値が値域の下限を下回っている(アンダーフロー)場合の比βとは、互いに異なる値に設定されてもよい。   The ratio α when the target value exceeds the upper limit of the range (overflow) and the ratio β when the target value falls below the lower limit of the range (underflow) may be set to different values. Good.

このように本実施の形態によると、明度・彩度のバランスに配慮しつつ、色の調整を行うことができる。   As described above, according to the present embodiment, it is possible to perform color adjustment while considering the balance between lightness and saturation.

本発明の実施の形態に係る画像処理装置の構成及びその接続例を表すブロック図である。It is a block diagram showing the structure of the image processing apparatus which concerns on embodiment of this invention, and its connection example. 本発明の実施の形態に係る画像処理装置の例を表す機能ブロック図である。It is a functional block diagram showing the example of the image processing apparatus which concerns on embodiment of this invention. 本発明の実施の形態に係る画像処理装置の処理例を表すフローチャート図である。It is a flowchart figure showing the process example of the image processing apparatus which concerns on embodiment of this invention. 本発明の実施の形態に係る画像処理装置の処理例を表すフローチャート図である。It is a flowchart figure showing the process example of the image processing apparatus which concerns on embodiment of this invention. 本発明の実施の形態に係る画像処理装置の動作例を表す概略図である。It is the schematic showing the operation example of the image processing apparatus which concerns on embodiment of this invention.

符号の説明Explanation of symbols

1 画像処理装置、2 出力装置、3 クライアント装置、11 制御部、12 記憶部、13 通信部、21 色空間変換部、22 後処理部、23 色変換部。   1 image processing device, 2 output device, 3 client device, 11 control unit, 12 storage unit, 13 communication unit, 21 color space conversion unit, 22 post-processing unit, 23 color conversion unit.

Claims (10)

処理の対象となる画像データ中の色値をそれぞれ、所定の色空間での値に変換する手段と、
前記所定の色空間に関して予め規定された値域を記憶する手段と、
前記変換により、いずれかの色値が、前記記憶されている値域の上限を超えた値に変換されたときに、調整用のオフセット値を、予め定めた目標輝度に基づいて算出するオフセット算出手段と、
前記算出したオフセット値を前記変換後の各値に加算し、当該加算後の各値の最大値が前記色空間の上限となるとともに、前記変換後の各値の輝度が前記目標輝度になるよう、前記変換後の各値を補正する手段と、
を含み、
前記目標輝度は、前記変換後の値で表わされる色を対象色として、対象色の色度を維持しつつ、輝度を変更して前記値域内の色に調整したときの輝度と、前記対象色の輝度と、の間に設定されることを特徴とする画像処理装置。
Means for converting each color value in the image data to be processed into a value in a predetermined color space;
Means for storing a pre-defined value range for the predetermined color space;
Offset calculation means for calculating an offset value for adjustment based on a predetermined target luminance when any color value is converted to a value exceeding the upper limit of the stored value range by the conversion. When,
The calculated offset value is added to each value after the conversion, and the maximum value of each value after the addition becomes the upper limit of the color space, and the luminance of each value after the conversion becomes the target luminance. Means for correcting each of the converted values;
Only including,
The target brightness is the brightness when the color represented by the converted value is the target color and the brightness is adjusted to a color within the value range while maintaining the chromaticity of the target color, and the target color An image processing apparatus characterized in that the brightness is set between the two .
請求項記載の画像処理装置において、
前記目標輝度は、前記変換後の値で表わされる色を対象色として、対象色の色度を維持しつつ、輝度を変更して前記値域内の色に調整したときの輝度と、前記対象色の輝度とを、所定の比を用いて加重平均した値であることを特徴とする画像処理装置。
The image processing apparatus according to claim 1 .
The target brightness is the brightness when the color represented by the converted value is the target color and the brightness is adjusted to a color within the value range while maintaining the chromaticity of the target color, and the target color An image processing apparatus characterized in that the luminance is a value obtained by weighted averaging using a predetermined ratio.
前記オフセット算出手段は、前記変換後の色値において最大の値となる成分の値maxRGB
に前記目標輝度の値Ytgtを乗じ、変換後の輝度Yorgを差し引いて得られる値を、輝度の
上限値から前記目標輝度の値Ytgtを差し引いた値で除して、前記オフセット値を求める
ことを特徴とする請求項1または2に記載の画像処理装置。
The offset calculating means is a component value maxRGB which is the maximum value in the converted color value.
Is multiplied by the target luminance value Ytgt, and the value obtained by subtracting the converted luminance Yorg is divided by the value obtained by subtracting the target luminance value Ytgt from the upper limit value of luminance to obtain the offset value. the image processing apparatus according to claim 1 or 2, characterized.
前記変換後の各値を補正する手段は、前記オフセット値を、前記変換後の各成分の値に
加算し、当該加算後の各成分の値の最大値で正規化して補正を行うことを特徴とする請求
項1からのいずれか一項に記載の画像処理装置。
The means for correcting each value after the conversion adds the offset value to the value of each component after the conversion, and corrects by normalizing with the maximum value of the value of each component after the addition. The image processing apparatus according to any one of claims 1 to 3 .
処理の対象となる画像データ中の色値を、所定の色空間での値に変換する手段と、
前記所定の色空間に関して予め規定された値域を記憶する手段と、
前記変換により、色値が、前記記憶されている値域外の値に変換されたときに、当該変換後の値で表わされる色を対象色として、対象色の色度を白色に近づけて変更し、輝度を変更して前記値域内の色に調整したときの輝度と、前記対象色の輝度との間に、目標輝度を設定する手段と、
前記変換後の値で表わされる色を、前記設定した目標輝度の色に補正する手段と、
を含むことを特徴とする画像処理装置。
Means for converting a color value in the image data to be processed into a value in a predetermined color space;
Means for storing a pre-defined value range for the predetermined color space;
When the color value is converted to a value outside the stored value range by the conversion, the color represented by the converted value is set as the target color, and the chromaticity of the target color is changed close to white. A means for setting a target luminance between the luminance when the luminance is adjusted to a color within the range and the luminance of the target color;
Means for correcting the color represented by the converted value to the color of the set target luminance;
An image processing apparatus comprising:
請求項に記載の画像処理装置において、
前記目標輝度は、前記変換後の値で表わされる色を対象色として、対象色の色度を白色に近づけて変更し、輝度を変更して前記値域内の色に調整したときの輝度と、前記対象色の輝度とを、所定の比を用いて加重平均した値であることを特徴とする画像処理装置。
The image processing apparatus according to claim 5 .
The target luminance is the color when the color represented by the converted value is the target color, the chromaticity of the target color is changed to be close to white, the luminance is changed to the color within the range, and the luminance is changed. An image processing apparatus, wherein the luminance of the target color is a value obtained by weighted averaging using a predetermined ratio.
請求項に記載の画像処理装置において、
前記比は、変換後の値が表わす色の明度または色相の少なくとも一方に基づいて定められることを特徴とする画像処理装置。
The image processing apparatus according to claim 6 .
The image processing apparatus according to claim 1, wherein the ratio is determined on the basis of at least one of color brightness and hue represented by the converted value.
請求項に記載の画像処理装置において、
前記比は、変換後の値が前記値域の上限を超えている場合と、変換後の値が前記値域の下限を下回っている場合とで異なる値に設定されることを特徴とする画像処理装置。
The image processing apparatus according to claim 7 .
The ratio is set to a different value when the converted value exceeds the upper limit of the range and when the converted value is below the lower limit of the range. .
処理の対象となる画像データ中の色値をそれぞれ、所定の色空間での値に変換する工程と、
前記所定の色空間に関して予め規定された値域を記憶する工程と、
前記変換により、いずれかの色値が、前記記憶されている値域の上限を超えた値に変換されたときに、調整用のオフセット値を、予め定めた目標輝度に基づいて算出するオフセット算出工程と、
前記算出したオフセット値を前記変換後の各値に加算し、当該加算後の各値の最大値が前記色空間の上限となるとともに、前記変換後の各値の輝度が前記目標輝度になるよう、前記変換後の各値を補正する工程と、
を含み、
前記目標輝度は、前記変換後の値で表わされる色を対象色として、対象色の色度を維持しつつ、輝度を変更して前記値域内の色に調整したときの輝度と、前記対象色の輝度と、の間に設定されることを特徴とする画像処理方法。
Converting each color value in the image data to be processed into a value in a predetermined color space;
Storing a predefined range of values for the predetermined color space;
An offset calculation step of calculating an offset value for adjustment based on a predetermined target brightness when any one of the color values is converted to a value exceeding the upper limit of the stored value range by the conversion. When,
The calculated offset value is added to each value after the conversion, and the maximum value of each value after the addition becomes the upper limit of the color space, and the luminance of each value after the conversion becomes the target luminance. , Correcting each value after the conversion;
Only including,
The target brightness is the brightness when the color represented by the converted value is the target color and the brightness is adjusted to a color within the value range while maintaining the chromaticity of the target color, and the target color An image processing method characterized in that the image processing method is set in between .
コンピュータを、
処理の対象となる画像データ中の色値をそれぞれ、所定の色空間での値に変換する手段と、
前記所定の色空間に関して予め規定された値域を記憶する手段と、
前記変換により、いずれかの色値が、前記記憶されている値域の上限を超えた値に変換されたときに、調整用のオフセット値を、予め定めた目標輝度に基づいて算出するオフセット算出手段と、
前記算出したオフセット値を前記変換後の各値に加算し、当該加算後の各値の最大値が前記色空間の上限となるとともに、前記変換後の各値の輝度が前記目標輝度になるよう、前記変換後の各値を補正する手段と、
として機能させ
前記目標輝度は、前記変換後の値で表わされる色を対象色として、対象色の色度を維持しつつ、輝度を変更して前記値域内の色に調整したときの輝度と、前記対象色の輝度と、の間に設定されることを特徴とするプログラム。
Computer
Means for converting each color value in the image data to be processed into a value in a predetermined color space;
Means for storing a pre-defined value range for the predetermined color space;
Offset calculation means for calculating an offset value for adjustment based on a predetermined target luminance when any color value is converted to a value exceeding the upper limit of the stored value range by the conversion. When,
The calculated offset value is added to each value after the conversion, and the maximum value of each value after the addition becomes the upper limit of the color space, and the luminance of each value after the conversion becomes the target luminance. Means for correcting each of the converted values;
To function as,
The target brightness is the brightness when the color represented by the converted value is the target color and the brightness is adjusted to a color within the value range while maintaining the chromaticity of the target color, and the target color A program characterized by being set in between .
JP2006308185A 2006-11-14 2006-11-14 Image processing apparatus, image processing method, and program Expired - Fee Related JP4872616B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2006308185A JP4872616B2 (en) 2006-11-14 2006-11-14 Image processing apparatus, image processing method, and program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2006308185A JP4872616B2 (en) 2006-11-14 2006-11-14 Image processing apparatus, image processing method, and program

Publications (2)

Publication Number Publication Date
JP2008124912A JP2008124912A (en) 2008-05-29
JP4872616B2 true JP4872616B2 (en) 2012-02-08

Family

ID=39509190

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2006308185A Expired - Fee Related JP4872616B2 (en) 2006-11-14 2006-11-14 Image processing apparatus, image processing method, and program

Country Status (1)

Country Link
JP (1) JP4872616B2 (en)

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3749102B2 (en) * 2000-09-19 2006-02-22 シャープ株式会社 Image processing apparatus, image forming apparatus, and image processing method
JP3922175B2 (en) * 2002-12-20 2007-05-30 ノーリツ鋼機株式会社 Photo processing equipment
JP2004254060A (en) * 2003-02-20 2004-09-09 Olympus Corp Chroma correction unit
JP2006148605A (en) * 2004-11-19 2006-06-08 Sony Corp Image processing apparatus and image processing method
JP2006148607A (en) * 2004-11-19 2006-06-08 Sony Corp Image processing apparatus and image processing method

Also Published As

Publication number Publication date
JP2008124912A (en) 2008-05-29

Similar Documents

Publication Publication Date Title
US8045222B2 (en) Image processing method, image processing apparatus, computer program product, and recording medium for image processing
JP4464089B2 (en) Color correction apparatus and method
US7986833B2 (en) Image processing method and apparatus for color enhancement and correction
JP2009303172A (en) Color conversion method, color conversion table generated by the same, image processing apparatus, and color conversion program
JP2006229925A (en) Dynamic image saturation enhancement apparatus
JP4033212B2 (en) Color balance adjustment considering color reproduction of specific colors
JP2008206036A (en) Image processor and image processing method
JP3691686B2 (en) Color data conversion apparatus and color data conversion method
JP2010283599A (en) Image processor and color conversion table generating method
JP3800873B2 (en) Image processing apparatus and method
JP4971948B2 (en) Image processing apparatus, image processing method, program, and recording medium
JP2005236604A (en) Video signal compensation method and video signal compensation apparatus
JP2007221336A (en) Device, method and program for processing image
JP2007081829A (en) Image processing apparatus and method
JP4872616B2 (en) Image processing apparatus, image processing method, and program
JP4145022B2 (en) Brightness adjusting device and operation control method thereof
JP2007259434A (en) Image processing apparatus and method of the same
JP2008078737A (en) Image processor, image processing method, and recording medium
US7345786B2 (en) Method for color cast removal in scanned images
JP2007195015A (en) Color conversion apparatus, method, and program
JP4878008B2 (en) Image processing apparatus, image processing method, and program
JP4051919B2 (en) Color image signal processing apparatus, color image signal processing method, and color image signal processing program
JP2008172681A (en) Color converter, color converting method, color conversion program, color conversion coefficient creating apparatus, color conversion coefficient creating method, and color conversion coefficient creation program
JP7230481B2 (en) Color conversion table correction unit and color conversion table correction program
EP3301902A1 (en) Lightness independent non-linear relative chroma mapping

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20090210

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20101118

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20101130

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20110128

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20110712

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20110912

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20111025

A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20111107

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20141202

Year of fee payment: 3

R150 Certificate of patent or registration of utility model

Ref document number: 4872616

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

Free format text: JAPANESE INTERMEDIATE CODE: R150

LAPS Cancellation because of no payment of annual fees
S533 Written request for registration of change of name

Free format text: JAPANESE INTERMEDIATE CODE: R313533

R370 Written measure of declining of transfer procedure

Free format text: JAPANESE INTERMEDIATE CODE: R370