JPH05207305A - Picture processor - Google Patents

Picture processor

Info

Publication number
JPH05207305A
JPH05207305A JP4013388A JP1338892A JPH05207305A JP H05207305 A JPH05207305 A JP H05207305A JP 4013388 A JP4013388 A JP 4013388A JP 1338892 A JP1338892 A JP 1338892A JP H05207305 A JPH05207305 A JP H05207305A
Authority
JP
Japan
Prior art keywords
color
threshold value
image data
image
replacement
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
JP4013388A
Other languages
Japanese (ja)
Other versions
JP3230533B2 (en
Inventor
Shigeki Yamada
茂樹 山田
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.)
Canon Inc
Original Assignee
Canon Inc
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 Canon Inc filed Critical Canon Inc
Priority to JP01338892A priority Critical patent/JP3230533B2/en
Publication of JPH05207305A publication Critical patent/JPH05207305A/en
Application granted granted Critical
Publication of JP3230533B2 publication Critical patent/JP3230533B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Image Processing (AREA)
  • Digital Computer Display Output (AREA)
  • Facsimile Image Signal Circuits (AREA)
  • Color Image Communication Systems (AREA)
  • Controls And Circuits For Display Device (AREA)

Abstract

PURPOSE:To provide a picture processor by which a color replacement can be attained without deteriorating a picture quality. CONSTITUTION:Picture data read through a picture data I/F 5 are stored in image memories 6-8, inputted to LUT 9-11, and the color replacement is operated based on conversion data stored in the LUT 9-11. A CPU 1 allows a threshold value setting part 14 and a color setting part 15 to set a threshold and a color for operating the color replacement, and allows an LUT setting part 16 to calculate the conversion data to be stored in the LUT 9-11 based on the set threshold value and color. Then, the obtained conversion data are stored through a CPU bus 4 in the LUT 9-11.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は画像処理装置に関し、例
えば、入力された画像データの色情報を任意の色に置換
する画像処理装置に関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an image processing apparatus, for example, an image processing apparatus for replacing color information of input image data with an arbitrary color.

【0002】[0002]

【従来の技術】例えば、白地に黒インクで印刷されたよ
うな2色画像をスキヤナで読取り、コンピユータへ入力
後、原画像の2つの色をそれぞれ別の色へ置換える場
合、従来は、輝度についてある閾値を定めて、該閾値を
越える輝度の画像データの色情報は第1の色に、該閾値
以下の輝度の画像データの色情報は第2の色に置換する
方法があつた。
2. Description of the Related Art For example, when a two-color image printed with black ink on a white background is read by a scanner and input to a computer, and then the two colors of the original image are replaced with different colors, the brightness is conventionally changed. There is a method in which a certain threshold value is set, and the color information of the image data having the luminance exceeding the threshold value is replaced with the first color, and the color information of the image data having the luminance less than the threshold value is replaced with the second color.

【0003】図8は上記従来方法によつて画像輪郭部の
画像データを2色に分けた一例を示す図で、横軸はスキ
ヤン位置、縦軸は、置換前は例えば輝度で、置換後は例
えば上端が青,下端が緑である。また、801は色置換
前の画像データの変化を、802は色置換後の画像デー
タの変化を表している。
FIG. 8 is a diagram showing an example in which the image data of the image contour portion is divided into two colors by the above conventional method. The horizontal axis is the scan position, the vertical axis is, for example, the brightness before the replacement and the brightness after the replacement. For example, the upper end is blue and the lower end is green. Reference numeral 801 represents a change in image data before color replacement, and 802 represents a change in image data after color replacement.

【0004】[0004]

【発明が解決しようとする課題】しかし、上記従来例に
は、次のような問題点があつた。すなわち、閾値をどん
な値に設定しても、画像輪郭部において急峻な色変化が
おきるため、色置換後の画像輪郭部にぎざぎざが発生
し、画像品質を劣化させる欠点があつた。
However, the above conventional example has the following problems. That is, no matter what the threshold value is set to, a sharp color change occurs in the image contour portion, so that the image contour portion after color replacement has jagged edges, which deteriorates the image quality.

【0005】本発明は、上記課題を解決するためになさ
れたもので、スキヤナなどで読込んだ2色画像を、輪郭
部のぎざぎざを発生させず画像品質を劣化させることな
く、色置換することができる画像処理装置を提供するこ
とを目的としている。
The present invention has been made in order to solve the above problems, and performs color replacement of a two-color image read by a scanner or the like without causing a jagged edge in the contour portion and degrading the image quality. It is an object of the present invention to provide an image processing device capable of performing the above.

