[go: up one dir, main page]

JPH07182510A - Cell tone image data converting method - Google Patents

Cell tone image data converting method

Info

Publication number
JPH07182510A
JPH07182510A JP5346295A JP34629593A JPH07182510A JP H07182510 A JPH07182510 A JP H07182510A JP 5346295 A JP5346295 A JP 5346295A JP 34629593 A JP34629593 A JP 34629593A JP H07182510 A JPH07182510 A JP H07182510A
Authority
JP
Japan
Prior art keywords
colors
color
gradation
data
image data
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
JP5346295A
Other languages
Japanese (ja)
Other versions
JP3654449B2 (en
Inventor
Kazuhiro Matsushita
和裕 松下
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.)
Hudson Soft Co Ltd
Original Assignee
Hudson Soft 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 Hudson Soft Co Ltd filed Critical Hudson Soft Co Ltd
Priority to JP34629593A priority Critical patent/JP3654449B2/en
Publication of JPH07182510A publication Critical patent/JPH07182510A/en
Application granted granted Critical
Publication of JP3654449B2 publication Critical patent/JP3654449B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Image Processing (AREA)
  • Facsimile Image Signal Circuits (AREA)
  • Color Image Communication Systems (AREA)

Abstract

PURPOSE:To make a boundary line clear and to reproduce an image close to the original cell tone image by forcedly replacing a less-frequency color with a highest-frequency color without sampling a part where a numerical value is not stabilized. CONSTITUTION:The color of light is delicately changed corresponding to the degree of brightness to mix three colors of red (R), green (G) and blue (B). The gradation data of primary colors are converted so that the color number in cell tone image data can be subtracted to the number of colors to be expressed by a target computer device. Since the gradation-changed data are data corresponding to the number of colors to be reproduced, in order to prepare final data, the color number is further decreased to the color number to be simultaneously generated by sampling the data. In this case, the part where the numerical value is not stabilized is not sampled for the unit of a character but the less-frequency color is forcedly replaced with the highest-frequency color, and the colors are subtracted by performing sampling to investigate the frequency of colors to be used.

Description

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

【0001】[0001]

【産業上の利用分野】本発明はイメージスキャナなどで
取り込んだセル画調画像データをコンピュータ用画像デ
ータとして減色する方法に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a method of reducing cell image tone image data captured by an image scanner or the like as computer image data.

【0002】[0002]

【従来の技術】色光の三原色は赤(R)、緑(G)、青
(B)である。図1に示すようにこの三色が混ざり合っ
て様々な色を作る。光の場合、混ざり合う明るさの度合
で色彩が微妙に変化する。この明るを段階で示したもの
を階調という。たとえば赤と青が混ざれば紫になるが、
赤の度合(階調)を強くすれば赤を帯びてくるし、青の
度合を強めれば青みを帯びてくる。
2. Description of the Related Art The three primary colors of colored light are red (R), green (G) and blue (B). As shown in FIG. 1, these three colors mix to create various colors. In the case of light, the color changes subtly depending on the degree of mixed brightness. Gradation indicates this brightness in stages. For example, if red and blue are mixed, it becomes purple,
Increasing the degree of red (gradation) makes it reddish, and increasing the degree of blue makes it bluish.

【0003】イメージスキャナやビデオの画像データは
点(ドット)の集まりとして取り込まれる。このドット
は、三原色が混ざり合った状態で表現される。これを数
値化するために、各原色を何ビットかの階調で表す。た
とえば、R、G、Bの各階調が256段階である場合に
は、 256×256×256=16M となり、16M色の色を再現できる。このとき、各原色
を256階調で表すには図2に示すように8ビットが必
要である。
Image data of an image scanner or video is captured as a set of dots. This dot is expressed in a state where the three primary colors are mixed. In order to quantify this, each primary color is represented by a gradation of several bits. For example, when each gradation of R, G, and B has 256 levels, 256 × 256 × 256 = 16M 2, and 16M colors can be reproduced. At this time, in order to represent each primary color with 256 gradations, 8 bits are required as shown in FIG.

【0004】[0004]

【発明が解決しようとする課題】イメージスキャナある
いはビデオカメラで自然画などを16M色でコンピュー
タに取り込めれば、非常によい再現性をもった画像とな
る。しかし、先にも述べたように1ドットを表すのに2
4ビット(=8ビット×3)必要となるので、画面全体
のすべてのドットに対してこの構成を用いると、膨大な
データ量が必要となる。
If a natural image or the like is captured in a computer in 16M colors with an image scanner or a video camera, an image with very good reproducibility can be obtained. However, as mentioned earlier, it takes 2 to represent 1 dot.
Since 4 bits (= 8 bits × 3) are required, if this configuration is used for all dots on the entire screen, a huge amount of data is required.

