JPH0614184A - Color correction device - Google Patents
Color correction deviceInfo
- Publication number
- JPH0614184A JPH0614184A JP5113770A JP11377093A JPH0614184A JP H0614184 A JPH0614184 A JP H0614184A JP 5113770 A JP5113770 A JP 5113770A JP 11377093 A JP11377093 A JP 11377093A JP H0614184 A JPH0614184 A JP H0614184A
- Authority
- JP
- Japan
- Prior art keywords
- color
- tone correction
- pixel
- value
- color tone
- 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
Links
Landscapes
- Facsimile Image Signal Circuits (AREA)
- Color Image Communication Systems (AREA)
Abstract
(57)【要約】
【目的】 色調修正を行う領域の指定を色空間内の値
(HSL値)で行いながらも記憶装置の容量を肥大化を
抑え、また、滑らかな色調修正を施す。
【構成】 RGB信号をHSL値に変換するルックアッ
プテーブル12を用いて、第1のフレームメモリ2に格納
されている原画像の各画素のHSL値を求め、有効範囲
メモリ11にストアされているdH,dS,dLと比較し
て各画素が指定された色空間での領域にあるかどうかを
判定し、判定された画素のRGB信号に対してパラメー
タメモリ13にストアされているkr,kg,kbを作用
させて色調修正を行う。このとき、被修正色のHU,SU,
LU データと、判定された画素のHij, Sij, Lijデー
タとの差分量に応じてkr,kg,kbの値を可変し、
滑らかに変化する新たなパラメータを算出してこれを用
いる。
(57) [Abstract] [Purpose] The area of the color tone correction is specified by the value (HSL value) in the color space, but the capacity of the storage device is prevented from being enlarged and the color tone is smoothly corrected. [Structure] An HSL value of each pixel of the original image stored in the first frame memory 2 is obtained using a look-up table 12 for converting an RGB signal into an HSL value, and stored in the effective range memory 11. It is determined by comparing with dH, dS, dL whether each pixel is in the area in the designated color space, and kr, kg, stored in the parameter memory 13 for the RGB signal of the determined pixel. kb is applied to correct the color tone. At this time, the corrected colors H U, S U,
The values of kr, kg, kb are changed according to the difference amount between the L U data and the Hij, Sij, Lij data of the determined pixel,
A new parameter that changes smoothly is calculated and used.
Description
【0001】[0001]
【産業上の利用分野】本発明は、例えば、ビデオ製版工
程等で用いられる色調修正装置に係り、特に、原画像中
の被修正色に対応する画素のRGB信号を、所望の目的
色のRGB信号に変換することで、原画像の色調修正を
行う装置に関する。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a tone correction device used in, for example, a video plate making process, and more particularly, to an RGB signal of a pixel corresponding to a color to be corrected in an original image, which is converted into an RGB signal of a desired target color. The present invention relates to a device that corrects the color tone of an original image by converting it into a signal.
【0002】[0002]
【従来の技術】色調修正処理には、原画像のRGB信号
の値を目的色に応じて変えるパラメータが用いられる。
例えば、原画像の赤色成分を増やしたい場合にはR信号
に作用するパラメータの値を大きくし、緑色成分を増や
したい場合にはG信号に作用するパラメータの値を大き
くして色調修正処理を行う。原画像の各画素についてパ
ラメータを作用させていくと膨大な計算量となるため、
予め設定されたパラメータをR,G,B信号の各値に作
用させたルックアップテーブルを用いて色調修正を行う
場合が多い。原画像中の特定の領域のみを色調修正した
い場合には、その特定領域をマウス等のポインティング
デバイスで指定し、指定した領域の画素のRGB信号に
対してのみ前記のパラメータを作用させている。2. Description of the Related Art Parameters for changing RGB signal values of an original image in accordance with a target color are used in color tone correction processing.
For example, if the red component of the original image is to be increased, the value of the parameter that acts on the R signal is increased, and if the green component is to be increased, the value of the parameter that acts on the G signal is increased to perform the tone correction processing. . Since applying a parameter to each pixel of the original image results in a huge amount of calculation,
Color tone correction is often performed using a look-up table in which preset parameters are applied to the values of the R, G, and B signals. When it is desired to correct the color tone of only a specific area in the original image, the specific area is specified by a pointing device such as a mouse, and the above parameters are applied only to the RGB signals of the pixels in the specified area.
【0003】[0003]
【発明が解決しようとする課題】まず、特定領域の指定
が困難で煩雑な作業である。例えば、原画像中の赤いセ
ータの色を変えたいが、その付近にあるリンゴの赤い色
は変えたくないという状況では、セータの輪郭にそって
マウス等のポインティングデバイスを操作して色調修正
の領域を特定する必要があり、色調修正処理に要する時
間の延長を招くという問題がある。First, it is difficult and complicated to specify a specific area. For example, in the situation where you want to change the color of the red sweater in the original image but do not want to change the red color of the apple in the vicinity, operate the pointing device such as the mouse along the outline of the sweater to adjust the color tone area. Need to be specified, which causes a problem that the time required for the color tone correction processing is extended.
【0004】そこで、上記のような幾何学的な領域指定
ではなく、色空間における領域を指定し、その領域内に
ある画素に対してのみ色修正処理を行うという方法が考
えられている。色空間としては、人間の知覚色の3属性
値である色相H,彩度S,明度Lを3次元座標とするH
SL色空間を用いるのがよく、原画像の各画素のRGB
信号の値をそのHSLの値に変換して、指定されたHS
L色空間の範囲内にあるかどうかを判断し、その範囲内
にある画素のHSL値を修正して、これを元のRGB信
号に逆変換するという装置が提案されている。Therefore, a method of designating an area in a color space and performing color correction processing only on pixels in the area is considered instead of the above-described geometrical area specification. As a color space, H having three-dimensional coordinates of hue H, saturation S, and lightness L, which are three attribute values of human perceptual color, are used.
It is preferable to use the SL color space, which is the RGB of each pixel of the original image.
Convert the signal value to its HSL value and specify the specified HS
An apparatus has been proposed in which it is determined whether or not the pixel is within the range of the L color space, the HSL value of the pixel within the range is corrected, and this is converted back to the original RGB signal.
【0005】しかし、そのような装置においては、RG
B信号の値をHSLの値に変換するための手段(ルック
アップテーブル等)と、HSLの値をRGB信号の値に
逆変換するための手段としてのもう1つのルックアップ
テーブルが必要であり、2つの変換が可逆変換であるた
めにはルックアップテーブルに十分な精度が要求され、
これらのテーブルを格納するための記憶装置として大容
量のものを要し、色調修正装置がコスト高になるという
問題が生じる。However, in such a device, RG
A means (look-up table or the like) for converting the value of the B signal into the value of the HSL and another look-up table as a means for inversely converting the value of the HSL into the value of the RGB signal are required. In order for the two transformations to be reversible, the lookup table must have sufficient accuracy,
A large-capacity storage device is required to store these tables, which causes a problem of high cost of the color tone correction device.
【0006】次に、上記のような幾何学的な特定領域の
指定,色空間における特定領域の指定、いずれにおいて
も、原画像が全体的に滑らかな変化をしている場合、そ
の中で特定領域を指定し、その領域内の色変換をパラメ
ータを用いて行うのであるから、その領域の境界部分に
おいて急激に色が変化する不自然な画像となるという問
題がある。Next, in both of the above-described geometrical specific area designation and the specific area designation in the color space, if the original image has a smooth change as a whole, it is specified in that. Since an area is specified and color conversion in the area is performed using parameters, there is a problem that an unnatural image in which the color changes abruptly at the boundary of the area.
【0007】本発明は、このような事情に鑑みてなされ
たものであって、色調修正を行う領域の指定を色空間内
の値で行いながらも上記のように記憶装置の容量を肥大
化することなく、また、滑らかに変化する画像信号を有
する原画像の特定領域の色調修正を行ったとしてもその
滑らかさを損なうことのない色調修正装置を提供するこ
とを目的とする。The present invention has been made in view of the above circumstances, and enlarges the capacity of the storage device as described above while designating the area for color tone correction with a value in the color space. It is an object of the present invention to provide a color tone correction device that does not impair the smoothness of a specific area of an original image having a smoothly changing image signal.
【0008】[0008]
【課題を解決するための手段】本発明は、上記目的を達
成するために次のような構成をとる。すなわち、請求項
1に記載の発明は、原画像の各画素のデジタル化された
3原色信号(RGB信号)を記憶する原画像データ記憶
手段と、前記RGB信号を知覚色の3属性値(HSL
値)に変換する画像データ変換テーブルと、色調修正処
理の対象中心となる被修正色の指定、前記被修正色を基
準とした色調修正処理の有効範囲のHSL値での指定、
および色調修正後の目的色の指定を行う処理条件指定手
段と、前記処理条件指定手段で指定された被修正色と目
的色とに基づき色調修正処理用のパラメータを算出する
パラメータ算出手段と、前記原画像データ記憶手段に記
憶された原画像の各画素のRGB信号を前記画像データ
変換テーブルに与えることにより得られたHSL値と、
前記処理条件指定手段から指定された色調修正処理の有
効範囲を示すHSL値とを比較して色調修正処理の対象
となる画素を判定する第1処理手段と、前記第1処理手
段で判定された画素のRGB信号に、前記パラメータ算
出手段で算出されたパラメータを作用させて色調修正処
理を行う第2処理手段と、を備えたことを特徴とする。The present invention has the following constitution in order to achieve the above object. That is, the invention according to claim 1 is an original image data storage unit for storing the digitized three primary color signals (RGB signals) of each pixel of the original image and three attribute values (HSL) of the perceptual color of the RGB signals.
Value), an image data conversion table, a target color to be the center of the color tone correction processing, a HSL value in the effective range of the color tone correction processing based on the color to be corrected,
And processing condition designating means for designating a target color after tone correction, and parameter calculating means for computing a parameter for tone correction processing based on the color to be modified and the target color designated by the processing condition designating means, An HSL value obtained by applying the RGB signal of each pixel of the original image stored in the original image data storage means to the image data conversion table;
The first processing means for comparing the HSL value indicating the effective range of the color tone correction processing designated by the processing condition designation means to determine the pixel to be the target of the color tone correction processing; and the first processing means. A second processing unit that applies the parameter calculated by the parameter calculation unit to the RGB signal of the pixel to perform the color tone correction process is provided.
【0009】請求項2に記載の発明は、請求項1に記載
の色調修正装置において、被修正色に対応する画素のH
SL値と、前記第1処理手段で色調修正対象と判定され
た画素のHSL値との差分値を算出し、前記差分値が大
きくなるに従って前記色調修正処理用のパラメータが小
さくなるように前記パラメータを補正するパラメータ補
正手段を備えたものである。According to a second aspect of the present invention, in the color tone correcting apparatus according to the first aspect, the H of the pixel corresponding to the color to be corrected is H.
The difference value between the SL value and the HSL value of the pixel determined to be the color tone correction target by the first processing means is calculated, and the parameter for the color tone correction processing becomes smaller as the difference value increases. Is provided with a parameter correcting means.
【0010】さらに、請求項3に記載の発明は、請求項
1に記載の色調修正装置において、前記処理条件指定手
段で指定された色調修正処理の対象中心となる被修正色
と、色調修正後の目的色とを表示する表示手段を備えた
ものである。Further, according to the invention described in claim 3, in the color tone correction device according to claim 1, the color to be corrected which is the object center of the color tone correction processing designated by the processing condition designating means and the color tone corrected And a display means for displaying the target color of.
【0011】[0011]
【作用】請求項1に記載の発明による作用は次のとおり
である。処理条件指定手段から指定された色調修正処理
の有効範囲を示すHSL値と、原画像の各画素のRGB
信号を画像データ変換テーブルに与えることにより得ら
れたHSL値とを比較して当該画素が色調修正の対象で
あるかどうかを判定し(第1処理手段)、その対象であ
ると判定された画素のRGB信号にパラメータ算出手段
で算出されたパラメータを作用させて色調修正処理を行
う(第2処理手段)。The operation of the invention according to claim 1 is as follows. The HSL value indicating the effective range of the color tone correction processing designated by the processing condition designation means and the RGB of each pixel of the original image.
The HSL value obtained by applying the signal to the image data conversion table is compared to determine whether or not the pixel is a target of color tone correction (first processing means), and the pixel determined to be the target. The parameter calculated by the parameter calculating means is applied to the RGB signal of to perform the color tone correction processing (second processing means).
【0012】つまり、RGB信号をHSL値に変換する
のは、色調修正処理の対象画素を判定するためだけであ
り、実際の色調修正処理は対象画素のRGB信号に対し
て行うので、RGB信号をHSLの値に変換する唯1つ
の画像データ変換テーブルがあればよく、処理の有効範
囲を色空間の値であるHSL値で入力可能としながら
も、記憶装置の容量の肥大化が免れる。In other words, the RGB signal is converted into the HSL value only for determining the target pixel of the color tone correction processing, and the actual color tone correction processing is performed on the RGB signal of the target pixel. It is sufficient to have only one image data conversion table for converting to the HSL value, and the effective range of the processing can be input by the HSL value which is the value of the color space, but the expansion of the capacity of the storage device is avoided.
【0013】請求項2に記載の発明による作用は次のと
おりである。前記第1処理手段で色調修正対象と判定さ
れた画素のHSL値(hsl)は、被修正色を基準とし
た有効範囲内にあると判定された値であるから、この値
と被修正色に対応する画素のHSL値(HSL)との差
分値は、(HSL)=(hsl)のときを最小値とし
て、(hsl)が有効範囲の限度値、すなわち、色空間
における色調修正処理の対象画素と非対象画素との境界
値に近づくにつれて大きくなる。The operation of the invention according to claim 2 is as follows. Since the HSL value (hsl) of the pixel determined to be the color tone correction target by the first processing means is a value determined to be within the effective range with the color to be corrected as a reference, this value and the color to be corrected are The difference value from the HSL value (HSL) of the corresponding pixel has a minimum value when (HSL) = (hsl), and (hsl) is the limit value of the effective range, that is, the target pixel of the color tone correction processing in the color space. Becomes larger as it approaches the boundary value between the target pixel and the non-target pixel.
【0014】パラメータ補正手段は、前記差分値が大き
くなるに従って前記算出されたパラメータが小さくなる
ように補正するから、このパラメータを用いた前記第2
処理手段における色調修正処理の強度は、対象画素と非
対象画素との境界で最小となり、対象画素が前記被修正
色に対応した画素に近づくほど大きくなる。したがっ
て、色調修正処理後の画像において、対象画素と非対象
画素との境界で急激に色が変化することがない。Since the parameter correcting means corrects the calculated parameter so that it becomes smaller as the difference value becomes larger, the second parameter using this parameter is corrected.
The intensity of the color tone correction processing in the processing means becomes minimum at the boundary between the target pixel and the non-target pixel, and increases as the target pixel approaches the pixel corresponding to the color to be corrected. Therefore, in the image after the color tone correction processing, the color does not suddenly change at the boundary between the target pixel and the non-target pixel.
【0015】請求項3に記載の発明による作用は次のと
おりである。すなわち、前記処理条件指定手段で指定さ
れた色調修正処理の対象中心となる被修正色と、色調修
正後の目的色とを表示する表示手段を備えているので、
両色の違いを同一の表示装置上で確認でき実用上便利と
なる。The operation of the invention according to claim 3 is as follows. That is, since the target color of the color tone correction processing designated by the processing condition designating means and the display means for displaying the target color after the color tone correction are provided,
The difference between both colors can be confirmed on the same display device, which is convenient in practice.
【0016】[0016]
【実施例】以下、本発明の一実施例を図面に基づいて説
明する。図1は色調修正装置の外観斜視図である。色調
修正(以下、単に色修正という)が施される被処理画
像、および色修正後の画像を表示する画像用モニタ3
と、データ入力装置4、画像データを記憶する光磁気デ
ィスクのドライブ装置1 (光磁気ディスクドライバ
1)、修正前後の画像データをそれぞれ格納するフレー
ムメモリを内蔵したフレームメモリユニット20が主な構
成部品である。DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS An embodiment of the present invention will be described below with reference to the drawings. FIG. 1 is an external perspective view of the color tone correction device. An image monitor 3 that displays an image to be processed to which color tone correction (hereinafter, simply referred to as color correction) and an image after color correction are displayed.
The main components are a data input device 4, a magneto-optical disk drive device 1 for storing image data (a magneto-optical disk driver 1), and a frame memory unit 20 incorporating a frame memory for storing image data before and after correction. Is.
【0017】データ入力装置4は、本装置の使用者(ユ
ーザー)からのデータを入力するための操作用モニタ
9,キーボード10,マウス5、および色修正処理を主な
機能とするコンピュータ本体21とで構成されている。The data input device 4 includes an operation monitor 9 for inputting data from a user of the device, a keyboard 10, a mouse 5, and a computer main body 21 having color correction processing as main functions. It is composed of.
【0018】図2に本装置のシステムブロック図を示
し、このブロック図を参照しながら本装置の構成や動作
を、ユーザーの操作を交えながら説明していく。ただ
し、図2は、コンピュータ本体21の処理機能のうち、色
修正処理に関する機能をブロック図として独立に示して
おり、それ以外の処理、例えば操作用モニタ9にデータ
を出力表示するための処理等を行う機能は、データ入力
装置4に含むものとする。FIG. 2 shows a system block diagram of the present apparatus, and the configuration and operation of the present apparatus will be described with reference to this block diagram, including the operation of the user. However, in FIG. 2, among the processing functions of the computer main body 21, the functions relating to the color correction processing are independently shown as a block diagram, and other processing, for example, processing for outputting and displaying data on the operation monitor 9 and the like. It is assumed that the data input device 4 has a function of performing.
【0019】光磁気ディスクドライバ1は、被処理画像
(以下、原画像)のデジタル化された画像信号を本装置
に取り込むためのものである。原画像信号が光磁気ディ
スクに格納されていることを前提としているが、磁気テ
ープに格納されていてもよいし、ハードディスクに格納
されていてもよい。そのような場合、それぞれの記憶媒
体をアクセスするドライブ装置が光磁気ディスクドライ
バ1に代わる。The magneto-optical disk driver 1 is for taking in a digitized image signal of an image to be processed (hereinafter referred to as an original image) to this apparatus. Although it is assumed that the original image signal is stored in the magneto-optical disk, it may be stored in a magnetic tape or a hard disk. In such a case, the drive device that accesses each storage medium replaces the magneto-optical disk driver 1.
【0020】第1のフレームメモリ2は、光磁気ディス
クドライバ1で読み取られた原画像の1フレーム分のR
(赤),G(緑),B(青)の各3原色信号をそれぞれ
に格納する記憶容量を有している。この第1のフレーム
メモリ2内の原画像信号は内部スイッチSWを介して画
像用モニタ3に出力されて画像表示される。本装置のユ
ーザーが、その画面を見ながらデータ入力装置4のマウ
ス5等のポインティングデバイスを操作し、修正したい
色の表示箇所を指定すると、データ入力装置4は、画像
用モニタ3の画面上で指定された点の座標データを第1
のフレームメモリ2への読み出しアドレスとして出力す
る。The first frame memory 2 stores R for one frame of the original image read by the magneto-optical disk driver 1.
It has a storage capacity for storing the respective three primary color signals of (red), G (green) and B (blue). The original image signal in the first frame memory 2 is output to the image monitor 3 via the internal switch SW and displayed as an image. When the user of this device operates the pointing device such as the mouse 5 of the data input device 4 while looking at the screen and specifies the display position of the color to be corrected, the data input device 4 is displayed on the screen of the image monitor 3. First the coordinate data of the specified point
Is output as a read address to the frame memory 2.
【0021】ここで、読み出されたR,G,Bの3原色
信号をRU,GU,BU 信号とする。RU,GU,BU 信号は、
上記のマウス5で指定された点(画素)のR,G,B信
号であるが、ユーザーが指定した点の色、つまりユーザ
ーが目で見て判断した被修正色は、厳密には画面上のそ
の指定点の色だけによらず、指定点の周りの色からの影
響も受けている。そこで、RU,GU,BU 信号として、マ
ウス5で指定した点を中心に隣接する4画素、あるいは
その周辺8画素のR,G,B信号の値を平均したものを
用いてもよい。Here, the read R, G, and B primary color signals are referred to as R U, G U, and B U signals. The R U, G U, B U signals are
The R, G, and B signals of the point (pixel) designated by the mouse 5 are the colors of the point designated by the user, that is, the color to be corrected visually determined by the user is strictly on the screen. It is affected not only by the color of the designated point of the, but also by the color around the designated point. Therefore, as the R U, G U, and B U signals, an average of the values of the R, G, and B signals of 4 pixels adjacent to the point designated by the mouse 5 or 8 pixels in the vicinity may be used. .
【0022】RU,GU,BU 信号は第1の画素値メモリ6
にストアされるとともに、パラメータ算出部7,カラー
パッチ表示用メモリ8,データ入力装置4に出力され
る。これらのメモリ、および後述するメモリは、例え
ば、コンピュータ本体21の内部メモリ(主記憶装置)の
記憶領域の一部分として存在し、また、各演算処理部は
その処理アルゴリズムに従ったプログラムを実行するC
PU(中央処理装置)に相当する。The R U, G U and B U signals are stored in the first pixel value memory 6
And is output to the parameter calculation unit 7, the color patch display memory 8 and the data input device 4. These memories and a memory described later are present as a part of a storage area of an internal memory (main storage device) of the computer main body 21, and each arithmetic processing unit executes a program according to its processing algorithm.
It corresponds to a PU (Central Processing Unit).
【0023】カラーパッチ表示用メモリ8は、画像用モ
ニタ3の画面上において予め規定されている領域(例え
ば、画面の左下隅付近など)に対応するアドレスに上記
のRU,GU,BU 信号をストアして画像用モニタ3に出力
し、被修正色のカラーパッチを原画像に重畳表示する。
カラーパッチとは、ユーザーが原画像上で指定した被修
正色を独立的に観察できるように、画像用モニタ3のあ
る所定の領域内をその色で塗り潰して表示したものを指
す。The color patch display memory 8 stores the above-mentioned R U, G U, B U at an address corresponding to a predetermined area on the screen of the image monitor 3 (for example, near the lower left corner of the screen). The signal is stored and output to the image monitor 3, and the color patch of the color to be corrected is superimposed and displayed on the original image.
The color patch refers to a color patch in which a predetermined area on the image monitor 3 is filled with the color so that the user can independently observe the color to be corrected specified on the original image.
【0024】RU,GU,BU 信号が与えられたデータ入力
装置4は、RU,GU,BU 信号を数値に変換して、操作用
モニタ9に出力表示する。例えば、第1のフレームメモ
リ2に格納されているR,G,B信号がそれぞれ8ビッ
トのデジタル信号であれば、それを10進数に変換した
「0〜255 」までの数値でRU,GU,BU 信号を表しても
よいし、さらには、「0〜255 」の数値を百分率した
「0〜100(%) 」の数値で表してもよい。[0024] R U, G U, B U signal data input device given 4 converts R U, G U, a B U signal to a numerical value, and outputs displayed on the operation monitor 9. For example, if each of the R, G, and B signals stored in the first frame memory 2 is an 8-bit digital signal, it is converted into a decimal number and the numerical value from "0 to 255" is R U, G. The U and B U signals may be represented, or further, the numerical value of “0 to 255” may be represented by a numerical value of “0 to 100 (%)”.
【0025】ユーザーは、上記で画像用モニタ3に表示
された被修正色のカラーパッチと、操作用モニタ9に表
示されたRU,GU,BU 信号の値とを参照して、処理後の
色(以下、目的色)のR,G,B信号の各値をキーボー
ド10から入力する。データ入力装置4は、上記とは逆の
変換を行って入力値に対応するR,G,B信号を生成
し、カラーパッチ表示用メモリ8,パラメータ算出部7
に出力する。その目的色のR,G,B信号を以下ではR
T,GT,BT 信号と記す。The user refers to the color patch of the color to be corrected displayed on the image monitor 3 and the values of the R U, G U, B U signals displayed on the operation monitor 9 to process the image. The respective values of the R, G and B signals of the subsequent color (hereinafter, target color) are input from the keyboard 10. The data input device 4 performs conversion reverse to the above to generate R, G, B signals corresponding to the input values, and outputs the color patch display memory 8 and the parameter calculation unit 7.
Output to. The R, G, B signals of the target color will be referred to as R in the following.
T, G T, B T signals.
【0026】カラーパッチ表示用メモリ8は、前記のR
U,GU,BU 信号をストアした記憶領域と同じ領域をもつ
別の記憶場所(例えば、前記の被修正色のカラーパッチ
の表示箇所のとなりに対応する記憶場所)に、RT,GT,
BT 信号をストアして画像用モニタ3に出力し、目的色
のカラーパッチを原画像に重畳表示する。The color patch display memory 8 has the R
U T, G U, B U signals are stored in another memory location having the same area (for example, a memory location corresponding to the display location of the color patch of the color to be corrected) as R T, G T,
The B T signal is stored and output to the image monitor 3, and the color patch of the target color is superimposed and displayed on the original image.
【0027】このように、ユーザーがRT,GT,BT 信号
の値を入力すると、リアルタイムでその値に応じた画像
(カラーパッチ)を画像用モニタ3に表示するので、ユ
ーザーは、上記設定したRT,GT,BT 信号の値と、想定
していた目的色との相関関係を即座に把握でき、もし、
カラーパッチの色が想定していた目的色と異なっていれ
ば、RT,GT,BT 信号の値を更新するなどして、容易に
かつ正確に目的色の指定を行うことができる。As described above, when the user inputs the values of the R T, G T, and B T signals, the image (color patch) corresponding to the values is displayed on the image monitor 3 in real time. The correlation between the set R T, G T, and B T signal values and the assumed target color can be immediately grasped.
If the color of the color patch is different from the expected target color, the target color can be specified easily and accurately by updating the values of the R T, G T, and B T signals.
【0028】被修正色と目的色との指定が完了すると、
続いて、被修正色から目的色への色修正の有効範囲の指
定がユーザーにより行われる。本装置では、その有効範
囲の指定を、人間の知覚色の3属性値である色相H(Hu
e),彩度S(Saturation), 明度L(Lightness) の3つの
パラメータで行うようにしている。これは、R,G,B
のような混色系では、色を取り扱うときに、加法混色を
常に意識する必要があり、直感的な色の指定が難しいと
いう理由によるもので、人間の知覚差に適した色差をも
つHSL色空間での値として、処理対象となる色の有効
範囲を指定するようにしている。When the designation of the color to be corrected and the target color is completed,
Then, the user specifies the effective range of color correction from the color to be corrected to the target color. In this device, the effective range is specified by the hue H (Hu
e), saturation S (Saturation), and lightness L (Lightness). This is R, G, B
In such a color mixture system, it is necessary to always be aware of additive color mixture when handling colors, and it is difficult to intuitively specify the color. Therefore, the HSL color space having a color difference suitable for human perception difference is used. As the value of, the effective range of the color to be processed is specified.
【0029】有効範囲は、被修正色のRU,GU,BU 信号
に対応する色相をHU,彩度をSU,明度をLU とした場合
に、HU ±dH,SU ±dS,LU ±dLで表されるd
H,dS,dLとして入力され、有効範囲メモリ11にス
トアされる。The effective range is H U ± dH, S U , where H U is the hue corresponding to the R U, G U, and B U signals of the color to be corrected, S U is the saturation, and L U is the lightness. ± dS, L U d represented by ± dL
It is input as H, dS, dL and stored in the effective range memory 11.
【0030】本装置は、ここまでで入力あるいは抽出さ
れた情報、すなわち、「被修正色のR,G,B信号(R
U,GU,BU 信号)」,「目的色のR,G,B信号(RT,
GT,BT 信号)」,「色修正の有効範囲のデータdH,
dS,dL」とを用いて、第1のフレームメモリ2に格
納されている原画像の各画素の色成分が、色修正の有効
範囲にあるかどうかを判断して色修正の履行,不履行を
決定し、色修正処理を施す。The present apparatus uses the information input or extracted up to this point, that is, "R, G, B signals (R
U, G U, B U signals) ”,“ R, G, B signals of target color (R T,
G T, B T signal) ”,“ data dH of effective range of color correction,
dS, dL "is used to determine whether or not the color component of each pixel of the original image stored in the first frame memory 2 is within the effective range of the color correction, and whether the color correction is performed or not performed. Then, the color correction processing is performed.
【0031】まず、原画像の各画素の色成分が、HSL
色空間における色修正の有効範囲にあるかどうかを判断
するため、R,G,Bの値を色相H,彩度S,明度Lの
値に変換するためのルックアップテーブル12を以下の手
順で作成し保持しておく。First, the color component of each pixel of the original image is HSL.
The lookup table 12 for converting the values of R, G, and B into the values of hue H, saturation S, and lightness L in order to determine whether they are within the effective range of color correction in the color space is described below. Create and keep.
【0032】R,G,Bの値は、色相H,彩度S,明度
Lの値に直接的に対応していないので、R,G,Bの値
をLab表色系(明度Lに対応する1次元座標、および
彩度S,色相Hを符号aとbの平面に描いた2次元座標
からなる3次元座標空間)の値に変換し、そのLab表
色系の値をHSL色空間の値に変換するという手順を採
る。Since the values of R, G, B do not directly correspond to the values of hue H, saturation S, and lightness L, the values of R, G, B correspond to the Lab color system (corresponding to lightness L). The one-dimensional coordinates, and the saturation S and the hue H are converted into the values of the three-dimensional coordinate space consisting of the two-dimensional coordinates drawn on the planes of the symbols a and b, and the values of the Lab color system are converted into the values of the HSL color space. Take the procedure of converting to a value.
【0033】R,G,Bの値をLab表示系に変換する
には、まず、画像用モニタ3にR,G,Bそれぞれの最
大値Rmax,Gmax,Bmax を加えたときの三刺激値Xima
x,Yimax,Zimax (i=R,G,B)を分光放射計で
測定する。In order to convert the values of R, G and B into the Lab display system, first, the tristimulus values Xima when the maximum values Rmax, Gmax and Bmax of R, G and B are added to the image monitor 3.
Measure x, Yimax, Zimax (i = R, G, B) with a spectroradiometer.
【0034】次に、画像用モニタ3のガンマ(カラーモ
ニタの入力信号と発光出力との関係を示す定数:以下で
は便宜上、符号tで表す)を用いて、任意のRGBの値
r,g,bが入力されたときの三刺激値X,Y,Zを次
式で求める。 X=Σ(j/imax)t ・Ximax :(i=R,G,B、
j=r,g,b) Y=Σ(j/imax)t ・Yimax :(i=R,G,B、
j=r,g,b) Z=Σ(j/imax)t ・Zimax :(i=R,G,B、
j=r,g,b) 上記の各式において、i=R,G,Bと変化するごと
に、j=r,g,bと変化する。Next, using the gamma of the image monitor 3 (a constant indicating the relationship between the input signal of the color monitor and the light emission output: hereinafter, for convenience, represented by the symbol t), arbitrary RGB values r, g, and The tristimulus values X, Y, and Z when b is input are obtained by the following equation. X = Σ (j / imax) t · Ximax: (i = R, G, B,
j = r, g, b) Y = Σ (j / imax) t · Yimax: (i = R, G, B,
j = r, g, b) Z = Σ (j / imax) t · Zimax: (i = R, G, B,
j = r, g, b) In the above equations, each time i = R, G, B changes, j = r, g, b.
【0035】この三刺激値X,Y,Zを用い、R,G,
Bの値を次式でLab表色系の値に変換する。 L=116 ・(Y/Yn)1/3 − 16 a=500 ・〔(X/Xn)1/3 −(Y/Yn)1/3〕 b=200 ・〔(Y/Yn)1/3 −(Z/Zn)1/3〕 ただし、Yn=ΣYimax (i=R,G,B)、Xn=
ΣXimax (i=R,G,B)、Zn=ΣZimax (i
=R,G,B)である。Using these tristimulus values X, Y, Z, R, G,
The value of B is converted into the value of Lab color system by the following formula. L = 116 ・ (Y / Yn) 1 / 3-16 a = 500 ・ [(X / Xn) 1 / 3- (Y / Yn) 1/3 ] b = 200 ・ [(Y / Yn) 1/3 − (Z / Zn) 1/3 ] where Yn = ΣYimax (i = R, G, B), Xn =
ΣXimax (i = R, G, B), Zn = ΣZimax (i
= R, G, B).
【0036】Lab表色系と、HSL色空間との相関関
係を図3に示す。図3において、Lab表色系のL軸は
HSL色空間の明度Lにそのまま対応し、a軸とb軸の
2次元座標上の動径が彩度Sに対応し、b軸と動径との
なす角θが色相Hに対応している。したがって、上記で
求めたLの値をそのままHSL色空間の明度の値とし、
彩度Sおよび色相Hは次の各式を用いて求める。FIG. 3 shows the correlation between the Lab color system and the HSL color space. In FIG. 3, the L axis of the Lab color system directly corresponds to the lightness L of the HSL color space, the radius vector on the two-dimensional coordinates of the a axis and the b axis corresponds to the saturation S, and the b axis and the radius vector The angle θ formed by corresponds to the hue H. Therefore, the value of L obtained above is directly used as the value of the lightness of the HSL color space,
The saturation S and the hue H are obtained using the following equations.
【0037】 S2 =A2 +B2 H =tan-1(B/A) ただし、A<0のときは、色相Hの計算結果に 180度を
加え、A>0でB<0のときは 360度を加える。これ
は、計算結果としてマイナスの値を出さないためであ
る。S 2 = A 2 + B 2 H = tan −1 (B / A) However, when A <0, 180 degrees is added to the calculation result of the hue H, and when A> 0 and B <0, Add 360 degrees. This is because the calculation result does not give a negative value.
【0038】図2のルックアップテーブル12には、以上
のような各演算式によって求められたR,G,B信号の
値に対応するH,S,Lの値がストアされる。しかし、
デジタル化されたR,G,B信号のビット数(nビッ
ト)に対応したH,S,Lの値をテーブルにすると膨大
なデータ量となるため、nビットの例えば下位数ビット
を削除してmビットとし(n>m)、そのmビットの
R,G,B信号に対応するH,S,Lの値(このデータ
を削減する必要はないのでnビットで表す)をルックア
ップテーブル12にストアして構成してもよい。The lookup table 12 shown in FIG. 2 stores the values of H, S, L corresponding to the values of the R, G, B signals obtained by the respective arithmetic expressions as described above. But,
If the values of H, S, L corresponding to the number of bits (n bits) of the digitized R, G, B signals are made into a table, an enormous amount of data will result. Therefore, for example, the lower several bits of n bits should be deleted. It is assumed that the number of bits is m (n> m), and the values of H, S, and L corresponding to the m-bit R, G, and B signals (represented by n bits because there is no need to reduce this data) are stored in the lookup table 12. It may be stored and configured.
【0039】先にも述べたように、R,G,B信号の値
をHSL色空間の値に変換するのは、原画像の各画素の
色成分が、指定された色修正の有効範囲内にあるかを判
断するためであり、変換したHSL色空間の値を色修正
処理に用いるのではないため、R,G,B信号のビット
数の削減による精度の低下は特に問題ない。As described above, the values of the R, G and B signals are converted into the values of the HSL color space so that the color components of each pixel of the original image are within the specified effective range of color correction. Since the converted value of the HSL color space is not used in the color correction processing, there is no particular problem with the accuracy reduction due to the reduction of the number of bits of the R, G, B signals.
【0040】そこで、第1の画素値メモリ6にストアさ
れている被修正色のRU,GU,BU 信号(nビット)のう
ち、下位数ビットを除くmビットのみをルックアップテ
ーブル12に出力して、nビットのH,S,Lの値を得
る。これをHU,SU,LU として表す。HU,SU,LU は第
1の画素値メモリ6の別の記憶領域にストアされる。Therefore, of the R U, G U, B U signals (n bits) of the color to be corrected stored in the first pixel value memory 6, only the m bits excluding the lower several bits are looked up in the look-up table 12. To obtain n-bit H, S, L values. This is represented as H U, S U, L U. H U, S U, L U are stored in another storage area of the first pixel value memory 6.
【0041】また、被修正色のRU,GU,BU 信号および
目的色のRT,GT,BT 信号が与えれているパラメータ算
出部7は、次の各式によって色修正処理に必要なパラメ
ータkr,kg,kbを算出する。 kr=RT /RU −1 kg=GT /GU −1 kb=BT /BU −1 算出されたkr,kg,kbはパラメータメモリ13にス
トアされる。Further, the parameter calculation unit 7 to which the R U, G U, B U signals of the color to be corrected and the R T, G T, B T signals of the target color are given, performs the color correction processing by the following equations. Calculate the required parameters kr, kg, kb. kr = R T / R U -1 kg = G T / G U -1 kb = B T / B U -1 calculated kr, kg, kb is stored in the parameter memory 13.
【0042】次に、第1のフレームメモリ2に格納され
ている原画像の各画素のR,G,B信号を順に読み出し
て第2の画素値メモリ14に一旦にストアする。第1のフ
レームメモリ2の水平方向の画素数をx,垂直方向の画
素数をyとすると、画素ij(i=1,2,・・・x、j
=1,2,・・・y)のRij, Gij,Bij信号が順に第
2の画素値メモリ14にストアされ、そして、第1の画素
値メモリ6と同様、下位数ビットを除くmビットのRi
j, Gij, Bij信号がルックアップテーブル12に出力さ
れ、これに対応するnビットのHij, Sij, Lijが第2
の画素値メモリ14の別の記憶領域にストアされる。な
お、Rij, Gij, Bij信号は色修正処理部15にも出力さ
れる。これは、下位数ビットが削除されていない元のn
ビットの信号である。Next, the R, G, B signals of each pixel of the original image stored in the first frame memory 2 are sequentially read out and temporarily stored in the second pixel value memory 14. If the number of pixels in the horizontal direction of the first frame memory 2 is x and the number of pixels in the vertical direction is y, then pixels ij (i = 1, 2, ... X, j
= 1, 2, ..., Y) Rij, Gij, Bij signals are sequentially stored in the second pixel value memory 14, and, like the first pixel value memory 6, m bits of less than a few lower bits are stored. Ri
The j, Gij, Bij signals are output to the look-up table 12, and the corresponding n-bit Hij, Sij, Lij are the second.
The pixel value memory 14 is stored in another storage area. The Rij, Gij, Bij signals are also output to the color correction processing unit 15. This is the original n with the low order bits not removed.
It is a bit signal.
【0043】比較部16は、第1の画素値メモリ6にスト
アされているHU,SU,LU と、第2の画素値メモリ14に
順次ストアされるHij, Sij, Lijとを比較して、その
絶対差分量が、有効範囲メモリ11にストアされているd
H,dS,dLの値よりも大きいか否かを判断する。以
下に比較式を示す。 |Hij−HU |<dH |Sij−SU |<dS |Lij−LU |<dLThe comparison unit 16 compares H U, S U, L U stored in the first pixel value memory 6 with Hij, Sij, Lij sequentially stored in the second pixel value memory 14. Then, the absolute difference amount is stored in the effective range memory 11 d
It is determined whether or not it is larger than the values of H, dS, and dL. The comparison formula is shown below. | Hij-H U | <dH | Sij-S U | <dS | Lij-L U | <dL
【0044】Hij, Sij, Lijの各値すべてが上記の比
較式を満たすときに(第1のフレームメモリ2から読み
出された画素ijのHSL色空間の値が有効範囲内に存在
するときに)、比較部16は色修正処理部15に処理の履行
を指示する制御信号を出力する。逆に、Hij, Sij, L
ijのいずれか1つでも上記の比較式を満たしていないと
きには(有効範囲外であるときには)、色修正処理部15
に対して処理の不履行を指示する制御信号を出力する。When all the values of Hij, Sij, and Lij satisfy the above-mentioned comparison expression (when the value of the HSL color space of the pixel ij read from the first frame memory 2 is within the effective range) ), The comparison unit 16 outputs a control signal for instructing the color correction processing unit 15 to perform the processing. Conversely, Hij, Sij, L
When any one of ij does not satisfy the above comparison expression (when it is outside the valid range), the color correction processing unit 15
A control signal for instructing to default processing is output to.
【0045】色修正処理部15は処理の履行を示唆する制
御信号に基づき、第1の画素値メモリ6にストアされて
いるRU,GU,BU 信号(ビット数が削減されていないn
ビットの信号)、およびHU,SU,LU のデータ、第2の
画素値メモリ14にストアされているHij, Sij, Lijの
データ、有効範囲メモリ11にストアされているdH,d
S,dLのデータ、パラメータメモリ13にストアされて
いるkr,kg,kbのデータを読み出して、第2の画
素値メモり14から出力されているRij, Gij,Bij信号
の色修正処理を以下に述べるようにして行い、第2のフ
レームメモリ17にストアしていく。なお、処理の不履行
を示唆する制御信号が比較部16から与えられると、第2
の画素値メモり14から出力されているRij, Gij, Bij
信号をそのまま、第2のフレームメモリ17にストアす
る。The color correction processing unit 15 receives the R U, G U, B U signals (the number of bits is not reduced n) stored in the first pixel value memory 6 on the basis of the control signal indicating the performance of the process.
Signal), and data of H U, S U, L U , data of Hij, Sij, Lij stored in the second pixel value memory 14, dH, d stored in the effective range memory 11.
The S, dL data and the kr, kg, kb data stored in the parameter memory 13 are read out, and the color correction processing of the Rij, Gij, Bij signals output from the second pixel value memory 14 is performed as follows. Then, it is stored in the second frame memory 17. When a control signal indicating failure of processing is given from the comparison unit 16, the second
Rij, Gij, Bij output from the pixel value memory 14 of
The signal is stored as it is in the second frame memory 17.
【0046】色修正処理は、基本的には前記のパラメー
タ算出部7が算出したkr,kg,kbを、処理対象と
判断された画素ijのRij, Gij, Bij信号に乗算し、さ
らにこれをRij, Gij, Bij信号に加算して行われる
が、そうすると、以下のような問題が懸念される。In the color correction processing, basically, kr, kg and kb calculated by the parameter calculation unit 7 are multiplied by the Rij, Gij and Bij signals of the pixel ij determined to be processed, and this is further multiplied. Although it is performed by adding to the Rij, Gij, and Bij signals, the following problems may occur.
【0047】すなわち、原画像のR,G,B信号の値が
滑らかに変化している部分の画素群に対して、上記のよ
うに、指定された有効範囲を基準に色修正処理の履行,
不履行を区別すると、その滑らかに変化している画素群
の途中で急に色が変化し、画像として不自然なものにな
る可能性がある。いわゆるトーンジャンプと呼ばれてい
るような現象が発生する。そこで、このような問題を緩
和するため、色修正処理を行う前に次のような処理を行
う。That is, as described above, the color correction processing is performed on the pixel group of the portion where the values of the R, G, and B signals of the original image change smoothly, based on the specified effective range.
When the default is distinguished, the color may suddenly change in the middle of the smoothly changing pixel group, and the image may be unnatural. A phenomenon called so-called tone jump occurs. Therefore, in order to mitigate such a problem, the following processing is performed before the color correction processing is performed.
【0048】まず、次式に示すようにして、処理の対象
となった画素ijのRij, Gij, Bij信号のHij, Sij,
Lijデータと、被修正色のRU,GU,BU 信号のHU,SU,
LUデータとの差分量の絶対値ΔH,ΔS,ΔLを算出
する。 |Hij−HU |=ΔH |Sij−SU |=ΔS |Lij−LU |=ΔLFirst, the Rij, Gij, and Bij signals Hij, Sij, and Bij of the pixel ij to be processed are expressed by the following equations.
Lij data and R U, G U, B U signal H U, S U,
The absolute values ΔH, ΔS, ΔL of the difference amount from the L U data are calculated. │Hij-H U │ = ΔH │Sij-S U │ = ΔS │Lij-L U │ = ΔL
【0049】この差分量に応じてパラメータkr,k
g,kbを可変するための係数を以下の計算によって求
める。 1−(ΔH/dH)=kh 1−(ΔS/dS)=ks 1−(ΔL/dL)=kl 上式において、dH,dS,dLは有効範囲メモリ11に
ストアされている色修正処理の有効範囲を示す値、すな
わち、処理の対象となる画素とそうでない画素の境界値
である。そして、kh,ks,klは、ΔH,ΔS,Δ
LがdH,dS,dLに近づくにつれて最小値「0」に
近づき、ΔH,ΔS,ΔLがdH,dS,dLから遠く
なるにつれて最大値「1」に近づく係数である。The parameters kr and k are determined according to the difference amount.
The coefficient for varying g and kb is calculated by the following calculation. 1- (ΔH / dH) = kh 1- (ΔS / dS) = ks 1- (ΔL / dL) = kl In the above formula, dH, dS, dL are the values of the color correction processing stored in the effective range memory 11. A value indicating the effective range, that is, a boundary value between a pixel to be processed and a pixel not to be processed. Then, kh, ks, kl are ΔH, ΔS, Δ
It is a coefficient that approaches the minimum value “0” as L approaches dH, dS, dL, and approaches the maximum value “1” as ΔH, ΔS, ΔL becomes farther from dH, dS, dL.
【0050】したがって、係数kh,ks,klを、以
下の式を用いて色修正のパラメータkr,kg,kbに
作用させると、前記の境界値に近づくほど(被修正色か
ら遠くなるほど)、kr,kg,kbを小さくし、前記
の境界値から遠くなるほど(被修正色に近づくほど)、
kr,kg,kbの値に等しくなる新たなパラメータが
得られる。そのパラメータをKR,KG,KBで表す。 KR=kr・kh・ks・kl KG=kg・kh・ks・kl KB=kb・kh・ks・klTherefore, when the coefficients kh, ks, and kl are applied to the color correction parameters kr, kg, and kb by using the following formulas, the closer to the boundary value (the farther from the color to be corrected), the more kr , Kg, kb are made smaller, the farther from the boundary value (the closer to the color to be corrected),
New parameters are obtained that are equal to the values of kr, kg, kb. The parameters are represented by KR, KG, and KB. KR = kr * kh * ks * kl KG = kg * kh * ks * kl KB = kb * kh * ks * kl
【0051】このような、パラメータKR,KG,KB
を色修正処理に用いることで、滑らかに変化している画
素群の途中で急に画像の色が変化することはなく、自然
な色修正が行える。Such parameters KR, KG, KB
Is used for the color correction processing, the color of the image does not suddenly change in the middle of the smoothly changing pixel group, and natural color correction can be performed.
【0052】色修正処理部15は、第2の画素値メモリ14
から出力されている処理対象画素のRij, Gij, Bij信
号に、上記のパラメータKR,KG,KBを乗算した値
を加算して色修正処理を行う。 rij=Rij・(1+KR) gij=Gij・(1+KG) bij=Bij・(1+KB) このrij, gij, bijは色修正処理後の画素ijの3原色
信号であり、第2のフレームメモリ17にストアされる。The color correction processing section 15 includes a second pixel value memory 14
A value obtained by multiplying the Rij, Gij, Bij signals of the processing target pixel output from the above by the above parameters KR, KG, KB is added to perform color correction processing. rij = Rij (1 + KR) gij = Gij (1 + KG) bij = Bij (1 + KB) These rij, gij, and bij are the three primary color signals of the pixel ij after color correction processing and are stored in the second frame memory 17. To be done.
【0053】第2のフレームメモリ17にストアされた色
修正処理後の画像信号と、第1のフレームメモリ2にス
トアされている処理前の画像(原画像)信号は、データ
入力装置4の例えばマウス5のスイッチ等によって切り
換え動作する内部スイッチSWによって、選択的に画像
用モニタ3に出力されて表示される。色修正後の画像と
修正前の画像とを交互に見比べることができ、実用上便
利である。The image signal after the color correction processing stored in the second frame memory 17 and the unprocessed image (original image) signal stored in the first frame memory 2 are stored in the data input device 4, for example. An internal switch SW that is switched by the switch of the mouse 5 or the like selectively outputs the image to the image monitor 3 for display. The image after the color correction and the image before the color correction can be alternately compared, which is practically convenient.
【0054】上記の実施例によれば、指定した有効範囲
の中にある画素に対してだけ色修正処理を行うが、この
対象となるのは原画像のすべての画素である。つまり、
1枚の画像中、指定した色の範囲内にあるすべての画素
が色修正処理をうけてしまう。このことが不都合であれ
ば、データ入力装置4のマウス5等で指定して領域に対
してのみ上記の処理を行うように構成してもよい。According to the above-described embodiment, the color correction processing is performed only on the pixels within the designated effective range, but all the pixels of the original image are the target. That is,
In one image, all pixels within the specified color range are subjected to color correction processing. If this is inconvenient, the mouse 5 or the like of the data input device 4 may be used to perform the above processing only for the area.
【0055】[0055]
【発明の効果】以上の説明から明らかなように、請求項
1に記載の発明の色調修正装置によれば、原画像の各画
素のRGB信号を変換テーブルに与えて各画素のHSL
値を求め、そのHSL値が有効範囲内あるかどうかを比
較して処理対象となる画素を判定し、判定された画素の
RGB信号にパラメータを作用させて色調修正処理を行
うので、RGB信号の値をHSLの値に変換する唯1つ
のテーブルがあればよく、可逆変換である必要がないの
で低い精度のテーブルで済み、処理の有効範囲を色空間
の値であるHSL値で入力可能としながらも、記憶装置
の容量の肥大化が免れ、装置のコストダウンを図ること
ができる。As is apparent from the above description, according to the color tone correcting apparatus of the invention described in claim 1, the RGB signal of each pixel of the original image is given to the conversion table to obtain the HSL of each pixel.
The value is calculated, the HSL value is compared with whether it is within the valid range, the pixel to be processed is determined, and the parameter is applied to the RGB signal of the determined pixel to perform the tone correction processing. There is only one table for converting the value to the value of HSL, and there is no need for reversible conversion, so a table with low accuracy is sufficient, and the effective range of processing can be input with the HSL value which is the value of the color space. Also, the capacity of the storage device is not increased, and the cost of the device can be reduced.
【0056】また、請求項2に記載の発明によれば、原
画像中の被修正色に対応する画素のHSL値と、前記色
調修正対象と判定された画素のHSL値との差分値が大
きくなるに従って、前記パラメータの値が小さくなるよ
うに補正して色調修正処理に用いるので、この処理が施
される画素とそうでない画素との境界で色調修正処理の
強度は最小となり、この処理が施される画素が被修正色
に対応した画素の色空間での値に近づくほど強度は最大
になうような滑らかな色調修正とすることができ、トー
ンジャンプと呼ばれる現象を回避した自然な画像を得る
ことができる。According to the second aspect of the invention, the difference value between the HSL value of the pixel corresponding to the color to be corrected in the original image and the HSL value of the pixel determined to be the tone correction target is large. As it becomes, the value of the parameter is corrected to be smaller and used for the color tone correction processing. Therefore, the intensity of the color tone correction processing becomes the minimum at the boundary between the pixel to which this processing is applied and the pixel to which this processing is not applied, and this processing is performed. It is possible to make a smooth tone correction in which the intensity is maximized as the pixel to be corrected approaches the value in the color space of the pixel corresponding to the color to be corrected, and a natural image that avoids the phenomenon called tone jump is created. Obtainable.
【0057】さらに、請求項3に記載の発明では、被修
正色と、目的色とを表示する表示手段を備えるので、両
色の違いを同一の表示装置上で確認でき、目的色の指定
を行うときなど便利である。Further, in the invention according to claim 3, since the display means for displaying the color to be corrected and the target color is provided, the difference between the two colors can be confirmed on the same display device, and the target color can be designated. It is convenient when doing.
【図1】本発明の色調修正装置の一実施例に係る外観斜
視図である。FIG. 1 is an external perspective view of an embodiment of a color tone correcting device of the present invention.
【図2】その内部構成を示すブロック図である。FIG. 2 is a block diagram showing its internal configuration.
【図3】色相,彩度,明度の値を3次元座標とするHS
L色空間と、Lab表色系との相関を示す図である。[Fig. 3] HS in which the values of hue, saturation, and lightness are three-dimensional coordinates
It is a figure which shows the correlation of L color space and Lab color system.
2・・・第1のフレームメモリ(原画像データ記憶手
段) 3・・・画像用モニタ(表示手段) 4・・・データ入力装置(処理条件指定手段) 7・・・パラメータ算出部(パラメータ算出手段) 12・・・ルックアップテーブル(画像データ変換手段) 15・・・色修正処理部(第2処理手段,パラメータ補正
手段) 16・・・比較部(第1処理手段)2 ... First frame memory (original image data storage means) 3 ... Image monitor (display means) 4 ... Data input device (processing condition designating means) 7 ... Parameter calculation unit (parameter calculation) Means) 12 ... Look-up table (image data conversion means) 15 ... Color correction processing section (second processing means, parameter correction means) 16 ... Comparison section (first processing means)
Claims (3)
色信号(RGB信号)を記憶する原画像データ記憶手段
と、 前記RGB信号を知覚色の3属性値(HSL値)に変換
する画像データ変換テーブルと、 色調修正処理の対象中心となる被修正色の指定、前記被
修正色を基準とした色調修正処理の有効範囲のHSL値
での指定、および色調修正後の目的色の指定を行う処理
条件指定手段と、 前記処理条件指定手段で指定された被修正色と目的色と
に基づき色調修正処理用のパラメータを算出するパラメ
ータ算出手段と、 前記原画像データ記憶手段に記憶された原画像の各画素
のRGB信号を前記画像データ変換テーブルに与えるこ
とにより得られたHSL値と、前記処理条件指定手段か
ら指定された色調修正処理の有効範囲を示すHSL値と
を比較して色調修正処理の対象となる画素を判定する第
1処理手段と、 前記第1処理手段で判定された画素のRGB信号に、前
記パラメータ算出手段で算出されたパラメータを作用さ
せて色調修正処理を行う第2処理手段と、 を備えたことを特徴とする色調修正装置。1. An original image data storage unit for storing the digitized three primary color signals (RGB signals) of each pixel of the original image, and an image for converting the RGB signals into three attribute values (HSL values) of perceptual colors. The data conversion table, the designation of the color to be corrected which is the center of the color tone correction processing, the designation with the HSL value of the effective range of the color tone correction processing based on the color to be corrected, and the designation of the target color after color tone correction Processing condition specifying means for performing, parameter calculating means for calculating a parameter for tone correction processing based on the color to be corrected and the target color specified by the processing condition specifying means, and the original image data stored in the original image data storage means. An HSL value obtained by giving the RGB signal of each pixel of the image to the image data conversion table and an HSL value indicating the effective range of the color tone correction processing designated by the processing condition designating means. And a first processing unit that determines a pixel to be subjected to a color tone correction process by comparing the RGB signals of the pixels determined by the first processing unit with a parameter calculated by the parameter calculation unit. A color tone correction device, comprising: a second processing unit that performs a correction process.
て、被修正色に対応する画素のHSL値と、前記第1処
理手段で色調修正対象と判定された画素のHSL値との
差分値を算出し、前記差分値が大きくなるに従って前記
色調修正処理用のパラメータが小さくなるように前記パ
ラメータを補正するパラメータ補正手段を備えた色調修
正装置。2. The color tone correction device according to claim 1, wherein a difference value between the HSL value of the pixel corresponding to the color to be corrected and the HSL value of the pixel determined to be the color tone correction target by the first processing unit is calculated. A tone correction device comprising a parameter correction unit that calculates and corrects the parameter so that the parameter for the tone correction process decreases as the difference value increases.
て、前記処理条件指定手段で指定された色調修正処理の
対象中心となる被修正色と、色調修正後の目的色とを表
示する表示手段を備えた色調修正装置。3. The color tone correcting apparatus according to claim 1, wherein a display means for displaying a color to be corrected which is a target of the color tone correction processing designated by the processing condition designating means and a target color after the color tone correction. Tone correction device equipped with.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP5113770A JP2740443B2 (en) | 1992-04-21 | 1993-04-16 | Color correction device |
Applications Claiming Priority (3)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP12954292 | 1992-04-21 | ||
| JP4-129542 | 1992-04-21 | ||
| JP5113770A JP2740443B2 (en) | 1992-04-21 | 1993-04-16 | Color correction device |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPH0614184A true JPH0614184A (en) | 1994-01-21 |
| JP2740443B2 JP2740443B2 (en) | 1998-04-15 |
Family
ID=26452697
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP5113770A Expired - Fee Related JP2740443B2 (en) | 1992-04-21 | 1993-04-16 | Color correction device |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP2740443B2 (en) |
Cited By (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US5793501A (en) * | 1995-03-16 | 1998-08-11 | Dainippon Screen Mfg. Co., Ltd. | Contrast correcting apparatus |
| JP2014138513A (en) * | 2013-01-17 | 2014-07-28 | Tamura Seisakusho Co Ltd | Device for charging secondary battery |
| US9425634B2 (en) | 2013-01-17 | 2016-08-23 | Tamura Corporation | Charging apparatus for secondary battery |
-
1993
- 1993-04-16 JP JP5113770A patent/JP2740443B2/en not_active Expired - Fee Related
Cited By (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US5793501A (en) * | 1995-03-16 | 1998-08-11 | Dainippon Screen Mfg. Co., Ltd. | Contrast correcting apparatus |
| JP2014138513A (en) * | 2013-01-17 | 2014-07-28 | Tamura Seisakusho Co Ltd | Device for charging secondary battery |
| US9425634B2 (en) | 2013-01-17 | 2016-08-23 | Tamura Corporation | Charging apparatus for secondary battery |
Also Published As
| Publication number | Publication date |
|---|---|
| JP2740443B2 (en) | 1998-04-15 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US6058208A (en) | Color correction device and color correction method | |
| JP3370817B2 (en) | Contrast correction device | |
| JP4209439B2 (en) | Image processing apparatus, image processing system, image processing method, image processing program, and integrated circuit device | |
| JP2740409B2 (en) | Sharpness processing device | |
| JP2001169303A (en) | Image display device | |
| JP2000207548A (en) | Method for controlling tone scale of digital image | |
| JP2002033929A (en) | Image processing method, apparatus and recording medium | |
| JP2740443B2 (en) | Color correction device | |
| JPH11331595A (en) | Resolution conversion method and device therefor | |
| JP2740436B2 (en) | Color correction device | |
| JPH05120416A (en) | Color converter | |
| JPH06169394A (en) | Color correction device | |
| JP2895405B2 (en) | Image gradation correction method and image processing apparatus | |
| JP2007042033A (en) | Color correction apparatus and image display apparatus | |
| JPH0814843B2 (en) | Color conversion method and color conversion device | |
| JP2001094799A (en) | Image processing method, apparatus and recording medium | |
| JP3835059B2 (en) | Color image processing method and apparatus | |
| JPH0799586A (en) | Color conversion device | |
| KR20000010958A (en) | Color correction device, color correction method, picture processing device, and picture processing method | |
| JP2005176200A (en) | Color signal converting apparatus and method | |
| US20230024171A1 (en) | Display apparatus and method of driving the same | |
| JP2005252393A (en) | Image processing apparatus and method, computer program, and computer-readable storage medium | |
| JP2898569B2 (en) | Video accelerator board for computer game development | |
| JP2005037996A (en) | Image processing apparatus and method | |
| JP3027620B2 (en) | Color editing method using simple coded images |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| LAPS | Cancellation because of no payment of annual fees |