【0006】[0006]

【課題を解決するための手段】本発明は、前記の課題を
解決することを目的としたもので、前記の課題を解決す
る一手段として、以下の構成を備える。すなわち、入力
された画像データを記憶する記憶手段と、第1の色と第
2の色とを設定する色設定手段と、第1の閾値と第2の
閾値とを設定する閾値設定手段と、前記記憶手段に記憶
された画像データの色情報を前記閾値設定手段により設
定された第1の閾値と第2の閾値とに基づいて前記色設
定手段により設定された第1の色と第2の色および前記
第1の色と前記第2の色との混色に置換する置換手段と
を備えた画像処理装置とする。
SUMMARY OF THE INVENTION The present invention is intended to solve the above problems, and has the following structure as one means for solving the above problems. That is, a storage unit that stores the input image data, a color setting unit that sets the first color and the second color, a threshold setting unit that sets the first threshold value and the second threshold value, The color information of the image data stored in the storage means is set to the first color and the second color set by the color setting means based on the first threshold and the second threshold set by the threshold setting means. The image processing apparatus includes a color and a replacement unit that replaces the first color and the second color with a mixed color.

【0007】[0007]

【作用】以上の構成によつて、画像品質を劣化させるこ
となく、色置換することができる画像処理装置を提供す
ることができる。
With the above arrangement, it is possible to provide an image processing apparatus capable of performing color replacement without degrading image quality.

【0008】[0008]

【実施例】以下、本発明に係る一実施例を図面を参照し
て詳細に説明する。図1は本発明に係る一実施例の画像
処理装置の構成例を示すブロツク図である。図1におい
て、1は制御プロセツサユニツト(以下「CPU」とい
う)で、本実施例の主制御を司る。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS An embodiment according to the present invention will be described below in detail with reference to the drawings. FIG. 1 is a block diagram showing a configuration example of an image processing apparatus according to an embodiment of the present invention. In FIG. 1, reference numeral 1 denotes a control processor unit (hereinafter referred to as "CPU"), which controls the main control of this embodiment.

【0009】2はCPUメモリで、例えばRAMやRO
Mで構成され、例えば本実施例の色置換プログラムや色
置換処理に必要なパラメタなどを記憶している。なお、
CPU1はCPUメモリ2に記憶されたプログラムによ
り処理を実行する。3はCPU−インタフエイス(以下
「I/F」という)で、キーボードやマウス(ともに不
図示)などのコマンド入力デバイスが接続される。
Reference numeral 2 is a CPU memory, such as RAM or RO.
The color replacement program of the present embodiment and parameters necessary for the color replacement processing are stored. In addition,
The CPU 1 executes processing according to a program stored in the CPU memory 2. A CPU-interface (hereinafter referred to as "I / F") 3 is connected to a command input device such as a keyboard and a mouse (both not shown).

【0010】4はCPUバスで、アドレスバス,データ
バスおよび制御バスの3つのバスで構成される。5は画
像データI/Fで、例えばスキヤナなどの画像入力デバ
イスや、例えばプリンタなどの画像出力デバイスが接続
され、原画像を読取つて得た画像データや、色置換後の
画像データの出力を行う。
A CPU bus 4 is composed of three buses, an address bus, a data bus and a control bus. An image data I / F 5 is connected to an image input device such as a scanner and an image output device such as a printer, and outputs image data obtained by reading an original image and image data after color replacement. ..

【0011】6〜8はイメージメモリで、例えば8ビツ
ト/画素のデータ幅をもち、イメージメモリR6は画像
データの赤成分を、イメージメモリG7は画像データの
緑成分を、イメージメモリB8は画像データの青成分を
記憶する。9〜11はルツクアツプテーブル(以下「L
UT」という)で、例えば高速RAMで構成され、各L
UT9〜11は、例えば256バイトの記憶容量をもつ
階調変換テーブルで、CPU1により書換え可能であ
る。
Image memories 6 to 8 have a data width of, for example, 8 bits / pixel. The image memory R6 stores the red component of the image data, the image memory G7 stores the green component of the image data, and the image memory B8 stores the image data. Remember the blue component of. 9 to 11 are rutup table (hereinafter referred to as "L
UT ”), which is composed of, for example, a high-speed RAM,
The UTs 9 to 11 are gradation conversion tables having a storage capacity of 256 bytes, for example, and can be rewritten by the CPU 1.

