JPH08202327A - Image processor - Google Patents

Image processor

Info

Publication number
JPH08202327A
JPH08202327A JP7008364A JP836495A JPH08202327A JP H08202327 A JPH08202327 A JP H08202327A JP 7008364 A JP7008364 A JP 7008364A JP 836495 A JP836495 A JP 836495A JP H08202327 A JPH08202327 A JP H08202327A
Authority
JP
Japan
Prior art keywords
color
frequency
appearance
histogram
colors
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP7008364A
Other languages
Japanese (ja)
Inventor
Toshikazu Sekiguchi
敏和 関口
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Fujifilm Business Innovation Corp
Original Assignee
Fuji Xerox Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Fuji Xerox Co Ltd filed Critical Fuji Xerox Co Ltd
Priority to JP7008364A priority Critical patent/JPH08202327A/en
Publication of JPH08202327A publication Critical patent/JPH08202327A/en
Pending legal-status Critical Current

Links

Landscapes

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

Abstract

PURPOSE: To assign the number of colors to pallet of respective partial color spaces appropriately even in the case a color whose appearance frequency is dominated in a partial color space is present in an image processor forming pallets based on the image data of a color original image. CONSTITUTION: In a frequency modifying means 13, frequencies of respective color included in respective partial color space histograms are inspected and in the case frequencies are larger than the average appearance frequency of all appearance colors, the frequencies are modified on the basis of the average appearance frequency. In the number of pallet registered color determining means 14, the number of colors assigned to pallet of respective partial color spaces is determined based on modified partial color space histograms. In a pallet registering means 15, registration to pallets is performed successively in the order of a color having higher frequency of appearance every partial color space histogram according to the number of determined assignment colors.

Description

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

【0001】[0001]

【産業上の利用分野】この発明は、ディスプレイやプリ
ンタ等の画像出力装置に対して、フルカラー元画像の色
情報を限定色化して出力する際に用いられるパレットに
関し、詳しくはイメージスキャナ等で読み込んだカラー
元画像(以下、元画像ともいう)の画素データに基づい
てパレットを作成する画像処理装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a pallet used for outputting color information of a full-color original image in a limited color to an image output device such as a display or a printer. The present invention relates to an image processing apparatus that creates a palette based on pixel data of a color original image (hereinafter, also referred to as an original image).

【0002】[0002]

【従来の技術】近年、ディスプレイやプリンタ等の画像
出力装置においては、フルカラー表示が一般的となりつ
つある。フルカラー表示を行う場合、一画素を24ビッ
トで表現すると、同時に約1670万色の表示が可能と
なるが、データ量は膨大なものとなる。そこで、一画素
を8ビットで表現することにより、同時に使用できる色
数を256色とし、この256色の色情報をパレットに
登録して画像出力を行うことが多い。ただし、パレット
には約1670万色から256色を選択して登録するこ
とになるので、画質の劣化を感じさせないように色を選
択しなければならない。
2. Description of the Related Art In recent years, full-color display is becoming common in image output devices such as displays and printers. When performing full-color display, if one pixel is represented by 24 bits, it is possible to display approximately 16.7 million colors at the same time, but the amount of data becomes enormous. Therefore, by expressing one pixel by 8 bits, the number of colors that can be used at the same time is set to 256 colors, and color information of these 256 colors is registered in a palette and an image is often output. However, since about 16.7 million colors and 256 colors are selected and registered in the palette, it is necessary to select the colors so that the deterioration of the image quality is not felt.

【0003】一般的なパレットの作成方法としては、カ
ラー元画像から元画像内の出現色とその頻度を調べ、頻
度の高い出現色から順にパレットに登録する方法があ
る。しかし、この方法では、微妙に変化する同系色が存
在する場合や、走査時のノイズ等によりバラツキが発生
した色がある場合には、その色の頻度が分散するため、
必要な色がパレットに登録されなくなるという問題点が
あった。以下、この従来方法によるパレット作成の問題
点について説明する。
As a general method of creating a palette, there is a method of examining the appearance color and its frequency in the original image from the color original image, and registering in the palette in order from the appearance color with the highest frequency. However, in this method, if there is a similar color that changes subtly, or if there is a color that varies due to noise during scanning, etc., the frequency of that color is dispersed,
There was a problem that the necessary colors would not be registered in the palette. The problems of pallet creation by this conventional method will be described below.

【0004】図13は、カラー元画像の全画素を走査し
て得られた全出現色ヒストグラムの一例を示したもの
で、横軸は出現色、縦軸はその出現頻度をそれぞれ表し
ている。なお、説明を簡単にするため、ここではパレッ
トに4色が登録されるものとする。
FIG. 13 shows an example of all appearance color histograms obtained by scanning all pixels of a color original image, where the horizontal axis represents the appearance color and the vertical axis represents the appearance frequency. It should be noted that four colors are registered in the palette here for the sake of simplicity.

【0005】通常であれば、図13に示すようにR、
G、B、Yの4色が限定色としてパレットに登録される
ことになる。しかし、図14で示すようにB色の頻度が
ノイズ等によりb1、b2、b3というように分散して
しまうと、B色に代わってP色が頻度の上位にくるた
め、パレットには限定色R、G、B、Pが登録されてし
まうため、出力結果の色合い等に違和感を生じることと
なる。このような不具合は同系色の色が分散している場
合にも発生する。
Normally, as shown in FIG. 13, R,
The four colors of G, B, and Y will be registered in the palette as limited colors. However, as shown in FIG. 14, when the frequency of B color is dispersed to b1, b2, b3 due to noise or the like, P color becomes higher in frequency instead of B color, so that the palette has limited colors. Since R, G, B, and P are registered, the color tone of the output result will be uncomfortable. Such a problem also occurs when similar colors are dispersed.

【0006】これに対して特開平4−257984号公
報には、全色空間を幾つかの部分色空間に分け、各部分
色空間の出現頻度の合計の比率によりパレットに割り当
てる部分色空間の色数を決め、各部分色空間内の色の頻
度の上位のものから順に、決められた色数分だけ色を割
当ててパレットを作成し、このパレットを用いることに
より元画像に近い色合いの出力結果が得られるようにし
た画像出力装置が提案されている。
On the other hand, in Japanese Unexamined Patent Publication No. Hei 4-257984, the color of the partial color space is divided into several partial color spaces, and the partial color space is assigned to a palette according to the total ratio of the appearance frequencies of the partial color spaces. The number of colors is determined, the palette is created by allocating as many colors as the determined number of colors in order from the highest frequency of colors in each partial color space, and by using this palette, the output result of the hue close to the original image is obtained. There has been proposed an image output device capable of obtaining the following.

【0007】[0007]

【発明が解決しようとする課題】しかしながら、この画
像出力装置では、元画像内に出現頻度が突出した色が存
在すると、その色の属する部分色空間に必要以上の限定
色が割当てられるため、元画像とは異なる出力結果とな
る問題点があった。以下、この問題点について詳細に説
明する。
However, in this image output apparatus, if there is a color having a prominent appearance frequency in the original image, the limited color more than necessary is assigned to the partial color space to which the color belongs. There was a problem that the output result was different from the image. Hereinafter, this problem will be described in detail.

