Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JP3289792B2 - Color correction method for specific area of color image - Google Patents
[go: Go Back, main page]

JP3289792B2 - Color correction method for specific area of color image - Google Patents

Color correction method for specific area of color image

Info

Publication number
JP3289792B2
JP3289792B2 JP2156793A JP2156793A JP3289792B2 JP 3289792 B2 JP3289792 B2 JP 3289792B2 JP 2156793 A JP2156793 A JP 2156793A JP 2156793 A JP2156793 A JP 2156793A JP 3289792 B2 JP3289792 B2 JP 3289792B2
Authority
JP
Japan
Prior art keywords
color
area
space
cluster
image
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
JP2156793A
Other languages
Japanese (ja)
Other versions
JPH06237372A (en
Inventor
修 中川
昌夫 会津
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Dai Nippon Printing Co Ltd
Original Assignee
Dai Nippon Printing Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Dai Nippon Printing Co Ltd filed Critical Dai Nippon Printing Co Ltd
Priority to JP2156793A priority Critical patent/JP3289792B2/en
Publication of JPH06237372A publication Critical patent/JPH06237372A/en
Application granted granted Critical
Publication of JP3289792B2 publication Critical patent/JP3289792B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Preparing Plates And Mask In Photomechanical Process (AREA)
  • Processing Or Creating Images (AREA)
  • Facsimile Image Signal Circuits (AREA)
  • Color Image Communication Systems (AREA)
  • Controls And Circuits For Display Device (AREA)
  • Image Analysis (AREA)

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【産業上の利用分野】本発明は、印刷製版工程におけ
る、画像中の各物体に対応する特定領域の色修正を行う
ための方法に関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a method for correcting the color of a specific area corresponding to each object in an image in a printing process.

【0002】[0002]

【従来の技術】商品のカタログやチラシ等を印刷する場
合、スキャナーによりディジタルデータに変換された画
像から背景部分を消去するような処理が行われることが
ある。このための方法として、画像の二値化を行って背
景部と物体部を分離し、背景部を「OFF」、物体部を
「ON」とするようなマスク画像(切抜きマスクと呼
ぶ)を作成し、これと入力画像を合成して、物体部だけ
を抽出する手法が用いられている。
2. Description of the Related Art When printing a catalog or a flyer of a product, a process of deleting a background portion from an image converted into digital data by a scanner is sometimes performed. As a method for this, a background image and an object portion are separated by binarizing the image, and a mask image (referred to as a cutout mask) in which the background portion is “OFF” and the object portion is “ON” is created. Then, a technique of combining this with an input image to extract only the object portion is used.

【0003】二値化の手法としては、画像平面内の画素
を色空間(例えばRGB空間)に写像し、その空間上で
のクラスタリングにより、各画素を「ON(物体部)」
か「OFF(背景部)」か分類し、二値化を行うものが
ある。
[0003] As a method of binarization, pixels in an image plane are mapped to a color space (for example, RGB space), and each pixel is turned "ON (object part)" by clustering in that space.
Or "OFF (background portion)" and binarizes the data.

【0004】又、このように抽出された領域内のみの色
修正を行うこともできる。
[0004] It is also possible to perform color correction only in the region extracted in this way.

【0005】上で述べたような特定領域の抽出や色修正
を行う上で要となる技術は、色空間上でのクラスタリン
グによる領域分割法である。
A technique necessary for extracting a specific area and correcting a color as described above is an area division method based on clustering in a color space.

【0006】これは、図1に示す如く、画像平面内の画
素を色空間(例えばRGB色空間)に写像し、その空間
上でのクラスタ重心からの距離に応じて設定したクラス
タ境界を用いたクラスタリングにより、各画素の分類及
び1、2、3等のラベル付けを行い、画像平面に逆写像
することにより領域分割画像を得て、領域分割を行う方
法である。
As shown in FIG. 1, pixels in an image plane are mapped to a color space (for example, an RGB color space), and a cluster boundary set according to a distance from a cluster center of gravity in the space is used. In this method, each pixel is classified and labeled as 1, 2, 3 and the like by clustering, and a region division image is obtained by inverse mapping on an image plane to perform region division.

【0007】[0007]

【発明が解決しようとする課題】この従来法は、同一領
域の画素が、色空間上で常に特定の場所に局在している
場合には旨く領域分割ができるが、実際の画像ではそう
でない場合も多い。従って、同一領域であるにもかかわ
らず、複数の領域に分割されたり、異なる領域が1つの
領域と見做されたり、単独で用いるには問題の多い手法
であった。
According to this conventional method, when pixels in the same area are always localized at a specific place in the color space, the area can be divided well, but this is not the case in an actual image. Often. Therefore, despite being the same area, it has been a problematic method to be divided into a plurality of areas, different areas to be regarded as one area, or to be used independently.

【0008】本発明は、前記従来の問題点を解消するべ
くなされたもので、画像の色空間上での分布のモデルに
基づき、従来法とは全く異った観点から、新しいクラス
タリング手法を行い、この手法による特定領域の色修正
を効率よく行う、カラー画像の特定領域の色修正方法を
提供することを目的とする。
The present invention has been made to solve the above-mentioned conventional problems, and based on a model of distribution of an image in a color space, a new clustering method has been implemented from a completely different viewpoint from the conventional method. It is another object of the present invention to provide a color correction method for a specific area of a color image, which efficiently performs color correction for a specific area by this method.

【0009】[0009]

【課題を解決するための手段】本発明は、カラー画像の
特定領域の色修正に際して、明度軸を含む色空間上での
物体の反射モデルから推定される色分布の特徴を、
「黒」から「物体色」を通り「白」へと至る曲線として
モデル化し、該曲線を区別可能な、所定明度に対応する
2次元パラメータ空間上へ各画素を写像することによ
り、同一領域の画素同士が特定の場所に局在するような
分布を得、その2次元パラメータ空間上でクラスタリン
グを行うことにより領域分割を行い、ディスプレイ上で
領域を指定して、該指定領域の色修正を行うようにし
て、前記目的を達成したものである。
SUMMARY OF THE INVENTION The present invention provides a method for correcting a color in a specific area of a color image in a color space including a lightness axis .
Characteristic of the color distribution estimated from the reflection model of the object ,
It is modeled as a curve from “black” through “object color” to “white”, and the curve corresponds to a predetermined brightness that can be distinguished.
By mapping each pixel on the two-dimensional parameter space, a distribution in which pixels in the same region are localized at a specific place is obtained, and region division is performed by performing clustering on the two-dimensional parameter space. The above object has been achieved by designating a region on a display and correcting the color of the designated region.

【0010】[0010]

【作用】通常、画像は三次元的な拡がりを持った物体に
照明光を当て、反射光を適切なレンズ系に通し、二次元
平面にマッピングすることによって撮影が行われる。
Normally, an image is shot by illuminating an object having a three-dimensional spread with illumination light, passing the reflected light through an appropriate lens system, and mapping the reflected light on a two-dimensional plane.

【0011】ある1つの物体は同一の分光反射率を持
ち、つまり、同一の色を持っていて、照明光と物体表面
の角度と視点の位置の関係により、様々なグラデーショ
ンが生じる。しかし、このグラデーションは、色空間上
である種の曲線に沿って変化する。何故ならば、影にな
り照明光が届かない部分は黒くなり、物体の表面に対し
て、照明光が入射したときの入射角で決まる出射角と物
体への視線が近い物体表面の領域では、多くの場合鏡面
反射状態となり、いわゆるキャッチライトの場所とな
る。この部分は、照明光がある反射率で全ての波長の光
が反射するので、照明光と同じ“白”となり、その中間
の部分は物体表面が拡散反射をし、視線角度に対し反射
率が分布を持つので、同一領域(同一物体)の画素は、
色空間(例えばL*u *v *空間)上では、図2のよう
に、黒→物体色→白という曲線上に集中して分布する傾
向があると考えられ、実際にもそのように分布している
ことが確認できる。ここで、L*は明度、u *v *平面
内でL*軸からの距離は彩度、回転角は色相を表わす。
One object has the same spectral reflectance, that is, has the same color, and various gradations occur depending on the relationship between the illumination light, the angle of the object surface, and the position of the viewpoint. However, this gradation changes along a certain curve in the color space. The reason is that the part that is shadowed and the illumination light does not reach is black, and in the area of the object surface where the emission angle determined by the incident angle when the illumination light is incident and the line of sight to the object are close to the surface of the object, In most cases, the mirror is in a specular reflection state, which is a so-called catch light place. In this part, the light of all wavelengths is reflected at a certain reflectance of the illuminating light, so it becomes the same "white" as the illuminating light. Because of the distribution, the pixels in the same area (same object)
In a color space (for example, L * u * v * space), as shown in FIG. 2, it is considered that there is a tendency to concentrate and distribute on a curve of black → object color → white. You can confirm that you are doing. Here, L * represents lightness, the distance from the L * axis in the u * v * plane represents saturation, and the rotation angle represents hue.

【0012】従って、画像全体で見ると、図2のような
楕円体を屈曲させたようなバナナ状の分布が、図3に示
す如く、領域の数(物体の数)だけ複数存在することに
なる。
Therefore, when viewing the entire image, as shown in FIG. 3, there are a plurality of banana-shaped distributions in which an ellipsoid is bent as many as the number of regions (the number of objects) as shown in FIG. Become.

【0013】ところが従来法では、これらのことが全く
考慮されていないため、図4に破線で示す如く、同一領
域(物体)であるにもかかわらず、複数の領域に分割さ
れたり、図5に破線で示す如く、異なる領域(物体)が
1つの領域と見做されたりすることがあり、従来のクラ
スタリング手法は、領域分割法としては不完全なもので
あった。
However, in the conventional method, these are not taken into consideration at all, and as shown by a broken line in FIG. 4, even though the area is the same area (object), it is divided into a plurality of areas. As indicated by a broken line, different regions (objects) may be regarded as one region, and the conventional clustering method is incomplete as a region division method.

【0014】本発明では、前述した分布のモデルに基づ
き、各領域に対応した複数の屈曲楕円体状分布を分離す
るようにクラスタリングを行って、従来法の問題点を解
決している。
In the present invention, the problem of the conventional method is solved by performing clustering based on the distribution model described above so as to separate a plurality of bent ellipsoidal distributions corresponding to each region.

【0015】以下、本発明のクラスタリング手法につい
て詳細に説明する。
Hereinafter, the clustering method of the present invention will be described in detail.

【0016】今、図6のように、色空間(例えばL*u
*v *空間)上の「黒」を表わす点Aと、「白」を表わ
す点Bを通る曲線群を考える。すると、任意の画素は、
色空間上で1点として表わされるが、それは必ず曲線群
の中の1つの曲線に属する。即ち、1つの画素に対して
1つの曲線が対応する。
Now, as shown in FIG. 6, a color space (for example, L * u
* V * space), consider a group of curves passing through a point A representing “black” and a point B representing “white”. Then, any pixel is
Although represented as one point in the color space, it always belongs to one curve in the curve group. That is, one curve corresponds to one pixel.

【0017】各々の曲線を区別するパラメータは2つで
十分であるので、各画素を二次元のパラメータ空間上の
1点にマッピングして表現できる。例えば、この曲線群
として、図7のように、点Aと点Bを通る半楕円の集合
を考え、明度軸上の原点の位置を L=L*−50 ………(1) に従い移動して、L*のとり得る範囲を0≦L*≦10
0に正規化する。
Since two parameters are sufficient to distinguish each curve, each pixel can be expressed by mapping it to one point on a two-dimensional parameter space. For example, as shown in FIG. 7, as a set of curves, a set of semi-ellipses passing through points A and B is considered, and the position of the origin on the lightness axis is moved according to L = L * -50 (1). Thus, the range that L * can take is 0 ≦ L * ≦ 10
Normalize to 0.

【0018】ここで、1つの半楕円がL=0平面と交わ
る面は一意的に決まるので、半楕円曲線群は、この交点
の(u *、v *)座標値(μ、ν)によってパラメータ
化することができる。
Here, since the plane at which one semiellipse intersects the L = 0 plane is uniquely determined, the group of semielliptic curves is represented by the parameter (u, v *) coordinate value (μ, ν) of the intersection. Can be

【0019】従って、各画素は、半楕円に沿った一種の
射影操作によって、L=0平面上にマッピングすること
ができる。
Therefore, each pixel can be mapped on the L = 0 plane by a kind of projection operation along the semi-ellipse.

【0020】実際の画像の色空間上での分布が、例えば
図8のようになっているとき、このようなマッピングに
よって、(μ、ν)平面上では、図9のような分布にな
り、領域毎に局在した分布を得ることができる。このよ
うにして、特徴空間にマッピングしておいてから、通常
のクラスタリング手法を用いることによって、効率の良
い領域分割が行える。
When the distribution of the actual image in the color space is, for example, as shown in FIG. 8, by such mapping, the distribution as shown in FIG. 9 is obtained on the (μ, ν) plane. A distribution localized for each region can be obtained. In this way, after mapping to the feature space, efficient region division can be performed by using a normal clustering method.

【0021】本発明では、これら複数に分割された領域
情報を利用し、例えばディスプレイ上でマウス等のポイ
ンティングデバイスを用い、領域の「ON」「OFF」
を指定した後、「ON」に対応するクラスタ重心に属す
る画素のみを(μ、ν)空間上で移動することにより、
特定領域の色修正を行う。
In the present invention, using the area information divided into a plurality of areas, for example, using a pointing device such as a mouse on a display, the "ON", "OFF"
Is specified, only pixels belonging to the cluster centroid corresponding to “ON” are moved in the (μ, ν) space,
Correct the color of the specific area.

【0022】[0022]

【実施例】以下、図面を参照して、本発明の実施例を詳
細に説明する。
Embodiments of the present invention will be described below in detail with reference to the drawings.

【0023】本実施例を実施するための装置は、図10
に示す如く、色空間変換部10と、特徴空間への変換部
20と、領域分割部30と、領域指定部40と、色修正
部50と、逆変換部60とを含んでいる。
An apparatus for carrying out this embodiment is shown in FIG.
As shown in FIG. 1, the image processing apparatus includes a color space conversion unit 10, a conversion unit 20 for converting into a feature space, a region division unit 30, a region designation unit 40, a color correction unit 50, and an inverse conversion unit 60.

【0024】前記色空間変換部10は、入力画像信号、
例えばRGB信号をL*u *v *信号に変換する。RG
BからXYZ座標系の3刺激値XYZ、同XYZからL
*u*v *への変換は確立されており、RGBからXY
Zへの変換は、次式によって定義される(宮原誠「系統
的画像符号化」(株)アイピーシーの134頁参照)。
The color space conversion unit 10 receives an input image signal,
For example, an RGB signal is converted into an L * u * v * signal. RG
From B to tristimulus values XYZ in the XYZ coordinate system, from XYZ to L
The conversion to * u * v * has been established, from RGB to XY
The conversion into Z is defined by the following equation (see Makoto Miyahara, “Systematic Image Coding”, IPC, p. 134).

【0025】[0025]

【数1】 (Equation 1)

【0026】又、XYZからL*u *v *への変換は、
次式で定義される(高木幹雄、下田陽久監修「画像解析
ハンドブック」東京大学出版会の107頁−108頁参
照)。
The conversion from XYZ to L * u * v * is as follows:
It is defined by the following equation (see “Image Analysis Handbook”, supervised by Mikio Takagi and Hirohisa Shimoda, pages 107-108 of the University of Tokyo Press).

【0027】[0027]

【数2】 (Equation 2)

【0028】ここで、(X0 、Y0 、Z0 )は、標準光
源下における完全拡散白色面についての(X、Y、Z)
の値であり、標準光源C(色温度6774K)の場合、 (X0 、Y0 、Z0 )=(98.072、100.00、118.225) である。
Here, (X 0, Y 0, Z 0) is (X, Y, Z) for a perfectly diffused white surface under a standard light source.
In the case of the standard light source C (color temperature of 6774K), (X0, Y0, Z0) = (98.072, 100.00, 118.225).

【0029】本実施例では、色空間としてL*u *v *
表色系を用いているが、L*a *b*表色系等、他の色
空間でも「黒→物体色→白」を通るような適当な曲線群
を考えることにより、同等の効果が期待できる。
In this embodiment, L * u * v * is used as a color space.
Although the color system is used, an equivalent effect can be obtained by considering an appropriate curve group that passes through “black → object color → white” in other color spaces such as the L * a * b * color system. Can be expected.

【0030】前記特徴空間への変換部20は、(L*、
u *、v *)を領域分割に適した特徴空間上の点(L、
μ、ν)に変換する。図11から、変換式は代数幾何学
的に求まり、以下のようになる。
The conversion unit 20 for converting into a feature space is (L *,
u *, v *) are converted to points (L,
μ, ν). From FIG. 11, the conversion formula is obtained in algebraic geometry, and is as follows.

【0031】[0031]

【数3】 (Equation 3)

【0032】前記領域分割部30は、全画像に対してサ
ンプリングを行って、各画素に対する(μ、ν)の値か
らトレーニングデータを作り、ISODATA(Itera
tiveSelf Organizing Data Analysis Techniques
)法により二次元のクラスタリングを行う(高木幹
雄、下田陽久監修「画像解析ハンドブック」東京大学出
版会の648頁−651頁参照)。
The area dividing section 30 samples all the images, generates training data from the values of (μ, ν) for each pixel, and generates ISODATA (Itera) data.
tiveSelf Organizing Data Analysis Technologies
2) clustering by the method (see “Image Analysis Handbook”, supervised by Mikio Takagi and Hirohisa Shimoda, pages 648 to 651 of the University of Tokyo Press).