【0012】各LUT9〜11のアドレス端子Adr
は、各イメージメモリ6〜8の出力端子Outに接続さ
れ、各LUT9〜11の出力端子Outは、ビデオバス
12に接続されている。各イメージメモリ6〜8から供
給された例えば8ビツトの画像データは、各LUT9〜
11に記憶されたデータによつて変換されて、ビデオバ
ス12に出力される。また、各LUT9〜11には、C
PUバス4が接続されていて、CPU1は、CPUバス
4を介して、LUT9〜11に記憶されたデータを常時
読み書きできる。
Address terminals Adr of each LUT 9-11
Are connected to the output terminals Out of the image memories 6 to 8, and the output terminals Out of the LUTs 9 to 11 are connected to the video bus 12. For example, the 8-bit image data supplied from the image memories 6 to 8 are stored in the LUTs 9 to 9.
It is converted by the data stored in 11 and output to the video bus 12. Further, each LUT 9 to 11 has C
The PU bus 4 is connected, and the CPU 1 can always read and write the data stored in the LUTs 9 to 11 via the CPU bus 4.

【0013】13はビデオコントローラで、ビデオバス
12を介して、LUT9〜11からの例えば合計24ビ
ツトの画像データなどが入力され、該画像データからビ
デオ信号を生成し出力する。ビデオコントローラ13が
出力したビデオ信号は、例えばCRT(不図示)へ入力
され、色置換前後の画像のモニタリングや、置換後の色
の指定などに利用される。
A video controller 13 receives, for example, a total of 24 bits of image data from the LUTs 9 to 11 via the video bus 12, and generates and outputs a video signal from the image data. The video signal output by the video controller 13 is input to, for example, a CRT (not shown), and is used for monitoring images before and after color replacement, designating a color after replacement, and the like.

【0014】14は閾値設定部で、上下2つの閾値を設
定するためのもので、CPUバス4およびビデオバス1
2に接続されている。15は色設定部で、置換後の2色
を設定するためのもので、CPUバス4およびビデオバ
ス12に接続されている。16はLUT設定部で、LU
T9〜11に記憶させる変換データを計算するためのも
ので、CPUバス4に接続されている。
Reference numeral 14 denotes a threshold value setting unit for setting two upper and lower threshold values, which are the CPU bus 4 and the video bus 1.
Connected to 2. A color setting unit 15 is for setting the two colors after replacement, and is connected to the CPU bus 4 and the video bus 12. Reference numeral 16 is an LUT setting unit, which is an LU
It is for calculating conversion data to be stored in T9 to 11, and is connected to the CPU bus 4.

【0015】17はメモリ置換部で、イメージメモリ6
〜8が記憶する画像データを、LUT9〜11を通した
画像データに置換するためのもので、CPUバス4に接
続されている。18はイメージメモリコントローラで、
LUT設定部16やメモリ置換部17の処理に同期し
て、イメージメモリ6〜8およびLUT9〜11を制御
するためのもので、CPUバス4に接続されている。
Reference numeral 17 denotes a memory replacement unit, which is an image memory 6
8 to 8 are for replacing the image data stored therein with the image data passed through the LUTs 9 to 11, and are connected to the CPU bus 4. 18 is an image memory controller,
It is for controlling the image memories 6 to 8 and the LUTs 9 to 11 in synchronization with the processing of the LUT setting unit 16 and the memory replacing unit 17, and is connected to the CPU bus 4.

【0016】なお、以下の説明では、アドレス(x,y)の
画像データをA(x,y)で表す。ただし、RGBの各色の
輝度データAi(x,y)を表すときは、それぞれAR(x,y),
AG(x,y),AB(x,y)と記す。さらに、輝度データAi(x,
y)のデータ幅を例えば8ビツトとすると、各色の輝度は
最小輝度0から最大輝度255の256階調で表され
る。
In the following description, the image data at the address (x, y) is represented by A (x, y). However, when the brightness data Ai (x, y) of each color of RGB is represented, AR (x, y),
It is noted as AG (x, y) and AB (x, y). Furthermore, the brightness data Ai (x,
If the data width of y) is 8 bits, for example, the brightness of each color is represented by 256 gradations from minimum brightness 0 to maximum brightness 255.

