[go: up one dir, main page]

JP2003163814A - Color adjustment device - Google Patents

Color adjustment device

Info

Publication number
JP2003163814A
JP2003163814A JP2001361275A JP2001361275A JP2003163814A JP 2003163814 A JP2003163814 A JP 2003163814A JP 2001361275 A JP2001361275 A JP 2001361275A JP 2001361275 A JP2001361275 A JP 2001361275A JP 2003163814 A JP2003163814 A JP 2003163814A
Authority
JP
Japan
Prior art keywords
value
hue
adjustment
median
color
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.)
Granted
Application number
JP2001361275A
Other languages
Japanese (ja)
Other versions
JP3781107B2 (en
Inventor
Kazuyoshi Yoshiyama
和良 吉山
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.)
Sharp Corp
Original Assignee
Sharp 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 Sharp Corp filed Critical Sharp Corp
Priority to JP2001361275A priority Critical patent/JP3781107B2/en
Publication of JP2003163814A publication Critical patent/JP2003163814A/en
Application granted granted Critical
Publication of JP3781107B2 publication Critical patent/JP3781107B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Image Processing (AREA)
  • Processing Of Color Television Signals (AREA)
  • Facsimile Image Signal Circuits (AREA)
  • Color Image Communication Systems (AREA)

Abstract

(57)【要約】 【課題】 RGBで表される色信号に対して、色空間変
換の処理を行わずにHSVでの色判定および色調整を行
うことが可能な色調整装置を提供する。 【解決手段】 入力されたRGB信号に基づいて最大
値、中央値、最小値を出力するための比較手段(大小比
較器1)と、入力データの色相を判別し識別符号を出力
するための色相判定手段(色相判定器2)と、色相毎に
設定された色相調整値、彩度調整値、明度調整値を出力
するための調整値算出手段(調整値算出器3)と、入力
データの明度を調整するための明度調整手段(明度調整
器5)と、入力データの彩度を調整するための彩度調整
手段(彩度調整器4)と、入力データの色相を調整する
ための色相調整手段(色相調整器6)と、αβγ信号を
元のRGB信号へ戻すための選択手段(RGB選択器
7)を備える。
[Problem] To provide a color adjustment device capable of performing color determination and color adjustment in HSV without performing color space conversion processing on color signals represented in RGB. Comparing means (large / small comparator 1) for outputting a maximum value, a median value, and a minimum value based on an input RGB signal, and a hue for determining a hue of input data and outputting an identification code Determination means (hue determination device 2), adjustment value calculation means (adjustment value calculator 3) for outputting the hue adjustment value, saturation adjustment value, and brightness adjustment value set for each hue, and the brightness of the input data Brightness adjustment means for adjusting the color (lightness adjuster 5), saturation adjustment means for adjusting the saturation of the input data (saturation adjuster 4), and hue adjustment for adjusting the hue of the input data Means (hue adjuster 6) and selection means (RGB selector 7) for returning the αβγ signal back to the original RGB signal.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【発明の属する技術分野】本発明は、カラー画像に対し
て色調整を行うための色調整装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a color adjusting device for performing color adjustment on a color image.

【0002】[0002]

【従来の技術】モニタ等の表示装置において、入力され
た色信号を表示する際に、使用条件等に合わせ所望の色
再現性を持つ画像を出力するために色調整処理が行われ
ている。この色調整処理では、赤、緑、青(RGB信
号)を用いるよりも、色相、彩度、明度(HSV)を用
いた方が、人間の感覚として理解し易いとともに調整が
し易いという長所がある。
2. Description of the Related Art In a display device such as a monitor, when an input color signal is displayed, color adjustment processing is performed in order to output an image having desired color reproducibility in accordance with usage conditions. In this color adjustment process, using hue, saturation, and lightness (HSV) has the advantage of being easier to understand as human senses and easier to adjust than using red, green, and blue (RGB signals). is there.

【0003】従来、HSVによる色調整を行う場合に
は、入力される色空間(RGB)からHSVへ色空間の
変換を行い、HSVの値を増減することにより色調整を
行い、その後に元の色空間(RGB)に戻すという方法
が一般的となっている。しかし、HSVへの色空間変換
は一般的なマトリックス演算で実行することができず、
変換に要する処理手順や時間が非常に大きくなるという
問題があった。これを回避する手段として、種々の技術
が提案されている。
Conventionally, when performing color adjustment by HSV, color space conversion from an input color space (RGB) to HSV is performed, color adjustment is performed by increasing or decreasing the value of HSV, and then the original color space is adjusted. A method of returning to the color space (RGB) is common. However, the color space conversion to HSV cannot be performed by a general matrix operation,
There is a problem that the processing procedure and time required for conversion become very large. Various techniques have been proposed as means for avoiding this.

【0004】例えば、特開平8−204976号公報に
開示されているカラー画像処理装置は、CMYK等のデ
バイス依存色をL***等のデバイス非依存色へ変換
する際のカラーマッチングに関するものであり、シア
ン、マゼンタ、イエローの各色と黒とを分離してLUT
を用いた色変換を行うことにより、高精度化かつ所要記
憶要領の削減を実現している。すなわち、図14に示す
ように、3次元LUT色変換器51〜53は、入力色信
号CMYKのうちCMYのみに基づいて色信号L 2 *、a
2 *、b2 *を生成する。この色信号L2 *、a2 *、b2 *のL
***空間内の位置は、実際に生成されるべき出力色
信号L1 *、a1 *、b1 *に対して偏差がある。
For example, Japanese Unexamined Patent Publication No. 8-204976
The disclosed color image processing device is a device such as CMYK.
Vice dependent color is L*a*b*Device-independent colors such as
It is related to color matching when doing
LUT by separating each color of black, magenta, and yellow from black
By performing color conversion using
Achieving a reduction in memory. That is, as shown in FIG.
3D LUT color converters 51-53
Color signal L based on only CMY of the CMYK signals 2 *, A
2 *, B2 *To generate. This color signal L2 *, A2 *, B2 *L
*a*b*The position in space is the output color that should actually be generated.
Signal L1 *, A1 *, B1 *There is a deviation from.

【0005】1次元LUT54は、入力色信号のK色成
分に基づいて明度信号L3 *を生成する。この明度信号L
3 *は、上述した偏差に対応するものである。色信号合成
手段55は、色信号L2 *、a2 *、b2 *と、明度信号L3 *
に基づいて最終的な出力色信号L1 *、a1 *、b1 *を生成
する。
The one-dimensional LUT 54 generates a lightness signal L 3 * based on the K color component of the input color signal. This brightness signal L
The 3 * corresponds to the deviation described above. The color signal synthesizing means 55 uses the color signals L 2 * , a 2 * , b 2 * and the lightness signal L 3 *.
The final output color signals L 1 * , a 1 * , b 1 * are generated based on

【0006】また、特開平10−117291号公報に
開示されている補間器入力データの経路を決定するため
の装置は、色空間変換処理の高速化およびハードウェア
簡素化に関するものであり、最適な補間処理を行うこと
により、LUTを用いた色変換の簡素化を実現してい
る。すなわち、図15に示すように、RGB等の入力色
空間をCMYK等の出力色空間へ変換する際に、高位ビ
ットと低位ビットに分割された入力色データの低位ビッ
トで2の補数処理を選択的に実行し、補間手段の結果を
使用することにより、補間回路の入力データの経路が補
間回路内の正しい計算ブロックに決定される。
The device for determining the path of the interpolator input data disclosed in Japanese Patent Laid-Open No. 10-117291 relates to speeding up of color space conversion processing and simplification of hardware, and is optimal. By performing the interpolation process, simplification of the color conversion using the LUT is realized. That is, as shown in FIG. 15, when converting an input color space such as RGB to an output color space such as CMYK, a 2's complement process is selected by the low order bits of the input color data divided into high order bits and low order bits. And then using the result of the interpolating means, the path of the input data of the interpolating circuit is determined to the correct calculation block in the interpolating circuit.

