JPH06124343A - Limited color determination method and limited color determination device - Google Patents
Limited color determination method and limited color determination deviceInfo
- Publication number
- JPH06124343A JPH06124343A JP4161445A JP16144592A JPH06124343A JP H06124343 A JPH06124343 A JP H06124343A JP 4161445 A JP4161445 A JP 4161445A JP 16144592 A JP16144592 A JP 16144592A JP H06124343 A JPH06124343 A JP H06124343A
- Authority
- JP
- Japan
- Prior art keywords
- color
- frequency distribution
- coordinate axis
- representative
- image data
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Landscapes
- Image Processing (AREA)
- Facsimile Image Signal Circuits (AREA)
- Color Image Communication Systems (AREA)
- Controls And Circuits For Display Device (AREA)
Abstract
(57)【要約】
【目的】 画像データを少数の限定された代表色で表示
する際に、違和感のない画像を容易な処理で作成する。
【構成】 色変換手段5によりカラー画像データを均等
色空間における色分布に変換する。この色分布に対して
判別分析を用いて分割閾値決定手段14が閾値を決め
る。そして、この閾値において、色領域分割手段16が
均等色空間の色領域への分割を行ない、この色領域の平
均色を代表色とするものである。そして、均等色空間に
おいて各画素の座標軸毎の度数分布を求める際に、輝度
を示す座標軸の階級数を、色度を示す階級数より多くす
る。そして、求められた度数分布に対して判別分析を行
なうことにより、輝度に敏感な人間の視覚に対応して輝
度を強調した代表色を選択する。
(57) [Summary] [Purpose] When displaying image data in a small number of limited representative colors, an image that does not cause discomfort is created by a simple process. A color conversion means 5 converts color image data into a color distribution in a uniform color space. The division threshold determination means 14 determines a threshold for this color distribution using discriminant analysis. Then, at this threshold value, the color area dividing unit 16 divides the uniform color space into color areas, and the average color of this color area is used as the representative color. Then, when obtaining the frequency distribution for each coordinate axis of each pixel in the uniform color space, the class number of the coordinate axis indicating the luminance is made larger than the class number indicating the chromaticity. Then, by performing a discriminant analysis on the obtained frequency distribution, a representative color in which the luminance is emphasized is selected in correspondence with the human vision sensitive to the luminance.
Description
【0001】[0001]
【産業上の利用分野】本発明は、ディジタル化された自
然画像を、少数の限られた色でディスプレイ装置に表示
するに際して、少数に限定した代表色を用いて違和感の
無い画像を作成し、表示するための限定色決定方法及び
限定色決定装置に関するものである。BACKGROUND OF THE INVENTION The present invention, when displaying a digitized natural image on a display device with a small number of limited colors, creates an image that does not feel uncomfortable using a limited number of representative colors. The present invention relates to a limited color determination method and a limited color determination device for displaying.
【0002】[0002]
【従来の技術】一般にカラーディスプレイ装置で用いる
カラー画像は、RGBの各色成分で表され、それぞれの
色成分に8ビットのメモリが割り当てられてデジタル化
される。従って、前記デジタル化されたカラー画像を表
示するフルカラーディスプレイでは、各画素に対して2
4ビット分の色、即ち224色を同時表示可能であり、自
然画像を違和感なく表示することが可能である。2. Description of the Related Art Generally, a color image used in a color display device is represented by RGB color components, and each color component is digitized by allocating an 8-bit memory. Therefore, in the full-color display that displays the digitized color image, two pixels are used for each pixel.
It is possible to display 4-bit colors, that is, 2 24 colors at the same time, and it is possible to display a natural image without a feeling of strangeness.
【0003】一方、CD−ROMやCD−I、CAD
(Computer Aided Design)、CAI(Computer Assist
ed Instruction)やグラフィックスの世界では、前記2
24色のうちの限定された数の色しか同時に表示できない
カラーディスプレイ装置を用いる場合が多く、このよう
な場合、画像メモリの画素当たりの容量が、通常8ビッ
ト以下にされているので、同時表示できる色の数は28
=256までである。そして、256色以下のような限
られた色数では、自然画像を劣化無く表示することが難
しいが、これを可能にしたいという要求は多い。また、
前記ディスプレイ装置等のデータ容量の関係から、自然
画像の色数を、自然画像の劣化が無いように減らして、
画像データのデータ量を減らしたいという要求も多い。On the other hand, CD-ROM, CD-I, CAD
(Computer Aided Design), CAI (Computer Assist)
ed Instruction) and the world of graphics, 2
In many cases, a color display device that can display only a limited number of 24 colors at the same time is used. In such a case, since the capacity per pixel of the image memory is usually set to 8 bits or less, simultaneous display is possible. 2 8 possible colors
= Up to 256. It is difficult to display a natural image without deterioration with a limited number of colors such as 256 colors or less, but there are many demands for enabling this. Also,
From the relationship of the data capacity of the display device, etc., the number of colors of the natural image is reduced so that the natural image does not deteriorate,
There are many demands for reducing the amount of image data.
【0004】このような目的のため、従来、多数の色か
ら少数の表示色を選択して表示するカラーマップディス
プレイのために、自然画像を視覚的な劣化を抑制しなが
ら限られた色数で表示する方法が知られている。For such a purpose, conventionally, for a color map display for selecting and displaying a small number of display colors from a large number of colors, a natural image is displayed with a limited number of colors while suppressing visual deterioration. A method of displaying is known.
【0005】上記方法としては、例えば、色をR,G,
Bの3原色の各値で表した場合に、R,G,Bの各値を
座標とする3次元の直交座標系で表される空間を色空間
とし、この色空間において、カラー画像データに含まれ
ている各画素の色の分布を解析し、カラー画像データに
含まれる色が多く分布している前記色空間内の色領域か
らは多く、少ない分布の色領域からは少なく表示色を選
び、これらの表示色をカラーマップに登録し、カラー画
像データの各画素の色に最も近い表示色を代表色として
各画素に割り当て、カラーマップに代表色として登録さ
れた色コードを画像メモリの各画素の位置に書き込むこ
とによって近似表示を行なうものがある。上記のように
代表色を選択する方法の一つとして大津の判別分析(信
学論(D).J63−D,4,pp.349−356.
昭和55−4.)を用いたものがある。As the above-mentioned method, for example, the colors R, G,
When represented by the respective values of the three primary colors of B, the space represented by the three-dimensional orthogonal coordinate system having the respective values of R, G, and B as coordinates is defined as a color space, and in this color space, color image data is Analyze the color distribution of each included pixel and select a display color from the color area in the color space in which the colors included in the color image data are mostly distributed and select a small display color from the color area with a small distribution. , These display colors are registered in the color map, the display color closest to the color of each pixel of the color image data is assigned to each pixel as a representative color, and the color code registered as the representative color in the color map is stored in each of the image memories. There is one in which approximate display is performed by writing at a pixel position. As one of the methods for selecting the representative color as described above, Otsu's discriminant analysis (Science theory (D) .J63-D, 4, pp.349-356.
Showa 55-4. ) Is used.
【0006】また、色空間には、RGBの3原色の組合
せにより色を表現するものだけではなく、人間の色差を
考慮したL*u*v*色空間、L*a*b*色空間(CIE
(国際照明委員会)で勧告されたもの)などの均等色空
間があり、これらの色空間を用いて前記判別分析法を行
なうこともできる。Further, the color space is not limited to one that expresses a color by a combination of the three primary colors of RGB, but also the L * u * v * color space and the L * a * b * color space (in consideration of human color difference). CIE
There is a uniform color space (such as that recommended by the International Commission on Illumination), and the discriminant analysis method can be performed using these color spaces.
【0007】また、人の視覚特性を利用し、さらにディ
ザ法を適応した方法(画像電子学会誌 第18巻 第5
号(1989)p、293〜301;田島、池田)が提
案されているが、この方法では100色以下の少ない色
数で限定色表示する場合に対しては考慮されていない。Further, a method in which the human visual characteristic is utilized and the dither method is further applied (Journal of the Institute of Image Electronics Engineers, Vol. 18, No. 5)
No. (1989) p, 293-301; Tajima, Ikeda), but this method is not considered for limited color display with a small number of colors of 100 or less.
【0008】[0008]
【発明が解決しようとする課題】ところで、前記判別分
析法は、単に色の分布により表示色を決めるものなの
で、前記RGB色空間において、判別分析法により表示
色を決めて作成された画像が、人間の目にとって、自然
画像を違和感なく再現したものとはならなかった。例え
ば、画像データの色の変化の緩やかな部分に、少数の代
表色が割り当てられた場合に、偽輪郭が発生することが
あり、特に、人間の視覚特性が輝度に対して敏感なこと
によって、輝度の階調の変化が少数の代表色により表現
された場合に偽輪郭が際だってしまうという問題があっ
た。By the way, since the discriminant analysis method simply determines the display color based on the color distribution, an image created by determining the display color by the discriminant analysis method in the RGB color space is For the human eye, it was not a natural reproduction of a natural image. For example, false contours may occur when a small number of representative colors are assigned to a portion where the color change of the image data is gradual, and in particular, because human visual characteristics are sensitive to luminance, There is a problem that the false contour becomes conspicuous when the change in the luminance gradation is expressed by a small number of representative colors.
【0009】また、人間の色差を考慮したL*u*v*色
空間やL*a*b*色空間において判別分析法を用いて
も、人間の目から見た場合に、必ずしも自然画像に近似
したものとはならなかった。また、従来の手法として
は、前記判別分析法等のように、原画像の状態、例えば
色の分布が統計的に異なるにも拘わらず、限られた表示
色を選択して画像を作成してしまう非適応的方法と、原
画像の色分布等の統計的性質に適するように限定色を選
択する適応的方法がある。Further, even if the discriminant analysis method is used in the L * u * v * color space or the L * a * b * color space in which human color difference is taken into consideration, it is not always a natural image when viewed from the human eyes. It was not an approximation. Further, as a conventional method, like the above-described discriminant analysis method, a limited display color is selected to create an image despite the fact that the state of the original image, for example, the color distribution is statistically different. There is a non-adaptive method in which the limited color is selected and an adaptive method in which the limited color is selected so as to suit the statistical properties such as the color distribution of the original image.
【0010】前記非適応的方法では、前述の判別分析法
の場合のように必ずしも人間の目から見た場合に原画像
と近似された画像とはならず、画質に問題がある。ま
た、適応的方法では、画像データ毎の色分布等を調べ、
色分布の状態に応じて統計的な処理の仕方を変えること
が必要となり、一般的に処理が煩雑になると共に処理時
間が長い。そして、一般的な画像データに対し、ある程
度の画質を保てる非適応的方法は、画像データを特に選
ばず、処理時間が早いという利点から、適応的方法より
も発展してきたが、画像データとなる自然画像は、その
内容によって色分布等の統計的性質が非常に異なるもの
もあり、画質の点からは依然適応的処理の優位は変わっ
ていない。In the non-adaptive method, the image is not always an image approximated to the original image when seen by human eyes as in the case of the above-mentioned discriminant analysis method, and there is a problem in image quality. In the adaptive method, the color distribution of each image data is checked,
It is necessary to change the statistical processing method according to the state of the color distribution, and generally the processing becomes complicated and the processing time is long. Then, a non-adaptive method capable of maintaining a certain level of image quality with respect to general image data has been developed as compared with the adaptive method due to the advantage that the image data is not particularly selected and the processing time is fast. Some natural images have very different statistical properties such as color distribution depending on their contents, and the advantage of adaptive processing has not changed from the viewpoint of image quality.
【0011】本発明は、上記課題に鑑みてなされたもの
であり、人間の視覚が特に輝度の変化に敏感であるとい
う点に着目し、より忠実に原画像の再生を可能とすると
共に、前記非適応的方法と適応的方法との問題点を解決
することができる限定色決定方法を提供することを目的
とするものである。The present invention has been made in view of the above problems, and paying attention to the fact that human vision is particularly sensitive to a change in luminance, enables more faithful reproduction of an original image, and An object of the present invention is to provide a limited color determination method capable of solving the problems of the non-adaptive method and the adaptive method.
【0012】[0012]
【課題を解決するための手段】本発明の限定色決定方法
は、均等色空間の座標系で表されるカラー画像データの
各画素値の度数分布に対して判別分析を行なうことによ
り代表色を求め、前記画像データを限定された代表色で
近似するものであり、前記均等色空間において、輝度成
分を示す座標軸における階級数と色度成分を示す座標軸
における階級数とを異なるものとし、前記各画素値のデ
ータの各座標軸における度数分布を求め、前記度数分布
に対して、判別分析を行なうことにより代表色を求める
ことを前記課題の解決手段とした。The limited color determination method of the present invention determines a representative color by performing a discriminant analysis on the frequency distribution of each pixel value of color image data represented by a coordinate system of a uniform color space. Obtained, which is to approximate the image data with a limited representative color, in the uniform color space, the class number in the coordinate axis showing the luminance component and the class number in the coordinate axis showing the chromaticity component are different, each of the above, The means for solving the above problems is to obtain a frequency distribution of each pixel value data on each coordinate axis, and perform a discriminant analysis on the frequency distribution to obtain a representative color.
【0013】また、本発明の限定色決定方法は、前記均
等色空間において前記度数分布を求めるに際して、輝度
成分を示す座標軸の階級数を、色度成分を示す座標軸の
階級数より多くして、輝度を強調した代表色を選択する
ことを前記課題の解決手段とした。Further, in the limited color determination method of the present invention, when obtaining the frequency distribution in the uniform color space, the class of the coordinate axis showing the luminance component is made larger than the class of the coordinate axis showing the chromaticity component, The selection of a representative color in which brightness is emphasized is the means for solving the above problems.
【0014】また、本発明の限定色決定方法は、前記均
等色空間において前記度数分布を求めるに際して、色度
成分を示す座標軸の階級数を、輝度成分を示す座標軸の
階級数より多くして、色度を強調した代表色を選択する
ことを前記課題の解決手段とした。Further, in the limited color determination method of the present invention, when obtaining the frequency distribution in the uniform color space, the number of classes of the coordinate axis indicating the chromaticity component is made larger than the number of classes of the coordinate axis indicating the luminance component, The selection of a representative color in which the chromaticity is emphasized is the means for solving the above problems.
【0015】さらに、本発明の限定色決定方法は、前記
均等色空間で表される画像データの各画素値の度数分布
に対して判別分析を行なうことにより代表色を求め、求
められた代表色について、再び均等色空間における度数
分布を求め、この度数分布に対して判別分析を行なうこ
とによりさらに少数の代表色を求め、これを繰り返すこ
とにより段階的に代表色を減らして行くに際して、代表
色を減らす各段階もしくはいずれかの段階で度数分布を
求めるのに、輝度成分を示す座標軸における階級数と、
色度成分を示す座標軸における階級数との比率を変更す
ることを前記課題の解決手段とした。Further, in the limited color determination method of the present invention, a representative color is obtained by performing a discriminant analysis on the frequency distribution of each pixel value of the image data represented in the uniform color space, and the obtained representative color is obtained. , The frequency distribution in the uniform color space is obtained again, and a discriminant analysis is performed on this frequency distribution to obtain a smaller number of representative colors. By repeating this, the representative colors are reduced stepwise. To obtain the frequency distribution at each step or at any step, reduce the rank on the coordinate axis indicating the luminance component,
Changing the ratio with the class number on the coordinate axis indicating the chromaticity component is the means for solving the above problems.
【0016】そして、本発明の限定色決定方法は、前記
カラー画像データの各画素の3原色の値を表すデジタル
データの下位ビットを読み取り、該下位ビットに同じ値
が出現する周期性を求め、一方前記カラー画像データを
均等色空間の座標系で表した各画素値に対して、該均等
色空間での輝度成分を示す座標軸と色度成分を示す座標
軸における度数分布を求め、該度数分布を前記周期性の
データに基づいて重み付け補正し、該重み付け補正した
度数分布に対して更に輝度を示す座標軸における階級数
と色度を示す座標軸における階級数を異なるものとして
度数分布を補正し、判別分析を行なうことを前記課題の
解決手段とした。Then, the limited color determining method of the present invention reads the lower bits of the digital data representing the values of the three primary colors of each pixel of the color image data, and obtains the periodicity in which the same value appears in the lower bits, On the other hand, for each pixel value that represents the color image data in the coordinate system of the uniform color space, a frequency distribution on the coordinate axis indicating the luminance component and the coordinate axis indicating the chromaticity component in the uniform color space is obtained, and the frequency distribution is calculated. Weighting correction is performed based on the periodicity data, and the frequency distribution is corrected by differentiating the weighting-corrected frequency distribution from the number of classes on the coordinate axis showing luminance and the number of classes on the coordinate axis showing chromaticity, and discriminant analysis Was carried out as a means for solving the above-mentioned problems.
【0017】また、本発明の限定色決定装置は、均等色
空間の座標系で表されるカラー画像データの各画素値の
度数分布に対して判別分析を行なうことにより代表色を
求め、前記カラー画像データを限定された代表色で近似
するものであり、前記均等色空間における輝度成分を示
す座標軸の階級数と色度成分を示す座標軸の階級数を異
なるものとし、各座標軸における前記カラー画像データ
の各画素値の度数分布を求める度数分布演算手段と、前
記求めた度数分布に対して判別分析を行ない代表色を決
定する代表色決定手段とを具備してなることを前記課題
の解決手段とした。Further, the limited color determining apparatus of the present invention obtains a representative color by performing a discriminant analysis on the frequency distribution of each pixel value of the color image data represented by the coordinate system of the uniform color space, and the color The image data is approximated by a limited representative color, and the class number of the coordinate axis indicating the luminance component in the uniform color space and the class number of the coordinate axis indicating the chromaticity component are different, and the color image data in each coordinate axis And a representative color determining means for determining a representative color by performing a discriminant analysis on the obtained frequency distribution, and a means for solving the above problems. did.
【0018】また、本発明の限定色決定装置は、均等色
空間の座標系で表されるカラー画像データの各画素値の
度数分布に対して判別分析を行なうことにより代表色を
求め、前記カラー画像データを限定された代表色で近似
するものであり、前記カラー画像データの3原色を表す
デジタルデータに対して下位ビットに同じ値が出現する
周期性係数を求める周期性演算手段と、前記均等色空間
における輝度成分を示す座標軸と色度成分を示す座標軸
に対する前記カラー画像データの各画素値の度数部分を
求める度数分布演算手段と、前記度数分布演算手段によ
り求められた度数分布を前記周期性係数によって重み付
け補正する度数分布補正手段と、前記重み付け補正され
た度数分布に対して、輝度成分を示す座標軸の階級数と
色度成分を示す座標軸の階級数を異なるものとして度数
分布を補正し、判別分析を行なうことにより代表色を決
定する代表色決定手段とを具備してなることを前記課題
の解決手段とした。Further, the limited color determining apparatus of the present invention obtains a representative color by performing a discriminant analysis on the frequency distribution of each pixel value of the color image data represented by the coordinate system of the uniform color space, and the color The image data is approximated by a limited representative color, the periodicity calculating means for obtaining a periodicity coefficient in which the same value appears in the lower bits with respect to the digital data representing the three primary colors of the color image data, and the equality. The frequency distribution calculating means for obtaining the frequency part of each pixel value of the color image data with respect to the coordinate axis showing the luminance component and the coordinate axis showing the chromaticity component in the color space, and the frequency distribution obtained by the frequency distribution calculating means is the periodicity. A frequency distribution correction means for performing weighted correction with a coefficient, and a coordinate number class indicating a luminance component and a coordinate indicating a chromaticity component for the weighted frequency distribution. The frequency distribution by correcting the number of classes of the shaft as a different, that is formed by and a representative color determining means for determining a representative color by performing a discriminant analysis was solutions of the problems.
【0019】[0019]
【作用】前記請求項1記載の構成によれば、均等色空間
上に変換された画像データについて、各座標軸毎の画素
の度数分布に対して判別分析を行なうことにより代表色
を求める場合に、輝度を示す座標軸の階級数と、色度を
示す座標軸の階級数を異なるものとすることにより、代
表色を選択した際に輝度もしくは色度を強調したものと
することができる。すなわち、画像データの色調や、人
間の視覚が輝度に敏感であること等を考慮して、選択さ
れた代表色を輝度側に変化の多いものとしたり、色度側
に変化の多いものとしたりすることが可能となる。According to the structure described in claim 1, when the representative color is obtained by performing the discriminant analysis on the frequency distribution of the pixels for each coordinate axis for the image data converted into the uniform color space, By making the class number of the coordinate axis showing the luminance different from the class number of the coordinate axis showing the chromaticity, it is possible to emphasize the luminance or the chromaticity when the representative color is selected. That is, considering the color tone of the image data and the fact that human vision is sensitive to luminance, etc., the selected representative color may have a large variation on the luminance side or a large variation on the chromaticity side. It becomes possible to do.
【0020】また、請求項2記載の構成によれば、輝度
に対して敏感な人間の視覚特性に合わせて輝度が強調さ
れた代表色が選択されることになり、人間の視覚に対応
した代表色を選択することができる。例えば、画像デー
タの色が緩やかに変化する部分に、少数の代表色しか選
択されなかった場合に、偽輪郭が発生することになり、
特に人間の視覚が輝度に敏感であることにより、前記少
数の代表色として同じような輝度の色が選択された場合
に、偽輪郭が強調されることになるが、輝度を強調した
代表色、すなわち、輝度の変化に富んだ代表色を選択す
ることにより、偽輪郭が強調されるのを防止することが
できる。According to the second aspect of the invention, the representative color in which the brightness is emphasized is selected according to the human visual characteristics sensitive to the brightness, and the representative color corresponding to the human visual sense is selected. You can choose the color. For example, if only a small number of representative colors are selected in the part where the color of the image data changes gently, false contours will occur,
In particular, since human vision is sensitive to brightness, when a color having similar brightness is selected as the small number of representative colors, false contours are emphasized. That is, it is possible to prevent false contours from being emphasized by selecting a representative color that is highly variable in brightness.
【0021】なお、上記のように偽輪郭が強調され易い
画像とは、その色分布が同じような色相に集中してい
て、さまざまな輝度成分を持ったものであり、このよう
な画像データにおいて特に輝度を強調した代表色を選択
することにより、偽輪郭を防止することができる。An image in which false contours are easily emphasized as described above is one in which its color distribution is concentrated in the same hue and has various luminance components. In such image data, False contours can be prevented by selecting a representative color that emphasizes brightness in particular.
【0022】また、請求項3記載の構成によれば、画像
データにおいて、その色分布が様々な色相に分散してい
て、比較的少数の輝度成分に集中している場合に、人間
の視覚が輝度に敏感であっても、偽輪郭が強調されるよ
うなことがないので、色度を強調した代表色、すなわ
ち、様々な色相の代表色を選択できるようにすること
で、代表色により表される画像を元の画像データに近い
ものとすることができる。According to the third aspect of the invention, in the image data, when the color distribution is dispersed in various hues and concentrated on a relatively small number of luminance components, the human vision Since false contours are not emphasized even if they are sensitive to luminance, it is possible to display representative colors by selecting representative colors with enhanced chromaticity, that is, representative colors of various hues. The image to be displayed can be close to the original image data.
【0023】また、請求項4記載の構成によれば、判別
分析により代表色を選択する際に、一度に必要とする代
表色まで色を減少させるのではなく、例えば、元の画像
データの均等色空間における度数分布を求め、判別分析
により代表色を一万色にし、この代表色の均等色空間に
おける度数分布を求め、判別分析により代表色を千色に
するというように、段階的に減らすようにする。そし
て、各段階で、元の画像データもしくは各段階の代表色
の色分布に対応して、輝度もしくは色度を強調して判別
分析を行なうことにより、元の画像データの色分布等の
統計的性質に適した代表色を選択することが可能とな
る。According to the structure of claim 4, when the representative color is selected by the discriminant analysis, the color is not reduced to the representative color required at one time, but for example, the original image data is equalized. Obtain the frequency distribution in the color space, make the representative color 10,000 colors by discriminant analysis, find the frequency distribution in the uniform color space of this representative color, and make the representative color 1000 colors by the discriminant analysis. To do so. Then, at each stage, by performing a discriminant analysis by emphasizing luminance or chromaticity corresponding to the color distribution of the original image data or the representative color of each stage, statistical analysis such as the color distribution of the original image data is performed. It is possible to select a representative color suitable for the property.
【0024】すなわち、判別分析による代表色の選択と
いう非適応的方法を繰り返すだけの処理で、煩雑な処理
を必要とする適応的方法と同様に、画像データの色分布
等の統計的性質に対応した代表色を選択することが可能
となる。That is, it is possible to deal with the statistical properties such as the color distribution of image data by the process of repeating the non-adaptive method of selecting the representative color by the discriminant analysis as in the adaptive method which requires complicated processing. It is possible to select the selected representative color.
【0025】さらに、請求項5記載の構成によれば、画
像データ中の徐々に色が変化する部分では、連続して配
置された画素の色のデータを順番に読み取っていった場
合に、下位ビットの値が増加しては上位ビットへの繰り
上げ行なわれ、下位ビットの値が一気に減少する一連の
サイクルもしくは逆方向のサイクルが繰り返されること
になる。Further, according to the fifth aspect of the invention, in the portion where the color gradually changes in the image data, when the color data of the pixels arranged continuously are read in order, the lower order When the value of the bit is increased, it is moved up to the higher bit, and the series of cycles in which the value of the lower bit is decreased at once or the cycle in the opposite direction is repeated.
【0026】従って、画像データ中の色の変化の緩やか
な部分に、連続して配置された各画素は、前記下位ビッ
トの値に周期性があることになり、連続して配置された
画素の周期性を調べることにより、画像データの色が緩
やかに変化する部分及びその部分の色を特定することが
でき、かつ、その周期性の強弱から緩やかな色の変化の
度合いを推定することができる。Therefore, the pixels successively arranged in the portion where the color change is gentle in the image data have a periodicity in the value of the lower bit, and the pixels arranged continuously. By examining the periodicity, it is possible to identify the portion where the color of the image data changes gently and the color of that portion, and it is possible to estimate the degree of the gentle color change from the strength of the periodicity. .
【0027】そこで、画像データ中の色の出現頻度を示
すヒストグラムを作成して判別分析を行なう場合に、前
述のように画像データにおいて、色の変化の緩やかな部
分を特定し、下位ビットの周期性を有する色変化の緩や
かな部分の色について、その周期性の強弱により重み付
け係数を決め、この重み付け係数を用いて前記ヒストグ
ラムに重み付けして判別分析することにより、色の変化
の緩やかな部分を表示するための代表色の数を増やすこ
とができ、色の変化の緩やかな部分を僅かな代表色で表
示することにより発生する偽輪郭が抑制される。Therefore, when a histogram showing the frequency of appearance of colors in the image data is created and discriminant analysis is performed, as described above, in the image data, the portion where the color changes gently is specified, and the period of the lower bits is determined. For a color having a gentle change in color, a weighting coefficient is determined according to the strength of the periodicity, and the histogram is weighted using this weighting coefficient to perform a discriminant analysis. It is possible to increase the number of representative colors to be displayed, and suppress false contours that are generated by displaying a portion where the color change is gentle with a slight representative color.
【0028】また、請求項6記載の限定色決定装置によ
れば、度数分布演算手段が、輝度成分を示す座標軸の階
級数と色度成分を示す階級数とを異なるものとして度数
分布を求め、代表色決定手段が、前記度数分布にに基づ
いて代表色を決定するので、画像データの色調や人間の
視覚が輝度に敏感であること等を考慮して、選択された
代表色を輝度側に変化の多いものとしたり、色度側に変
化の多いものとしたりすることが可能となる。Further, according to the limited color determining device of the sixth aspect, the frequency distribution calculating means obtains the frequency distribution by making the class number of the coordinate axis indicating the luminance component different from the class number indicating the chromaticity component, Since the representative color determination means determines the representative color based on the frequency distribution, the selected representative color is set to the luminance side in consideration of the color tone of the image data and the human visual sensitivity to luminance. It is possible to make many changes or make many changes on the chromaticity side.
【0029】また、請求項7記載の限定色決定装置よれ
ば、周期性演算手段により色の変化の穏やかさを示す周
期性係数を求め、度数分布補正手段が度数分布演算手段
によって求められた度数分布を、前記周期性係数により
重み付け補正してから、代表色決定手段が、判別分析を
行なうことになるので、色の変化の緩やかな部分から多
くの代表色が選択されることになる。また、度数分布補
正手段は、輝度成分を示す座標軸の階級数と色度成分を
示す座標軸の階級数を異なるものとして度数分布を補正
するので、画像データの色調と色の変化の緩やかさを考
慮した代表色が選択されることになる。Further, according to the limited color determining device of the seventh aspect, the periodicity calculating means obtains the periodicity coefficient indicating the gentleness of the color change, and the frequency distribution correcting means obtains the frequency obtained by the frequency distribution calculating means. Since the representative color determination means performs the discriminant analysis after the distribution is weighted and corrected by the periodicity coefficient, a large number of representative colors are selected from the portion where the color change is gentle. Further, the frequency distribution correcting means corrects the frequency distribution by setting the class number of the coordinate axis indicating the luminance component and the class number of the coordinate axis indicating the chromaticity component to be different, so that the tone of the image data and the gradual change in color are taken into consideration. The selected representative color is selected.
【0030】[0030]
【実施例】以下に、本発明の一実施例を図面を参照して
説明する。図1は、本実施例の限定色決定装置の概略図
を示すものであり、図2ないし図8は、本実施例の限定
色決定方法を説明するための図面である。以下に図1を
用いて、本実施例の限定色決定装置について説明する。DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS An embodiment of the present invention will be described below with reference to the drawings. FIG. 1 is a schematic view of a limited color determination device according to this embodiment, and FIGS. 2 to 8 are drawings for explaining a limited color determination method according to this embodiment. The limited color determination apparatus of this embodiment will be described below with reference to FIG.
【0031】上記限定色決定装置は、画像データを格納
する画像記憶手段1と、前記画像データの下位3ビット
を格納する下位3ビット記憶手段2と、前記下位3ビッ
トの画像データにおいて、各画素からその周囲の画素の
下位3ビットの値を放射線方向に沿って読み取り、読み
取られた画素の下位3ビットの周期性を求め、その周期
性を正規化する周期性演算手段3と、前記周期性演算手
段3によって正規化された周期性を係数として記憶する
周期性係数記憶手段4と、RGBの各値からなる前記画
像データを、L*a*b*空間における値に変換する色変
換手段5と、L*a*b*空間を、L*,a*,b*の各座標
軸において各画素の度数分布を求める際の階級数で多数
のクラスタに細分化し、これらクラスタにクラスタ番号
を付け、L*a*b*空間の値に変換された画素の値を、
その画素を含むクラスタのクラスタ番号に置き換えて記
憶するクラスタ画像記憶手段6と、各クラスタ毎の画素
の度数分布を前記L*a*b*空間の各座標軸毎に求める
ヒストグラム演算手段7と、求められたヒストグラムを
記憶するヒストグラム記憶手段8と、前記ヒストグラム
から平均色・分散を求める平均・分散演算手段9と、求
められた平均・分散を記憶する平均・分散記憶手段10
と、第一主軸を求める第一主軸演算手段11と、求めら
れた第一主軸を記憶する第一主軸記憶手段12と、重み
付き分散を求める重み付き分散演算手段13と、判別分
析により分割閾値を求める分割閾値決定手段14と、求
められた分割閾値を記憶する分割閾値記憶手段15と、
前記重み付き分散及び第一主軸に従って色領域を分割閾
値により分割する色領域分割手段16と、分割できる色
領域がなくなるか、分割された色領域数が既定の表示色
数に到達するまで、前記各手段による処理を繰り返して
行なうように制御する分割制御手段17と、各色領域に
分割する前にL*a*b*空間の各座標軸に対する分散の
比率に応じて輝度成分L*を示す座標軸における階級数
を、色度成分a*b*を示す座標軸における階級数に対し
て何倍(1/8倍〜32倍)にするかを指定する強調係
数指定手段18と、この強調係数指定手段18によって
指定された倍率(強調係数)により各座標軸の階級数を
求める強調係数演算手段19と、強調係数演算手段19
により求められた各座標軸の階級数を記憶する強調係数
記憶手段20と、前記周期性係数記憶手段4から読み出
した周期性係数により、ヒストグラム記憶手段8から読
みだした前記ヒストグラムを重み付け補正し、かつ、ヒ
ストグラムの階級数を前記強調係数記憶手段20に記憶
された階級数に変更してヒストグラムを書き換え、書き
換えられたヒストグラムをヒストグラム記憶手段に記憶
させるヒストグラム更新手段21と、上記各手段2〜2
1の動作を行なって得られる限定色を平均・分散記憶手
段から読み出し、色変換手段5の逆変換を行なう逆色変
換手段22と、限定色で各画素の色を置き換える代表色
割当手段23と、前記限定色を色空間上での距離によっ
てソートし、代表色をカラーマップ30aに登録する限
定色カラーパレット手段24と、前記代表色に置き換え
られた画像データが近似表示された画面上で、部分的な
色修正を可能とする色修正手段25と、上記各手段2〜
21の動作を行なって得られる限定色に対し、さらに上
記各手段2〜21の動作を反復して行なうことを制御す
る反復制御手段26とを主体として構成されている。The limited color determining apparatus described above includes an image storage means 1 for storing image data, a lower 3 bit storage means 2 for storing lower 3 bits of the image data, and each pixel in the lower 3 bit image data. From this, the value of the lower 3 bits of the surrounding pixels is read along the radiation direction, the periodicity of the lower 3 bits of the read pixel is obtained, and the periodicity calculating means 3 for normalizing the periodicity, and the periodicity. A periodicity coefficient storage means 4 for storing the periodicity normalized by the arithmetic means 3 as a coefficient, and a color conversion means 5 for converting the image data composed of RGB values into values in the L * a * b * space. And the L * a * b * space is subdivided into a large number of clusters according to the class number when the frequency distribution of each pixel is obtained on each coordinate axis of L * , a * , and b * , and these clusters are assigned cluster numbers, L The pixel value converted to the * a * b * space value is
A cluster image storage means 6 which replaces and stores the cluster number of the cluster including the pixel, a histogram calculation means 7 for obtaining the frequency distribution of pixels for each cluster for each coordinate axis of the L * a * b * space, and A histogram storage means 8 for storing the obtained histogram, an average / variance calculation means 9 for obtaining an average color / variance from the histogram, and an average / variance storage means 10 for storing the obtained average / variance.
A first spindle calculating means 11 for obtaining a first spindle, a first spindle storing means 12 for storing the obtained first spindle, a weighted variance computing means 13 for obtaining a weighted variance, and a division threshold by discriminant analysis. Dividing threshold value determining means 14 for obtaining the dividing threshold value, dividing threshold value storage means 15 for storing the obtained dividing threshold value,
The color region dividing unit 16 that divides the color region according to the division threshold according to the weighted dispersion and the first main axis, and until there is no color region that can be divided or the number of divided color regions reaches a predetermined number of display colors, A division control means 17 for controlling the processing by each means to be repeatedly performed, and a coordinate axis indicating a luminance component L * according to a ratio of dispersion to each coordinate axis of the L * a * b * space before dividing into each color area. An emphasis coefficient specifying means 18 for specifying how many times (1/8 times to 32 times) the class number is multiplied with respect to the class number on the coordinate axis indicating the chromaticity components a * b * , and the emphasis coefficient specifying means 18 Emphasis coefficient calculation means 19 for obtaining the class number of each coordinate axis by the magnification (emphasis coefficient) specified by, and emphasis coefficient calculation means 19
The weighting correction of the histogram read from the histogram storage means 8 is performed by the emphasis coefficient storage means 20 that stores the rank of each coordinate axis obtained by the above, and the periodicity coefficient read from the periodicity coefficient storage means 4, and , The histogram updating means 21 for changing the class number of the histogram to the class number stored in the emphasis coefficient storage means 20, rewriting the histogram, and storing the rewritten histogram in the histogram storage means, and the above-mentioned means 2 to 2
The inverse color conversion unit 22 that reads out the limited color obtained by performing the operation 1 from the average / dispersion storage unit and performs the inverse conversion of the color conversion unit 5, and the representative color allocation unit 23 that replaces the color of each pixel with the limited color. , The limited color color pallet means 24 for sorting the limited colors according to the distance in the color space and registering the representative colors in the color map 30a, and the image data replaced with the representative colors on the screen which is approximately displayed, Color correction means 25 that enables partial color correction, and each of the above means 2
It is mainly composed of a repetitive control means 26 for controlling the repetitive operation of each of the above means 2 to 21 for the limited color obtained by performing the operation of 21.
【0032】画像記憶手段1は、画像メモリ10aを有
し、画像データの各画素の(R,G,B)値(各色成分
が8ビットずつ)が格納されている。下位3ビット記憶
手段2は、画像記憶手段1に格納されている画像データ
の各画素の(R,G,B)値の下位3ビットが格納され
ている。The image storage means 1 has an image memory 10a and stores (R, G, B) values (each color component is 8 bits) of each pixel of image data. The lower 3 bits storage unit 2 stores the lower 3 bits of the (R, G, B) value of each pixel of the image data stored in the image storage unit 1.
【0033】周期性演算手段3は、下位3ビット記憶手
段2から各画素の下位3ビットのデータを読みだし、画
像上で、各画素の周囲に鉛直、水平、左斜め、右斜めの
放射状の方向に連続して配置された画素において、下位
3ビットに4画素以下の周期で同じ値が現われる回数を
計測し、これにより後述する周期値を各画素毎に求め
る。また、前記周期値の最大値を1としたときの割合を
各画素毎に周期性係数として求める。The periodicity calculation means 3 reads the lower 3 bits of data of each pixel from the lower 3 bits storage means 2 and radiates vertically, horizontally, diagonally left, diagonally right around each pixel on the image. The number of times that the same value appears in the lower 3 bits at a period of 4 pixels or less in the pixels arranged continuously in the direction is measured, and the period value described later is obtained for each pixel. Further, a ratio when the maximum value of the cycle value is set to 1 is calculated as a cyclic coefficient for each pixel.
【0034】周期性係数記憶手段4は、各画素毎の周期
性係数を画素と同様の配列として記憶する。色変換手段
5は、画像データの各画素のRGBの値をL*a*b*空
間の座標に変換する。クラスタ画像記憶手段6は、前記
L*a*b*空間を各座標の階級によってクラスタに細分
化し、各クラスタに含まれる画素の値をクラスタ番号に
置き換えて記憶する。ヒストグラム演算手段7は、各ク
ラスタに属する各画素の度数分布を求めヒストグラムを
作成し、ヒストグラム記憶手段8に記憶させる。The periodicity coefficient storage means 4 stores the periodicity coefficient for each pixel in the same array as the pixel. The color conversion means 5 converts the RGB value of each pixel of the image data into coordinates in the L * a * b * space. The cluster image storage unit 6 subdivides the L * a * b * space into clusters according to the class of each coordinate, and stores the values of pixels included in each cluster by replacing them with cluster numbers. The histogram calculation means 7 obtains the frequency distribution of each pixel belonging to each cluster, creates a histogram, and stores it in the histogram storage means 8.
【0035】平均・分散演算手段9は、L*a*b*空間
もしくはL*a*b*空間を閾値により分割した色領域に
おいて、各座標軸毎に、画素の分布の平均及び分散を求
める。第一主軸演算手段11は、L*a*b*空間もしく
はL*a*b*空間を閾値により分割した色領域におい
て、平均・分散記憶手段10から読みだした前記分散の
最大の座標軸を求め第一主軸とする。第一主軸記憶手段
12には、求められた第一主軸が格納される。The average / dispersion calculating means 9 finds the average and variance of the pixel distribution for each coordinate axis in the color area obtained by dividing the L * a * b * space or the L * a * b * space by a threshold value. The first main axis computing means 11 obtains the maximum coordinate axis of the variance read from the average / dispersion storage means 10 in the color region obtained by dividing the L * a * b * space or the L * a * b * space by a threshold value. The first spindle. The first spindle storage means 12 stores the obtained first spindle.
【0036】重み付き分散演算手段13は、色領域に含
まれる画素数の全画素数に対する相対頻度を、分散に乗
じることによって重み付け分散を求める。分割閾値決定
手段14は、前記判別分析によって分割閾値を決定す
る。分割閾値記憶手段15は、分割閾値決定手段14に
よって得られた分割閾値を記憶する。The weighted variance calculating means 13 obtains the weighted variance by multiplying the variance by the relative frequency of the number of pixels included in the color region with respect to the total number of pixels. The division threshold determination means 14 determines the division threshold by the discriminant analysis. The division threshold storage unit 15 stores the division threshold obtained by the division threshold determination unit 14.
【0037】色領域分割手段16は、前記重み付け分散
演算手段13により求められた各領域の重み付け分散の
値をソートし、最も重み付け分散の大きな色領域を求
め、該色領域(最初の分割の場合は色空間)の第一主軸
を第一主軸記憶手段20から読みだし、前記色領域(色
空間)を分割閾値記憶手段15から読みだした前記第一
主軸の分割閾値で二分する。分割制御手段17は、色領
域分割手段16によって分割された全色領域数が規定の
色数に到達するか、あるいは、もうそれ以上分割できな
くなるまで、各色領域について上記の演算および分割を
繰り返し行なうのを制御する。The color area dividing means 16 sorts the weighting variance values of the respective areas obtained by the weighting variance calculating means 13 to obtain the color area having the largest weighting variance, and the color area (in the case of the first division) The first main axis of the color space) is read from the first main axis storage means 20, and the color region (color space) is divided into two by the division threshold of the first main axis read from the division threshold value storage means 15. The division control unit 17 repeatedly performs the above-described calculation and division for each color region until the total number of color regions divided by the color region division unit 16 reaches a prescribed number of colors or no more division is possible. Control of.
【0038】代表色割当手段23は、上記の分割が終了
後、各色領域毎の平均色を平均.分散記憶手段10から
読みだし、その平均色を各色領域の代表色として採用す
ると共に、元の画像データにおいて、各色領域に含まれ
る画素に、その色領域の平均色を割り付け、元の画像デ
ータの画素の色を代表色に置き換える。なお、各画素の
色を代表色に置き換えられた画像データは、画像メモリ
30dに記憶されるようになっている。After the above division is completed, the representative color allocating means 23 averages the average colors of the respective color areas. The average color of the original image data is read from the distributed storage unit 10 and the average color thereof is adopted as the representative color of each color area, and the average color of the color area is assigned to the pixels included in each color area in the original image data. Replace the pixel color with the representative color. The image data in which the color of each pixel is replaced with the representative color is stored in the image memory 30d.
【0039】強調係数指定手段18は、平均・分散演算
手段9によって求められたL*a*b*空間の各座標軸の
分散について、各座標軸同士の比率を求め、各座標軸の
階級数を、前記比率に応じて他の座標軸に対し、1/8
倍,1/4倍,1/2倍,2倍,4倍,8倍,16倍,
32倍にするか、その倍率を指定する。強調係数演算手
段19は、前記倍率に従って各座標軸の階級数を求め
る。The emphasis coefficient designating means 18 obtains the ratio of each coordinate axis with respect to the variance of each coordinate axis of the L * a * b * space obtained by the average / dispersion computing means 9, and calculates the rank of each coordinate axis as described above. 1/8 with respect to other coordinate axes depending on the ratio
2 times, 1/4 times, 1/2 times, 2 times, 4 times, 8 times, 16 times,
Specify 32x or specify the magnification. The emphasis coefficient calculation means 19 obtains the class number of each coordinate axis according to the magnification.
【0040】強調係数記憶手段20は強調係数演算手段
19によって得られた各座標軸の階級数を記憶する。ヒ
ストグラム更新手段21は、前記周期性係数記憶手段4
から読みだした各画素毎の周期性係数を、対応する各画
素が含まれる前記クラスタ毎に加算し、これらクラスタ
毎の周期性係数の和と各クラスタに含まれる画素の数と
を加算する。そして、上記のように各クラスタ毎に求め
られた値を新たにヒストグラムとする。The emphasis coefficient storage means 20 stores the rank of each coordinate axis obtained by the emphasis coefficient calculation means 19. The histogram updating means 21 is the periodicity coefficient storing means 4
The periodicity coefficient for each pixel read from is added for each cluster including the corresponding pixel, and the sum of the periodicity coefficients for each cluster and the number of pixels included in each cluster are added. Then, the value obtained for each cluster as described above is newly set as a histogram.
【0041】さらに、ヒストグラム更新手段21は、上
記強調係数記憶手段20に記憶された各座標軸の階級数
により、L*a*b*空間を前記クラスタとは別の新クラ
スタに再分割し、前記ヒストグラムを再分割された新ク
ラスタ毎の画素数に変更する。Further, the histogram updating means 21 subdivides the L * a * b * space into new clusters different from the clusters according to the ranks of the coordinate axes stored in the emphasis coefficient storage means 20, and The histogram is changed to the number of pixels for each new cluster that has been subdivided.
【0042】すなわち、前記強調係数指定手段18によ
り指定された倍率に従ってL*a*b*空間を新クラスタ
に分割し、この新クラスタに基づいてヒストグラムを更
新する。従って、前記周期性係数により重み付け補正す
ると共に強調係数指定手段18に指定された倍率で輝度
成分を強調する場合には、L*a*b*空間を新クラスタ
に分割した後に、各新クラスタ毎の周期性係数の和を求
めて、新クラスタに基づくヒストグラムを新クラスタ毎
の周期性係数の和で重み付け補正する。そして、ヒスト
グラム更新手段21は、ヒストグラム記憶手段8に記憶
されたヒストグラムを、上述のように更新されたヒスト
グラムに書き換える。That is, the L * a * b * space is divided into new clusters according to the magnification designated by the emphasis coefficient designating means 18, and the histogram is updated based on the new clusters. Therefore, in the case where the weighting correction is performed by the periodicity coefficient and the luminance component is emphasized at the magnification specified by the emphasis coefficient specifying means 18, after the L * a * b * space is divided into new clusters, each new cluster is divided. Then, the histogram of the new clusters is weighted and corrected with the sum of the periodicity coefficients of each new cluster. Then, the histogram update means 21 rewrites the histogram stored in the histogram storage means 8 with the updated histogram as described above.
【0043】限定色カラーパレット演算手段24は、上
記各手段の動作によって得られた代表色を色空間上での
距離についてソートし、代表色を色コードとしてカラー
マップ30aに登録する。色修正手段25は、上記各手
段の動作によって得られた限定色からなる表示画像の色
を、この画像を表示したディスプレイ30b画面上で、
部分的に変更したい場合に用いられるものである。The limited color palette calculator 24 sorts the representative colors obtained by the operations of the above units according to the distance in the color space, and registers the representative colors as color codes in the color map 30a. The color correction means 25 changes the color of the display image consisting of the limited color obtained by the operation of each of the above means on the screen of the display 30b displaying this image,
It is used when you want to change it partially.
【0044】そして、色修正手段25は、前記表示画像
の色を変更したい部分をマウスの指示により矩形で囲
い、前記矩形内の変更したい色をマウスのフォーカスを
合わせてクリックし、色を選択することにより、カラー
パレット画面において、選択された色の部分が反転強調
表示され、その近傍の色から順に選択することにより、
色を色空間上最も近い色から順に置き換えることを可能
とするものである。Then, the color correction means 25 encloses a portion of the display image whose color is to be changed with a rectangle according to an instruction of the mouse, selects the color by clicking the color to be changed within the rectangle with the focus of the mouse. By doing so, the selected color portion is highlighted in reverse on the color palette screen, and by selecting in order from the colors in the vicinity,
The color can be replaced in order from the closest color in the color space.
【0045】以上の構成の限定色決定装置は、限定色決
定方法を用いて、カラーマップディスプレイ装置30に
フルカラーの画像データを限定された表示色で表示す
る。なお、カラーマップディスプレイ装置30は、本実
施例において、画像記憶手段に記憶された画像データを
フルカラーで表示することも可能となっており、フルカ
ラーの画像と限定された色の画像を見比べて、前記色修
正手段28により色の修正を行なうこともできるように
なっている。なお、符号30cは、画像メモリ10a、
30dの画像データをディスプレイ30bに表示するた
めのD/A変換器である。The limited color determination device having the above configuration displays the full-color image data in the limited display color on the color map display device 30 using the limited color determination method. In the present embodiment, the color map display device 30 is also capable of displaying the image data stored in the image storage means in full color, and comparing the full color image with the limited color image, The color can be corrected by the color correcting means 28. The reference numeral 30c indicates the image memory 10a,
It is a D / A converter for displaying the image data of 30d on the display 30b.
【0046】次に、上記限定色決定装置を用いた限定色
決定方法について説明する。 (イ)表示すべき画像データの色変化の度合いの計測 従来の方法では、画像データの色の変化の度合い、すな
わち、画像内の各画素の色と、その画素の近傍の画素の
色が大きく異なっているか、もしくは略同じような色と
なっているかを計測する際には、RGB各8ビットで表
された画像のRGBデータの上位5ビットを用いて計測
するものが多かった。Next, a limited color determination method using the limited color determination device will be described. (A) Measurement of the degree of color change of image data to be displayed In the conventional method, the degree of color change of image data, that is, the color of each pixel in the image and the color of pixels in the vicinity of that pixel are large. When measuring whether they are different or have substantially the same color, there are many cases where the upper 5 bits of the RGB data of the image represented by 8 bits for each RGB are used for measurement.
【0047】しかし、色変化の緩やかさを表す情報は、
むしろ、これによって失われる下位3ビットに含まれて
いる。すなわち、色変化の少ない画像データにおいて、
各画素の上位ビットを比較しても、色変化の度合いを計
測することができず、極端に色変化が緩やかな部分と、
ある程度色変化が緩やかな部分とを区別することができ
ない。そこで、本実施例では、各色成分における下位3
ビットの値の周期性を調べることにより、表示すべき画
像データにおいて色変化の緩やかさを特定する。However, the information showing the gradualness of color change is
Rather, it is included in the lower 3 bits lost by this. That is, in image data with little color change,
Even if the upper bits of each pixel were compared, the degree of color change could not be measured, and the part where the color change was extremely gentle,
It cannot be distinguished from the part where the color change is moderate to some extent. Therefore, in this embodiment, the lower 3 of each color component is
By examining the periodicity of the bit values, the gradualness of color change in the image data to be displayed is specified.
【0048】ところで、下位3ビットの値は、0から7
までの8個の値に限られる。そして画像の各画素の位置
の違いによる色変化が緩やかな場合、各画素のデータの
値は、連続して配置された各画素間で、小さな変動量で
連続的に変化する。従って、色変化の緩やかな部分で
は、下位3ビットの0から7までの範囲内にある一定の
値域が略規則的に現われることになる。そこで、本実施
例では、上記周期性演算手段3が、図2に示すように、
各画素41…を中心として、鉛直(上・下)、水平(左
・右)、左斜め(左上・右下)、右斜め(右上・左下)
の8つの放射方向に連続して配置された画素の下位3ビ
ット(下位3ビット記憶手段2に記憶されたもの)を読
み取り、RGBの各色成分ごとに前記規則性(周期性)
を調べる。By the way, the values of the lower 3 bits are from 0 to 7
Is limited to 8 values up to. When the color change due to the difference in the position of each pixel of the image is gradual, the value of the data of each pixel continuously changes with a small variation amount between the pixels arranged continuously. Therefore, in the part where the color change is gradual, a fixed value range within the range of 0 to 7 of the lower 3 bits appears substantially regularly. In view of this, in the present embodiment, the periodicity calculation means 3 is, as shown in FIG.
Vertical (top / bottom), horizontal (left / right), diagonal left (upper left / lower right), diagonal right (upper right / lower left) with each pixel 41 as the center
The lower 3 bits (stored in the lower 3 bit storage means 2) of the pixels continuously arranged in the eight emission directions of are read, and the regularity (periodicity) is obtained for each of the RGB color components.
Find out.
【0049】周期性演算手段3による具体的な周期性の
演算方法は、図3に示すように、まず、注目画素41a
の下位ビットの値と同じ値が現われるまで一画素ずつ前
記方向に沿って順次移動しながら画素41…のデジタル
データの下位3ビットの値を読み取る。そして、最初に
同じ値が見つかるまでに移動した画素数が4以下の場
合、次に同じ値がでるまで、引き続き順次隣の画素に移
動しながら下位3ビットを読み取り、次に同じ値が見つ
かった時の移動画素数が最初の移動画素数に等しけれ
ば、前記注目画素41aに周期性があるとみなす。A concrete method of calculating the periodicity by the periodicity calculating means 3 is as shown in FIG.
The value of the lower 3 bits of the digital data of the pixel 41 is read while sequentially moving pixel by pixel until the same value as the value of the lower bit of appears. Then, if the number of pixels moved by the time the first same value is found is 4 or less, the lower 3 bits are read while successively moving to the next pixel until the next same value appears, and then the same value is found. If the number of moving pixels at that time is equal to the initial number of moving pixels, it is considered that the pixel of interest 41a has periodicity.
【0050】そして、同じ移動数で同じ値が周期的に出
現する間、前記方向に沿って移動しながら画素41…の
色データの下位3ビットを読み取っていく。そして、同
じ移動数で同じ値の出現する出現回数をカウントする。
そして、同じ値が周期的に出現しなくなったところで、
画素のデータの読み取りを終了する。以上の作業を、前
記八方向全てについて行い、その同じ値の出現回数の総
カウント数を注目画素41aの周期値として定義する。
また、以上の作業は画像データの全画素41…を注目画
素41aとして行なう。なお、このような周期値の計測
はRGB各色成分ごとに行なわれる。Then, while the same value appears periodically with the same movement number, the lower 3 bits of the color data of the pixels 41 are read while moving along the direction. Then, the number of appearances in which the same value appears with the same movement number is counted.
And when the same value does not appear periodically,
The reading of the pixel data is completed. The above operation is performed for all the eight directions, and the total number of appearances of the same value is defined as the periodic value of the pixel of interest 41a.
Further, the above work is performed by using all the pixels 41 of the image data as the target pixel 41a. It should be noted that such measurement of the cycle value is performed for each of the RGB color components.
【0051】以上の作業は、例えば、図3に示す場合、
画像データ上の画素41aについて注目した場合に、そ
の画素41aから水平(図2において向かって右)方向
に連続した画素41…の値を見ると、例えば3画素ごと
に、同じ値をもつ画素41bが出現する場合がある。こ
の様な場合には、3画素の周期で現われる同じ値の出現
回数をカウントし、残りの放射方向についても同様の作
業を行なって同じ値の出現回数をカウントし、これらを
すべて加算し、注目画素41aの周期値とする。The above work is performed, for example, in the case shown in FIG.
When attention is paid to the pixel 41a on the image data, when looking at the values of the pixels 41 ... Continuing from the pixel 41a in the horizontal direction (to the right in FIG. 2), for example, every three pixels, a pixel 41b having the same value is obtained. May appear. In such a case, the number of appearances of the same value that appears in the cycle of 3 pixels is counted, the same operation is performed for the remaining radiation directions, the number of appearances of the same value is counted, and all are added. The period value of the pixel 41a is used.
【0052】次に、各画素毎に各色成分の周期値を加算
する。そして、各画素毎の周期値の和を、ピークを1と
した比率で計算し、それを後述する重み付けに用いる周
期性係数として定義する。前記周期性係数biは、以下
の式によって求められる。 bi=ai/amax なお、ここで、iは各画素を示し、aiは各画素における
周期値の和を示し、amaxは各周期値の和aiのうちの最
大の周期値ai(最大値)を示すものである。Next, the period value of each color component is added for each pixel. Then, the sum of the periodic values for each pixel is calculated with a ratio with the peak being 1, and it is defined as a periodicity coefficient used for weighting described later. The periodicity coefficient b i is calculated by the following equation. b i = a i / a max Here, i represents each pixel, a i represents the sum of the periodic values in each pixel, and a max represents the maximum periodic value among the sums a i of the periodic values. It shows a i (maximum value).
【0053】こうして得られた周期性係数biは、周期
性係数記憶手段4に記憶される。そして、ヒストグラム
更新手段21において、均等色空間に変換された各画素
の位置に周期性係数biが割り当てられ、均等色空間上
の各画素の位置に周期性係数biが配置された状態とな
る。The periodicity coefficient b i thus obtained is stored in the periodicity coefficient storage means 4. Then, in the histogram updating means 21, the periodicity coefficient b i is assigned to the position of each pixel converted into the uniform color space, and the periodicity coefficient b i is arranged at the position of each pixel in the uniform color space. Become.
【0054】そして、クラスタに分割された均等色空間
上において、各クラスタ内に含まれる画素数を示すヒス
トグラムを、ヒストグラム更新手段21で更新する際に
は、各クラスタ内に含まれる画素のそれぞれの周期性係
数biを加算し、この周期性係数biの和を各クラスタの
重み付け係数とする。そして、これら重み付け係数を各
クラスタの画素数にそれぞれ加算し、これを新たなヒス
トグラムとする。また、第一主軸に対して判別分析を行
なう場合には、前記構成されたヒストグラムから、第1
主軸の階級毎の画素数、すなわち第1主軸に対する度数
分布を求め、この度数分布から第1主軸の各階級に含ま
れる画素数を全画素数で割り、画素の発生確率を求め、
この発生確率を用いる。When the histogram updating means 21 updates the histogram showing the number of pixels included in each cluster in the uniform color space divided into clusters, each of the pixels included in each cluster is updated. The periodicity coefficients b i are added, and the sum of the periodicity coefficients b i is used as the weighting coefficient for each cluster. Then, these weighting factors are respectively added to the number of pixels of each cluster to form a new histogram. Further, when performing the discriminant analysis on the first principal axis, the first
The number of pixels for each class of the main axis, that is, the frequency distribution with respect to the first main axis is obtained, the number of pixels included in each class of the first main axis is divided by the total number of pixels from this frequency distribution, and the occurrence probability of the pixel is obtained.
This probability of occurrence is used.
【0055】(ロ)代表色の選択 代表色を選ぶために、まず、画像データの色分布を色空
間上に配置するが、この際、人の視覚特性を考慮して、
均等色空間を使用する。均等色空間としては、前記L*
u*v*またはL*a*b*を使用する。そこで、RGBデー
タからなる画像データの各画素の値をL*u*v*またはL
*a*b*に変換する。本実施例では、1例として、色変
換手段5による変換について、L*a*b*を用いて詳細
を記述する。 なお、本発明の均等色空間が、L*a*b
*空間に限定されるものではない。(B) Selection of representative color In order to select the representative color, first, the color distribution of the image data is arranged in the color space. At this time, considering the visual characteristics of the person,
Use uniform color space. As a uniform color space, the above L *
Use u * v * or L * a * b * . Therefore, the value of each pixel of the image data composed of RGB data is set to L * u * v * or L
Convert to * a * b * . In this embodiment, as an example, the conversion by the color conversion means 5 will be described in detail using L * a * b * . Note that the uniform color space of the present invention is L * a * b
* Not limited to space.
【0056】RGBデータから、L*a*b*への変換
は、CIE1931年勧告のXYZ系を介在して、以下
の式によって行なわれる。 X=0.61R+0.17G+0.20B …… (1a) Y=0.30R+0.59G+0.11B …… (1b) Z= 0.066G+1.12B …… (1c)Conversion from RGB data to L * a * b * is performed by the following equations via the XYZ system recommended by CIE 1931. X = 0.61R + 0.17G + 0.20B (1a) Y = 0.30R + 0.59G + 0.11B (1b) Z = 0.066G + 1.12B (1c)
【0057】Y/Yn>0.008856の場合 L*=116(Y/Yn)1/3−16 …… (2a) Y/Yn≦0.008856の場合 L*=903.3(Y/Yn) …… (2b)When Y / Yn> 0.008856 L * = 116 (Y / Yn) 1 / 3-16 (2a) When Y / Yn ≦ 0.008856 L * = 903.3 (Y / Yn ) …… (2b)
【0058】X/Xn>0.008856,Y/Yn>
0.008856,Z/Zn>0.008856の場合 a*=500〔(X/Xn)1/3−(Y/Yn)1/3〕 …… (2c) b*=200〔(Y/Yn)1/3−(Z/Zn)1/3〕 …… (2d)X / Xn> 0.008856, Y / Yn>
0.008856, Z / Zn> 0.008856 a * = 500 [(X / Xn) 1 / 3- (Y / Yn) 1/3 ] (2c) b * = 200 [(Y / Yn ) 1 / 3- (Z / Zn) 1/3 ] (2d)
【0059】X/Xn,Y/Yn,Z/Znに0.008
856以下のものがある場合、上記式(2c)及び(2
d)の(X/Xn)1/3,(Y/Yn)1/3,(Z/Zn)
1/3の項をそれぞれ7.787(X/Xn)+16/11
6,7.787(Y/Yn)+16/116,7.78
7(Z/Zn)+16/116に置き換える。ここで、
R,G,Bおよび白の色度はNTSCテレビジョン規格
に準拠している。0.008 for X / Xn, Y / Yn, Z / Zn
When there are 856 or less, the above formulas (2c) and (2
d) (X / Xn) 1/3 , (Y / Yn) 1/3 , (Z / Zn)
1/3 term is 7.787 (X / Xn) +16/11 respectively
6,7.787 (Y / Yn) +16/116, 7.78
Replace with 7 (Z / Zn) +16/116. here,
The chromaticity of R, G, B and white complies with the NTSC television standard.
【0060】(ハ)L*a*b*空間における画素の度数
分布 各画素の値は、前記RGBをL*a*b*に変換した段階
で、8ビットの整数の値から外れてしまうことになる。
そこで、L*a*b*空間において度数分布を求めるに
は、各座標軸の階級数を決めて、各座標軸の階級により
L*a*b*空間をクラスタに分割し、前記クラスタに含
まれる画素数を求める必要がある。(C) Frequency distribution of pixels in L * a * b * space The value of each pixel deviates from an 8-bit integer value at the stage of converting RGB to L * a * b *. become.
Therefore, in order to obtain the frequency distribution in the L * a * b * space, the class number of each coordinate axis is determined, the L * a * b * space is divided into clusters according to the class of each coordinate axis, and the pixels included in the cluster are determined. You need to find the number.
【0061】L*a*b*空間を必要な色数に分割し、そ
れぞれの色領域の平均色を代表色として選ぶのに、渡辺
のアルゴリズム(電子情報通信学会論文誌D Vol.
J70−D No.4 pp.720−726 198
7年4月)に改良を加えて使用した。主な改良点は、元
データとしてRGB上位5ビットを用いる代わりに、R
GB8ビットの値からL*a*b*に変換した値を使用し
た。これにより、データの精度8ビットをそのまま利用
することができる。To divide the L * a * b * space into the required number of colors and select the average color of each color region as the representative color, Watanabe's algorithm (Journal of the Institute of Electronics, Information and Communication Engineers, D Vol.
J70-D No. 4 pp. 720-726 198
(April 7) and improved. The main improvement is that instead of using the upper 5 bits of RGB as the original data, R
A value obtained by converting the GB 8-bit value into L * a * b * was used. As a result, the 8-bit precision of the data can be used as it is.
【0062】また、分割を行なう初期空間の各座標軸の
階級数を例えばRGB32×32×32からL*a*b*
256×64×64のように、輝度成分L*を示す座標
軸の階級数を色度成分a*b*を示す座標軸の階級数に対
して4倍にし、輝度成分L*を強調するように変えた。
これは、吉良らの報告(信学技法,IE83〜92、
「限定された数の代表色による適応型自然色画像表示」
吉良、井上、福井)にあるように、人間の視覚特性が輝
度分布に対し、色度成分の4倍程度敏感であることを考
慮したためである。Further, the class number of each coordinate axis of the initial space for division is, for example, from RGB 32 × 32 × 32 to L * a * b *.
Like 256 × 64 × 64, the class of the coordinate axis showing the luminance component L * is made four times as large as the class of the coordinate axis showing the chromaticity component a * b * , and changed so as to emphasize the luminance component L *. It was
This is the report of Kira et al. (Science Techniques, IE83-92,
"Adaptive natural color image display with a limited number of representative colors"
(Kira, Inoue, Fukui) that human visual characteristics are sensitive to the luminance distribution about four times as much as the chromaticity component.
【0063】具体的に説明すると、入力される画像デー
タは、通常、画素順にRGB値が並んでいる。そこで、
RGB値を座標とするRGB空間を考えた場合、RGB
空間は、R,G,Bを座標軸とし、各座標軸がそれぞれ
8ビットの値、すなわ0〜255の値を持つ三次元空間
となる。そこで、空間上の点にそのRGB値を持つ画素
の画素数を対応させれば、各色成分のヒストグラムが求
められる。More specifically, the input image data usually has RGB values arranged in pixel order. Therefore,
When considering an RGB space whose coordinates are RGB values, RGB
The space is a three-dimensional space in which R, G, and B are coordinate axes, and each coordinate axis has an 8-bit value, that is, a value of 0 to 255. Therefore, by associating the number of pixels having the RGB values with the point on the space, the histogram of each color component can be obtained.
【0064】すなわち、histogram(r,g,b)=RGB(r,
g,b)の画素の総数となる。次に、均等色空間L*a*b*
のヒストグラムの場合は、上記RGBで表された各画素
の値(r,g,b)を上記式で(L*a*b*)に変換することにより
求められる。すなわち、histogram(L*a*b*)=L*a*b*
(L*a*b*)の画素の総数となる。しかし、RGBの値は、
各8ビットのデジタルデータなので、0〜255の整数
値となるが、上記変換の演算により(L*a*b*)の値は、0
〜255の整数値から外れてしまうと共に輝度成分を強
調するので適当な階級数を設ける必要がある。That is, histogram (r, g, b) = RGB (r,
It is the total number of pixels of g, b). Next, the uniform color space L * a * b *
In the case of the histogram of, the value (r, g, b) of each pixel represented by RGB is converted into (L * a * b * ) by the above equation. That is, histogram (L * a * b * ) = L * a * b *
It is the total number of pixels of (L * a * b * ). However, the RGB values are
Since each is 8-bit digital data, it is an integer value of 0 to 255, but the value of (L * a * b *) is 0 by the above conversion operation.
Since it deviates from the integer value of ˜255 and emphasizes the luminance component, it is necessary to provide an appropriate class number.
【0065】本実施例では、上記のように輝度すなわち
L*成分について強調する共に、L*a*b*への変換によ
ってデータの容量が増加するのを防止するために、各L
*a*b*の階級間隔を決める必要がある。データ容量と
しては、RGBの各値が8ビットにされているので、最
大を8ビットとする。従って、強調される輝度L*につ
いては、0〜255の値を取ることになる。そこで、前
記式で求められた画素のL*成分の値を、その大きさに
対応して0〜255に割り当てることになる。また、a
*,b*成分については、輝度成分を4倍に強調するため
にa*,b*:L*を1:4とする。すなわち、a*,b*
成分は、6ビット、0〜63までの値をとるようにす
る。In this embodiment, in order to emphasize the luminance, that is, the L * component as described above, and to prevent the data volume from increasing due to the conversion into L * a * b * , each L
It is necessary to determine the class spacing of * a * b * . As the data capacity, since each value of RGB is set to 8 bits, the maximum is set to 8 bits. Therefore, the luminance L * to be emphasized takes a value of 0 to 255. Therefore, the value of the L * component of the pixel obtained by the above equation is assigned to 0 to 255 corresponding to its size. Also, a
Regarding the * and b * components, a * and b * : L * are set to 1: 4 in order to emphasize the luminance component four times. That is, a * , b *
The component takes 6 bits and values of 0 to 63.
【0066】ここで、実際の階級間隔の計算は、各L*
a*b*を8ビット以下のデータとする際に以下の式によ
って求める。 L*interval = (L*max- L*min)/(256/m) a*interval = (a*max - a*min)/(256/n) b*interval = (b*max - b*min)/(256/n) L*interval,a*interval,b*intervalは、L*,
a*,b*の階級間隔を示す。L*max,a*max ,b*max
はそれぞれL*,a*,b*の最大値を示す。L*min,a*
min ,b*min はそれぞれL*,a*,b*の最小値を示
す。また、m,nは、輝度成分(L*)と色度成分
(a*,b*)との比率により変更されるもので、本実施
例では、L*:a*,b*を4:1とするために、輝度成
分のmを1とし、色度成分のnを4としている。Here, the calculation of the actual class interval is performed for each L *.
When a * b * is set to data of 8 bits or less, it is calculated by the following formula. L * interval = (L * max-L * min) / (256 / m) a * interval = (a * max-a * min) / (256 / n) b * interval = (b * max-b * min) ) / (256 / n) L * interval, a * interval, b * interval is L * ,
The class spacing of a * and b * is shown. L * max, a * max, b * max
Indicates the maximum values of L * , a * , and b * , respectively. L * min, a *
min and b * min represent the minimum values of L * , a * , and b * , respectively. Further, m and n are changed according to the ratio of the luminance component (L * ) and the chromaticity component (a * , b * ). In this embodiment, L * : a * , b * is set to 4 :. In order to obtain 1, the luminance component m is 1, and the chromaticity component n is 4.
【0067】そして、以上のように階級間隔の決められ
たL*a*b*空間を、各座標軸の階級で3次元的に分割
し、この分割された領域を色のクラスタとする。そし
て、各クラスタにクラスタ番号をつけておく。そして、
各画素の値を、その画素を含むクラスタのクラスタ番号
に置き換え、これをクラスタ画像記憶手段6が記憶す
る。 そして、ヒストグラム演算手段7によって、画像
データのクラスタ毎の度数分布を求める。Then, the L * a * b * space in which the class interval is determined as described above is three-dimensionally divided by the class of each coordinate axis, and the divided areas are set as color clusters. Then, each cluster is given a cluster number. And
The value of each pixel is replaced with the cluster number of the cluster including the pixel, and this is stored in the cluster image storage means 6. Then, the histogram calculation means 7 obtains the frequency distribution for each cluster of the image data.
【0068】図4及び図5を参照して、輝度を示す座標
軸の階級数を色度を示す座標軸の階級数より大きくし
て、判別分析による代表色を選択した場合について簡単
に説明する。なお、図4及び図5において、均等色空間
における色度を示す座標軸を一つとして2次元の座標系
で説明する。A case will be briefly described with reference to FIGS. 4 and 5 in which the class number of the coordinate axis indicating the luminance is made larger than the class number of the coordinate axis indicating the chromaticity and the representative color by the discriminant analysis is selected. 4 and 5, a two-dimensional coordinate system will be described with one coordinate axis indicating chromaticity in the uniform color space.
【0069】まず、y軸を輝度、x軸を色度とし、それ
ぞれの階級数を8とした場合には、図4に示すように判
別分析により色空間が分割されるものとする。そして、
x軸における階級数を4とすることにより、y軸の階級
数をx軸の階級数の2倍とした場合には、図5に示すよ
うに、x軸の図4において分割可能だった部分が分割で
きなくなり、その分、輝度軸の分割数が増えることにな
る。すなわち、分割された色空間の平均色を代表色とし
た場合に、代表色として同じ色相で輝度の異なる色が多
く選ばれ、異なる色相の色はあまり選ばれなくなり、輝
度が強調された代表色が選択されることになる。First, when the y-axis is the luminance, the x-axis is the chromaticity, and each class is 8, the color space is divided by discriminant analysis as shown in FIG. And
When the number of classes on the x-axis is set to 4 so that the number of classes on the y-axis is twice as large as the number of classes on the x-axis, as shown in FIG. Cannot be divided, and the number of divisions of the luminance axis increases accordingly. That is, when the average color of the divided color space is used as the representative color, many colors having the same hue but different luminance are selected as the representative color, and colors of different hues are less often selected, and the representative color with enhanced luminance. Will be selected.
【0070】(ニ)輝度もしくは色度の強調 本実施例は、前記空間分割方式において、輝度成分のサ
ンプリングを強調することにより、輝度成分の変化の緩
やかな部分が強調されること、即ち輝度方向を第一主軸
とした分割が主要な分割となることに着目し、さらに色
度成分に対し輝度成分を強調したサンプリングを与える
ことにより、逆に、輝度変化の緩やかな部分および色を
特定する方法である。(D) Enhancement of Luminance or Chromaticity In the present embodiment, in the space division method, by emphasizing the sampling of the luminance component, the portion where the change in the luminance component is gentle is emphasized, that is, the luminance direction. Focusing on the fact that the division with the first main axis as the main axis is the main division, and by giving the sampling in which the luminance component is emphasized to the chromaticity component, conversely, the method of specifying the part and color where the luminance change is gentle Is.
【0071】具体的には、L*a*b*(またはL*u
*v*)で、256×16×16のように輝度方向に16
倍に強調サンプリングし、限定色の色数を例えば、10
0色などの少なめの数で指定し、前記(ロ)の分割方式
により代表色を求める。これにより輝度成分に対し、こ
の場合16倍に強調した100色が選ばれる。これら輝
度変化の緩やかな部分の色を強調した上位100色とな
っている。Specifically, L * a * b * (or L * u
* v * ) 16 in the luminance direction, such as 256 × 16 × 16
The number of limited colors is, for example, 10.
Designate with a small number such as 0 color, and obtain the representative color by the division method of (b). As a result, 100 colors, which are 16 times emphasized in this case, are selected for the luminance component. These are the top 100 colors that emphasize the colors of the part where the luminance change is gentle.
【0072】そして、強調係数指定手段18は、上述し
たように、平均・分散演算手段9によって求められた均
等色空間の各座標軸方向の分散について、各座標軸間の
比率を求める、その比率に対応して、色度を示す座標軸
の階級数に対する輝度を示す座標軸の階級数の倍率(強
調係数)を、1/8倍、1/4倍、1/2倍、等倍、2
倍、4倍、8倍、16倍、32倍、64倍のいずれかか
ら選べるようにした。Then, as described above, the emphasis coefficient designating means 18 obtains the ratio between the coordinate axes with respect to the variance in the coordinate axis directions of the uniform color space obtained by the average / dispersion computing means 9, and corresponds to the ratio. Then, the magnification (enhancement factor) of the class of the coordinate axis indicating the luminance with respect to the class of the coordinate axis indicating the chromaticity is 1/8 times, 1/4 times, 1/2 times, 1: 1, 2
It was made possible to select any of 4 times, 4 times, 8 times, 16 times, 32 times, and 64 times.
【0073】そして、強調係数演算手段19は、上記の
ように決められた倍率によって、各座標軸の階級を決め
る。例えば、輝度成分L*に対する色度成分a*b*の倍
率を2倍とした場合には、各L*a*b*の座標軸の階級
数は、256×128×128となり、この階級数及び
階級数によって決まる階級間隔を強調係数記憶手段20
が記憶する。Then, the emphasis coefficient calculation means 19 determines the class of each coordinate axis according to the magnification determined as described above. For example, when the magnification of the chromaticity component a * b * with respect to the luminance component L * is doubled, the class number of the coordinate axis of each L * a * b * is 256 × 128 × 128. An emphasis coefficient storage means 20 for class intervals determined by the class number.
Remembers.
【0074】(ホ)ヒストグラムの変更 前記周期性係数記憶手段4に記憶された各画素毎の重み
付け係数及び強調係数記憶手段19に記憶された階級数
を用いて、ヒストグラム記憶手段8に記憶されたヒスト
グラムを更新する。(E) Change of histogram The weighting coefficient for each pixel stored in the periodicity coefficient storage means 4 and the class number stored in the emphasis coefficient storage means 19 are used to store in the histogram storage means 8. Update the histogram.
【0075】まず、周期性係数記憶手段4に記憶された
周期性係数を用いたヒストグラムの更新について説明す
る。まず、周期性係数記憶手段4に画素毎に記憶された
周期性係数を、均等色空間上に変換された各画素の位置
に配置し、各クラスタに含まれる画素のそれぞれの周期
性係数をクラスタ毎に加算する。そして、クラスタ毎に
加算された周期性係数の和とクラスタ毎の画素数を加算
した値を、各クラスタの画素数としてヒストグラムを作
成し、これを新たなヒストグラムとする。First, the update of the histogram using the periodicity coefficient stored in the periodicity coefficient storage means 4 will be described. First, the periodicity coefficient stored in the periodicity coefficient storage means 4 for each pixel is arranged at the position of each pixel converted into the uniform color space, and the periodicity coefficient of each pixel included in each cluster is clustered. Add every time. Then, a histogram is created with the sum of the periodicity coefficients added for each cluster and the number of pixels for each cluster as the number of pixels for each cluster, and this is used as a new histogram.
【0076】すなわち、図6ないし図7に示すようにヒ
ストグラム記憶手段8に記憶されたヒストグラム43
(実際には均等色空間すなわち3次元空間におけるヒス
トグラムであるが、ここでは、説明を容易にするために
1次元のヒストグラムとした)に対して、周期係数記憶
手段4に記憶された係数44のクラスタ毎の和を表すヒ
ストグラムを加算することで、図8に示す重み付け補正
されたヒストグラム45を得ることができ、これを用い
て、後述する判別分析により代表色の選択を行なう。That is, the histogram 43 stored in the histogram storage means 8 as shown in FIGS.
(In fact, a histogram in a uniform color space, that is, a three-dimensional space, but here, a one-dimensional histogram is used for ease of explanation.) By adding the histograms representing the sums for each cluster, the weight-corrected histogram 45 shown in FIG. 8 can be obtained, and using this, the representative color is selected by the discriminant analysis described later.
【0077】また、ヒストグラム更新手段21は、前記
強調係数記憶手段20に記憶された階級数を用いてヒス
トグラムを再構成する。ヒストグラム演算手段7におい
ては、画像データの色調に関係なく輝度成分に対してい
色度成分を4倍に強調した階級数でヒストグラムを作成
したが、強調係数指定手段18により指定した倍率で階
級数を決める。Further, the histogram updating means 21 reconstructs the histogram using the class numbers stored in the emphasis coefficient storage means 20. In the histogram calculation means 7, the histogram is created with a class number in which the chromaticity component with respect to the luminance component is quadrupled regardless of the color tone of the image data. Decide
【0078】そして、均等色空間を新たな階級による新
クラスタに分割し直し、新クラスタ毎の画素数を新たな
ヒストグラムとする。また、前記周期性係数による重み
付けと共に、強調を行なう場合には、新クラスタ毎の周
期性係数の和を重み付け係数とし、新クラスタ毎の画素
数に重み付け係数を加算して、新たなヒストグラムす
る。そして、ヒストグラム記憶手段8に記憶されたヒス
トグラムを上述のようにして求められた新たなヒストグ
ラムに更新する。Then, the uniform color space is redivided into new clusters of a new class, and the number of pixels for each new cluster is used as a new histogram. Further, when weighting is performed with the periodicity coefficient, the sum of the periodicity coefficients for each new cluster is used as a weighting coefficient, and the weighting coefficient is added to the number of pixels for each new cluster to form a new histogram. Then, the histogram stored in the histogram storage means 8 is updated to the new histogram obtained as described above.
【0079】(へ)判別分析法による代表色の選択 本実施例の判別分析法による代表色の選択は、基本的に
上記従来技術と同様のものであり、各色成分毎のヒスト
グラムを用いて閾値を求め、この閾値において色空間を
順次多数の色領域に分割していくものであるが、本実施
例においては、上記周期性による重み付け及び強調され
た階級数による再構成が行なわれたヒストグラムを用い
て判別分析を行なう。(E) Selection of representative color by discriminant analysis method The selection of representative color by the discriminant analysis method of the present embodiment is basically the same as that of the above-mentioned prior art, and a threshold value is obtained using a histogram for each color component. Is obtained, and the color space is sequentially divided into a number of color regions at this threshold value.In the present embodiment, the histogram weighted by the periodicity and reconstructed by the emphasized rank is used as a histogram. Perform discriminant analysis using.
【0080】ここで、判別分析による閾値Tiの決定方
法を説明する。領域Sの画素数をN、一つの座標軸の任
意の階級iでの画素数をniとすると、その発生確率qi
は、次式(数1)で示される。なお、この際の画素数
は、上記ヒストグラム更新手段21により上述のように
更新されたヒストグラムから求められる。Here, a method of determining the threshold T i by discriminant analysis will be described. If the number of pixels in the region S is N and the number of pixels in an arbitrary class i on one coordinate axis is n i , the occurrence probability q i
Is expressed by the following equation (Equation 1). The number of pixels at this time is obtained from the histogram updated by the histogram updating means 21 as described above.
【0081】すなわち、新たな階級数により分割された
新クラスタの画素数に、重み付け係数を加算した値をク
ラスタ毎の画素数とし、一つの座標軸の任意の階級に含
まれるクラスタ毎の画素数を加算したものを画素数ni
として用いる。That is, the value obtained by adding the weighting coefficient to the number of pixels of the new cluster divided by the new class is set as the number of pixels of each cluster, and the number of pixels of each cluster included in an arbitrary class of one coordinate axis is set. The sum of the added pixels is the number of pixels n i
Used as.
【数1】 そして、座標軸上の値k(階級を単位とする値)で、区
間〔a、b〕を2つの区間C1〔a、k〕と、C2〔k+
1、b〕とに分割すると仮定し、両区間における画素の
発生確率ω1,ω2、平均値をμ1,μ2、分散をσ1 2,σ
2 2とした場合に、次式(数2)で与えられる重み付き分
散和σw 2が最小となるように座標軸上の値kを定める。[Equation 1] Then, the section [a, b] is divided into two sections C 1 [a, k] and C 2 [k +] with a value k (value in units of classes) on the coordinate axis.
1, b], the pixel occurrence probabilities ω 1 and ω 2 in both sections, the average values μ 1 and μ 2 , and the variances σ 1 2 and σ 2 .
When 2 2 is set, the value k on the coordinate axis is determined so that the weighted dispersion sum σ w 2 given by the following equation (Equation 2) is minimized.
【数2】 [Equation 2]
【0082】重み付き分散和σw 2を最小にすることと次
式(数3)で与えられる二つの区間の間の分散σB 2を最
大とすることは同値である。[0082] It is equivalent to the variance sigma B 2 between the two given a weighted variance sum sigma w 2 by minimizing the following expression (Expression 3) interval is maximized.
【数3】 [Equation 3]
【0083】σB 2を最大とするk*(すなわち、求める
べき閾値Ti)は、次式(数4)のように逐次的に求め
ることができる。The k * (that is, the threshold T i to be obtained ) that maximizes σ B 2 can be sequentially obtained as in the following equation (Equation 4).
【数4】 ここで、μTは全平均であり、次式(数5)で示される
ものである。[Equation 4] Here, μ T is a total average, and is represented by the following equation (Equation 5).
【数5】 [Equation 5]
【0084】以上のようにして、各色成分の閾値Tiを
決定することができる。そして、求められた閾値Tiに
より、まず、色空間を2つの領域に分割することになる
が、各色成分のうちで最も前記分散σ2が最大となった
色成分の座標軸を第一主軸とし、その色成分の閾値Ti
に対応する第一主軸の位置で、第一主軸に直交する分割
平面で色空間を2つの色領域に分割する。As described above, the threshold value T i of each color component can be determined. Then, the color space is first divided into two regions by the obtained threshold value T i , but the coordinate axis of the color component having the largest variance σ 2 among the color components is set as the first principal axis. , The threshold value T i of the color component
At the position of the first main axis corresponding to, the color space is divided into two color regions on a division plane orthogonal to the first main axis.
【0085】次に、分割されたそれぞれの色領域の重み
付き分散和σw 2を求め、これらを色領域間で比較し、最
も重み付き分散和σw 2が大きい色領域を次に分割する領
域とする。そして、前記色領域において、前記色空間を
分割したように閾値Tiと第一主軸を求め、色領域をさ
らに二つの色領域に分割する。次に、分割された全ての
色領域において、最も重み付き分散和σw 2が大きい色領
域を求め、求められた色領域を上述のように二分割する
ことを繰り返す。そして、分割された色領域の数が、表
示すべき代表色の数と等しくなったところで、分割を終
了する。次に、各色領域における各色成分の平均値を逆
色変換手段22によりL*a*b*からRGBに変換して
代表色とする。Next, the weighted dispersion sum σ w 2 of each of the divided color areas is obtained, these are compared between the color areas, and the color area having the largest weighted dispersion sum σ w 2 is divided next. The area. Then, in the color area, the threshold value T i and the first principal axis are obtained as if the color space was divided, and the color area is further divided into two color areas. Next, in all the divided color areas, a color area having the largest weighted variance sum σ w 2 is obtained, and the obtained color area is divided into two as described above. Then, when the number of divided color areas becomes equal to the number of representative colors to be displayed, the division is ended. Next, the average value of each color component in each color region is converted from L * a * b * to RGB by the inverse color conversion means 22 to be a representative color.
【0086】そして、この代表色をカラーマップディス
プレイ装置30のカラーマップ30aに色コードとして
登録し、表示すべきカラー画像データの色空間における
色分布と、前記各色領域を対応させ、画像データの各画
素に、その画素の元々の色に近似した色をカラーマップ
30aから色コードとして割り付ける。このように各画
素に色コードが割り付けられて色を限定された画像デー
タを、前記色コードを登録されたカラーマップ30aを
有するカラーマップディスプレイ装置30のディスプレ
イ30bに表示させる。Then, this representative color is registered in the color map 30a of the color map display device 30 as a color code, and the color distribution in the color space of the color image data to be displayed is made to correspond to each of the color areas. A color similar to the original color of the pixel is assigned to the pixel as a color code from the color map 30a. In this way, the image data in which the color code is assigned to each pixel and the color is limited is displayed on the display 30b of the color map display device 30 having the color map 30a in which the color code is registered.
【0087】また、前記限定された色の画像データを記
憶装置等に記憶させることができ、一度画像処理した画
像は、瞬時にディスプレイ30bに表示することが可能
であると共に、前記限定された画像データは、元の自然
画像の画像データに比較してメモリ容量が減少している
ので、メモリ容量の少ない装置でも容易に扱うことがで
きる。Further, the image data of the limited color can be stored in the storage device or the like, and the image once processed can be instantly displayed on the display 30b, and the limited image can be displayed. Since the memory capacity of the data is smaller than that of the original image data of the natural image, an apparatus having a small memory capacity can easily handle the data.
【0088】(ト)上記操作の反復による代表色の決
定。 本実施例の限定色決定方法では、上述のように決定され
る代表色の選択を、選択された代表色に繰り返し行なう
ことで、代表色を段階的に減らしていくようになってい
る。すなわち、反復制御手段17は、上述のように選択
された代表色にによって表される画像を、元画像データ
として再び上述した作業により代表色の選択を行ない。
これを、設定された回数だけ繰り返し、最終的に必要と
される代表色まで減少させるようになっている。(G) Determination of a representative color by repeating the above operation. In the limited color determination method of the present embodiment, the selection of the representative color determined as described above is repeated for the selected representative color, thereby gradually reducing the representative color. That is, the repetitive control means 17 selects the representative color by the above-described operation again using the image represented by the representative color selected as described above as the original image data.
This is repeated a set number of times to reduce to the finally required representative color.
【0089】そして、繰り返し、代表色を選択する際に
は、毎回、周期性係数演算手段3及び強調係数演算手段
19により、ヒストグラムが補正され、ヒストグラム更
新手段によりヒストグラムが、色の変化の穏やかな部分
について重み付けされると共に、輝度もしくは色度が強
調される。従って、画像データは、色の分布及び輝度の
分布という統計的性質について、調整を受けながら代表
色が絞られていくことになり、適応的方法と同様に画像
データの統計的性質に適した代表色が選択されることに
なる。When the representative color is repeatedly selected, the histogram is corrected by the periodicity coefficient calculation means 3 and the emphasis coefficient calculation means 19 each time, and the histogram update means changes the color change gently. The parts are weighted and the brightness or chromaticity is emphasized. Therefore, in the image data, the representative colors are narrowed down while being adjusted with respect to the statistical properties such as the color distribution and the luminance distribution, and the representative color suitable for the statistical properties of the image data is adjusted similarly to the adaptive method. The color will be selected.
【0090】以上のように、本実施例の限定色決定装置
は、色の変化の緩やかな部分を画像データの下位3ビッ
トの周期性により特定し、この周期性を係数として、画
像の色分布を重み付け補正し、色変化の緩やかな部分か
ら多くの色を選択する共に、輝度を示す座標軸の階級数
を色度を示す座標の階級数より多くして、人間の視覚の
特性に対応して輝度の異なる色を多く選択することで、
偽輪郭を防止することができる。As described above, the limited color determination apparatus of the present embodiment identifies the portion where the color change is gentle by the periodicity of the lower 3 bits of the image data, and using this periodicity as a coefficient, the color distribution of the image is determined. Is corrected by weighting, and many colors are selected from the part where the color change is gradual, and the number of classes of the coordinate axis showing the luminance is made larger than the number of classes of the coordinate showing the chromaticity to correspond to the characteristics of human vision. By selecting many colors with different brightness,
False contours can be prevented.
【0091】また、輝度と色度の各座標軸における分散
を比較して、輝度の変化の多い画像データに関しては、
さらに輝度を強調し、輝度の変化が乏しく多くの色相を
有する画像に対しては色度を強調することにより、画像
データの性質に適した代表色を選択することができる。
さらに、上述の操作を繰り返しながら代表色を段階的に
減らしていくことにより、上記下位3ビットの周期性の
計測及び輝度と色度の各座標軸における分散の比較を繰
り返すと共に、これらに対応したヒストグラムの補正を
繰り返すことになり、代表色を画像データの統計的性質
に適応したものに絞り込んでいくことができる。Further, by comparing the variances of the luminance and the chromaticity on the respective coordinate axes, regarding image data with a large variation in the luminance,
Further, by emphasizing the brightness and emphasizing the chromaticity for an image having a large number of hues with a small change in the brightness, a representative color suitable for the property of the image data can be selected.
Further, by repeating the above operation and gradually reducing the representative colors, the measurement of the periodicity of the lower 3 bits and the comparison of the variances of the luminance and the chromaticity on each coordinate axis are repeated, and the histograms corresponding to these are repeated. By repeating the above correction, the representative colors can be narrowed down to those that are adapted to the statistical properties of the image data.
【0092】なお、これらの処理全体を汎用のコンピュ
ータ上にプログラムとして構成し、実行することも可能
である。また、元の画像データの画素当たりのメモリ容
量を必ずしも24ビットとする必要はなく、さらに、色
変化の特定に用いる下位ビットを下位3ビットとする必
要はない。下位ビットを何桁取るかは、元の画像データ
の画素当たりのメモリ容量等によって変更しても構わな
い。また、本発明によって色数を減らすには、ある程度
処理時間がかかるが、これにより得られた圧縮画像を表
示する際には、復号処理が必要ないため、機械やシステ
ムに依存せず、瞬時に色が限定された圧縮画像の表示が
可能である。これらのことによって、限定色決定方法
は、多くの産業分野への利用が期待できる。It is also possible to configure and execute the entire processing as a program on a general-purpose computer. Further, the memory capacity per pixel of the original image data does not necessarily have to be 24 bits, and further, the lower bits used for specifying the color change need not be the lower 3 bits. How many lower-order bits are taken may be changed depending on the memory capacity per pixel of the original image data. Further, although it takes a certain amount of processing time to reduce the number of colors according to the present invention, decoding processing is not required when displaying a compressed image obtained by this, so that it does not depend on a machine or a system and is instantaneously displayed. It is possible to display a compressed image with limited colors. Due to these facts, the limited color determination method can be expected to be applied to many industrial fields.
【0093】[0093]
【発明の効果】以上に述べた本発明の限定色決定方法お
よび装置により、本来フルカラー・ディスプレイ装置で
表示されるべき自然画像を、少数の限定色しか同時表示
できないカラーマップディスプレイ装置上でも、違和感
無く表示できる。With the method and apparatus for determining a limited color according to the present invention described above, a natural image which should originally be displayed on a full-color display device can be displayed on a color map display device which can simultaneously display only a small number of limited colors. Can be displayed without.
【0094】すなわち、判別分析により代表色を決定す
る際に、輝度を示す座標軸における階級数と、色度を示
す座標軸における階級数とを異なるものとすることによ
り、画像の輝度や色度の分布に対応して、輝度を強調し
た代表色を選択したり、色度を強調した代表色を選択し
たりすることができる。特に、輝度を強調した代表色を
選択することにより、輝度に敏感な人間の視覚特性に対
応した代表色を選択できると共に、偽輪郭が強調される
のを抑制することができる。That is, when the representative color is determined by the discriminant analysis, by making the class number on the coordinate axis showing the luminance different from the class number on the coordinate axis showing the chromaticity, the distribution of the luminance and chromaticity of the image is obtained. Corresponding to, it is possible to select a representative color with emphasized luminance or a representative color with emphasized chromaticity. In particular, by selecting a representative color in which brightness is emphasized, it is possible to select a representative color corresponding to human visual characteristics sensitive to brightness, and it is possible to suppress false contours from being emphasized.
【0095】さらに、色の緩やかな部分を、下位ビット
の周期性により特定し、ヒストグラムを補正して、色の
緩やかな部分から選択される代表色を増やしてやること
で、確実に偽輪郭を抑制することができる。従って、1
00色以下のような特に色数を少なくする必要のあるC
D−ROM等の自然画像に対しても、違和感の目立ちや
すい部分を特定し、その中から最も違和感のない指定色
数の限定色を求めることにより、効果的に対応すること
ができ、画像データの圧縮上大変有効である。Further, the gradual color portion is specified by the periodicity of the lower bits, the histogram is corrected, and the representative color selected from the gradual color portion is increased, so that the false contour is surely obtained. Can be suppressed. Therefore, 1
Especially, it is necessary to reduce the number of colors, such as 00 or less, C
Even for a natural image such as a D-ROM, it is possible to effectively deal with it by specifying a portion where a feeling of strangeness is conspicuous and obtaining a limited number of specified colors from which there is the least feeling of strangeness. It is very effective in compressing.
【図1】上記実施例の限定色決定装置を示す概略図であ
る。FIG. 1 is a schematic view showing a limited color determination device of the above embodiment.
【図2】上記実施例の限定色決定方法を説明するための
図面である。FIG. 2 is a diagram for explaining a method of determining a limited color according to the above embodiment.
【図3】上記限定色決定方法を説明するための図面であ
る。FIG. 3 is a diagram for explaining the limited color determination method.
【図4】上記限定色決定方法を説明するための座標系を
示す図面である。FIG. 4 is a drawing showing a coordinate system for explaining the limited color determination method.
【図5】上記限定色決定方法を説明するための座標系を
示す図面である。FIG. 5 is a diagram showing a coordinate system for explaining the limited color determining method.
【図6】上記限定色決定方法を説明するためのヒストグ
ラムを示す図面である。FIG. 6 is a diagram showing a histogram for explaining the limited color determination method.
【図7】上記限定色決定方法を説明するためのグラフを
示す図面である。FIG. 7 is a diagram showing a graph for explaining the limited color determination method.
【図8】上記限定色決定方法を説明するためのヒストグ
ラムを示す図面である。FIG. 8 is a diagram showing a histogram for explaining the limited color determination method.
2 下位3ビット記憶手段 3 周期性演算手段 5 色変換手段 7 ヒストグラム演算手段 9 平均・分散演算手段 11 第1主軸演算手段 13 重み付き分散演算手段 14 分割閾値決定手段 16 色領域分割手段 17 分割制御手段 18 強調係数指定手段 19 強調係数演算手段 21 ヒストグラム更新手段 22 逆色変換手段 23 代表色割当手段 41、41a、41b 画素 43 度数分布を示すヒストグラム 44 重み付け係数を示すグラフ 45 重み付け補正されたヒストグラム 2 Lower 3 bit storage means 3 Periodicity calculation means 5 Color conversion means 7 Histogram calculation means 9 Average / dispersion calculation means 11 First spindle calculation means 13 Weighted dispersion calculation means 14 Divided threshold value determination means 16 Color area division means 17 Divided control Means 18 Emphasis coefficient designating means 19 Emphasis coefficient calculating means 21 Histogram updating means 22 Inverse color converting means 23 Representative color assigning means 41, 41a, 41b Pixels 43 Histogram showing frequency distribution 44 Graph showing weighting coefficient 45 Weighted corrected histogram
Claims (7)
像データの各画素値の度数分布に対して判別分析を行な
うことにより代表色を求め、前記画像データを限定され
た代表色で近似する限定色決定方法であって、 前記均等色空間において、輝度成分を示す座標軸におけ
る階級数と色度成分を示す座標軸における階級数とを異
なるものとし、前記各画素値のデータの各座標軸におけ
る度数分布を求め、前記度数分布に対して、判別分析を
行なうことにより代表色を求めることを特徴とする限定
色決定方法。1. A representative color is obtained by performing a discriminant analysis on a frequency distribution of each pixel value of color image data represented by a coordinate system of a uniform color space, and the image data is approximated by a limited representative color. A method for determining a limited color, wherein in the uniform color space, the class number in the coordinate axis indicating the luminance component and the class number in the coordinate axis indicating the chromaticity component are different, and the frequency in each coordinate axis of the data of each pixel value. A limited color determination method characterized in that a representative color is obtained by obtaining a distribution and performing a discriminant analysis on the frequency distribution.
求めるに際して、輝度成分を示す座標軸の階級数を、色
度成分を示す座標軸の階級数より多くして、輝度を強調
した代表色を選択することを特徴とする請求項1記載の
限定色決定方法。2. When obtaining the frequency distribution in the uniform color space, the number of classes of the coordinate axis showing the luminance component is made larger than the number of classes of the coordinate axis showing the chromaticity component, and a representative color with enhanced luminance is selected. The limited color determination method according to claim 1, wherein
求めるに際して、色度成分を示す座標軸の階級数を、輝
度成分を示す座標軸の階級数より多くして、色度を強調
した代表色を選択することを特徴とする請求項1記載の
限定色決定方法。3. When obtaining the frequency distribution in the uniform color space, the number of classes of the coordinate axis showing the chromaticity component is made larger than the number of classes of the coordinate axis showing the luminance component to select a representative color with enhanced chromaticity. The limited color determination method according to claim 1, wherein
各画素値の度数分布に対して判別分析を行なうことによ
り代表色を求め、求められた代表色について、再び均等
色空間における度数分布を求め、この度数分布に対して
判別分析を行なうことによりさらに少数の代表色を求
め、これを繰り返すことにより段階的に代表色を減らし
て行くに際して、代表色を減らす各段階もしくはいずれ
かの段階で度数分布を求めるのに、輝度成分を示す座標
軸における階級数と、色度成分を示す座標軸における階
級数との比率を変更することを特徴とする請求項1又は
請求項2又は請求項3記載の限定色決定方法。4. A representative color is obtained by performing a discriminant analysis on a frequency distribution of each pixel value of image data represented in the uniform color space, and the obtained representative color is again distributed in the uniform color space. Then, a smaller number of representative colors are obtained by performing a discriminant analysis on this frequency distribution, and when the representative colors are gradually reduced by repeating this, each step or any step of reducing the representative colors 4. The ratio between the class number on the coordinate axis indicating the luminance component and the class number on the coordinate axis indicating the chromaticity component is changed in order to obtain the frequency distribution with. Limited color determination method.
の値を表すデジタルデータの下位ビットを読み取り、該
下位ビットに同じ値が出現する周期性を求め、 一方前記カラー画像データを均等色空間の座標系で表し
た各画素値に対して、該均等色空間での輝度成分を示す
座標軸と色度成分を示す座標軸における度数分布を求
め、該度数分布を前記周期性のデータに基づいて重み付
け補正し、 該重み付け補正した度数分布に対して更に輝度を示す座
標軸における階級数と色度を示す座標軸における階級数
を異なるものとして度数分布を補正し、判別分析を行な
うことを特徴とする請求項1又は請求項2又は請求項3
又は請求項4記載の限定色決定方法。5. The lower bit of the digital data representing the values of the three primary colors of each pixel of the color image data is read and the periodicity in which the same value appears in the lower bit is obtained, while the color image data is stored in the uniform color space. For each pixel value represented by the coordinate system of, the frequency distribution on the coordinate axis indicating the luminance component and the coordinate axis indicating the chromaticity component in the uniform color space is obtained, and the frequency distribution is weighted based on the periodicity data. The frequency distribution is corrected, and the frequency distribution is corrected by making the class number on the coordinate axis indicating the luminance different from the class number on the coordinate axis indicating the chromaticity, and the discriminant analysis is performed. 1 or claim 2 or claim 3
Alternatively, the limited color determination method according to claim 4.
像データの各画素値の度数分布に対して判別分析を行な
うことにより代表色を求め、前記カラー画像データを限
定された代表色で近似する限定色決定装置であって、 前記均等色空間における輝度成分を示す座標軸の階級数
と色度成分を示す座標軸の階級数を異なるものとし、各
座標軸における前記カラー画像データの各画素値の度数
分布を求める度数分布演算手段と、 前記求めた度数分布に対して判別分析を行ない代表色を
決定する代表色決定手段と、 を具備してなることを特徴とする限定色決定装置。6. A representative color is obtained by performing a discriminant analysis on a frequency distribution of each pixel value of color image data represented by a coordinate system of a uniform color space, and the color image data is represented by a limited representative color. In a limited color determination apparatus to approximate, the number of classes of the coordinate axis showing the luminance component in the uniform color space and the number of classes of the coordinate axis showing the chromaticity component are different, of each pixel value of the color image data in each coordinate axis A limited color determining apparatus comprising: a frequency distribution calculating means for determining a frequency distribution; and a representative color determining means for performing a discriminant analysis on the obtained frequency distribution to determine a representative color.
像データの各画素値の度数分布に対して判別分析を行な
うことにより代表色を求め、前記カラー画像データを限
定された代表色で近似する限定色決定装置であって、 前記カラー画像データの3原色を表すデジタルデータに
対して下位ビットに同じ値が出現する周期性係数を求め
る周期性演算手段と、 前記均等色空間における輝度成分を示す座標軸と色度成
分を示す座標軸に対する前記カラー画像データの各画素
値の度数部分を求める度数分布演算手段と、 前記度数分布演算手段により求められた度数分布を前記
周期性係数によって重み付け補正する度数分布補正手段
と、 前記重み付け補正された度数分布に対して、輝度成分を
示す座標軸の階級数と色度成分を示す座標軸の階級数を
異なるものとして度数分布を補正し、判別分析を行なう
ことにより代表色を決定する代表色決定手段と、 を具備してなることを特徴とする限定色決定装置。7. A representative color is obtained by performing a discriminant analysis on a frequency distribution of each pixel value of color image data represented by a coordinate system of a uniform color space, and the color image data is represented by a limited representative color. An approximate limited color determination device, comprising: a periodicity calculation unit that obtains a periodicity coefficient with which the same value appears in lower bits for digital data representing the three primary colors of the color image data; and a luminance component in the uniform color space. And a frequency distribution calculating means for calculating a frequency portion of each pixel value of the color image data with respect to a coordinate axis indicating a chromaticity component, and the frequency distribution obtained by the frequency distribution calculating means is weighted and corrected by the periodicity coefficient. Frequency distribution correcting means, and the weighting-corrected frequency distribution is different in the number of classes of the coordinate axis showing the luminance component and the number of classes of the coordinate axis showing the chromaticity component. The frequency distribution is corrected as shall, discriminant analysis limited color determination apparatus characterized by comprising anda representative color determining means for determining a representative color by performing.
Priority Applications (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP4161445A JP2973710B2 (en) | 1992-06-19 | 1992-06-19 | Limited color determination method and limited color determination device |
| US08/027,848 US5608851A (en) | 1992-06-17 | 1993-03-08 | Color variation specification method and a device therefor |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP4161445A JP2973710B2 (en) | 1992-06-19 | 1992-06-19 | Limited color determination method and limited color determination device |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPH06124343A true JPH06124343A (en) | 1994-05-06 |
| JP2973710B2 JP2973710B2 (en) | 1999-11-08 |
Family
ID=15735253
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP4161445A Expired - Fee Related JP2973710B2 (en) | 1992-06-17 | 1992-06-19 | Limited color determination method and limited color determination device |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP2973710B2 (en) |
Cited By (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| WO1995031071A1 (en) * | 1994-05-10 | 1995-11-16 | Kaleida Labs, Inc. | Scalable pixel distribution image coding system for compression and decompression of images |
| JPWO2005057908A1 (en) * | 2003-12-11 | 2007-07-12 | 富士通株式会社 | Image processing method, program, and apparatus |
| WO2009001549A1 (en) * | 2007-06-28 | 2008-12-31 | Konica Minolta Business Technologies, Inc. | Image processing method, image processing device, image data compressing device and computer program |
| CN111311525A (en) * | 2019-11-20 | 2020-06-19 | 重庆邮电大学 | A dual-interval equalization algorithm for image gradient field based on histogram probability correction |
-
1992
- 1992-06-19 JP JP4161445A patent/JP2973710B2/en not_active Expired - Fee Related
Cited By (8)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| WO1995031071A1 (en) * | 1994-05-10 | 1995-11-16 | Kaleida Labs, Inc. | Scalable pixel distribution image coding system for compression and decompression of images |
| US5585944A (en) * | 1994-05-10 | 1996-12-17 | Kaleida Labs, Inc. | Method for compressing and decompressing images by subdividing pixel color distributions |
| JPWO2005057908A1 (en) * | 2003-12-11 | 2007-07-12 | 富士通株式会社 | Image processing method, program, and apparatus |
| JP4480676B2 (en) * | 2003-12-11 | 2010-06-16 | 富士通株式会社 | Image processing method, program, and apparatus |
| WO2009001549A1 (en) * | 2007-06-28 | 2008-12-31 | Konica Minolta Business Technologies, Inc. | Image processing method, image processing device, image data compressing device and computer program |
| JP4831233B2 (en) * | 2007-06-28 | 2011-12-07 | コニカミノルタビジネステクノロジーズ株式会社 | Image processing method, image processing apparatus, image data compression apparatus, and computer program |
| US8320669B2 (en) | 2007-06-28 | 2012-11-27 | Konica Minolta Business Technologies, Inc. | Image processing method, image processing apparatus, image data compression device, and computer program |
| CN111311525A (en) * | 2019-11-20 | 2020-06-19 | 重庆邮电大学 | A dual-interval equalization algorithm for image gradient field based on histogram probability correction |
Also Published As
| Publication number | Publication date |
|---|---|
| JP2973710B2 (en) | 1999-11-08 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JP2582999B2 (en) | Color palette generation method, apparatus, data processing system, and lookup table input generation method | |
| EP0693738A2 (en) | Method and apparatus for generating color image mask | |
| GB2236463A (en) | Method and apparatus for dithering antialiased vectors | |
| JPH087553B2 (en) | Color image quantization method and apparatus | |
| US5852648A (en) | Image signal processing method and image signal processing device | |
| US5608851A (en) | Color variation specification method and a device therefor | |
| JP3126046B2 (en) | Color adjustment method and color adjustment device for color image | |
| JP2651787B2 (en) | Interactive volume rendering method and apparatus | |
| CN100501772C (en) | Periodic interactive image analysis method | |
| WO2001043076A1 (en) | Color conversion matrix based on minimal surface theory | |
| JPH05300375A (en) | Sharpness processing unit | |
| US6271850B1 (en) | Image generation apparatus, image generation method, image generation program recording medium, image composition apparatus, image composition method, and image composition program recording medium | |
| JPH10134178A (en) | Image processing method and apparatus and storage medium | |
| JP2973710B2 (en) | Limited color determination method and limited color determination device | |
| US5778105A (en) | Method of and apparatus for removing artifacts from a reproduction | |
| JP2522369B2 (en) | Color image limited color representation method and apparatus | |
| JP3306964B2 (en) | Limited color determining method and apparatus | |
| CN112513940A (en) | Alpha value determination device, alpha value determination method, program, and data structure of image data | |
| JP2806152B2 (en) | Color change identification method, limited color determination method, and limited color determination device | |
| EP4441706A2 (en) | Iterative graph-based image enhancement using object separation | |
| JP2914074B2 (en) | Limited color determining method and apparatus | |
| JP2896319B2 (en) | How to make a color image mask | |
| JP2896317B2 (en) | How to make a color image mask | |
| KR0155925B1 (en) | Digital color image | |
| JP2896320B2 (en) | How to make a color image mask |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| A01 | Written decision to grant a patent or to grant a registration (utility model) |
Free format text: JAPANESE INTERMEDIATE CODE: A01 Effective date: 19990803 |
|
| LAPS | Cancellation because of no payment of annual fees |