【0017】図2は本実施例の色置換処理の一例を示す
フローチヤートである。図2において、2色画像の原画
像を例えばスキヤナで読取つて得た画像データを、ステ
ツプS1で、CPU1によつて、画像データI/F5お
よびCPUバス4を介して、イメージメモリ6〜8に記
憶させる。なお、このときLUT9〜11は、図3に一
例を示す、入出力が等しい標準変換特性に設定されてい
て、イメージメモリ6〜8に記憶された画像データは、
ビデオバス12およびビデオコントローラ13を介し
て、CRTなどでモニタすることができる。
FIG. 2 is a flow chart showing an example of the color replacement process of this embodiment. In FIG. 2, the image data obtained by reading the original image of the two-color image with, for example, a scanning device is stored in the image memories 6 to 8 via the image data I / F 5 and the CPU bus 4 by the CPU 1 in step S1. Remember. At this time, the LUTs 9 to 11 are set to the standard conversion characteristics having the same input and output as shown in FIG. 3, and the image data stored in the image memories 6 to 8 are
It can be monitored by a CRT or the like via the video bus 12 and the video controller 13.

【0018】続いて、ステツプS2で、CPU1は色設
定部15を動作させて、置換前の画像データの明部を何
色に置換するかを設定する。同様に、ステツプS3で
は、置換前の画像データの暗部を何色に置換するかを設
定する。具体的には、色設定部15からビデオバス12
とビデオコントローラ13を介してCRTなどの上に、
図4に一例を示す、カラーパレツト401と、メツセー
ジ402“明部の色を選んで下さい”または“暗部の色
を選んでください”とが表示され、本実施例のオペレー
タは、CPU−I/F3に接続されたマウスなどによつ
て、該カラーパレツト中から任意の1色を選択する。な
お、カラーパレツトから選択するのではなく、CPU−
I/F3に接続されたキーボードなどから、「255,0,
0」や「100,200,100」などの色データを入力することで
色を指定することもできる。
Subsequently, in step S2, the CPU 1 operates the color setting unit 15 to set what color the bright part of the image data before replacement is to be replaced with. Similarly, in step S3, the color to replace the dark part of the image data before replacement is set. Specifically, from the color setting unit 15 to the video bus 12
And on the CRT etc. via the video controller 13,
As shown in FIG. 4, a color palette 401 and a message 402 “Please select a color for the light area” or “Select a color for the dark area” are displayed. An arbitrary color is selected from the color pallets by using a mouse connected to the. It should be noted that instead of selecting from the color palette, the CPU-
From the keyboard connected to the I / F3, select "255,0,
You can also specify a color by entering color data such as "0" or "100,200,100".

【0019】続いて、ステツプS4では、CPU1は閾
値設定部14を動作させて、上下2つの閾値を入力す
る。具体的には、閾値設定部14からビデオバス12と
ビデオコントローラ13を介してCRTなどの上に、図
5に一例を示す、階調バー501と“OK”ボタン50
2が表示され、本実施例のオペレータは、CPU−I/
F3に接続されたマウスなどによつて、例えば、図5に
示す三角印503および三角印504を左右に移動する
ことにより、それぞれ下側および上側の閾値が変更され
る。なお、階調バーを用いて閾値を変更するのではな
く、CPU−I/F3に接続されたキーボードなどか
ら、「92」や「321」などの文字列を入力することで閾
値を変更することもできる。
Subsequently, in step S4, the CPU 1 operates the threshold value setting section 14 to input two upper and lower threshold values. Specifically, a gradation bar 501 and an “OK” button 50, an example of which is shown in FIG. 5, are displayed on the CRT or the like from the threshold setting unit 14 via the video bus 12 and the video controller 13.
2 is displayed, and the operator of this embodiment uses the CPU-I /
By using a mouse or the like connected to F3 to move the triangular marks 503 and 504 shown in FIG. 5 to the left or right, the lower and upper threshold values are changed. Instead of changing the threshold value using the gradation bar, change the threshold value by entering a character string such as "92" or "321" from a keyboard connected to the CPU-I / F3. You can also

【0020】続いて、ステツプS5で、CPU1はLU
T設定部16を動作させて、設定された2色および変更
された上下2つの閾値に基づいたLUT9〜11の各変
換データを計算させ、計算によつて得られた変換データ
を、CPUバス4を介して、LUT9〜11に書込む。
従つて、LUT9〜11は、設定された2色および変更
された上下2つの閾値に基づいた変換特性に設定され、
現在の閾値による色置換後の画像が、逐次、ビデオコン
トローラ13を介してCRTなどへ表示され、本実施例
のオペレータは、閾値に対応する色置換後の画像を直ち
に確認できる。
Then, in step S5, the CPU 1 sets the LU
The T setting unit 16 is operated to calculate each conversion data of the LUTs 9 to 11 based on the set two colors and the changed two upper and lower thresholds, and the conversion data obtained by the calculation is stored in the CPU bus 4 Write to LUTs 9-11 via.
Therefore, the LUTs 9 to 11 are set to the conversion characteristics based on the set two colors and the changed upper and lower two threshold values,
The images after the color replacement by the current threshold value are sequentially displayed on the CRT or the like via the video controller 13, and the operator of this embodiment can immediately confirm the images after the color replacement corresponding to the threshold value.