【0008】今、カラー元画像から図15に示すような
全出現色ヒストグラムが得られたものとする。なお、説
明を簡単にするため、ここではパレットに10色が登録
され、部分色空間は4つ形成されるものとする。
Now, assume that an all appearance color histogram as shown in FIG. 15 has been obtained from the color original image. To simplify the description, it is assumed here that 10 colors are registered in the palette and 4 partial color spaces are formed.

【0009】さて、図15の全出現色ヒストグラムを色
空間に均等分割すると、図16に示すように、R部分色
空間、G部分色空間、B部分色空間、Y部分色空間の部
分色空間ヒストグラムが得られる。そして、図17に示
すように、頻度の総合計に占める各部分色空間ヒストグ
ラムの出現頻度計(以下、頻度計という)の比率を算出
し、さらに得られた比率から、パレットに登録できる各
部分色空間の割当て色数を決定する。ここでは、限定色
数が10であり、各部分色空間の割当て色数はR…3、
G…2、B…2、Y…1となる。この割当て色数に基づ
いて図15の全出現色ヒストグラムを色分けすると図1
8のようになる。
Now, if the all appearance color histogram of FIG. 15 is equally divided into color spaces, as shown in FIG. 16, partial color spaces of R partial color space, G partial color space, B partial color space and Y partial color space are obtained. A histogram is obtained. Then, as shown in FIG. 17, the ratio of the appearance frequency meter (hereinafter, referred to as frequency meter) of each partial color space histogram to the total frequency is calculated, and from the obtained ratio, each part that can be registered in the palette is calculated. Determine the number of colors assigned to the color space. Here, the limited number of colors is 10, and the number of assigned colors of each partial color space is R ... 3,
G ... 2, B ... 2, Y ... 1. If all the appearance color histograms of FIG. 15 are color-coded based on the assigned number of colors, FIG.
It becomes like 8.

【0010】ところで、図16のBの部分色空間ヒスト
グラムの中には、頻度の突出したb1色(頻度12)が
存在しているため、このb1色のためにB部分色空間の
割当て色数が増え、B部分色空間からはb2色も選ばれ
ている。この結果、図18に示すように頻度の少ないb
2色がパレットに登録され、本来選ばれるべきy2色が
登録からはずされてしまうことになる。
By the way, in the partial color space histogram of B of FIG. 16, there is a b1 color (frequency of 12) having a prominent frequency. Therefore, the assigned number of colors of the B partial color space for this b1 color. And the b2 color is also selected from the B partial color space. As a result, as shown in FIG.
The two colors are registered in the palette, and the y2 color that should be originally selected is removed from the registration.

【0011】このように従来のパレット作成方法では、
頻度の突出した色が存在すると、その色の影響でパレッ
トへの割当て色数の配分が不適切なものとなり、結果的
にカラー元画像に対して色合い等に違和感のある出力結
果が得られることになる。
As described above, according to the conventional palette creating method,
If there is a color with an extremely high frequency, the allocation of the number of colors to be assigned to the palette will be improper due to the influence of that color, and as a result, an output result with a discomfort in the hue etc. with respect to the original color image can be obtained. become.

【0012】この発明は、頻度が突出した色が存在する
ような場合でも、部分色空間毎のパレットへの割当て色
数を適切に配分することができる画像処理装置を提供す
ることを目的とする。
SUMMARY OF THE INVENTION It is an object of the present invention to provide an image processing apparatus capable of appropriately distributing the number of colors to be assigned to a palette for each partial color space even when there is a color whose frequency is outstanding. .

【0013】[0013]

【課題を解決するための手段】上記課題を解決するた
め、この発明に係わる画像処理装置は、カラー元画像の
画素データを元にして、全出現色ヒストグラムを作成す
る全出現色ヒストグラム作成手段と、前記全出現色ヒス
トグラム作成手段で作成された全出現色ヒストグラムを
元にして、色空間を均等分割した部分色空間毎の部分色
空間ヒストグラムを作成する部分色空間ヒストグラム作
成手段と、前記全出現色ヒストグラム作成手段で作成さ
れた全出現色ヒストグラムを元にして、全出現色の平均
出現頻度を求めるとともに、前記各部分色空間ヒストグ
ラムに含まれる各色の頻度が前記平均出現頻度以上の色
については、その頻度を前記平均出現頻度に修正して、
各部分色空間ヒストグラム毎の修正部分色空間ヒストグ
ラムを作成する頻度修正手段と、前記頻度補正手段で作
成された修正部分色空間ヒストグラムから各部分色空間
内の色の頻度計を求め、この頻度計を元にして、各部分
色空間内の出現色の頻度の比率を求めるとともに、この
比率を元に各部分色空間毎のパレットへの割当て色数を
決定するパレット登録色数決定手段と、前記パレット登
録色数決定手段で決定された割当て色数に従って、前記
各部分色空間ヒストグラム毎に頻度の上位の色から順に
パレットへの登録を行うパレット登録手段とを具備する
ことを特徴とする。
In order to solve the above problems, an image processing apparatus according to the present invention comprises an all appearance color histogram creating means for creating an all appearance color histogram based on pixel data of a color original image. A partial color space histogram creating means for creating a partial color space histogram for each partial color space obtained by equally dividing a color space based on the all appearance color histogram created by the all appearance color histogram creating means; Based on the all appearance color histogram created by the color histogram creating means, the average appearance frequency of all appearance colors is obtained, and the frequency of each color included in each partial color space histogram is equal to or more than the average appearance frequency. , Modify the frequency to the average appearance frequency,
Frequency correction means for creating a modified partial color space histogram for each partial color space histogram, and a frequency meter for the colors in each partial color space is obtained from the modified partial color space histogram created by the frequency correction means, and this frequency meter And a palette registration color number determining means for determining the ratio of the frequency of appearance colors in each partial color space, and determining the number of colors assigned to the palette for each partial color space based on this ratio, According to the number of assigned colors determined by the palette registration color number determining means, there is provided palette registration means for performing registration in the palette in order from the color having the highest frequency for each of the partial color space histograms.

【0014】[0014]

【作用】上述した画像処理装置によると、頻度修正手段
では各部分色空間ヒストグラムに含まれる各色の頻度が
検査され、頻度が全出現色の平均出現頻度以上である場
合には、その頻度が平均出現頻度を元に修正される。そ
して、パレット登録色数決定手段では、修正された部分
色空間ヒストグラムに基づいて部分色空間毎のパレット
への割当て色数が決定されることになる。
According to the above-mentioned image processing apparatus, the frequency correction means inspects the frequency of each color included in each partial color space histogram, and if the frequency is equal to or higher than the average appearance frequency of all appearance colors, the frequency is averaged. It is modified based on the appearance frequency. Then, the palette registration color number determining means determines the number of colors to be assigned to the palette for each partial color space based on the corrected partial color space histogram.