【0007】また、特開2000−253270号公報
に開示されている色変換テーブル作成装置、作成方法、
色変換テーブル作成プログラムを記録した記録媒体、お
よび色変換装置は、デバイスに依存する色空間の色値か
らデバイスに依存しない色空間の色値に変換するための
色変換テーブルを効率良く作成するための技術に関する
ものであり、参照するカラーターゲットのカラーパッチ
と、入力画像をLUTにより色変換したカラーパッチを
比較して、その色差からLUTの値を補正することによ
り発明の目的を実現している。すなわち、図16
(a),(b)に示すように、色変換格子点に対応する
色値を有する初期値LUTを用意し、カラーパッチ側色
値L***(β)と入力デバイスから出力され初期L
UTで色変換されたカラーパッチ出力値L**
*(α)とを比較して、カラーパッチ番号i毎の色差を
求め、この色差を用いて初期LUTの色値を補正する。
A color conversion table creating apparatus and a creating method disclosed in Japanese Patent Laid-Open No. 2000-253270,
In order to efficiently create a color conversion table for converting a color value of a device-dependent color space into a color value of a device-independent color space, a recording medium recording a color conversion table creation program and a color conversion device. The present invention realizes the object of the invention by comparing a color patch of a color target to be referenced with a color patch obtained by color-converting an input image by an LUT and correcting the LUT value from the color difference. . That is, in FIG.
As shown in (a) and (b), an initial value LUT having color values corresponding to the color conversion grid points is prepared, and the color patch side color values L * a * b * (β) are output from the input device. Initial L
Color patch output value L * a * b color-converted by UT
* (Α) is compared to obtain the color difference for each color patch number i, and the color value of the initial LUT is corrected using this color difference.

【0008】このとき、カラーパッチと格子点の距離d
に応じて、あるカラーパッチに近い格子点ほどそのカラ
ーパッチにおける色差による影響を大きくする重みづけ
をして補正する。また、あるカラーパッチから所定距離
(補正距離D)内の格子点(近傍格子点)に対してのみ
初期LUTの色値を補正する。この一連の補正処理を、
補正距離Dを狭くしながら繰り返してLUTを再度補正
する。
At this time, the distance d between the color patch and the grid point
Accordingly, the closer the grid point is to a certain color patch, the larger the influence due to the color difference in the color patch is, and the weighting is performed. Also, the color value of the initial LUT is corrected only for grid points (neighboring grid points) within a predetermined distance (correction distance D) from a certain color patch. This series of correction processing,
The LUT is corrected again while the correction distance D is narrowed.

【0009】また、特開2000−287074号公報
に開示されている色変換装置および色変換方法は、大容
量メモリを必要としない柔軟な色変換方法に開するもの
であり、マトリックス演算を用いて6色相と色相間領域
を独立して補正することにより発明の目的を実現してい
る。
The color conversion device and color conversion method disclosed in Japanese Patent Laid-Open No. 2000-287074 are open to flexible color conversion methods that do not require a large-capacity memory, and use matrix operations. The object of the invention is realized by independently correcting the six hues and the inter-hue area.

【0010】すなわち、図17に示すように、入力デー
タR、G、Bの最小値αおよび最大値βを算出するため
の手段(αβ算出器61)と、入力データR、G、B、
最小値α、および最大値βを用いて色相データを算出す
るための手段(色相データ算出器62)と、色相データ
を用いて色相データ間の第1の比較データを生成するた
めの手段と、第1の比較データを用いて色相データ間の
第2の比較データを生成するための手段と、色相データ
間の演算を行うための手段(多項式演算器63)と、所
定のマトリックス係数を発生するための手段(係数発生
器65)と、第1および第2の比較データ、多項式演算
器63からの出力、色相データr、g、b、およびマト
リックス係数を用いて所定のマトリックス演算を行い、
演算後のデータを出力するための手段(マトリクス演算
器64)と、出力されたデータに最小値αを加算して色
変換されたデータを合成して出力するための手段(合成
器66)とを備えている。
That is, as shown in FIG. 17, means (αβ calculator 61) for calculating the minimum value α and the maximum value β of the input data R, G, B and the input data R, G, B,
Means for calculating the hue data using the minimum value α and the maximum value β (hue data calculator 62), and means for generating the first comparison data between the hue data using the hue data, Means for generating second comparison data between the hue data using the first comparison data, means for performing an operation between the hue data (polynomial calculator 63), and generating predetermined matrix coefficients Means (coefficient generator 65) for performing a predetermined matrix operation using the first and second comparison data, the output from the polynomial operator 63, the hue data r, g, b, and the matrix coefficient,
A means for outputting the data after the calculation (matrix calculator 64), and a means for adding the minimum value α to the output data and synthesizing and outputting the color-converted data (synthesizer 66) Is equipped with.

【0011】上述した特開平8−204976号公報に
開示された技術では、色変換に用いるLUTを色成分で
分離することにより所要記憶容量の削減を実現してお
り、また、特開平10−117291号公報に開示され
た技術では、補間回路の計算ブロック経路を決定するこ
とにより補間演算の簡素化、すなわちLUTの簡素化を
実現している。さらに、特開2000−253270号
公報に開示された技術では、カラーパッチの比較演算に
よりLUTを補正し、最適な色変換を実現している。こ
れらの技術の共通点は、色変換の際にLUTを用いるこ
とであるが、最適化してLUTの記憶容量を削減したと
してもその削減量には限界がある。
In the technique disclosed in Japanese Unexamined Patent Publication No. 8-204976 mentioned above, the required storage capacity is reduced by separating the LUT used for color conversion by color components, and Japanese Unexamined Patent Publication No. 10-117291. In the technique disclosed in the publication, the calculation block path of the interpolation circuit is determined to simplify the interpolation calculation, that is, the LUT. Further, in the technique disclosed in Japanese Patent Laid-Open No. 2000-253270, the LUT is corrected by the color patch comparison calculation to realize the optimum color conversion. The common point of these techniques is to use an LUT at the time of color conversion, but even if the storage capacity of the LUT is reduced by optimization, there is a limit to the reduction amount.

【0012】また、特開2000−287074号公報
に開示された技術では、マトリックス演算による色変換
が行われており、LUTを用いないために、大容量メモ
リは不要となっている。しかし、マトリックス演算式
は、マトリックス係数Fijが、i=1〜3、j=1〜
5であるため比較的大きな演算となり、ハードウェア化
した際の回路規模が大きくなってしまう。
Further, in the technique disclosed in Japanese Unexamined Patent Publication No. 2000-287074, color conversion is performed by matrix calculation, and since a LUT is not used, a large capacity memory is unnecessary. However, in the matrix calculation formula, the matrix coefficient Fij is i = 1 to 3, j = 1 to
Since it is 5, the calculation becomes relatively large, and the circuit scale becomes large when implemented as hardware.

【0013】[0013]

【発明が解決しようとする課題】上述したように、従来
の技術では、RGB信号をHSVで色調整するために行
われる色変換テーブルによる色変換では、LUT(ルッ
クアップテーブル)を用いているため、大容量のメモリ
を必要とし、装置の簡略化が困難であるうえに使用条件
等の変更に対して柔軟に対応できないという問題があっ
た。
As described above, in the conventional technique, the LUT (look-up table) is used in the color conversion by the color conversion table for adjusting the color of the RGB signal by HSV. However, there is a problem that a large-capacity memory is required, it is difficult to simplify the apparatus, and it is not possible to flexibly cope with changes in usage conditions.

【0014】また、色相成分の分解による色調整では、
HSV3属性における色調整が考慮されていない。この
ため、彩度、明度を変化させることなく色相だけを調整
するような場合の処理は困難であり、彩度、明度の明確
な色調整はできないという問題があった。
Further, in the color adjustment by separating the hue component,
Color adjustment in the HSV3 attribute is not considered. For this reason, it is difficult to perform a process in which only the hue is adjusted without changing the saturation and the brightness, and there is a problem that the clear color adjustment of the saturation and the brightness cannot be performed.

【0015】本発明は、上述した問題点を解決するため
になされたものであり、RGBで表される色信号に対し
て、色空間変換の処理を行わずにHSVでの色判定およ
び色調整を行うことが可能な色調整装置を提供すること
を目的とする。
The present invention has been made to solve the above-mentioned problems, and color determination and color adjustment by HSV are performed on a color signal represented by RGB without performing color space conversion processing. It is an object of the present invention to provide a color adjusting device capable of performing.

【0016】[0016]

