JPH08272345A - Image processor - Google Patents

Image processor

Info

Publication number
JPH08272345A
JPH08272345A JP7077930A JP7793095A JPH08272345A JP H08272345 A JPH08272345 A JP H08272345A JP 7077930 A JP7077930 A JP 7077930A JP 7793095 A JP7793095 A JP 7793095A JP H08272345 A JPH08272345 A JP H08272345A
Authority
JP
Japan
Prior art keywords
color
divided
space
data
color space
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.)
Pending
Application number
JP7077930A
Other languages
Japanese (ja)
Inventor
Satoru Ono
哲 小野
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.)
Fujifilm Business Innovation Corp
Original Assignee
Fuji Xerox Co 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 Fuji Xerox Co Ltd filed Critical Fuji Xerox Co Ltd
Priority to JP7077930A priority Critical patent/JPH08272345A/en
Publication of JPH08272345A publication Critical patent/JPH08272345A/en
Pending legal-status Critical Current

Links

Landscapes

  • Image Processing (AREA)
  • Controls And Circuits For Display Device (AREA)

Abstract

PURPOSE: To reduce a sense of incongruity on a display screen by transforming an input color image to a certain extent to an image of a similar color tone to an original one. CONSTITUTION: A color space dividing part 2 equally divides a color space of an input color image into divided color spaces of a palette register number. Computing part 3 for frequency of use determines the frequency of use for each color data used for the input color image. A divided space managing part 4 manages the number of color data in the divided color spaces and the frequency of use in the divided color space for every divided color space. Redividing part 5 selects the most frequently used color space in the case where there are some divided color space where no color data exists, repeats redividing processing of the selected color space on the basis of the color data number in the divided color space, and re-sets the selected color space to the divided color space of the palette register number. A representative color deciding part 6 determines a representative color data for each of the finally divided color spaces and register this decided color data in a palette 27.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、入力カラー画像を構成
する全色画素を参照して、パレットに登録される同時出
力可能数の色データを選択し、該選択された色データを
用いて前記入力カラー画像の全色画素の変換処理を行う
画像処理装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention refers to all color pixels forming an input color image, selects a number of color data items that can be simultaneously output and is registered in a palette, and uses the selected color data items. The present invention relates to an image processing device that performs conversion processing of all color pixels of the input color image.

【0002】[0002]

【従来の技術】従来、CRTディスプレイ上にカラー表
示出力するコンピュータは、通常ルックアップテーブル
(パレット)を内蔵し、このパレットを用いてVRAM
の情報モニタ上に写る色の情報に変換している。ここ
で、フルカラー(約1677万色)の入力カラー画像を
そのままCRTディスプレイ上に表示出力するために
は、VRAMが1画素当たり24ビットで構成される必
要がある。すなわち、VRAMは色要素R,G,B毎の
情報をもち、各色要素が8ビットで表現されるからであ
る。
2. Description of the Related Art Conventionally, a computer which outputs a color display on a CRT display usually has a look-up table (palette) built therein, and this palette is used for VRAM.
The information is converted into the color information that appears on the information monitor. Here, in order to display and output the full-color (about 16.77 million colors) input color image as it is on the CRT display, the VRAM needs to be configured with 24 bits per pixel. That is, the VRAM has information for each color element R, G, B, and each color element is represented by 8 bits.

【0003】しかし、フルカラーの入力カラー画像をそ
のままCRTディスプレイ上に表示出力する場合、1画
素当たりの情報量が24ビットであることから、1つの
入力カラー画像当たりの情報量が大きく、その結果、記
憶装置の大型化、画像データの転送時間の増大という問
題点を招くことになる。
However, when a full-color input color image is displayed and output as it is on a CRT display, since the information amount per pixel is 24 bits, the information amount per input color image is large, and as a result, This leads to problems such as an increase in the size of the storage device and an increase in the transfer time of image data.

【0004】そこで、一般に色データ数を256色に限
定し、1画素当たりの情報量を8ビットとすることによ
って、1つの入力カラー画像当たりの情報量を少なくす
るようにしている。
Therefore, in general, the number of color data is limited to 256 colors and the amount of information per pixel is set to 8 bits to reduce the amount of information per one input color image.

【0005】しかし、この方法のみでは原入力カラー画
像の忠実な再現は不可能である。
However, it is impossible to faithfully reproduce the original input color image only by this method.

【0006】そこで、さらに原入力カラー画像に忠実な
画像を表示出力するために、入力カラー画像に出現する
色データの使用頻度を算出し、この使用頻度の高い順に
所定数例えば256色の色データをパレットに登録し、
入力カラー画像の各画素をパレットに登録された色デー
タに変換するようにしていた。
Therefore, in order to display and output an image that is more faithful to the original input color image, the frequency of use of the color data appearing in the input color image is calculated, and the color data of a predetermined number, for example 256 colors, is calculated in descending order of frequency of use. To the palette,
Each pixel of the input color image is converted into color data registered in the palette.

【0007】しかし、この場合使用頻度の低い色データ
はパレットに登録されず、無視されてしまうため、例え
ば入力カラー画像内の小さな点などは再現されず、画像
の再現性が悪いという問題点があった。
However, in this case, the color data that is not frequently used is not registered in the palette and is ignored, so that, for example, small dots in the input color image cannot be reproduced, and the reproducibility of the image is poor. there were.

【0008】この問題点を解決するため、例えば特開平
3−171374号公報には、予めフルカラーの色空間
を256個の分割色空間に分割し、さらに分割色空間内
に色データが存在しない場合は色データを有しない分割
色空間を削除し、最も使用頻度の高い分割色空間を2等
分し、全ての分割色空間が色データを有するような25
6個の分割色空間を生成し、この生成した分割色空間毎
に代表の色データをパレットに登録する色変換方式が記
載されている。
In order to solve this problem, for example, in Japanese Patent Laid-Open No. 3-171374, a full color color space is divided into 256 divided color spaces in advance, and color data does not exist in the divided color space. Deletes the divided color space that does not have color data, divides the most frequently used divided color space into two equal parts, and makes all divided color spaces have color data.
A color conversion method is described in which six divided color spaces are generated and representative color data is registered in a palette for each of the generated divided color spaces.