【0015】したがって、特定の部分色空間において頻
度が突出した色が存在するような場合でも、割当て色数
の決定に際しては、必要以上にその部分色空間の色のパ
レットへの割当てが行われることがなくなるため、元画
像に対して色合い等に違和感の少ない出力結果を得るこ
とができる。
Therefore, even when there is a color having a prominent frequency in a specific partial color space, the colors in the partial color space are allocated more than necessary to the palette when determining the number of colors to be allocated. Therefore, it is possible to obtain an output result in which there is little discomfort in the hue and the like with respect to the original image.

【0016】[0016]

【実施例】以下、この発明に係わる画像処理装置の一実
施例を図面を参照しながら説明する。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS An embodiment of an image processing apparatus according to the present invention will be described below with reference to the drawings.

【0017】図1のブロック図は、本実施例における画
像処理装置の機能的な構成を示している。この画像処理
装置10は、全出現色ヒストグラム作成手段11と、部
分空間ヒストグラム作成手段12と、頻度修正手段13
と、パレット登録色数決定手段14と、パレット登録手
段15とから構成されている。
The block diagram of FIG. 1 shows the functional configuration of the image processing apparatus in this embodiment. The image processing apparatus 10 includes an all appearance color histogram creating unit 11, a subspace histogram creating unit 12, and a frequency correcting unit 13.
And a palette registration color number determining means 14 and a palette registration means 15.

【0018】全出現色ヒストグラム作成手段11は、図
示せぬイメージ入力手段を具え、このイメージ入力手段
でカラー元画像を走査して全画素の画素データを入力す
るとともに、当該画素データを元にして全出現色ヒスト
グラムを作成する。
The all appearance color histogram creating means 11 comprises an image input means (not shown). The image input means scans the color original image to input the pixel data of all pixels, and based on the pixel data. Create a histogram of all appearance colors.

【0019】部分色空間ヒストグラム作成手段12は、
前記全出現色ヒストグラム作成手段11で作成された全
出現色ヒストグラムを元にして、色空間を均等分割した
部分色空間毎の部分色空間ヒストグラムを作成する。
The partial color space histogram creating means 12 is
Based on the all-appearance color histogram created by the all-appearance color histogram creating means 11, a partial color space histogram is created for each partial color space, which is obtained by equally dividing the color space.

【0020】頻度修正手段13は、前記全出現色ヒスト
グラム作成手段11で作成された全出現色ヒストグラム
を元にして、全出現色の平均出現頻度を元に修正頻度R
を求める。そして、前記各部分色空間ヒストグラムに含
まれる各色の頻度を順に検査し、その頻度が前記修正頻
度Rを越えるときは、その色の頻度を前記修正頻度Rに
修正する。このような修正を施すことにより、各部分色
空間ヒストグラム毎の修正部分色空間ヒストグラムが作
成される。
The frequency correction means 13 is based on the all-appearance color histogram created by the all-appearance color histogram creating means 11 and based on the average appearance frequency of all the appearance colors, the modification frequency R.
Ask for. Then, the frequency of each color included in each of the partial color space histograms is inspected in order, and when the frequency exceeds the correction frequency R, the frequency of the color is corrected to the correction frequency R. By making such a correction, a corrected partial color space histogram is created for each partial color space histogram.

【0021】パレット登録色数決定手段14は、前記頻
度修正手段13で作成された修正部分色空間ヒストグラ
ムから各部分色空間内の色の頻度計を求める。そして、
この頻度計を元にして、各部分色空間内の出現色の頻度
の比率を求め、この比率を元に各部分色空間毎のパレッ
トへの割当て色数を決定する。
The palette registration color number determination means 14 obtains a color frequency meter for each partial color space from the corrected partial color space histogram created by the frequency correction means 13. And
Based on this frequency meter, the ratio of the frequency of appearance colors in each partial color space is obtained, and the number of colors assigned to the palette for each partial color space is determined based on this ratio.

【0022】パレット登録手段15は、前記パレット登
録色数決定手段14で決定された割当て色数に従って、
前記各部分色空間ヒストグラム毎に頻度の上位の色から
順にパレットへの登録を行う。
The palette registration means 15 determines the number of assigned colors determined by the palette registration color number determination means 14 according to
For each of the partial color space histograms, registration is performed in the palette in order from the color with the highest frequency.

【0023】上述した画像処理装置10は、例えばワー
クステーションやパソコンなどのカラーディスプレイを
具えたコンピュータシステムや、カラープリントが可能
なプリンタ装置などに適用される。
The image processing apparatus 10 described above is applied to, for example, a computer system having a color display such as a workstation or a personal computer, a printer apparatus capable of color printing, and the like.

【0024】図2は、図1に示した画像処理措置10を
実現するための具体例を示したもので、例えば画像処理
機能を有するワークステーションのハードウェア構成を
示している。
FIG. 2 shows a concrete example for realizing the image processing means 10 shown in FIG. 1, and shows, for example, the hardware configuration of a workstation having an image processing function.

【0025】ディスプレイ21は、CRTからなるカラ
ー表示装置であり、画面上に各種文書のほか、図形や表
などの画像イメージを表示する。ディスプレイ21での
表示は表示制御部22により制御されている。
The display 21 is a color display device composed of a CRT and displays various documents as well as image images such as figures and tables on the screen. The display on the display 21 is controlled by the display control unit 22.

【0026】キーボード23は、コマンドや文字列など
のデータ入力用の入力装置であり、マウス24から入力
された選択指示内容は、キーボード/マウス制御部25
を通じて後述のプロセッサ部30に送られる。
The keyboard 23 is an input device for inputting data such as commands and character strings. The contents of the selection instruction input from the mouse 24 are the keyboard / mouse control unit 25.
Through a processor unit 30 described later.

【0027】ハードディスク26は、磁気ディスクなど
の二次記憶装置で構成され、各種データをファイル形式
で格納している。
The hard disk 26 is composed of a secondary storage device such as a magnetic disk, and stores various data in a file format.

【0028】実メモリ27は、RAMなどのメモリ装置
で構成されるバッファ記憶であり、各種プログラムのほ
か、キーボード23およびマウス24から入力された各
種のデータや命令などを一時的に記憶する。
The real memory 27 is a buffer memory composed of a memory device such as a RAM, and temporarily stores various programs and various data and commands input from the keyboard 23 and the mouse 24 in addition to various programs.

【0029】画素データ記憶メモリ28は、ディスプレ
イ21へ表示される画素データが書き込まれるビットマ
ップメモリであり、後述のイメージスキャナ29で読み
とられたカラー元画像の画素データが蓄積される。
The pixel data storage memory 28 is a bit map memory in which pixel data to be displayed on the display 21 is written, and pixel data of a color original image read by an image scanner 29 described later is accumulated.

【0030】イメージスキャナ29は、対象となるカラ
ー元画像を走査して画素データに変換するイメージ入力
手段である。
The image scanner 29 is an image input means for scanning a target color original image and converting it into pixel data.