【課題を解決するための手段】本発明に係る色調整装置
は、入力データであるRGB信号に基づいてその大小関
係である最大値α、中央値β、および最小値γを算出し
て出力するための比較手段と、前記入力データであるR
GB信号と前記比較手段から出力される前記最大値α、
前記中央値β、および前記最小値γを用いて入力データ
の色相を判定し識別符号を出力するための色相判定手段
と、前記色相判定手段から出力される識別符号を用いて
色相毎に設定された色相調整値Ah、彩度調整値As、
および明度調整値Avを出力するための調整値算出手段
と、前記最大値α、前記中央値β、前記最小値γ、およ
び前記明度調整値Avを用いて入力データの明度を調整
するための明度調整手段と、前記最大値α、前記中央値
β、前記最小値γ、および前記彩度調整値Asを用いて
入力データの彩度を調整するための彩度調整手段と、前
記最大値α、前記中央値β、前記最小値γ、および前記
色相調整値Ahを用いて入力データの色相を調整するた
めの色相調整手段と、前記最大値α、前記中央値β、前
記最小値γ、および前記識別符号を用いて、αβγ信号
を元のRGB信号へ戻すための選択手段とを備えたこと
を特徴とするものである。
A color adjusting apparatus according to the present invention calculates and outputs a maximum value α, a median value β, and a minimum value γ, which are magnitude relationships, based on RGB signals which are input data. Means for comparing with the input data R
The GB signal and the maximum value α output from the comparison means,
It is set for each hue by using the median value β and the minimum value γ, the hue determining means for determining the hue of the input data and outputting the identification code, and the identification code output from the hue determining means. Hue adjustment value Ah, saturation adjustment value As,
And an adjustment value calculating means for outputting the brightness adjustment value Av, and a brightness for adjusting the brightness of the input data using the maximum value α, the median value β, the minimum value γ, and the brightness adjustment value Av. Adjusting means, a saturation adjusting means for adjusting the saturation of the input data using the maximum value α, the median value β, the minimum value γ, and the saturation adjusting value As; and the maximum value α, Hue adjusting means for adjusting the hue of the input data using the median value β, the minimum value γ, and the hue adjustment value Ah, and the maximum value α, the median value β, the minimum value γ, and the It is characterized in that it is provided with a selecting means for returning the αβγ signal to the original RGB signal by using the identification code.

【0017】また、前記色調整装置において、前記色相
判定手段は、前記入力データであるRGB信号と前記比
較手段から出力される前記最大値α、前記中央値β、お
よび前記最小値γの対応関係と、前記中央値β、前記最
大値α、および前記最小値γの相対的な大小関係とに基
づいて入力データの色相を判定し、前記調整値算出手段
は、上記判定手段で判定された色相に基づいて色相毎に
設定された前記色相調整値Ah、前記彩度調整値As、
および前記明度調整値Avを出力するように構成する。
Further, in the color adjusting device, the hue determining means has a correspondence relationship between the RGB signal which is the input data and the maximum value α, the median value β and the minimum value γ output from the comparing means. And the relative value relationship of the median β, the maximum α, and the minimum γ, the hue of the input data is determined, and the adjustment value calculation means is the hue determined by the determination means. The hue adjustment value Ah and the saturation adjustment value As set for each hue based on
And the brightness adjustment value Av is output.

【0018】また、前記色調整装置において、前記明度
調整手段は、前記最大値α、前記中央値β、前記最小値
γ、および前記明度調整値Avに基づいて、前記最大値
αと前記中央値β、前記最大値αと前記最小値γの比を
一定に保った状態で、前記明度調整値Avに従って前記
最大値α、前記中央値β、および前記最小値γを調整す
るとともに、当該調整により前記最大値α、前記中央値
β、および前記最小値γがオーバーフローまたはアンダ
ーフローとならないように調整するための明度クリップ
処理手段を含んで構成する。
Further, in the color adjusting device, the brightness adjusting means is configured to set the maximum value α and the median value based on the maximum value α, the median value β, the minimum value γ, and the brightness adjustment value Av. β, while maintaining the ratio of the maximum value α and the minimum value γ constant, adjust the maximum value α, the median value β, and the minimum value γ according to the brightness adjustment value Av, and The configuration includes a lightness clip processing unit for adjusting the maximum value α, the median value β, and the minimum value γ so as not to overflow or underflow.

【0019】また、前記色調整装置において、前記明度
クリップ処理手段は、前記最大値α、前記中央値β、前
記最小値γ、および前記明度調整値Avに基づいて、前
記明度調整手段により前記最大値α、前記中央値β、お
よび前記最小値γがオーバーフローまたはアンダーフロ
ーとなる場合を検出し、事前に前記明度調整値Avをク
リップするためのクリップ手段を含んで構成する。
In the color adjusting device, the lightness clip processing means may cause the lightness adjusting means to perform the maximum operation based on the maximum value α, the median value β, the minimum value γ, and the lightness adjustment value Av. It is configured to include a clipping unit for detecting the case where the value α, the median value β, and the minimum value γ are overflow or underflow, and clipping the brightness adjustment value Av in advance.

【0020】また、前記色調整装置において、前記彩度
調整手段は、前記最大値α、前記中央値β、前記最小値
γ、および前記彩度調整値Asに基づいて、前記最大値
αを変化させずに前記最大値αと前記中央値βの差分デ
ータと、前記中央値βと前記最小値γの差分データの比
を一定に保った状態で、前記彩度調整値Asに従って前
記中央値βおよび前記最小値γを調整し、当該調整によ
り前記中央値βおよび前記最小値γが前記最大値αより
大きくまたはアンダーフローとならないように調整する
ための彩度クリップ処理手段を含んで構成する。
Further, in the color adjusting apparatus, the saturation adjusting means changes the maximum value α based on the maximum value α, the median value β, the minimum value γ, and the saturation adjustment value As. Without maintaining the ratio of the difference data between the maximum value α and the median value β and the difference data between the median value β and the minimum value γ, the median value β is adjusted according to the saturation adjustment value As. And a saturation clip processing means for adjusting the minimum value γ and adjusting the adjustment so that the median value β and the minimum value γ are not larger than the maximum value α or underflow.

【0021】また、前記色調整装置において、前記彩度
クリップ処理手段は、前記最大値α、前記中央値β、前
記最小値γ、および前記彩度調整値Asに基づいて、前
記彩度調整手段により前記中央値βおよび前記最小値γ
が前記最大値αより大きくまたはアンダーフローとなる
場合を検出し、事前に前記彩度調整値Asをクリップす
るように構成する。
Further, in the color adjusting device, the saturation clipping processing means, based on the maximum value α, the median value β, the minimum value γ, and the saturation adjustment value As, the saturation adjustment means. The median value β and the minimum value γ
Is larger than the maximum value α or underflow is detected, and the saturation adjustment value As is clipped in advance.

【0022】また、前記色調整装置において、前記色相
調整手段は、前記最大値α、前記中央値β、前記最小値
γ、および前記色相調整値Ahに基づいて、前記最大値
αおよび前記最小値γを変化させずに、前記色相調整値
Ahに従って前記中央値βを調整し、当該調整により前
記中央値βが前記最大値αより大きくまたは前記最小値
γより小さくならないように調整するための色相クリッ
プ処理手段を含んで構成する。
Further, in the color adjusting device, the hue adjusting means is configured to set the maximum value α and the minimum value based on the maximum value α, the median value β, the minimum value γ, and the hue adjustment value Ah. A hue for adjusting the median value β according to the hue adjustment value Ah without changing γ and adjusting the median value β so as not to be larger than the maximum value α or smaller than the minimum value γ. The clip processing means is included.

【0023】また、前記色調整装置において、前記色相
クリップ処理手段は、前記最大値α、前記中央値β、お
よび前記最小値γに基づいて、前記中央値βが前記最大
値αより大きい場合に前記中央値βを前記最大値αにク
リップし、前記中央値βと前記最大値αの差分を前記最
大値αから減算し、前記中央値βが前記最小値γより小
さい場合に前記中央値βを前記最小値γにクリップし、
前記最小値γと前記中央値βの差分を前記最小値γに加
算するように構成する。
In the color adjusting device, the hue clip processing means determines, based on the maximum value α, the median value β and the minimum value γ, that the median value β is larger than the maximum value α. The median value β is clipped to the maximum value α, the difference between the median value β and the maximum value α is subtracted from the maximum value α, and when the median value β is smaller than the minimum value γ, the median value β To the minimum value γ,
The difference between the minimum value γ and the median value β is added to the minimum value γ.

【0024】[0024]