【0005】そこで一般には、メモリのことも考慮して
8色、16色、512色などに減色したものが使用され
る。この場合、再現可能な色数:mと同時発色可能な色
数:nは同じ場合もあるが、m>nに設定されている場
合もある。一般には、例えば512色中16色同時発色
可能としたほうが、単に16色発色可能な装置よりもは
るかに色彩の再現性に優れているので、最近のコンピュ
ータ装置ではほとんどの機種がm>nのタイプの発色機
構を備えている。
Therefore, in general, the number of colors reduced to 8, 16, 512, etc. is used in consideration of the memory. In this case, the number of reproducible colors: m may be the same as the number of colors capable of simultaneous color development: n, but in some cases, m> n may be set. Generally, for example, when 16 colors out of 512 colors can be simultaneously developed, the reproducibility of colors is far superior to a device capable of simply developing 16 colors. Therefore, most computer devices of recent years have m> n. Equipped with a type of coloring mechanism.

【0006】上記のm>nのタイプのコンピュータ装置
でスキャナで読みとった16M色のような大きな画像デ
ータを扱うためには、まず再現可能なm色まで原色RG
Bの階調を落として色数を減らす必要がある。そして、
1画面毎に同時発色可能なn色までさらに減色する。
In order to handle large image data such as 16M colors read by a scanner with a computer device of the above m> n type, first, primary colors RG up to reproducible m colors are processed.
It is necessary to reduce the gradation of B to reduce the number of colors. And
The number of colors that can be simultaneously developed is reduced to n for each screen.

【0007】一方、セル画調画像は基本的に線から線、
もしくは境界色から境界色の間は単一色である。ところ
がそれをイメージスキャナで取り込み、それをそのまま
単純に減色してしまうと再現性が悪くなる。とくに色と
色の境の辺りがにじんでしまうことが多い。
On the other hand, a cell image-like image is basically line-to-line,
Alternatively, there is a single color between the boundary colors. However, if it is captured by an image scanner and the color is simply reduced as it is, the reproducibility deteriorates. In particular, there are many cases where the boundary between colors is blurred.

【0008】本発明はスキャナで取り込んだ画像をより
原画に近い画質を保つように減色する方法を得ること、
そしてとくに原画で色、形の変わるところ、たとえば輪
郭線上とか顔の陰影部分の再現性に配慮した減色方法を
目的とする。
The present invention provides a method for reducing the color of an image captured by a scanner so as to maintain the image quality closer to the original image.
The purpose of the present invention is especially to reduce the color and shape of the original image, for example, on the reproducibility of the contour line or the shadow portion of the face.

【0009】[0009]

【課題を解決するための手段】本発明は上記課題を解決
するために、単に減色するのではなく、セル画調画像デ
ータは基本的に線から線、あるいは境界色から境界色の
間は単一色で塗り潰されていることが多いという規則性
を利用して減色するものである。すなわち、本発明では
以下のような減色方法をとる。
In order to solve the above-mentioned problems, the present invention does not simply reduce the color, but the cell image tone image data is basically line-to-line or boundary-to-boundary-color single-color. The color is reduced by utilizing the regularity that it is often filled with one color. That is, the present invention employs the following color reduction method.

【0010】まずセル画調の原画像データをターゲット
となるコンピュータ装置が表現可能な色数:m(一般に
は同時に発色可能な色数:nはこれより少ない)に減色
するために原色の階調データの変換を行う。通常は原色
の階調データの下位ビットを落とすことで行われる。
First, in order to reduce the number of colors that can be expressed by the target computer apparatus to the original image data of the cell image tone: m (generally, the number of colors that can be simultaneously developed: n is less than this), the gradation of the primary colors is reduced. Convert data. Usually, this is done by dropping the lower bits of the primary color gradation data.

【0011】このような操作により階調変更したデータ
は再現可能な色数:mに対応したデータなので、最終的
なデータを作成するためにはさらに同時発色可能な色
数:nまでデータをサンプリングして減色しなければな
らない。
Since the data whose gradation is changed by such an operation corresponds to the number of reproducible colors: m, the data is sampled up to the number of colors capable of simultaneous color development: n in order to create the final data. You have to reduce the color.

