JPH079671B2 - Color image converter - Google Patents

Color image converter

Info

Publication number
JPH079671B2
JPH079671B2 JP60224471A JP22447185A JPH079671B2 JP H079671 B2 JPH079671 B2 JP H079671B2 JP 60224471 A JP60224471 A JP 60224471A JP 22447185 A JP22447185 A JP 22447185A JP H079671 B2 JPH079671 B2 JP H079671B2
Authority
JP
Japan
Prior art keywords
color
map
colors
image
color map
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 - Fee Related
Application number
JP60224471A
Other languages
Japanese (ja)
Other versions
JPS6284386A (en
Inventor
宏之 熊沢
秀一 西川
悟 富田
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 JP60224471A priority Critical patent/JPH079671B2/en
Publication of JPS6284386A publication Critical patent/JPS6284386A/en
Publication of JPH079671B2 publication Critical patent/JPH079671B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

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

Description

【発明の詳細な説明】 〔産業上の利用分野〕 この発明は、フレームバッファを有するカラー画像の表
示装置において用いられるカラーマップ、特にカラー画
像から重要な色を自動的に抽出してカラーマップに登録
し、このカラーマップを用いてカラー画像を近似変換す
るカラー画像変換装置に関するものである。
Description: TECHNICAL FIELD The present invention relates to a color map used in a color image display device having a frame buffer, and in particular, an important color is automatically extracted from the color image to form a color map. The present invention relates to a color image conversion device that registers and approximates a color image using this color map.

〔従来の技術〕[Conventional technology]

フレームバッファを有するカラー画像表示装置が様々な
分野で利用されており、更には家庭での需要も増えつつ
ある。人間の視覚は少なくとも5万色以上の色を区別で
きると言われているが、このような色を表現するには1
画素あたり15ビット以上ものフレームバッファが必要で
ある。
Color image display devices having a frame buffer are used in various fields, and the demand at home is also increasing. It is said that human vision can distinguish at least 50,000 or more colors. To express such a color, 1
A frame buffer with more than 15 bits per pixel is required.

カラーマップを用いたカラー画像の表示は、より少ない
フレームバッファで多彩な色表現ができるという利点が
あり、コンピュータによる合成画像の表示を効率的に行
うことができる。すなわち、カラーマップはインデック
ス番号と色との対応表であり、インデックスの数が256
の場合には、画像の中に現れる可能性のあるすべてのR
(赤),G(緑),B(青)色成分の組合せから任意に256
色を抽出してカラーマップに登録でき、1画面内にこの
256色を同時に表示することができる。しかし、実際の
カラー画像を入力し、カラーマップを用いてこの入力画
像を表示するためには、入力画像からカラーマップに登
録する色を抽出する必要があり、しかもこの処理を自動
化するとともに表示画像の画質の劣化をできる限り少な
くしなければならないという問題がある。この問題に関
して色の量子化という観点から、入力画像からカラーマ
ップに登録する色を自動的に抽出し、その色を用いて入
力画像を表現することが試みられている。
Displaying a color image using a color map has an advantage that various color expressions can be performed with a smaller frame buffer, and a composite image can be efficiently displayed by a computer. That is, the color map is a correspondence table of index numbers and colors, and the number of indexes is 256.
, Then all Rs that may appear in the image
256 from any combination of (red), G (green), and B (blue) color components
Colors can be extracted and registered in the color map.
256 colors can be displayed simultaneously. However, in order to input an actual color image and display this input image using the color map, it is necessary to extract the colors to be registered in the color map from the input image. However, there is a problem that the deterioration of the image quality must be minimized. Regarding this problem, from the viewpoint of color quantization, it has been attempted to automatically extract a color to be registered in the color map from the input image and use the color to represent the input image.

第9図は例えば、先に出願した同一発明者による「カラ
ー画像変換装置」で示された方式の全体のフローチャー
ト、第10図及び第11図は第9図のステップ91で示すカラ
ーマップ及びカラー空間分割マップ作成部のより詳細な
フローチャートであり、前者は頻度優先法、後者は距離
優先法と呼ばれている。
FIG. 9 is, for example, the entire flow chart of the system shown in “Color image conversion device” by the same inventor previously applied, and FIGS. 10 and 11 are the color map and color shown in step 91 of FIG. It is a more detailed flowchart of the space division map creation unit. The former is called a frequency priority method and the latter is called a distance priority method.

第9図において、ステップ31はカラー画像をTVカメラ、
磁気ディスク等から入力してR(赤)成分、G(緑)成
分、B(青)成分をそれぞれMビットのデータとして画
像メモリに書き込む。ステップ32は入力された画像の全
画素または一部画素を走査してヒストグラム、すなわち
色の生起頻度分布を作成する。ステップ33では前記入力
画像に出現可能な23M色の中から23M色以下の色を候補色
として抽出する。例えば、RGB3次元空間の各軸をNr,Ng,
及びNb分割することによりNr×Ng×Nb個の直方体に分割
し、各直方体内で生起頻度が最大の色を候補色として抽
出する方法等が考えられるが、この方法に限定したもの
ではない。ステップ34は初期統合であり、前記候補色の
集合を はR,G,B成分で表現された3次元ベクトル )とすると、RGB3次元空間C3(C3は23M色の色から構成
される集合である)は候補色 と対応付けられたN個の領域Siに分割される。但し、Si
は次式(1)を満足する色の集合である。
In FIG. 9, step 31 is to display a color image on a TV camera,
The R (red) component, the G (green) component, and the B (blue) component input from a magnetic disk or the like are written in the image memory as M-bit data. Step 32 scans all or some pixels of the input image to create a histogram, that is, a color occurrence frequency distribution. In step 33 extracts color below 2 3M color from among 2 3M possible colors appearing in the input image as candidate colors. For example, if each axis of RGB 3D space is Nr, Ng,
And Nb division into Nr × Ng × Nb rectangular parallelepipeds, and a method of extracting a color having the highest occurrence frequency in each rectangular parallelepiped as a candidate color is conceivable, but the method is not limited to this. Step 34 is the initial integration, and the set of candidate colors is Is a three-dimensional vector represented by R, G, B components ), The RGB three-dimensional space C 3 (C 3 is a set composed of 2 3M colors) is a candidate color. Is divided into N regions Si associated with. However, Si
Is a set of colors that satisfies the following equation (1).