【0009】この色変換方式によれば、使用頻度が少な
い色画素の色データもパレットに登録されるため、ある
程度入力カラー画像の色調に類似した表示が可能とな
り、表示画面上の違和感を低減することができる。
According to this color conversion method, the color data of the color pixels that are rarely used is also registered in the palette, so that a display similar to the color tone of the input color image can be performed to some extent, and the discomfort on the display screen is reduced. be able to.

【0010】[0010]

【発明が解決しようとする課題】しかしながら、特開平
3−171374号公報のものは、使用頻度の高い分割
色空間を該分割色空間内の色データ数を考慮せずに、単
に2等分して新たな分割色空間を生成するようにしてい
るため、最終的に分割された分割色空間相互間で極端な
色データ数の差異が生じる場合があり、入力カラー画像
を忠実に再現した画像に変換できない可能性があるとい
う問題点があった。
However, in Japanese Patent Laid-Open No. 3-171374, the divided color space that is frequently used is simply divided into two equal parts without considering the number of color data in the divided color space. Since a new divided color space is generated by the above, there may be an extreme difference in the number of color data between the divided color spaces that are finally divided, and an image that faithfully reproduces the input color image may appear. There was a problem that it could not be converted.

【0011】そこで、本発明はかかる問題点を除去し、
パレットに登録する色データを決定するための分割色空
間を生成する際、分割色空間内の色画素の使用頻度及び
色データ数の双方を考慮した分割色空間に分割し、入力
カラー画像を、ある程度入力カラー画像の色調に類似し
た画像に変換して表示画面上の違和感を低減することが
できる画像処理装置を提供することを目的とする。
Therefore, the present invention eliminates such problems,
When generating the divided color space for determining the color data to be registered in the palette, divide the input color image into divided color spaces that consider both the frequency of use of color pixels in the divided color space and the number of color data, An object of the present invention is to provide an image processing apparatus that can convert an input color image into an image similar in color tone to some extent and reduce the discomfort on the display screen.

【0012】[0012]

【課題を解決するための手段】本発明は、入力カラー画
像を構成する全色画素を参照して、パレットに登録され
る同時出力可能数の色データを選択し、該選択された色
データを用いて前記入力カラー画像の全色画素の変換処
理を行う画像処理装置において、前記入力カラー画像の
色空間を同時出力可能数の分割色空間に分割する色空間
分割手段と、前記全色画素の色データ毎の使用頻度を求
める算出手段と、前記分割色空間毎に該分割色空間内の
色データ数と色画素の使用頻度とを管理する管理手段
と、前記管理手段が管理する分割色空間内に色データが
存在しない分割色空間がある場合、最も使用頻度が高い
分割色空間を選択し、該選択した分割色空間を該分割色
空間内の色データ数に基づいて再分割する処理を繰り返
し、色データが存在する同時出力可能数の分割色空間に
再設定する再分割手段と、前記再分割手段が再設定した
同時出力可能数の分割色空間毎に代表の色データを決定
し、該決定された色データを前記パレットに登録する登
録手段とを具備したことを特徴とする。
The present invention refers to all color pixels forming an input color image, selects a number of color data items that can be simultaneously output and is registered in a palette, and selects the selected color data items. In an image processing device that uses the conversion processing of all color pixels of the input color image, a color space dividing unit that divides the color space of the input color image into the number of divided color spaces that can be simultaneously output, and Calculating means for obtaining the frequency of use for each color data; managing means for managing the number of color data in the divided color space and the frequency of use of color pixels for each of the divided color spaces; and a divided color space managed by the managing means. When there is a divided color space in which color data does not exist, a divided color space that is used most frequently is selected, and the selected divided color space is redivided based on the number of color data in the divided color space. Repeat, color data exists Re-dividing means for resetting to the simultaneous output possible number of divided color spaces and representative color data for each of the simultaneous output possible number of divided color spaces reset by the re-dividing means, and the decided color data And a registration means for registering in the pallet.

【0013】[0013]

【作用】本発明では、まず色空間分割手段が入力カラー
画像の色空間を同時出力可能数の分割色空間に分割す
る。算出手段は、入力カラー画像に使用される色データ
毎の使用頻度を求める。そして、管理手段は、色空間分
割手段が分割した分割色空間内の色データ数と該分割色
空間内の使用頻度とを分割色空間毎に管理する。再分割
手段は、管理手段が管理する分割色空間内に色データが
存在しない分割色空間がある場合、最も使用頻度が高い
分割色空間を選択し、該選択した分割色空間を該分割色
空間内の色データ数に基づいて再分割する処理を繰り返
し、色データが存在する同時出力可能数の分割色空間に
再設定する。そして、登録手段は、再分割手段が再設定
した最終的な分割色空間毎に代表の色データを決定し、
この決定した色データをパレットに登録する。そして、
入力カラー画像はパレットに登録された色データに変換
される。
In the present invention, first, the color space dividing means divides the color space of the input color image into the number of divided color spaces which can be simultaneously output. The calculation means obtains the frequency of use for each color data used for the input color image. Then, the management unit manages the number of color data in the divided color space divided by the color space dividing unit and the frequency of use in the divided color space for each divided color space. When there is a divided color space in which color data does not exist in the divided color space managed by the management unit, the re-dividing unit selects the divided color space with the highest frequency of use, and selects the selected divided color space as the divided color space. The process of re-division based on the number of color data in is repeated, and the color data is reset to the number of divided color spaces in which simultaneous output is possible. Then, the registration means determines representative color data for each final divided color space reset by the re-division means,
The color data thus determined is registered in the palette. And
The input color image is converted into color data registered in the palette.

