JP4872616B2 - Image processing apparatus, image processing method, and program - Google Patents
Image processing apparatus, image processing method, and program Download PDFInfo
- 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
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
そこで、比較的広い色域を有する色空間から、実効的な色域を抽出して定義し、画像データに含まれる色を、この実効的な色域内の色に変換してから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に開示の方法を採用できる。
しかしながら、特許文献1に開示の方法では、色域の値を超える値の色については、色相・彩度を維持した状態で明度を変更することで色域内の色に変換される。また色域の値を下回る値の色については、色相・明度を維持した状態で彩度を変更することで色域内の色に変換される。このように明度または彩度が単独で変更される結果、意図しない色が発現してしまう場合があった。
However, in the method disclosed in
本発明は上記実情に鑑みて為されたもので、明度・彩度のバランスに配慮しつつ、色の調整を行うことのできる画像処理装置を提供することを、その目的の一つとする。 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
制御部11は、CPU等であり、記憶部12に格納されているプログラムに従って動作する。本実施の形態では、この制御部11は、クライアント装置3から受信される画像データを処理の対象として、当該画像データに含まれる色を調整する処理を行う。そして、当該調整後の画像データを出力装置2に出力する。
The
記憶部12は、メモリ素子や、ディスクデバイス等であり、制御部11によって実行されるプログラムを保持している。このプログラムは、例えばDVD−ROMやCD−ROM等の記憶媒体に格納された状態で提供され、この記憶部12に複写して格納されてもよい。また、この記憶部12は、制御部11のワークメモリとしても動作する。
The
通信部13は、ネットワークインタフェース等の通信手段であり、出力装置2や、クライアント装置3との間でデータを送受する。ここでは、クライアント装置3から受信される画像データを制御部11に出力する。また、制御部11から入力される指示に従って、出力装置2へ画像データを送信する。
The
ここで制御部11の具体的な処理の内容について説明する。制御部11は、クライアント装置3から、出力側機器である出力装置2(ここではプリンタ)にて印刷するべき画像データを受信する。この画像データは、例えば、ビットマップの画像データである。
Here, the specific processing contents of the
本実施の形態に係る画像処理装置1は、この制御部11のソフトウエア処理により、機能的に図2に示すように、色空間変換部21と、後処理部22と、色変換部23とを含んで構成される。ここに色空間変換部21は、処理対象となったビットマップの画像データに含まれる各画素の値(色値)を、所定の色空間での値に変換する。ここで所定の色空間には、予め有意な色を表わす値の範囲(値域)が定められているものとする。
As shown in FIG. 2 functionally, the
後処理部22は、色空間変換部21での変換結果により、変換後の値が上記値域外にあると判断される場合に、当該値を値域内の値に調整する処理を行う。この処理の内容については後に述べる。
The
色変換部23は、後処理部22が出力する色の値を入力値として、予め定められたCLUTを参照し、入力値に対応付けられている出力値(例えばCMYK値)を出力する。ここでは例えば出力装置2へ出力することとしてもよい。また、入力値がCLUT上にない場合は、入力値に近接する値を少なくとも一つ、CLUTから見出し、見出した値に関連づけられている出力値を用いて、補間または補外処理によって出力値を演算する。なお、ここではCLUTの入力値は、予め定めた値域内の値としておいて構わない。後処理部22により、変換後の値が必ず所定の値域内の値に補正されるからである。
The
ここで後処理部22の動作について述べる。以下の例では、色空間変換部21が色値をRGB(Red,Green,Blueからなる色空間)値に変換するものとし、R,G,Bの各成分が「0」から「1」の間にある範囲を、有意な色域として規定しておく。
Here, the operation of the
後処理部22は、まず変換後の値が値域を下回っているか否かを判断し、下回っている場合はそれに対応する処理を行い、次いで変換後の値が値域を上回っているか否かを判断し、上回っている場合は、それに対応する処理を実行する。
The
すなわち後処理部22は、図3に示すように、変換後のRGBの値(以下、区別のため、この値を対象値と呼ぶ)の各成分の値のうち最小の値minRGBを取得する(S11)。そして、この最小値minRGBが値域の最小値である「0」未満(つまり負の値)となっているか否かを調べる(S12)。つまり、対象値のいずれかの成分の値が負となっているか否かを調べる。
That is, as shown in FIG. 3, the
ここでいずれかの成分が負の値となっている場合、初期の輝度値として、対象値により表現される色の輝度を演算する(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
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
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
また、処理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
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
後処理部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
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
また、色度を保存しつつ、輝度を変更する場合は、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
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
一方、処理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
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.
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.
に前記目標輝度の値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から3のいずれか一項に記載の画像処理装置。 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 .
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)
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 |
-
2006
- 2006-11-14 JP JP2006308185A patent/JP4872616B2/en not_active Expired - Fee Related
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 |