JPH0467669B2 - - Google Patents

Info

Publication number
JPH0467669B2
JPH0467669B2 JP60163208A JP16320885A JPH0467669B2 JP H0467669 B2 JPH0467669 B2 JP H0467669B2 JP 60163208 A JP60163208 A JP 60163208A JP 16320885 A JP16320885 A JP 16320885A JP H0467669 B2 JPH0467669 B2 JP H0467669B2
Authority
JP
Japan
Prior art keywords
color
colors
block
image
value
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Lifetime
Application number
JP60163208A
Other languages
Japanese (ja)
Other versions
JPS6224373A (en
Inventor
Fumio Matsuda
Satoru Tomita
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.)
Mitsubishi Electric Corp
Original Assignee
Mitsubishi Electric Corp
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 Mitsubishi Electric Corp filed Critical Mitsubishi Electric Corp
Priority to JP60163208A priority Critical patent/JPS6224373A/en
Publication of JPS6224373A publication Critical patent/JPS6224373A/en
Publication of JPH0467669B2 publication Critical patent/JPH0467669B2/ja
Granted legal-status Critical Current

Links

Description

【発明の詳細な説明】 〔産業上の利用分野〕 この発明は、着色ブロツク形式というデータ量
の小さい特殊な画像情報を効率よく作成するため
のカラー画像処理装置に関するものである。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a color image processing device for efficiently creating special image information in a colored block format, which has a small amount of data.

〔従来の技術〕[Conventional technology]