【0031】プロセッサ部30は、CPUおよびその周
辺回路により構成される中央処理装置であり、制御プロ
グラムに従って上記各部の動作を制御/管理する。この
プロセッサ部30は、所定の制御プログラムにより図1
の全出現色ヒストグラム作成手段11、部分空間ヒスト
グラム作成手段12、頻度修正手段13、パレット登録
色数決定手段14、パレット登録手段15の機能を実現
している。
The processor section 30 is a central processing unit composed of a CPU and its peripheral circuits, and controls / manages the operations of the above sections in accordance with a control program. This processor unit 30 is configured as shown in FIG.
The functions of the all appearance color histogram creating means 11, the partial space histogram creating means 12, the frequency correcting means 13, the palette registration color number determining means 14, and the palette registration means 15 are realized.

【0032】次に、上述した画像処理装置10における
パレット作成処理の概要を図3のフローチャート、およ
び図4〜図7の具体例を参照しながら説明する。
Next, an outline of the palette creation processing in the image processing apparatus 10 described above will be described with reference to the flowchart of FIG. 3 and the specific examples of FIGS.

【0033】まず、全出現色ヒストグラム作成手段11
において、カラー元画像の全画素を走査するとともに、
その画素データを元にして、全出現色ヒストグラムを作
成する(ステップ101)。部分色空間ヒストグラム作
成手段12では、前記全出現色ヒストグラム作成手段1
1で作成された全出現色ヒストグラムを元にして、色空
間を均等分割した部分色空間毎の部分色空間ヒストグラ
ムを作成する(ステップ102)。
First, all appearance color histogram creating means 11
At, while scanning all pixels of the color original image,
Based on the pixel data, an all appearance color histogram is created (step 101). In the partial color space histogram creating means 12, the all appearance color histogram creating means 1 is
A partial color space histogram for each partial color space obtained by equally dividing the color space is created based on the all appearance color histogram created in step 1 (step 102).

【0034】以上は、先に説明した図15の全出現色ヒ
ストグラムについて部分色空間ヒストグラムを作成し、
図4に示すようなR、G、B、Yの各部分色空間毎の部
分色空間ヒストグラムが得られることに相当する。
As described above, a partial color space histogram is created for the all appearance color histogram shown in FIG.
This is equivalent to obtaining a partial color space histogram for each partial color space of R, G, B, and Y as shown in FIG.

【0035】頻度修正手段13では、前記全出現色ヒス
トグラム作成手段11で作成された全出現色ヒストグラ
ムを元にして、全出現色の平均出現頻度を求め、修正頻
度Rを求めるとともに、前記各部分色空間ヒストグラム
に含まれる各色の頻度を順に検査する。そして、その頻
度が前記修正頻度R以上であるときは、その色の頻度を
前記修正頻度Rに修正し、修正部分色空間ヒストグラム
を作成する(ステップ103)。
In the frequency correction means 13, the average appearance frequency of all the appearance colors is obtained based on the all appearance color histogram created by the all appearance color histogram creation means 11, and the correction frequency R is obtained, and at the same time, each part The frequency of each color included in the color space histogram is sequentially checked. Then, when the frequency is equal to or higher than the correction frequency R, the frequency of the color is corrected to the correction frequency R to create a corrected partial color space histogram (step 103).

【0036】ここで、図4に示す部分色空間ヒストグラ
ムにおける修正頻度Rは、 修正頻度R=(出現頻度の総合計)÷(全部分色空間の
頻度計の和) =61÷(5+4+4+3) =61÷16 =3.81 ∴R=4となる したがって、図4では頻度4より大きいr1色、r2
色、g1色、g2色、b1色が修正の対象となる。そし
て、これらの色の頻度を平均出現頻度4で修正すること
により、図5に示すような修正部分色空間ヒストグラム
が得られる。図5の修正部分色空間ヒストグラムでは、
b1色などのように、部分色空間において頻度が突出し
ている色が修正されている。
The correction frequency R in the partial color space histogram shown in FIG. 4 is as follows: correction frequency R = (total appearance frequency) ÷ (sum of frequency meters of all partial color spaces) = 61 ÷ (5 + 4 + 4 + 3) = 61 ÷ 16 = 3.81∴R = 4 Therefore, in FIG.
The color, g1 color, g2 color, and b1 color are the correction targets. Then, by correcting the frequency of these colors with the average appearance frequency 4, a corrected partial color space histogram as shown in FIG. 5 is obtained. In the modified partial color space histogram of FIG. 5,
Colors with a high frequency in the partial color space, such as b1 color, have been corrected.

【0037】パレット登録色数決定手段14では、前記
頻度補正手段13で作成された修正部分色空間ヒストグ
ラムから各部分色空間内の色の頻度計を求める。そし
て、さらにこの頻度計を元にして、全出現頻度(出現頻
度の総合計)に対する各部分色空間内の出現色の頻度の
比率を求め、各部分色空間毎のパレットへの割当て色数
を決定する(ステップ104)。
The palette registration color number determining means 14 obtains a color frequency meter in each partial color space from the corrected partial color space histogram created by the frequency correcting means 13. Then, based on this frequency meter, the ratio of the frequency of appearance colors in each partial color space to the total appearance frequency (total appearance frequency) is calculated, and the number of colors assigned to the palette for each partial color space is calculated. It is determined (step 104).

【0038】ここで、図5の修正部分色空間ヒストグラ
ムから各部分色空間の頻度計、比率を求めると、図6に
示すような内容となり、限定色数10における各部分色
空間の割当て色数はR…3、G…2、B…1、Y…1と
なる。
Here, when the frequency meter and ratio of each partial color space are obtained from the corrected partial color space histogram of FIG. 5, the contents are as shown in FIG. 6, and the number of assigned colors of each partial color space in the limited number of colors 10 is obtained. Becomes R ... 3, G ... 2, B ... 1, Y ... 1.

【0039】次に、パレット登録手段15では、前記パ
レット登録色数決定手段14で決定された割当て色数に
従って、前記各部分色空間ヒストグラム毎に頻度の上位
の色から順にパレットへの登録を行う(ステップ10
5)。
Next, the palette registration means 15 performs registration in the palette in order from the color with the highest frequency for each of the partial color space histograms according to the assigned color number determined by the palette registration color number determination means 14. (Step 10
5).

【0040】ステップ104で決定された割当て色数に
基づいて図15の全出現色ヒストグラムを色分けすると
図7のようになる。先に説明したように図18の従来例
では、頻度の少ないb2色がパレットに登録され、本来
選ばれるべきy2色が登録からはずされている。しか
し、この実施例では部分色空間において頻度が突出した
r1色、b1色などの頻度が修正されるため、図7に示
すようにy2色がパレットに登録され、頻度の少ないb
2色はパレットの登録からはずされている。したがっ
て、部分色空間に存在する一部の突出した頻度の色によ
り、必要以上にその部分色空間のパレットへの割当てが
行われることがなく、元画像に対して色合い等に違和感
の少ない出力結果を得ることができる。
FIG. 7 shows a color-coded histogram of all appearing colors in FIG. 15 based on the number of assigned colors determined in step 104. As described above, in the conventional example of FIG. 18, the b2 color that is less frequently registered is registered in the palette, and the y2 color that should be originally selected is removed from the registration. However, in this embodiment, since the frequencies of the r1 color, b1 color, etc., whose frequencies are prominent in the partial color space are corrected, the y2 color is registered in the palette as shown in FIG.
Two colors have been removed from the palette registration. Therefore, an output result that does not cause discomfort in the hue or the like with respect to the original image is prevented from being assigned to the palette of the partial color space more than necessary due to a part of the colors with the protruding frequency existing in the partial color space. Can be obtained.