【0033】前記ISODATA法は、初期状態として
適当なクラスタを与え、そのメンバを組替えて少しずつ
「より良いクラスタ」を求めていくもので、非階層的ク
ラスタリング(再配置法)を代表する手法として、古く
から知られた手法である。
In the ISODATA method, an appropriate cluster is given as an initial state, and its members are rearranged to obtain a “better cluster” little by little. As a method representative of non-hierarchical clustering (relocation method), It is a technique that has been known for a long time.

【0034】このISODATA法の手順を図12に示
す。
FIG. 12 shows the procedure of the ISODATA method.

【0035】このISODATA法では、まずステップ
100で、再配置の収束条件、微小クラスタ、孤立デー
タの判定条件、分裂・融合の分岐条件等のパラメータを
設定する。
In the ISODATA method, first, in step 100, parameters such as a relocation convergence condition, a small cluster, a decision condition for isolated data, and a splitting / fusion branching condition are set.

【0036】次いで、ステップ102で、初期クラスタ
の重心を決定する。例えば、初期クラスタの数を1とし
て全平均を用いることができる。
Next, in step 102, the center of gravity of the initial cluster is determined. For example, the total average can be used with the number of initial clusters being one.

【0037】次いで、ステップ104乃至108で、再
配置法を実施する。具体的には、まずステップ104
で、各データとクラスタ重心との距離を計算し、それぞ
れのデータを、距離が最小となるクラスタに配置する。
次いでステップ106に進み、再配置されたクラスタ内
で、各クラスタの重心を再計算して修正する。次いで、
ステップ108に進み、各データとクラスタ重心の距離
の平均が、再配置・重心の修正の結果、変化しなけれ
ば、収束したと見做し、それ以外はステップ104に戻
って繰返す。
Next, in steps 104 to 108, a rearrangement method is performed. Specifically, first, step 104
Then, the distance between each data and the center of gravity of the cluster is calculated, and each data is arranged in the cluster having the minimum distance.
Next, the process proceeds to step 106, where the center of gravity of each cluster is recalculated and corrected in the rearranged clusters. Then
Proceeding to step 108, if the average of the distance between each data and the center of gravity of the cluster does not change as a result of the rearrangement / correction of the center of gravity, it is regarded as converging.