近年、ビデオテツクス、テレテキスト、CDサ
ブコードの様にカラー静止画を使用したシステム
やサービスが増加している。これらに使われる画
像は着色ブロツク形式という特殊な構造をもち、
カラー画像が比較的小さいデータ量で表現される
ので蓄積や伝送に有利となる特徴がある。第4図
は、上記着色ブロツク形式を説明するための図
で、同図aは着色ブロツク形式に適合した構造を
もつカラー画像の例、同図b及びcは着色ブロツ
ク形式の画像を表現する画像情報の例である。第
4図aにおいて、最小矩形は画素を表わし、画素
のもつ色の種別をハツチング等を用いて表わして
いる。ここで画像は所定の大きさの矩形ブロツク
(例では4×4画素、以下これを「着色ブロツク」
とよぶ)に分割され、着色ブロツク単位で着色に
制限が与えられる。即ち、着色が画素単位に自由
にできるわけではなく、着色ブロツク内に含まれ
る色の種類数が2種以下に限られている。よつ
て、このような画像は、第4図cのような各着色
ブロツクに含まれる2種以下の色の値を示す情報
と、同図bのような着色ブロツク内の各画素が2
種以下の色のうちどちらの色をとるかを指定する
2値の値(以下これをY値とよぶ)で表現可能で
ある。第4図b及びcは同図aのカラー画像の最
も上側の着色ブロツクの行に対応する画像情報で
ある。例えば左から2番目の着色ブロツクでは、
色の値Aを表わすY値を0とし、色の値Bを表わ
すY値を1として16画素のそれぞれにY値が与え
られている。ここで最も左側の着色ブロツクの様
に1色のみが含まれる場合には、その色に対応す
るY値は0と1のどちらでもよく、例の様にY値
の0と色の値Aが対応するものとすれば、もう一
方のY値の1にはどんな色の値が対応してもよ
い。第4図cでは、これをX(ドントケア)と記
している。また、色の値は、色彩を直接に表わす
値ではなく、予め定まつた色彩の組の中の色の番
号を示す値であることが多い。カラー画像が第4
図b及びcの様な画像情報で表現された場合、各
画素の色の値を逐一指定する表現に比べて極めて
小さいデータ量になり、更にこのY値や各着色ブ
ロツクの2種以下の色の値も符号化によりデータ
圧縮が可能であることから、カラー画像の伝送や
蓄積に適している。
In recent years, systems and services that use color still images, such as videotex, teletext, and CD subcode, have been increasing. The images used for these have a special structure called colored block format,
Color images are expressed with a relatively small amount of data, which is advantageous for storage and transmission. Figure 4 is a diagram for explaining the colored block format, in which figure a is an example of a color image with a structure suitable for the colored block format, and figures b and c are images expressing images in the colored block format. This is an example of information. In FIG. 4a, the minimum rectangle represents a pixel, and the type of color each pixel has is represented using hatching or the like. Here, the image is a rectangular block of a predetermined size (4 x 4 pixels in the example, hereinafter referred to as a "colored block").
), and restrictions are placed on coloring in units of colored blocks. That is, it is not possible to freely color each pixel, and the number of types of colors included in a colored block is limited to two or less. Therefore, such an image includes information indicating the values of two or less colors included in each colored block as shown in FIG.
It can be expressed by a binary value (hereinafter referred to as the Y value) that specifies which color to use among the colors below the species. FIGS. 4b and 4c show image information corresponding to the uppermost colored block row of the color image shown in FIG. 4a. For example, in the second colored block from the left,
A Y value is given to each of the 16 pixels, with the Y value representing color value A being 0 and the Y value representing color value B being 1. If only one color is included, like the colored block on the leftmost side, the Y value corresponding to that color can be either 0 or 1, and as in the example, the Y value of 0 and the color value A can be either 0 or 1. As long as they correspond, any color value may correspond to the other Y value of 1. In FIG. 4c, this is marked as X (don't care). Furthermore, the color value is often not a value that directly represents a color, but a value that indicates the number of a color in a predetermined set of colors. Color image is the 4th
When expressed using image information as shown in Figures b and c, the amount of data is extremely small compared to expressions that specify the color value of each pixel one by one. Since the value of can also be compressed by encoding, it is suitable for transmitting and storing color images.

ところが、上記の様な特殊な画像の構造をもつ
ため着色ブロツク形式の画像情報は作成が容易で
はない。第16図は従来の着色ブロツク形式の画
像情報を作成する装置の構成例を示すブロツク図
であり、図中1は白黒画像を入力する画像入力
部、35は2値画像を作成したり修正したりする
2値画修正部、36は着色ブロツク単位に着色を
指定する着色指定部、7は着色ブロツク形式に適
合する画像から画像情報を抽出する情報抽出部で
ある。
However, because of the special image structure described above, it is not easy to create image information in the form of colored blocks. FIG. 16 is a block diagram showing an example of the configuration of a conventional apparatus for creating image information in a colored block format. 36 is a coloring specification section that specifies coloring in units of colored blocks; 7 is an information extraction section that extracts image information from an image that conforms to the colored block format.

このような装置を用いて操作者は次の様な手順
で画像情報作成を行なう。まず、画像入力部1に
より、装置に白黒2値の画像を入力する。この入
力画像を表示機能と図形描画機能をもつ2値画修
正部35により、図形の追加描画や修正描画を行
なつて所望の2値画を作成する。次に着色指定部
36によつて2値画に対して着色ブロツク単位に
値0の画素に与える色と値1の画素に与える色を
指定することで着色を行なう。着色の結果の画像
の形状の良否は操作者が判断する。もしブロツク
内に2色を超える種類の色を指定しなければ画像
を構成する要素図形の形状を保つた着色ができな
い場合には、再び2値画修正部35により、2値
画像そのものを修正する。こうして作成されたカ
ラー画像から情報抽出部7により自動的にY値即
ち修正後の2値画像と着色ブロツク単位の2種以
下の色の値より成る着色ブロツク形式の画像情報
を抽出する。この様な従来の画像情報作成装置の
典型的なシステム構成としては、画像入力部1と
してのイメージスキヤナと、その他の部分にあた
るカラーグラフイツク機能(画像メモリを含む)
付きの情報処理装置としてのパーソナルコンピユ
ータである。
Using such a device, an operator creates image information using the following procedure. First, a black and white binary image is input to the apparatus using the image input section 1. A binary image correction unit 35 having a display function and a figure drawing function performs additional drawing and corrected drawing of figures on this input image to create a desired binary image. Next, the coloring designation section 36 colors the binary image by designating the color to be given to pixels with a value of 0 and the color to be given to pixels with a value of 1 in units of coloring blocks. The operator determines whether the shape of the image as a result of coloring is good or bad. If it is not possible to color the block while maintaining the shape of the elemental figures that make up the image unless more than two colors are specified in the block, the binary image itself is corrected again by the binary image correction unit 35. . From the color image thus created, the information extraction section 7 automatically extracts image information in a colored block format consisting of the Y value, that is, the corrected binary image, and two or less color values in units of colored blocks. A typical system configuration of such a conventional image information creation device includes an image scanner as the image input section 1 and a color graphics function (including image memory) as the other parts.
This is a personal computer as an information processing device.

〔発明が解決しようとする問題点〕[Problem that the invention seeks to solve]

しかしながら、上記のような従来の画像情報作
成装置では、2値画を修正するところから着色指
定を行なうまで全処理過程の大半に操作者が関与
するため、非常に人手と時間がかかり、情報作成
コストが大きくなるという問題点があつた。また
上記の2値画像の修正操作を軽減させるために始
めから着色ブロツク内に2種以下の色しか含まな
いように2値画像を入力するには、着色ブロツク
形式を習得した専任のデザイナーが必要となりや
はり作成コストが大きくなつた。
However, with conventional image information creation devices such as those described above, the operator is involved in most of the entire processing process, from correcting the binary image to specifying coloring, which is extremely labor-intensive and time-consuming. There was a problem that the cost increased. Additionally, in order to reduce the amount of correction operations for the above-mentioned binary image, a full-time designer who has mastered the colored block format is required to input a binary image so that the colored block contains only two or fewer colors from the beginning. As a result, the production cost increased.

この発明は上述の問題点を解決するためになさ
れたもので、与えられたカラー画像から着色ブロ
ツク形式の画像情報へ自動的に変換を行なうこと
により、人手があまりかからず、情報作成時間が
短かくなる効率のよい画像作成を可能とするカラ
ー画像処理装置を得ることを目的とするものであ
る。
This invention was made to solve the above-mentioned problems, and by automatically converting a given color image into image information in the form of colored blocks, it does not require much manpower and the information creation time is reduced. It is an object of the present invention to provide a color image processing device that enables efficient image creation in a short time.

〔問題点を解決するための手段〕[Means for solving problems]

この発明に係るカラー画像処理装置は、入力さ
れたカラー画像情報を記憶する画像メモリと、こ
の画像メモリに記憶されたカラー画像情報を処理
する情報処理装置とを備えたカラー画像処理装置
において、 情報処理装置に、画像メモリに記憶されたカラ
ー画像情報を所定数の画素からなるブロツクに分
割しこの各ブロツク内に含まれる色数を検出する
色数検出手段と、 3以上の色数を有する多色ブロツクについて、
この多色ブロツク内に含まれる各色の出現頻度を
計数しかつこの多色ブロツクと隣接するブロツク
における同一色の有無を検出し、この検出結果と
各色の出現頻度に基づき優先する2種の色を選択
し、当該多色ブロツク内でこの優先する2種の色
とは異なる色をもつ各画素を当該画素の周囲の画
素において優先する2種の色の上記出現頻度の大
きい色に変更する画素色変更手段と、 カラー画像の大きな画素数を占める大面積色に
ついて、この大面積色が相互に隣接する頻度を検
出する統計測定手段と、 この頻度に基づき上記大面積色がとる2値の値
を決定する大面積色決定手段と、 画素色変更手段による変更後の各ブロツク毎
に、当該ブロツク内の各画素に対して当該画素の
色の種別を示す2値の値を対応させる対応決定手
段とを備え、 優先する2種の色の選択は、出現頻度が第1の
閾値を超える色を選択し、その結果3種以上の色
が選択された場合は上記第1の閾値より大きい第
2の閾値を超える出現頻度をもつかまたは隣接す
るブロツクに存在する色を選択し、さらにその結
果3種以上の色が選択された場合は上記第2の閾
値を超える出現頻度をもつを色を選択し、さらに
またその結果3種以上の色もしくは1種以下の色
が選択された場合は出現頻度が最も大きい2つの
色を選択することによつて行い、 各画素の2値の値の対応付けは、大面積色を含
むブロツクについては当該大面積色に対して大面
積色決定手段で決定された値によつて2値の値を
対応付け、これにより対応付けができないブロツ
クについては、既に2値の値との対応付けが決定
された隣接のブロツクと同一色を含むか否かを検
出し、同一色を含む場合にはこの同一色が隣接の
ブロツクと同一の2値の値をとるように対応付け
ることへの接続要求が複数の隣接ブロツクとの関
係で矛盾が無いか否かを検出して、矛盾が無い場
合はその接続要求に合致するように対応付け、矛
盾がある場合は接続要求の種類に対して予め定め
られた優先順位に従つて最も優先順位の高い接続
要求に合致するように対応付けることによつて行
い、 画像メモリに記憶されたカラー画像情報を、画
素単位の2値の値とブロツク単位の2種以下の色
の値を示す情報とを対応させた画像情報に変換す
るようにしたものである。
A color image processing device according to the present invention includes an image memory that stores input color image information, and an information processing device that processes the color image information stored in the image memory. The processing device includes a color number detecting means for dividing the color image information stored in the image memory into blocks each consisting of a predetermined number of pixels and detecting the number of colors included in each block; About color blocks
The frequency of appearance of each color included in this multicolor block is counted, the presence or absence of the same color in blocks adjacent to this multicolor block is detected, and two priority colors are selected based on this detection result and the frequency of appearance of each color. A pixel color that is selected and changes each pixel in the multicolor block that has a color different from the two prioritized colors to the color that appears more frequently among the two prioritized colors in pixels surrounding the pixel. a statistical measuring means for detecting the frequency with which the large area colors are adjacent to each other with respect to large area colors occupying a large number of pixels in a color image; a large-area color determining means for determining a large area color; and a correspondence determining means for associating a binary value indicating the color type of the pixel with each pixel in the block for each block after the change by the pixel color changing means. The selection of the two priority colors is performed by selecting a color whose appearance frequency exceeds the first threshold value, and if three or more colors are selected as a result, a second color having a frequency higher than the first threshold value is selected. Select a color that has an appearance frequency exceeding a threshold value or exists in an adjacent block, and if three or more colors are selected as a result, select a color that has an appearance frequency that exceeds the second threshold value. , Furthermore, if three or more colors or less than one color are selected as a result, the two colors with the highest frequency of appearance are selected, and the binary values of each pixel are mapped. For blocks that include a large-area color, a binary value is associated with the large-area color using the value determined by the large-area color determining means, and for blocks that cannot be associated with this, a binary value is already assigned. Detects whether or not it contains the same color as the adjacent block whose correspondence with the value of It is detected whether a connection request to be associated is consistent with multiple adjacent blocks, and if there is no conflict, the connection request is matched to match the connection request, and if there is a conflict, the connection request is This is done by matching the connection request with the highest priority according to a predetermined priority order for each type, and converting the color image information stored in the image memory into a binary value for each pixel. and information indicating two or less types of color values in block units are converted into image information in which they are associated with each other.

〔作用〕[Effect]

この発明における画像処理装置は、着色ブロツ
ク形式に関わりなく作成されて入力されるカラー
画像を、着色ブロツクに分割して各着色ブロツク
内に含まれる色の種類数を検出し、2種を超える
色を含む着色ブロツクに対して2種以下となる様
にその着色ブロツク内で必要な画素の色の変更を
行ない、その後で着色ブロツクに含まれる2種以
下の色に2種の値を大面積色に対して予め決定さ
れた値を考慮して振り分けるという一連の処理を
自動的に行なうものである。
The image processing device according to the present invention divides a color image created and inputted into colored blocks regardless of the coloring block format, detects the number of types of colors contained in each colored block, and detects the number of types of colors contained in each colored block. Change the necessary pixel colors within the colored block so that there are no more than 2 types of pixels, and then change the values of 2 types to the 2 or less colors included in the colored block as a large area color. This system automatically performs a series of processes in which allotment is performed in consideration of predetermined values.

これにより、着色ブロツク形式によらないカラ
ー画像情報は画素単位の2値の値と着色ブロツク
単位の色の値を示す情報とから成る着色ブロツク
形式の画像情報に変換される。
As a result, color image information not based on the colored block format is converted to image information in the colored block format consisting of binary values for each pixel and information indicating color values for each colored block.

〔発明の実施例〕[Embodiments of the invention]

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

第1図は、この発明の一実施例の構成を示す機
能ブロツク図であり、1は処理対象となるカラー
画像を入力する画像入力部、2は着色ブロツク内
の色の種類数を検出する色数検出手段となる色数
検出部、3は2種を超える色を含む着色ブロツク
の画素色を変更する画素色変更手段となる画素色
変更部、4はカラー画像全体において各種の色の
画像を占める割合及び各種の色の画素とその他の
色の画素がカラー画像上で隣接する度合を各着色
ブロツク内に含まれる色種の情報から測定する統
計測定手段となる統計測定部、5はカラー画像全
体において画素数的に大きい割合を占める色(以
下これを大面積色とよぶ)に対応づけるべきY値
を決定する大面積色決定手段となる大面積色決定
部、6は各着色ブロツク内の2種以下の色にY値
を対応づける対応決定手段となる対応決定部、7
は処理後の画像から着色ブロツク形式の画像情報
を抽出する情報抽出部である。
FIG. 1 is a functional block diagram showing the configuration of an embodiment of the present invention, in which 1 is an image input unit for inputting a color image to be processed, and 2 is a color unit for detecting the number of types of colors in a colored block. 3 is a pixel color changing unit that is a pixel color changing means for changing the pixel color of a colored block containing more than two types of colors; 4 is a color number detecting unit that is a color number detecting unit; 5 is a color image statistical measurement unit serving as a statistical measurement means for measuring the proportion of pixels occupied and the degree to which pixels of various colors and pixels of other colors are adjacent on a color image from information on color types included in each colored block; A large-area color determining unit 6 is a large-area color determining unit that determines the Y value to be associated with a color that occupies a large proportion of the total number of pixels (hereinafter referred to as a large-area color); a correspondence determining unit serving as a correspondence determining means for associating Y values with two or less types of colors; 7;
is an information extraction unit that extracts image information in the form of colored blocks from the processed image.

第2図は、上記第1図の実施例のシステム構成
を示すシステム構成図である。図中1はカラー
TVカメラやカラースキヤナなどのカラー画像入
力装置、8はカラー画像を記憶する画像メモリ、
9はマイクロプロセツサなどの中央処理装置、1
0は中央処理装置9のプログラムを格納するプロ
グラムメモリ、11は処理の過程で生成されるデ
ータ等を格納するワーキングメモリである。この
うち9乃至11はマイクロコンピユータ等の通常
の情報処理装置としてのコンピユータMに相当
し、第1図に示す2〜7等の構成要素はこれによ
り実現される。
FIG. 2 is a system configuration diagram showing the system configuration of the embodiment shown in FIG. 1 above. 1 in the diagram is color
A color image input device such as a TV camera or a color scanner; 8 is an image memory that stores color images;
9 is a central processing unit such as a microprocessor, 1
0 is a program memory that stores programs for the central processing unit 9, and 11 is a working memory that stores data generated during processing. Of these, 9 to 11 correspond to a computer M as a normal information processing device such as a microcomputer, and the components 2 to 7 shown in FIG. 1 are realized thereby.

次に上記実施例における画像処理装置の動作を
説明する。カラー画像入力装置1で入力されたカ
ラー画像は、画像メモリ8に記憶され、中央処理
装置9により任意の位置の画素の値を読出したり
変更したりすることが可能な状態となる。この状
態でまず色数検出部2は、画像メモリ8からの画
素読出し位置を制御して、各着色ブロツクを成す
4×4画素を順次に読出してその中に含まれる画
素の色の種類の数を検出する。次に画素色変更部
3によつて、2種を超える色が含まれる各着色ブ
ロツクについて、2種以下の色となる様に着色ブ
ロツク内の少数の画素の色を変更する。
Next, the operation of the image processing apparatus in the above embodiment will be explained. The color image input by the color image input device 1 is stored in the image memory 8, and the central processing unit 9 becomes in a state where the values of pixels at arbitrary positions can be read out or changed. In this state, first, the color number detection unit 2 controls the pixel readout position from the image memory 8, sequentially reads out the 4×4 pixels forming each colored block, and detects the number of color types of the pixels included therein. Detect. Next, for each colored block containing more than two types of colors, the pixel color changing section 3 changes the colors of a small number of pixels in the colored block so that the colors become two or less types.

第3図はこの具体的方法を示すフローチヤート
である。ステツプ12で各着色ブロツクを成す画素
の色の値を順次に読出して、各色の出現頻度を中
央処理装置9で計数することにより、着色ブロツ
ク毎の色の種類とその頻度のテーブルを作成して
ワーキングメモリ11に格納する。次にこの色テ
ーブルを参照して、2種を超える色を含む着色ブ
ロツクについて、色の数を2種に絞る。まず、ス
テツプ13により当該着色ブロツクに含まれる色と
同種の色が隣接する着色ブロツクにも存在するか
どうかを検出する。そして、ステツプ14におい
て、この検出結果と先に検出している色の出現頻
度にもとづいて、所定の方式で優先的に残すべき
2色を選択する。即ち、2種を超える色の中でま
ず出現頻度が第1の閾値T1以下である色を除外
する。これで2種以下に絞れない場合は、まず第
2の閾値T2(T2はT1より大とする)以下の出現
頻度で隣接ブロツクに存在しない色をまず除外
し、それでも2種以下にならなければ閾値T2
下の色を全て除外する。更に2種を超える色が残
つている場合或は逆に除外されすぎる場合(第1
の閾値T1以下の色を除外した場合も含む)には、
出現頻度が最も大きい2つの色を選択する。この
ようにして選択された2種以下の色以外の色は前
記色テーブルより消去され、その色をもつ画素
は、ステツプ15において、その着色ブロツク内の
選択された色(2色ある場合はそのいずれか)に
変更される。この変更は、中央処理装置9が当該
着色ブロツク内で色を変更すべき画素の周囲の画
素を調べて、周囲の画素でより多く出現する方の
色と同じ色に変更する。
FIG. 3 is a flowchart showing this specific method. In step 12, the color values of the pixels forming each colored block are sequentially read out, and the frequency of appearance of each color is counted by the central processing unit 9, thereby creating a table of color types and their frequencies for each colored block. It is stored in the working memory 11. Next, with reference to this color table, for colored blocks containing more than two colors, the number of colors is narrowed down to two. First, in step 13, it is detected whether the same type of color as the color included in the colored block is also present in an adjacent colored block. Then, in step 14, two colors to be left preferentially are selected in a predetermined manner based on this detection result and the appearance frequency of the previously detected color. That is, among more than two types of colors, colors whose appearance frequency is less than or equal to the first threshold value T1 are excluded. If you cannot narrow it down to two types or less, first exclude colors that do not exist in adjacent blocks with an appearance frequency less than or equal to the second threshold T 2 (T 2 is greater than T 1 ), and still reduce the number to two or less. If not, all colors below the threshold T 2 are excluded. Furthermore, if more than two colors remain, or if too many colors are excluded (first
(including when excluding colors below the threshold T of 1 ),
Select the two colors that appear most frequently. Colors other than the two or less colors selected in this way are erased from the color table, and pixels with that color are erased from the selected color (if there are two colors, then the selected color) in the colored block. either). In this change, the central processing unit 9 examines the surrounding pixels of the pixel whose color should be changed within the colored block, and changes the pixel to the same color as the color that appears more frequently in the surrounding pixels.

上記の方法により、画像メモリ8内の画像は着
色ブロツク内には2種以下の色しか含まないカラ
ー画像に変換され、ワーキングメモリ11内の前
記色テーブルには、各着色ブロツクの2種以下の
色が記憶されている。統計測定部4はこの色テー
ブルから、カラー画像全体に含まれる各種の色の
画素の占める割合及び各種の色の画素とその他の
色の画素がカラー画像上で隣接する度合に相当す
る統計量を測定する。この測定結果にもとづいて
大面積色決定部5はカラー画像全体にわたつて大
面積色に対応づけるべきY値を決定する。
By the above method, the image in the image memory 8 is converted into a color image in which each colored block contains only two or less colors, and the color table in the working memory 11 contains two or less colors in each colored block. Colors are memorized. From this color table, the statistical measurement unit 4 calculates statistics corresponding to the proportions of pixels of various colors included in the entire color image and the degree to which pixels of various colors and pixels of other colors are adjacent on the color image. Measure. Based on this measurement result, the large area color determination unit 5 determines the Y value to be associated with the large area color over the entire color image.

第5図乃至第8図は統計測定部4及び大面積決
定部5における上記処理の具体的方法を説明する
ためのものである。第5図は統計測定部4におい
て着色ブロツク単位の色テーブルからカラー画像
全体における各種の色の割合と各種の色相互の隣
接度合をヒストグラムとして得るための計数方法
を示す。図中、矩形は着色ブロツクを表わし、そ
の中に記入されたアルフアベツト記号は着色ブロ
ツク内に含まれる色の種類を表わす。
5 to 8 are for explaining the specific method of the above processing in the statistical measuring section 4 and the large area determining section 5. FIG. FIG. 5 shows a counting method for obtaining the ratio of various colors in the entire color image and the degree of adjacency of various colors to each other as a histogram from the color table for each colored block in the statistical measuring section 4. In the figure, the rectangles represent colored blocks, and the alphanumeric symbols written inside the rectangles represent the types of colors contained within the colored blocks.

まず、各色の占める画像中の割合は、第5図a
の様に着色ブロツク内に1種しか存在しない時に
その色を計数し、第5図bの様に2種の色を含む
場合は計数しないことにより求める。大面積色は
着色ブロツク内に1種しか存在しない場合が相当
程度生じるので、これでも大面積色の統計では十
分な近似が得られる。次に、各色の隣接度合は、
2色の組み合わせに対して計数を行なう。第5図
cの様に着色ブロツクが色Aと色Bの2種の色を
含む場合は、色の組合せ(A/B)を計数する。
第5図dの様に着色ブロツク内に1種の色しか存
在しない場合でも、上側と左側の隣接着色ブロツ
クを参照して、当該着色ブロツクと異なる色で1
種類しか含まなければその2色の組合せを計数す
る。それ以外の場合は計数しない(第5図e)。
上記2つの計数は、中央処理装置9がワーキング
メモリ11内の色テーブルを順次に参照しながら
両方並行して実行することが可能であり、計数結
果はヒストグラムとしてワーキングメモリ11内
にできあがる。
First, the proportion of each color in the image is shown in Figure 5a.
When only one type of color exists in a colored block, the color is counted, as shown in FIG. Since it is quite common for only one type of large-area color to exist in a colored block, a sufficient approximation can be obtained using the statistics of large-area colors. Next, the adjacency degree of each color is
Counting is performed for combinations of two colors. When the colored block includes two colors, color A and color B, as shown in FIG. 5c, the color combinations (A/B) are counted.
Even if there is only one type of color in a colored block as shown in Figure 5d, by referring to the adjacent colored blocks on the upper and left side, you can select a color that is different from the colored block in question.
If only types are included, the combinations of those two colors are counted. Otherwise, do not count (Figure 5e).
The above two counts can be executed in parallel while the central processing unit 9 sequentially refers to the color table in the working memory 11, and the counting results are created in the working memory 11 as a histogram.

第6図は、このヒストグラムの例を示す図であ
る。縦軸と横軸に色の種類を表わす色番号をと
り、2種の色の組合せに相当する配列位置に隣接
度合の計数値が記憶される。また対角線上には、
各色の画像中の割合に相当する計数値が記憶され
る。隣接度合の計数値は対角線に対して対称とな
るから実際記憶されるのはいずれか一方のみでよ
い。
FIG. 6 is a diagram showing an example of this histogram. Color numbers representing the types of colors are plotted on the vertical and horizontal axes, and counts of adjacency degrees are stored in array positions corresponding to the combination of two types of colors. Also, on the diagonal,
A count value corresponding to the proportion of each color in the image is stored. Since the count value of the degree of adjacency is symmetrical with respect to the diagonal, only one of them may actually be stored.

大面積決定部5はこのヒストグラムを参照し
て、大面積色のY値を順次決定する。第7図はこ
の処理の手順を示すフローチヤートである。まず
ステツプ16で、画像中に占める各色の割合、即ち
第6図のヒストグラムで対角線上の計数値を調べ
て、所定の第1の閾値以上の計数値をもつ色を大
面積色と決定する。次に、決定された大面積色に
対応するY値を以下のように順次決定してゆく。
ステツプ17では未だY値が決定されていない大面
積色中で最大の計数値をもつ色iを選ぶ。もし色
iが存在しなければこの処理は終了する。色iが
存在する場合、ヒストグラムから既に対応するY
値が決定されており、かつ色iとの隣接度合の計
数値が第2の閾値以上である色の中で最大の隣接
度合をもつ大面積色iを選び出す(ステツプ18)。
色jが存在すれば、ステツプ19で色iのY値を色
jに対応するY値と異なる値に決定する(Yi=
1−Yj)。色jが存在しない場合は、ステツプ20
で色iのY値を0とする(Yi=0)。次に対応す
るY値を決定したばかりの色iと隣接度合の計数
値が第2の閾値以上の色の中でY値が未だ決定さ
れていない大面積色kをステツプ21で選び出し、
ステツプ22で全て色kに色iに対応づけたY値と
は異なる値を決定する(Yk=1−Yi)。
The large area determination unit 5 refers to this histogram and sequentially determines the Y values of the large area colors. FIG. 7 is a flowchart showing the procedure of this process. First, in step 16, the proportion of each color in the image, that is, the count values on the diagonal line of the histogram shown in FIG. 6, is checked, and a color having a count value greater than a predetermined first threshold value is determined to be a large area color. Next, Y values corresponding to the determined large-area colors are sequentially determined as follows.
In step 17, the color i having the largest count value is selected among the large area colors whose Y values have not yet been determined. If color i does not exist, this process ends. If color i exists, we already have the corresponding Y from the histogram
A large area color i having the maximum degree of adjacency is selected from among the colors whose value has been determined and the count value of the degree of adjacency with color i is greater than or equal to the second threshold value (step 18).
If color j exists, in step 19 the Y value of color i is determined to be different from the Y value corresponding to color j (Yi=
1-Yj). If color j does not exist, step 20
Set the Y value of color i to 0 (Yi=0). Next, in step 21, a large-area color k whose Y value has not yet been determined is selected among the colors whose adjacency degree count value is greater than or equal to a second threshold value with the color i whose corresponding Y value has just been determined;
In step 22, a value different from the Y value associated with color i is determined for all colors k (Yk=1-Yi).

上記の様にして、カラー画像中の全ての大面積
色に対して、対応すべきY値が決定される。
As described above, the corresponding Y values are determined for all large-area colors in the color image.

次に大面積色について決定されたY値を使用し
て、対応決定部6により、各着色ブロツクに含ま
れる2種以下の色にY値の2つの値を振り分けて
対応づけ、ワーキングメモリ11内にある前記の
着色ブロツク毎の色テーブルに対応するY値を記
入する。次に情報抽出部7において、画像メモリ
8内の画素の値を着色ブロツク単位に読出して、
この色のテーブルを参照しながら各画素のY値を
決定し、第4図bの様なY値のテーブルを作成し
てワーキングメモリ11に格納する。更に情報抽
出部7では、前記の色のテーブルを整理して、第
4図cの様な各着色ブロツクの各Y値に対応する
色の値の対応テーブルを作成してワーキングメモ
リ11に格納し、一連の処理を終える。
Next, using the Y value determined for the large-area color, the correspondence determining unit 6 distributes and associates the two Y values with two or less colors included in each colored block, and stores them in the working memory 11. Enter the corresponding Y value in the color table for each colored block. Next, the information extraction section 7 reads out the pixel values in the image memory 8 in units of colored blocks.
The Y value of each pixel is determined while referring to this color table, and a Y value table as shown in FIG. 4b is created and stored in the working memory 11. Furthermore, the information extraction section 7 organizes the color table described above to create a correspondence table of color values corresponding to each Y value of each colored block as shown in FIG. 4c, and stores it in the working memory 11. , completes the series of processing.

第8図は、対応決定部6でのY値を対応づける
方法の概略を示すフローチヤートである。この対
応決定の処理は、画像内の着色ブロツクについて
左上から走査する様に所定の順序で行なわれる。
FIG. 8 is a flowchart showing an outline of a method for associating Y values in the correspondence determination unit 6. This correspondence determination process is performed in a predetermined order so that the colored blocks in the image are scanned from the upper left.

ステツプ23において、まず着色ブロツク内に大
面積色があるかどうかを検出する。着色ブロツク
内に1種の色のみが含まれかつその色が大面積色
である場合、また着色ブロツク内に2種の色が含
まれかつその一方のみが大面積色である場合、更
に着色ブロツク内に2種の色が含まれかつその両
方が相異なつたY値に対応が決定された大面積色
である場合は、直ちにY値の決定が可能であるか
ら、ステツプ24において大面積色について決定さ
れたY値を用いて着色ブロツク内の2種以下の色
にY値が対応づけられる。ステツプ23で着色ブロ
ツク内の大面積色を検出した結果が上記以外の場
合は、以下に説明する様に当該着色ブロツクに隣
接する着色ブロツクとの関係を調べカラー画像の
局所的な色領域の連結関係によつてY値を対応づ
ける。
In step 23, it is first detected whether there is a large area color within the colored block. If a colored block contains only one color and that color is a large-area color, or if a colored block contains two colors and only one of them is a large-area color, an additional colored block If two types of colors are included in the image, and both of them are large-area colors whose correspondence has been determined to different Y values, it is possible to immediately determine the Y value, so in step 24, the large-area color is Using the determined Y value, two or less colors within the colored block are associated with the Y value. If the result of detecting a large-area color within a colored block in step 23 is other than the above, the relationship between the colored block and adjacent colored blocks is checked as described below, and the local color areas of the color image are connected. Correlate the Y values according to the relationship.

ステツプ25によつて、まず対応決定処理を受け
るべき当該着色ブロツクが、既にY値との対応決
定がなされている隣接の着色ブロツク(上側と左
側の着色ブロツク)と同一色を含むか否かを検出
する。この検出は中央処理装置9がワーキングメ
モリ11内の色テーブルを参照することにより行
なわれる。もし同一色を含まなければその着色ブ
ロツク内の左上端の画素の色をY値の0に対応づ
け、他の色をY値の1に対応づける。同一色を含
む場合には、その同一色が隣接着色ブロツクと同
一のY値をとる様に対応づけることへの要求(以
下これを接続要求とよぶ)に従う様に対応を決定
する。ステツプ26で、この接続要求に矛盾がある
か否かを検出する。接続要求は複数あることがあ
り、しかも互いに矛盾する対応づけを要求するこ
とがあるからである。第9図は、接続要求が矛盾
する場合の例を示すもので、図中、矩形は着色ブ
ロツクを示し、ハツチング等で画素の色を表わ
し、数値は着色ブロツク内でその色に対応づけら
れたY値を表わす。第9図aでは当該着色ブロツ
ク内の1つの色cが上側の着色ブロツクではY値
0、左側の着色ブロツクではY値1に対応づけら
れており、両方の接続要求を満たすことはできな
い。
In step 25, it is first determined whether the colored block to be subjected to the correspondence determination process contains the same color as the adjacent colored blocks (the upper and left colored blocks) for which the correspondence with the Y value has already been determined. To detect. This detection is performed by the central processing unit 9 referring to the color table in the working memory 11. If the pixels do not contain the same color, the color of the upper left pixel in the colored block is associated with a Y value of 0, and the other colors are associated with a Y value of 1. If the same color is included, the correspondence is determined in accordance with a request (hereinafter referred to as a connection request) to associate the same color so that it takes the same Y value as the adjacent colored block. In step 26, it is detected whether there is a conflict in this connection request. This is because there may be a plurality of connection requests, and moreover, mutually contradictory mappings may be requested. Figure 9 shows an example of a case where connection requests are contradictory. In the figure, rectangles indicate colored blocks, hatching etc. represent pixel colors, and numerical values are associated with the colors within the colored blocks. Represents the Y value. In FIG. 9a, one color c in the colored block is associated with a Y value of 0 in the upper colored block and a Y value of 1 in the left colored block, and it is not possible to satisfy both connection requests.

また、第9図bでは当該ブロツク内の2つの色
B,Cが上側の着色ブロツクと左側の着色ブロツ
クで共にY値1に対応づけられており、矛盾する
接続要求となつている。
Furthermore, in FIG. 9b, the two colors B and C in the block are both associated with a Y value of 1 in the upper colored block and the left colored block, resulting in contradictory connection requests.

ステツプ27では、ステツプ26で接続要求に矛盾
がなければその接続要求に従つて色とY値を対応
づけ、矛盾がある場合は、接続要求の種類に従つ
て予め定められた優先順位にもとづき、最も高い
優先度をもつ接続要求を決定し、その接続要求を
満たす様にY値を対応づける。
In step 27, if there is no conflict in the connection request in step 26, the color and Y value are associated according to the connection request, and if there is a conflict, the color and Y value are associated based on the priority order determined in advance according to the type of connection request. The connection request with the highest priority is determined, and Y values are associated to satisfy that connection request.

第10図は、接続要求の種類の具体的例を示す
ものである。図中の表記は第9図と同様であり、
同図a乃至cの各場合において、いずれも右下の
着色ブロツクがY値を対応づけられるべき当該ブ
ロツクであるとする。また、第11図は接続要求
の種類に対する優先順位を示すフローチヤートで
ある。まず第10図aの様に、当該着色ブロツク
が1種類の色Bだけを含み、かつ左隣の着色ブロ
ツクも同色の1種類の色だけを含む場合は、その
同一色のY値は左隣のブロツクと同一値とする
(第11図ステツプ28と31)。
FIG. 10 shows specific examples of types of connection requests. The notation in the figure is the same as in Figure 9,
In each of the cases a to c in the figure, it is assumed that the colored block at the lower right is the block to which the Y value is to be associated. Further, FIG. 11 is a flowchart showing priorities for types of connection requests. First, as shown in Figure 10a, if the colored block in question contains only one type of color B, and the colored block on the left also contains only one type of the same color, the Y value of the same color is (steps 28 and 31 in Figure 11).

次に第10図bの様に、当該着色ブロツクが2
種の色B,Cを含み上隣の着色ブロツクからの接
続要求の数と左隣の着色ブロツクからの接続要求
の数に差異がある場合(例では上隣から色Bと色
Cについて2つ、また左隣から色Cについて1つ
の接続要求がある)、多い方の接続要求を満たす
様に色とY値とを対応づける(第11図ステツプ
29及び31)。そして、最も優先度の低い接続要求
として、第10図cの様に、左隣の着色ブロツク
から接続要求のある色Bが、更にその左側の着色
ブロツクにも継続的に含まれており、しかもその
Y値は接続要求に矛盾があるにもかかわらず決定
されてきている場合(例では色Bは当該着色ブロ
ツクの3つ左隣の着色ブロツクから継続している
が、2つ左隣の着色ブロツクにおいて接続要求の
矛盾があつてY値が0に決定されている)、左側
からの接続要求は「弱い」ものとして、上隣の着
色ブロツクからこれに反する接続要求があればそ
ちらの接続要求を優先して満たす様にY値を対応
づける(第11図ステツプ30及び31)。更に上記
の様な接続要求の優先順位を用いても矛盾する接
続要求からY値を決定できない場合は、左隣の着
色ブロツクからの接続要求を上隣からの接続要求
より優先して満たす様にY値を対応づける(第1
1図ステツプ32)。
Next, as shown in Figure 10b, the colored blocks are
If there is a difference between the number of connection requests from the colored block next to the top and the number of connection requests from the colored block next to the left, including the seed colors B and C (in the example, there are two connections for colors B and C from the top). , and there is one connection request for color C from the neighbor on the left), and the colors and Y values are matched to satisfy the connection request with the largest number of connections (see step 11 in Figure 11).
29 and 31). As a connection request with the lowest priority, color B, which has a connection request from the colored block on the left, is also continuously included in the colored block on the left, as shown in Figure 10c. If the Y value has been determined despite the inconsistency in the connection request (in the example, color B continues from the colored block three blocks to the left of the colored block in question, but the color B continues from the colored block two blocks to the left) (The Y value is determined to be 0 due to a conflicting connection request in the block), the connection request from the left side is considered to be "weak", and if there is a connection request from the colored block next to the top that contradicts this, that connection request is The Y values are associated so as to prioritize and satisfy (steps 30 and 31 in Fig. 11). Furthermore, if it is not possible to determine the Y value from conflicting connection requests even using the priority order of connection requests as described above, the connection request from the colored block on the left is given priority over the connection request from the top neighbor. Corresponding Y values (first
Figure 1 Step 32).