【0041】次に、上述したパレット作成処理の具体例
を図8、図9のフローチャート、および図10〜図12
を参照しながら、さらに詳細に説明する。
Next, a concrete example of the above-described palette creating process will be described with reference to the flowcharts of FIGS. 8 and 9 and FIGS.
Will be described in more detail with reference to.

【0042】最初に、上述した図3の前半の処理につい
て説明する。図8は全出現色ヒストグラムと部分色空間
ヒストグラムを作成するまでの手順を示すフローチャー
トであり、図3のステップ101、ステップ102に相
当する。
First, the above-mentioned processing in the first half of FIG. 3 will be described. FIG. 8 is a flowchart showing the procedure until the all appearance color histogram and the partial color space histogram are created, which corresponds to steps 101 and 102 in FIG.

【0043】まず、全出現色ヒストグラムと部分色空間
ヒストグラムを作成するにあたって、これらヒストグラ
ムの初期化を行う(ステップ201)。各ヒストグラム
の初期化は、図1の全出現色ヒストグラム作成手段11
と部分色空間ヒストグラム作成手段12で実行される。
First, when creating the all appearance color histogram and the partial color space histogram, these histograms are initialized (step 201). The initialization of each histogram is performed by the all appearance color histogram creating means 11 in FIG.
Is executed by the partial color space histogram creating means 12.

【0044】次のステップ202〜ステップ205は、
全出現色ヒストグラムの作成を行うときのループを示し
ており、図3のステップ101に相当している。ここで
は、全出現色ヒストグラム作成手段11でカラー元画像
の画素を図10に示すような順に走査し、各画素の色と
その頻度を累計して全出現色ヒストグラムを作成する。
これらの処理は、走査した元画像の画素データを図示せ
ぬメモリ上に蓄積して行う。
The next steps 202 to 205 are
The loop when creating the all appearance color histogram is shown and corresponds to step 101 in FIG. Here, the all-appearing-color histogram creating unit 11 scans the pixels of the color original image in the order shown in FIG. 10, and accumulates the colors of the pixels and their frequencies to create the all-appearing-color histogram.
These processes are performed by accumulating the pixel data of the scanned original image in a memory (not shown).

【0045】最初に、元画像(原画)の start画素(左
上端)を走査対象画素Gとする(ステップ202)。そ
して、走査対象画素Gの色を調べ、既に全出現色ヒスト
グラムに登録されている色であれば、その頻度を一つカ
ウントアップする。また全出現色ヒストグラムに登録さ
れていない色であれば、頻度を1とし、その色のRGB
値を全出現色ヒストグラムに登録する(ステップ20
3)。
First, the start pixel (upper left corner) of the original image (original image) is set as the scan target pixel G (step 202). Then, the color of the scan target pixel G is checked, and if the color is already registered in the all appearance color histogram, the frequency is counted up by one. If the color is not registered in the all appearance color histogram, the frequency is set to 1 and the RGB of that color is set.
The value is registered in the all appearance color histogram (step 20).
3).

【0046】続いて、走査対象画素Gが end画素かどう
かを判断する(ステップ204)。ここでは、図10に
示すように、走査対象画素Gが元画像の右下端のend
画素であればループを出てステップ206へ進み、en
d画素でなければ、次の画素を走査対象画素Gとし(ス
テップ205)、ステップ203へ戻ってループの処理
を続ける。このステップ203からステップ205まで
の処理により、図11に示すような内容の全出現色ヒス
トグラムが得られる。図11において、indexは頻度の
多い順から付けた番号を表している。
Subsequently, it is determined whether the scanning target pixel G is the end pixel (step 204). Here, as shown in FIG. 10, the scan target pixel G is the end of the lower right corner of the original image.
If it is a pixel, it exits the loop and proceeds to step 206, where en
If it is not the d pixel, the next pixel is set as the scan target pixel G (step 205), and the process returns to step 203 to continue the loop processing. By the processing from step 203 to step 205, the all appearance color histogram having the contents shown in FIG. 11 is obtained. In FIG. 11, index represents a number given in descending order of frequency.

【0047】次のステップ206〜ステップ208は、
全出現色数Nがパレット登録可能色数Lより少ないかど
うかをチェックし、少ない時のステップを示している。
このステップは図3の概要フローチャートには記述され
ていない部分である。
The next steps 206 to 208 are
It is checked whether the total number N of appearance colors is less than the number L of colors that can be registered in the palette, and the steps when the number is small are shown.
This step is a part not described in the outline flowchart of FIG.

【0048】ステップ204で走査対象画素Gがend
画素となったときは、全出現色ヒストグラムに登録され
た色数、すなわち全出現色数Nを求める(ステップ20
6)。この全出現色数Nは図11のindex のNに相当す
る。そして、全出現色数Nがパレット登録可能色数L以
下かどうかを判断する(ステップ207)。ここで、全
出現色数N≦パレット登録可能色数Lであるときは(ス
テップ207:Y)、全出現色数Nがパレットに登録可
能であり、パレットへの割当て色数の配分を行う必要が
ないので、全出現色数Nをパレットへ登録する(ステッ
プ208)。これにより、パレットの作成処理が完了す
る。また、全出現色数N>パレット登録可能色数Lであ
るときは(ステップ207:N)、パレットへの割当て
色数の配分を行う必要があるので、ステップ209以降
の各部分色空間の色の出現頻度計によるパレットへの色
登録のステップへ進む。
In step 204, the scanning target pixel G is end.
When it becomes a pixel, the number of colors registered in the total appearance color histogram, that is, the total appearance color number N is obtained (step 20).
6). This total appearance color number N corresponds to N of index in FIG. Then, it is determined whether the total number N of appearance colors is less than or equal to the number L of colors that can be registered in the palette (step 207). Here, when the total number N of appearance colors N ≦ the number L of colors that can be registered in the palette (step 207: Y), the total number N of appearance colors can be registered in the palette and it is necessary to allocate the number of colors to be assigned to the palette. Therefore, the total number N of appearance colors is registered in the palette (step 208). This completes the palette creation process. Further, when the total number N of colors that appear is greater than the number L of colors that can be registered in the palette (step 207: N), it is necessary to distribute the number of colors to be assigned to the palette. Proceed to the step of color registration to the palette using the appearance frequency meter.