【発明の実施の形態】以下、図面に基づいて、本発明に
係る色調整装置の実施形態を説明する。図1は、本発明
の一実施形態に係る色調整装置の構成を示すブロック図
である。本発明の一実施形態に係る色調整装置は、図1
に示すように入力データRi,Gi,Biの最大値α
i、中央値βi、最小値γiを算出して出力するととも
に、その対応関係を識別する識別符号S1を生成して出
力するための大小比較器1と、S1およびαi、βi、
γiに基づいて入力データの色相判定を行い判定色相を
識別する色相符号S2を出力するための色相判定器2
と、S2に基づいて色相毎に設定された調整値As,A
v,Ahを出力するための調整値算出器3と、αi、β
i、γiをAsに従って調整し調整後のα1、β1、γ
1を出力するための彩度調整器4と、α1、β1、γ1
をAvに従って調整し調整後のα2、β2、γ2を出力
するための明度調整器5と、α2、β2、γ2をAhに
従って調整し調整後のα3、β3、γ3を出力するため
の色相調整器6と、α3、β3、γ3をS2に従って元
のRGB信号へ振り分けて、Ro,Go,Boを出力す
るためのRGB選択器7とを備えている。
DETAILED DESCRIPTION OF THE INVENTION An embodiment of a color adjusting apparatus according to the present invention will be described below with reference to the drawings. FIG. 1 is a block diagram showing the configuration of a color adjusting apparatus according to an embodiment of the present invention. A color adjusting apparatus according to an embodiment of the present invention is shown in FIG.
As shown in, the maximum value α of the input data Ri, Gi, Bi
i, the median value βi, and the minimum value γi are calculated and output, and the magnitude comparator 1 for generating and outputting the identification code S1 for identifying the corresponding relationship, and S1 and αi, βi,
A hue determiner 2 for performing a hue determination of input data based on γi and outputting a hue code S2 for identifying the determined hue.
And the adjustment values As and A set for each hue based on S2.
adjustment value calculator 3 for outputting v, Ah, and αi, β
i, γi are adjusted according to As, and α1, β1, γ after adjustment
Saturation adjuster 4 for outputting 1, and α1, β1, γ1
And a lightness adjuster 5 for adjusting α according to Av to output adjusted α2, β2, γ2, and a hue adjuster for adjusting α2, β2, γ2 according to Ah and outputting adjusted α3, β3, γ3. 6 and an RGB selector 7 for distributing α3, β3, γ3 into the original RGB signals according to S2 and outputting Ro, Go, Bo.

【0025】この色調整装置において、入力された色デ
ータRi、Gi、Biは大小比較器1に送られ、大小比
較器1は入力された色データRi、Gi、Biに基づい
て最大値αi、中央値βi、最小値γiを算出して出力
するとともに、Ri、Gi、Biのうちの最大値となる
データ、中央値となるデータ、最小値となるデータを特
定するための識別符号S1を生成して出力する。
In this color adjusting apparatus, the input color data Ri, Gi, Bi is sent to the magnitude comparator 1, and the magnitude comparator 1 outputs the maximum value αi, based on the input color data Ri, Gi, Bi. The median value βi and the minimum value γi are calculated and output, and the identification code S1 for specifying the maximum value data, the median value data, and the minimum value data of Ri, Gi, and Bi is generated. And output.

【0026】図2は、識別符号S1と、Ri、Gi、B
i、αi、βi、γiの関係を示す説明図である。な
お、図中の識別符号S1の値はその一例を示すのもであ
り、他の値であってもよい。色相判定器2は、αi、β
i、γiを入力し、αiとβiの差分データψ=αi−
βi、βiとγiの差分データω=βi−γiを算出す
るとともに、ψとωの大小比較を行う。この結果と識別
符号S1とに基づいて、入力データの属する色相を判別
し、色相符号S2を生成する。
FIG. 2 shows the identification code S1 and Ri, Gi, B.
It is explanatory drawing which shows the relationship of i, (alpha) i, (beta) i, (gamma) i. It should be noted that the value of the identification code S1 in the drawing is one example, and may be another value. The hue determiner 2 uses αi, β
i, γi are input, and the difference data ψ = αi− between αi and βi
Difference data ω = βi−γi of βi, βi and γi is calculated, and the magnitude comparison of ψ and ω is performed. Based on this result and the identification code S1, the hue to which the input data belongs is determined, and the hue code S2 is generated.

【0027】図3は、色相判定器2による色相判定を示
す模式図であり、図4は、色相符号S2と判別色相、S
1、ψ−ωの関係を示す説明図である。例えば、入力デ
ータが、Ri=200、Gi=80、Bi=160であ
るとすると、αiはRiと判別されるため、色相はマゼ
ンタ〜イエロー間であり、βiがBiであるため、マゼ
ンタ〜レッド間と絞り込まれる。最後に、ψ=40、ω
=80と算出されるため、入力データの色相は最終的に
マゼンタと識別され、色相符号S2=10が出力され
る。なお、図中の色相符号S2の値はその一例を示すも
のであり、他の値であってもよい。
FIG. 3 is a schematic diagram showing the hue determination by the hue determiner 2, and FIG. 4 is the hue code S2 and the determined hues S and S.
It is explanatory drawing which shows the relationship of 1 and (psi)-(omega). For example, if the input data is Ri = 200, Gi = 80, and Bi = 160, αi is determined to be Ri, so the hue is between magenta and yellow, and βi is Bi, so magenta to red. It is narrowed down. Finally, ψ = 40, ω
= 80, the hue of the input data is finally identified as magenta, and the hue code S2 = 10 is output. It should be noted that the value of the hue code S2 in the figure shows an example thereof, and may be another value.

【0028】調整値算出器3は、S2を入力し、判別さ
れた色相に設定された色相調整値Ah、彩度調整値A
s、明度調整値Avを出力する。色相毎に異なる調整値
を設定することにより、各色相毎に独立して色調整を行
うことができる。例えば、入力データの赤色を色相調整
することにより黄色に変換したり、薄い青色を彩度調整
して濃い青色に変換したり、緑色を明るくしつつ黄色を
赤色に変換したりすることができる。
The adjustment value calculator 3 receives S2 and inputs the hue adjustment value Ah and the saturation adjustment value A set to the determined hue.
s and the brightness adjustment value Av are output. By setting different adjustment values for each hue, color adjustment can be performed independently for each hue. For example, the red color of the input data can be converted into yellow by adjusting the hue, the light blue can be converted into dark blue by adjusting the saturation, or the yellow can be converted into the red while brightening the green.

【0029】図5は、彩度調整器4の構成の一例を示す
ブロック図である。彩度調整器4は、図5に示すよう
に、入力されたデータの差分を出力するための減算器8
a,8bと、差分データの比を算出するための除算器9
と、調整値と差分データの比との乗算値を出力するため
の乗算器10と、入力データと調整値との加算値を出力
するための加算器11a,11bと、クリップ処理器1
2とを備えている。
FIG. 5 is a block diagram showing an example of the structure of the saturation adjuster 4. As shown in FIG. 5, the saturation adjuster 4 has a subtracter 8 for outputting the difference between the input data.
a, 8b and a divider 9 for calculating the ratio of the difference data
, A multiplier 10 for outputting a multiplication value of the adjustment value and the ratio of the difference data, adders 11a and 11b for outputting an addition value of the input data and the adjustment value, and a clip processor 1
2 and.

【0030】図6は、クリップ処理器12における処理
の手順を示すフローチャートである。大小比較器1から
出力されたαi,βi,γiは、彩度調整器4に送ら
れ、減算器8a,8bにより差分データψ=αi−β
i、χ=αi−γiを算出し、除算器9によりこれらの
比ψ/χを算出する。そして、加算器11bにより彩度
調整値Asとγiを加算するとともに、差分データの比
が保たれるように、乗算器10により彩度調整値Asと
差分データの比を乗算して、加算器11aによりβiと
加算して出力する。彩度調整では最大値を変化させない
ので、αiはそのまま出力する。したがって、彩度調整
器4の出力は、α1=αi、β1=βi+As*ψ/
χ、γ1=γi+Asとなる。
FIG. 6 is a flow chart showing the procedure of processing in the clip processor 12. [Alpha] i, [beta] i, [gamma] i output from the magnitude comparator 1 is sent to the saturation adjuster 4, and the subtractor 8a, 8b subtracts the difference data [psi] = [alpha] i- [beta].
i, χ = αi−γi is calculated, and the ratio ψ / χ is calculated by the divider 9. Then, the adder 11b adds the saturation adjustment values As and γi, and the multiplier 10 multiplies the ratio of the saturation adjustment values As and the difference data so that the ratio of the difference data is maintained. 11a adds and outputs βi. Since the maximum value is not changed in the saturation adjustment, αi is output as it is. Therefore, the output of the saturation adjuster 4 is α1 = αi, β1 = βi + As * ψ /
χ, γ1 = γi + As.