第12図は上記の様な接続要求の優先順位に従
つて、画像内の各着色ブロツクに含まれる2種以
下の色とY値とを対応づけた画像の例である。図
中の表記は第9図と同様である。画像内で同じ色
の画素から成る連結領域に対して、同じY値が対
応づけられる傾向が顕著であり、Y値でできる2
値画像が、元のカラー画像に含まれる図形要素の
形状をよく保存していることがわかる。
FIG. 12 is an example of an image in which two or less colors included in each colored block in the image are associated with Y values in accordance with the priority order of connection requests as described above. The notation in the figure is the same as in FIG. 9. There is a remarkable tendency for the same Y value to be associated with connected areas consisting of pixels of the same color in an image, and the 2
It can be seen that the value image preserves well the shapes of the graphical elements contained in the original color image.

ところで対応決定部6では各着色ブロツクに含
まれる2種以下の色にY値を機械的に振り分けて
も、カラー画像表現上は問題がないが、その場合
はY値でできる2値画像はランダムパターンの様
になり、従来の画像作成装置で作成した画像情報
のY値の情報とは全然異なるものとなる。第5図
及び第11図で示した方法は、元のカラー画像に
含まれる図形要素の形状を保存する様なY値の対
応づけが可能であることを意味するものである。
By the way, even if the correspondence determination unit 6 mechanically allocates Y values to two or less types of colors included in each colored block, there is no problem in terms of color image expression, but in that case, the binary image created with Y values will be random. It looks like a pattern and is completely different from the Y value information of the image information created with a conventional image creation device. The method shown in FIGS. 5 and 11 means that it is possible to associate Y values such that the shapes of graphic elements included in the original color image are preserved.