【0021】続いて、ステツプS6で、CPU1は、図
5に一例を示す“OK”ボタン502が、例えばマウス
などによつて例えば「クリツクされたか」を判定し、N
Oの場合はステツプS4に戻り、YESの場合はステツ
プS7へ進む。なお、CPU−I/F3に接続されたキ
ーボードなどから、例えば特定のコードを入力すること
で、“OK”ボタンをクリツクしたのと同様の働きをさ
せることもできる。
Subsequently, in step S6, the CPU 1 determines whether the "OK" button 502, an example of which is shown in FIG. 5, is "clicked" by a mouse or the like, and N
If O, the process returns to step S4, and if YES, the process proceeds to step S7. By inputting a specific code, for example, from a keyboard connected to the CPU-I / F3, the same operation as clicking the "OK" button can be performed.

【0022】続いて、ステツプS7で、CPU1はメモ
リ置換部17を動作させて、イメージメモリ6〜8が記
憶する画像データを、CPUバス4を介して、LUT9
〜11の出力した画像データに置換える。最後に、ステ
ツプS8で、CPU1は、図3に一例を示す、入出力が
等しい標準変換特性にLUT9〜11を初期化する。
Then, in step S7, the CPU 1 operates the memory replacement unit 17 to transfer the image data stored in the image memories 6 to 8 to the LUT 9 via the CPU bus 4.
It is replaced with the output image data of 11 to 11. Finally, in step S8, the CPU 1 initializes the LUTs 9 to 11 to the standard conversion characteristics having the same input and output, an example of which is shown in FIG.

【0023】次に、上下2つの閾値を設定する効果を説
明する。図6はスキヤナなどで読取つた画像輪郭部の画
像データの変化の一例を示す図で、横軸はスキヤン位
置、縦軸は例えば輝度である。図6に一例を示すような
スキヤナなどで読取つた画像データを2色に分ける場
合、例えば、図6に示す閾値Sh1を定め、閾値Sh1
を越える輝度の部分は第1の色、閾値Sh1以下の輝度
の部分は第2の色とする方法が一般的であつた。本実施
例においては、図6に示す、異なる値の2つの閾値Sh
2とSh3を設定することにより、色置換後の画像輪郭
部のぎざぎざ発生を防ぎ、画像品質劣化のない色置換を
行う。
Next, the effect of setting two upper and lower threshold values will be described. FIG. 6 is a diagram showing an example of changes in the image data of the image outline portion read by scanning, etc., where the horizontal axis is the scan position and the vertical axis is the brightness, for example. When the image data read by scanning or the like as shown in FIG. 6 is divided into two colors, for example, the threshold value Sh1 shown in FIG. 6 is set and the threshold value Sh1 is set.
It is a general method to set the first color for the luminance portion exceeding the threshold and the second color for the luminance portion below the threshold value Sh1. In this embodiment, two threshold values Sh having different values shown in FIG. 6 are used.
By setting 2 and Sh3, it is possible to prevent the occurrence of jagged edges in the image contour portion after color replacement, and to perform color replacement without image quality deterioration.

【0024】図7は本実施例によつて画像輪郭部の画像
データを2色に分けた一例を示す図で、横軸はスキヤン
位置、縦軸は、置換前は例えば輝度で、置換後は例えば
上端が青,下端が緑,中間は青と緑の混色である。ま
た、701は色置換前の画像データの変化を、702は
色置換後の画像データの変化を表している。本実施例に
おいては、図7に示すように、置換前の画像データは3
つの領域に分けられる。つまり、閾値Sh2を越える部
分(以下「第1の領域」という)と、閾値Sh2以下で
かつ閾値Sh3を越える部分(以下「第2の領域」とい
う)と、閾値Sh3以下の部分(以下「第3の領域」と
いう)とである。
FIG. 7 is a diagram showing an example in which the image data of the image contour portion is divided into two colors according to the present embodiment. The horizontal axis represents the scan position, the vertical axis represents the brightness before replacement, and the brightness after replacement. For example, the upper end is blue, the lower end is green, and the middle is a mixture of blue and green. Reference numeral 701 represents a change in image data before color replacement, and 702 represents a change in image data after color replacement. In this embodiment, as shown in FIG. 7, the image data before replacement is 3
It is divided into two areas. That is, a portion that exceeds the threshold Sh2 (hereinafter referred to as "first region"), a portion that is equal to or less than the threshold Sh2 (hereinafter referred to as "second region"), and a portion that is equal to or less than the threshold Sh3 (hereinafter referred to as "first region"). 3 area ”).