【0014】これにより、最終的に生成された分割色空
間は使用頻度のみならす色データ数が加味されたものと
なる。
As a result, the finally generated divided color space takes into consideration the number of color data which is used only for the frequency of use.

【0015】[0015]

【実施例】以下、図面を参照して本発明の一実施例につ
いて説明する。
An embodiment of the present invention will be described below with reference to the drawings.

【0016】図1は、本発明の一実施例である画像処理
装置の構成を示す図である。図1において、本画像処理
装置は、制御部1、スキャナコントローラC1を介した
スキャナ10、磁気ディスクコントローラC2を介した
磁気ディスク11、マウス13を含むキーボード12、
ディスプレイコントローラC3を介したディスプレイ1
4、及び光ディスクコントローラC4を介した光ディス
ク15が、システムバスBに接続されて構成される。
FIG. 1 is a block diagram showing the arrangement of an image processing apparatus according to an embodiment of the present invention. In FIG. 1, the image processing apparatus includes a control unit 1, a scanner 10 via a scanner controller C1, a magnetic disk 11 via a magnetic disk controller C2, a keyboard 12 including a mouse 13,
Display 1 via display controller C3
4, and an optical disk 15 via an optical disk controller C4 is connected to the system bus B.

【0017】制御部1は、実際の物理的手段としてCP
UとRAMとで構成され、機能的には、色空間分割部
2、使用頻度算出部3、分割空間管理部4、再分割部
5、代表色決定部6、変換部7、テーブル群8及び入力
カラー画像データ9とを有する。これらの各機能は、予
め磁気ディスク11内に格納されている各種プログラム
により達成されるものであり、本画像処理装置の起動時
に読み込まれて各種処理が実行される。
The control unit 1 uses the CP as an actual physical means.
The color space division unit 2, the usage frequency calculation unit 3, the division space management unit 4, the subdivision unit 5, the representative color determination unit 6, the conversion unit 7, the table group 8 and And input color image data 9. Each of these functions is achieved by various programs stored in the magnetic disk 11 in advance, and is read when the image processing apparatus is started and various processing is executed.

【0018】入力カラー画像データ9は、スキャナ10
によって読み込まれたフルカラーの入力カラー画像ある
は光ディスク15内に格納されているフルカラーの入力
カラー画像のデータであり、画像変換処理の対象データ
である。
The input color image data 9 is transferred to the scanner 10
Is the full-color input color image read in or the data of the full-color input color image stored in the optical disc 15 and is the target data for the image conversion processing.

【0019】色空間分割部2は、入力カラー画像データ
9として一時格納されている入力カラー画像の色空間
を、ディスプレイコントローラC3内のパレットに登録
可能な数、すなわちディスプレイ14の同時出力可能数
に分割し、この分割結果をテーブル群8内の分割色空間
管理テーブル8aに格納する。
The color space dividing unit 2 sets the color space of the input color image temporarily stored as the input color image data 9 to the number that can be registered in the palette in the display controller C3, that is, the number that the display 14 can simultaneously output. Division is performed, and the division result is stored in the division color space management table 8a in the table group 8.

【0020】使用頻度算出部3は、入力カラー画像デー
タ9内で使用されている全色画素を色データ(R,G,
Bで示される画像コード)毎に、その使用頻度を算出
し、この算出結果をテーブル群8内の使用頻度管理テー
ブル8bに格納する。
The use frequency calculation unit 3 determines all color pixels used in the input color image data 9 as color data (R, G,
The usage frequency is calculated for each image code indicated by B), and the calculation result is stored in the usage frequency management table 8b in the table group 8.

【0021】分割空間管理部4は、分割色空間管理テー
ブル8a及び使用頻度管理テーブル8bをもとに分割色
空間毎の色データ数と使用頻度とを管理する分割空間使
用度管理テーブル8cを生成する。
The divided space management unit 4 generates a divided space usage management table 8c for managing the number of color data and usage frequency for each divided color space based on the divided color space management table 8a and the usage frequency management table 8b. To do.

【0022】再分割部5は、分割空間使用度管理テーブ
ル8c内の色データ数が「0」の分割色空間を削除し、
最も使用頻度の高い分割色空間を後述するように色デー
タ数に基づいて2分することにより、同時出力可能数の
分割色空間に再設定する。この分割色空間の再設定に伴
って、分割色空間管理テーブル8a及び分割空間使用度
管理テーブル8cは更新される。
The subdivision unit 5 deletes the divided color space in which the number of color data is "0" in the divided space usage management table 8c,
The divided color space having the highest frequency of use is divided into two based on the number of color data as described later, thereby resetting the divided color space to the number of simultaneously outputtable divided color spaces. With the resetting of the divided color space, the divided color space management table 8a and the divided space usage management table 8c are updated.

【0023】代表色決定部6は、最終的に更新された分
割空間使用度管理テーブル8cが示す分割色空間毎に代
表の色データを決定し、この決定した色データをディス
プレイコントローラC3内のパレット27に順次登録す
る。
The representative color determination unit 6 determines representative color data for each of the divided color spaces indicated by the finally updated divided space usage management table 8c, and the determined color data is used as a palette in the display controller C3. Sequentially register at 27.

【0024】変換部7は、入力カラー画像データ9内の
全色画素の色データを、分割色空間管理テーブル8aを
参照して、対応する分割色空間を決定し、この分割色空
間に対応する分割空間識別子(パレット番号に相当)に
変換して画像メモリ21に転送する。
The conversion unit 7 refers to the divided color space management table 8a for the color data of all the color pixels in the input color image data 9, determines the corresponding divided color space, and corresponds to this divided color space. It is converted into a divided space identifier (corresponding to a palette number) and transferred to the image memory 21.

【0025】ディスプレイコントローラC3は、画像メ
モリに格納された画像データ内の分割空間識別子を順次
読み出してパレット内の対応する色データに変換してデ
ィスプレイ14に出力する。
The display controller C3 sequentially reads the divided space identifiers in the image data stored in the image memory, converts them into corresponding color data in the palette, and outputs them to the display 14.