C3=Ui▲N-1 =0▼Si (1) SiSj=φ(i≠j) 更に、ステップ34では上記式(1)で定められる23M
の色と領域番号(Siはiなる番号を領域番号として持
つ)との対応関係を第14図に示すようなカラー空間分割
マップに記載するとともに、各領域から一色の代表色を
抽出する。ステップ35はRGB空間の領域の隣接関係テー
ブルを作成する。隣接関係を調べる方法はカラー空間分
割マップを形式的にS(r,g,b)(色(r,g,b)は領域S
(r,g,b)に属することを意味する)と表現すれば次の
ように考えることができる。まず、すべての色(r,g,
b)について、 S(r,g,b)=S(r+1,g,b) (2) S(r,g,b)=S(r,g+1,b) (3) S(r,g,b)=S(r,g,b+1) (4) が成立するか否かを調べる。もし、式(2)が成立しな
い場合には領域S(r,g,b)と領域S(r+1,g,b)は隣
接し、式(3)が成立しない場合には領域S(r,g,b)
と領域S(r,g+1,b)は隣接し、式(4)が成立しない
場合には領域S(r,g,b)と領域S(r,g,b+1)は隣接
することがわかる。上記の処理をRGB空間の全色につい
て行うと領域の隣接関係を調べることができる。第12図
(a)は隣接関係テーブルの一構成例である。同図にお
いて、領域iは行iを横方向に見たときに論理1の立っ
ている部分の列番号の領域と隣接しており、領域iは領
域2及びjと隣接していることを示している。対角線上
は常に0である。ステップ91は、カラーマップ及びカラ
ー空間分割マップ作成部であり、前記領域から二つの領
域を選び出して両領域を統合し、この統合された領域か
ら一色の代表色を抽出するという処理を繰り返して所定
の色数にまで減らす。そして最終的に残った代表色を第
13図のようにカラーマップに登録するとともに、RGB空
間の全色とカラーマップのインデックス番号との対応関
係をカラー空間分割マップに登録する。この部分の処理
方式については第10図及び第11図のフローチャートを用
いて別途詳細に説明する。ステップ38は画像メモリ上の
入力画像の各画素のR,G,B成分データを読み出してカラ
ー空間分割マップを用いてカラーマップのインデックス
番号に変換し、そのインデックス番号を画像メモリに書
き込む。
C 3 = Ui ▲ N-1 = 0 ▼ Si (1) Si ∩ Sj = φ (i ≠ j) In addition, the 2 3M color of the region number (Si defined by the formula in Step 34 (1) i Corresponding number) is described in a color space division map as shown in FIG. 14, and one representative color is extracted from each area. Step 35 creates an adjacency table for the areas of RGB space. The method of checking the adjacency is to formally divide the color space division map into S (r, g, b) (color (r, g, b) is the area S.
(It means that it belongs to (r, g, b)) can be considered as follows. First, all colors (r, g,
Regarding b), S (r, g, b) = S (r + 1, g, b) (2) S (r, g, b) = S (r, g + 1, b) (3) S (r, g, b) = S (r, g, b + 1) (4) is examined. If the formula (2) is not satisfied, the region S (r, g, b) and the region S (r + 1, g, b) are adjacent to each other, and if the formula (3) is not satisfied, the region S (r, g g, b)
And the area S (r, g + 1, b) are adjacent to each other, and when the expression (4) is not satisfied, the area S (r, g, b) and the area S (r, g, b + 1) are adjacent to each other. If the above process is performed for all the colors in the RGB space, the adjacency relationship of regions can be examined. FIG. 12A shows an example of the configuration of the adjacency relationship table. In the figure, the region i is adjacent to the region of the column number where the logic 1 stands when the row i is viewed in the horizontal direction, and the region i is adjacent to the regions 2 and j. ing. It is always 0 on the diagonal. Step 91 is a color map and color space division map creation unit, which selects two areas from the area, integrates both areas, and extracts a representative color of one color from the integrated area. To reduce the number of colors. And finally the representative color that remained remains
As shown in Fig. 13, the color map is registered, and the correspondence relationship between all colors in the RGB space and the index number of the color map is registered in the color space division map. The processing method of this part will be described separately in detail with reference to the flowcharts of FIGS. 10 and 11. In step 38, the R, G, B component data of each pixel of the input image on the image memory is read out, converted into the index number of the color map using the color space division map, and the index number is written in the image memory.

第10図は、第9図に示したステップ91の第一の処理方式
である頻度優先法の詳細なフローチャートである。同図
において、ステップ101は領域の統合を行った結果、代
表色数が所定の数になったか否かを判定し、所定の数に
なっていない場合にはステップ102〜104を実行し、所定
の数になった場合にはステップ105〜106を実行して処理
を終了する。ステップ102では、各領域の内、色の生起
頻度が最小となる最小頻度領域を抽出し、ステップ103
で隣接関係テーブルを参照して前記最小頻度領域と隣接
する領域を求め、その中で距離が最小となる代表色を有
する領域と統合する。このとき作られた新たな領域は前
記両領域の和集合であり、頻度は前記両領域の頻度の
和、代表色は前記両領域の代表色の荷重平均で与えられ
る。ステップ104では隣接関係テーブルを更新する。隣
接関係テーブルの更新の具体例を第12図に示す。同図
(a)において領域iが隣接領域jに統合されたときの
更新結果が同図(b)に示されている。すなわち、行i
と行jとの論理和を取りその結果を行jに書き、列iと
列jとの論理和を取りその結果を列jに書くとともに、
行i,列i及び対角成分に論理0を書く。以上で隣接関係
テーブルの更新が終了する。上記のステップ101〜104の
処理を繰り返し、所定の色数になればステップ105で各
領域の代表色をカラーマップに登録するとともにステッ
プ106でカラー空間分割マップを作成する。
FIG. 10 is a detailed flowchart of the frequency priority method which is the first processing method of step 91 shown in FIG. In the figure, step 101 determines whether or not the number of representative colors has reached a predetermined number as a result of region integration.If the number of representative colors does not reach the predetermined number, steps 102 to 104 are executed, and the predetermined number is determined. When the number becomes, the steps 105 to 106 are executed and the process is terminated. In step 102, the minimum frequency region in which the color occurrence frequency is the minimum is extracted from each region, and step 103
Then, the area adjacent to the minimum frequency area is obtained by referring to the adjacent relationship table, and the area is integrated with the area having the representative color with the minimum distance. The new area created at this time is the union of both areas, the frequency is given by the sum of the frequencies of both areas, and the representative color is given by the weighted average of the representative colors of both areas. In step 104, the adjacency relationship table is updated. FIG. 12 shows a specific example of updating the adjacency table. The update result when the area i is integrated into the adjacent area j in FIG. 9A is shown in FIG. That is, row i
And the row j are ORed and the result is written in row j, and the column i and the column j are ORed and the result is written in column j, and
Write a logical 0 in row i, column i and diagonal components. This is the end of updating the adjacency table. The above steps 101 to 104 are repeated. When the number of colors reaches a predetermined number, the representative color of each area is registered in the color map in step 105, and the color space division map is created in step 106.

第11図は、第9図に示したステップ91の第二の処理方式
である距離優先法の詳細なフローチャートである。同図
において、ステップ111は隣接関係テーブルを参照し
て、隣接する領域の代表色間の距離をすべて計算する。
ステップ112は領域の統合を行った結果、代表色数が所
定の数になったか否かを判定し、所定の数になっていな
い場合にはステップ113〜115を実行し、所定の数になっ
た場合にはステップ105〜106を実行して処理を終了す
る。ステップ113では、あらかじめ計算されている隣接
領域間距離のうち最小距離の領域対を抽出し、ステップ
114で前記領域対の統合を行う。統合によって生まれた
親領域は、前記両領域の和集合であり、頻度は前記両領
域の頻度の和、代表色は前記両領域の代表色の荷重平均
で与えられる。ステップ104では隣接関係テーブルの更
新を行う。ステップ115は新領域と親領域に隣接する領
域の代表色間の距離を計算する。上記のステップ112〜1
15の処理を繰り返し、所定の色数になればステップ105
で各領域の代表色をカラーマップに登録するとともに、
ステップ106でカラー空間分割マップを作成する。
FIG. 11 is a detailed flowchart of the distance priority method which is the second processing method of step 91 shown in FIG. In the figure, step 111 refers to the adjacency relation table and calculates all the distances between the representative colors of the adjoining regions.
Step 112 determines whether or not the number of representative colors has reached a predetermined number as a result of integrating the areas.If the number of representative colors does not reach the predetermined number, steps 113 to 115 are executed to reach the predetermined number. If so, steps 105 to 106 are executed and the process ends. In step 113, the area pair with the smallest distance is extracted from the distances between the adjacent areas calculated in advance,
At 114, the region pairs are integrated. The parent area created by the integration is the union of both areas, the frequency is given by the sum of the frequencies of both areas, and the representative color is given by the weighted average of the representative colors of both areas. In step 104, the adjacency relation table is updated. Step 115 calculates the distance between the representative colors of the area adjacent to the new area and the parent area. Steps 112-1 above
If the number of colors reaches a predetermined number by repeating the processing of 15, step 105
While registering the representative color of each area in the color map with,
In step 106, a color space division map is created.

従来のカラー画像変換装置は上記のようなアルゴリズム
を実行するように構成され、カラー画像が入力される
と、自動的に代表色をカラーマップに登録するとともに
入力画像を変換して表示されるようになっている。
A conventional color image conversion device is configured to execute the above algorithm, and when a color image is input, a representative color is automatically registered in a color map and the input image is converted and displayed. It has become.

〔発明が解決しようとする問題点〕[Problems to be solved by the invention]

上記のような従来のカラー画像変換装置において、カラ
ーマップの作成方式として第一の処理方式である頻度優
先法を用いた場合、頻度の低い領域が頻度の高い領域に
統合されるため、処理結果の画質が著しく劣化するとい
うことはないものの、頻度の高い領域であれば非常に近
接した色がカラーマップに登録される可能性があり、そ
の結果、例えば画像平面上で一色に塗りつぶされること
が望ましい領域内に二色以上の近接した色が雑音状に現
れるという問題点があった。更に、色の再現性に関して
は、頻度の低い色が消失する、あるいは色が変わる等の
問題点があった。
In the conventional color image conversion device as described above, when the frequency priority method, which is the first processing method, is used as the color map creation method, the low frequency area is integrated into the high frequency area. Although the image quality of the image does not deteriorate significantly, very close colors may be registered in the color map in a high frequency area, and as a result, for example, it may be painted in one color on the image plane. There is a problem that two or more colors that are close to each other appear like noise in a desired area. Further, regarding the color reproducibility, there is a problem that an infrequent color disappears or the color changes.

一方、カラーマップの作成方式として第二の処理方式で
ある距離優先法を用いた場合、近接している色がカラー
マップに登録されることがないため、上記のような二色
以上の近接した色が雑音状に現れることがなく(雑音除
去効果がある)、更に、頻度が小さくても他の色から離
れている色はカラーマップに登録されるため、そのよう
な色の再現性が良くなっている。しかし、距離の近い色
が色空間上で連なって存在しているような場合には、領
域の統合が連鎖反応的に行われるため距離の離れた色が
同一代表色によって代表されるという問題点があった。
また、画像入力時における雑音の影響で非常に距離の離
れた色が一色でも存在していると、その色がカラーマッ
プに登録されてしまうという問題点があった。
On the other hand, when the distance priority method, which is the second processing method, is used as the color map creation method, colors that are close to each other are not registered in the color map. Colors do not appear like noise (has a noise removal effect), and even if the frequency is low, colors that are distant from other colors are registered in the color map, so the reproducibility of such colors is good. Has become. However, in the case where colors that are close to each other exist in series in the color space, the integration of regions is performed in a chain reaction, so that colors that are far from each other are represented by the same representative color. was there.
Further, if there is even one color that is very far away due to the effect of noise during image input, there is a problem that that color is registered in the color map.

この発明は、かかる問題点を解決するためになされたも
ので、入力されたカラー画像を限定された数の代表色で
表現する際に適切な色を代表色としてカラーマップに登
録するために、非常に近接した色がカラーマップに登録
されないようにするとともに、雑音成分ではない場合に
は頻度がある程度小さくとも他の色と距離が離れている
色についてはカラーマップに登録されるようなカラー画
像変換装置を得ることを目的とする。
The present invention has been made to solve such a problem, and when an input color image is represented by a limited number of representative colors, an appropriate color is registered as a representative color in a color map, A color image that prevents colors that are very close to each other from being registered in the color map, and that if they are not noise components, colors that are far from other colors even if the frequency is somewhat small are registered in the color map. The purpose is to obtain a conversion device.

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

(1)カラー画像入力装置1と、カラー画像メモリ2
と、ヒストグラム作成手段3及びヒストグラムカウンタ
群4と、候補色抽出手段5と、初期統合手段6と、各領
域の内、色の生起頻度が最小の領域を抽出し、該最小頻
度領域をカラー空間上で隣接する他の領域と統合すると
ともに、統合された領域を一色で表現することを繰り返
すことにより領域数を所定の色数にまで減らし、その結
果生成された各領域を代表する色をインデックス番号が
付されたカラーマップ11に登録するとともに、前記入力
画像に出現可能な全色とカラーマップのインデックス番
号との対応関係をカラー空間分割マップ12に作成する第
一のカラーマップ作成手段9と、カラー空間上で隣接し
ている領域の内、代表色間の距離が最も小さい領域対を
統合するとともに、統合された領域を一色で表現するこ
とを繰り返すことにより領域数を所定の色数にまで減ら
し、その結果生成された各領域を代表する色をカラーマ
ップ11に登録するとともに、前記入力画像に出現可能な
全色とカラーマップのインデックス番号との対応関係を
カラー空間分割マップ12に作成する第二のカラーマップ
作成手段10と、前記入力画像の各画素を前記カラー空間
分割マップに従ってカラーマップのインデックス番号に
変換して画像メモリに記憶させるカラー画像変換手段13
と、隣接関係テーブル作成手段7と、隣接関係テーブル
8と、表示装置14と、前記隣接関係テーブル8、カラー
マップ11及びカラー空間分割マップ12を前記第一又は第
二のカラーマップ作成手段9,10のいずれかに切換える一
連の切換えスイッチ15を備えたカラー画像変換装置にお
いて、1つのカラー画像を初期入力し、前記初期統合手
段6による処理が終了した後に、第一又は第二のカラー
マップ作成手段9による処理をあらかじめ定めた閾(し
きい)値により所定の色数になるまで続行し、更に切換
えて第二又は第一のカラーマップ作成手段10により色数
を削減してカラーマップ及びカラー空間分割マップとを
作成することを特徴とするカラー画像変換装置。
(1) Color image input device 1 and color image memory 2
A histogram creating means 3 and a histogram counter group 4, a candidate color extracting means 5, an initial integrating means 6, and an area having the smallest occurrence frequency of colors among the areas, and extracting the minimum frequency area as a color space. The number of regions is reduced to a predetermined number by combining the adjacent regions above with other regions and expressing the integrated region in one color, and the colors representing the resulting regions are indexed. First color map creating means 9 for creating a correspondence between all colors that can appear in the input image and index numbers of the color map in the color space division map 12 while registering in the numbered color map 11. , Combining the pair of areas with the smallest distance between the representative colors among the adjacent areas in the color space, and repeating expressing the integrated area with one color The number of areas is further reduced to a predetermined number of colors, and the colors representing the respective areas generated as a result are registered in the color map 11, and all colors that can appear in the input image are associated with index numbers of the color map. Second color map creating means 10 for creating a relationship in the color space division map 12, and color image conversion for converting each pixel of the input image into an index number of the color map according to the color space division map and storing it in an image memory. Means 13
The adjacency relationship table creating means 7, the adjacency relationship table 8, the display device 14, the adjacency relationship table 8, the color map 11 and the color space division map 12 into the first or second color map creating means 9, In a color image conversion device equipped with a series of changeover switches 15 for changing over to any one of 10, a first color image is initially inputted, and after the processing by the initial integration means 6 is completed, a first or second color map is created. The processing by the means 9 is continued until a predetermined number of colors is reached according to a predetermined threshold value, and further switched to reduce the number of colors by the second or first color map creating means 10 to reduce the color map and the color. A color image conversion device characterized by creating a space division map.

(2)カラー画像入力装置1と、カラー画像メモリ2
と、ヒストグラム作成手段3及びヒストグラムカウンタ
群4と、候補色抽出手段5と、初期統合手段6と、各領
域の内、色の生起頻度が最小の領域を抽出し、該最小頻
度領域をカラー空間上で隣接する他の領域と統合すると
ともに、統合された領域を一色で表現することを繰り返
すことにより領域数を所定の色数にまで減らし、その結
果生成された各領域を代表する色をインデックス番号が
付されたカラーマップ11に登録するとともに、前記入力
画像に出現可能な全色とカラーマップのインデックス番
号との対応関係をカラー空間分割マップ12に作成する第
一のカラーマップ作成手段9と、カラー空間上で隣接し
ている領域の内、代表色間の距離が最も小さい領域対を
統合するとともに、統合された領域を一色で表現するこ
とを繰り返すことにより領域数を所定の色数にまで減ら
し、その結果生成された各領域を代表する色をカラーマ
ップ11に登録するとともに、前記入力画像に出現可能な
全色とカラーマップのインデックス番号との対応関係を
カラー空間分割マップ12に作成する第二のカラーマップ
作成手段10と、前記入力画像の各画素を前記カラー空間
分割マップ12に従ってカラーマップのインデックス番号
に変換して画像メモリ2に記憶させるカラー画像変換手
段13と、隣接関係テーブル作成手段7と、隣接関係テー
ブル8と、表示装置14と、前記隣接関係テーブル8、カ
ラーマップ11及びカラー空間分割マップ12を前記第一又
は第二のカラーマップ作成手段9,10のいずれかに切換え
る一連の切換えスイッチ15とを備えたカラー画像変換装
置において、1つのカラー画像を初期入力し、前記初期
統合手段6による処理が終了した後に、第一のカラーマ
ップ作成手段9と第二のカラーマップ作成手段10とを対
話的に切換えることにより色数を削減してカラーマップ
及びカラー空間分割マップとを作成することを特徴とす
るカラー画像変換装置。
(2) Color image input device 1 and color image memory 2
A histogram creating means 3 and a histogram counter group 4, a candidate color extracting means 5, an initial integrating means 6, and an area having the smallest occurrence frequency of colors among the areas, and extracting the minimum frequency area as a color space. The number of regions is reduced to a predetermined number by combining the adjacent regions above with other regions and expressing the integrated region in one color, and the colors representing the resulting regions are indexed. First color map creating means 9 for creating a correspondence between all colors that can appear in the input image and index numbers of the color map in the color space division map 12 while registering in the numbered color map 11. , Combining the pair of areas with the smallest distance between the representative colors among the adjacent areas in the color space, and repeating expressing the integrated area with one color The number of areas is further reduced to a predetermined number of colors, and the colors representing the respective areas generated as a result are registered in the color map 11, and all colors that can appear in the input image are associated with index numbers of the color map. Second color map creating means 10 for creating a relationship in the color space division map 12, and a color for converting each pixel of the input image into an index number of the color map according to the color space division map 12 and storing it in the image memory 2. The image conversion means 13, the adjacency relationship table creating means 7, the adjacency relationship table 8, the display device 14, the adjacency relationship table 8, the color map 11 and the color space division map 12 are used as the first or second color map. In a color image conversion device equipped with a series of changeover switches 15 for changing over to any one of the creating means 9 and 10, one color image is initially input, After the processing by the initial unifying unit 6 is completed, the number of colors is reduced by interactively switching between the first color map creating unit 9 and the second color map creating unit 10 so that the color map and the color space division map are reduced. A color image conversion device characterized by creating and.

〔作用〕[Action]

この発明においては、第一のカラーマップ作成手段には
頻度の低い領域を頻度のより高い領域に統合する作用が
あり、第二のカラーマップ作成手段には、近接した代表
色を有する領域どうしを統合する作用がある。従って、
第一及び第二のカラーマップ作成手段を備えることによ
り、両手段の特長を引き出すことができる。
In the present invention, the first color map creating means has an action of integrating the low frequency area into the higher frequency area, and the second color map creating means creates the areas having the adjacent representative colors. Has a function of integration. Therefore,
By providing the first and second color map creating means, the features of both means can be brought out.

また、この発明の別発明においては、選択手段で第一,
第二のカラーマップ作成手段を切換えて用いることがで
きるので、入力画像の種類に応じた適切な処理を行うこ
とができる。
Further, in another invention of the present invention, the selection means is
Since the second color map creating means can be switched and used, appropriate processing can be performed according to the type of the input image.

〔実施例〕〔Example〕

以下、この発明を実施例にもとづき説明する。 Hereinafter, the present invention will be described based on examples.

第1図は、この発明の一実施例によるカラー画像変換装
置の全体構成図である。画像入力装置1は、カラー画像
をTVカメラ、磁気ディスク等からR,G,B成分各Mビット
のデータとして画像メモリ2に書き込む。ヒストグラム
作成手段3は従来例のステップ32に相当し、画像メモリ
2に格納されている入力画像の全画素または一部画素を
走査してヒストグラム、すなわち色の生起頻度分布をヒ
ストグラムカウンタ群4上に作成する。候補色抽出手段
5,初期統合手段6,隣接関係テーブル作成手段7及びカラ
ー画像変換手段13はそれぞれ従来例のステップ33,ステ
ップ34,ステップ35及びステップ38と同一の処理を行
う。隣接関係テーブル8は隣接関係テーブル作成手段7
によって作成された第12図のような形式のテーブルを格
納する。また、カラーマップ11及びカラー空間分割マッ
プ12はそれぞれ第13図及び第14図に対応する。すなわ
ち、カラーマップ11はインデックス番号とR,G,B成分で
表現された代表色との対応表であり、カラー空間分割マ
ップ12はRGB空間の全色とカラーマップ11のインデック
ス番号との対応表である。第一のカラーマップ作成手段
9は第10図のフローチャートに示した従来例の頻度優先
法と同一の処理を行い、第二のカラーマップ作成手段10
は第11図のフローチャートに示した従来例の距離優先法
と同一の処理を行う。表示装置14は画像メモリ2上の入
力画像を表示するかまたは、画像メモリ2上のインデッ
クス番号で表現された処理結果をカラーマップ11を介し
てRGBの値に変換して表示する。15,15,15は上記隣接関
係テーブル8,カラーマップ11及びカラー空間分割マップ
12を第一または第二のカラーマップ作成手段9,10のいず
れかに切換える切換えスイッチであり、初期状態におい
ては全てのスイッチ15が第一のカラーマップ作成手段9
側に接続されているかまたは全てのスイッチ15が第二の
カラーマップ作成手段10側に接続されている。但し、こ
のスイッチ15は機械的なものではなく、ソフトウェア的
あるいは電気的なものである。
FIG. 1 is an overall configuration diagram of a color image conversion apparatus according to an embodiment of the present invention. The image input device 1 writes a color image from a TV camera, a magnetic disk or the like into the image memory 2 as M-bit data for each of R, G and B components. The histogram creating means 3 corresponds to step 32 of the conventional example, and scans all or some of the pixels of the input image stored in the image memory 2 to display a histogram, that is, a color occurrence frequency distribution on the histogram counter group 4. create. Candidate color extraction means
5, the initial integration unit 6, the adjacency relation table creation unit 7, and the color image conversion unit 13 perform the same processes as Step 33, Step 34, Step 35, and Step 38 of the conventional example, respectively. The adjacency relationship table 8 is the adjacency relationship table creating means 7
The table in the format shown in Fig. 12 created by is stored. The color map 11 and the color space division map 12 correspond to FIGS. 13 and 14, respectively. That is, the color map 11 is a correspondence table of index numbers and representative colors represented by R, G, B components, and the color space division map 12 is a correspondence table of all colors in RGB space and index numbers of the color map 11. Is. The first color map creating means 9 performs the same processing as the conventional frequency priority method shown in the flowchart of FIG.
Performs the same processing as the conventional distance priority method shown in the flowchart of FIG. The display device 14 displays the input image on the image memory 2 or converts the processing result represented by the index number on the image memory 2 into RGB values via the color map 11 and displays the RGB values. 15,15,15 are the adjacency relation table 8, color map 11 and color space division map
12 is a changeover switch for changing over to either the first or second color map forming means 9 or 10, and in the initial state, all the switches 15 are the first color map forming means 9
Or all switches 15 are connected to the second color map creating means 10 side. However, the switch 15 is not mechanical but software or electrical.

第2図は、第1図の実施例のシステム構成図であり、第
1図と同一符号は同一または相当部分を示す。CPU21は
プログラム・ワーキングメモリ22に格納されている制御
プログラムに従ってヒストグラム作成、候補色抽出、初
期統合、隣接関係テーブルの作成、第一のカラーマップ
作成手段、第二のカラーマップ作成手段、カラー画像の
変換及び各種装置の制御を行う。
FIG. 2 is a system configuration diagram of the embodiment of FIG. 1, and the same reference numerals as those in FIG. 1 indicate the same or corresponding parts. The CPU 21 creates a histogram according to the control program stored in the program / working memory 22, extraction of candidate colors, initial integration, creation of an adjacency table, first color map creation means, second color map creation means, and color image creation. Converts and controls various devices.

第3図は本実施例のフローチャートであり、ステップ36
において第一のカラーマップ作成手段9によって代表色
の数を所定の数にまで減らしたのち、ステップ37におい
て第二のカラーマップ作成手段10によって更に代表色の
数を減らすことによりカラーマップ11及びカラー空間分
割マップ12を作成するようにしたものである。この場
合、第1図の全体構成図における各スイッチ15は、初期
状態において全て第一のカラーマップ作成手段9側に接
続されており、ステップ36の処理が終了すると同時に全
て第二のカラーマップ作成手段10側に接続されることに
なる。なお、第3図において、ステップ31〜35,38は従
来例(第9図)の同一符号ステップに相当している。ま
た、ステップ36及びステップ37はそれぞれ従来例の頻度
優先法(第10図)及び距離優先法(第11図)と同一処理
を行う。
FIG. 3 is a flow chart of this embodiment.
In step 37, the number of representative colors is reduced to a predetermined number by the first color map creating means 9, and then in step 37, the number of representative colors is further reduced by the second color map creating means 10 to obtain the color map 11 and the color. The space division map 12 is created. In this case, all the switches 15 in the overall configuration diagram of FIG. 1 are all connected to the first color map creating means 9 side in the initial state, and at the same time when the processing of step 36 is completed, all the second color map creating means is created. It will be connected to the means 10 side. Incidentally, in FIG. 3, steps 31 to 35, 38 correspond to the same reference numerals in the conventional example (FIG. 9). Further, steps 36 and 37 perform the same processing as the frequency priority method (FIG. 10) and the distance priority method (FIG. 11) of the conventional example, respectively.

第4図も本実施例のフローチャートであり、第二のカラ
ーマップ作成手段10によって代表色の数を所定の数にま
で減らしたのち、第一のカラーマップ作成手段9によっ
て更に代表色の数を減らすことによりカラーマップ11及
びカラー空間分割マップ12を作成するようにしたもので
ある。この場合、第1図の全体構成図における各スイッ
チ15は、初期状態において全て第二のカラーマップ作成
手段10側に接続されており、ステップ37の処理が終了す
ると同時に全て第一のカラーマップ作成手段9側に接続
されることになる。
FIG. 4 is also a flow chart of this embodiment. After the number of representative colors is reduced to a predetermined number by the second color map creating means 10, the number of representative colors is further reduced by the first color map creating means 9. By reducing the number, the color map 11 and the color space division map 12 are created. In this case, all the switches 15 in the overall configuration diagram of FIG. 1 are all connected to the second color map creating means 10 side in the initial state, and at the same time when the processing of step 37 is completed, all the first color map creating It will be connected to the means 9 side.

このような本実施例によれば、第一及び第二のカラーマ
ップ作成手段が縦続接続されるため、第一のカラーマッ
プ作成手段9では画像入力時の雑音等によって全く異っ
た色として入力されたため頻度が少ないにもかかわらず
候補色として抽出され、領域を形成している場合に該領
域を他の領域に統合し、第二のカラーマップ作成手段10
では本来画像平面上で一色で塗られている部分が、原稿
のむらやA/D変換の誤差等によって比較的色の似た2色
以上の色として入力され、それらの色を代表色とするよ
うな領域が形成されているような場合にそれらの領域を
統合することができる。そして、本実施例の第3図に示
した方式では、まず第一のカラーマップ作成手段9によ
って頻度の小さい領域がクラスタ化され、体積の大きい
領域を形成する。これは、自然情景画像のように、頻度
の小さい似かよった色が多数出現している場合に、これ
らの色が一つの領域を形成することを意味する。従っ
て、次に第二のカラーマップ作成手段10によって近接し
た色を減らす際に連鎖反応的な領域の統合を防ぐことが
できる。つまり、この方式は自然情景画像の処理に適し
ていると言える。一方、第4図の方式では、まず第二の
カラーマップ作成手段10によって近接した代表色を有す
る領域が統合されるため、色の分布がいくつかのかたま
りとなって存在し、それぞれのかたまりがRGB空間上で
分離しているような場合の処理に適している。このよう
な画像は彩度の高い数種類の色で描かれているイラスト
あるいは漫画に相当する。
According to this embodiment, since the first and second color map creating means are connected in cascade, the first color map creating means 9 inputs a completely different color due to noise at the time of image input. Therefore, the color is extracted as a candidate color even though the frequency is low, and when a region is formed, the region is integrated with another region, and the second color map creating means 10
Then, the part that was originally painted with one color on the image plane is input as two or more colors that are relatively similar in color due to unevenness in the document or errors in A / D conversion, and these colors are used as the representative colors. Such regions can be integrated when different regions are formed. Then, in the method shown in FIG. 3 of the present embodiment, first, the first color map creating means 9 clusters the regions of low frequency to form the regions of large volume. This means that when a large number of similar colors having a low frequency appear, such as a natural scene image, these colors form one region. Therefore, it is possible to prevent the chain-reactive regions from being integrated when the adjacent colors are reduced by the second color map creating means 10. In other words, this method is suitable for processing natural scene images. On the other hand, in the method of FIG. 4, first, the regions having the representative colors that are close to each other are integrated by the second color map creating means 10, so that the color distribution exists as several clusters, and each cluster is formed. It is suitable for processing in the case of separation in the RGB space. Such an image is equivalent to an illustration or a cartoon drawn in several highly saturated colors.

第5図は本発明の他の実施例の全体構成図である。同図
おいて1〜15は第1図の同一符号部と全く同じ構成とな
っている。スイッチ切換え手段16は第一または第二のカ
ラーマップ作成手段のいずれを使用するかという選択情
報と、代表色数とを対話的に入力するかまたは自動的に
生成し、選択した手段で指定した代表色数になるまで領
域の統合を行うことを指示する。ここで、上記切換えス
イッチ15及びスイッチ切換え手段16は本願の選択手段を
構成している。
FIG. 5 is an overall configuration diagram of another embodiment of the present invention. In the figure, 1 to 15 have exactly the same configuration as the same reference numerals in FIG. The switch switching unit 16 interactively inputs or automatically generates selection information indicating whether to use the first or second color map creating unit and the number of representative colors, and specifies by the selected unit. Instruct to perform area integration until the number of representative colors is reached. Here, the changeover switch 15 and the switch changeover means 16 constitute the selection means of the present application.

第6図は第5図の実施例のシステム構成図であり、第2
図のシステム構成図に対話的な入力装置としてキーボー
ド61が付加されている。
FIG. 6 is a system configuration diagram of the embodiment of FIG.
A keyboard 61 is added as an interactive input device to the system configuration diagram in the figure.

第7図は本実施例のフローチャートであり、ステップ31
〜35及び36〜38は本発明の第一の実施例のフローチャー
トである第3図及び第4図における同一符号部と同じ構
成となっている。従って、ステップ35において隣接関係
テーブル8が作成されるまでは本発明の第一の実施例と
全く同一の処理を行う。そして、本実施例ではその後ス
テップ71及びステップ72において第一または第二のカラ
ーマップ作成手段のいずれを使用するかという選択情報
と代表色数とを対話的に入力し、選択した手段であるス
テップ36またはステップ37を用いて前記代表色数になる
まで領域の統合を行う。そして、ステップ38で画像メモ
リ2上の入力画像の各画素のRGB成分データをカラー空
間分割マップ12を用いてカラーマップ11のインデックス
番号に変換し、そのインデックス番号を画像メモリ2に
書き込む。このときの変換画像は、カラーマップ11を介
してRGB成分の値に変換されて表示装置14に表示され
る。ステップ73では代表色数が所定の色数にまで減り、
全処理が終了したか否かを判定する。未終了の場合には
ステップ71からの処理を繰り返す。
FIG. 7 is a flow chart of this embodiment, step 31.
.About.35 and 36 to 38 have the same configurations as the same reference numerals in FIGS. 3 and 4 which are flowcharts of the first embodiment of the present invention. Therefore, the same processing as in the first embodiment of the present invention is performed until the adjacency relation table 8 is created in step 35. Then, in this embodiment, after that, in step 71 and step 72, the selection information indicating which of the first or second color map creating means to use and the number of representative colors are interactively input, and the step which is the selected means 36 or step 37 is used to integrate the regions until the number of representative colors is reached. Then, in step 38, the RGB component data of each pixel of the input image on the image memory 2 is converted into the index number of the color map 11 using the color space division map 12, and the index number is written in the image memory 2. The converted image at this time is converted into RGB component values via the color map 11 and displayed on the display device 14. In step 73, the number of representative colors is reduced to a predetermined number,
It is determined whether or not all the processing is completed. If not completed, the processing from step 71 is repeated.

以上説明したように本実施例によれば、処理結果を見な
がらそれに応じて対話的手段によってカラーマップ作成
手段を選択できるため、入力画像の性質や処理途中段階
での画像の状態に応じて適切な処理を行うことが可能と
なる。
As described above, according to the present embodiment, since the color map creating means can be selected by the interactive means while watching the processing result, it is appropriate depending on the nature of the input image and the state of the image in the middle of processing. It is possible to perform various processes.

なお、本実施例ではスイッチ切換え手段16として対話的
手段を用いているが、これは自動的に行うことも可能で
ある。第8図はスイッチ切換えを自動的に行う実施例の
フローチャートであり、ステップ31〜35,36〜38及び73
は第7図のフローチャートにおける同一符号部に相当す
る。ステップ81では最小頻度に対するしきい値Th及び最
小距離に対するしきい値Tdに初期値を与える。ステップ
82はスイッチ15の切換えであり、第1回目のループでは
スイッチ15の初期状態に対応した処理を行うように指示
し、第2回目以降のループではスイッチ15を反対側に切
換え、そしてスイッチ15の状態に対応した処理を行うよ
うに指示する。ステップ83及びステップ84はしきい値の
更新であり、それぞれのしきい値に対して増分△h(>
0)及び△d(>0)が加えられる。ステップ36は第一
のカラーマップ作成手段であり、最小頻度がThを越える
かまたは代表色数が最終的にカラーマップに登録すべき
色数に等しくなればステップ36の処理を終了する。ステ
ップ37は第二のカラーマップ作成手段であり、隣接領域
の代表色間の最小距離がTdを越えるかまたは代表色数が
最終的にカラーマップに登録すべき色数に等しくなれば
ステップ37の処理を終了する。
In the present embodiment, the interactive means is used as the switch switching means 16, but this can be done automatically. FIG. 8 is a flow chart of an embodiment in which the switches are automatically changed, and steps 31 to 35, 36 to 38 and 73
Corresponds to the same reference numeral in the flowchart of FIG. In step 81, initial values are given to the threshold value Th for the minimum frequency and the threshold value Td for the minimum distance. Step
Reference numeral 82 denotes switching of the switch 15. In the first loop, an instruction to perform processing corresponding to the initial state of the switch 15 is given. In the second and subsequent loops, the switch 15 is switched to the opposite side, and Instruct to perform processing corresponding to the state. Steps 83 and 84 are the updating of the threshold value, and the increment Δh (>
0) and Δd (> 0) are added. Step 36 is the first color map creating means, and if the minimum frequency exceeds Th or the number of representative colors finally becomes equal to the number of colors to be registered in the color map, the process of step 36 is ended. Step 37 is a second color map creating means, and if the minimum distance between the representative colors of the adjacent areas exceeds Td or the number of representative colors becomes equal to the number of colors to be finally registered in the color map, The process ends.

以上説明したように本実施例によれば、自動的に第一及
び第二のカラーマップ作成手段の選択を行うことが可能
になる。
As described above, according to this embodiment, it is possible to automatically select the first and second color map creating means.

〔発明の効果〕〔The invention's effect〕

この発明は以上説明したとおり、カラーマップ作成手段
として、頻度優先法にもとづく第一のカラーマップ作成
手段と距離優先法にもとづく第二のカラーマップ作成手
段とを備えたことにより、両方式の特長を生かして頻度
の小さい雑音的な色がカラーマップに登録されるのを防
ぐとともに、複数色の似かよった色がカラーマップに登
録されるのを防ぐ効果がある。
As described above, according to the present invention, as the color map creating means, the first color map creating means based on the frequency priority method and the second color map creating means based on the distance priority method are provided. This is effective in preventing a noise-like color having a low frequency from being registered in the color map, and preventing a similar color of a plurality of colors from being registered in the color map.

また、この発明の別発明は,上記のものに、第一,第二
のカラーマップ作成手段のいずれかを選択する選択手段
を備えたことにより、上記と同様の効果が得られるとと
もに、入力画像の種類に応じた適切な処理を行うことが
できるという効果がある。
Further, according to another invention of the present invention, by providing the above-mentioned one with a selecting means for selecting either the first or second color map creating means, the same effect as the above can be obtained, and the input image can be obtained. There is an effect that appropriate processing can be performed according to the type of.

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

第1図はこの発明の一実施例を示す全体構成図、第2図
は第1図の実施例のシステム構成図、第3図及び第4図
は第1図の実施例のフローチャート、第5図はこの発明
の他の実施例を示す全体構成図、第6図は第5図の実施
例のシステム構成図、第7図及び第8図は第5図の実施
例のフローチャート、第9図は従来例のフローチャー
ト、第10図及び第11図は従来例のカラーマップ作成手段
のフローチャート、第12図(a),(b)は隣接関係テ
ーブルの一構成例、第13図はカラーマップの構成図、第
14図はカラー空間分割マップの構成図である。 図において、1は画像入力装置、2は画像メモリ、3は
ヒストグラム作成手段、4はヒストグラム・カウンタ
群、5は候補色抽出手段、6は初期統合手段、7は隣接
関係テーブル作成手段、8は隣接関係テーブル、9は第
一のカラーマップ作成手段、10は第二のカラーマップ作
成手段、11はカラーマップ、12はカラー空間分割マッ
プ、13はカラー画像変換手段、14は表示装置、15は切換
えスイッチ、16は上記切換えスイッチ15とともに選択手
段を構成するスイッチ切換え手段、21はCPU、22はプロ
グラム・ワーキングメモリ、61はキーボードである。 なお、図中、同一符号は同一または相当部分を示す。
1 is an overall configuration diagram showing an embodiment of the present invention, FIG. 2 is a system configuration diagram of the embodiment of FIG. 1, FIGS. 3 and 4 are flow charts of the embodiment of FIG. 1, and FIG. FIG. 6 is an overall configuration diagram showing another embodiment of the present invention, FIG. 6 is a system configuration diagram of the embodiment of FIG. 5, FIGS. 7 and 8 are flowcharts of the embodiment of FIG. 5, and FIG. Is a flow chart of the conventional example, FIGS. 10 and 11 are flow charts of the color map creating means of the conventional example, FIGS. 12 (a) and 12 (b) are examples of the constitution of the adjacency relation table, and FIG. Configuration diagram, No.
Figure 14 is a block diagram of the color space division map. In the figure, 1 is an image input device, 2 is an image memory, 3 is a histogram creation means, 4 is a histogram counter group, 5 is a candidate color extraction means, 6 is an initial integration means, 7 is an adjacency relation table creation means, and 8 is Adjacency table, 9 first color map creating means, 10 second color map creating means, 11 color map, 12 color space division map, 13 color image converting means, 14 display device, 15 A changeover switch, 16 is a switch changeover means which constitutes a selecting means together with the changeover switch 15, 21 is a CPU, 22 is a program working memory, and 61 is a keyboard. In the drawings, the same reference numerals indicate the same or corresponding parts.

───────────────────────────────────────────────────── フロントページの続き (51)Int.Cl.6 識別記号 庁内整理番号 FI 技術表示箇所 G09G 5/06 8121−5G (72)発明者 富田 悟 兵庫県尼崎市塚口本町8丁目1番1号 三 菱電機株式会社応用機器研究所内 (56)参考文献 昭和60年度電子通信学会総合全国大会, 1173「カラーマップ作成に関する一考察」 昭和60年3月5日、論文集発行─────────────────────────────────────────────────── ─── Continuation of the front page (51) Int.Cl. 6 Identification code Internal reference number FI Technical display location G09G 5/06 8121-5G (72) Inventor Satoru Tomita 8-1-1 Tsukaguchihonmachi, Amagasaki City, Hyogo Prefecture Issue Sanryo Denki Co., Ltd. Applied Equipment Research Laboratory (56) References 1985 IEICE General Conference, 1173 "A Study on Colormap Creation" Published March 5, 1985

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】カラー画像入力装置1と、カラー画像メモ
リ2と、ヒストグラム作成手段3及びヒストグラムカウ
ンタ群4と、候補色抽出手段5と、初期統合手段6と、
各領域の内、色の生起頻度が最小の領域を抽出し、該最
小頻度領域をカラー空間上で隣接する他の領域と統合す
るとともに、統合された領域を一色で表現することを繰
り返すことにより領域数を所定の色数にまで減らし、そ
の結果生成された各領域を代表する色をインデックス番
号が付されたカラーマップ11に登録するとともに、前記
入力画像に出現可能な全色とカラーマップのインデック
ス番号との対応関係をカラー空間分割マップ12に作成す
る第一のカラーマップ作成手段9と、カラー空間上で隣
接している領域の内、代表色間の距離が最も小さい領域
対を統合するとともに、統合された領域を一色で表現す
ることを繰り返すことにより領域数を所定の色数にまで
減らし、その結果生成された各領域を代表する色をカラ
ーマップ11に登録するとともに、前記入力画像に出現可
能な全色とカラーマップのインデックス番号との対応関
係をカラー空間分割マップ12に作成する第二のカラーマ
ップ作成手段10と、前記入力画像の各画素を前記カラー
空間分割マップに従ってカラーマップのインデックス番
号に変換して画像メモリに記憶させるカラー画像変換手
段13と、隣接関係テーブル作成手段7と、隣接関係テー
ブル8と、表示装置14と、前記隣接関係テーブル8、カ
ラーマップ11及びカラー空間分割マップ12を前記第一又
は第二のカラーマップ作成手段9,10のいずれかに切換え
る一連の切換えスイッチ15を備えたカラー画像変換装置
において、1つのカラー画像を初期入力し、前記初期統
合手段6による処理が終了した後に、第一又は第二のカ
ラーマップ作成手段9による処理をあらかじめ定めた閾
(しきい)値により所定の色数になるまで続行し、更に
切換えて第二又は第一のカラーマップ作成手段10により
色数を削減してカラーマップ及びカラー空間分割マップ
とを作成することを特徴とするカラー画像変換装置。
1. A color image input device 1, a color image memory 2, a histogram creating means 3 and a histogram counter group 4, a candidate color extracting means 5, an initial integrating means 6,
By extracting an area having the smallest occurrence frequency of color from each area, integrating the area having the smallest frequency with other areas adjacent in the color space, and repeating the expression of the integrated area in one color The number of areas is reduced to a predetermined number of colors, and the colors representing the respective areas generated as a result are registered in the color map 11 with index numbers, and all colors and color maps that can appear in the input image are displayed. The first color map creating means 9 for creating the correspondence with the index number in the color space division map 12 and the area pair having the smallest distance between the representative colors among the areas adjacent in the color space are integrated. At the same time, the number of regions is reduced to a predetermined number of colors by repeatedly expressing the integrated region with one color, and the colors representing the respective regions generated as a result are registered in the color map 11. Together with a second color map creating means 10 for creating a correspondence relationship between all colors that can appear in the input image and index numbers of the color map in the color space division map 12, and each pixel of the input image is in the color space. A color image conversion means 13 for converting into an index number of a color map according to a division map and storing it in an image memory, an adjacency relation table creating means 7, an adjacency relation table 8, a display device 14, the adjacency relation table 8, color In a color image conversion apparatus equipped with a series of changeover switches 15 for changing the map 11 and the color space division map 12 to either the first or second color map creating means 9 or 10, one color image is initially input. After the processing by the initial integration means 6 is completed, the processing by the first or second color map creation means 9 can be summarized. The process continues until the number of colors reaches a predetermined value according to the defined threshold value, and the number of colors is reduced by the second or first color map creating means 10 to create a color map and a color space division map. A color image conversion device characterized by:
【請求項2】カラー画像入力装置1と、カラー画像メモ
リ2と、ヒストグラム作成手段3及びヒストグラムカウ
ンタ群4と、候補色抽出手段5と、初期統合手段6と、
各領域の内、色の生起頻度が最小の領域を抽出し、該最
小頻度領域をカラー空間上で隣接する他の領域と統合す
るとともに統合された領域を一色で表現することを繰り
返すことにより領域数を所定の色数にまで減らし、その
結果生成された各領域を代表する色をインデックス番号
が付されたカラーマップ11に登録するとともに、前記入
力画像に出現可能な全色とカラーマップのインデックス
番号との対応関係をカラー空間分割マップ12に作成する
第一のカラーマップ作成手段9と、カラー空間上で隣接
している領域の内、代表色間の距離が最も小さい領域対
を統合するとともに、統合された領域を一色で表現する
ことを繰り返すことにより領域数を所定の色数にまで減
らし、その結果生成された各領域を代表する色をカラー
マップ11に登録するとともに、前記入力画像に出現可能
な全色とカラーマップのインデックス番号との対応関係
をカラー空間分割マップ12に作成する第二のカラーマッ
プ作成手段10と、前記入力画像の各画素を前記カラー空
間分割マップ12に従ってカラーマップのインデックス番
号に変換して画像メモリ2に記憶させるカラー画像変換
手段13と、隣接関係テーブル作成手段7と、隣接関係テ
ーブル8と、表示装置14と、前記隣接関係テーブル8、
カラーマップ11及びカラー空間分割マップ12を前記第一
又は第二のカラーマップ作成手段9,10のいずれかに切換
える一連の切換えスイッチ15とを備えたカラー画像変換
装置において、1つのカラー画像を初期入力し、前記初
期統合手段6による処理が終了した後に、第一のカラー
マップ作成手段9と第二のカラーマップ作成手段10とを
対話的に切換えることにより色数を削減してカラーマッ
プ及びカラー空間分割マップとを作成することを特徴と
するカラー画像変換装置。
2. A color image input device 1, a color image memory 2, a histogram creating means 3 and a histogram counter group 4, a candidate color extracting means 5, an initial integrating means 6,
A region is extracted by extracting a region having the smallest occurrence frequency of color from each region, integrating the region having the smallest frequency with other adjacent regions in the color space, and expressing the integrated region in one color. The number of colors is reduced to a predetermined number, and the colors representing the respective regions generated as a result are registered in the color map 11 to which index numbers are added, and all colors that can appear in the input image and the index of the color map. The first color map creating means 9 for creating the correspondence with numbers in the color space division map 12 and the area pair having the smallest distance between the representative colors among the areas adjacent to each other in the color space are integrated. , The number of areas is reduced to a predetermined number of colors by repeatedly expressing the integrated area with one color, and the colors representing the respective areas generated as a result are registered in the color map 11. Both, second color map creating means 10 for creating a correspondence relationship between all colors that can appear in the input image and index numbers of the color map in the color space division map 12, and each pixel of the input image in the color space. A color image conversion means 13 for converting into an index number of a color map according to the division map 12 and storing it in the image memory 2, an adjacency relation table creating means 7, an adjacency relation table 8, a display device 14, and the adjacency relation table 8 ,
In a color image conversion device provided with a series of changeover switches 15 for changing over the color map 11 and the color space division map 12 to either of the first or second color map creating means 9 and 10, one color image is initialized. After the input and the processing by the initial integration means 6 are completed, the number of colors is reduced by interactively switching between the first color map creation means 9 and the second color map creation means 10 to reduce the color map and color. A color image conversion device characterized by creating a space division map.
JP60224471A 1985-10-08 1985-10-08 Color image converter Expired - Fee Related JPH079671B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP60224471A JPH079671B2 (en) 1985-10-08 1985-10-08 Color image converter

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP60224471A JPH079671B2 (en) 1985-10-08 1985-10-08 Color image converter

Publications (2)

Publication Number Publication Date
JPS6284386A JPS6284386A (en) 1987-04-17
JPH079671B2 true JPH079671B2 (en) 1995-02-01

Family

ID=16814314

Family Applications (1)

Application Number Title Priority Date Filing Date
JP60224471A Expired - Fee Related JPH079671B2 (en) 1985-10-08 1985-10-08 Color image converter

Country Status (1)

Country Link
JP (1) JPH079671B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2743999B2 (en) * 1987-12-28 1998-04-28 株式会社東芝 Image quantization apparatus and method

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
昭和60年度電子通信学会総合全国大会,1173「カラーマップ作成に関する一考察」昭和60年3月5日、論文集発行

Also Published As

Publication number Publication date
JPS6284386A (en) 1987-04-17

Similar Documents

Publication Publication Date Title
EP0183564B1 (en) Image forming apparatus
US11030715B2 (en) Image processing method and apparatus
US5491769A (en) Method and apparatus for variable minification of an image
EP0362677A2 (en) Method of and apparatus for producing cutout mask data
US20080129648A1 (en) Video Display Apparatus
JPH05241550A (en) Color picture converting method
US7554563B2 (en) Video display control apparatus and video display control method
CN112118449B (en) A method and device for image compression and decompression
US20050196056A1 (en) Image coding and decoding method
CN107318023A (en) Image frame compression method and device
JPH02205984A (en) Image processing device
CN111724303B (en) Super-resolution image processing method and system with image type adaptability
CN105468312B (en) Image display method and device
JPH07334648A (en) Image processing method and apparatus thereof
JPH02205982A (en) Picture processor
CN113409436A (en) Volume rendering method for diamond pixel arrangement
CN115511909B (en) Image segmentation method and device
JPH1141625A (en) Color video data compression method
JPS6284386A (en) Color picture converter
JP2810585B2 (en) Image encoding method and image decoding method
US11676334B2 (en) Method and apparatus for plenoptic point clouds generation
JP2987169B2 (en) How to make a cutout mask
JP3304381B2 (en) Image processing device having contour extraction function
JPS6232569A (en) Color picture device
JP2787830B2 (en) Image processing apparatus and method

Legal Events

Date Code Title Description
LAPS Cancellation because of no payment of annual fees