【0038】再配置法終了後、ステップ110に進み、
データの数が著しく少ない微小クラスタと、他のクラス
タから著しく離れた孤立データを、以後のクラスタリン
グから除外する。
After completion of the rearrangement method, the process proceeds to step 110,
Small clusters with a significantly smaller number of data and isolated data significantly separated from other clusters are excluded from subsequent clustering.

【0039】次いでステップ112に進み、クラスタ重
心間の距離の最小値が、ある閾値以上あり、且つ、クラ
スタの分散の最大値が、ある閾値以下であるとき、クラ
スタリングは収束したとして、終了する。それ以外はス
テップ114及び/又は116に進む。
Next, proceeding to step 112, when the minimum value of the distance between the centers of gravity of the clusters is equal to or greater than a certain threshold value and the maximum value of the variance of the clusters is equal to or less than a certain threshold value, the clustering is concluded as having converged. Otherwise, go to step 114 and / or 116.

【0040】クラスタ重心間の距離の最小値が、ある閾
値以下である場合には、ステップ114に進んで、その
クラスタ対を統合し、新しいクラスタ重心を計算する。
If the minimum value of the distance between the cluster centroids is equal to or smaller than a certain threshold value, the routine proceeds to step 114, where the cluster pairs are integrated and a new cluster centroid is calculated.