【0025】シヤープなエツジをもつ原画像であつて
も、スキヤナなどのサンプリングによつて、図7に示す
ように、画像輪郭部は滑らかな画像データ変化を示す。
つまり、スキヤナなどによるサンプリングによつて、ア
ンチエリアシングが行われるので、第1の領域をステツ
プS2で指定した第1の色に、第3の領域をステツプS
3で指定した第2の色に、第2の領域は置換前の画像デ
ータの例えば輝度に対応した第1の色と第2の色の混色
に、それぞれ置換する。すなわち、図7に示すように、
第1の領域は青に、第3の領域は緑に、第2の領域は、
輝度が大きいほど青に近い色に、輝度が小さいほど緑に
近い色に、それぞれ置換される。
Even with an original image having sharp edges, the image contour portion shows a smooth change in image data as shown in FIG. 7 due to sampling by scanner or the like.
In other words, since anti-aliasing is performed by sampling by scanning, etc., the first area is set to the first color specified in step S2, and the third area is set to step S2.
The second area is replaced with the second color specified in 3, and the second area is replaced with a mixed color of the first color and the second color corresponding to, for example, the luminance of the image data before the replacement. That is, as shown in FIG.
The first area is blue, the third area is green, and the second area is
The higher the brightness, the closer the color is to blue, and the lower the brightness, the color closer to green.

【0026】なお、第2の領域の色Ciは、第1の色を
C1,第2の色をC2、図7に示す置換前の画像データ
801の任意の点の輝度をBiとすると、次の式で表さ
れる。 Ci=C1(Bi−Sh3)/(Sh2−Sh3) +C2(Sh2−Bi)/(Sh2−Sh3) 以上説明したように、本実施例によれば、2つの閾値を
設定して、スキヤナなどで読取つて得た画像データを、
例えば輝度について3つの領域に分け、輝度の大きい第
1の領域を第1の色に、輝度の小さい第3の領域を第2
の色に置換し、中間の輝度をもつ第2の領域は、輝度に
対応した第1の色と第2の色の混色に置換することによ
つて、色置換後の画像輪郭部のぎざぎざ発生を防ぎ、画
像品質が劣化しない色置換処理ができる。
Assuming that the color Ci of the second area is C1, the second color is C2, and the brightness of an arbitrary point of the image data 801 before replacement shown in FIG. It is expressed by the formula. Ci = C1 (Bi-Sh3) / (Sh2-Sh3) + C2 (Sh2-Bi) / (Sh2-Sh3) As described above, according to the present embodiment, two threshold values are set and scanning is performed. Image data obtained by scanning
For example, the luminance is divided into three areas, the first area having high luminance is used as the first color, and the third area having low luminance is used as the second area.
The second area having the intermediate brightness is replaced with the mixed color of the first color and the second color corresponding to the brightness, so that the jagged edges of the image outline after the color replacement occur. It is possible to perform color replacement processing that prevents image deterioration and does not deteriorate image quality.

【0027】さらに、本実施例のオペレータによつて、
置換後の2色および2つの閾値を任意に設定でき、とく
に閾値については、色置換後の画像をモニタリングしな
がら設定することができるので、色置換後の画像輪郭部
がシヤープでかつぎざぎざのない最適な閾値とすること
ができる。また、前述のステツプS1において、2色の
原画像をモノクロフイルタを用いて、モノクロ1画面分
の画像データとして読込むこともできるし、RGB用の
カラーフイルタを使つて、一旦、イメージメモリ6〜8
にカラー画像として記憶させ、その後、人間の視感度特
性(R:G:B=3:6:1)で重み付け加算して、モ
ノクロ1画面分のイメージデータとしても、略同様の結
果を得ることができる。
Further, according to the operator of this embodiment,
The two colors and two threshold values after replacement can be set arbitrarily. Especially, the threshold value can be set while monitoring the image after color replacement, so that the image contour portion after color replacement is sharp and has no jagged edges. It can be an optimum threshold. Further, in step S1 described above, the original images of two colors can be read as image data for one monochrome screen by using the monochrome filter, or by using the RGB color filter, the image memory 6 to 8
Color image as a color image, and then weighted and added by human visibility characteristics (R: G: B = 3: 6: 1) to obtain substantially the same result as image data for one monochrome screen. You can