【0031】また、彩度調整器4内のクリップ処理器1
2では、図6に示すように、αi、βi、γi、Asが
入力されると(S1)、γ1がα1より大きくなる場
合、またはγ1がアンダーフローの場合に、γ1をα1
にクリップし、あるいはγ1をアンダーフローにならな
い最小値「0」にクリップするように、彩度調整値As
に対してクリップ処理を行う。すなわち、Asとαi−
γiとを比較し(S2)、Asがαi−γiよりも大き
い場合には、調整後の値であるγ1がα1より大きくな
るので、γ1をα1にクリップするために、Asをαi
−γiにクリップして(S3)、Asを出力する(S
6)。一方、Asがαi−γiよりも小さく、かつ−γ
iよりも小さい場合には(S4)、γ1が「0」より小
さくなりアンダーフローとなるので、γ1を「0」にク
リップするために、Asを−γiにクリップして(S
5)、Asを出力する(S6)。
Further, the clip processor 1 in the saturation adjuster 4
2, when αi, βi, γi, and As are input (S1) as shown in FIG. 6, when γ1 is larger than α1 or when γ1 is underflow, γ1 is changed to α1.
Saturation adjustment value As to clip to or to γ1 to the minimum value "0" that does not cause underflow.
Clip processing is performed on. That is, As and αi-
γi is compared (S2), and when As is larger than αi−γi, the adjusted value γ1 becomes larger than α1. Therefore, As is clipped to α1 by As.
Clip to -γi (S3) and output As (S
6). On the other hand, As is smaller than αi−γi and −γ
If it is smaller than i (S4), γ1 becomes smaller than “0” and an underflow occurs. Therefore, to clip γ1 to “0”, As is clipped to −γi (S4).
5), As is output (S6).

【0032】図7は、彩度とαβγ信号の関係を示す模
式図である。図7から明らかなように、αβγ信号を図
7に示す直線に沿って増減することにより、色相、明度
を変化させることなく彩度を調整することができる。
FIG. 7 is a schematic diagram showing the relationship between the saturation and the αβγ signal. As is clear from FIG. 7, by increasing / decreasing the αβγ signal along the straight line shown in FIG. 7, it is possible to adjust the saturation without changing the hue and lightness.

【0033】図8は、明度調整器5の構成の一例を示す
ブロック図である。明度調整器5は、図8に示すよう
に、入力データの比を算出するための除算器13a,1
3bと、調整値と入力データの比との乗算値を出力する
ための乗算器14a,14bと、入力データと調整値の
加算値を出力するための加算器15a,15b,15c
と、クリップ処理器16とを備えている。
FIG. 8 is a block diagram showing an example of the configuration of the lightness adjuster 5. As shown in FIG. 8, the brightness adjuster 5 includes dividers 13a, 1 for calculating a ratio of input data.
3b, multipliers 14a and 14b for outputting the multiplication value of the adjustment value and the ratio of the input data, and adders 15a, 15b and 15c for outputting the addition value of the input data and the adjustment value.
And a clip processor 16.

【0034】図9は、クリップ処理器16における処理
の手順を示すフローチャートである。彩度調整器4から
出力されたα1,β1、γ1は明度調整器5に送られ、
除算器13a,13bによりα1とβ1の比β1/α1
と、α1とγ1の比γ1/α1を算出する。そして、加
算器15aにより明度調整値Avとα1を加算するとと
もに、α1とβ1、α1とγ1の比が保たれるように、
乗算器14a,14bにより、明度調整値Avに対し
て、それぞれα1とβ1の比、α1とγ1の比を乗算
し、加算器15b,15cによりβ1,γ1と加算して
出力する。したがって、明度調整器5の出力は、α2=
α1+Av、β2=β1+Av*β1/α1、γ2=γ
1+Av*γ1/α1となる。
FIG. 9 is a flow chart showing the procedure of processing in the clip processor 16. The α1, β1, and γ1 output from the saturation adjuster 4 are sent to the brightness adjuster 5,
The ratio β1 / α1 of α1 and β1 by the dividers 13a and 13b
Then, the ratio γ1 / α1 of α1 and γ1 is calculated. Then, the brightness adjustment value Av and α1 are added by the adder 15a, and the ratios of α1 and β1 and α1 and γ1 are maintained,
Multipliers 14a and 14b multiply the brightness adjustment value Av by the ratio of α1 to β1 and the ratio of α1 to γ1, respectively, and adders 15b and 15c add β1 and γ1 to output the result. Therefore, the output of the brightness adjuster 5 is α2 =
α1 + Av, β2 = β1 + Av * β1 / α1, γ2 = γ
1 + Av * γ1 / α1.

【0035】また、明度調整器5内のクリップ処理器1
6では、図9に示すように、α1,β1,γ1,Avが
入力されると(S11)、α2がオーバーフローまたは
アンダーフローの場合に、α2をオーバーフローになら
ない最大の値MAXにクリップし、あるいはアンダーフ
ローにならない最小の値「0」にクリップするように、
明度調整値Avに対してクリップ処理を行う。
Further, the clip processor 1 in the brightness adjuster 5
6, when α1, β1, γ1, and Av are input (S11) as shown in FIG. 9, when α2 overflows or underflows, α2 is clipped to the maximum value MAX that does not cause overflow, or Clip to the minimum value "0" that does not cause underflow,
Clip processing is performed on the brightness adjustment value Av.

【0036】すなわち、AvとMAX−α1を比較し
(S12)、AvがMAX−α1よりも大きい場合に
は、調整後の値であるα2がMAXより大きくなるの
で、α2をMAXにクリップするために、AvをMAX
−α1にクリップして(S13)、Avを出力する(S
16)。一方、AvがMAX−α1よりも小さく、かつ
−α1よりも小さい場合には、α2が「0」より小さく
なるので、α2を「0」にクリップするために、Avを
−α1にクリップして(S15)、Avを出力する(S
16)。
That is, Av is compared with MAX-α1 (S12), and when Av is larger than MAX-α1, the adjusted value α2 becomes larger than MAX, so α2 is clipped to MAX. And Av to MAX
Clip to -α1 (S13) and output Av (S
16). On the other hand, when Av is smaller than MAX-α1 and smaller than −α1, α2 is smaller than “0”. Therefore, to clip α2 to “0”, Av is clipped to −α1. (S15), Av is output (S
16).

【0037】図10は、明度とαβγ信号の関係を示す
模式図である。図10から明らかなように、αβγ信号
を図10に示す直線に沿って増減することにより、色
相、彩度を変化させることなく明度を調整することがで
きる。
FIG. 10 is a schematic diagram showing the relationship between the brightness and the αβγ signal. As is apparent from FIG. 10, by increasing / decreasing the αβγ signal along the straight line shown in FIG. 10, the lightness can be adjusted without changing the hue and the saturation.

【0038】図11は、色相調整器6の構成の一例を示
すブロック図である。色相調整器6は、図11に示すよ
うに、入力デ一夕と調整値の加算値を出力するための加
算器17と、クリップ処理器18とを備えている。
FIG. 11 is a block diagram showing an example of the configuration of the hue adjuster 6. As shown in FIG. 11, the hue adjuster 6 includes an adder 17 for outputting the added value of the input value and the adjustment value, and a clip processor 18.

【0039】図12は、クリップ処理器18における処
理の手順を示すフローチャートである。明度調整器5か
ら出力されたα2,β2,γ2は色相調整器6に送ら
れ、加算器17により色相調整値Ahとβ2を加算し、
クリップ処理器18に送られる。クリップ処理が起こら
なければ、最大値、最小値は変化しないので、α2、γ
2はそのまま出力され、色相調整器6の出力は、α3=
α2、β3=β2+Ah、γ3=γ2となる。
FIG. 12 is a flow chart showing the procedure of processing in the clip processor 18. Α2, β2, γ2 output from the lightness adjuster 5 are sent to the hue adjuster 6, and the adder 17 adds the hue adjustment values Ah and β2,
It is sent to the clip processor 18. If clipping does not occur, the maximum and minimum values do not change, so α2, γ
2 is output as it is, and the output of the hue adjuster 6 is α3 =
α2, β3 = β2 + Ah, and γ3 = γ2.

【0040】色相調整器6内のクリップ処理器18で
は、図12に示すように、α1,β1,γ1が入力され
ると(S21)、調整後の値であるβ2a=β2+Ah
とα2とを比較し(S22)、β2a=β2+Ahがα
2より大きい場合には、β2aをα2にクリップし、β
2aとα2の差分データδ1=β2a−α2とα2の減
算を行って(S23)、α3,β3,γ3を出力する
(S26)。したがって、出力は、α3=α2−δ1、
β3=α2、γ3=γ2となる。
In the clip processor 18 in the hue adjuster 6, when α1, β1 and γ1 are input (S21) as shown in FIG. 12, the adjusted value β2a = β2 + Ah.
And α2 are compared (S22), and β2a = β2 + Ah is α
If it is greater than 2, clip β2a to α2,
The difference data δ1 = β2a−α2 and α2 between 2a and α2 is subtracted (S23), and α3, β3, and γ3 are output (S26). Therefore, the output is α3 = α2-δ1,
β3 = α2 and γ3 = γ2.