【0041】一方、クラスタの分散の最大値が、ある閾
値以上である場合には、ステップ116に進んで、クラ
スタ分散の最大値が閾値以下になるまでクラスタを分裂
させ、新しいクラスタ重心を計算する。
On the other hand, if the maximum value of the variance of the cluster is equal to or greater than a certain threshold, the process proceeds to step 116, where the cluster is divided until the maximum value of the cluster variance is equal to or less than the threshold, and a new cluster centroid is calculated. .

【0042】ステップ114による統合又はステップ1
16による分裂が終了した後、再びステップ104に戻
って、処理を繰返す。
Integration by step 114 or step 1
After the division by 16 is completed, the process returns to step 104 again to repeat the processing.

【0043】このようにして、図13に示すような、ク
ラスタ分割(クラスタ境界を破線で示す)と、クラスタ
代表点1、2、3(○印で示す)が得られる。
In this way, cluster division (cluster boundaries are shown by broken lines) and cluster representative points 1, 2, and 3 (shown by circles) as shown in FIG. 13 are obtained.

【0044】発明の作用の項で説明したように、この各
々の代表点1、2、3が、図14に示す如く、領域を代
表する半楕円1本に相当するので、このように分割を行
った後、各画素がどの半楕円に属するかを判断し、ラベ
ル付けを行って、領域分割を終了する。
As described in the section of operation of the present invention, each of the representative points 1, 2, and 3 corresponds to one semi-ellipse representing a region as shown in FIG. After this, it is determined which semi-ellipse each pixel belongs to, labeling is performed, and the region division is completed.