なお、上記実施例では着色ブロツクの大きさを
4×4画素として説明したが、ブロツクサイズの
大きさは一般にm×n画素として差支えない。
In the above embodiment, the size of the colored block was explained as 4×4 pixels, but the block size may generally be m×n pixels.

また、上記実施例において、大面積色とその隣
接度合に関する統計を色テーブルを用いて着色ブ
ロツク単位の計数により行なう方法を説明した
が、計数方法は着色ブロツク単位であつても画素
単位であつてもその効果は変わらない。
In addition, in the above embodiment, a method was explained in which statistics regarding large-area colors and their degree of adjacency are performed by counting in units of colored blocks using a color table, but the counting method can be performed in units of colored blocks or in units of pixels. The effect remains the same.

第13図乃至14図は、大面積色に関する統計
を画素単位で計数する場合の実施例を説明するた
めの図である。第13図において、33は画素単
位の計数により第6図と同様のヒストグラムを作
成する統計測定部であり、その他の機能ブロツク
は第1図と同様である。画素単位の計数は中央処
理装置9が画像メモリ8内のカラー画像から各画
素を読出すことにより行ない、計数結果のヒスト
グラムをワーキングメモリ11内に作成する。第
14図は具体的な計数方法を示すものである。カ
ラー画像に含まれる各色が占める画素の割合は、
第14図aの様に、読出した画素の色がAであれ
ばワーキングメモリ11内の色Aの頻度計数用の
値を1だけカウントアツプすることにより行な
う。また色の隣接度合の計数は、第14図b乃至
dの様に、各画素の左隣と上隣の画素の色も参照
して、左右或は上下に隣接する2画素の色が異な
る場合に、その2つの色の組合せをカウントアツ
プすることによつて行なう。この様な計数の結果
によつて、大面積色の決定以下の処理が第1図の
実施例と同様に行なえることは言うまでもない。
FIGS. 13 to 14 are diagrams for explaining an embodiment in which statistics regarding large-area colors are counted on a pixel-by-pixel basis. In FIG. 13, numeral 33 is a statistical measurement unit that creates a histogram similar to that in FIG. 6 by counting in pixel units, and other functional blocks are the same as in FIG. 1. Pixel-by-pixel counting is performed by the central processing unit 9 by reading out each pixel from the color image in the image memory 8, and creates a histogram of the counting results in the working memory 11. FIG. 14 shows a specific counting method. The proportion of pixels occupied by each color in a color image is
As shown in FIG. 14a, if the color of the read pixel is A, this is done by incrementing the frequency counting value of color A in the working memory 11 by 1. In addition, the degree of adjacency of colors is calculated by referring to the colors of the pixels to the left and above of each pixel, as shown in Figures 14 b to d, and when the colors of two pixels adjacent to the left and right or top and bottom are different. This is done by counting up the combinations of the two colors. It goes without saying that based on the results of such counting, the processes following the determination of the large area color can be performed in the same way as in the embodiment shown in FIG.

