JP3550177B2 - Image processing device - Google Patents

Image processing device Download PDF

Info

Publication number
JP3550177B2
JP3550177B2 JP04853894A JP4853894A JP3550177B2 JP 3550177 B2 JP3550177 B2 JP 3550177B2 JP 04853894 A JP04853894 A JP 04853894A JP 4853894 A JP4853894 A JP 4853894A JP 3550177 B2 JP3550177 B2 JP 3550177B2
Authority
JP
Japan
Prior art keywords
hue
conversion
image data
converted
lightness
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
JP04853894A
Other languages
Japanese (ja)
Other versions
JPH07262347A (en
Inventor
美智子 河野
多恵子 小泉
博之 遠藤
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Fujitsu Ltd
Original Assignee
Fujitsu Ltd
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 Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP04853894A priority Critical patent/JP3550177B2/en
Publication of JPH07262347A publication Critical patent/JPH07262347A/en
Application granted granted Critical
Publication of JP3550177B2 publication Critical patent/JP3550177B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Landscapes

  • Image Processing (AREA)
  • Television Receiver Circuits (AREA)
  • Processing Of Color Television Signals (AREA)
  • Facsimile Image Signal Circuits (AREA)
  • Color Image Communication Systems (AREA)
  • Processing Or Creating Images (AREA)

Description

【0001】
【産業上の利用分野】
本発明は,カラー写真,絵画等をカラーで画像処理する画像処理装置に関する。
【0002】
カラー印刷等のために,コンピュータを使用してカラーで画像処理をする画像処理装置の開発が進められている。このようなカラーの画像処理装置は,変更する対象の色と変更後の色を指定して色相変換する等の色の編集を画面上で行うことができるものである。
【0003】
【従来の技術】
図8は従来の画像処理装置を示す。
図8において,
200は変換前の画像である。
【0004】
201は変換前の画像ブロックであって,例えば,8×8画素の集まりである。
200’は変換後の画像である。
【0005】
201’は変換後の画像ブロックである。
205は画像処理装置である。
206は変換指示部であって,変換する色相の指定等の色相変換を指示するものである(例えば,赤の色相を黄色の色相に変換する等)。
【0006】
210 画像データ入力部であって,画像200の各画素の画像データを入力するものである。各画素は均等色空間座標系の座標(L,a,b)をもつものである。Lは明度,a,bは色(色相/彩度)を表す。
【0007】
211は色相変換部であって,L座標系の色(a,b)を,マンセル座標系(後述する)の色相Hに変換し,入力された画像データの色相が変換を指定された色相の領域に含まれるものであるかないかを判定し,指定された色相の領域に含まれるものであれば,変換された色相Hを回転して変換後の色相H’とし,色相H’をa座標系の色(a’,b’)に変換するものである。
【0008】
212は画像データ出力部であって,変換された画像データを出力するものである。
図8の構成で示すように,従来の画像処理装置は色相のみ変換するもので,明度は変換の前後で変更されることはなかった。
【0009】
図9は,従来の画像処理装置の色相変換の説明図である。
図9 (a)は従来の画像処理装置の色相変換の説明図である。
オペレータ指示の変更前色相をHorg,その色相角をRorg,変更後の色相をHchg,その色相角をRchgとすると,回転前のHに対する回転後のH’はH=Hchg−(Horg−H)×(Rchg/Rorg)で算出される。
【0010】
【発明が解決しようとする課題】
図9 (b)により,発明が解決しようとする課題を説明する。
図9 (b)において,a軸は色相を表し(aが大きくなる程彩度が高くなる),縦軸は明度Lを表す。図9 (b)は黄色の色相の明度の分布を表し,黄色の色相の明度は図のように分布し,黄色の色相空間の全部に一様に明度が分布するものでないことを示す。
【0011】
図9 (a)の変換後の色相H’が黄色の色相であり,図9 (b)の座標Yに変換されたものであれば,黄色の明度の分布領域内のものであるので変換された色相は自然であるが,Y’に変換されたような場合には,現実に存在しない明度となるので不自然に表現されることとなる。
【0012】
本発明は,変換された色相に応じて不自然でない明度に自動的に明度を調整する画像処理装置を提供することを目的とする。
【0013】
【課題を解決するための手段】
図1は本発明の基本構成を示す。
図1において,
1は画像処理装置である。
【0014】
2は画像データ入力部であって,変換前の画像データを入力するものである。
4は画像データ出力部であって,変換後の画像データを出力するものである。
5は変換指示部であって,変換する色相および変換後の色相の指定等を行うものである。
【0015】
10は色相変換部であって,画像データの色相を変換するものである。
11は明度変換部であって,明度調整テーブル12を参照して画像データの明度を変換するものである。
【0016】
12は明度調整テーブルであって,変換された色相が不自然でない明度に調整されるように調整前の明度と調整後の明度を対応付けたものである。調整前の明度と調整後の明度の対応は,例えば,変換式もしくは調整前の明度と調整後の明度を対応付けた変換表を備える等で行うものである。
【0017】
【作用】
図1の本発明の基本構成の動作を説明する。
画像データ入力部2は変換前の画像データを画素毎に入力する。色相変換部10は入力された画素の色相が変換指定された領域の色相に含まれるものであるかないかを判定し,変換を指定さた色相領域に含まれるものであれば,指定された色相に変換する。
【0018】
明度変換部11は,色相を変換された画素の明度(輝度)を判定し,明度調整テーブル12を参照し,変換された色相の明度の変換式もしくは変換データを参照する。そして,明度の変換式もしくは変換表に従って変換する。
【0019】
画像データ出力部4は変換された色相と明度の画像データを出力する。
本発明によれば,色相変換された画像データをそれぞれの色相に応じて定められる自然な明度に変換するので,見た目に自然な変換画像を得ることができる。
【0020】
【実施例】
図2は本発明の実施例構成を示す図である。図2はL座標系の座標(L,a,b)の(a,b)を色相角H(0〜360°)の色相変換(H変換)を行う場合の実施例構成を示す。
【0021】
図2において,
40はRGBデータ入力部であって,イメージスキャナー,撮像装置等である。
【0022】
41は色変換部1であって,RGBデータをL座標系の明度,色相(L,a,b)に変換するものである。
42は色変換部2であって,L座標系の明度,色相(L,a,b)をRGBデータもしくはYMCデータ(印刷出力するためのデータ)に変換するものである。
【0023】
43はディスプレイである。
44は印刷装置である。
50は画像処理装置であって,画像データの色相と明度を変換するものである。
【0024】
51は画像データ入力部である。
52は画像データ保持部であって,変換前の画像データと変換後の画像データを保持するものである。
【0025】
52’は変換前画像データである。
52”は変換後画像データである。
54は画像データ出力部である。
【0026】
55は変換指示部である。
60は色相変換部である。
61は明度変換部である。
【0027】
62は明度調整テーブルである。
70は変換前の画像データ(L,a,b)を表す。
71はH変換された画像データ(H,L)である。
【0028】
72はマンセル座標系で色相Hを回転することにより色相変換した座標(H’,L)である。
73は,明度調整テーブル62を参照して明度を変換されたマンセル座標系の画像データ(H’,L)である。
【0029】
73’は色相変換されなかった画像データ(H,L)である。
74は(H’,L)をL座標系の(L’,a’,b’)に変換したものである。
【0030】
図2の構成の動作は後述する。
図3は色相と最大明度の関係の説明図である。
図3 (a)は標準カラーチャートおよび色表を参考にして,各色相において最も大きい彩度の明度値を求め,色相と最大明度の関係をグラフに表したものである。図3 (b)は,上記の色相と最大明度の関係を表にしたものである。
【0031】
図3 (a)のグラフおよび図3 (b)の表に示されるように,色相と最大明度の関係は一様でなく,色相により異なるものである。従って,色相変換された明度も変換前と後のそれぞれの色相の明度の最大値を考慮して変換する必要がある。
【0032】
例えば,色相H=92を色相H=358に変更する場合を考える。色相H=92は最大明度184をもつ。一方,色相H=358は最大明度79である。そこで,本発明は,例えば,色相H=92を色相H=358に変更する場合には,その明度の最大値184と79を考慮して,変換後の色相の明度もその最大明度に応じて変換するようにする。
【0033】
図4は本発明の明度調整テーブルの作成方法の説明図である。
図4 (a)は変換式による場合である。
明度L(以後,H変換においても明度はLで表す)から明度L’へのH変換において最大明度255は最大明度255に,最小明度0(真黒)は最小明度0に変換,色相変換された画像の色が自然に表現されるように,あらかじめ実験的に明度L0とL1を求める。そして,L0,L1に対して,(1) L≦L0の場合には,L’=(L1/L0)×L,(2) L>L0の場合には,L’=255−{(L1/L0)×(255−L)}により,LをL’に変換するものである。なお,L0,L1は色相によって異なるものである。
【0034】
図4 (b)は図4 (a)の変換式の0〜255のLに対するL’を表にしたものである。明度変換は,上記のような変換式によって計算するか,あるいは変換前の明度Lと変換後の明度L’を対応付けた変換表を作成し,変換表に従って変換する。変換表による場合には処理が高速化される。
【0035】
図4の変換式もしくは変換表は色相毎もしくは色相グループ毎等に作成する。
図5は本発明の明度調整テーブルの例を示す図である。
図5 (a)は,変更方法1であって,線形変換の場合である(図4 (a)と同様である)。L0,L1は変換された明度が自然であるように実験的に求める。変更前明度Lに対して0≦L≦L0の場合にはグラフk1の式に従って,明度変換し,L0<L≦255の場合にはグラフk2の式に従って明度変換する。グラフを変換表にし,表に従って変換するようにしても良い。
【0036】
(b)は非線形に変換する場合である。図のように,非線形のグラフの表す変換式により変更前Lを変更後L’に変換するものである。グラフを変換表とし,表に従って変換するようにしても良い。
【0037】
(c)は非線形変換において,ハイライトポイントもしくはグレーポイントを変更する場合を示す。
実線(k1)はグレーポイントを明るい方に変更する場合であり,点線(k2)はハイライトポイントを変更する場合である。グラフを変換表にし,表に従って変換するようにしても良い。
【0038】
図2の本発明の実施例構成の動作を説明する。
色変換部1(41)は,RGBデータ入力部40よりRGBデータを入力し,L座標系での座標(L,a,b)に変換する。画像処理装置50は色変換部1(41)の変換した画像データを画素毎に入力し,色相変換および明度変換を行う。
【0039】
画像処理装置50において,画像データ入力部51は,色変換部1(41)から,L座標系に変換された画像データを取り出し,画像データ保持部52に格納する。
【0040】
次に,図6により色相明度変換部の動作を説明する(図2を参照する)。
S1 色相換部60は,全画素を取り出したか判定し,全画素を取り出していればS8に進み,取り出していなければS2に進む。
【0041】
S2,S3 色相変換部60は,画像データの画素(L,a,b)を画像データ保持部52から取り出す。取り出した画像データ(L,a,b)(70)についてH変換し,H変換された画像データ(H,L)(71)を得る。
【0042】
S4,S4’ Hが対象領域か判定し,H領域外であれば,それを元の(L,a,b)(74)に変換して,画像データ保持部52の変換後画像データ52”として格納する。対象領域内であればS5に進む。
【0043】
S5 H変換された画像データ(71)を回転し,回転後の座標データ(H’,L)(72)を得る。
この処理において,オペレータ指示の変更前色相をHorg,その色相角をRorg,変更後の色相をHchg,その色相角をRchgとすると(図9参照),回転前のHに対する回転後のH’はH=Hchg−(Horg−H)×(Rchg/Rorg)で算出される。
【0044】
S6 明度変換部61は変換部のH’により,明度調整テーブル62の,H’に対応する色相の変換式もしくは変換表を参照し,L(変換調整テーブルのL)に基づいて変換後の明度Lを求める。
【0045】
S7 色相と明度を変換されたマンセル座標系の画像データ(H’,L)をL座標系の画像データ(L’,a’,b’)に変換し,画像データ保持部52に変換後画像データ52”として格納する。
【0046】
S8 全画像データについて処理をしたら,画像データ出力部54は変換後画像データを色変換部2(42)に出力する。
色変換部2(42)は,RGBデータに変換してディスプレイ43に出力する。また,YMCデータに変換して印刷装置に出力する。
【0047】
図7は本発明の画像処理装置の色相変換部の実施例を示す。
座標系のa,bのとる範囲がそれぞれ0〜255の時は予め変換する領域の(a,b)から(a’,b’)への色相変換テーブルを作成しておき,(a,b)から(a’,b’)への変換を色相変換テーブルを参照して行うことにより処理を高速化することが可能になる。
【0048】
図7はそのようにした場合の色相変換部の実施例である。
図7において,
61は明度変換部である。
【0049】
62は明度調整テーブルである。
80は色相変換部である。
81は入力された画像データである。
【0050】
82は領域判定部であって,入力された画像データ81が指定された変換領域内であるかないかを判定するものである。
83は色相変換テーブル参照部であって,画像データが変換領域の内部にある場合に色相変換テーブル84を参照し,変換後の色相を求めるものである。
【0051】
84は色相変換テーブルであって,変換前の色相(a,b)に対応する変換後の色相(a’,b’)を対照表として保持するものである。
85は変換後の画像データである。但し,画像データ(L,a,b)(81)が変換領域外の色相であれば,変換されない画像データ(L,a,b)(81)と同じものである。
【0052】
図7の構成において,色相変換部80は画像データ保持部(図示せず(図2参照))から画像データ(L,a,b)(81)を取り込む。
領域判定部82は取り込んだ画像データが指定された変換領域内にあるか判定し,判定結果を色相変換テーブル参照部83に通知する。色相変換テーブル参照部83は取り込まれた画像データ(L,a,b)(81)が変換を指定された領域内にあれば,色相変換テーブル84を参照し,変換する色相の画像データ(a’,b’)を取り出し,画像データ(L,a’b’)(85)を獲得して,明度変換部61に転送する。変換を指定された領域外であれば,取り込んだ画像データ(L,a,b)(81)をそのまま,明度変換部61に転送する。
【0053】
明度変換部61は,受け取った画像データの色相に対応する明度調整テーブル62の明度変換式もしくは変換データを参照し,明度Lの変換データL’を求め,画像データ(L’,a,b)もしくは(L’,a’,b’)を画像データ保持部に出力する。
【0054】
【発明の効果】
本発明によれば,画像処理装置において画像データの色を変更する場合に,オペレータは変更前の色と,変更後の色を指定するだけで簡単に,変換された色相に応じた自然な明度の色を得ることができる。そのため,色の編集処理において適正な色を求めることが容易になる。また,色相変換および明度変換に変換データを対応付けた変換表を使用することにより高速に色相変換,明度調整の処理を行うことができるようになる。
【図面の簡単な説明】
【図1】本発明の基本構成を示す図である。
【図2】本発明の実施例構成を示す図である。
【図3】色相と最大明度の関係の説明図である。
【図4】本発明の明度調整テーブルの作成方法を示す図である。
【図5】本発明の明度調整テーブルの例を示す図である。
【図6】本発明の色相明度変換部の動作のフローチャートを示す図である。
【図7】本発明の画像処理装置における色相変換部の実施例を示す図である。
【図8】従来の画像処理装置を示す図である。
【図9】従来の画像処理装置の色相変換の説明図である。
【符号の説明】
1:画像処理装置
2:画像データ入力部
5:変換指示部
10:色相変換部
11:明度変換部
12:明度調整テーブル
[0001]
[Industrial applications]
The present invention relates to an image processing apparatus that performs color image processing of color photographs, paintings, and the like.
[0002]
2. Description of the Related Art For color printing and the like, image processing apparatuses that perform color image processing using a computer have been developed. Such a color image processing apparatus can perform color editing on a screen, such as specifying a target color to be changed and a color after the change and performing hue conversion.
[0003]
[Prior art]
FIG. 8 shows a conventional image processing apparatus.
In FIG.
Reference numeral 200 denotes an image before conversion.
[0004]
Reference numeral 201 denotes an image block before conversion, which is, for example, a set of 8 × 8 pixels.
Reference numeral 200 ′ denotes an image after conversion.
[0005]
201 ′ is an image block after conversion.
205 is an image processing apparatus.
A conversion instruction unit 206 instructs hue conversion such as designation of a hue to be converted (for example, conversion of a red hue to a yellow hue).
[0006]
210: an image data input unit for inputting image data of each pixel of the image 200. Each pixel has coordinates (L * , a * , b * ) in the uniform color space coordinate system. L * represents lightness, a * and b * represent colors (hue / saturation).
[0007]
Reference numeral 211 denotes a hue conversion unit that converts a color (a * , b * ) in the L * a * b * coordinate system into a hue H in the Munsell coordinate system (described later), and converts the hue of the input image data into a hue. It is determined whether or not the conversion is included in the specified hue area. If the conversion is included in the specified hue area, the converted hue H is rotated to obtain the converted hue H ′. , Hue H ′ are converted into colors (a * ′, b * ′) in the a * b * coordinate system.
[0008]
An image data output unit 212 outputs the converted image data.
As shown in the configuration of FIG. 8, the conventional image processing apparatus converts only the hue, and the brightness is not changed before and after the conversion.
[0009]
FIG. 9 is an explanatory diagram of hue conversion of a conventional image processing apparatus.
FIG. 9A is an explanatory diagram of hue conversion of a conventional image processing apparatus.
Assuming that the hue before the change of the operator's instruction is Horg, the hue angle is Rorg, the hue after the change is Hchg, and the hue angle is Rchg, H ′ after rotation with respect to H before rotation is H = Hchg− (Horg−H). X (Rchg / Rorg).
[0010]
[Problems to be solved by the invention]
The problem to be solved by the invention will be described with reference to FIG.
In FIG. 9B, the a * axis represents hue (saturation increases as a * increases), and the ordinate represents lightness L * . FIG. 9B shows the distribution of the lightness of the yellow hue, and shows that the lightness of the yellow hue is distributed as shown in the figure, and that the lightness is not uniformly distributed in the entire yellow hue space.
[0011]
The converted hue H 0 ′ in FIG. 9A is a yellow hue, and if it is converted to the coordinate Y in FIG. 9B, it is in the yellow lightness distribution area. The converted hue is natural, but if it is converted to Y ′, it becomes unnatural because it has a lightness that does not actually exist.
[0012]
SUMMARY OF THE INVENTION It is an object of the present invention to provide an image processing apparatus that automatically adjusts lightness to lightness that is not unnatural according to a converted hue.
[0013]
[Means for Solving the Problems]
FIG. 1 shows the basic configuration of the present invention.
In FIG.
Reference numeral 1 denotes an image processing device.
[0014]
Reference numeral 2 denotes an image data input unit for inputting image data before conversion.
An image data output unit 4 outputs the converted image data.
Reference numeral 5 denotes a conversion instructing unit for designating a hue to be converted and a hue after the conversion.
[0015]
Reference numeral 10 denotes a hue conversion unit for converting the hue of the image data.
Reference numeral 11 denotes a brightness conversion unit which converts the brightness of the image data with reference to the brightness adjustment table 12.
[0016]
Reference numeral 12 denotes a brightness adjustment table that associates the brightness before adjustment with the brightness after adjustment so that the converted hue is adjusted to a non-natural brightness. The correspondence between the brightness before the adjustment and the brightness after the adjustment is performed by, for example, using a conversion formula or a conversion table in which the brightness before the adjustment and the brightness after the adjustment are associated.
[0017]
[Action]
The operation of the basic configuration of the present invention shown in FIG. 1 will be described.
The image data input unit 2 inputs image data before conversion for each pixel. The hue conversion unit 10 determines whether or not the hue of the input pixel is included in the hue of the conversion-designated area, and if the hue of the input pixel is included in the hue area for which the conversion is specified, the specified hue Convert to
[0018]
The brightness conversion unit 11 determines the brightness (luminance) of the pixel whose hue has been converted, refers to the brightness adjustment table 12, and refers to a conversion formula or conversion data of the brightness of the converted hue. Then, the conversion is performed according to the conversion formula or conversion table of the brightness.
[0019]
The image data output unit 4 outputs the converted hue and brightness image data.
According to the present invention, since the hue-converted image data is converted into a natural lightness determined according to each hue, an apparently natural converted image can be obtained.
[0020]
【Example】
FIG. 2 is a diagram showing the configuration of the embodiment of the present invention. 2 L * a * b * coordinate system coordinates (L *, a *, b *) of the (a *, b *) performs color conversion of hue angle H (0 to 360 °) the (H conversion) the An example configuration in the case is shown.
[0021]
In FIG.
Reference numeral 40 denotes an RGB data input unit, such as an image scanner or an image pickup device.
[0022]
A color conversion unit 41 converts the RGB data into lightness and hue (L * , a * , b * ) in the L * a * b * coordinate system.
Reference numeral 42 denotes a color conversion unit that converts the lightness and hue (L * , a * , b * ) of the L * a * b * coordinate system into RGB data or YMC data (data for print output). It is.
[0023]
43 is a display.
44 is a printing device.
An image processing device 50 converts the hue and brightness of image data.
[0024]
Reference numeral 51 denotes an image data input unit.
Reference numeral 52 denotes an image data holding unit which holds image data before conversion and image data after conversion.
[0025]
Reference numeral 52 'denotes pre-conversion image data.
52 "is image data after conversion.
Reference numeral 54 denotes an image data output unit.
[0026]
55 is a conversion instruction unit.
Reference numeral 60 denotes a hue conversion unit.
Reference numeral 61 denotes a brightness conversion unit.
[0027]
Reference numeral 62 denotes a brightness adjustment table.
70 represents image data (L * , a * , b * ) before conversion.
Reference numeral 71 denotes H-converted image data (H, L * ).
[0028]
Numeral 72 denotes coordinates (H ′, L * ) obtained by rotating the hue H in the Munsell coordinate system and performing hue conversion.
Reference numeral 73 denotes Munsell coordinate system image data (H ′, L * ) whose brightness has been converted with reference to the brightness adjustment table 62.
[0029]
73 'is image data (H, L * ) that has not been subjected to hue conversion.
Numeral 74 is obtained by converting (H ', L * ) into (L * ', a * ', b * ') in the L * a * b * coordinate system.
[0030]
The operation of the configuration of FIG. 2 will be described later.
FIG. 3 is an explanatory diagram of the relationship between hue and maximum lightness.
FIG. 3 (a) shows the relationship between hue and maximum lightness in a graph, with reference to a standard color chart and a color table, finding the lightness value of the largest saturation in each hue. FIG. 3B is a table showing the relationship between the hue and the maximum lightness.
[0031]
As shown in the graph of FIG. 3A and the table of FIG. 3B, the relationship between the hue and the maximum brightness is not uniform, but differs depending on the hue. Therefore, the hue-converted lightness also needs to be converted in consideration of the maximum value of the hue before and after the hue conversion.
[0032]
For example, consider a case where hue H = 92 is changed to hue H = 358. Hue H = 92 has the maximum lightness 184. On the other hand, the hue H = 358 is the maximum lightness 79. Therefore, in the present invention, for example, when the hue H = 92 is changed to the hue H = 358, the lightness of the converted hue is also determined according to the maximum lightness in consideration of the maximum values 184 and 79 of the lightness. Convert it.
[0033]
FIG. 4 is an explanatory diagram of a method for creating a brightness adjustment table according to the present invention.
FIG. 4A shows the case of the conversion formula.
In the H conversion from lightness L (hereinafter, lightness is also represented by L in H conversion) to lightness L ', the maximum lightness 255 is converted to the maximum lightness 255, and the minimum lightness 0 (black) is converted to the minimum lightness 0, and the hue is converted. The lightness L0 and L1 are experimentally obtained in advance so that the color of the image is naturally expressed. Then, for L0 and L1, (1) if L ≦ L0, L ′ = (L1 / L0) × L, (2) if L> L0, L ′ = 255 − {(L1 / L0) × (255-L)} to convert L into L ′. Note that L0 and L1 differ depending on the hue.
[0034]
FIG. 4B is a table showing L ′ for L of 0 to 255 in the conversion formula of FIG. 4A. The brightness conversion is calculated by the above conversion formula, or a conversion table is created in which the brightness L before conversion is associated with the brightness L ′ after conversion, and conversion is performed according to the conversion table. In the case of using the conversion table, the processing speed is increased.
[0035]
The conversion formula or conversion table in FIG. 4 is created for each hue or hue group.
FIG. 5 is a diagram showing an example of the brightness adjustment table of the present invention.
FIG. 5A shows a modification method 1 in the case of linear conversion (similar to FIG. 4A). L0 and L1 are experimentally obtained so that the converted lightness is natural. If the lightness L before the change is 0 ≦ L ≦ L0, the brightness is converted according to the equation of the graph k1, and if L0 <L ≦ 255, the brightness is converted according to the equation of the graph k2. The graph may be converted into a conversion table and converted according to the table.
[0036]
(B) is a case of performing non-linear conversion. As shown in the figure, L before change is converted into L 'after change by a conversion formula represented by a non-linear graph. A graph may be used as a conversion table, and conversion may be performed according to the table.
[0037]
(C) shows a case where a highlight point or a gray point is changed in the nonlinear conversion.
The solid line (k1) is for changing the gray point to a brighter one, and the dotted line (k2) is for changing the highlight point. The graph may be converted into a conversion table and converted according to the table.
[0038]
The operation of the embodiment of the present invention shown in FIG. 2 will be described.
The color conversion unit 1 (41) receives the RGB data from the RGB data input unit 40 and converts the RGB data into coordinates (L * , a * , b * ) in the L * a * b * coordinate system. The image processing device 50 inputs the image data converted by the color conversion unit 1 (41) for each pixel, and performs hue conversion and brightness conversion.
[0039]
In the image processing device 50, the image data input unit 51 extracts the image data converted into the L * a * b * coordinate system from the color conversion unit 1 (41) and stores the image data in the image data holding unit 52.
[0040]
Next, the operation of the hue / lightness converter will be described with reference to FIG. 6 (see FIG. 2).
S1 The color changing unit 60 determines whether all the pixels have been extracted. If all the pixels have been extracted, the process proceeds to S8, and if not, the process proceeds to S2.
[0041]
S2, S3 The hue conversion unit 60 extracts the pixels (L * , a * , b * ) of the image data from the image data holding unit 52. The extracted image data (L * , a * , b * ) (70) is H-converted to obtain H-converted image data (H, L * ) (71).
[0042]
S4, S4 ′ It is determined whether or not H is the target area, and if it is out of the H area, it is converted to the original (L * , a * , b * ) (74), and the converted image of the image data holding unit 52 The data is stored as data 52 ". If it is within the target area, the process proceeds to S5.
[0043]
The image data (71) subjected to S5H conversion is rotated to obtain coordinate data (H ', L * ) (72) after rotation.
In this process, if the hue before the change of the operator's instruction is Horg, the hue angle is Rorg, the hue after the change is Hchg, and the hue angle is Rchg (see FIG. 9), H ′ after rotation with respect to H before rotation is H = Hchg− (Horg−H) × (Rchg / Rorg)
[0044]
S6 The brightness conversion unit 61 refers to the hue conversion formula or conversion table corresponding to H ′ in the brightness adjustment table 62 by using the conversion unit H ′, and performs conversion after conversion based on L * (L in the conversion adjustment table). Find the lightness L * .
[0045]
S7 The image data (H ′, L * ) of the Munsell coordinate system in which the hue and the lightness are converted are converted into the image data (L * ′, a * ′, b * ′) of the L * a * b * coordinate system. The converted image data 52 ″ is stored in the image data holding unit 52.
[0046]
S8 After processing all image data, the image data output unit 54 outputs the converted image data to the color conversion unit 2 (42).
The color conversion unit 2 (42) converts the data into RGB data and outputs the data to the display 43. Further, the data is converted into YMC data and output to the printing device.
[0047]
FIG. 7 shows an embodiment of the hue conversion unit of the image processing apparatus of the present invention.
L * a * b * coordinate system of a *, hue b * range taken by the when the 0 to 255 each area to be converted in advance (a *, b *) from the (a * ', b *' ) By preparing a conversion table and performing conversion from (a * , b * ) to (a * ′, b * ′) with reference to the hue conversion table, the processing can be speeded up.
[0048]
FIG. 7 shows an embodiment of the hue converter in such a case.
In FIG.
Reference numeral 61 denotes a brightness conversion unit.
[0049]
Reference numeral 62 denotes a brightness adjustment table.
Reference numeral 80 denotes a hue conversion unit.
81 is input image data.
[0050]
An area determination unit 82 determines whether or not the input image data 81 is within the designated conversion area.
A hue conversion table reference unit 83 refers to the hue conversion table 84 when the image data is inside the conversion area, and obtains the converted hue.
[0051]
Reference numeral 84 denotes a hue conversion table which holds the converted hues (a * ', b * ') corresponding to the hues (a * , b * ) before the conversion as a reference table.
Reference numeral 85 denotes the converted image data. However, if the image data (L * , a * , b * ) (81) has a hue outside the conversion area, it is the same as the image data (L * , a * , b * ) (81) that is not converted.
[0052]
In the configuration of FIG. 7, the hue conversion unit 80 takes in the image data (L * , a * , b * ) (81) from the image data holding unit (not shown (see FIG. 2)).
The area determination unit 82 determines whether the captured image data is within the designated conversion area, and notifies the hue conversion table reference unit 83 of the determination result. If the captured image data (L * , a * , b * ) (81) is within the area designated for conversion, the hue conversion table reference unit 83 refers to the hue conversion table 84 to convert the image of the hue to be converted. The data (a * ', b * ') is taken out, the image data (L * , a * 'b * ') (85) is obtained, and transferred to the brightness converter 61. If the conversion is outside the designated area, the captured image data (L * , a * , b * ) (81) is transferred to the brightness conversion unit 61 as it is.
[0053]
The brightness conversion unit 61 refers to a brightness conversion formula or conversion data of a brightness adjustment table 62 corresponding to the hue of the received image data, obtains conversion data L * 'of brightness L * , and obtains image data (L * ', a * , B * ) or (L * ', a * ', b * ') to the image data holding unit.
[0054]
【The invention's effect】
According to the present invention, when changing the color of the image data in the image processing apparatus, the operator simply specifies the color before the change and the color after the change, and easily obtains the natural lightness according to the converted hue. Color can be obtained. Therefore, it becomes easy to obtain an appropriate color in the color editing process. Further, by using a conversion table in which conversion data is associated with hue conversion and lightness conversion, it is possible to perform high-speed hue conversion and lightness adjustment processing.
[Brief description of the drawings]
FIG. 1 is a diagram showing a basic configuration of the present invention.
FIG. 2 is a diagram showing a configuration of an embodiment of the present invention.
FIG. 3 is an explanatory diagram of a relationship between hue and maximum lightness.
FIG. 4 is a diagram illustrating a method of creating a brightness adjustment table according to the present invention.
FIG. 5 is a diagram illustrating an example of a brightness adjustment table according to the present invention.
FIG. 6 is a diagram showing a flowchart of the operation of the hue / lightness converter of the present invention.
FIG. 7 is a diagram showing an embodiment of a hue conversion unit in the image processing device of the present invention.
FIG. 8 is a diagram illustrating a conventional image processing apparatus.
FIG. 9 is an explanatory diagram of hue conversion of a conventional image processing apparatus.
[Explanation of symbols]
1: Image processing device 2: Image data input unit 5: Conversion instruction unit 10: Hue conversion unit 11: Lightness conversion unit 12: Lightness adjustment table

Claims (1)

均等色空間系L* * * で表現された画像データを変換する画像処理装置であって,
変換前の明度Lの値と変換後の明度L’の値とを対応付けた変換表を色相ごとに管理する明度調整テーブルと,
* * * で表現されている入力画像データ(L* ,a* ,b* )のうち(a* ,b* )から色相Hを求める手段と,
該色相Hが変更対象であるか否かを判断する手段と,
該色相Hが変更対象である場合に,変換後の色相H’を求める手段と,
該変換後の色相H’および変換前の明度L* を用いて前記明度調整テーブルから変換後の明度L* ’を求める手段と,
変換後の色相H’および変換後の明度L* ’からL* * * 系画像データ(L* ’,a* ’,b* ’)を求める手段と,
変換後の画像データとして(L* ’,a* ’,b* ’)を出力する手段と
を有する画像処理装置。
An image processing apparatus for converting image data represented by a uniform color space system L * a * b * ,
A brightness adjustment table that manages, for each hue, a conversion table that associates the value of the lightness L before conversion with the value of the lightness L ′ after conversion,
Means for calculating hue H from (a * , b * ) of input image data (L * , a * , b * ) represented by L * a * b * ;
Means for determining whether or not the hue H is to be changed;
Means for determining a converted hue H ′ when the hue H is to be changed;
Means for obtaining the converted lightness L * 'from the lightness adjustment table using the converted hue H' and the lightness L * before conversion;
Means for obtaining L * a * b * -based image data (L * ', a * ', b * ') from the converted hue H' and the converted lightness L * ';
Means for outputting (L * ', a * ', b * ') as the converted image data.
JP04853894A 1994-03-18 1994-03-18 Image processing device Expired - Fee Related JP3550177B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP04853894A JP3550177B2 (en) 1994-03-18 1994-03-18 Image processing device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP04853894A JP3550177B2 (en) 1994-03-18 1994-03-18 Image processing device

Publications (2)

Publication Number Publication Date
JPH07262347A JPH07262347A (en) 1995-10-13
JP3550177B2 true JP3550177B2 (en) 2004-08-04

Family

ID=12806152

Family Applications (1)

Application Number Title Priority Date Filing Date
JP04853894A Expired - Fee Related JP3550177B2 (en) 1994-03-18 1994-03-18 Image processing device

Country Status (1)

Country Link
JP (1) JP3550177B2 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2005117412A1 (en) * 2004-05-27 2005-12-08 Konica Minolta Photo Imaging, Inc. Image processing method, image processing program and image processing apparatus
US8106884B2 (en) 2006-03-20 2012-01-31 Samsung Electronics Co., Ltd. Pointing input device, method, and system using image pattern
KR20080025593A (en) 2006-09-18 2008-03-21 삼성전기주식회사 Apparatus and method for color corrections of display images

Also Published As

Publication number Publication date
JPH07262347A (en) 1995-10-13

Similar Documents

Publication Publication Date Title
JP4375781B2 (en) Image processing apparatus, image processing method, program, and recording medium
GB2305833A (en) Image processing apparatus for correcting color space coordinates and method
EP0070680A1 (en) Reproduction of coloured images
JP2006303708A (en) Unit and method of processing image
JPH1084487A (en) Image processor and its method
WO2015097032A1 (en) Method of mapping source colors of images of a video content into the target color gamut of a target color device
JP2006345187A (en) Color processing method and device thereof
JPH05342344A (en) Method and system for picture processing
JP5253047B2 (en) Color processing apparatus and method
US5442717A (en) Sharpness processing apparatus
JPH11250227A (en) Method and device for correcting face area and record medium for recording face area correction program
JP3550177B2 (en) Image processing device
JP2001211339A (en) Method and device for image processing and recording medium
JP5950756B2 (en) Image processing apparatus and image processing method
JPH06315084A (en) Color reproducing method and device for outputting device
JP4007964B2 (en) Image processing apparatus, image processing method, and image processing program
JP2011124884A (en) Image processor, and image processing method
JP4528805B2 (en) Image forming apparatus, image processing method, and image processing program
JPH05205039A (en) Method and device for color image processing
JPH07271973A (en) Color image processor
JP2001285638A (en) Image processing method
JP2004297438A (en) Image correction method, apparatus, and program
JP2007158446A (en) Image processor, image processing method and program, recording medium
JPH03121571A (en) Color picture processor
JP2005309985A (en) Image processor and method thereof

Legal Events

Date Code Title Description
A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20040113

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20040315

RD02 Notification of acceptance of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7422

Effective date: 20040315

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20040423

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

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

Free format text: PAYMENT UNTIL: 20080430

Year of fee payment: 4

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

Free format text: PAYMENT UNTIL: 20090430

Year of fee payment: 5

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

Free format text: PAYMENT UNTIL: 20090430

Year of fee payment: 5

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

Free format text: PAYMENT UNTIL: 20100430

Year of fee payment: 6

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

Free format text: PAYMENT UNTIL: 20110430

Year of fee payment: 7

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

Free format text: PAYMENT UNTIL: 20110430

Year of fee payment: 7

LAPS Cancellation because of no payment of annual fees