【0028】さらに、閾値をマウスなどを用いてインタ
ラクテイブに決定する方法を説明したが、閾値を処理コ
マンドのパラメタとして、予め与えておくことも可能で
ある。同一条件の原画像の場合、上下2つの閾値が原画
像によつて異なることはないので、一つの画像に対して
閾値を決定しておけば、コマンドのパラメタとして閾値
を与えることにより、より簡単に高速に処理を行うこと
ができる。
Further, the method of interactively determining the threshold value using the mouse or the like has been described, but the threshold value may be given in advance as a parameter of the processing command. In the case of original images under the same conditions, the upper and lower two threshold values do not differ depending on the original image. Therefore, if the threshold value is determined for one image, it will be easier by giving the threshold value as a command parameter. It can be processed at high speed.

【0029】なお、本発明は、複数の機器から構成され
るシステムに適用しても、1つの機器からなる装置に適
用してもよい。また、本発明は、システムあるいは装置
にプログラムを供給することによつて達成される場合に
も適用できることはいうまでもない。
The present invention may be applied to a system composed of a plurality of devices or an apparatus composed of a single device. Further, it goes without saying that the present invention can also be applied to the case where it is achieved by supplying a program to a system or an apparatus.

【0030】[0030]

【発明の効果】以上、本発明によれば、画像品質を劣化
させることなく、色置換することができる画像処理装置
を提供することができる。
As described above, according to the present invention, it is possible to provide an image processing apparatus capable of performing color replacement without degrading image quality.

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

【図1】本発明に係る一実施例の画像処理装置の構成例
を示すブロツク図である。
FIG. 1 is a block diagram showing a configuration example of an image processing apparatus according to an embodiment of the present invention.

【図2】本実施例の色置換処理の一例を示すフローチヤ
ートである。
FIG. 2 is a flow chart showing an example of color replacement processing of the present embodiment.

【図3】本実施例のLUTの標準変換特性の一例を示す
図である。
FIG. 3 is a diagram showing an example of standard conversion characteristics of the LUT of the present embodiment.

【図4】本実施例において置換色を指定するときの表示
画面の一例を示す図である。
FIG. 4 is a diagram showing an example of a display screen when a replacement color is designated in the present embodiment.

【図5】本実施例において閾値を設定するときの表示画
面の一例を示す図である。
FIG. 5 is a diagram showing an example of a display screen when setting a threshold value in the present embodiment.

【図6】一般的なスキヤナなどで読取つた画像輪郭部の
画像データの変化例を示す図である。
FIG. 6 is a diagram showing a change example of image data of an image contour portion read by a general scanner or the like.

【図7】本実施例による色置換の一例を示す図である。FIG. 7 is a diagram showing an example of color replacement according to the present embodiment.

【図8】従来方法による色置換の一例を示す図である。FIG. 8 is a diagram showing an example of color replacement by a conventional method.

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

