JPH06245228A - Color code conversion method between input and output device - Google Patents
Color code conversion method between input and output deviceInfo
- Publication number
- JPH06245228A JPH06245228A JP5051423A JP5142393A JPH06245228A JP H06245228 A JPH06245228 A JP H06245228A JP 5051423 A JP5051423 A JP 5051423A JP 5142393 A JP5142393 A JP 5142393A JP H06245228 A JPH06245228 A JP H06245228A
- Authority
- JP
- Japan
- Prior art keywords
- data
- color
- input
- bit
- significant bit
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Abstract
Description
【0001】[0001]
【産業上の利用分野】本発明は、入出力装置間の色コー
ド変換方法に関し、特に変換処理に於ける記憶容量の経
済性を高めることが可能な色コード変換方法に関するも
のである。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a color code conversion method between input / output devices, and more particularly to a color code conversion method capable of increasing the economical efficiency of storage capacity in conversion processing.
【0002】[0002]
【従来の技術】CPUの色出力は、CRTディスプレー
を駆動する都合上、3原色がR・G・Bで表現されるこ
とが一般的である。一方、トナーやインクを用いるカラ
ープリンタの色表現は、一般にY(イエロー=黄)・M
(マゼンタ=赤)・C(シアン=青)・K(黒)の濃度
設定によって行われる。従って、CPUからの入力デー
タをカラープリンタに出力するには、出力装置固有の表
現データに変換する必要がある。2. Description of the Related Art In the color output of a CPU, the three primary colors are generally represented by R, G and B for the convenience of driving a CRT display. On the other hand, the color expression of a color printer using toner or ink is generally Y (yellow = yellow) · M.
(Magenta = red), C (cyan = blue), and K (black). Therefore, in order to output the input data from the CPU to the color printer, it is necessary to convert the expression data unique to the output device.
【0003】この固有表現の変換方法として、マトリッ
クス演算などの変換式を用いる方法が知られているが、
特に一回転写型のレーザービームプリンタの場合は、固
有表現が不規則かつ複雑なため、演算式による変換が困
難である。As a method of converting this proper expression, a method of using a conversion formula such as a matrix operation is known.
Particularly in the case of a single-transfer type laser beam printer, since the unique expression is irregular and complicated, it is difficult to convert it by an arithmetic expression.
【0004】そこで複雑な色変換に対応し得る変換方法
として、全ての色の対応を記述したテーブルを用いる方
法がある。Therefore, as a conversion method capable of coping with complicated color conversion, there is a method of using a table in which correspondences of all colors are described.
【0005】[0005]
【発明が解決しようとする課題】しかるに、R・G・B
の各色について8ビットのコードを用いるフルカラーの
場合、総計で約1670万色となるので、Y・M・C・
Kへの変換テーブルを格納するには、64MB以上の記
憶容量が必要となる。これは余りにも膨大な量であり、
コスト面から見ても現実的とは言い難い。[Problems to be Solved by the Invention] However, R, G, B
In the case of full color using an 8-bit code for each color, the total is about 16.7 million colors, so Y ・ M ・ C ・
To store the conversion table for K, a storage capacity of 64 MB or more is required. This is too huge,
It is hard to say that it is realistic in terms of cost.
【0006】そこで現実的な対応としては、各色につい
て一律に小さい方から2〜3ビットを切り捨てて有効入
力データを5〜6ビットに制限することが考えられる。Therefore, as a practical measure, it is conceivable that the effective input data is limited to 5 to 6 bits by discarding 2 to 3 bits from the smallest one for each color.
【0007】ところが実際には、人間の視覚は指数関数
的な応答特性を持っているため、この2〜3ビットを切
り捨てたことにより、元のデータの色調と大幅に異なる
ものとなってしまうことがある。In reality, however, human vision has an exponential response characteristic, and therefore, by omitting these 2 to 3 bits, the color tone of the original data is significantly different. There is.
【0008】本発明は、このような従来技術の不都合を
解消すべく案出されたものであり、その主な目的は、人
間の視覚に不自然さを感じさせないような入出力装置間
の色コードの変換を、比較的低コストで実現することの
できる色コード変換方法を提供することにある。The present invention has been devised in order to eliminate such inconveniences of the prior art, and its main purpose is to provide a color between input / output devices that does not cause human vision to feel unnatural. It is to provide a color code conversion method that can realize code conversion at a relatively low cost.
【0009】[0009]
【課題を解決するための手段】このような目的は、本発
明によれば、正規化した入力データを出力装置の固有表
現データに変換するための色コード変換方法であって、
前記入力データ中の最高位ビットから予め設定した桁数
のビットを抽出し、前記入力データのビット内に占める
前記抽出ビットの位置に対応して予め設定されたデータ
テーブルを検索することにより、前記入力データを前記
固有表現データに変換することを特徴とする入出力装置
間の色コード変換方法を提供することによって達成され
る。According to the present invention, there is provided a color code conversion method for converting normalized input data into proper expression data of an output device.
By extracting a preset number of bits from the most significant bit in the input data, and searching a preset data table corresponding to the position of the extracted bit in the bits of the input data, The present invention is achieved by providing a color code conversion method between input / output devices, which is characterized by converting input data into the unique expression data.
【0010】[0010]
【作用】このような構成によれば、入力装置側の色コー
ドの有効ビット数を少なくしても、色調の大幅な変化を
招かずに済む。従って、出力装置の固有表現に変換する
テーブルのための記憶容量を大幅に削減し得る。According to such a structure, even if the number of effective bits of the color code on the input device side is reduced, a large change in color tone is not caused. Therefore, the storage capacity for the table for converting to the proper representation of the output device can be significantly reduced.
【0011】[0011]
【実施例】以下に添付の図面に示された具体的な実施例
に基づいて本発明の構成を詳細に説明する。DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS The structure of the present invention will be described in detail below with reference to specific embodiments shown in the accompanying drawings.
【0012】図1は、本発明が適用されるCADシステ
ムの概略構成図を示している。このシステムは、CPU
1と、これを操作するためのキーボード2と、操作状況
の視覚的表示を行うためのCRTディスプレー3と、C
PU1からの入力データをプリント出力するためのプリ
ンタ4と、CPU1のR・G・Bデータをプリンタ4の
Y・M・C・Kデータに変換するための変換装置5とか
らなっている。FIG. 1 is a schematic block diagram of a CAD system to which the present invention is applied. This system is a CPU
1, a keyboard 2 for operating the same, a CRT display 3 for visually displaying the operation status, and a C
It comprises a printer 4 for printing out the input data from the PU 1 and a conversion device 5 for converting the R, G, B data of the CPU 1 into the Y, M, C, K data of the printer 4.
【0013】次にR・G・BデータのY・M・C・Kデ
ータへの変換フローについて図2を参照して説明する。Next, the flow of conversion of R, G, B data into Y, M, C, K data will be described with reference to FIG.
【0014】先ず、ステップ1にて入力されたR・G・
Bデータのうちの最大値データを検出する(ステップ
2)。ここで例えば以下のようなデータが得られたとす
ると、 ビット 76543210 R 00100000 G 00001001 B 00000011 Rは5ビットが最上位、Gは3ビットが最上位、Bは1
ビットが最上位となり、この例では、Rが最大値データ
を有している。First, R / G /
The maximum value data of the B data is detected (step 2). If, for example, the following data is obtained, the bit 765433210 R 00100000 G 0000101 01 B 00000011 R has 5 bits as the most significant, G has 3 bits as the most significant, and B has 1
The bit is the most significant, and in this example R has the maximum value data.
【0015】次に、最大値データの最上位ビット以下、
所定数(例えば5)のビットを抽出し(ステップ3)、
かつ最上位ビット位置を記憶する(ステップ4)。この
場合、ビット5を最上位としてビット5〜ビット1の範
囲が有効データとなる。Next, below the most significant bit of the maximum value data,
Extract a predetermined number (eg 5) of bits (step 3),
And the most significant bit position is stored (step 4). In this case, the valid data is in the range of bit 5 to bit 1 with bit 5 as the most significant bit.
【0016】次に、他の色データ(G及びB)につい
て、ステップ4で記憶した最上位ビット以下に対応する
所定数(5)のビットを抽出する(ステップ5)。これ
を各色について揃えると、以下のような5ビットのコー
ドが得られる。 R −−10000− G −−00100− B −−00001−Next, for the other color data (G and B), a predetermined number (5) of bits corresponding to the most significant bit or less stored in step 4 are extracted (step 5). By aligning this for each color, the following 5-bit code is obtained. R --- 10000- G --00100- B --00001-
【0017】次に、最上位ビットに応じて変換テーブル
のシフト量を設定する(ステップ6)。この場合、デー
タシフト量は1である。Next, the shift amount of the conversion table is set according to the most significant bit (step 6). In this case, the data shift amount is 1.
【0018】このようにして選択された変換テーブルに
て有効ビットのコードに対応したY・M・C・Kコード
を検索し(ステップ7)、これにより得られた色コード
をプリンタに出力する(ステップ8)。The conversion table selected in this manner is searched for Y, M, C, K codes corresponding to the effective bit code (step 7), and the color code thus obtained is output to the printer ( Step 8).
【0019】さて、元のデータが8ビットなので、この
内の5ビット分を抽出した場合、この5ビットのデータ
グループは、8ビットデータの中では4段階にシフトす
ることとなる。Since the original data is 8 bits, if 5 bits of the original data are extracted, this 5-bit data group will be shifted in 4 steps among the 8-bit data.
【0020】一方、R・G・Bの各色を5ビットで表現
すると、合計約3万2000色となるが、これに抽出し
たデータグループの元のデータ内に於けるシフト量を加
味すると、総計で約12万8千色をテーブルに設定すれ
ば、8ビットのデータの諧調を損なわずに済むこととな
る。また、かなり訓練された人間の識別可能な色が約3
万色と言われているので、実用範囲の色は概ね網羅する
ことができる。On the other hand, if each color of R, G, and B is expressed by 5 bits, the total is about 32,000 colors, but if the shift amount in the original data of the extracted data group is added to this, the total is calculated. If about 128,000 colors are set in the table, the gradation of 8-bit data will not be lost. It also has about 3 well-trained human identifiable colors.
Since it is said to be all colors, it is possible to cover almost all practical colors.
【0021】なお、色数の大きいCPUの信号を色分解
能が低いディスプレーに出力するような場合に本発明の
基本概念を適用すれば、飽和しない範囲での表現が比較
的不自然でないようにできるので、Y・M・C・Kへの
変換を含まないコード変換装置にも適用できる。If the basic concept of the present invention is applied to the case where a signal of a CPU having a large number of colors is output to a display having a low color resolution, it is possible to make the expression in a non-saturated range relatively unnatural. Therefore, it can be applied to a code conversion device that does not include conversion into Y, M, C, and K.
【0022】また、音をディジタル化するシンセサイザ
などに適用すれば、周波数帯域と音色との関係の設定に
要する記憶容量を削減することが可能である。When applied to a synthesizer for digitizing sounds, it is possible to reduce the storage capacity required for setting the relationship between frequency band and timbre.
【0023】[0023]
【発明の効果】このように本発明によれば、色コードの
変換時に有効とするビットの桁数及び抽出位置を適切に
設定することにより、変換テーブルの規模を削減したう
えで変換誤差を目立たなくすることができる。従って、
記憶容量を低減して経済的なコード変換システムを構築
するうえに多大な効果を奏することができる。As described above, according to the present invention, the scale of the conversion table is reduced and the conversion error is conspicuous by properly setting the number of digits and the extraction position of the bits that are effective when the color code is converted. It can be lost. Therefore,
A great effect can be achieved in reducing the storage capacity and constructing an economical code conversion system.
【図1】本発明のシステム構成図。FIG. 1 is a system configuration diagram of the present invention.
【図2】変換に関わるフロー図。FIG. 2 is a flow chart related to conversion.
1 CPU 2 キーボード 3 CRTディスプレー 4 プリンタ 5 変換装置 1 CPU 2 keyboard 3 CRT display 4 printer 5 converter
Claims (1)
表現データに変換するための色コード変換方法であっ
て、 前記入力データ中の最高位ビットから予め設定した桁数
のビットを抽出し、 前記入力データのビット内に占める前記抽出ビットの位
置に対応して予め設定されたデータテーブルを検索する
ことにより、前記入力データを前記固有表現データに変
換することを特徴とする入出力装置間の色コード変換方
法。1. A color code conversion method for converting normalized input data into proper expression data of an output device, wherein a predetermined number of bits are extracted from the highest bit in the input data, Between the input / output devices characterized in that the input data is converted into the unique expression data by searching a preset data table corresponding to the position of the extracted bit occupying within the bits of the input data. Color code conversion method.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP05142393A JP3298969B2 (en) | 1993-02-16 | 1993-02-16 | Color code conversion method between input / output devices |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP05142393A JP3298969B2 (en) | 1993-02-16 | 1993-02-16 | Color code conversion method between input / output devices |
Publications (2)
Publication Number | Publication Date |
---|---|
JPH06245228A true JPH06245228A (en) | 1994-09-02 |
JP3298969B2 JP3298969B2 (en) | 2002-07-08 |
Family
ID=12886521
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP05142393A Expired - Fee Related JP3298969B2 (en) | 1993-02-16 | 1993-02-16 | Color code conversion method between input / output devices |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP3298969B2 (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2006279922A (en) * | 2005-03-01 | 2006-10-12 | Ricoh Printing Systems Ltd | Color image processor and color printer system |
-
1993
- 1993-02-16 JP JP05142393A patent/JP3298969B2/en not_active Expired - Fee Related
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2006279922A (en) * | 2005-03-01 | 2006-10-12 | Ricoh Printing Systems Ltd | Color image processor and color printer system |
JP4664809B2 (en) * | 2005-03-01 | 2011-04-06 | 株式会社リコー | Color image processing apparatus and color printer system |
Also Published As
Publication number | Publication date |
---|---|
JP3298969B2 (en) | 2002-07-08 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
KR100428599B1 (en) | A partial pixel encoding and decoding method | |
JPH0490669A (en) | Printer | |
JPH06245228A (en) | Color code conversion method between input and output device | |
JP3209997B2 (en) | Image processing device | |
JPH05324931A (en) | Color printer and color display device | |
JPH0734577B2 (en) | Color image processor | |
JP2984271B2 (en) | Image processing method | |
JPH10138567A (en) | Apparatus for setting color of character | |
JPS62152270A (en) | Color processor | |
JPS58123136A (en) | Displaying method of optional character key code | |
JPH03184882A (en) | Printer | |
JPH07105922B2 (en) | Color image recording device | |
JPH0535244A (en) | Image processor | |
JPS62160485A (en) | Display unit | |
JPS5852733A (en) | Pattern output system | |
JPH0839921A (en) | Printer | |
JPH05128223A (en) | Color converter | |
JPS61148084A (en) | Printer | |
JP2004072397A (en) | Image processing apparatus and image processing method | |
JPH04358473A (en) | Color picture processor | |
JPS58147392A (en) | Electronic-type numbering device | |
JPH04241968A (en) | Printing device | |
JP2000242451A (en) | Character display color converting device | |
JPH0535426A (en) | Video controller and graphic data output method | |
JPH10224614A (en) | Output 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: 20020402 |
|
LAPS | Cancellation because of no payment of annual fees |