【0041】一方、β2a=β2+Ahがα2より小さ
く、かつγ2より小さい場合には、β2aをγ2にクリ
ップし、γ2とβ2aの差分データδ2=γ2−β2a
とγ2の加算を行って(S25)、α3,β3,γ3を
出力する(S26)。したがって、出力は、α3=α
2、β3=γ2、γ3=γ2+δ2となる。
On the other hand, when β2a = β2 + Ah is smaller than α2 and smaller than γ2, β2a is clipped to γ2 and the difference data δ2 = γ2-β2a between γ2 and β2a.
And γ2 are added (S25), and α3, β3, γ3 are output (S26). Therefore, the output is α3 = α
2, β3 = γ2, γ3 = γ2 + δ2.

【0042】図13は、色相とαβγ信号の関係を示す
模式図である。図13から明らかなように、αβγ信号
を図13に示す直線に沿って増減することにより、彩
度、明度を変化させることなく色相を調整することがで
きる。最後に、色相調整器6から出力されたα3、β
3、γ3はRGB選択器7に送られ、色相判定器2の出
力である色相符号S2に基づいて元のR,G,Bデータ
に振り分けられ、色調整後のデータRo,Go,Boと
して出力される。
FIG. 13 is a schematic diagram showing the relationship between the hue and the αβγ signal. As is clear from FIG. 13, by increasing / decreasing the αβγ signal along the straight line shown in FIG. 13, the hue can be adjusted without changing the saturation and the brightness. Finally, α3 and β output from the hue adjuster 6
3 and γ3 are sent to the RGB selector 7, distributed to the original R, G, B data based on the hue code S2 which is the output of the hue determiner 2, and output as data Ro, Go, Bo after color adjustment. To be done.

【0043】[0043]

【発明の効果】本発明に係る色調整装置は、RGB信号
を複雑な色空間変換を行うことなくHSVで色調整を行
うことが可能であり、装置の簡略化および処理時間の短
縮化を実現することができる。また、色空間変換を行わ
ないために、演算誤差がなく、精度の高い色調整を行う
ことができる。
The color adjusting apparatus according to the present invention can perform color adjustment by HSV without performing complicated color space conversion of RGB signals, and realizes simplification of the apparatus and shortening of processing time. can do. Further, since color space conversion is not performed, there is no calculation error, and highly accurate color adjustment can be performed.

【0044】また、本発明に係る色調整装置の色相判定
手段は、入力データの色相を判別し、色相毎に色相、彩
度、明度の調整値を設定することにより、各色相毎に独
立して色相、彩度、明度の調整を行うことができる。
Further, the hue judging means of the color adjusting apparatus according to the present invention judges the hue of the input data and sets the adjustment values of the hue, the saturation and the lightness for each hue, so that each hue can be independent. The hue, saturation, and brightness can be adjusted.

【0045】また、本発明に係る色調整装置の明度調整
手段は、最大値と中央値および最大値と最小値の比を一
定に保ちつつ、最大値、中央値、最小値を調整すること
により、色相、彩度を変化させることなく明度だけを調
整することができる。
Further, the lightness adjusting means of the color adjusting apparatus according to the present invention adjusts the maximum value, the median value and the minimum value while keeping the ratio of the maximum value and the median value and the maximum value and the minimum value constant. It is possible to adjust only the lightness without changing the hue and saturation.

【0046】また、本発明に係る色調整装置の明度調整
手段に含まれるクリップ手段は、最大値と中央値、最大
値と最小値の比を一定に保ちつつ、最大値、中央値、最
小値のクリップ処理を行うことにより、最大値がオーバ
ーフローまたはアンダーフローした場合であっても、色
相、彩度を変化させることなく違和感のない明度調整を
行うことができる。
Further, the clipping means included in the lightness adjusting means of the color adjusting apparatus according to the present invention is such that the maximum value, the median value and the minimum value are kept constant while keeping the maximum value and the median value and the ratio of the maximum value and the minimum value constant. By performing the clipping process of (1), even if the maximum value overflows or underflows, it is possible to adjust the brightness without a feeling of strangeness without changing the hue and the saturation.

【0047】また、本発明に係る色調整装置の彩度調整
手段は、最大値を変化させずに、最大値と中央値の差分
データおよび最大値と最小値の差分データの比を一定に
保ちつつ、中央値、最小値を調整することにより、色
相、明度を変化させることなく彩度だけを調整すること
ができる。
Further, the saturation adjusting means of the color adjusting device according to the present invention keeps the ratio of the difference data between the maximum value and the median value and the difference data between the maximum value and the minimum value constant without changing the maximum value. On the other hand, by adjusting the median value and the minimum value, it is possible to adjust only the saturation without changing the hue and lightness.

【0048】また、本発明に係る色調整装置の彩度調整
手段に含まれるクリップ手段は、最大値を変化させず
に、最大値と中央値の差分データおよび最大値と最小値
の差分データの比を一定に保ちつつ、中央値、最小値の
クリップ処理を行うことにより、最小値がアンダーフロ
ーまたは最大値より大きな値となった場合であっても、
色相、明度を変化させることなく違和感のない彩度調整
を行うことができる。
Further, the clipping means included in the saturation adjusting means of the color adjusting apparatus according to the present invention can change the maximum value and the median value difference data and the maximum value and the minimum value difference data without changing the maximum value. Even if the minimum value becomes larger than the underflow or the maximum value by performing the clipping process of the median value and the minimum value while keeping the ratio constant,
It is possible to perform saturation adjustment without changing the hue and the brightness without changing the feeling.

【0049】また、本発明に係る色調整装置の色相調整
手段は、最大値、最小値を変化させずに中央値を調整す
ることにより、彩度、明度を変換させることなく色相だ
けを調整することができる。
Further, the hue adjusting means of the color adjusting apparatus according to the present invention adjusts only the hue without converting the saturation and lightness by adjusting the median value without changing the maximum value and the minimum value. be able to.

【0050】また、本発明に係る色調整装置の色相調整
手段に含まれるクリップ手段は、調整後の中央値が最大
値より大きい場合に、中央値を最大値でクリップして中
央値と最大値の差分を最大値から減算し、調整後の中央
値が最小値より小さい場合に、中央値を最小値でクリッ
プして中央値と最小値の差分を最小値に加算することに
より、彩度、明度を変化させることなく違和感のない色
相調整を行うことができる。
Further, the clipping means included in the hue adjusting means of the color adjusting device according to the present invention clips the median value to the maximum value and clips the median value and the maximum value when the adjusted median value is larger than the maximum value. If the adjusted median value is smaller than the minimum value, the median value is clipped at the minimum value and the difference between the median value and the minimum value is added to the minimum value to obtain the saturation, It is possible to perform hue adjustment without a sense of discomfort without changing the lightness.

【図面の簡単な説明】[Brief description of drawings]

【図1】本発明の一実施形態に係る色調整装置の構成を
示すブロック図である。
FIG. 1 is a block diagram showing a configuration of a color adjustment device according to an embodiment of the present invention.

【図2】識別符号S1と、最大値α、中央値β、最小値
γに対応するRi,Gi,Biの関係を示す説明図であ
る。
FIG. 2 is an explanatory diagram showing a relationship between an identification code S1 and Ri, Gi, Bi corresponding to a maximum value α, a median value β, and a minimum value γ.

【図3】色相判別器による色相判別の様子を示す模式図
である。
FIG. 3 is a schematic diagram showing a state of hue discrimination by a hue discriminator.

【図4】色相符号S2と判別された色相領域、識別符号
S1、差分データψ、ωの関係を示す説明図である。
FIG. 4 is an explanatory diagram showing a relationship between a hue area determined as a hue code S2, an identification code S1, and difference data ψ and ω.

【図5】彩度調整器の構成を示すブロック図である。FIG. 5 is a block diagram showing a configuration of a saturation adjuster.

【図6】彩度調整器に含まれるクリップ処理器における
処理の手順を示すフローチャートである。
FIG. 6 is a flowchart showing a procedure of processing in a clip processor included in the saturation adjuster.

【図7】彩度調整器による彩度と、最大値α、中央値
β、最小値γの関係を示す説明図である。
FIG. 7 is an explanatory diagram showing a relationship between saturation by a saturation adjuster and a maximum value α, a median value β, and a minimum value γ.

【図8】明度調整器の構成を示すブロック図である。FIG. 8 is a block diagram showing a configuration of a brightness adjuster.

【図9】明度調整器に含まれるクリップ処理器における
処理の手順を示すフローチャートである。
FIG. 9 is a flowchart showing a processing procedure in a clip processor included in the brightness adjuster.

【図10】明度調整器による明度と、最大値α、中央値
β、最小値γの関係を示す説明図である。
FIG. 10 is an explanatory diagram showing the relationship between the brightness by the brightness adjuster and the maximum value α, the median value β, and the minimum value γ.