【0012】サンプリング方法としては、画面を構成す
る小単位であるキャラクタ単位ごとに使用されている色
の頻度を調べる。キャラクタ単位は、通常は8×8ドッ
トが用いられることが多い。
As a sampling method, the frequency of the color used for each character unit, which is a small unit constituting the screen, is checked. Normally, 8 × 8 dots are often used as a character unit.

【0013】その際、数値の安定しない部分は輪郭線や
あるいはグラデーション(明暗の変わる境界)部である
と判断した場合は、サンプリングをしない。また、頻度
の少ない色は強制的にもっとも頻度の高い色に強制的に
置き換える。このような変換方法によれば境界線が明確
となり、元のセル画調画像に近い画像として再現でき
る。
At this time, when it is judged that the part where the numerical value is not stable is the contour line or the gradation (border where brightness changes), sampling is not performed. In addition, the infrequent color is forcibly replaced with the most frequent color. According to such a conversion method, the boundary line becomes clear, and the image can be reproduced as an image close to the original cell image-like image.

【0014】[0014]

【実施例】本発明の実施例として、16M色のカラー原
画データを512色中同時に16色まで扱えるコンピュ
ータ装置に合わせて減色する場合を説明する。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS As an embodiment of the present invention, a case will be described in which original color data of 16M colors is subjected to color reduction in accordance with a computer device capable of simultaneously handling up to 16 colors out of 512 colors.

【0015】このコンピュータでは、画像データは処理
の高速性を考慮して8×8ドットの画素の集合であるキ
ャラクタという単位に分割して管理している。それを管
理するテーブルをBAT(バックグラウンドアトリビュ
ートテーブル)という。BATのキャラクタコードが実
際の画像データ(CG:キャラクタジェネレータ)をポ
イントし、その内容が画面に表示されることになる。こ
のテーブルはVRAMの中に作られるもので、図3に示
す構成になっている。
In this computer, the image data is divided and managed in units of characters, which are a set of 8 × 8 dot pixels, in consideration of high speed processing. A table for managing it is called BAT (background attribute table). The character code of BAT points to the actual image data (CG: character generator), and the content is displayed on the screen. This table is created in VRAM and has the structure shown in FIG.

【0016】カラーは図4に示すカラーパレットで管理
する。RGBは各3ビットを持っており、512色まで
表現できる。しかし実際に同時に表示できる色は16色
であるから、512色から16色を選択して表示するこ
とになる。この同時表示単位の16色をまとめたものを
ブロックとよぶ。
Colors are managed by the color palette shown in FIG. RGB has 3 bits each and can represent up to 512 colors. However, since 16 colors can be actually displayed at the same time, 16 colors out of 512 colors are selected and displayed. A block is a collection of 16 colors of the simultaneous display unit.

【0017】カラー512色とは、RGBに分解すると
各原色は8階調(0も含めた場合)でよいから、ビット
にすると各3ビットである。16M色のカラー原画デー
タを256色のカラー画像データにするということは、
原色レベルで見れば、16M色の各原色の階調0〜25
5が、256色の各原色の階調は0〜7に落とされるこ
とになる。
The 512 colors are 3 bits each when they are made into bits because each primary color can be 8 gradations (when 0 is included) when it is separated into RGB. Converting 16M color original image data into 256 color image data means
At the primary color level, the gradation of each primary color of 16M is 0 to 25.
5, the gradation of each of the 256 primary colors is dropped to 0-7.

【0018】すなわち、0〜255を8等分して数値の
小さい方から0、1、2〜7と当てはめていけば、自動
的に減色できる。たとえば原画データのR(赤)の階調
が11111111(10進数で255)なら、減色し
たRの階調は111(10進数で7)となる。
That is, if 0 to 255 are divided into 8 equal parts and the numerical values are assigned to 0, 1 and 2 to 7, the color can be automatically reduced. For example, if the R (red) gradation of the original image data is 11111111 (decimal number 255), the subtracted R gradation is 111 (decimal number 7).

【0019】以上の方法で減色したキャラクタが、図5
のような階調になったとしよう。便宜上、左上のキャラ
クタをA、その右横をB、左下のキャラクタをC、その
右横をDとよぶ。
The character reduced in color by the above method is shown in FIG.
Let's say the gradation becomes like. For convenience, the upper left character is called A, the right side is B, the lower left character is C, and the right side is D.