【0045】前記領域指定部40は、領域分割された領
域の中から特定領域の指定を行い、前記色修正部50
は、指定された領域の色修正を行う。
The area designating section 40 designates a specific area from the divided areas.
Corrects the color of the specified area.

【0046】以下これを詳しく説明する。Hereinafter, this will be described in detail.

【0047】領域を指定する方法としては、例えば図1
5に示すように、ディスプレイ70上に入力した画像7
2と各領域のクラスタ重心に対応したカラーパレット7
4を表示し、抽出したい領域の色に対応したカラーパレ
ットをマウス76でクリックすることにより、「ON」
領域を指定し、それ以外を「OFF」領域とし、領域指
定を行う。
As a method of designating an area, for example, FIG.
As shown in FIG. 5, the image 7 input on the display 70
2 and a color palette 7 corresponding to the cluster centroid of each area
4 is displayed, and the color palette corresponding to the color of the area to be extracted is clicked with the mouse 76 to turn “ON”.
An area is designated, and the other areas are designated as “OFF” areas, and the area is designated.

【0048】又は、図15に示すように画像を表示し、
指定したい領域(例えば図15の家のドアの部分)内の
1点をマウスでクリックし、マウスで指定された1点に
対応するクラスタに属する領域を「ON」、それ以外を
「OFF」領域とし、領域指定を行う。このとき複数の
領域を指定するには、これを繰返せばよい。
Alternatively, an image is displayed as shown in FIG.
One point in the area to be designated (for example, the door part of the house in FIG. 15) is clicked with the mouse, and the area belonging to the cluster corresponding to the point designated by the mouse is “ON”, and the other areas are “OFF”. And specify the area. At this time, in order to specify a plurality of areas, this may be repeated.

【0049】又、以上の領域指定において、正しく領域
が抽出されているか否かを確認できるようにするため、
「OFF」領域の画素を反転表示する。
In order to confirm whether or not an area has been correctly extracted in the above-mentioned area designation,
The pixels in the “OFF” area are displayed in reverse video.

【0050】以上のように領域指定を行った後、前記色
修正部50は、「ON」領域のクラスタ重心に対して、
彩度方向、あるいは色相方向にどれだけ変化させるかを
指定し、「ON」領域のクラスタに属する画素のみを、
その変化量に従って(μ、ν)空間上で変換する。例え
ば、図16に示すように、ディスプレイ上で(μ、ν)
空間上の分布とクラスタ重心を表示し、図16の80の
ように画面上の任意の点をクリックし、82のようにマ
ウスポインタを移動し、変化量を指定して、84のよう
に、もう一度マウスボタンをクリックすることにより、
指定された全ての領域に対して後述する色修正部50に
よる色修正の演算に入る。このとき、指定領域86のク
ラスタ重心が、マウスの移動に追随して移動するように
する。
After specifying the area as described above, the color correcting section 50 sets the cluster centroid of the “ON” area to
Specify how much to change in the saturation direction or hue direction, and specify only the pixels belonging to the cluster in the "ON" area.
According to the amount of change, conversion is performed on the (μ, ν) space. For example, as shown in FIG. 16, (μ, ν)
The spatial distribution and the cluster centroid are displayed, and an arbitrary point on the screen is clicked as shown at 80 in FIG. 16, the mouse pointer is moved as at 82, and the amount of change is designated, as shown at 84. By clicking the mouse button again,
The operation for color correction by the color correction unit 50 described later is started for all designated areas. At this time, the cluster center of gravity of the designated area 86 moves so as to follow the movement of the mouse.