1 CPU 2 CPUメモリ 3 CPU−I/F 4 CPUバス 5 画像データI/F 6〜8 イメージメモリ 9〜11 LUT 12 ビデオバス 13 ビデオコントローラ 14 閾値設定部 15 色設定部 16 LUT設定部 17 メモリ置換部 18 イメージメモリコントローラ 1 CPU 2 CPU memory 3 CPU-I / F 4 CPU bus 5 Image data I / F 6 to 8 Image memory 9 to 11 LUT 12 Video bus 13 Video controller 14 Threshold setting unit 15 Color setting unit 16 LUT setting unit 17 Memory replacement Part 18 Image memory controller

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】 入力された画像データを記憶する記憶手
段と、 第1の色と第2の色とを設定する色設定手段と、 第1の閾値と第2の閾値とを設定する閾値設定手段と、 前記記憶手段に記憶された画像データの色情報を前記閾
値設定手段により設定された第1の閾値と第2の閾値と
に基づいて前記色設定手段により設定された第1の色と
第2の色および前記第1の色と前記第2の色との混色に
置換する置換手段とを有することを特徴とする画像処理
装置。
1. A storage unit for storing input image data, a color setting unit for setting a first color and a second color, and a threshold setting for setting a first threshold value and a second threshold value. Means and a first color set by the color setting means based on the first threshold value and the second threshold value set by the threshold value setting means, the color information of the image data stored in the storage means. An image processing apparatus comprising: a second color and a replacement unit that replaces the first color with a mixed color of the second color.
【請求項2】 入力された画像データを記憶する記憶手
段と、 第1の色と第2の色とを設定する色設定手段と、 第1の閾値と第2の閾値とを設定する閾値設定手段と、 前記記憶手段に記憶された画像データの色情報を前記閾
値設定手段により設定された第1の閾値と第2の閾値と
に基づいて前記色設定手段により設定された第1の色と
第2の色および前記第1の色と前記第2の色との混色に
置換する置換手段とを備え、 前記置換手段は、前記画像データと前記第1の閾値と前
記第2の閾値とを比較し、前記第1の閾値より大きい前
記画像データの色情報を前記第1の色に置換し、前記第
2の閾値より小さい前記画像データの色情報を前記第2
の色に置換し、前記第1の閾値より小さくかつ前記第2
の閾値より大きい前記画像データの色情報は前記画像デ
ータに対応した前記第1の色と前記第2の色との混色に
置換することを特徴とする画像処理装置。
2. Storage means for storing input image data, color setting means for setting a first color and a second color, and threshold setting for setting a first threshold value and a second threshold value. Means and a first color set by the color setting means based on the first threshold value and the second threshold value set by the threshold value setting means, the color information of the image data stored in the storage means. A replacement unit that replaces the second color and the mixed color of the first color and the second color, wherein the replacement unit replaces the image data, the first threshold, and the second threshold with each other. The color information of the image data larger than the first threshold value is replaced with the first color, and the color information of the image data smaller than the second threshold value is compared with the second color information.
Of the second threshold, and is smaller than the first threshold value and smaller than the second threshold value.
The image processing apparatus is characterized in that the color information of the image data larger than the threshold value is replaced with a color mixture of the first color and the second color corresponding to the image data.
JP01338892A 1992-01-28 1992-01-28 Image processing apparatus and method Expired - Fee Related JP3230533B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP01338892A JP3230533B2 (en) 1992-01-28 1992-01-28 Image processing apparatus and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP01338892A JP3230533B2 (en) 1992-01-28 1992-01-28 Image processing apparatus and method

Publications (2)

Publication Number Publication Date
JPH05207305A true JPH05207305A (en) 1993-08-13
JP3230533B2 JP3230533B2 (en) 2001-11-19

Family

ID=11831722

Family Applications (1)

Application Number Title Priority Date Filing Date
JP01338892A Expired - Fee Related JP3230533B2 (en) 1992-01-28 1992-01-28 Image processing apparatus and method

Country Status (1)

Country Link
JP (1) JP3230533B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7920146B2 (en) 2004-07-21 2011-04-05 Sony Corporation User interface providing device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7920146B2 (en) 2004-07-21 2011-04-05 Sony Corporation User interface providing device

Also Published As

Publication number Publication date
JP3230533B2 (en) 2001-11-19

Similar Documents

Publication Publication Date Title
US7356202B2 (en) Image processing apparatus, an image processing method, and a computer readable medium having recorded thereon a processing program for permitting a computer to perform image processing routines
JP4702132B2 (en) Image processing apparatus, liquid crystal display apparatus, and color correction method
JP3201039B2 (en) Display device
US5204664A (en) Display apparatus having a look-up table for converting pixel data to color data
EP0357385A2 (en) Image processing method and apparatus
JP2578170B2 (en) Image display device
US20030234810A1 (en) Graphical user interface for color correction using curves
US6259439B1 (en) Color lookup table blending
JP3230533B2 (en) Image processing apparatus and method
JPH09101771A (en) Picture processor
JPH05205039A (en) Method and device for color image processing
JPH07261731A (en) Image processor
JPH1188712A (en) Image processing method and image processor
JP2001249655A (en) Display device
JPH10149431A (en) Picture processing method
JPH06214543A (en) Picture display device
JP4982964B2 (en) Color adjustment circuit, image display device, color adjustment method and program
JPH1063223A (en) Pseudo halftone processing controller
JPH10150571A (en) Method, device for correcting defective pixel in digital image and recording medium
JPH07141311A (en) Image processor
JP2022144005A (en) Image processing device, display device, image processing method, and program
JPH04328688A (en) Image processor
JPH10200762A (en) Picture processor and picture processing method
JPH10200773A (en) Color correction device
JPH1078772A (en) High picture quality screen display device

Legal Events

Date Code Title Description
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20010810

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

Free format text: PAYMENT UNTIL: 20070914

Year of fee payment: 6

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

Free format text: PAYMENT UNTIL: 20080914

Year of fee payment: 7

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

Free format text: PAYMENT UNTIL: 20090914

Year of fee payment: 8

LAPS Cancellation because of no payment of annual fees