【0026】ここで、ディスプレイ14は、256色の
色データを同時出力可能であり、パレット27は、25
6色の色データを登録することができる。一方、上述し
たように入力カラー画像は、フルカラーすなわち約16
77万色の色データを用いて表現されている。
Here, the display 14 can output color data of 256 colors at the same time, and the palette 27 has 25 colors.
Color data of 6 colors can be registered. On the other hand, as described above, the input color image is full color, that is, about 16
It is expressed using color data of 770,000 colors.

【0027】次に、図2及び図3を参照して、色空間分
割部2による色空間分割について説明する。
Color space division by the color space division unit 2 will be described below with reference to FIGS. 2 and 3.

【0028】色空間分割部2は、図2(a)に示す入力
カラー画像の色空間を図2(b)に示す256個の分割
色空間に分割する。すなわち、図2(a)に示す入力カ
ラー画像の色空間は、R,G,Bの色要素をそれぞれ2
の8乗個すなわち256個で表現しているため、256
×256×256個(約1677万色)となるが、色空
間分割部2は、R,G,Bの色要素をそれぞれ8,8,
4の領域に分割し、結果的に8×8×4=256個の複
数の分割色空間に区分する。この分割色空間は全て等し
い形状の直方体となる。
The color space division unit 2 divides the color space of the input color image shown in FIG. 2 (a) into 256 divided color spaces shown in FIG. 2 (b). That is, the color space of the input color image shown in FIG. 2A has two color elements of R, G, and B, respectively.
Since it is expressed by the 8th power of 256, that is, 256, 256
X256 x 256 (about 16.77 million colors), but the color space division unit 2 sets R, G, and B color elements to 8, 8 and
It is divided into four regions, and as a result, divided into a plurality of divided color spaces of 8 × 8 × 4 = 256. The divided color spaces are all rectangular parallelepipeds of the same shape.

【0029】ここで、図3は、分割色空間管理テーブル
8aのデータ構成を示しており、色空間分割部2によっ
て分割された分割色空間が定義される。すなわち、色要
素Rは8等分されて各分割色空間の範囲は32となり、
色要素Gも8等分されて各分割色空間の範囲は32とな
り、色要素Bは4等分されて各分割色空間の範囲は64
となる。従って、分割色空間管理テーブル8aを参照す
ることにより、入力カラー画像の各色データが属する分
割色空間を求めることができる。なお、各分割色空間は
分割空間識別子によって認識される。
Here, FIG. 3 shows the data structure of the divided color space management table 8a, and the divided color spaces divided by the color space dividing unit 2 are defined. That is, the color element R is divided into eight equal parts, and the range of each divided color space becomes 32,
The color element G is also divided into 8 equal parts, and the range of each divided color space becomes 32. The color element B is divided into 4 equal parts and the range of each divided color space becomes 64.
Becomes Therefore, the divided color space to which each color data of the input color image belongs can be obtained by referring to the divided color space management table 8a. Each divided color space is identified by a divided space identifier.

【0030】次に、図4を参照して、使用頻度算出部3
の算出結果である使用頻度管理テーブル8bのデータ構
成について説明する。使用頻度管理テーブル8bは、入
力カラー画像内で使用されているR,G,Bの画像コー
ドすなわち色データ毎の使用頻度が格納される。この色
データ毎の使用頻度は、使用頻度算出部3が入力カラー
画像データ9で用いられいる全色画素の色データをもと
に、入力カラー画像内に出現した色データ毎の個数で表
される。例えば、図4において、色データ(R,G,
B)が(0,0,0)である場合、色データ(0,0,
0)は入力カラー画像内に10個出現したことを示して
いる。
Next, referring to FIG. 4, the usage frequency calculation unit 3
The data structure of the usage frequency management table 8b, which is the calculation result of, will be described. The use frequency management table 8b stores R, G, and B image codes used in the input color image, that is, the use frequency for each color data. The frequency of use for each color data is represented by the number of each color data that appears in the input color image, based on the color data of all color pixels used in the input color image data 9 by the frequency-of-use calculating unit 3. It For example, in FIG. 4, color data (R, G,
B) is (0,0,0), color data (0,0,0)
0) indicates that 10 images have appeared in the input color image.

【0031】次に、図5を参照して、分割空間管理部4
によって生成される分割空間使用度管理テーブル8cの
データ構成について説明する。
Next, referring to FIG. 5, the division space management unit 4
The data structure of the divided space usage management table 8c generated by the above will be described.

【0032】分割空間使用度管理テーブル8cは、図3
の分割色空間管理テーブル8aの分割空間識別子を用い
て、分割色空間毎に、該分割色空間内に出現した色デー
タの種類を示す色データ数と、該分割色空間内に出現し
た色画素数(分割空間の使用度)とが格納される。分割
色空間毎の色画素数は、分割色空間内に存在する色デー
タ毎の使用頻度の累計値である。例えば、図5におい
て、分割空間識別子「1」の分割色空間内には、色デー
タの種類が3種類存在し、この分割色空間内に出現した
色画素数が44であることを示している。
The divided space usage management table 8c is shown in FIG.
For each divided color space, using the divided space identifier of the divided color space management table 8a, the number of color data indicating the type of color data appearing in the divided color space, and the color pixel appearing in the divided color space The number (the degree of use of the divided space) is stored. The number of color pixels in each divided color space is a cumulative value of the usage frequency of each color data existing in the divided color space. For example, FIG. 5 shows that there are three types of color data in the divided color space of the divided space identifier “1”, and the number of color pixels appearing in this divided color space is 44. .

【0033】次に、図6を参照して、図1に示す画像処
理装置における画像変換処理手順について説明する。
An image conversion processing procedure in the image processing apparatus shown in FIG. 1 will be described with reference to FIG.