次に上記実施例で説明した大面積色がとるべき
Y値を予め決定する方法も、第7図の方法に限ら
れない。第15図は、別の方法を示すフローチヤ
ートである。第7図では、色iが対応すべきY値
が決定された後で、ステツプ21及び22により、色
iとの隣接度合の計数値が第2の閾値以上の未決
定色kの全てのY値を決定するとしたが、第15
図では、ステツプ34により色iとの隣接度合の計
数値が第2の閾値以上の未決定色のうち最大の隣
接度合をもつ色kを選んでそのY値を決定するも
のとしている。その他のステツプ16乃至22につい
ては第7図と第15図は同様である。更に、第1
5図においてステツプ34とステツプ22を除いて、
未決定色iについて1つずつ対応すべき色を決定
していつてもよい。
Next, the method of predetermining the Y value to be taken by the large area color explained in the above embodiment is not limited to the method shown in FIG. 7. FIG. 15 is a flowchart showing another method. In FIG. 7, after the Y value to which color i should correspond is determined, all Y values of undetermined color k whose adjacency degree count value with color i is equal to or higher than the second threshold are determined in steps 21 and 22. We decided to determine the value, but the 15th
In the figure, in step 34, color k having the maximum degree of adjacency with color i is selected from among the undetermined colors whose adjacency degree count with color i is greater than or equal to the second threshold value, and its Y value is determined. Regarding the other steps 16 to 22, FIGS. 7 and 15 are the same. Furthermore, the first
In Figure 5, except for step 34 and step 22,
The corresponding color may be determined one by one for each undetermined color i.