【0051】又、領域指定及び色修正については、次の
ような方法もある。
The following methods are available for area designation and color correction.

【0052】即ち、まず図17に示すように、ディスプ
レイに画像と(μ、ν)空間上での分布を表示する。図
18において、●印は各画素の(μ、ν)空間上での画
素値で、ディスプレイ上には画素値に対応した色つきで
表示し、修正するべき色が(μ、ν)空間上で、どの位
置にあるのか、一目でわかるようにする。又、×印はク
ラスタ重心を表す。
That is, first, as shown in FIG. 17, an image and a distribution in the (μ, ν) space are displayed on the display. In FIG. 18, the mark ● represents the pixel value of each pixel in the (μ, ν) space, and is displayed on the display with a color corresponding to the pixel value, and the color to be corrected is displayed in the (μ, ν) space. So that you can see at a glance where they are. The crosses indicate the cluster centroids.

【0053】次に、修正したい色をマウスで指定する。
図19に示すように、マウスポインタを、修正したい色
領域を表すクラスタのクラスタ重心に持っていき、マウ
スボタンを押す(クリックする)ことにより色領域を指
定する。
Next, the color to be corrected is designated by the mouse.
As shown in FIG. 19, the mouse pointer is moved to the cluster centroid of the cluster representing the color area to be corrected, and the color area is designated by pressing (clicking) the mouse button.

【0054】このとき、指定したクラスタが画像でどの
領域を表すのかわかるようにするため、図20に示すよ
うに、指定領域以外の部分を反転表示する。
At this time, in order to make it clear which region the designated cluster represents in the image, the portion other than the designated region is highlighted as shown in FIG.

【0055】次に、図21に示すように、(μ、ν)空
間上で変化させたい量だけ移動し、変化量を指定する。
このときクラスタ重心を表す×印のみがポインタに追随
して移動するようにする。移動が完了したら、その位置
でマウスボタンをもう一度クリックすることにより色修
正の演算に入る。
Next, as shown in FIG. 21, the movement is performed in the (μ, ν) space by an amount to be changed, and the amount of change is designated.
At this time, only the mark “x” representing the center of gravity of the cluster moves following the pointer. When the movement is completed, click the mouse button again at that position to enter the color correction operation.

【0056】色修正部50は、色修正の演算を行うもの
で、修正前、修正後のクラスタ重心の(μ、ν)値よ
り、色相方向、彩度方向にどれだけ変化させればよい
か、即ち図22におけるθ及びαの値を計算によって求
める。求められたθ、αを用い、図23に示すように、
実際の画素値を(μ、ν)空間で変化させ表示する。
The color correction unit 50 performs a color correction operation, and determines how much the hue and saturation directions should be changed from the (μ, ν) values of the cluster centroids before and after the correction. That is, the values of θ and α in FIG. 22 are obtained by calculation. Using the obtained θ and α, as shown in FIG.
The actual pixel value is changed and displayed in the (μ, ν) space.

【0057】最後に、これと同時に、実際の画像のほう
も、修正、表示し、図24に示すように、反転表示を元
に戻して、色修正を完了する。
Finally, at the same time, the actual image is also corrected and displayed, and as shown in FIG. 24, the inverted display is returned to the original state, and the color correction is completed.

【0058】前記逆変換部60は、色修正後の信号がL
μνなので、これをL*u *v *信号に逆変換する。
(8)式により逆変換は以下のようになる。
The inverse converter 60 determines that the signal after color correction is L
Since μν, this is inversely transformed into an L * u * v * signal.
According to the equation (8), the inverse transformation is as follows.

【0059】[0059]

【数4】 (Equation 4)

【0060】このL*u *v *を更にRGB信号に戻
す。L*u *v *をXYZに変換する変換式は以下のよ
うになる。
This L * u * v * is returned to an RGB signal. The conversion formula for converting L * u * v * into XYZ is as follows.

【0061】[0061]

【数5】 (Equation 5)

【0062】又、XYZからRGBへの変換は、次式で
定義される。
The conversion from XYZ to RGB is defined by the following equation.

【0063】[0063]

【数6】 (Equation 6)

【0064】以上のような逆変換により、特定領域のみ
色修正された画像が作成される。
By the above-described inverse transformation, an image in which only the specific area is color-corrected is created.

【0065】[0065]