【0034】図6において、まず色空間分割部2は、フ
ルカラーの色空間をパレット登録数分、すなわちディス
プレイ14の同時出力可能数分の分割色空間に分割し、
分割色空間管理テーブル8aを作成しておく(ステップ
101)。次に、制御部1は、制御部1内に入力カラー
画像データを読み込む(ステップ102)。ここで、入
力カラー画像は、上述したようにスキャナ10で読み込
んだ原稿画像であっても、光ディスク15内に格納され
ている画像であってもよい。そして、使用頻度算出部3
は、読み込んだ入力カラー画像データ9内における色デ
ータ毎に出現した色画素の数を使用頻度として算出する
(ステップ103)。さらに、分割空間管理部4は、使
用頻度管理テーブル8bの色データが分割色空間管理テ
ーブル8aにより定義される分割色空間のうちのどの分
割色空間に属するかを判定することによって、入力カラ
ー画像の各色画素に対して、分割色空間毎の色データ数
と該分割色空間毎の色画素の使用度とを算出し、分割空
間使用度管理テーブル8cを生成する(ステップ10
4)。そして、分割空間管理部4は、分割空間使用度管
理テーブル8cを参照して、色データ数が「0」の分割
色空間が存在する場合は、該分割色空間を削除するとと
もに該分割色空間の管理データを削除する(ステップ1
05)。さらに、分割空間管理部4は分割色空間管理テ
ーブル8aの分割色空間も削除する。
In FIG. 6, first, the color space division unit 2 divides the full-color color space into the number of palette registrations, that is, the number of divided color spaces that can be simultaneously output from the display 14,
The divided color space management table 8a is created (step 101). Next, the control unit 1 reads the input color image data into the control unit 1 (step 102). Here, the input color image may be a document image read by the scanner 10 as described above, or an image stored in the optical disc 15. Then, the usage frequency calculation unit 3
Calculates the number of color pixels appearing for each color data in the read input color image data 9 as the usage frequency (step 103). Further, the divided space management unit 4 determines which divided color space of the divided color spaces defined by the divided color space management table 8a the color data of the usage frequency management table 8b belongs to, thereby obtaining the input color image. For each color pixel, the number of color data for each divided color space and the usage of the color pixel for each divided color space are calculated, and the divided space usage management table 8c is generated (step 10).
4). Then, the divided space management unit 4 refers to the divided space usage management table 8c, and when there is a divided color space in which the number of color data is “0”, deletes the divided color space and also divides the divided color space. The management data of (step 1
05). Further, the divided space management unit 4 also deletes the divided color space of the divided color space management table 8a.

【0035】その後、再分割部5は、分割空間使用度管
理テーブル8cを参照して、分割色空間の個数が255
以下であるか否かを判断する(ステップ106)。すな
わち、分割色空間の個数がパレットに登録可能数に満た
ないか否かを判断する。この結果、分割色空間の個数が
255以下であると判断された場合、分割空間使用度管
理テーブル8c内における各分割色空間毎の色画素の使
用度の最も高い分割色空間を選択する(ステップ10
7)。例えば、図5の分割空間使用度管理テーブル8c
に示された使用度の値からは、使用度が「100」であ
る分割空間識別子「3」の分割色空間が選択される。
After that, the subdivision unit 5 refers to the division space usage management table 8c and determines that the number of division color spaces is 255.
It is determined whether or not the following (step 106). That is, it is determined whether the number of divided color spaces is less than the number that can be registered in the palette. As a result, when it is determined that the number of divided color spaces is equal to or less than 255, the divided color space with the highest usage of the color pixel for each divided color space in the divided space usage management table 8c is selected (step 10
7). For example, the divided space usage management table 8c in FIG.
From the value of the degree of use shown in, the divided color space of the divided space identifier “3” having the degree of use of “100” is selected.

【0036】さらに、ステップ107で選択された分割
色空間が分割可能か否かを判断する。ここで、分割可能
でない場合とは、色データ数が「1」の場合である。例
えば、図5の分割空間使用度管理テーブル8cに示され
る分割空間識別子「3」の分割色空間が選択された場
合、この分割色空間の色データ数は「1」であるため、
分割不可能と判断される。ステップ108で、分割色空
間が分割可能であると判断された場合、この分割色空間
の分割を色データ数に基づいて2分し、分割色空間管理
テーブル8a及び分割空間使用度管理テーブル8cを更
新し(ステップ109)、ステップ106に移行する。
そして、分割色空間の個数が256になるまで、上述し
た分割色空間の分割処理を繰り返す。なお、新たに分割
された分割色空間もステップ107における選択対象と
なる。
Further, it is determined whether or not the divided color space selected in step 107 can be divided. Here, the case where the color data is not dividable is the case where the number of color data is “1”. For example, when the divided color space of the divided space identifier “3” shown in the divided space usage management table 8c of FIG. 5 is selected, the number of color data in this divided color space is “1”,
Judged as indivisible. If it is determined in step 108 that the divided color space can be divided, the divided color space is divided into two parts based on the number of color data, and the divided color space management table 8a and the divided space usage management table 8c are set. Update (step 109) and move to step 106.
Then, the above division color space division processing is repeated until the number of division color spaces reaches 256. The newly divided color space is also the selection target in step 107.

【0037】一方、ステップ108で分割不可能である
と判断された場合、ステップ107で選択された分割色
空間の分割処理を行わずに、次に使用度の高い分割色空
間を選択し、ステップ108に移行して、分割処理が可
能となるまで、順次次に使用度の高い分割色空間を選択
する。例えば、ステップ107で、図5の分割空間使用
度管理テーブル8cにおける分割空間識別子「3」の分
割色空間が選択された場合、使用度が「38」である分
割空間識別子「255」を、次に使用度の高い分割色空
間として選択する。
On the other hand, if it is determined in step 108 that the division is not possible, the division color space selected in step 107 is not divided and the division color space with the next highest degree of use is selected. Moving to 108, the divided color space with the next highest degree of use is sequentially selected until the division processing becomes possible. For example, in step 107, when the divided color space of the divided space identifier “3” in the divided space use degree management table 8c of FIG. 5 is selected, the divided space identifier “255” whose degree of use is “38” is changed to It is selected as a color space that is highly used.