更に画像内の着色ブロツクについて、Y値対応
づけを行なう際の着色ブロツクの順序も、実施例
で説明した様な左上から右下への走査の順に限ら
れることはなく、他の方向の走査順に実行可能で
あり、従つてY値対応づけの際に参照する隣接の
着色ブロツクも左隣と上隣のブロツクに限定され
るわけではない。
Furthermore, regarding the colored blocks in the image, the order of the colored blocks when performing Y-value correspondence is not limited to the scanning order from the upper left to the lower right as explained in the example, but may be performed in the scanning order in other directions. It is possible to do this, and therefore, the adjacent colored blocks to be referred to when making Y-value correspondences are not limited to the adjacent blocks on the left and the adjacent blocks above.

また、各着色ブロツク内の2種以下の色とY値
を対応づける具体的方法においても、大面積色に
予め対応づけられたY値の使用法、接続要求の種
類、接続要求に与えられる優先順位は、上記実施
例で説明したものに限定されないことは言うまで
もない。
In addition, regarding the specific method of associating two or less colors in each colored block with Y values, we will also discuss how to use Y values that are previously associated with large area colors, the types of connection requests, and the priority given to connection requests. It goes without saying that the ranking is not limited to that described in the above embodiment.

また、この発明において、カラー画像の各着色
ブロツク内の色の種類数を2以下となる様に自動
的に画素色を変更した後で、第2図では図示しな
い付加機能としてのカラーグラフイツク機能を用
いて、従来装置と同様に対話的なカラー画像の部
分変更を行ない(勿論この時も着色ブロツク内に
2色以下の制限を満たさなければならない)、然
る後に自動的にY値対応づけを行なうことも可能
である。この場合でも、人手を介する対話的処理
は従来の画像作成装置に比べて極めて少ない量に
抑えることができることは勿論である。
In addition, in this invention, after automatically changing the pixel colors so that the number of color types in each colored block of a color image is 2 or less, a color graphics function is added as an additional function not shown in FIG. As with conventional devices, parts of the color image can be changed interactively (of course, the restriction of no more than two colors in a colored block must be met at this time as well), and then Y-value matching is automatically performed. It is also possible to do this. Even in this case, it goes without saying that the amount of manual interactive processing can be kept to an extremely small amount compared to conventional image creation devices.