【0020】まず、Aについて階調を集計すると、 階調0:63個 階調1:2個 階調2:1個 である。階調1と2は階調0に比べて頻度がきわめて少
ないので、このキャラクタの階調はすべて0とする。階
調0とは、たとえばこの原色がRなら、赤の明度が0、
すなわち赤は色の配合に混ざらないことを表している
(0は完全に光らないことを表す)。
First, the gradations of A are tabulated: gradation 0:63, gradation 1: 2, gradation 2: 1. Since the gradations 1 and 2 are much less frequent than the gradation 0, the gradations of this character are all 0. A gradation of 0 means that if the primary color is R, the brightness of red is 0,
That is, red represents that it does not mix with the color combination (0 represents that it does not shine completely).

【0021】次に、キャラクタBに対して集計すると 階調0:10個 階調1:2個 階調2: 6個 階調3: 9個 階調4:8個 階調5:29個 である。出現する頻度としては、階調0、3、4はほぼ
同じと考えてよい。ところが、階調0についてはまとま
って数値が現れているのに対して、他は現れ方が不安定
である。
Next, when the character B is aggregated, the gradation is 0:10, the gradation is 1: 2, the gradation is 2: 6, the gradation is 3: 9, the gradation is 4: 8, and the gradation is 5:29. is there. As for the frequency of appearance, it can be considered that gradations 0, 3, and 4 are almost the same. However, for gradation 0, numerical values appear collectively, but for others, the appearance is unstable.

【0022】そこでセル画調画像データの規則性に合わ
せて、現れ方の不安定な階調3と4はサンプリングの対
象から外す。また階調1と2は頻度が少ないということ
でやはりサンプリングから外す。その結果、キャラクタ
Bに対しては階調0と5で色分けをすることになるが、
中間の階調は0と5の間で階調をわける。すなわち、階
調1と2は階調0とし、階調3と4は階調5とする。
Therefore, the gradations 3 and 4 in which the appearance is unstable are excluded from the sampling target in accordance with the regularity of the cell image-tone image data. Further, since gradations 1 and 2 are less frequent, they are also excluded from sampling. As a result, the character B will be color-coded with gradation levels 0 and 5.
The middle gradation divides the gradation between 0 and 5. That is, gradations 1 and 2 are gradation 0, and gradations 3 and 4 are gradation 5.

【0023】キャラクタCに対して集計すると 階調0:43個 階調1:3個 階調2:5個 階調3: 7個 階調4:3個 階調5:3個 である。階調0に比べて他の階調の出現する頻度は低
い。しかし、階調0に集約するにはその総数が多すぎる
(階調0が43個、他の合計総数は21個)。そこで隣
接するキャラクタ(ここではキャラクタD)を見て決め
る。すなわち、階調5の出現頻度は少ないが、隣接する
階調の値をもう一つの対応する階調と決める。その結
果、他の階調を5とする。すなわち、キャラクタCにつ
いては階調0と階調5の二つの階調で分ける。
When the character C is tabulated, the gradation is 0:43, the gradation is 1: 3, the gradation is 2: 5, the gradation is 3: 7, the gradation is 4: 3, and the gradation is 5: 3. The frequency of appearance of other gradations is lower than that of gradation 0. However, the total number is too large to be integrated into the gradation 0 (43 gradations 0, the other total is 21). Then, the adjacent character (here, character D) is determined and decided. That is, although the frequency of appearance of the gradation 5 is low, the value of the adjacent gradation is determined as another corresponding gradation. As a result, the other gradation is set to 5. That is, the character C is divided into two gradations, gradation 0 and gradation 5.

【0024】このような操作を他のキャラクタについて
も行う。その結果、キャラクタAは階調0、キャラクタ
Bは0と5、キャラクタCは0と5、キャラクタDは5
となり、図6に示すようなデータに変換される。
Such an operation is also performed on other characters. As a result, character A has a gradation of 0, character B has 0 and 5, character C has 0 and 5, and character D has 5
And is converted into data as shown in FIG.

【0025】[0025]

【発明の効果】セル画調画像データは、境界線上や色の
変わる部分以外は同一色の場合が多いので、本発明を用
いることによって原セル画を忠実に再現できる効果があ
る。
EFFECTS OF THE INVENTION Since the cell image tone image data is often the same color except on the boundary line and the portion where the color changes, the present invention has the effect of faithfully reproducing the original cell image.

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

【図1】色光の三原色と作られる色の説明図である。FIG. 1 is an explanatory diagram of three primary colors of colored light and colors created.

【図2】16M色を表す場合のビット構成の説明図であ
る。
FIG. 2 is an explanatory diagram of a bit configuration when representing 16M colors.