【0038】ここで、ステップ109における分割色空
間の分割処理について説明すると、この分割処理は選択
された分割色空間を単に距離で示される範囲を2等分す
るものではなく、選択された分割色空間内の色データ数
を2分できるように分割する。例えば、図2(c)に示
すように、色空間の色要素Rによって、4つの色要素R
1〜R4を有している選択された分割色空間を分割する
場合、色要素R1,R2と色要素R3,R4とに分離さ
れるように色要素Rの座標値P1で該選択された分割色
空間を分割する。このような色データ数に基づいた分割
色空間の分割を行うことにより、新たに分割された2つ
の分割色空間にはそれぞれ色データが均等あるいはほぼ
等しく配置されることになる。
Here, the dividing process of the divided color space in step 109 will be described. This dividing process does not divide the selected divided color space into a range simply indicated by the distance, but the selected divided color space. Divide the number of color data in space so that it can be divided into two. For example, as shown in FIG. 2 (c), four color elements R
When the selected divided color space having 1 to R4 is divided, the selected division is performed with the coordinate value P1 of the color element R so as to be divided into the color elements R1 and R2 and the color elements R3 and R4. Divide the color space. By performing the division of the divided color space based on the number of color data as described above, the color data is evenly or almost equally arranged in the two newly divided color spaces.

【0039】一方、ステップ106で分割色空間の個数
が255以下でない場合、すなわち分割色空間の個数が
256個になった場合、ステップ111に移行し、代表
色決定部6は各分割色空間毎に代表の色データを1つ決
定する。代表色決定部6による代表の色データの決定
は、分割色空間内の使用度を考慮した色データの平均値
に最も近い色データを選択するようにしてもよいし、単
に分割色空間内の色データの平均値に近い色データを選
択するようにしてもよい。また、分割色空間内の使用度
を考慮した色データの平均値を示す色データを新たに決
定し、この決定した色データを代表の色データとしても
よい。
On the other hand, when the number of divided color spaces is not less than 255 in step 106, that is, when the number of divided color spaces is 256, the process proceeds to step 111, and the representative color determination unit 6 determines each divided color space. Then, one representative color data is determined. The representative color data may be determined by the representative color determination unit 6 by selecting the color data closest to the average value of the color data in consideration of the degree of use in the divided color space. Color data close to the average value of the color data may be selected. It is also possible to newly determine color data indicating the average value of the color data in consideration of the degree of use in the divided color space, and use this determined color data as the representative color data.

【0040】その後、代表色決定部6は、決定した25
6個の色データをパレット27に登録する(ステップ1
12)。さらに、変換部7は、入力カラー画像データの
各色画素の色データを、分割空間管理テーブル8aをも
とに該色画素が属する分割色空間を求め、この分割色空
間を示す分割色空間識別子(インデックス)に変換し、
画像メモリ21に転送する(ステップ113)。そし
て、ディスプレイコントローラC3は、所定のタイミン
グで、インデックスを参照して、画像メモリ21に格納
されている画像データをパレット27に登録されている
色データに変換してディスプレイ14に表示出力し(ス
テップ114)、本画像変換処理を終了する。
Thereafter, the representative color determination section 6 determines the determined 25
The six color data are registered in the palette 27 (step 1
12). Further, the conversion unit 7 obtains the color space of each color pixel of the input color image data, based on the color space management table 8a, into a color space to which the color pixel belongs, and a color space identifier ( Index),
The image data is transferred to the image memory 21 (step 113). Then, the display controller C3 refers to the index at a predetermined timing, converts the image data stored in the image memory 21 into color data registered in the palette 27, and outputs the color data displayed on the display 14 (step 114), and this image conversion processing ends.

【0041】次に、図7及び図8を参照してディスプレ
イコントローラC3の詳細構成について説明する。
Next, the detailed configuration of the display controller C3 will be described with reference to FIGS.

【0042】図7において、ディスプレイコントローラ
C3は、画像メモリ21、パレット回路22、D/Aコ
ンバータ23、ドライバ回路24及びタイミング発生回
路25を有しており、画像メモリ21、パレット回路2
2及びタイミング発生回路25はシステムバスBに接続
されている。
In FIG. 7, the display controller C3 has an image memory 21, a palette circuit 22, a D / A converter 23, a driver circuit 24 and a timing generation circuit 25.
2 and the timing generation circuit 25 are connected to the system bus B.

【0043】画像メモリ21は、システムバスBを介し
て変換部7が変換した画像データが格納される。
The image memory 21 stores the image data converted by the converter 7 via the system bus B.

【0044】パレット回路22は、図8に示すようにパ
レット27に接続され、システムバスBを介して画像メ
モリ21からの画像データを該画像データをもとにパレ
ット27に登録されている色データを選択して、D/A
コンバータ23に出力するセレクタ回路26を有してい
る。パレット27には、代表色決定部6が決定した分割
色空間毎の色データが、該分割色空間に対応するインデ
ックス位置に格納される。
The palette circuit 22 is connected to the palette 27 as shown in FIG. 8, and the image data from the image memory 21 via the system bus B is stored in the palette 27 based on the image data. Select, D / A
It has a selector circuit 26 for outputting to the converter 23. The palette 27 stores color data for each divided color space determined by the representative color determination unit 6 at an index position corresponding to the divided color space.

【0045】D/Aコンバータ23は、パレット回路2
2から出力された色データの色要素R,G,B毎にディ
ジタル/アナログ変換を行い、ドライバ回路24は、A
/Dコンバータ23によって変換された色要素毎のアナ
ログ信号をディスプレイ13での入力信号形式に変換
し、この変換された信号をディスプレイ13に出力す
る。
The D / A converter 23 is used in the pallet circuit 2
2 performs digital / analog conversion for each color element R, G, B of the color data output from
The analog signal for each color element converted by the / D converter 23 is converted into an input signal format in the display 13, and the converted signal is output to the display 13.