【0049】まず、部分空間ヒストグラム作成手段12
では、全出現色ヒストグラムを元にして、修正頻度Rを
求める(ステップ209)。この修正頻度Rは、図4で
説明したように全出現色の平均出現頻度の小数点以下を
切り上げて、その値とする。
First, the subspace histogram creating means 12
Then, the correction frequency R is obtained based on the entire appearance color histogram (step 209). The correction frequency R is a value obtained by rounding up the fractional part of the average appearance frequency of all appearance colors as described with reference to FIG.

【0050】次のステップ210〜ステップ213は、
各部分色空間ヒストグラムを作成するときのループを示
しており、図3のステップ102に相当している。この
ループを回ることにより、図12に示すような形で部分
色空間ヒストグラムが得られる。図12は、全出現色ヒ
ストグラムと各部分色空間ヒストグラムとの関係を模式
的に示したもので、全出現色ヒストグラムの内容から6
4個の部分色空間が作成されている様子を示している。
The next steps 210 to 213 are
The loop when creating each partial color space histogram is shown, and corresponds to step 102 in FIG. By rotating around this loop, the partial color space histogram is obtained in the form as shown in FIG. FIG. 12 schematically shows the relationship between the all appearance color histogram and each partial color space histogram.
It shows that four partial color spaces are created.

【0051】まず、ループ用のindex 「k」の初期設定
として「k←1」とする(ステップ210)。この
「k」は図11に示す全出現色ヒストグラムのindex の
値を指していることになる。次に、全出現色ヒストグラ
ムのk番目の色について、そのRGB値の上位2ビット
を調べ、相当する部分色空間ヒストグラムにその頻度と
色のRGB値を登録する。この後、k=Nかどうか、す
なわち全出現色を部分色空間ヒストグラムに登録し終え
たかどうかを判断する(ステップ212)。ここで、k
≠Nであるときは(ステップ212:N)、kを1つイ
ンクリメント、すなわち全出現色ヒストグラムの次の色
にindex の値を移し、ステップ211へ戻ってループを
回る。また、k=Nであるときは(ステップ212:
Y)、次の部分色空間ヒストグラムを修正するステップ
へ進む。
First, the index "k" for the loop is initially set to "k ← 1" (step 210). This "k" means the index value of the all appearance color histogram shown in FIG. Next, for the k-th color of the all appearance color histogram, the upper 2 bits of the RGB value are checked, and the frequency and the RGB value of the color are registered in the corresponding partial color space histogram. Thereafter, it is determined whether k = N, that is, whether all the appearance colors have been registered in the partial color space histogram (step 212). Where k
When ≠ N (step 212: N), k is incremented by 1, that is, the value of index is moved to the next color of the all appearance color histogram, and the process returns to step 211 and loops. When k = N (step 212:
Y), proceed to the step of modifying the next partial color space histogram.

【0052】次に、図3の後半の処理について説明す
る。図9は部分色空間ヒストグラムを修正し、パレット
へ登録するまでの手順を示すフローチャートであり、図
3のステップ103〜ステップ105に相当する。
Next, the latter half processing of FIG. 3 will be described. FIG. 9 is a flowchart showing the procedure for correcting the partial color space histogram and registering it in the palette, which corresponds to steps 103 to 105 in FIG.

【0053】図9のステップ214〜ステップ217
は、各部分色空間ヒストグラムの頻度修正のループを示
しており、図3のステップ103、ステップ104に相
当している。
Steps 214 to 217 in FIG.
Shows a frequency correction loop of each partial color space histogram, and corresponds to steps 103 and 104 in FIG.

【0054】頻度修正手段13は、各部分色空間ヒスト
グラムの登録色を頻度の高い順に調べ、ステップ209
で求めた修正頻度Rより大きい頻度の色があるときは、
その色の頻度を修正頻度Rに修正する(ステップ21
4)。ここでは、一つの部分色空間ヒストグラム毎に修
正頻度Rより大きい色が無くなるまで修正処理を繰り返
し、無くなった時点で次の部分色空間ヒストグラムに移
って、同じ作業を行う。この修正処理により、各部分色
空間ヒストグラム毎に図示せぬ修正部分色空間ヒストグ
ラムが作成される。
The frequency correction means 13 checks the registered colors of each partial color space histogram in descending order of frequency, and step 209
If there is a color with a frequency greater than the correction frequency R obtained in
The frequency of the color is corrected to the correction frequency R (step 21).
4). Here, the correction process is repeated until there is no more color than the correction frequency R for each partial color space histogram, and at the time when there is no color, the process moves to the next partial color space histogram and the same operation is performed. By this correction processing, a corrected partial color space histogram (not shown) is created for each partial color space histogram.

【0055】パレット登録色数決定手段14は、ステッ
プ214で得られた修正部分色空間ヒストグラムから、
各部分色空間内の色の頻度計hi(h0,h1,h2,…,h63) を求
め(ステップ215)、さらに、この頻度計hiから、全
出現頻度に対する各部分色空間内の出現色の頻度の比率
%i(%0,%1,%2,…,%63) を求める(ステップ216)。こ
のとき、小数点以下は切り捨てるものとする(図6参
照)。次に、各部分色空間内の出現色の頻度の比率%iか
ら、各部分色空間毎のパレットへの割当て色数li(l0,l
1,l2,…,l63) を決定する(ステップ217)。このと
き、小数点以下は切り捨てるものとする(図6参照)。
The palette registration color number determining means 14 determines from the corrected partial color space histogram obtained in step 214
A frequency meter hi (h0, h1, h2, ..., h63) of the colors in each partial color space is obtained (step 215), and from this frequency meter hi, the appearance color in each partial color space for all appearance frequencies is calculated. Frequency ratio
% i (% 0,% 1,% 2, ...,% 63) is calculated (step 216). At this time, the part after the decimal point is discarded (see FIG. 6). Next, from the ratio% i of the frequency of appearance colors in each partial color space, the number of colors li (l0, l) assigned to the palette for each partial color space
, L2, ..., L63) are determined (step 217). At this time, the part after the decimal point is discarded (see FIG. 6).

【0056】次のステップ218〜ステップ222は、
決定された各部分色空間毎のパレットの割当て色数に従
って、各部分色空間ヒストグラムからパレットへ登録を
行うときのループを示しており、図3のステップ105
に相当している。
The following steps 218 to 222 are
FIG. 10 shows a loop for registering from the partial color space histogram to the palette according to the determined number of colors assigned to the palette for each partial color space, and step 105 in FIG.
Is equivalent to.

【0057】まず、ループ用のindex 「i」の初期設定
として「i←0」とする(ステップ218)。この
「i」は図12に示す64個の部分色空間ヒストグラム
の図示せぬindex (0〜63)を示している。
First, the index "i" for the loop is initially set to "i ← 0" (step 218). This "i" indicates the unillustrated indexes (0 to 63) of the 64 partial color space histograms shown in FIG.