【発明の効果】以上説明した通り、本発明では、明度軸
を含む色空間上での物体の反射モデルから推定される色
分布の特徴を「黒」から「物体色」を通り「白」へ至る
曲線としてモデル化し、曲線を区別可能な、所定明度に
対応する2次元パラメータ空間上でクラスタリングを行
っているため、同一領域の画素は、パラメータ空間上で
は特定の場所に局在し易くなり、その結果、従来法と比
較して、より良い領域分割を行うことが可能になり、特
定領域の色修正が効率的に行えるようになる。
As described above, according to the present invention, the brightness axis
The feature of the color distribution estimated from the reflection model of the object on the color space including is modeled as a curve from "black" through "object color" to "white", and the curves can be distinguished . To the predetermined brightness
Since clustering is performed on the corresponding two-dimensional parameter space, pixels in the same region are more likely to be localized at a specific location on the parameter space. As a result, better region division can be performed as compared with the conventional method. This makes it possible to perform color correction of a specific area efficiently.

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

【図1】従来のRGB色空間上でのクラスタリング手法
を説明する線図
FIG. 1 is a diagram illustrating a conventional clustering method on an RGB color space.

【図2】本発明の原理を説明するための、L*u *v *
空間上における一物体の物体色の分布の一例を示す線図
FIG. 2 illustrates L * u * v * for explaining the principle of the present invention.
Diagram showing an example of the distribution of the object color of one object in space

【図3】同じく、画像全体における複数の物体の物体色
の分布の例を示す線図
FIG. 3 is a diagram showing an example of an object color distribution of a plurality of objects in the entire image.

【図4】従来のクラスタリング手法による分割結果の一
例をL*u *v *空間上に示した線図
FIG. 4 is a diagram showing an example of a division result by a conventional clustering method in an L * u * v * space.

【図5】同じく他の例をL*u *v *空間上に示した線
FIG. 5 is a diagram showing another example in L * u * v * space.

【図6】本発明のクラスタリング手法を説明するため
の、L*u *v *空間上の「黒」を表わす点と、「白」
を表わす点を通る曲線群を示す線図
FIG. 6 is a view showing a point representing “black” and “white” on an L * u * v * space for explaining the clustering method of the present invention.
Diagram showing a group of curves passing through points representing

【図7】同じく、L*のとり得る範囲を正規化した状態
を示す線図
FIG. 7 is a diagram showing a state in which a possible range of L * is normalized.

【図8】実際の画像の色空間上での分布の例を示す線図FIG. 8 is a diagram illustrating an example of distribution of an actual image in a color space;

【図9】同じく、マッピングによって得られる(μ、
ν)平面上での分布を示す線図
FIG. 9 is also obtained by mapping (μ,
ν) Diagram showing distribution on plane

【図10】本発明の実施例を実施するための装置の全体
構成を示すブロック線図
FIG. 10 is a block diagram showing an overall configuration of an apparatus for implementing an embodiment of the present invention.

【図11】前記実施例の特徴空間への変換部で用いられ
ている変換式を説明するための線図
FIG. 11 is a diagram for explaining a conversion formula used in a feature space conversion unit of the embodiment.

【図12】前記実施例の領域分割部で用いられている二
次元クラスタリング手法の一例を説明するための流れ図
FIG. 12 is a flowchart for explaining an example of a two-dimensional clustering method used in the region dividing unit of the embodiment.

【図13】前記実施例により得られるクラスタ分割とク
ラスタ代表点を示す線図
FIG. 13 is a diagram showing cluster division and cluster representative points obtained by the embodiment.

【図14】図13のクラスタ代表点を含むL*u *v *
空間上の領域を示す線図
FIG. 14 shows L * u * v * including the cluster representative points in FIG.
Diagram showing areas in space

【図15】マウスにより領域を指定するための画像とカ
ラーパレットを表示したディスプレイの説明図
FIG. 15 is an explanatory diagram of a display displaying an image for specifying an area with a mouse and a color palette;

【図16】(μ、ν)空間の分布とクラスタ重心の変化
量を示す線図
FIG. 16 is a diagram showing the distribution of (μ, ν) space and the amount of change in the center of gravity of the cluster;

【図17】マウスにより色修正するため画像と(μ、
ν)空間上での分布を表示したディスプレイの説明図
FIG. 17 shows images and (μ,
ν) Explanatory diagram of display displaying distribution in space

【図18】(μ、ν)空間上での画素値とクラスタ重心
を示す線図
FIG. 18 is a diagram showing pixel values and cluster centroids in (μ, ν) space;

【図19】修正する色領域のクラスタ重心を示す線図FIG. 19 is a diagram showing a cluster centroid of a color area to be corrected;

【図20】指定領域以外を反転表示したディスプレイの
説明図
FIG. 20 is an explanatory diagram of a display in which an area other than a designated area is highlighted.

【図21】クラスタ重心の変化量を示す線図FIG. 21 is a diagram showing a change amount of a cluster centroid;

【図22】クラスタ重心の色相方向、彩度方法の変化量
を示す線図
FIG. 22 is a diagram showing a hue direction of a cluster centroid and a change amount of a saturation method;

【図23】画素値を移動した修正後のクラスタを示す線
FIG. 23 is a diagram showing a cluster after correction in which pixel values are moved.

【図24】色修正後の画像を表示するディスプレイの説
明図
FIG. 24 is an explanatory diagram of a display for displaying an image after color correction.

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

10…色空間変換部 20…特徴空間への変換部 30…領域分割部 40…領域指定部 50…色修正部 60…逆変換部 70…ディスプレイ DESCRIPTION OF SYMBOLS 10 ... Color space conversion part 20 ... Conversion part to feature space 30 ... Area division part 40 ... Area specification part 50 ... Color correction part 60 ... Inverse conversion part 70 ... Display