【0046】タイミング発生回路25は、画像データの
読出制御タイミングを制御する。
The timing generation circuit 25 controls the read control timing of the image data.

【0047】具体的に、画像メモリ21に格納されてい
る色画素データがインデックス「0」を有するものであ
る場合、タイミング発生回路25は色画素データの位置
データ等を参照して読出タイミングを制御し、該色画素
データのインデックス「0」がパレット回路22に入力
される。そして、セレクタ回路26は、インデックス
「0」に対応する色要素Rの値0R、色要素Gの値0G
及び色要素Bの値0Bを選択し、それぞれD/Aコンバ
ータ23に出力されてアナログ信号に変換され、さらに
ドライバ回路24によってディスプレイ13の入力信号
形式に適合したアナログ信号に変換されてディスプレイ
13に出力される。
Specifically, when the color pixel data stored in the image memory 21 has the index "0", the timing generation circuit 25 controls the read timing by referring to the position data of the color pixel data. Then, the index “0” of the color pixel data is input to the palette circuit 22. Then, the selector circuit 26 sets the value 0R of the color element R and the value 0G of the color element G corresponding to the index “0”.
And the value 0B of the color element B are selected and output to the D / A converter 23 and converted into an analog signal, and further converted into an analog signal compatible with the input signal format of the display 13 by the driver circuit 24 and displayed on the display 13. Is output.

【0048】このように、本実施例においては、分割色
空間を再設定する際、分割色空間の使用頻度のみなら
ず、分割色空間の色データ数をも加味して分割処理を行
うようにしているので、分割される対象が使用頻度が高
い分割色空間であるとともに、分割された分割色空間の
色データ数が均等になり、限定された色データ数であっ
ても、入力カラー画像は該入力カラー画像の色調にさら
に類似した画像に変換できる。
As described above, in this embodiment, when resetting the divided color space, not only the frequency of use of the divided color space but also the number of color data in the divided color space is taken into account for the division processing. Therefore, the object to be divided is a divided color space that is frequently used, and the number of color data in the divided color space becomes even, and even if the number of color data is limited, the input color image is The input color image can be converted into an image more similar in color tone.

【0049】[0049]

【発明の効果】以上詳細に説明したように、本発明で
は、まず色空間分割手段が入力カラー画像の色空間を同
時出力可能数の分割色空間に分割する。算出手段は、入
力カラー画像に使用される色データ毎の使用頻度を求め
る。そして、管理手段は、色空間分割手段が分割した分
割色空間内の色データ数と該分割色空間内の使用頻度と
を分割色空間毎に管理する。再分割手段は、管理手段が
管理する分割色空間内に色データが存在しない分割色空
間がある場合、最も使用頻度が高い分割色空間を選択
し、該選択した分割色空間を該分割色空間内の色データ
数に基づいて再分割する処理を繰り返し、色データが存
在する同時出力可能数の分割色空間に再設定する。そし
て、登録手段は、再分割手段が再設定した最終的な分割
色空間毎に代表の色データを決定し、この決定した色デ
ータをパレットに登録する。そして、入力カラー画像は
パレットに登録された色データに変換される。
As described above in detail, in the present invention, the color space dividing means first divides the color space of the input color image into the number of divided color spaces which can be simultaneously output. The calculation means obtains the frequency of use for each color data used for the input color image. Then, the management unit manages the number of color data in the divided color space divided by the color space dividing unit and the frequency of use in the divided color space for each divided color space. When there is a divided color space in which color data does not exist in the divided color space managed by the management unit, the re-dividing unit selects the divided color space with the highest frequency of use, and selects the selected divided color space as the divided color space. The process of re-division based on the number of color data in is repeated, and the color data is reset to the number of divided color spaces in which simultaneous output is possible. Then, the registration unit determines representative color data for each final divided color space reset by the re-division unit, and registers the determined color data in the palette. Then, the input color image is converted into color data registered in the palette.

【0050】従って、最終的に生成された分割色空間は
使用頻度のみならす色データ数が加味されたものとな
り、変換出力される画像はある程度入力カラー画像の色
調に類似し、限定された色データによる変換処理から生
じる違和感が低減されるという利点を有する。
Therefore, the finally-generated divided color space has the number of color data equalizing the frequency of use taken into consideration, and the image to be converted and output is similar to the color tone of the input color image to some extent, and the limited color data is limited. There is an advantage that the discomfort caused by the conversion process by is reduced.

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

【図1】本発明の一実施例である画像処理装置の構成を
示す図。
FIG. 1 is a diagram showing a configuration of an image processing apparatus that is an embodiment of the present invention.

【図2】色空間分割処理及び分割色空間の再分割処理を
説明する図。
FIG. 2 is a diagram illustrating a color space division process and a divided color space re-division process.

【図3】分割色空間管理テーブル8aのデータ構成を示
す図。
FIG. 3 is a diagram showing a data configuration of a divided color space management table 8a.

【図4】使用頻度管理テーブル8bのデータ構成を示す
図。
FIG. 4 is a diagram showing a data structure of a usage frequency management table 8b.

【図5】分割空間使用度管理テーブル8cのデータ構成
を示す図。
FIG. 5 is a diagram showing a data structure of a divided space usage management table 8c.

【図6】画像変換処理手順を示すフローチャート。FIG. 6 is a flowchart showing an image conversion processing procedure.

【図7】ディスプレイコントローラC3の詳細構成を示
す図。
FIG. 7 is a diagram showing a detailed configuration of a display controller C3.

【図8】パレット回路22の詳細構成を示す図。FIG. 8 is a diagram showing a detailed configuration of a pallet circuit 22.

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