更にこの発明においてはカラー画像の入力につ
いては特に方法を限定していない。実施例ではカ
ラーTVカメラやカラースキヤナによりカラー画
像を入力するとしたが、例えばカラーグラフイツ
ク機能を用いて対話的に(但し着色ブロツク形式
には関わりなく)入力しても以下実施例と同様の
一連の処理が可能であることは自明である。
Furthermore, the present invention does not particularly limit the method for inputting color images. In the example, a color image is input using a color TV camera or a color scanner, but even if the image is input interactively using the color graphics function (regardless of the colored block format), the same series of results as in the example will be obtained. It is obvious that processing is possible.

〔発明の効果〕〔Effect of the invention〕

以上のように、この発明によれば、画像メモリ
に記憶されたカラー画像情報を処理する情報処理
装置に、画像メモリに記憶されたカラー画像情報
を所定数の画素からなるブロツクに分割しこの各
ブロツク内に含まれる色数を検出する色数検出手
段と、 3以上の色数を有する多色ブロツクについて、
この多色ブロツク内に含まれる各色の出現頻度を
計数しかつこの多色ブロツクと隣接するブロツク
における同一色の有無を検出し、この検出結果と
各色の出現頻度に基づき優先する2種の色を選択
し、当該多色ブロツク内でこの優先する2種の色
とは異なる色をもつ各画素を当該画素の周囲の画
素において優先する2種の色の上記出現頻度の大
きい色に変更する画素色変更手段と、 カラー画像の大きな画素数を占める大面積色に
ついて、この大面積色が相互に隣接する頻度を検
出する統計測定手段と、 この頻度に基づき上記大面積色がとる2値の値
を決定する大面積色決定手段と、 画素色変更手段による変更後の各ブロツク毎
に、当該ブロツク内の各画素に対して当該画素の
色の種別を示す2値の値を対応させる対応決定手
段とを備え、 優先する2種の色の選択は、出現頻度が第1の
閾値を超える色を選択し、その結果3種以上の色
が選択された場合は第1の閾値より大きい第2の
閾値を超える出現頻度をもつかまたは隣接するブ
ロツクに存在する色を選択し、さらにその結果3
種以上の色が選択された場合は第2の閾値を超え
る出現頻度をもつを色を選択し、さらにまたその
結果3種以上の色もしくは1種以下の色が選択さ
れた場合は出現頻度が最も大きい2つの色を選択
することによつて行い、 各画素の2値の値の対応付けは、大面積色を含
むブロツクについて当該大面積色に対して大面積
色決定手段で決定された値によつて2値の値を対
応付け、これにより対応付けできないブロツクに
ついては、既に2値の値との対応付けが決定され
た隣接のブロツクと同一色を含むか否かを検出
し、同一色を含む場合にはこの同一色が隣接のブ
ロツクと同一の2値の値をとるように対応付ける
ことへの接続要求が複数の隣接ブロツクとの関係
で矛盾が無いか否かを検出して、矛盾が無い場合
はその接続要求に合致するように対応付け、矛盾
がある場合は接続要求の種類に対して予め定めら
れた優先順位に従つて最も優先順位の高い接続要
求に合致するように対応付けを行うことによつ
て、ブロツクに関わりなく作成されたカラー画像
を自動的に、画像全体としての図形の特徴を2値
の値に反映させた着色ブロツク形式の画像情報に
変換することができ、着色ブロツク形式に適合す
る画像を効率よく作成することができるカラー画
像処理装置を得ることができる効果がある。
As described above, according to the present invention, an information processing apparatus that processes color image information stored in an image memory divides the color image information stored in the image memory into blocks each consisting of a predetermined number of pixels. A color number detection means for detecting the number of colors included in a block, and a multicolor block having three or more colors,
The frequency of appearance of each color included in this multicolor block is counted, the presence or absence of the same color in blocks adjacent to this multicolor block is detected, and two priority colors are selected based on this detection result and the frequency of appearance of each color. A pixel color that is selected and changes each pixel in the multicolor block that has a color different from the two prioritized colors to the color that appears more frequently among the two prioritized colors in pixels surrounding the pixel. a statistical measuring means for detecting the frequency with which the large area colors are adjacent to each other with respect to large area colors occupying a large number of pixels in a color image; a large-area color determining means for determining a large area color; and a correspondence determining means for associating a binary value indicating the color type of the pixel with each pixel in the block for each block after the change by the pixel color changing means. The selection of the two priority colors involves selecting a color whose appearance frequency exceeds a first threshold value, and if three or more colors are selected as a result, a second threshold value that is larger than the first threshold value is selected. Select a color that has a frequency of occurrence greater than 3 or is present in adjacent blocks, and then
If more than one color is selected, a color with an appearance frequency exceeding a second threshold is selected, and if three or more colors or one or less colors are selected, a color with an appearance frequency exceeding a second threshold is selected. This is done by selecting the two largest colors, and the correspondence between the binary values of each pixel is determined by the value determined by the large area color determination means for the large area color for the block containing the large area color. For blocks that cannot be matched by this, it is detected whether or not they contain the same color as the adjacent block for which the correspondence with the binary value has already been determined, and the same color is detected. If the same color contains the same binary value as the adjacent block, a connection request is made to detect whether or not there is a conflict in relation to multiple adjacent blocks, and to check whether or not there is a conflict. If there is no such connection request, it is matched to that connection request, and if there is a conflict, it is matched to the connection request with the highest priority according to the predetermined priority order for the type of connection request. By doing this, it is possible to automatically convert a color image created regardless of the block into image information in the form of a colored block, which reflects the characteristics of the shape of the image as a whole in binary values. This has the effect of providing a color image processing device that can efficiently create images that conform to the colored block format.

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

第1図はこの発明の一実施例を示す機能ブロツ
ク図、第2図はそのシステム構成図、第3図は着
色ブロツク内の色を2種以下にする具体的方法を
示すフローチヤート、第4図は着色ブロツク形式
の説明図、第5図はカラー画像全体における各色
画素の割合と色相互の隣接頻度を計数する方法の
説明図、第6図は計数結果のヒストグラムの例を
示す図、第7図は大面積色に対応すべきY値を決
定する方法を示すフローチヤート、第8図は各着
色ブロツク内の2種以下の色にY値を対応づける
方法を示すフローチヤート、第9図は接続要求が
矛盾する場合の例を示す説明図、第10図は接続
要求の種類の具体例を示す説明図、第11図は接
続要求の優先順位の例を示すフローチヤート、第
12図はY値を対応づけた画像の例、第13図は
この発明の他の実施例を示す機能ブロツク図、第
14図は各色画素の割合と色相互の隣接頻度を計
数する他の方法の説明図、第15図は大面積色に
対応すべきY値を決定する他の方法を示すフロー
チヤート、第16図は従来の画像作成装置の構成
を示すブロツク図である。 図において、1は画像入力部、2は色数検出部
(手段)、3は画素色変更部(手段)、4は統計測
定部(手段)、5は大面積色決定部(手段)、6は
対応決定部(手段)、7は情報抽出部、8は画像
メモリ、9は中央処理装置、10はプログラムメ
モリ、11はワーキングメモリ、Mは情報処理装
置である。なお各図中同一符号は同一または相当
部分を示す。
FIG. 1 is a functional block diagram showing an embodiment of the present invention, FIG. 2 is a system configuration diagram thereof, FIG. 3 is a flowchart showing a specific method for reducing the number of colors in a colored block to two or less, and FIG. Figure 5 is an explanatory diagram of the colored block format, Figure 5 is an explanatory diagram of the method of counting the ratio of each color pixel in the entire color image and the frequency of adjacency between colors, Figure 6 is a diagram showing an example of a histogram of the counting results, Figure 7 is a flowchart showing a method for determining the Y value to correspond to a large area color, Figure 8 is a flowchart showing a method for associating Y values with two or less colors in each colored block, and Figure 9. is an explanatory diagram showing an example when connection requests are contradictory, FIG. 10 is an explanatory diagram showing specific examples of types of connection requests, FIG. 11 is a flowchart showing an example of priority order of connection requests, and FIG. An example of an image in which Y values are associated, FIG. 13 is a functional block diagram showing another embodiment of the present invention, and FIG. 14 is an explanatory diagram of another method for counting the proportion of each color pixel and the frequency of adjacency between colors. , FIG. 15 is a flowchart showing another method for determining the Y value corresponding to a large area color, and FIG. 16 is a block diagram showing the configuration of a conventional image creating apparatus. In the figure, 1 is an image input section, 2 is a color number detection section (means), 3 is a pixel color change section (means), 4 is a statistical measurement section (means), 5 is a large area color determination section (means), and 6 7 is a correspondence determination unit (means), 7 is an information extraction unit, 8 is an image memory, 9 is a central processing unit, 10 is a program memory, 11 is a working memory, and M is an information processing device. Note that the same reference numerals in each figure indicate the same or corresponding parts.