───────────────────────────────────────────────────── フロントページの続き (51)Int.Cl.7 識別記号 FI G06T 11/60 120 G06T 11/60 120A H04N 1/46 H04N 1/40 D 1/60 1/46 Z (58)調査した分野(Int.Cl.7,DB名) G06T 7/00 - 7/60 H04N 1/46 H04N 1/40 - 1/419 ──────────────────────────────────────────────────続 き Continued on the front page (51) Int.Cl. 7 Identification code FI G06T 11/60 120 G06T 11/60 120A H04N 1/46 H04N 1/40 D 1/60 1/46 Z (58) Fields surveyed (Int.Cl. 7 , DB name) G06T 7/ 00-7/60 H04N 1/46 H04N 1/40-1/419

Claims (1)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】明度軸を含む色空間上での物体の反射モデ
ルから推定される色分布の特徴を、「黒」から「物体
色」を通り「白」へと至る曲線としてモデル化し、 該曲線を区別可能な、所定明度に対応する2次元パラメ
ータ空間上へ各画素を写像することにより、同一領域の
画素同士が特定の場所に局在するような分布を得、 その2次元パラメータ空間上でクラスタリングを行うこ
とにより領域分割を行い、 ディスプレイ上で領域を指定して、該指定領域の色修正
を行うことを特徴とするカラー画像の特定領域の色修正
方法。
1. A reflection model of an object on a color space including a lightness axis.
The characteristic of the color distribution estimated from the color is modeled as a curve from “black” through “object color” to “white”, and the two-dimensional parameter corresponding to a predetermined brightness that can distinguish the curve. > By mapping each pixel on the data space, a distribution is obtained in which the pixels in the same area are localized at a specific location, and the area is divided by performing clustering on the two-dimensional parameter space. A color correction method for a specific area of a color image, wherein an area is specified on a display and the color of the specified area is corrected.
JP2156793A 1993-02-10 1993-02-10 Color correction method for specific area of color image Expired - Fee Related JP3289792B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2156793A JP3289792B2 (en) 1993-02-10 1993-02-10 Color correction method for specific area of color image

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2156793A JP3289792B2 (en) 1993-02-10 1993-02-10 Color correction method for specific area of color image

Publications (2)

Publication Number Publication Date
JPH06237372A JPH06237372A (en) 1994-08-23
JP3289792B2 true JP3289792B2 (en) 2002-06-10

Family

ID=12058608

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2156793A Expired - Fee Related JP3289792B2 (en) 1993-02-10 1993-02-10 Color correction method for specific area of color image

Country Status (1)

Country Link
JP (1) JP3289792B2 (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3970052B2 (en) * 2002-02-27 2007-09-05 キヤノン株式会社 Image processing device
KR100590543B1 (en) * 2004-02-26 2006-06-19 삼성전자주식회사 Method and device for converting color temperature with correction function according to brightness of image pixel
JP2013196308A (en) * 2012-03-19 2013-09-30 Ricoh Co Ltd Image processor, image processing method, program and recording medium
JP7331602B2 (en) * 2019-10-04 2023-08-23 コニカミノルタ株式会社 Color conversion table correction device and program

Also Published As

Publication number Publication date
JPH06237372A (en) 1994-08-23

Similar Documents

Publication Publication Date Title
US5317678A (en) Method for changing color of displayed images by use of color components
US7342572B2 (en) System and method for transforming an ordinary computer monitor into a touch screen
JPH0273474A (en) Picture processing method
US20020085752A1 (en) Image processing apparatus and method
US7599553B2 (en) Image processing apparatus and method that perform color matching using detected uniformity
US20120008000A1 (en) Image processing apparatus, image processing system, computer readable medium, and image processing method
JP3289787B2 (en) How to segment a color image
JP3289792B2 (en) Color correction method for specific area of color image
US7068856B2 (en) Method and system for determining and correcting image orientation angle
JP3833993B2 (en) Method and apparatus for binarizing color document image
CN114760422B (en) Backlight detection method and system, electronic device and storage medium
US5825916A (en) Illuminant color detection
JP2005346474A (en) Image processing method and apparatus, program, and storage medium
JP3256312B2 (en) Extraction method of specific area of color image
CN120014171A (en) Model construction method and device based on pan-tilt scanning recognition
JP3061812B2 (en) Pattern recognition method and apparatus
CN117036216A (en) A data generation method, device, electronic equipment and storage medium
US20020108047A1 (en) Control system for image input device, especially fingerprint image input device
JPH0998295A (en) Color image data compression method
JP3346849B2 (en) How to segment a color image
JP3374650B2 (en) Image color distribution curve approximation system and limited color determination system using this approximation system
CN117152397B (en) Three-dimensional face imaging method and system based on thermal imaging projection
CN115965674B (en) Fragmentation depth map correction system with temporal smoothness
CN111191518A (en) Double-spectrum target detection frame coordinate synchronization and mask layer drawing method
JPH07262378A (en) Item identification system

Legal Events

Date Code Title Description
FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090322

Year of fee payment: 7

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090322

Year of fee payment: 7

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20100322

Year of fee payment: 8

LAPS Cancellation because of no payment of annual fees