1…制御部 2…色空間分割部 3…使用頻度算出部
4…分割空間管理部 5…再分割部 6…代表色決定部 7…変換部 8…テ
ーブル群 8a…分割色空間管理テーブル 8b…使用頻度管理テ
ーブル 8c…分割空間使用度管理テーブル 9…入力カラー画
像データ 10…スキャナ 11…磁気ディスク 12…キーボー
ド 13…マウス 14…ディスプレイ 15…光ディスク 21…画像メ
モリ 27…パレット C1…スキャナコントローラ C2…磁気ディスクコントローラ C3…ディスプレイ
コントローラ C4…光ディスクコントローラ B…システムバス
1 ... Control unit 2 ... Color space division unit 3 ... Usage frequency calculation unit
4 ... Division space management section 5 ... Redivision section 6 ... Representative color determination section 7 ... Conversion section 8 ... Table group 8a ... Division color space management table 8b ... Usage frequency management table 8c ... Division space usage management table 9 ... Input color Image data 10 ... Scanner 11 ... Magnetic disk 12 ... Keyboard 13 ... Mouse 14 ... Display 15 ... Optical disk 21 ... Image memory 27 ... Palette C1 ... Scanner controller C2 ... Magnetic disk controller C3 ... Display controller C4 ... Optical disk controller B ... System bus

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】 入力カラー画像を構成する全色画素を参
照して、パレットに登録される同時出力可能数の色デー
タを選択し、該選択された色データを用いて前記入力カ
ラー画像の全色画素の変換処理を行う画像処理装置にお
いて、 前記入力カラー画像の色空間を同時出力可能数の分割色
空間に分割する色空間分割手段と、 前記全色画素の色データ毎の使用頻度を求める算出手段
と、 前記分割色空間毎に該分割色空間内の色データ数と色画
素の使用頻度とを管理する管理手段と、 前記管理手段が管理する分割色空間内に色データが存在
しない分割色空間がある場合、最も使用頻度が高い分割
色空間を選択し、該選択した分割色空間を該分割色空間
内の色データ数に基づいて再分割する処理を繰り返し、
色データが存在する同時出力可能数の分割色空間に再設
定する再分割手段と、 前記再分割手段が再設定した同時出力可能数の分割色空
間毎に代表の色データを決定し、該決定された色データ
を前記パレットに登録する登録手段とを具備したことを
特徴とする画像処理装置。
1. A reference is made to all color pixels forming an input color image to select a number of color data items that can be simultaneously output and registered in a palette, and the selected color data are used to select all color data items of the input color image. In an image processing device that performs color pixel conversion processing, a color space dividing unit that divides the color space of the input color image into the number of divided color spaces that can be simultaneously output, and the frequency of use for each color data of all the color pixels Calculating means; managing means for managing, for each of the divided color spaces, the number of color data and the frequency of use of color pixels in the divided color space; and a division in which no color data exists in the divided color space managed by the managing means. If there is a color space, the division color space with the highest frequency of use is selected, and the process of re-dividing the selected division color space based on the number of color data in the division color space is repeated,
Re-dividing means for resetting to the simultaneous output possible number of divided color spaces in which color data exists, and representative color data is determined for each simultaneous output possible number of divided color spaces reset by the re-dividing means, and the determination is made. An image processing apparatus comprising: a registration unit that registers the registered color data in the palette.
JP7077930A 1995-04-03 1995-04-03 Image processor Pending JPH08272345A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP7077930A JPH08272345A (en) 1995-04-03 1995-04-03 Image processor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP7077930A JPH08272345A (en) 1995-04-03 1995-04-03 Image processor

Publications (1)

Publication Number Publication Date
JPH08272345A true JPH08272345A (en) 1996-10-18

Family

ID=13647811

Family Applications (1)

Application Number Title Priority Date Filing Date
JP7077930A Pending JPH08272345A (en) 1995-04-03 1995-04-03 Image processor

Country Status (1)

Country Link
JP (1) JPH08272345A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2003500712A (en) * 1999-05-17 2003-01-07 サムスン エレクトロニクス カンパニー リミテッド Color image processing method
US7212667B1 (en) 1999-05-17 2007-05-01 Samsung Electronics Co., Ltd. Color image processing method for indexing an image using a lattice structure

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2003500712A (en) * 1999-05-17 2003-01-07 サムスン エレクトロニクス カンパニー リミテッド Color image processing method
US7212667B1 (en) 1999-05-17 2007-05-01 Samsung Electronics Co., Ltd. Color image processing method for indexing an image using a lattice structure
US7245762B2 (en) 1999-05-17 2007-07-17 Samsung Electronics Co., Ltd. Color image processing method

Similar Documents

Publication Publication Date Title
US4965745A (en) YIQ based color cell texture
EP1102478B1 (en) Color management and proofing architecture
JPH1188709A (en) Color conversion table constitution converting method and computer readable record medium recording color conversion table constitution converting program
JPH05110840A (en) Method and device for converting chrominance signal
JP2004199376A (en) Color correction method
JPH09186874A (en) Improved screening method using threshold level and system
JPH08272345A (en) Image processor
JP2003208606A (en) Color transformation in three dimensional color space
JP2702408B2 (en) Image conversion system
JPH10307703A (en) Bit extension device
US5535315A (en) Graphic coloring system in a graphic-display system having separately stored shape/positional data and color data selectively combinable to form desired images of differing shapes and colors
JP2906814B2 (en) Color signal converter
JP2002118737A (en) Image converter and image conversion method
JPH10173951A (en) Device and method for manufacturing color conversion table, and recording medium
JP3022721B2 (en) Color signal processing method
JP3215156B2 (en) Color image processing method
JP3550426B2 (en) Color converter
JP3290871B2 (en) Color system conversion method and device
JP2845145B2 (en) Image output device
JPH03113682A (en) Picture processor
JPH0535244A (en) Image processor
JP2983579B2 (en) Display control device
JP2857260B2 (en) Judgment method of rectangular area
JPH0744148A (en) Image processor
JPH08234715A (en) Image processor