Claims (1)

【特許請求の範囲】 1 入力されたカラー画像情報を記憶する画像メ
モリと、該画像メモリに記憶された上記カラー画
像情報を処理する情報処理装置とを備えたカラー
画像処理装置において、 上記情報処理装置に、上記画像メモリに記憶さ
れたカラー画像情報を所定数の画素からなるブロ
ツクに分割し該各ブロツク内に含まれる色数を検
出する色数検出手段と、 上記ブロツクの内、3以上の上記色数を有する
多色ブロツクについて、該多色ブロツク内に含ま
れる各色の出現頻度を計数しかつ該多色ブロツク
と隣接する上記ブロツクにおける同一色の有無を
検出し、該検出結果と上記各色の出現頻度に基づ
き優先する2種の色を選択し、当該多色ブロツク
内で該優先する2種の色とは異なる色をもつ各画
素を当該画素の周囲の画素において上記優先する
2種の色の上記出現頻度の大きい色に変更する画
素色変更手段と、 上記カラー画像の大きな画素数を占める大面積
色について、該大面積色が相互に隣接する頻度を
検出する統計測定手段と、 該頻度に基づき上記大面積色がとる2値の値を
決定する大面積色決定手段と、 上記画素色変更手段による変更後の各上記ブロ
ツク毎に、当該ブロツク内の各画素に対して当該
画素の色の種別を示す2値の値を対応させる対応
決定手段とを備え、 上記優先する2種の色の選択は、上記出現頻度
が第1の閾値を超える色を選択し、その結果3種
以上の色が選択された場合は上記第1の閾値より
大きい第2の閾値を超える上記出現頻度をもつか
または隣接するブロツクに存在する色を選択し、
さらにその結果3種以上の色が選択された場合は
上記第2の閾値を超える上記出現頻度をもつを色
を選択し、さらにまたその結果3種以上の色もし
くは1種以下の色が選択された場合は上記出現頻
度が最も大きい2つの色を選択することによつて
行い、 上記各画素の2値の値の対応付けは、上記大面
積色を含む上記ブロツクは当該大面積色に対して
上記大面積色決定手段で決定された値により2値
の値を対応付け、対応付けできない上記ブロツク
は、2値の値との対応付けが決定された隣接の上
記ブロツクに含まれるのと同一色の有無を検出
し、同一色があれば該同一色が隣接の上記ブロツ
クと同一の2値の値をとるように対応付けること
への接続要求が上記複数の隣接ブロツクとの関係
で矛盾することの有無を検出し、矛盾しなければ
該接続要求に合致するように対応付け、矛盾すれ
ば該接続要求の種類に対して予め定められた優先
順位に従つて最も優先順位の高い接続要求に合致
するように対応付けることによつて行い、 上記画像メモリに記憶された上記カラー画像情
報を、画素単位の2値の値とブロツク単位の2種
以下の色の値を示す情報とを対応させた画像情報
に変換することを特徴とするカラー画像処理装
置。
[Scope of Claims] 1. A color image processing device comprising an image memory that stores input color image information, and an information processing device that processes the color image information stored in the image memory, comprising: The apparatus includes a color number detection means for dividing the color image information stored in the image memory into blocks each having a predetermined number of pixels and detecting the number of colors included in each block; For a multicolor block having the above number of colors, the frequency of appearance of each color included in the multicolor block is counted, and the presence or absence of the same color in the blocks adjacent to the multicolor block is detected, and the detection result and each of the above colors are calculated. The two priority colors are selected based on the frequency of appearance of each pixel in the multicolor block, and each pixel having a color different from the two priority colors is selected based on the frequency of occurrence of the two priority colors in the pixels surrounding the pixel. pixel color changing means for changing the color to a color with a high appearance frequency; statistical measuring means for detecting the frequency with which large area colors occupying a large number of pixels in the color image are adjacent to each other; large area color determining means for determining the binary value taken by the large area color based on the frequency; and a correspondence determining means for associating binary values indicating color types, and the selection of the two priority colors selects a color whose appearance frequency exceeds the first threshold value, and as a result, three or more colors are selected. If a color is selected, select a color that has the appearance frequency exceeding a second threshold value that is greater than the first threshold value or exists in an adjacent block;
Furthermore, if three or more colors are selected as a result, a color with the frequency of appearance exceeding the second threshold is selected, and as a result, three or more colors or one or less colors are selected. In this case, the two colors with the highest frequency of appearance are selected, and the correspondence between the binary values of each pixel is as follows: Binary values are associated with each other using the values determined by the large-area color determining means, and the blocks that cannot be associated are of the same color as those included in the adjacent blocks for which the association with binary values has been determined. The connection request for detecting the presence or absence of the same color and associating it so that the same color takes the same binary value as the adjacent blocks mentioned above is inconsistent with the relation with the plurality of neighboring blocks mentioned above. The presence or absence is detected, and if there is no conflict, it is matched to the connection request, and if there is a conflict, it is matched to the connection request with the highest priority according to the predetermined priority for the type of connection request. Image information is obtained by associating the color image information stored in the image memory with information indicating binary values in pixel units and information indicating two or less color values in block units. A color image processing device characterized by converting images into images.
JP60163208A 1985-07-24 1985-07-24 Color picture processor Granted JPS6224373A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP60163208A JPS6224373A (en) 1985-07-24 1985-07-24 Color picture processor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP60163208A JPS6224373A (en) 1985-07-24 1985-07-24 Color picture processor

Publications (2)

Publication Number Publication Date
JPS6224373A JPS6224373A (en) 1987-02-02
JPH0467669B2 true JPH0467669B2 (en) 1992-10-29

Family

ID=15769343

Family Applications (1)

Application Number Title Priority Date Filing Date
JP60163208A Granted JPS6224373A (en) 1985-07-24 1985-07-24 Color picture processor

Country Status (1)

Country Link
JP (1) JPS6224373A (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US4743962A (en) * 1987-06-08 1988-05-10 Tektronix, Inc. Method of creating a representation of a colored image
JP4217575B2 (en) 2003-09-29 2009-02-04 キヤノン株式会社 Image processing apparatus, image processing method, program, and storage medium

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5893096A (en) * 1981-11-30 1983-06-02 株式会社日立製作所 Image display

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5893096A (en) * 1981-11-30 1983-06-02 株式会社日立製作所 Image display

Also Published As

Publication number Publication date
JPS6224373A (en) 1987-02-02

Similar Documents

Publication Publication Date Title
US6445818B1 (en) Automatically determining an optimal content image search algorithm by choosing the algorithm based on color
US5420971A (en) Image edge finder which operates over multiple picture element ranges
JP4271804B2 (en) Method for selecting colors assigned to pixels, and method for encoding and storing images
US5533186A (en) Image filing method based on symbol retrieval condition
US8534560B2 (en) Two-dimensional code reader and program
US6774909B1 (en) Method and apparatus for transforming color image into monochromatic image
JPH05236260A (en) Picture processor
US5742520A (en) Color picture processing method and color picture processing apparatus
CN108737875B (en) Image processing method and device
CN108615030A (en) A kind of title consistency detecting method, device and electronic equipment
JPH0467669B2 (en)
EP0961228A2 (en) Image processing method and apparatus
US5263095A (en) Method of and apparatus for processing linework image
US5264946A (en) Apparatus and method for image extraction with threshold adjustment
JPH0448275B2 (en)
JP4334981B2 (en) Image processing apparatus and image processing method
EP0930777B1 (en) Image coding based on regions and segmented border lines thereof
JP2973710B2 (en) Limited color determination method and limited color determination device
KR0155925B1 (en) Digital color image
JPH06175633A (en) Image data processor
JPH01191971A (en) Picture processor
JP2987169B2 (en) How to make a cutout mask
CN116361495A (en) Storage method and device of sequence frames and electronic equipment
JPH05290133A (en) Color image processor
JPH05298443A (en) Color picture area extracting device