【0058】パレット登録手段15は、部分色空間iの
ヒストグラムから、前述のステップ217で決定したパ
レットへの割当て色数li分を、頻度上位の色から順にパ
レットに登録する(ステップ219)。続いて、先のス
テップ219でパレットに新規に登録された色を、全出
現色ヒストグラムから削除する(ステップ220)。こ
れは、パレット未登録分が発生したときのパレット補充
を行うための準備のために行う。次いで、i=63かど
うか、すなわち64個の部分色空間ヒストグラムの全て
についてパレット登録を終えたかどうかを判断する(ス
テップ221)。ここで、i<63のときは(ステップ
221:N)、iを1つインクリメントして、次の部分
色空間ヒストグラムに移行し、ステップ219へ戻って
ループを回る。また、i=63であるときは(ステップ
221:Y)、次のパレット未登録分を補充するための
ステップへ進む。
The palette registration means 15 registers, from the histogram of the partial color space i, the number li of colors to be assigned to the palette determined in step 217, in order from the color with the highest frequency to the palette (step 219). Subsequently, the color newly registered in the palette in the previous step 219 is deleted from the all appearance color histograms (step 220). This is done to prepare for pallet replenishment when unregistered pallets occur. Then, it is determined whether i = 63, that is, whether palette registration has been completed for all 64 partial color space histograms (step 221). Here, when i <63 (step 221: N), i is incremented by 1 to shift to the next partial color space histogram, and the process returns to step 219 to loop. When i = 63 (step 221: Y), the process proceeds to the step for replenishing the next unregistered palette.

【0059】次のステップ223〜ステップ225は、
パレットに未登録の部分が残っていた場合の色補充のス
テップであり、図3の概要フローチャートには記述され
ていない部分である。
The next steps 223 to 225 are
This is a step of color replenishment when there is an unregistered portion remaining in the palette, and is a portion not described in the outline flowchart of FIG.

【0060】まず、パレットに未登録の部分があるかど
うかを調べるため、パレット登録可能色数Lから各部分
色空間毎のパレットへの割当て色数(l0,l1,l2,…,l63)
を引いたものを変数mとし(ステップ223)、m>0
かどうかを判断する(ステップ224)。ここで、m=
0のときは(ステップ224:N)、パレットに未登録
の部分は無いのでそのまま終了する。また、m>0のと
きは(ステップ224:Y)、m色分がパレットに未登
録になっているので、パレットの色補充を行う。
First, in order to check whether or not there is an unregistered part in the palette, the number of colors that can be registered in the palette L is assigned to the palette for each partial color space (l0, l1, l2, ..., l63).
Is subtracted from the variable m (step 223), and m> 0
It is determined whether or not (step 224). Where m =
When it is 0 (step 224: N), there is no unregistered portion in the pallet, so the process ends. When m> 0 (step 224: Y), m colors have not been registered in the palette, so the color of the palette is supplemented.

【0061】先に説明したように、ステップ222では
パレットに新規に登録された色を全出現色ヒストグラム
から削除する作業を行っているため、全出現色ヒストグ
ラムはパレット未登録色の頻度順のヒストグラムに修正
されている。したがって、この修正後の全出現色ヒスト
グラムの頻度上位からm色をパレットに登録する(ステ
ップ225)。これにより、パレット上の全ての部分に
色が登録されたことになる。
As described above, since the color newly registered in the palette is deleted from the all-appearing color histogram in step 222, the all-appearing color histogram is a histogram in the frequency order of colors not registered in the palette. Has been fixed. Therefore, m colors are registered in the palette from the highest frequency of all the corrected appearance histograms (step 225). As a result, colors are registered in all parts on the palette.

【0062】上述した図8から図9へのフローチャート
により、頻度の突出した色が存在する場合でも、パレッ
トへの割当て色数を適切に配分することができる。また
ノイズ等によりバラツキが発生した色がある場合や、微
妙に変化する同系色が存在する場合においても、必要な
色を確実にパレットに登録させることができる。
According to the flowcharts shown in FIGS. 8 to 9, the number of colors to be assigned to the palette can be appropriately distributed even when there is a color with an extremely high frequency. In addition, even if there is a color that is varied due to noise or the like, or if there is a similar color that changes subtly, the necessary color can be reliably registered in the palette.

【0063】[0063]

【発明の効果】以上説明したように、この発明に係わる
画像処理装置においては、各部分色空間ヒストグラムに
含まれる各色の頻度が全出現色の平均出現頻度以上より
大きい場合には、その頻度を平均出現頻度を元に修正
し、この修正された部分色空間ヒストグラムに基づいて
部分色空間毎のパレットへの割当て色数を決定するよう
にしたため、部分色空間において頻度が突出した色が存
在するような場合でも、その部分色空間からパレットへ
必要以上に割当てが行われることがなく、パレットへの
割当て色数を適切に配分することができる。
As described above, in the image processing apparatus according to the present invention, when the frequency of each color included in each partial color space histogram is higher than the average appearance frequency of all appearance colors, the frequency is changed. Since the number of colors assigned to the palette for each partial color space is determined based on the corrected partial color space histogram based on this corrected partial color space histogram, there are colors with a frequency that is prominent in the partial color space. Even in such a case, it is possible to appropriately allocate the number of colors to be allocated to the palette without excessive allocation from the partial color space to the palette.

【0064】これによると、パレットの登録数を有効に
使うことができるうえ、各部分色空間から色をバランス
よく登録できるため、元画像に対して色合い等に違和感
の少ない出力結果を得ることが可能となる。
According to this, since the number of registered palettes can be effectively used and the colors can be registered in a well-balanced manner from each partial color space, it is possible to obtain an output result with less discomfort in the hue and the like with respect to the original image. It will be possible.

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

【図1】実施例における画像処理装置の機能的な構成を
示すブロック図。
FIG. 1 is a block diagram showing a functional configuration of an image processing apparatus according to an embodiment.

【図2】画像処理装置を実現するための具体例を示す構
成図。
FIG. 2 is a configuration diagram showing a specific example for realizing an image processing apparatus.

【図3】パレット作成処理の概要を示すフローチャー
ト。
FIG. 3 is a flowchart showing an outline of palette creation processing.

【図4】部分色空間ヒストグラムの説明図。FIG. 4 is an explanatory diagram of a partial color space histogram.

【図5】修正部分色空間ヒストグラムの説明図。FIG. 5 is an explanatory diagram of a modified partial color space histogram.

【図6】修正部分色空間ヒストグラムから得られた内容
を示す説明図。
FIG. 6 is an explanatory diagram showing contents obtained from a corrected partial color space histogram.

【図7】割当て色数に基づいて色分けした全出現色ヒス
トグラムの説明図。
FIG. 7 is an explanatory diagram of an all-appearance color histogram that is color-coded based on the number of assigned colors.

【図8】パレット作成処理の具体例を示すフローチャー
ト。
FIG. 8 is a flowchart showing a specific example of palette creation processing.

【図9】パレット作成処理の具体例を示すフローチャー
ト。
FIG. 9 is a flowchart showing a specific example of palette creation processing.

【図10】画素の走査順を示す説明図。FIG. 10 is an explanatory diagram showing a scanning order of pixels.

【図11】全出現色ヒストグラムの内容を示す説明図。FIG. 11 is an explanatory diagram showing the contents of the all appearance color histogram.