【図11】色相調整器の構成を示すブロック図である。FIG. 11 is a block diagram showing a configuration of a hue adjuster.

【図12】色相調整器に含まれるクリップ処理器におけ
る処理の手順を示すフローチャートである。
FIG. 12 is a flowchart showing a procedure of processing in a clip processor included in the hue adjuster.

【図13】色相調整器による色相と、最大値α、中央値
β、最小値γの関係を示す説明図である。
FIG. 13 is an explanatory diagram showing the relationship between the hue by the hue adjuster and the maximum value α, the median value β, and the minimum value γ.

【図14】従来の色変換処理装置の基本的な概念を示す
説明図である。
FIG. 14 is an explanatory diagram showing the basic concept of a conventional color conversion processing device.

【図15】従来の色変換処理装置の基本的な概念を示す
説明図である。
FIG. 15 is an explanatory diagram showing the basic concept of a conventional color conversion processing device.

【図16】従来の色変換処理装置の基本的な概念を示す
説明図である。
FIG. 16 is an explanatory diagram showing the basic concept of a conventional color conversion processing device.

【図17】従来の色変換処理装置の基本的な概念を示す
説明図である。
FIG. 17 is an explanatory diagram showing the basic concept of a conventional color conversion processing device.

【符号の説明】[Explanation of symbols]

1 大小比較器 2 色相判定器 3 調整値算出器 4 彩度調整器 5 明度調整器 6 色相調整器 7 RGB選択器 8a,8b 減算器 9 除算器 10 乗算器 11a,11b 加算器 12 クリップ処理器 13a,13b 除算器 14a,14b 乗算器 15a,15b,15c 加算器 16 クリップ処理器 17 加算器 18 クリップ処理器 51,52,53 3次元LUT色変換器 54 1次元LUT 55 色信号合成手段 61 αβ算出器 62 色相データ算出器 63 多項式演算器 64 マトリクス演算器 65 係数発生器 66 合成器 1 size comparator 2 hue determiner 3 Adjustment value calculator 4 Saturation adjuster 5 Brightness adjuster 6 Hue adjuster 7 RGB selector 8a, 8b Subtractor 9 divider 10 multiplier 11a, 11b adder 12 clip processor 13a, 13b divider 14a, 14b Multiplier 15a, 15b, 15c adder 16 clip processor 17 adder 18 clip processor 51,52,53 Three-dimensional LUT color converter 54 one-dimensional LUT 55 color signal synthesizing means 61 αβ calculator 62 Hue data calculator 63 Polynomial calculator 64 matrix calculator 65 coefficient generator 66 synthesizer

───────────────────────────────────────────────────── フロントページの続き Fターム(参考) 5B057 CA01 CA08 CB01 CB08 CE17 CE18 5C066 AA03 CA01 EB01 GA01 HA03 KD02 KD07 KE02 KE03 KM11 5C077 MP08 PP14 PP32 PP35 PP37 PP43 PQ20 5C079 HB01 HB06 HB12 LB01 NA03   ─────────────────────────────────────────────────── ─── Continued front page    F term (reference) 5B057 CA01 CA08 CB01 CB08 CE17                       CE18                 5C066 AA03 CA01 EB01 GA01 HA03                       KD02 KD07 KE02 KE03 KM11                 5C077 MP08 PP14 PP32 PP35 PP37                       PP43 PQ20                 5C079 HB01 HB06 HB12 LB01 NA03

Claims (8)

【特許請求の範囲】[Claims] 【請求項1】 入力データであるRGB信号に基づいて
その大小関係である最大値α、中央値β、および最小値
γを算出して出力するための比較手段と、 前記入力データであるRGB信号と前記比較手段から出
力される前記最大値α、前記中央値β、および前記最小
値γを用いて入力データの色相を判定し識別符号を出力
するための色相判定手段と、 前記色相判定手段から出力される識別符号を用いて色相
毎に設定された色相調整値Ah、彩度調整値As、およ
び明度調整値Avを出力するための調整値算出手段と、 前記最大値α、前記中央値β、前記最小値γ、および前
記明度調整値Avを用いて入力データの明度を調整する
ための明度調整手段と、 前記最大値α、前記中央値β、前記最小値γ、および前
記彩度調整値Asを用いて入力データの彩度を調整する
ための彩度調整手段と、 前記最大値α、前記中央値β、前記最小値γ、および前
記色相調整値Ahを用いて入力データの色相を調整する
ための色相調整手段と、 前記最大値α、前記中央値β、前記最小値γ、および前
記識別符号を用いて、αβγ信号を元のRGB信号へ戻
すための選択手段とを備えたことを特徴とする色調整装
置。
1. Comparing means for calculating and outputting a maximum value α, a median value β, and a minimum value γ, which are magnitude relationships based on an RGB signal which is input data, and an RGB signal which is the input data. And a hue determination means for determining the hue of the input data using the maximum value α, the median value β, and the minimum value γ output from the comparison means, and an identification code, and from the hue determination means Adjustment value calculation means for outputting the hue adjustment value Ah, the saturation adjustment value As, and the brightness adjustment value Av set for each hue using the output identification code, the maximum value α, and the median value β A brightness adjusting means for adjusting the brightness of the input data using the minimum value γ and the brightness adjustment value Av; the maximum value α, the median value β, the minimum value γ, and the saturation adjustment value. Of the input data using As Saturation adjusting means for adjusting the degree, and hue adjusting means for adjusting the hue of the input data using the maximum value α, the median value β, the minimum value γ, and the hue adjustment value Ah, A color adjusting apparatus comprising: a selecting unit for returning the αβγ signal to the original RGB signal using the maximum value α, the median value β, the minimum value γ, and the identification code.
【請求項2】 前記色相判定手段は、前記入力データで
あるRGB信号と前記比較手段から出力される前記最大
値α、前記中央値β、および前記最小値γの対応関係
と、前記中央値β、前記最大値α、および前記最小値γ
の相対的な大小関係とに基づいて入力データの色相を判
定し、 前記調整値算出手段は、前記色相判定手段で判定された
色相に基づいて色相毎に設定された前記色相調整値A
h、前記彩度調整値As、および前記明度調整値Avを
出力することを特徴とする請求項1記載の色調整装置。
2. The hue determining means, the RGB value which is the input data and the correspondence between the maximum value α, the median value β, and the minimum value γ output from the comparing means, and the median value β. , The maximum value α, and the minimum value γ
The hue of the input data is determined based on the relative magnitude relationship of the hue adjustment value calculation means, and the adjustment value calculation means determines the hue adjustment value A set for each hue based on the hue determined by the hue determination means.
The color adjusting device according to claim 1, wherein the color adjusting device outputs h, the saturation adjusting value As, and the lightness adjusting value Av.
【請求項3】 前記明度調整手段は、前記最大値α、前
記中央値β、前記最小値γ、および前記明度調整値Av
に基づいて、前記最大値αと前記中央値β、前記最大値
αと前記最小値γの比を一定に保った状態で、前記明度
調整値Avに従って前記最大値α、前記中央値β、およ
び前記最小値γを調整するとともに、当該調整により前
記最大値α、前記中央値β、および前記最小値γがオー
バーフローまたはアンダーフローとならないように調整
するための明度クリップ処理手段を含むことを特徴とす
る請求項1記載の色調整装置。
3. The lightness adjusting means is configured to have the maximum value α, the median value β, the minimum value γ, and the brightness adjustment value Av.
On the basis of the maximum value α and the median value β, the ratio between the maximum value α and the minimum value γ is kept constant, the maximum value α, the median value β, and the brightness adjustment value Av according to the brightness adjustment value Av. And a brightness clip processing unit for adjusting the minimum value γ and adjusting the maximum value α, the median value β, and the minimum value γ so as not to overflow or underflow. The color adjusting device according to claim 1.
【請求項4】 前記明度クリップ処理手段は、前記最大
値α、前記中央値β、前記最小値γ、および前記明度調
整値Avに基づいて、前記明度調整手段により前記最大
値α、前記中央値β、および前記最小値γがオーバーフ
ローまたはアンダーフローとなる場合を検出し、事前に
前記明度調整値Avをクリップするためのクリップ手段
を含むことを特徴とする請求項3記載の色調整装置。
4. The lightness clipping processing means, based on the maximum value α, the median value β, the minimum value γ, and the lightness adjustment value Av, the lightness adjustment means performs the maximum value α and the median value. 4. The color adjusting apparatus according to claim 3, further comprising clipping means for detecting a case where β and the minimum value γ are overflow or underflow and clipping the brightness adjustment value Av in advance.
【請求項5】 前記彩度調整手段は、前記最大値α、前
記中央値β、前記最小値γ、および前記彩度調整値As
に基づいて、前記最大値αを変化させずに前記最大値α
と前記中央値βの差分データと、前記中央値βと前記最
小値γの差分データの比を一定に保った状態で、前記彩
度調整値Asに従って前記中央値βおよび前記最小値γ
を調整し、当該調整により前記中央値βおよび前記最小
値γが前記最大値αより大きくまたはアンダーフローと
ならないように調整するための彩度クリップ処理手段を
含むことを特徴とする請求項1記載の色調整装置。
5. The saturation adjusting means includes the maximum value α, the median value β, the minimum value γ, and the saturation adjustment value As.
The maximum value α without changing the maximum value α
And the difference data of the median value β and the ratio of the difference data of the median value β and the minimum value γ are kept constant, the median value β and the minimum value γ are adjusted according to the saturation adjustment value As.
And a saturation clip processing unit for adjusting the median value β and the minimum value γ so that the median value β and the minimum value γ are larger than the maximum value α or do not cause underflow by the adjustment. Color adjustment device.
【請求項6】 前記彩度クリップ処理手段は、前記最大
値α、前記中央値β、前記最小値γ、および前記彩度調
整値Asに基づいて、前記彩度調整手段により前記中央
値βおよび前記最小値γが前記最大値αより大きくまた
はアンダーフローとなる場合を検出し、事前に前記彩度
調整値Asをクリップすることを特徴とする請求項5記
載の色調整装置。
6. The saturation clip processing means, based on the maximum value α, the median value β, the minimum value γ, and the saturation adjustment value As, the saturation adjustment means outputs the median value β and The color adjustment device according to claim 5, wherein a case where the minimum value γ is larger than the maximum value α or underflow is detected, and the saturation adjustment value As is clipped in advance.
【請求項7】 前記色相調整手段は、前記最大値α、前
記中央値β、前記最小値γ、および前記色相調整値Ah
に基づいて、前記最大値αおよび前記最小値γを変化さ
せずに、前記色相調整値Ahに従って前記中央値βを調
整し、当該調整により前記中央値βが前記最大値αより
大きくまたは前記最小値γより小さくならないように調
整するための色相クリップ処理手段を含むことを特徴と
する請求項1記載の色調整装置。
7. The hue adjusting means is configured to set the maximum value α, the median value β, the minimum value γ, and the hue adjustment value Ah.
The median value β is adjusted according to the hue adjustment value Ah without changing the maximum value α and the minimum value γ, and the median value β is larger than the maximum value α or the minimum value by the adjustment. The color adjusting device according to claim 1, further comprising a hue clip processing unit for adjusting the value so as not to be smaller than the value γ.
【請求項8】 前記色相クリップ処理手段は、前記最大
値α、前記中央値β、および前記最小値γに基づいて、
前記中央値βが前記最大値αより大きい場合に前記中央
値βを前記最大値αにクリップし、前記中央値βと前記
最大値αの差分を前記最大値αから減算し、前記中央値
βが前記最小値γより小さい場合に前記中央値βを前記
最小値γにクリップし、前記最小値γと前記中央値βの
差分を前記最小値γに加算することを特徴とする請求項
7記載の色調整装置。
8. The hue clip processing means, based on the maximum value α, the median value β, and the minimum value γ,
When the median value β is larger than the maximum value α, the median value β is clipped to the maximum value α, and the difference between the median value β and the maximum value α is subtracted from the maximum value α to obtain the median value β. 9. The median value β is clipped to the minimum value γ when is smaller than the minimum value γ, and the difference between the minimum value γ and the median value β is added to the minimum value γ. Color adjustment device.
JP2001361275A 2001-11-27 2001-11-27 Color adjustment device Expired - Fee Related JP3781107B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2001361275A JP3781107B2 (en) 2001-11-27 2001-11-27 Color adjustment device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2001361275A JP3781107B2 (en) 2001-11-27 2001-11-27 Color adjustment device