【図3】本発明の実施例に用いられるコンピュータ装置
のBATとCGの構成の説明図である。
FIG. 3 is an explanatory diagram of a configuration of BAT and CG of the computer device used in the embodiment of the present invention.

【図4】本発明の実施例に用いられるコンピュータ装置
のカラーパレットの説明図である。
FIG. 4 is an explanatory diagram of a color palette of the computer device used in the embodiment of the present invention.

【図5】本発明の実施例の原画データの階調を示す図で
ある。
FIG. 5 is a diagram showing gradations of original image data according to the embodiment of the present invention.

【図6】本発明の方法により減色された実施例のデータ
を示す図である。
FIG. 6 is a diagram showing data of an example in which color reduction was performed by the method of the present invention.

フロントページの続き (51)Int.Cl.6 識別記号 庁内整理番号 FI 技術表示箇所 H04N 1/46 Z Continuation of front page (51) Int.Cl. 6 Identification code Office reference number FI Technical display area H04N 1/46 Z

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】 セル画調画像データを使用対象となるコ
ンピュータの機能に合わせて減色する方法において、前
記セル画調画像データを対象となる前記コンピュータが
扱える色階調に合わせて変換された階調変換画像データ
に対して、キャラクタ単位毎に、数値の安定しない部分
のサンプリングを行わず、また頻度の少ない色は強制的
にもっとも頻度の高い色に強制的に置き換えて使用され
ている色の頻度を調べるサンプリングを行って減色する
ことを特徴とするセル画調画像データ変換システム。
1. A method of reducing the color of cell image-tone image data according to the function of a computer to be used, wherein the cell image-tone image data is converted according to the color gradation that can be handled by the computer. For the tone-converted image data, the part where the numerical value is not stable is not sampled for each character, and the infrequent colors are forcibly replaced by the most frequent colors. A cell image-like image data conversion system characterized by performing sampling for checking the frequency to reduce the color.
JP34629593A 1993-12-22 1993-12-22 Cell image data conversion method Expired - Fee Related JP3654449B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP34629593A JP3654449B2 (en) 1993-12-22 1993-12-22 Cell image data conversion method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP34629593A JP3654449B2 (en) 1993-12-22 1993-12-22 Cell image data conversion method

Publications (2)

Publication Number Publication Date
JPH07182510A true JPH07182510A (en) 1995-07-21
JP3654449B2 JP3654449B2 (en) 2005-06-02

Family

ID=18382432

Family Applications (1)

Application Number Title Priority Date Filing Date
JP34629593A Expired - Fee Related JP3654449B2 (en) 1993-12-22 1993-12-22 Cell image data conversion method

Country Status (1)

Country Link
JP (1) JP3654449B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7376267B2 (en) 2000-07-12 2008-05-20 Canon Kabushiki Kaisha Image processing apparatus, image processing method, and program and storage medium therefor

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7376267B2 (en) 2000-07-12 2008-05-20 Canon Kabushiki Kaisha Image processing apparatus, image processing method, and program and storage medium therefor

Also Published As

Publication number Publication date
JP3654449B2 (en) 2005-06-02

Similar Documents

Publication Publication Date Title
US4639771A (en) Image processing system
US4794382A (en) Image retouching
US5254977A (en) Color display
US6933948B2 (en) Multi-tone representation of a digital image on a digital nonlinear editing system
US5218350A (en) Image processing method for dodging with softened edge transitions
US6259439B1 (en) Color lookup table blending
JP2647033B2 (en) Lookup table creation method and lookup table creation device
KR930005812B1 (en) Color information storage and processing system
EP0403081B1 (en) Colour display
US6952493B2 (en) System and method for gamut mapping using a composite color space
JP3654449B2 (en) Cell image data conversion method
JP3482106B2 (en) Luminance image generation method and apparatus, and recording medium recording this method
JPH05244444A (en) Irregular color correction method in color picture
JPH1188712A (en) Image processing method and image processor
JPH06180573A (en) Image forming method
JP3230533B2 (en) Image processing apparatus and method
JP3318436B2 (en) Automatic pallet sorting method
JP2878477B2 (en) Image processing device
JP2843912B2 (en) Image processing method
JP2740516B2 (en) Image processing device
KR0155925B1 (en) Digital color image
JPH08328539A (en) Image display method and device
JPH06289830A (en) Color selecting method of color image display system
JPH0378669B2 (en)
JPH0437963A (en) Image processing device

Legal Events

Date Code Title Description
A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20050120

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20050224

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

LAPS Cancellation because of no payment of annual fees