【図12】全出現色ヒストグラムと各部分色空間ヒスト
グラムとの関係を示す模式図。
FIG. 12 is a schematic diagram showing the relationship between the all appearance color histogram and each partial color space histogram.

【図13】従来例における全出現色ヒストグラムの一例
を示す説明図。
FIG. 13 is an explanatory diagram showing an example of a histogram of all appearance colors in a conventional example.

【図14】ノイズにより頻度が分散した全出現色ヒスト
グラムを示す説明図。
FIG. 14 is an explanatory diagram showing a histogram of all appearance colors in which frequencies are dispersed due to noise.

【図15】従来例における全出現色ヒストグラムの一例
を示す説明図。
FIG. 15 is an explanatory diagram showing an example of a histogram of all appearance colors in a conventional example.

【図16】従来例における部分色空間ヒストグラムの説
明図。
FIG. 16 is an explanatory diagram of a partial color space histogram in the conventional example.

【図17】従来例の部分色空間ヒストグラムから得られ
た内容を示す説明図。
FIG. 17 is an explanatory diagram showing contents obtained from a conventional partial color space histogram.

【図18】従来例の割当て色数に基づいて色分けした全
出現色ヒストグラムの説明図。
FIG. 18 is an explanatory diagram of an all-appearance color histogram that is color-coded based on the number of assigned colors in the conventional example.

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

11…全出現色ヒストグラム作成手段、12…部分色空
間ヒストグラム作成手段、13…頻度修正手段、14…
パレット登録色数決定手段、15…パレット登録手段
11 ... All appearance color histogram creation means, 12 ... Partial color space histogram creation means, 13 ... Frequency correction means, 14 ...
Palette registration color number determination means, 15 ... Palette registration means

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】カラー元画像の画素データを元にして、全
出現色ヒストグラムを作成する全出現色ヒストグラム作
成手段と、 前記全出現色ヒストグラム作成手段で作成された全出現
色ヒストグラムを元にして、色空間を均等分割した部分
色空間毎の部分色空間ヒストグラムを作成する部分色空
間ヒストグラム作成手段と、 前記全出現色ヒストグラム作成手段で作成された全出現
色ヒストグラムを元にして、全出現色の平均出現頻度を
求めるとともに、前記各部分色空間ヒストグラムに含ま
れる各色の頻度が前記平均出現頻度以上の色について
は、その頻度を前記平均出現頻度に修正して、各部分色
空間ヒストグラム毎の修正部分色空間ヒストグラムを作
成する頻度修正手段と、 前記頻度補正手段で作成された修正部分色空間ヒストグ
ラムから各部分色空間内の色の出現頻度計を求め、この
出現頻度計を元にして、各部分色空間内の出現色の頻度
の比率を求めるとともに、この比率を元に各部分色空間
毎のパレットへの割当て色数を決定するパレット登録色
数決定手段と、 前記パレット登録色数決定手段で決定された割当て色数
に従って、前記各部分色空間ヒストグラム毎に頻度の上
位の色から順にパレットへの登録を行うパレット登録手
段と、 を具備することを特徴とする画像処理装置。
1. An all-appearance color histogram creating means for creating an all-appearance color histogram on the basis of pixel data of a color original image, and an all-appearing color histogram created by the all-appearance color histogram creating means. , A partial color space histogram creating means for creating a partial color space histogram for each partial color space obtained by equally dividing the color space, and all appearance colors based on the all appearance color histogram created by the all appearance color histogram creating means. While determining the average appearance frequency of the, the frequency of each color included in the partial color space histogram is equal to or more than the average appearance frequency, the frequency is corrected to the average appearance frequency, for each partial color space histogram From the frequency correction means for creating the modified partial color space histogram, and the modified partial color space histogram created by the frequency correction means. Obtain an appearance frequency meter of the color in the partial color space, and based on this appearance frequency meter, obtain the ratio of the frequency of the appearance color in each partial color space, and based on this ratio, the palette for each partial color space. The number of colors to be assigned to the palette for determining the number of colors to be assigned to the palette, and according to the number of colors to be assigned to be determined by the means for determining the number of colors to be registered in the palette, colors are assigned to the palette in order from the color with the highest frequency for each of the partial color space histograms. An image processing apparatus comprising: a pallet registration unit that performs registration.
JP7008364A 1995-01-23 1995-01-23 Image processor Pending JPH08202327A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP7008364A JPH08202327A (en) 1995-01-23 1995-01-23 Image processor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP7008364A JPH08202327A (en) 1995-01-23 1995-01-23 Image processor

Publications (1)

Publication Number Publication Date
JPH08202327A true JPH08202327A (en) 1996-08-09

Family

ID=11691189

Family Applications (1)

Application Number Title Priority Date Filing Date
JP7008364A Pending JPH08202327A (en) 1995-01-23 1995-01-23 Image processor

Country Status (1)

Country Link
JP (1) JPH08202327A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2002093463A1 (en) * 2001-05-11 2002-11-21 Koninklijke Philips Electronics N.V. Palette-based histogram matching with recursive histogram vector generation

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2002093463A1 (en) * 2001-05-11 2002-11-21 Koninklijke Philips Electronics N.V. Palette-based histogram matching with recursive histogram vector generation

Similar Documents

Publication Publication Date Title
US6927874B1 (en) Image processing method, apparatus and storage medium therefor
US5335086A (en) Method of and apparatus for eliminating pin holes
US7356202B2 (en) Image processing apparatus, an image processing method, and a computer readable medium having recorded thereon a processing program for permitting a computer to perform image processing routines
US6011540A (en) Method and apparatus for generating small, optimized color look-up tables
US20070002348A1 (en) Method and apparatus for producing images by using finely optimized image processing parameters
US6606166B1 (en) Pattern dithering
JPH11150656A (en) Method and device for processing image and recording medium recording program for executing its processing
US7639262B2 (en) Selecting rendering intents
EP1365351A2 (en) System and method for using multiple processors for imaging
US5398123A (en) Image processing method and apparatus capable of automatic color masking
US5251022A (en) Method of and apparatus for producing overlapping image area
JP3185900B2 (en) Image editing apparatus and method for image processing system
RU2402811C2 (en) Image processing using linear parametres of lighting apparatus and other image processng enhancements
JP3142550B2 (en) Graphic processing unit
US8248426B2 (en) Image processing apparatus for displaying colors included in a color image and an image processing method, and a storage medium therefor
JPH08202327A (en) Image processor
US5343310A (en) Picture image color separating apparatus
EP0557639B1 (en) Method for amending colour nonuniformity of colour images
US20060119897A1 (en) Output apparatus and program thereof
JPH1084481A (en) Gradation interpolation method for image and its device, and recording medium recording program to execute the processing
JP2002118737A (en) Image converter and image conversion method
JPH10191090A (en) Apparatus and method for manufacturing color conversion table, and recording medium
US7218419B2 (en) Image processing method and apparatus, and recording medium
JP3648778B2 (en) Image processing device
JP5008391B2 (en) Image processing apparatus and processing method thereof