Publications (2)

Publication Number Publication Date
JP2003163814A true JP2003163814A (en) 2003-06-06
JP3781107B2 JP3781107B2 (en) 2006-05-31

Family

ID=19171966

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2001361275A Expired - Fee Related JP3781107B2 (en) 2001-11-27 2001-11-27 Color adjustment device

Country Status (1)

Country Link
JP (1) JP3781107B2 (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2006013488A1 (en) * 2004-07-27 2006-02-09 Koninklijke Philips Electronics N.V. Maintenance of hue in a saturation-controlled color image
JP2006186898A (en) * 2004-12-28 2006-07-13 Konica Minolta Photo Imaging Inc Image processing device and image processing method
KR100633057B1 (en) * 2005-03-02 2006-10-12 (주)미래로시스템 Size measuring device and method
JP2007166392A (en) * 2005-12-15 2007-06-28 Casio Comput Co Ltd Photo print system and photo print method
CN100486341C (en) * 2004-09-28 2009-05-06 晨星半导体股份有限公司 Brightness adjusting method and device
US7965341B2 (en) 2006-03-17 2011-06-21 Fujitsu Limited Color correction method, color correction device, and color correction program
US9406275B2 (en) 2014-01-14 2016-08-02 Samsung Display Co., Ltd. Image processing device and image processing method

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2006013488A1 (en) * 2004-07-27 2006-02-09 Koninklijke Philips Electronics N.V. Maintenance of hue in a saturation-controlled color image
CN100486341C (en) * 2004-09-28 2009-05-06 晨星半导体股份有限公司 Brightness adjusting method and device
JP2006186898A (en) * 2004-12-28 2006-07-13 Konica Minolta Photo Imaging Inc Image processing device and image processing method
KR100633057B1 (en) * 2005-03-02 2006-10-12 (주)미래로시스템 Size measuring device and method
JP2007166392A (en) * 2005-12-15 2007-06-28 Casio Comput Co Ltd Photo print system and photo print method
US7965341B2 (en) 2006-03-17 2011-06-21 Fujitsu Limited Color correction method, color correction device, and color correction program
US9406275B2 (en) 2014-01-14 2016-08-02 Samsung Display Co., Ltd. Image processing device and image processing method

Also Published As

Publication number Publication date
JP3781107B2 (en) 2006-05-31

Similar Documents

Publication Publication Date Title
US7403310B2 (en) Image processing apparatus and method
JP4565260B2 (en) Signal processing device
US20070080974A1 (en) Arrangement for mapping colors between imaging systems and method therefor
US6621497B1 (en) Color conversion device and color conversion method
JPH09186907A (en) Color adjustment method
JPH099089A (en) Improvement of color correction table
EP1028586A2 (en) Color conversion device and color conversion method
JP4495126B2 (en) Apparatus and method for adjusting specific color attributes
JP2001169303A (en) Image display device
US8253862B2 (en) Method and device for image sharpness adjustment
US6930809B1 (en) Color conversion device and method of manufacturing the same
JP2003163814A (en) Color adjustment device
JP2004310764A (en) Method for holding black channel
US20040008381A1 (en) System and method for converting color data to gray data
US7042523B2 (en) Video correction system and method using logarithmic conversion
JP2002369018A (en) Color correction parameter calculation device, image color correction device, color correction parameter calculation method used therefor, and program therefor
US6574004B1 (en) System and method for converting color data to gray data
JP2002262120A (en) Image processing apparatus, image processing method, color conversion table creation method, and recording medium
US7154636B2 (en) Color appearance space to CMYK mapping using relative purity
US7965429B1 (en) Method and apparatus for performing color plane
JP3080019B2 (en) Video signal processing device
JP4608509B2 (en) Composite lookup table creation device, composite lookup table creation method, and printing device
JPH10224647A (en) Color adjustment device
JP2001008045A (en) Color signal processor
JP3671428B2 (en) Image processing method and apparatus for color output

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20040611

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20051115

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20051122

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20060119

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: 20060228

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20060228

R150 Certificate of patent or registration of utility model

Ref document number: 3781107

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

Free format text: JAPANESE INTERMEDIATE CODE: R150

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

Free format text: PAYMENT UNTIL: 20100317

Year of fee payment: 4

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

Free format text: PAYMENT UNTIL: 20100317

Year of fee payment: 4

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

Free format text: PAYMENT UNTIL: 20110317

Year of fee payment: 5

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

Free format text: PAYMENT UNTIL: 20120317

Year of fee payment: 6

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

Free format text: PAYMENT UNTIL: 20120317

Year of fee payment: 6

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

Free format text: PAYMENT UNTIL: 20130317

Year of fee payment: 7

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

Free format text: PAYMENT UNTIL: 20130317

Year of fee payment: 7

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

Free format text: PAYMENT UNTIL: 20140317

Year of fee payment: 8

LAPS Cancellation because of no payment of annual fees