JP2009296372A - Color conversion method - Google Patents

Color conversion method Download PDF

Info

Publication number
JP2009296372A
JP2009296372A JP2008148425A JP2008148425A JP2009296372A JP 2009296372 A JP2009296372 A JP 2009296372A JP 2008148425 A JP2008148425 A JP 2008148425A JP 2008148425 A JP2008148425 A JP 2008148425A JP 2009296372 A JP2009296372 A JP 2009296372A
Authority
JP
Japan
Prior art keywords
color
color conversion
objects
stress
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.)
Withdrawn
Application number
JP2008148425A
Other languages
Japanese (ja)
Inventor
Shoichi Nomura
庄一 野村
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.)
Konica Minolta Business Technologies Inc
Original Assignee
Konica Minolta Business Technologies Inc
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 Konica Minolta Business Technologies Inc filed Critical Konica Minolta Business Technologies Inc
Priority to JP2008148425A priority Critical patent/JP2009296372A/en
Publication of JP2009296372A publication Critical patent/JP2009296372A/en
Withdrawn legal-status Critical Current

Links

Abstract

<P>PROBLEM TO BE SOLVED: To provide a color conversion method that can convert color by limiting break of color tone relationship having certain significance to a low level. <P>SOLUTION: When an original image existing in a first color space M1 and composed by a plurality of objects (large areas A, B, C, intermediate areas a1-a3, b1-b3, and so on) is converted in color to an image within a second color space M2, a difference between a color difference between two objects in the first color space and a color difference obtained after color conversion into the second color space between the two objects is used as a distortion, and when using a force exerted in a direction of canceling this distortion as a stress, a stress characteristic (in the figure, a solid line between the objects represents a stress) for distortion caused between one object and the other object is determined for each of the objects constituting the original image to make color conversion in such a manner that a sum of stresses is reduced. <P>COPYRIGHT: (C)2010,JPO&INPIT

Description

本発明は、第1の色空間に存在する元画像を第2の色空間内へ色変換する色変換方法に関する。   The present invention relates to a color conversion method for color-converting an original image existing in a first color space into a second color space.

モニタ画面に表示可能な色の範囲(編集色空間)とプリンタやプロジェクタなどの出力デバイスで出力可能な色の範囲(出力色空間)とは一致しない場合が多い。そのため、モニタ画面を見ながら編集した画像を出力デバイスで出力するとモニタ画面で確認した色と異なる色で出力されることがある。そこで、編集色空間と出力色空間とのカラーマッチングを確保する技術が各種提案されている。   In many cases, the color range that can be displayed on the monitor screen (editing color space) does not match the color range that can be output by an output device such as a printer or projector (output color space). For this reason, when an edited image is output by an output device while viewing the monitor screen, it may be output in a color different from the color confirmed on the monitor screen. Thus, various techniques for ensuring color matching between the edit color space and the output color space have been proposed.

たとえば、出力デバイスの色空間をエミュレートすることで、モニタ画面上で出力時の色調を確認しながら編集可能にした編集装置がある(たとえば、特許文献1参照。)。また、再現可能な色の範囲(ガマット)に弾性変形を加えることで彩度をできるだけ維持しながら色変換する色変換方法が提案されている(たとえば、特許文献2参照。)。   For example, there is an editing apparatus that enables editing while emulating the color space of the output device while checking the color tone at the time of output on a monitor screen (see, for example, Patent Document 1). Further, a color conversion method has been proposed in which color conversion is performed while maintaining saturation as much as possible by applying elastic deformation to a reproducible color range (gamut) (see, for example, Patent Document 2).

また、使用されている色数(ノード数)を、隣り合っていない色を統合するなどのルールに従って縮約し、色数を減らして色を再配置する技術(たとえば、特許文献3参照。)、カラー画像を白黒化する際に衝突する(同一グレーレベルに変換される)色彩のグレースケール表現にテクスチャを加える技術(たとえば、特許文献4参照。)、隣接する領域で色調差が小さい場合に枠を付ける、テクスチャを加える、などの装飾を施すことによって識別性を確保する技術(たとえば、特許文献5参照。)、などもある。   Further, a technique of reducing the number of colors (number of nodes) according to a rule such as integrating colors that are not adjacent to each other and reducing the number of colors and rearranging the colors (see, for example, Patent Document 3). , A technique for adding texture to a grayscale representation of colors that are collided (converted to the same gray level) when converting a color image to black and white (see, for example, Patent Document 4), and when the color difference between adjacent areas is small There is also a technique (for example, refer to Patent Document 5) that secures discrimination by applying decoration such as adding a frame or adding a texture.

特開2004−139496号公報JP 2004-139496 A 特開平7−123283号公報JP 7-123283 A 特開平10−149347号公報Japanese Patent Laid-Open No. 10-149347 特開2002−218263号公報JP 2002-218263 A 特開2007−94585号公報JP 2007-94585 A

編集色空間内で出力デバイスの色空間をエミュレートする場合、正確なカラーマッチングは色空間の共通領域でしか成立しない。このため、出力側の色空間が小さい場合には色差を圧縮することは避けられない。たとえば、図3に示す画像Pは、大領域A、大領域B、大領域C(背景)の要素(オブジェクト)に分けられ、大領域Aはさらに中領域a1と中領域a2と中領域a3(背景)の各要素で構成され、大領域Bは中領域b1と中領域b2と中領域b3(背景)の各要素で構成され、中領域a2にはさらに小領域a21と小領域a22と小領域a23(背景)とで構成されるというオブジェクト構造を備えている。図28(a)は、大領域Aのオブジェクト構造と、大領域Bのオブジェクト構造と、大領域Cのオブジェクト構造を、その色度の関係について個別に表したものである。なお、小領域は図示省略してある。オブジェクト相互の位置関係はそれらの色調関係を示している。またオブジェクト同士を結ぶ実線はそのオブジェクト間の関連強度の強さを表している。これらのオブジェクトで構成される画像Pを編集装置のモニタ画面の有する第1の色空間M1において表すと図28(b)のようになる。この画像Pを第2の色空間M2を有する出力デバイスをエミュレートしてモニタ画面に表示するシステムで扱う場合、図28(c)に示すように、第1の色空間M1と第2の色空間M2の共通領域に画像Pを圧縮して収めることになり、オブジェクト間の色差や彩度のレンジが小さくなってしまう。   When emulating the output device color space within the edit color space, accurate color matching can only occur in the common region of the color space. For this reason, when the color space on the output side is small, it is inevitable to compress the color difference. For example, the image P shown in FIG. 3 is divided into elements (objects) of a large area A, a large area B, and a large area C (background), and the large area A is further divided into a medium area a1, a medium area a2, and a medium area a3 ( The large area B is composed of the elements of the middle area b1, the middle area b2, and the middle area b3 (background). The middle area a2 further includes a small area a21, a small area a22, and a small area. It has an object structure composed of a23 (background). FIG. 28A shows the object structure of the large area A, the object structure of the large area B, and the object structure of the large area C individually in relation to the chromaticity thereof. The small area is not shown. The positional relationship between the objects indicates their color relationship. A solid line connecting the objects represents the strength of the relationship between the objects. When the image P composed of these objects is represented in the first color space M1 of the monitor screen of the editing apparatus, it is as shown in FIG. When this image P is handled by a system that emulates an output device having the second color space M2 and is displayed on the monitor screen, as shown in FIG. 28C, the first color space M1 and the second color are displayed. The image P is compressed and stored in the common area of the space M2, and the color difference and saturation range between objects is reduced.

また、画像Pをガマットの弾性変形により彩度を維持しながら出力デバイスの色空間M2内へ色変換すると、図28(d)に示すように、ある方向の色差は圧縮され、別の方向には伸長されてしまい、意図しない色関係の歪みが生じてしまう。たとえば、大領域Bを構成する3つのオブジェクトb1、b2、b3は本来、三角形状の色配置であったものが、色空間M2へ色変換するとほぼ一直線上に並ぶような色配置となってしまい、大領域Bを構成するオブジェクトb1、b2、b3相互の色関係が大きく崩れている。編集者がオブジェクトb1、b2、b3の色関係に何らかの意味を持たせていたような場合には、その意図が失われた出力画像になってしまう。   Further, when the image P is color-converted into the color space M2 of the output device while maintaining the saturation by elastic deformation of the gamut, the color difference in one direction is compressed and the other direction is compressed as shown in FIG. Will be expanded, and unintended color-related distortion will occur. For example, the three objects b1, b2, and b3 constituting the large area B originally have a triangular color arrangement, but when the color is converted to the color space M2, the color arrangement is almost aligned. The color relationship between the objects b1, b2, and b3 constituting the large area B is greatly broken. If the editor gives some meaning to the color relationship between the objects b1, b2, and b3, the output image loses its intention.

また、特許文献3の技術では、編集者の識別意図と関わりなく、隣り合っていない色を統合するといったルールに従ってノード数を縮約するので、たとえば、領域別に色分けされた円グラフの離れた領域が同一色に統合されてしまうなど、異なる色調で表現したいオブジェクトが同一色に統合されてしまう可能性があり、色に意味がある場合に、その意味が失われてしまう場合がある。   Further, in the technique of Patent Document 3, the number of nodes is reduced according to a rule of integrating colors that are not adjacent to each other regardless of the editor's identification intention. Objects that are to be expressed in different tones may be integrated into the same color, such as being integrated into the same color, and the meaning may be lost if the color is meaningful.

また枠やテクスチャなどの装飾を施す技術は識別性を確保するために有効であるが、色変換においては、色調による識別性の確保を優先し、装飾の付加は極力控えることが望ましい。   In addition, a technique for applying decoration such as a frame or texture is effective for ensuring discrimination. However, in color conversion, it is desirable to give priority to ensuring discrimination by color tone and to avoid adding decoration as much as possible.

本発明は、上記の問題を解決しようとするものであり、意味を持つ色調関係の崩れを少なく抑えて色変換することのできる色変換方法を提供することを目的としている。   An object of the present invention is to provide a color conversion method capable of performing color conversion while minimizing the disruption of a meaningful color tone relationship.

かかる目的を達成するための本発明の要旨とするところは、次の各項の発明に存する。   The gist of the present invention for achieving the object lies in the inventions of the following items.

[1]第1の色空間に存在しかつ複数のオブジェクトで構成された元画像を第2の色空間内の画像に色変換する色変換方法において、
前記第1の色空間における2つのオブジェクト間の色差と前記第2の色空間内へ色変換した後の前記2つのオブジェクト間の色差との差分を歪みとし、この歪みを解消する方向に働く力を応力とした場合に、前記元画像を構成するオブジェクトの各々について、他のオブジェクトとの間に生じる歪みに対する応力の特性を決定し、前記応力の総和が小さくなるように前記色変換を行う
ことを特徴とする色変換方法。
[1] In a color conversion method for color-converting an original image existing in a first color space and composed of a plurality of objects into an image in a second color space,
The difference between the color difference between two objects in the first color space and the color difference between the two objects after color conversion into the second color space is used as a distortion, and the force acts in a direction to eliminate the distortion. For each of the objects constituting the original image, the characteristic of the stress with respect to the distortion generated between the other objects is determined, and the color conversion is performed so that the total sum of the stresses becomes small. A color conversion method characterized by the above.

上記発明では、各オブジェクト間に応力特性を設定し、応力の総和が小さくなるように色変換するので、応力が大きく働く応力特性を設定したオブジェクト間の色調変化を少なく抑えて、第1の色空間から第2の色空間へ色変換することができる。オブジェクトとは、画一的色変換処理を行う画像内の1要素あるいはその要素の関連ある集合のことである。たとえば、ベタ塗りや類似テクスチャで埋められた一つの領域や、背景、文字、グラフ、写真などである。   In the above invention, the stress characteristics are set between the objects, and the color conversion is performed so that the total sum of the stresses becomes small. Color conversion can be performed from the space to the second color space. An object is an element in an image on which uniform color conversion processing is performed or a related set of the elements. For example, a single area filled with solid or similar texture, a background, characters, a graph, a photograph, and the like.

[2]前記応力の特性は、前記元画像のオブジェクト構造に基づいて決定する
ことを特徴とする[1]に記載の色変換方法。
[2] The color conversion method according to [1], wherein the stress characteristic is determined based on an object structure of the original image.

上記発明では、オブジェクト構造に基づいて各オブジェクト間の応力特性を設定する。オブジェクト構造とは画像を構成する各オブジェクトの配置関係やつながり方などである。オブジェクト自体の属性(文字、図形、写真などの種類、フォントの種類、サイズ、カラー、モノクロなど)をオブジェクト構造の要素に含めてもよい。   In the said invention, the stress characteristic between each object is set based on an object structure. The object structure is an arrangement relationship or connection method of objects constituting an image. Attributes of the object itself (character, figure, photo type, font type, size, color, monochrome, etc.) may be included in the elements of the object structure.

[3]前記総和が最小になるように前記色変換を行う
ことを特徴とする[1]または[2]に記載の色変換方法。
[3] The color conversion method according to [1] or [2], wherein the color conversion is performed so that the sum is minimized.

上記発明では、応力の総和が最小となるように最適化される。   In the above invention, optimization is performed so that the total sum of stresses is minimized.

[4]前記色変換の結果、任意のオブジェクトの色調の変化量または任意の2つのオブジェクト間の前記歪みが所定の閾値を超える場合は、該色変換の可否または色変換に関する条件の変更をユーザに問い合わせる
ことを特徴とする[1]乃至[3]のいずれか1つに記載の色変換方法。
[4] As a result of the color conversion, if the amount of change in the color tone of an arbitrary object or the distortion between two arbitrary objects exceeds a predetermined threshold value, the user can change whether or not the color conversion is possible or change the conditions regarding the color conversion. The color conversion method according to any one of [1] to [3], wherein

上記発明では、色変換によるオブジェクトの色調変化、あるいはオブジェクト間の色差の変化量(歪み)が閾値より大きい場合は、オペレータの意図しないあるいは許容範囲を超える色調変化が生じているおそれがあるので、オペレータに当該色変換の是非あるいは色変換の条件の変更を問い合わせる。条件には、たとえば、応力特性の設定に関する制約などがある。   In the above invention, if the change in color tone of the object due to color conversion or the change amount (distortion) of the color difference between the objects is larger than the threshold value, there is a possibility that a color tone change that is not intended by the operator or exceeds an allowable range may occur. The operator is inquired about whether to change the color conversion conditions or whether the color conversion is appropriate. Conditions include, for example, restrictions on setting stress characteristics.

[5]前記色変換する際に、所定のオブジェクトに対する色調変化を所定の色領域内に制限する
ことを特徴とする[1]乃至[4]のいずれか1つに記載の色変換方法。
[5] The color conversion method according to any one of [1] to [4], wherein when the color conversion is performed, a change in color tone for a predetermined object is limited to a predetermined color region.

上記発明では、制限対象のオブジェクトが所定の色領域から外れるような色変換が防止される。たとえば、橙、赤などの色名に対応する色領域を定めておき、所定の色名に属するオブジェクトが色変換によってその色名に対応する色領域から出ないように制限する。   In the above invention, color conversion is prevented such that the object to be restricted is out of the predetermined color region. For example, a color area corresponding to a color name such as orange or red is defined, and an object belonging to a predetermined color name is restricted from coming out of the color area corresponding to the color name by color conversion.

[6]前記応力の特性は、非線形である
ことを特徴とする[1]乃至[5]のいずれか1つに記載の色変換方法。
[6] The color conversion method according to any one of [1] to [5], wherein the stress characteristic is non-linear.

上記発明では、非線形にすることで色変換における色調変化を様々に高い自由度で制限、制約することができる。また、きめ細かい色調制御が可能になり、応力の総和を最小にするという手法の実現に寄与する。   In the above-described invention, it is possible to limit and restrict color tone change in color conversion with various degrees of freedom by making it non-linear. In addition, fine color control is possible, contributing to the realization of a technique for minimizing the total sum of stresses.

[7]前記応力を輝度または明るさの成分に関する応力と他の成分に関する応力とに分けると共に、輝度または明るさ成分に関する応力が前記他の成分に関する応力より大きくなるようにそれぞれの応力の特性を設定した
ことを特徴とする[1]乃至[6]のいずれか1つに記載の色変換方法。
[7] The stress is divided into a stress relating to the luminance or brightness component and a stress relating to the other component, and a characteristic of each stress is set so that the stress relating to the brightness or brightness component is greater than the stress relating to the other component. The color conversion method according to any one of [1] to [6], wherein the color conversion method is set.

上記発明では、色変換によって生じる色差の変化(歪み)を、輝度または明るさの成分と、該成分を含まない(たとえば、色相など)成分とに分け、それぞれに応力特性を設定する。輝度や明るさ成分は色相や彩度などの他の成分に比べて視覚的に大きな影響を与えるので、輝度や明るさ成分の歪みに対する応力が他の成分の歪みに対する応力より大きく作用するように応力特性を個別設定すれば、資料の「見やすさ」をより良く維持して色変換することができる。   In the above invention, the change (distortion) of the color difference caused by the color conversion is divided into a luminance or brightness component and a component not containing the component (for example, hue), and the stress characteristics are set for each. Since the luminance and brightness components have a greater visual impact than other components such as hue and saturation, the stress on the distortion of the luminance and brightness components should be greater than the stress on the distortion of the other components. If the stress characteristics are individually set, color conversion can be performed while maintaining the “easy to see” of the material better.

[8]前記色変換後に残留する応力が所定値以上となったオブジェクトに対して、その残留する応力に応じた装飾を施す
ことを特徴とする[1]乃至[7]のいずれか1つに記載の色変換方法。
[8] The object according to any one of [1] to [7], wherein a decoration corresponding to the residual stress is applied to an object whose residual stress after the color conversion is a predetermined value or more. The color conversion method described.

上記発明では、変換先の色空間が非常に小さく、オブジェクト間に残留応力が残らざるを得ない場合においても、輪郭やテクスチャを付与するなどの装飾を施すことで、残留応力による識別性の低下が補填され、編集環境(第1の色空間)におけるオブジェクト設定の意図をより良く生かした資料を第2の色空間に作成することができる。   In the above invention, even when the conversion destination color space is very small and residual stress is inevitably left between objects, the distinctiveness due to the residual stress is reduced by applying decorations such as adding contours and textures. Thus, a material that better utilizes the object setting intention in the editing environment (first color space) can be created in the second color space.

[9]特定のオブジェクトの色変換に関する制約条件の設定を受け付ける
ことを特徴とする[1]乃至[8]のいずれか1つに記載の色変換方法。
[9] The color conversion method according to any one of [1] to [8], wherein setting of a constraint condition related to color conversion of a specific object is received.

上記発明では、設定した制約条件の下で色変換が行われる。これにより、たとえば、絶対的色調そのものに意義があるオブジェクトの色調を重視することができ、より作画意図に合った色調バランスの資料を第2の色空間に作成することができる。   In the above invention, color conversion is performed under the set constraint conditions. Thereby, for example, it is possible to place importance on the color tone of an object that is meaningful in the absolute color tone itself, and it is possible to create a color tone balance material more suitable for the drawing intention in the second color space.

[10]特定パターンに属するオブジェクトを検出し、その検出したオブジェクトの色変換に関して所定の制約条件を設定する
ことを特徴とする[1]乃至[9]のいずれか1つに記載の色変換方法。
[10] The color conversion method according to any one of [1] to [9], wherein an object belonging to the specific pattern is detected, and a predetermined restriction condition is set for the color conversion of the detected object. .

上記発明では、たとえば、「人の顔」など特定パターンのオブジェクトを検出し、そのオブジェクトが「人の顔」として定めた所定の色領域を出ないように制約条件を自動設定して色変換が行われる。これにより、「人の顔」等、多くの人が記憶色を有するオブジェクトの色調をその記憶色から外れぬよう重視することができ、より好ましい色調の資料を第2の色空間に作成することができる。   In the above invention, for example, an object having a specific pattern such as “person's face” is detected, and color conversion is performed by automatically setting constraint conditions so that the object does not exit a predetermined color area defined as “person's face”. Done. Accordingly, it is possible to place importance on the color tone of an object having a memory color such as “person's face” so as not to deviate from the memory color, and to create a material with a more preferable color tone in the second color space. Can do.

[11]第1の画像と第2の画像とを前記色変換する場合に、前記第1の画像を構成するオブジェクトの中に前記第2の画像を構成するいずれかのオブジェクトと所定以上の関連強度を有するオブジェクトがある場合は、それら所定以上の関連強度を有するオブジェクトの色変換に関して所定の制約条件を設定する
ことを特徴とする[1]乃至[10]のいずれか1つに記載の色変換方法。
[11] When the color conversion of the first image and the second image is performed, the object constituting the first image and the object constituting the second image are more than a predetermined relationship with each other. The color according to any one of [1] to [10], wherein when there is an object having strength, a predetermined constraint condition is set with respect to color conversion of an object having a related strength greater than or equal to the predetermined strength. Conversion method.

上記発明では、複数ページにわたる資料において繰り返し引用されるパターン等の色調を揃えるように考慮することが可能になり、より好ましい色調バランスの資料を第2の色空間に作成することができる。たとえば、複数のページの資料に会社のロゴマークなど関連強度の高い類似したオブジェクトが存在する場合に、そのロゴマークの色調が複数ページの資料内で統一されるように色変換することが可能になる。   In the above-described invention, it is possible to consider that the color tone of a pattern or the like that is repeatedly cited in a material covering a plurality of pages can be considered, and a material having a more preferable color balance can be created in the second color space. For example, if there is a similar object with high related strength such as a company logo mark on multiple pages of material, it is possible to convert the color so that the color of the logo mark is unified in the multiple pages of material. Become.

[12]前記制約条件は、(1)オブジェクトの色調変化を所定の色領域内に制限する、(2)オブジェクトの前記第1の色空間における色と色変換後の前記第2の色空間における色との差分を歪みとして該歪みに対する応力を設定する、(3)所定の定義に基づいて定めた色とオブジェクトを色変換した後の前記第2の色空間における色との差分を歪みとして該歪みに対する応力を設定する、のうちの少なくとも1つである
ことを特徴とする[9]乃至[11]のいずれか1つに記載の色変換方法。
[12] The constraint conditions are: (1) restricting the color change of the object within a predetermined color area; (2) the color of the object in the first color space and the color converted in the second color space; (3) set the stress for the distortion as a difference from the color, and (3) use the difference between the color determined based on the predetermined definition and the color in the second color space after the color conversion of the object as the distortion. The color conversion method according to any one of [9] to [11], wherein at least one of setting stress for strain is set.

上記発明では、(1)の場合、色変換後の色が設定した色領域から外へ出ないように制約される。(2)の場合、元の色から色調が大きく外れないように制約される。(3)の場合、たとえば、色名に対応する色領域から出ないように制約する。制約条件として例示の手法を用いることにより、簡単に条件付加を行うことができる。   In the above invention, in the case of (1), the color after color conversion is restricted so as not to go out of the set color area. In the case of (2), it is restricted so that the color tone does not greatly deviate from the original color. In the case of (3), for example, the color area corresponding to the color name is restricted from coming out. By using the exemplified method as the constraint condition, it is possible to easily add a condition.

[13]第1の色空間に存在しかつ複数のオブジェクトで構成された元画像を第2の色空間内の画像に色変換する色変換方法において、
前記元画像を構成する各オブジェクト間に関連度を設定し、オブジェクト間の色差の変化が前記関連度の強いオブジェクト間ほど小さくなるようにして前記色変換を行う
ことを特徴とする色変換方法。
[13] In a color conversion method for color-converting an original image that exists in a first color space and includes a plurality of objects into an image in a second color space,
A color conversion method characterized in that a degree of association is set between each object constituting the original image, and the color conversion is performed such that a change in color difference between objects becomes smaller between objects having a higher degree of association.

上記発明では、オブジェクト間に関連度を設定し、関連度の強いオブジェクト間の色差の変化が少なくなるように色変換する。たとえば、オブジェクト間の色調変化によってそのオブジェクト間の識別性が低下する度合いの高いものほど関連度を高く設定すれば、識別性が低下しないように色変換することができる。   In the above invention, the degree of association is set between the objects, and the color conversion is performed so that the change in color difference between the objects with the strong degree of association is reduced. For example, if the relevance level is set higher as the degree of deterioration in distinguishability between objects due to a change in color tone between objects, color conversion can be performed so that the distinguishability does not decrease.

[14]前記関連強度は、前記元画像のオブジェクト構造に基づいて決定する
ことを特徴とする[13]に記載の色変換方法。
[14] The color conversion method according to [13], wherein the related strength is determined based on an object structure of the original image.

[15]前記元画像を構成するオブジェクトの数が3以上の場合にのみ、前記色変換を実行する
ことを特徴とする[1]乃至[14]のいずれか1つに記載の色変換方法。
[15] The color conversion method according to any one of [1] to [14], wherein the color conversion is executed only when the number of objects constituting the original image is three or more.

上記発明では、オブジェクトが3以上存在することによって応力特性あるいは関連度を2種以上定義することが可能になる。 In the above invention, it is possible to define two or more types of stress characteristics or relevance by having three or more objects.

以下、図面に基づき本発明の実施の形態を説明する。   Hereinafter, embodiments of the present invention will be described with reference to the drawings.

図1は、本発明の実施の形態に係る色変換方法を使用して色変換を行う画像処理システム10の構成を示している。画像処理システム10は、通信部11aや撮像部11b、スキャナ部11cなど1または2以上の任意の画像入力デバイスで構成された画像入力部11と、この画像入力部11によって取得した画像を各種フォーマットの画像ファイルにして記憶する画像記憶部12と、画像記憶部12に記憶されている画像の編集機能や色変換のための条件の設定機能などを果たす編集処理部13と、編集中や編集前後の画像などを表示する第1の画像出力デバイスとしてのモニタ装置14と、画像編集に係る各種の操作や色変換のための条件の入力操作などをオペレータから受ける指示入力部15と、設定された条件に従って色変換を実行する画像処理部16と、色変換後の画像を可視化して出力する第2の画像出力デバイス17とから構成される。 FIG. 1 shows a configuration of an image processing system 10 that performs color conversion using a color conversion method according to an embodiment of the present invention. The image processing system 10 includes an image input unit 11 including one or more arbitrary image input devices such as a communication unit 11a, an imaging unit 11b, and a scanner unit 11c, and an image acquired by the image input unit 11 in various formats. An image storage unit 12 that stores the image as an image file, an editing processing unit 13 that performs an editing function of an image stored in the image storage unit 12, a function for setting conditions for color conversion, and the like, and during editing and before and after editing A monitor device 14 serving as a first image output device for displaying an image and the like, an instruction input unit 15 for receiving various operations related to image editing, input operations of conditions for color conversion, and the like, and a set The image processing unit 16 executes color conversion according to conditions, and a second image output device 17 that visualizes and outputs the color-converted image.

画像記憶部12には、たとえば、ハードディスク装置など大容量の記憶装置が使用される。編集処理部13および画像処理部16は、CPU(Central Processing Unit)、ROM(Read Only Memory)、RAM(Random Access Memory)などを主要部として構成される。ROMに格納されたプログラムに従ってCPUが各種の処理を実行することで、編集処理部13および画像処理部16の機能が実現される。モニタ装置14は、カラーのディスプレイ装置で構成される。指示入力部15は、キーボード、マウスなどで構成される。第2の画像出力デバイス17は、プリンタ17aや投影型ディスプレイ17bなど画像を可視化する1または2以上の任意のデバイスでよい。   For the image storage unit 12, for example, a large-capacity storage device such as a hard disk device is used. The editing processing unit 13 and the image processing unit 16 are mainly configured by a CPU (Central Processing Unit), a ROM (Read Only Memory), a RAM (Random Access Memory), and the like. The functions of the editing processing unit 13 and the image processing unit 16 are realized by the CPU executing various processes according to the program stored in the ROM. The monitor device 14 is composed of a color display device. The instruction input unit 15 includes a keyboard, a mouse, and the like. The second image output device 17 may be one or more arbitrary devices that visualize an image, such as a printer 17a or a projection display 17b.

モニタ装置14の表示可能な色領域を第1の色空間、第2の画像出力デバイス17の可視化出力可能な色領域を第2の色空間とする。第1の色空間と第2の色空間は再現可能な色領域が異なっている。   A color area that can be displayed on the monitor device 14 is a first color space, and a color area that can be visualized and output by the second image output device 17 is a second color space. The first and second color spaces have different reproducible color areas.

指示入力部15を通じてオペレータから処理対象に指定された画像ファイルは画像記憶部12から読み出され、編集処理部13に取り込まれてモニタ装置14に表示される。オペレータはモニタ装置14上の画像を見て色の確認や各種の編集操作を行う。指示入力部15から編集操作が入力されると、画像処理部16はモニタ装置14に表示されている画像(画像ファイル)をその入力された編集操作に従って編集・加工する。さらに画像処理部16は編集・加工の終了した画像ファイル(第1の色空間に存在する元画像)を指示入力部15から入力された条件に従って第2の色空間内の画像に色変換した後、第2の画像出力デバイス17へ出力し、第2の画像出力デバイス17はその画像を可視化出力する。   An image file designated as a processing target by the operator through the instruction input unit 15 is read from the image storage unit 12, captured in the editing processing unit 13, and displayed on the monitor device 14. The operator looks at the image on the monitor device 14 and performs color confirmation and various editing operations. When an editing operation is input from the instruction input unit 15, the image processing unit 16 edits and processes an image (image file) displayed on the monitor device 14 according to the input editing operation. Further, the image processing unit 16 performs color conversion on the image file (original image existing in the first color space) that has been edited and processed into an image in the second color space according to the conditions input from the instruction input unit 15. To the second image output device 17, and the second image output device 17 visualizes and outputs the image.

図2は、画像処理部16が行う色変換に係る処理の概略を示している。まず、色変換の対象となる元画像の画像情報(画像ファイル)を画像記憶部12から取得する(ステップS101)。次に、その元画像をオブジェクトに分割し、オブジェクト構造を定義する。   FIG. 2 shows an outline of processing related to color conversion performed by the image processing unit 16. First, image information (image file) of an original image that is a target of color conversion is acquired from the image storage unit 12 (step S101). Next, the original image is divided into objects, and the object structure is defined.

ここで、オブジェクトとは、画一的色変換処理を行う画像内の1要素のことである。典型的にはベタ塗りや類似テクスチャで埋められた一つの領域や、類似フォントで記載された一連の文があるが、いくつかの構成要素で成り立つ1領域、例えば肌色のベタ塗りと点、線要素の結合で表された顔パターン等を一つのオブジェクトとして設定しても良く、いくつかのオブジェクトをグループ化し、より大領域(あるいは上位階層)のオブジェクトと定義しても良い。   Here, the object is one element in the image on which uniform color conversion processing is performed. There is typically a single area filled with solid or similar textures, or a series of sentences written in similar fonts, but one area consisting of several components, such as skin-colored solids and dots, lines A face pattern or the like represented by combining elements may be set as one object, or several objects may be grouped and defined as a larger area (or higher hierarchy) object.

なお、自然画像等の領域内に広大な画像階調を有する画像を処理対象とする際にもオブジェクトを定義する。この場合のオブジェクトは単一処理を行う領域ではなく、自然画像内の代表的な画像階調を示し、該代表値を用いて色変換条件を定めた後、画像階調の変換条件を定める。自然画像のオブジェクトについては後に詳述する。   Note that an object is also defined when processing an image having a vast image gradation in a region such as a natural image. The object in this case is not an area for performing a single process, but represents a representative image gradation in the natural image. After the color conversion condition is determined using the representative value, the image gradation conversion condition is determined. The natural image object will be described in detail later.

図3に示す元画像Pは、大領域A、大領域B、大領域C(背景)の3つのオブジェクトに大きく分割され、さらに大領域Aは中領域a1と中領域a2と中領域a3(背景)の各オブジェクトに分割され、大領域Bは中領域b1と中領域b2と中領域b3(背景)の各オブジェクトに分割され、さらに中領域a2は小領域a21と小領域a22と小領域a23(背景)の各オブジェクトに分割される。小領域をさらに細かくオブジェクトに分割してもかまわない。たとえば、どこまで分割するかを設定変更可能にしておき、設定された階層まで分割を行うようにすることができる。   The original image P shown in FIG. 3 is largely divided into three objects, a large area A, a large area B, and a large area C (background). The large area A is divided into a medium area a1, a medium area a2, and a medium area a3 (background). ), The large area B is divided into the middle area b1, the middle area b2, and the middle area b3 (background), and the middle area a2 is further divided into the small area a21, the small area a22, and the small area a23 ( The object is divided into background objects. The small area may be further divided into objects. For example, it is possible to change the setting of how far to divide, and to divide up to a set level.

図4は、図3に示す元画像Pのオブジェクト構造を示している。各々のオブジェクトが階層構造をとっている。実際には上位にあるオブジェクトに完全には包含されない下位オブジェクトも考えられ、このような場合には上位階層から中間階層を跳び越して直接関連線が引かれる関係も定義できる。応力の総和は各々の関連線(オブジェクト間を結ぶ線)について求めて加算すればよく、関連線の数に特段の制限は無い。   FIG. 4 shows the object structure of the original image P shown in FIG. Each object has a hierarchical structure. Actually, there may be a lower object that is not completely included in the upper object, and in such a case, a relationship in which a related line is directly drawn by jumping from the upper hierarchy to the intermediate hierarchy can be defined. The total sum of stress may be obtained for each related line (line connecting objects) and added, and the number of related lines is not particularly limited.

図2のステップS102における「オブジェクトの分割」は、ハードコピーの原稿をスキャナ部11cや別体の複合機のスキャン機能を利用して読み取った場合等、画像情報が構造化されていない場合に行う作業であり、色変換の対象となる元画像がすでにオブジェクト構造で構築されている場合(たとえば、プレゼンテーション作成ソフトで配置された各種パターン、フォント等)は必要なく、すぐにオブジェクト構造を定義する作業に取り掛かることができる。なお既に構造化されている場合であっても、領域の一部が構造化されていない情報である場合はその領域をオブジェクトに分割する処理が必要となる。   “Division of object” in step S102 of FIG. 2 is performed when image information is not structured, such as when a hard copy original is read using the scanning function of the scanner unit 11c or a separate multifunction machine. If the original image that is the target of color conversion has already been constructed with an object structure (for example, various patterns and fonts placed in the presentation creation software), it is not necessary to define the object structure immediately. You can get started. Even if the area has already been structured, if a part of the area is unstructured information, a process for dividing the area into objects is required.

オブジェクトの分割および構造化(ステップS102)が完了すると、続いて、関連オブジェクト間の歪みに対する「応力特性」を定義し決定する(ステップS103)。歪みは、対象となる2つのオブジェクト間の色差の変化を示す指標として定義する。すなわち、第1の色空間における2つのオブジェクト間の色差と該2つのオブジェクト間の第2の色空間内へ色変換した後の色差との差分を歪みとする。この歪みを解消する方向に働く力を応力とし、元画像を構成するオブジェクトの各々について、他のオブジェクトとの間に生じる歪みに対する応力特性を決定する。   When the division and structuring of the object (step S102) is completed, the “stress characteristic” for the distortion between the related objects is subsequently defined and determined (step S103). Distortion is defined as an index indicating a change in color difference between two target objects. That is, the difference between the color difference between two objects in the first color space and the color difference after color conversion into the second color space between the two objects is defined as distortion. The force acting in the direction of eliminating the distortion is used as stress, and the stress characteristic with respect to the distortion generated between other objects is determined for each of the objects constituting the original image.

図5は、歪みの一例をCIELAB表色系にて示したものである。色変換前の第1の色空間におけるオブジェクトa1とオブジェクトa2の色差をΔE、第2の色空間内へ色変換後のオブジェクトa1とオブジェクトa2の色差をΔE´としたとき、歪みはabs(ΔE−ΔE´)で表わされる。なおabs(数値)はその数値の絶対値を表す。図5の例では、色変換の前後でオブジェクトa1の色は変化せず、オブジェクトa2のみ色が変化している。したがって、色変換によりオブジェクトa2の移動した距離が歪みQとなっている。   FIG. 5 shows an example of distortion in the CIELAB color system. When the color difference between the object a1 and the object a2 in the first color space before the color conversion is ΔE, and the color difference between the object a1 and the object a2 after the color conversion into the second color space is ΔE ′, the distortion is abs (ΔE −ΔE ′). Note that abs (numerical value) represents the absolute value of the numerical value. In the example of FIG. 5, the color of the object a1 does not change before and after the color conversion, and only the color of the object a2 changes. Therefore, the distance moved by the object a2 by the color conversion is the distortion Q.

ΔEはCIELAB色空間の座標値を元に算出されるが、色差の計算方法はこれに限定されるものではなく、ΔE00等、別に提案されている計算方法や、CIELuv等、各種の均等色空間を元に算出することができ、また、CIECAM02等の「色の見え」に関するモデルを適用した色空間で算出しても良い。さらに、人の視覚特性は明るさ変化に対する空間分解能力が高いことから、明るさ関係の維持がより重要な意味を持つことが考えられる。明るさ方向の座標値の変化を本来の均等色空間の定義より大きく設定した仮想色空間を仮定し、その中でΔEを算出して、明るさ方向の変化をより大きな歪みとして捉え、オブジェクト間の明るさ関係をより強く維持するようにしてもよい。   ΔE is calculated based on the coordinate values of the CIELAB color space. However, the method of calculating the color difference is not limited to this, and various equivalent color spaces such as ΔE00 and other proposed calculation methods, CIEluv, and the like. And may be calculated in a color space to which a model relating to “color appearance” such as CIECAM02 is applied. Furthermore, since the human visual characteristics have a high spatial resolution capability with respect to changes in brightness, it is considered that maintaining the brightness relationship is more important. Assuming a virtual color space in which the change of the coordinate value in the brightness direction is set larger than the definition of the original uniform color space, ΔE is calculated in the virtual space, and the change in the brightness direction is regarded as a larger distortion. The brightness relationship may be maintained more strongly.

図6は、各種の応力特性を例示している。横軸は歪み、縦軸は応力としてグラフ化している。図6(a)は正負の歪みに対してリニアな応力特性を例示したものである。すなわち、バネのような単純な弾性を定義したものであり、直線の傾きが大きいほど、応力が強い(色差が維持されやすい)特性となる。   FIG. 6 illustrates various stress characteristics. The horizontal axis is graphed as strain, and the vertical axis is plotted as stress. FIG. 6A illustrates a linear stress characteristic with respect to positive and negative strains. That is, a simple elasticity such as a spring is defined, and the greater the slope of the straight line, the stronger the stress (the color difference is easily maintained).

応力特性は非線形であってもかまわない。たとえば、図6(b)は伸び方向(正の歪み、色差が大きくなる方向)より縮み方向(負の歪み、色差が小さくなる方向)に対してより大きな応力を与えるようにした応力特性の一例を示している。つまり色差拡大方向は容認する応力特性である。また、へき力のみで定義してもよい。なお、応力特性は、実用上は歪み値を入力としその歪み値に対する応力値を出力とするルックアップテーブルで構成することができる。   The stress characteristics may be non-linear. For example, FIG. 6B shows an example of a stress characteristic in which a greater stress is applied in the contraction direction (negative distortion, the direction in which the color difference is reduced) than in the extension direction (positive distortion, the direction in which the color difference is increased). Is shown. That is, the color difference expansion direction is an acceptable stress characteristic. Further, it may be defined only by the puncture force. In practice, the stress characteristic can be configured by a look-up table in which a strain value is input and a stress value corresponding to the strain value is output.

さらに応力を、オブジェクトの色(輝度成分を含む)を構成する成分のうち輝度または明るさの成分に関する応力と他の成分に関する応力とに分けると共に、輝度または明るさ成分の歪みに関する応力が他の成分に関する応力より大きくなるようにそれぞれの応力の特性を個別に設定してもよい。図6(c)は輝度方向の歪みに対する応力特性21と、他の成分(輝度成分を含まない色相などの成分)に対する応力特性22とを個別に設定し、かつ輝度方向の歪みに対する応力が輝度成分を含まない色相などの成分に対する応力より大きくなるように設定した場合の応力特性21、22の一例を示している。   Furthermore, the stress is divided into the stress relating to the luminance or brightness component and the stress relating to the other component among the components constituting the color of the object (including the luminance component), and the stress relating to the distortion of the brightness or brightness component is the other stress. The characteristics of each stress may be individually set so as to be larger than the stress related to the component. In FIG. 6C, the stress characteristic 21 with respect to the distortion in the luminance direction and the stress characteristic 22 with respect to other components (components such as hues not including the luminance component) are individually set, and the stress with respect to the distortion in the luminance direction is the luminance. An example of the stress characteristics 21 and 22 when set to be larger than the stress with respect to a component such as a hue not including the component is shown.

人の視覚特性は明るさ変化に対する空間分解能力が高いことから、明るさ関係の維持がより重要な意味を持つことが考えられる。従って、図6(c)のように、明るさ方向と色差(本図においては明るさを伴わない「色相」や「彩度」方向の変化を表す)に別々の応力特性を与えることもでき、これによってオブジェクト間の明るさ関係をより維持する特性を付与することができる。   Since human visual characteristics have a high spatial resolution capability against changes in brightness, it is considered that maintaining the brightness relationship has a more important meaning. Therefore, as shown in FIG. 6C, different stress characteristics can be given to the brightness direction and the color difference (in this figure, the change in the “hue” and “saturation” directions without brightness). As a result, it is possible to provide a characteristic that maintains the brightness relationship between the objects.

成分毎の応力特性を設定することで色差全体として非線形の応力特性が設定される。成分別のように複数の歪みを定義した場合、各々の歪みから応力を算出し、合算すればよい。なお、後述する最適化の手法(図18、19)のように繰り返し検証を行う場合、ベクトル、スカラー、どちらの加算でも実用上問題は生じない。   By setting the stress characteristics for each component, nonlinear stress characteristics are set as the entire color difference. When a plurality of strains are defined for each component, the stress is calculated from each strain and added. Note that, when iterative verification is performed as in the optimization method described later (FIGS. 18 and 19), there is no practical problem with addition of both vectors and scalars.

このほか、応力特性は種々の形に変えることができ、ある閾値を境に急に応力が大きくなってもよく、この形を用いて種々の障壁を定義することができる。すなわち、色変換する際に、所定のオブジェクトに対する色調変化を所定の色領域内に制限することができる。たとえば、色の属性として「色名」を定義し、その色名として認識される色領域の境界に応力の障壁を設け、障壁内の色を有するオブジェクトが障壁の外の領域へ色変換されないように制限してもよい。   In addition, the stress characteristic can be changed to various shapes, and the stress may suddenly increase with a certain threshold as a boundary, and this shape can be used to define various barriers. That is, when color conversion is performed, a change in color tone for a predetermined object can be limited within a predetermined color region. For example, “color name” is defined as a color attribute, a stress barrier is provided at the boundary of the color area recognized as the color name, and an object having a color inside the barrier is not color-converted to an area outside the barrier. You may restrict to.

図7(a)は、色名障壁の一例であり、色領域25は橙色の範囲を定義したものであり、色領域26は赤色の範囲を定義したものである。例えば赤い色の場合、ある範囲の色調変化は認識できたとしても色としては「赤である」という範囲が存在する。この範囲を超え、たとえば「橙である」という色調に変化させることは避けた方が良い場合があり、そのような場合に障壁を定義する。   FIG. 7A shows an example of a color name barrier. The color area 25 defines an orange range, and the color area 26 defines a red range. For example, in the case of a red color, even if a change in color tone in a certain range can be recognized, there is a range of “red” as the color. In some cases, it is better to avoid exceeding this range, for example, to change to a color tone of “orange”. In such a case, a barrier is defined.

このような障壁を得るための応力特性の一例を図7(b)に示す。歪みがある値を超えるところで応力が急増あるいは無限大となるようにすることで、障壁が形成される。かかる応力特性を当該のオブジェクトについて定義することで、必要なオブジェクトに対してのみ、障壁を機能させることができる。このように色名障壁を設けることにより、白調整の自由度を保ちつつ、「赤」から「橙」などオブジェクトの色名が変わるような変化を未然に防止することができ、より自然な色調バランスの資料を作成することができる。   An example of stress characteristics for obtaining such a barrier is shown in FIG. By causing the stress to increase rapidly or become infinite where the strain exceeds a certain value, a barrier is formed. By defining such a stress characteristic for the object, the barrier can function only for the necessary object. By providing a color name barrier in this way, it is possible to prevent changes that change the color name of an object, such as “red” to “orange”, while maintaining the degree of freedom of white adjustment. Balance materials can be created.

例えば赤い色の場合、ある範囲の色調変化は認識できたとしても色としては「赤である」という範囲が存在する。この範囲を超え、例えば「橙である」という色調に変化させることは避けた方が良い場合があり、そのような場合に障壁を定義する。実際には色変換の結果が障壁を乗り越えるポイントで急激に応力が大きくなる、図7(b)のような応力特性を当該のオブジェクトについて定義することで、必要なオブジェクトに対してのみ、障壁を機能させることが出来る。   For example, in the case of a red color, even if a change in color tone in a certain range can be recognized, there is a range of “red” as the color. In some cases, it is better to avoid exceeding this range, for example, to change the color tone to “orange”. In such a case, a barrier is defined. Actually, the stress suddenly increases at the point where the color conversion result exceeds the barrier. By defining the stress characteristic as shown in FIG. 7B for the object, the barrier is applied only to the necessary object. Can function.

応力特性の設定基準には次のようなものがある。
(1)連結しているものは応力が強い
(2)輝度差のあるものは応力が強い
(3)輪郭のある領域は輪郭外との応力が弱い
There are the following criteria for setting the stress characteristics.
(1) Stress is high when connected, (2) Stress is high when there is a difference in luminance (3) Stress outside the contour is weak in the contoured region

図8は、図4に示すオブジェクト構造を有する画像Pの各オブジェクト間に応力特性を設定した状態を模式的に示している。図中の一点差線は包含関係を、実線はオブジェクト相互間の応力特性を示し、太い実線ほど歪みに対する応力が大きいことを示している。なお、オブジェクト間の微小な応力については記載を省略してある。   FIG. 8 schematically shows a state in which stress characteristics are set between the objects of the image P having the object structure shown in FIG. The one-point difference line in the figure indicates the inclusion relationship, the solid line indicates the stress characteristic between the objects, and the thicker solid line indicates that the stress with respect to the strain is greater. In addition, description about the minute stress between objects is abbreviate | omitted.

応力特性の設定の詳細は後述するが、たとえば、図3に示す画像Pの大領域Cと大領域Bのように、一方のオブジェクトが明確な輪郭で囲まれている場合には、両者の色調関係が多少変化しても資料としての識別性に損失は生じない。そのため、大領域Cと大領域Bの間には歪みに対する応力を大きく設定する必要はなく、図8に示すように、大領域Cと大領域Bの間は弱い応力で結ばれる。   Details of the setting of the stress characteristics will be described later. For example, when one object is surrounded by a clear outline as in the large area C and large area B of the image P shown in FIG. Even if the relationship changes slightly, there is no loss in the discriminability as a document. Therefore, it is not necessary to set a large stress for strain between the large region C and the large region B, and the large region C and the large region B are connected with a weak stress as shown in FIG.

図2に戻って説明を続ける。次に画像処理部16は、元画像を構成するオブジェクトの各々について、他のオブジェクトとの間の、第1の色空間における色差を算出する(ステップS104)。なおステップS104の処理の実行位置は、ステップS102とステップS103の間に移動されてもかまわない。   Returning to FIG. 2, the description will be continued. Next, the image processing unit 16 calculates a color difference in the first color space between each object constituting the original image and another object (step S104). Note that the execution position of the process of step S104 may be moved between step S102 and step S103.

次に、使用される第2の画像出力デバイス17の色空間情報(第2の色空間で表現可能な色領域の範囲を示す情報)を取得する(ステップS105)。   Next, the color space information of the second image output device 17 to be used (information indicating the range of the color area that can be expressed in the second color space) is acquired (step S105).

次に、元画像の各オブジェクトを第2の色空間内へ色変換した場合の応力の総和が最小となるように元画像の各オブジェクトを第2の色空間に配置し(ステップS106)、この配置結果に基づいてする元画像の画像情報を色変換して(ステップS107)処理を終了する(エンド)。   Next, each object of the original image is arranged in the second color space so that the total sum of stresses when the objects of the original image are color-converted into the second color space is minimized (step S106). The image information of the original image based on the arrangement result is color-converted (step S107), and the process is ended (END).

上記した本実施の形態の色変換方法について、文字、写真、グラフなどを含む図9の元画像P2を処理対象とした場合を例にしてさらに詳しく説明する。   The above-described color conversion method of the present embodiment will be described in more detail by taking as an example the case where the original image P2 of FIG. 9 including characters, photographs, graphs, and the like is a processing target.

図10は、図9に示す元画像P2のオブジェクト構造を示している。文字、グラフ(パターン)、連続階調オブジェクトの写真、が大きな構成要素として含まれる例である。なお、上位階層におけるオブジェクトの色調は次のように扱う。
(1)隣接するものが単一オブジェクトであれば、この色調を利用する。
(2)背景と各種文字のような場合は各々の要素について応力を考慮する→計算上、背景と文字を同一領域内のオブジェクトと考える。
(3)写真など連続階調の場合は、隣接領域近傍画素の平均値を用いる。
FIG. 10 shows the object structure of the original image P2 shown in FIG. This is an example in which characters, graphs (patterns), and photographs of continuous tone objects are included as large components. The color tone of the object in the upper layer is handled as follows.
(1) If the adjacent object is a single object, this color tone is used.
(2) In the case of a background and various characters, the stress is considered for each element. → In the calculation, the background and the character are considered as objects in the same region.
(3) In the case of continuous gradation such as a photograph, an average value of pixels in the vicinity of the adjacent region is used.

図9に示すように、大領域Aの背景31と写真32との間には明確な輪郭がないので、かかる点からすれば、背景31と写真32のオブジェクト間は「応力強い」の関係にあるべきものである。しかしながら写真には階調があり、写真領域近傍の階調が広い範囲に分布する場合は、写真領域そのものが、断片的にではあっても、明確な輪郭を有していると考えられる。そこで、本実施の形態では背景31と写真32との間の応力特性33を低く設定するようにしている。   As shown in FIG. 9, there is no clear outline between the background 31 of the large area A and the photograph 32. From this point, the relationship between the objects of the background 31 and the photograph 32 is “stress strong”. It should be. However, if a photograph has gradation and the gradation near the photographic area is distributed over a wide range, it is considered that the photographic area itself has a clear outline even if it is fragmented. Therefore, in this embodiment, the stress characteristic 33 between the background 31 and the photograph 32 is set low.

次に、図9に示す写真32のような連続階調領域をオブジェクト分割する方法を例示する。ここでは、連続階調から所定の規則によっていくつかの代表点を設定し、各代表点をそれぞれオブジェクトとして扱い、応力を設定する、という分割法を用いる。以下詳細に説明する。   Next, a method for dividing a continuous tone region such as the photograph 32 shown in FIG. Here, a division method is used in which several representative points are set from a continuous tone according to a predetermined rule, each representative point is treated as an object, and stress is set. This will be described in detail below.

図11は、連続階調領域に関する第1の分割法によるオブジェクト分割処理の流れを示している。画像の色調ヒストグラム(直接的には3次元空間のヒストグラムとなるが、たとえば画像情報を主成分分析し、寄与率の大きな1ないし2軸を用いて主成分ヒストグラムを作成しても良い)を作成し(ステップS201)、その中から高密度の領域(ヒストグラムのピーク)を検出し(ステップS202)、多く存在する場合はその代表点(効率的には外殻に位置するもの)を抽出して(ステップS203)オブジェクトの色調とする。抽出したオブジェクト間の応力特性は均一に(各オブジェクト間に同一の応力特性を)設定する。   FIG. 11 shows the flow of object division processing by the first division method for the continuous tone area. Create color tone histogram of image (directly it is a histogram in 3D space, but for example, principal component analysis of image information may be used to create principal component histogram using one or two axes with large contribution rate) (Step S201), a high density area (histogram peak) is detected from the area (Step S202), and if there are many, a representative point (effectively located in the outer shell) is extracted. (Step S203) The color tone of the object is set. The stress characteristics between the extracted objects are set uniformly (same stress characteristics between the objects).

図12は、連続階調領域の色調のヒストグラム(2次元)から検出された各ピークを色座標上に黒丸で示したものである。また、検出されたピークのうち外殻に位置するものを破線で結んで示してある。このように、ピークが多く存在する場合には外殻に位置するピークが代表点(連続階調領域を構成するオブジェクト)に設定される(ステップS204)。   FIG. 12 shows each peak detected from the color tone histogram (two-dimensional) in the continuous tone area as a black circle on the color coordinate. In addition, among the detected peaks, those located in the outer shell are shown connected by broken lines. Thus, when there are many peaks, the peak located in the outer shell is set as the representative point (object constituting the continuous tone region) (step S204).

図13は、連続階調領域に関する第2の分割法によるオブジェクト分割処理の流れを示している。第2の分割法では、色調ヒストグラムの「裾」を取り囲む凸包を求め、凸包の頂点を求め、該頂点をオブジェクトの代表点とする。詳細には、画像の色調ヒストグラムを作成し(ステップS221)、その中から所定密度以上の領域を抽出し(ステップS222)、その抽出した各領域の凸包を定義し(ステップS223)、各凸包の頂点を抽出してオブジェクトとし(ステップS224)、抽出したオブジェクト間の応力特性を均一に(各オブジェクト間に同一の応力特性を)設定する。   FIG. 13 shows the flow of object division processing by the second division method for the continuous tone area. In the second division method, the convex hull surrounding the “hem” of the tone histogram is obtained, the vertex of the convex hull is obtained, and the vertex is set as the representative point of the object. Specifically, a tone histogram of an image is created (step S221), a region having a predetermined density or more is extracted from the region (step S222), and a convex hull of each extracted region is defined (step S223). The vertexes of the hull are extracted as objects (step S224), and the stress characteristics between the extracted objects are set to be uniform (same stress characteristics between the objects).

どちらの分割法においても、実際の画像情報は連続階調であるから、画像内オブジェクトの明確な境界は存在せず、色変換の実画像への適用も明確な境界を設けて行うことは出来ない。そこで、図14に示すように、実画像情報の近傍にある複数のオブジェクトの色調変化に、処理対象画像情報とオブジェクト各々との距離に応じた重み付け係数を付与し、該重み付け係数とオブジェクトの変換値を元に処理対象画像情報の色変換を行うようにしてもよい。   In either division method, the actual image information is continuous tone, so there is no clear boundary between objects in the image, and the application of color conversion to an actual image can be performed with a clear boundary. Absent. Therefore, as shown in FIG. 14, a weighting coefficient corresponding to the distance between the processing target image information and each object is added to the color change of a plurality of objects in the vicinity of the real image information, and the weighting coefficient and the conversion of the object are converted. Color conversion of the processing target image information may be performed based on the value.

次に、追加の応力設定について説明する。   Next, additional stress setting will be described.

応力特性をオブジェクト相互間のみに定義した場合、応力の総和が最低となる点が一義的に定まらない場合がある。オブジェクトの色分布に対して出力デバイスの色再現域(第2の色空間)が非常に大きな場合(どこに配置しても応力の総和が0になる場合)や、単純な多角形で示されるようなモデルでは応力が小さくなる配置パターンがいくつか存在する場合がある。   When stress characteristics are defined only between objects, the point at which the total sum of stresses is lowest may not be uniquely determined. When the color gamut (second color space) of the output device is very large with respect to the color distribution of the object (when the total sum of stresses is 0 no matter where it is placed), or as a simple polygon In some models, there may be some arrangement patterns that reduce stress.

そのような場合に、図15に示すように、編集環境(第1の色空間41)の原色点45a〜45fや、編集環境における、対象オブジェクト自身の色度点(初期色)44との間に応力特性(図中、双方向の矢印で表示)を定義すると、上記のような条件においても応力の総和が最小となる点43を第2の色空間42内で安定して(一義的に)求めることができるようになる。なお、原色点45a〜45fや対象オブジェクト自身の色度点44との間に生じる歪みに対して発生させる応力は小さくてかまわない。   In such a case, as shown in FIG. 15, between the primary color points 45a to 45f of the editing environment (first color space 41) and the chromaticity point (initial color) 44 of the target object itself in the editing environment. If a stress characteristic (indicated by a bidirectional arrow in the figure) is defined, a point 43 at which the total sum of stresses is minimum even under the above conditions is stably (uniquely) in the second color space 42. ) You will be able to ask. In addition, the stress generated with respect to the distortion generated between the primary color points 45a to 45f and the chromaticity point 44 of the target object itself may be small.

次に、画像をオブジェクトに分割する処理を図16に基づいて説明する。まず、分割対象の画像(画像データ)を取得し(ステップS301)、該画像データがすでにオブジェクト構造で構築されている(たとえば、プレゼンテーション作成ソフトで配置された各種パターン、フォント等)か否かを判別する(ステップS302)。構造化されている場合は(ステップS302;Yes)、その構造化されている各領域をオブジェクトとし、それぞれの領域にラベリングを行う(ステップS303)。既に構造化されている他にさらに構造化の必要な領域があるか否かを判断し、さらなる構造化の必要がない場合は(ステップS304;No)、ステップS307へ移行する。   Next, processing for dividing an image into objects will be described with reference to FIG. First, an image to be divided (image data) is acquired (step S301), and whether or not the image data has already been constructed with an object structure (for example, various patterns and fonts arranged by presentation creation software). It discriminate | determines (step S302). If it is structured (step S302; Yes), each structured area is set as an object, and each area is labeled (step S303). It is determined whether there is an area that needs to be further structured in addition to the structure already formed. If there is no need for further structure (step S304; No), the process proceeds to step S307.

画像がオブジェクト構造で構築されていない場合(ステップS302;No)もしくはさらに構造化する必要がある場合は(ステップS304;Yes)、処理対象の画像について、エッジ情報を元に輪郭を抽出し(ステップS305)、閉領域を検出してラベリングを行い、過剰に細分化された領域の整理を必要に応じて行ってオブジェクトと定義する。(ステップS306)。そして、各々のオブジェクトの連接および包含関係、処理対象の画像が既にオブジェクト構造で構築されている場合にはグループ化の定義や図面貼り付け、レイヤー構造情報等からツリー図(たとえば、図4)の階層および連結関係(オブジェクト構造)を定義する(ステップS307)。   When the image is not constructed with the object structure (step S302; No) or when it is necessary to further structure (step S304; Yes), the contour is extracted based on the edge information for the processing target image (step S304). In step S305, a closed region is detected and labeled, and an excessively segmented region is arranged as necessary to define an object. (Step S306). Then, if the connection and inclusion relation of each object, and the image to be processed are already constructed in the object structure, the tree diagram (for example, FIG. 4) is obtained from the grouping definition, drawing pasting, layer structure information, etc. Hierarchies and connection relationships (object structures) are defined (step S307).

オブジェクトに分割する方法は上記の方法に限定されるものではなく、一般的な任意の領域抽出処理を使用してもかまわない。   The method of dividing into objects is not limited to the above method, and a general arbitrary region extraction process may be used.

次に、応力特性を決定する処理について具体的手法を説明する。図17は、応力特性を決定する処理の概略を示している。なお、当該処理の前に、前述した方法等により、オブジェクト分割およびツリー図の作成(オブジェクト構造の特定)が行われる。応力特性を決定する処理では、つながりのあるオブジェクト(関連線で結ばれたオブジェクト間)について、境界の輪郭有無、オブジェクトの接触状態など複数の評価パラメータにより点数付けし、その総点数を元に応力特性(歪みに対する応力の強さ)を定義する。   Next, a specific method for the process of determining the stress characteristic will be described. FIG. 17 shows an outline of the process for determining the stress characteristics. Prior to the processing, object division and tree diagram creation (object structure specification) are performed by the method described above. In the process of determining the stress characteristics, points are calculated for multiple connected objects (between objects connected by related lines) using multiple evaluation parameters such as the presence or absence of the boundary of the boundary and the contact state of the objects, and the stress is based on the total number of points. Define properties (stress intensity against strain).

詳細には、オブジェクト構造のツリー図において連結のある任意の2つのオブジェクトを評価対象に選択し、該評価対象のオブジェクト間の関連強度を評価する(ステップS401)。続いて各オブジェクトの属性に対応した基本点を付与する(ステップS402)。たとえば、写真ならば3点、グラフならば5点、標題ならば7点を基本点として与える。各オブジェクトの属性に対して与える基本点の値は予め設定されて画像処理部16の図示しない不揮発メモリなどに記憶されている。   Specifically, any two connected objects in the tree diagram of the object structure are selected as evaluation targets, and the relation strength between the evaluation target objects is evaluated (step S401). Subsequently, a basic point corresponding to the attribute of each object is assigned (step S402). For example, 3 points are given as basic points for photographs, 5 points for graphs, and 7 points for titles. The value of the basic point given to the attribute of each object is set in advance and stored in a non-illustrated non-volatile memory or the like of the image processing unit 16.

次に、評価対象のオブジェクト間の境界に輪郭(輪郭線)が存在するか否かを調べ、輪郭がある場合は(ステップS403;Yes)、輪郭の強さに応じて点数を付与する(ステップS404)。輪郭の強さは、たとえば、輪郭線の太さ、色、線種などによって評価する。   Next, it is checked whether or not there is a contour (contour line) at the boundary between objects to be evaluated. If there is a contour (step S403; Yes), points are assigned according to the strength of the contour (step). S404). The strength of the contour is evaluated by, for example, the thickness of the contour line, color, line type, and the like.

次に、評価対象のオブジェクト同士の接触がある場合は(ステップS405;Yes)、その接触距離の長さに応じた点数を付与する(ステップS406)。接触距離が長いほど、評価対象オブジェクト間の識別力を確保する必要が生じるので点数を高くする。   Next, when there is contact between the objects to be evaluated (step S405; Yes), a score corresponding to the length of the contact distance is given (step S406). The longer the contact distance, the higher the score because it is necessary to ensure the discriminating power between the evaluation target objects.

評価対象のオブジェクトが文字と背景の関係にある場合は(ステップS407;Yes)、文字の属性(装飾の有無、フォント種、線の太さなど)に応じて点数を付与する(ステップS408)。背景と文字との識別性が低い場合ほど点数を高くする。ここでは、装飾文字の場合、テクスチャなどで識別性が確保される前提から背景と近い色の文字色が使用されるケースが多いことに鑑み、装飾文字の場合は高い点数を付与するようにしている。   If the object to be evaluated is in the relationship between the character and the background (step S407; Yes), a score is assigned according to the character attributes (existence of decoration, font type, line thickness, etc.) (step S408). The lower the discriminability between the background and the characters, the higher the score. Here, in the case of decorative characters, in view of the fact that the character color of the color close to the background is often used because of the premise of ensuring distinctiveness due to texture etc., a high score is given for decorative characters. Yes.

次に、評価対象のオブジェクト同士に色調関係があれば(ステップS409;Yes)、その色調関係の種類に応じた点数を付与する(ステップS410)。ここでは、白黒は1点、パレット色は3点、フルカラーの場合は5点を付与する。フルカラーの場合はパレット色に比べて近似した色が使用される可能性があるため、色変換による色調変化が生じ難いように、点数を高くしてある。   Next, if there is a color relationship between the objects to be evaluated (step S409; Yes), a score corresponding to the type of the color relationship is given (step S410). Here, 1 point is assigned for black and white, 3 points for palette color, and 5 points for full color. In the case of a full color, there is a possibility that a color approximate to the palette color may be used. Therefore, the score is increased so that a change in color tone due to color conversion hardly occurs.

その後、各評価パラメータにて付与した点数を合計し(ステップS411)、その合計点に応じた応力特性を当該評価対象のオブジェクト間に設定する(ステップS412)。   Thereafter, the points given by each evaluation parameter are summed (step S411), and a stress characteristic corresponding to the summed point is set between the objects to be evaluated (step S412).

連結関係のあるすべてのオブジェクト間について上記の評価が終了したか否かを調べ、未終了の場合は(ステップS413;No)、評価対象を次のオブジェクトの組み合わせに切り替えて(ステップS414)ステップS401以降の処理を行う。連結関係のあるすべてのオブジェクト間について評価が終了した場合は(ステップS413;Yes)、処理を終了する(エンド)。   It is checked whether or not the above evaluation has been completed for all objects having a connection relationship. If the evaluation has not been completed (step S413; No), the evaluation target is switched to the next object combination (step S414) and step S401. Perform the following processing. When the evaluation is completed for all the objects having the connection relationship (step S413; Yes), the processing is ended (END).

なお、評価パラメータは上記に限定されず、いくつあってもよく、そのパラメータの特性に応じて適宜加点する点数を定めればよい。たとえば、次のような項目を評価してもよい。
(1)当該オブジェクトの内部コントラスト;この場合、コントラストが高いほど応力は小さくてよい、すなわち、コントラストが低いほど付与する点数を高くする。
(2)当該オブジェクトの特殊性;たとえば、顔パターンなど視覚識別性の高いものの応力は小さくてよい(顔パターンなどの場合に付与する点数を少なくする、あるいは減点する。)。
(3)連接関係;あるオブジェクトが多数のオブジェクトと接している場合、多様なオブジェクトに囲まれた当該オブジェクトの識別性が高まると考えられるので、応力は小さくてよい。すなわち、接触するオブジェクトが少ない場合は付与する点数を高くする、あるいは接触するオブジェクト数が多いほど減点するようにする。
(4)オブジェクト形態;たとえば、頂点のある形、独立性の高い形の応力は小さくてもよい。
Note that the evaluation parameter is not limited to the above, and there may be any number, and a score to be added may be determined as appropriate according to the characteristics of the parameter. For example, the following items may be evaluated.
(1) Internal contrast of the object; in this case, the higher the contrast, the smaller the stress, that is, the lower the contrast, the higher the number of points to be given.
(2) Specificity of the object; for example, the stress of an object with high visual discrimination, such as a face pattern, may be small (reducing or reducing the number of points given in the case of a face pattern).
(3) Concatenated relationship: When an object is in contact with a large number of objects, it is considered that the distinguishability of the object surrounded by various objects is enhanced, so that the stress may be small. That is, when there are few objects to contact, the number of points to be given is increased, or the points are reduced as the number of objects in contact increases.
(4) Object form; for example, the stress of a shape with a vertex or a shape with high independence may be small.

複数用意された評価パラメータのうちのどれを使用するかを選択可能に構成されてもよい。たとえば、複数の評価パラメータを含む評価パラメータ群を複数種類設定しておき、文書パターン(営業報告書/投資家向けIR/学会発表など文書の種類)やオペレータの好みによっていずれの評価パラメータ群を使用するかを選択可能に構成されてもよい。また、ユーザが任意の評価パラメータや評価パラメータ群を設定できるようにするとよい。   It may be configured to be able to select which of a plurality of prepared evaluation parameters is used. For example, multiple types of evaluation parameter groups including multiple evaluation parameters are set, and any evaluation parameter group is used according to the document pattern (business report / IR for investor / document type such as conference presentation) and operator preference. It may be configured to be selectable. Further, it is preferable that the user can set an arbitrary evaluation parameter or evaluation parameter group.

また、顔パターンなど予め定めた特性を有するパターンを自動抽出し、これを1つのオブジェクトとし、該オブジェクトの色調変化が制限されるように該オブジェクトに対して制約条件を自動設定するように構成されてもよい。たとえば、「人の顔」に対する色領域を予め設定しておき、顔パターンとして抽出されたオブジェクトに対して、「人の顔」に対する色領域から外れないような障壁の応力特性を自動設定するように構成されてもよい。   Further, a pattern having a predetermined characteristic such as a face pattern is automatically extracted, and this is set as one object, and a constraint condition is automatically set for the object so that a change in color tone of the object is limited. May be. For example, a color area for a “human face” is set in advance, and a barrier stress characteristic that does not deviate from the color area for a “human face” is automatically set for an object extracted as a face pattern. May be configured.

次に、デバイスの色空間情報の求め方について説明する。第1の画像出力デバイス14や第2の画像出力デバイス17などのデバイスの色空間は、汎用のICCプロファイル作成ツールと測色器を用いて取得することができる。   Next, how to obtain device color space information will be described. The color space of devices such as the first image output device 14 and the second image output device 17 can be acquired using a general-purpose ICC profile creation tool and a colorimeter.

また、たとえば、以下の手法で簡易的に求めて利用することもできる。
(a)原色(たとえば、Y(イエロ)、M(マゼンタ),C(シアン)、K(ブラック))の特性を基に、濃度加法則やノイゲバウア方程式(特開2003−276340号公報など参照)を解き、色域の外殻を概算する。
(b)スクリーン投影型のプロジェクタにおいては、RGBの現職に白色フレア(白色スクリーンから反射する室内散乱光)を加算したモデルから求める。
Further, for example, it can be simply obtained and used by the following method.
(A) Based on the characteristics of primary colors (for example, Y (yellow), M (magenta), C (cyan), K (black)), the density addition law and the Neugebauer equation (see JP 2003-276340 A) And approximate the outer gamut of the color gamut.
(B) In a screen projection type projector, it is obtained from a model in which white flare (indoor scattered light reflected from a white screen) is added to the current RGB work.

次に、応力の総和を最小にする方法を説明する。1つの画像には複数のオブジェクトがあり、各々の間に様々な応力特性が定義されている。応力の総和が最小になる条件は公知の数学的、あるいは物理的、解析的手法で求めればよい。   Next, a method for minimizing the total sum of stress will be described. There are a plurality of objects in one image, and various stress characteristics are defined between them. The condition for minimizing the total sum of stress may be obtained by a known mathematical, physical, or analytical method.

図18は、初期条件からの試行錯誤で応力の総和が最小となる最適解を求める手法を示している。該方法の概要は次のとおりである。従来例に則り色変換を行い、その場合の応力の総和を求める。次に応力ベクトルの方向にオブジェクトの変換値を移動させ、再び応力の総和を求める。これを繰り返し、応力の総和が充分小さくなった、あるいは1サイクルあたりの総和の減少量が小さくなった時点で実用的最適解が得られたとする。   FIG. 18 shows a method for obtaining an optimal solution that minimizes the sum of stresses by trial and error from the initial conditions. The outline of the method is as follows. Color conversion is performed according to the conventional example, and the total stress is obtained in that case. Next, the converted value of the object is moved in the direction of the stress vector, and the total sum of stress is obtained again. This is repeated, and it is assumed that a practical optimum solution is obtained when the sum of stresses becomes sufficiently small or when the amount of decrease in the sum per cycle becomes small.

より詳細には、従来から使用されているいずれかの方法で色変換を行い(ステップS501)、該色変換により生じたオブジェクト相互間の歪み量を算出する(ステップS502)。そして、各オブジェクト間に定義した応力特性に基づき、各歪み量に対応する応力を算出する(ステップS503)。これらの応力の総和を求め、前回求めた応力の総和からの減少量を算出する(ステップS504)。なお、初回は減少量の算出はパスする。   More specifically, color conversion is performed by any method conventionally used (step S501), and the amount of distortion between objects caused by the color conversion is calculated (step S502). Then, based on the stress characteristic defined between the objects, the stress corresponding to each strain amount is calculated (step S503). A total sum of these stresses is obtained, and a decrease amount from the total sum of stresses obtained last time is calculated (step S504). Note that the calculation of the reduction amount passes the first time.

減少量が所定値以下でない場合もしくは初回の場合は(ステップS505;No)、オブジェクト各々について応力のかかる方向に色調をわずかに変化させて(ステップS506)ステップS502に戻る。なお障壁や色域境界では摩擦係数0で滑るものとして移動方向を計算する。   When the amount of decrease is not less than the predetermined value or for the first time (step S505; No), the color tone is slightly changed in the direction in which the stress is applied to each object (step S506), and the process returns to step S502. The direction of movement is calculated assuming that the barrier or color gamut boundary slides with a friction coefficient of zero.

減少量が所定値以下となった場合は(ステップS505;Yes)、最適解が見つかったとして処理を終了する。   If the amount of decrease is equal to or less than the predetermined value (step S505; Yes), the process is terminated assuming that an optimal solution has been found.

ただし、上記の処理では応力の総和に極小値が多数存在する場合、これらにトラップされて最小値(最適値)が見い出せない場合がある。そこで、「初期値をいくつか用意する」、「ある確率で色調変化にランダムな変化を与える」といった手法で極小トラップからの脱出を図ることも有効である。   However, in the above processing, when there are many local minimum values in the sum of stresses, there are cases where the minimum value (optimum value) cannot be found by being trapped by these. Therefore, it is also effective to escape from the minimal trap by techniques such as “preparing some initial values” and “giving random changes in color change with a certain probability”.

図19は上記改良を施した場合の処理の流れを示している。複数の初期条件から一つの条件を選択する(ステップS521)。次にその初期条件を用いて通常の色変換(周知の任意の方法でよい)を実施する(ステップS522)。該色変換により生じたオブジェクト相互間の歪み量を算出し(ステップS523)、各オブジェクト間に定義した応力特性に基づき、各歪み量に対応する応力を算出する(ステップS524)。これらの応力の総和を求め、前回求めた応力の総和からの減少量を算出する(ステップS525)。初回は減少量の算出はパスする。   FIG. 19 shows the flow of processing when the above improvements are made. One condition is selected from a plurality of initial conditions (step S521). Next, normal color conversion (which may be any known method) is performed using the initial conditions (step S522). The amount of distortion between the objects generated by the color conversion is calculated (step S523), and the stress corresponding to the amount of distortion is calculated based on the stress characteristic defined between the objects (step S524). The total sum of these stresses is obtained, and the amount of decrease from the total sum of stresses obtained last time is calculated (step S525). The first time the amount of decrease is passed.

減少量が所定値以下でない場合もしくは初回の場合は(ステップS526;No)、オブジェクト各々について応力のかかる方向に色調をわずかに変化させる(ステップS527)。なお障壁や色域境界では摩擦係数0で滑るものとして移動方向を計算する。また、所定回数に1回の割合で色調をランダムに変化させて(ステップS528)ステップS523に戻る。   When the amount of decrease is not less than the predetermined value or for the first time (step S526; No), the color tone is slightly changed in the direction in which the stress is applied to each object (step S527). Note that the direction of movement is calculated assuming that the barrier or color gamut boundary slides with a friction coefficient of zero. In addition, the color tone is randomly changed at a rate of once per predetermined number of times (step S528), and the process returns to step S523.

減少量が所定値以下となった場合は(ステップS526;Yes)、変換結果が適切となった場合または充分繰り返した場合を除き(ステップS529;;No)、初期条件を変更して(ステップS530)、ステップS521に戻り、処理を継続する。変換結果が適切となったまたは充分繰り返した場合は(ステップS529;Yes)、本処理を終了する(エンド)。   When the decrease amount is equal to or smaller than the predetermined value (step S526; Yes), the initial condition is changed (step S530) except when the conversion result becomes appropriate or sufficiently repeated (step S529;; No). ), The process returns to step S521, and the process is continued. If the conversion result is appropriate or has been sufficiently repeated (step S529; Yes), this processing ends (end).

図19の処理では、最終解と最良解は一致しない(試行錯誤の途中で最良解が出る)場合も考えられる。そのため、図19では記載を省略してあるが、試行錯誤中の最適解は常に保持しておき、充分繰り返した後に、保持されている最適解同士を比較してより良い最適解を求めるようになっている。   In the process of FIG. 19, the final solution may not match the best solution (the best solution is obtained in the middle of trial and error). For this reason, although the description is omitted in FIG. 19, the optimum solution during trial and error is always retained, and after repeated sufficiently, the retained optimum solutions are compared to obtain a better optimum solution. It has become.

以上のように応力の総和が最小となるように色変換を施した結果、応力がゼロになるケースもあるが、応力が残る場合もある。この残った応力(これを、残留応力とする)のうち大きなものは、当該残留応力の作用するオブジェクト間の色調関係を狂わせるので識別性低下の要因になる。そこで、予め定めた閾値以上の残留応力がオブジェクト間に残った場合は、そのオブジェクトに対し、残留応力に相当する分の装飾を施して必要な識別性を確保する。   As described above, as a result of performing color conversion so that the total sum of stresses is minimized, the stress may be zero in some cases, but the stress may remain. Of these remaining stresses (which are referred to as residual stresses), a large one causes the color tone relationship between objects on which the residual stress acts to deviate, and this causes a decrease in discrimination. Therefore, when residual stress equal to or greater than a predetermined threshold remains between the objects, the object is decorated by an amount corresponding to the residual stress to ensure the necessary discrimination.

装飾には大別してオブジェクトに輪郭を与えるもの、オブジェクト領域に視認可能なテクスチャを付加するものがある。どちらを採用するかは、元々のオブジェクト領域の輪郭有り無しで選択すると良い。   There are two types of decorations: those that give outlines to objects and those that add visible textures to object areas. Which one to use is preferably selected with or without the outline of the original object region.

なお、本来、色差による領域識別と、テクスチャや輪郭による領域識別とは視覚的に異なるものであるので同一視はできないが、観察条件(概略の観察距離、環境および画像の明るさ)が特定できる条件では、色差ΔEを有するパターン(オブジェクト)同士の識別性と同等の識別性を有するテクスチャを、官能評価により統計的に定めることができる。   It should be noted that since the area identification by color difference and the area identification by texture and contour are visually different, they cannot be identified, but the observation conditions (approximate observation distance, environment and image brightness) can be specified. Under the conditions, a texture having discriminability equivalent to that of patterns (objects) having a color difference ΔE can be statistically determined by sensory evaluation.

図20は、色差ΔEと輪郭およびテクスチャの構造の強さとの関係を官能評価により取得してグラフ化したものの一例である。テクスチャの構造の強さとは、たとえば、テクスチャとなる模様の濃淡差の大きさなどである。なお、テクスチャや輪郭の効果は、観察状態における構造の視覚コントラストに大きく影響を受け、構造が過度に微細化(空間周波数が高い)した状態では効果が大きく損なわれる。このため画像の観察条件を推定し、効果のある空間周波数特性のパターンを有するテクスチャや輪郭を用いることが好ましい。   FIG. 20 is an example of a graph obtained by sensory evaluation of the relationship between the color difference ΔE and the strength of the contour and texture structure. The strength of the texture structure is, for example, the magnitude of the difference in shading of the texture pattern. Note that the effects of the texture and the contour are greatly affected by the visual contrast of the structure in the observation state, and the effect is greatly impaired when the structure is excessively miniaturized (the spatial frequency is high). For this reason, it is preferable to estimate the viewing conditions of the image and use a texture or contour having a pattern of effective spatial frequency characteristics.

図21は、残留応力を装飾に変換する処理の流れを示している。事前準備として、図20に示すような、色差と装飾パターンとの関係を官能評価で取得しておく(ステップS600)。以後の処理は、残留応力が所定の閾値以上のオブジェクトに対して行う。まず、残留応力の解消対象となっている一組(2個)のオブジェクトについて、残留応力の必要解消量とそのオブジェクト間に定義されている応力特性とから、解消すべき色差(歪み)を算出する(ステップS601)。またそのオブジェクトの構造(輪郭と内部テクスチャの強さの関係)を評価する(ステップS602)。そのオブジェクトが輪郭を有するなど、「輪郭が強い」と評価した場合は(ステップS603;Yes)、解消すべき色差に対応する強さのテクスチャを事前準備した図20のグラフなどから求め、その求めたテクスチャを解消対象のオブジェクトの一方に付与して(ステップS605)処理を終了する。「輪郭が強い」と評価しない場合は(ステップS603;No)、解消すべき色差に対応する強さの輪郭を事前準備した図20のグラフなどから求め、その求めた輪郭を解消対象のオブジェクトの一方に付与して(ステップS604)処理を終了する。   FIG. 21 shows a flow of processing for converting the residual stress into decoration. As advance preparation, the relationship between the color difference and the decoration pattern as shown in FIG. 20 is acquired by sensory evaluation (step S600). Subsequent processing is performed on an object having a residual stress of a predetermined threshold or more. First, calculate the color difference (distortion) that should be eliminated from the required amount of residual stress and the stress characteristics defined between the objects for a set (two) of objects that are the targets for elimination of residual stress. (Step S601). Further, the structure of the object (the relationship between the contour and the strength of the internal texture) is evaluated (step S602). If the object is evaluated as “contour is strong” (step S603; Yes), the texture having the strength corresponding to the color difference to be eliminated is obtained from the graph of FIG. The texture is added to one of the objects to be eliminated (step S605), and the process is terminated. When it is not evaluated that “the contour is strong” (step S603; No), the contour of strength corresponding to the color difference to be resolved is obtained from the graph of FIG. 20 prepared in advance, and the obtained contour is determined for the object to be eliminated. Assigned to one (step S604), the process is terminated.

なお、装飾は、装飾されるオブジェクトに関連する全てのオブジェクトとの間に影響を与えるから、原則として、オブジェクトに定義されている応力特性の数の少ない方(関連するオブジェクトの少ない方)、あるいは空間的に、他に包含される方、に施すのが妥当である。   Since decoration affects all objects related to the object to be decorated, in principle, the one with the smaller number of stress characteristics defined for the object (the one with fewer related objects), or It is reasonable to apply to the spatially contained one.

次に、色変換に関してオペレータから追加の指示(変換オプションの設定)を受ける処理について説明する。   Next, processing for receiving an additional instruction (conversion option setting) from the operator regarding color conversion will be described.

本発明による色変換で、オブジェクトの色調変化が大きくなった場合に、オペレータにメッセージを表示し、追加の指示を求めるようにする。図22は、色変換に関する追加の指示をオペレータから受け付ける処理の流れを示している。前述した本発明の手法を用いて応力の総和が最小となるように色変換する色調を決定した後(ステップS621)、該色変換により生じた色調変化量の中の最大値が所定の許容値を超えるか否かを判断する(ステップS622)。すなわち、色変換による任意のオブジェクトの色調の変化量または任意の2つのオブジェクト間に生じた歪みが所定の閾値(許容値)を超えるか否かを判断する。   In the color conversion according to the present invention, when the change in the color tone of the object becomes large, a message is displayed to the operator to request an additional instruction. FIG. 22 shows a flow of processing for receiving an additional instruction regarding color conversion from the operator. After determining the color tone for color conversion so as to minimize the total sum of stresses using the method of the present invention described above (step S621), the maximum value among the color change amounts generated by the color conversion is a predetermined allowable value. It is determined whether or not (step S622). That is, it is determined whether or not the amount of change in the tone of an arbitrary object due to color conversion or the distortion generated between any two objects exceeds a predetermined threshold (allowable value).

許容値以下の場合は(ステップS622;No)、処理を終了する(エンド)。許容値を超える場合は(ステップS622;Yes)、モニタ装置14に、図23に例示するような、メッセージ51と、色変換した結果のシミュレーション画像52と、色変換に関する追加の指示をオペレータから受けるための操作ボタン53などを含む指示入力画面50を表示する(ステップS623)。図23の指示入力画面50の場合、追加の指示の選択肢(変換オプション)として、
(1)同一色名範囲に制限、
(2)元の色調を重視、
(3)最大限色調維持、
の3つの選択肢が表示されている。
If it is equal to or smaller than the allowable value (step S622; No), the process ends (end). When the allowable value is exceeded (step S622; Yes), the monitor device 14 receives a message 51, a simulation image 52 obtained as a result of color conversion, and an additional instruction regarding color conversion from the operator as illustrated in FIG. An instruction input screen 50 including an operation button 53 for displaying is displayed (step S623). In the case of the instruction input screen 50 shown in FIG. 23, as additional instruction options (conversion options),
(1) Restrict to the same color name range,
(2) Emphasize the original color tone,
(3) Maintain the maximum color tone,
These three options are displayed.

オペレータは編集環境の色調を保持したいなど色調変化を少なく抑えたいオブジェクトがある場合は、シミュレーション画像52の当該領域をクリックして選択し、変換オプションをラジオボタンで選択し、再変換釦53aを押下する。   If the operator wants to keep the color tone of the editing environment, for example, if there is an object whose color tone change is to be suppressed, the operator clicks on the area of the simulation image 52 to select it, selects a conversion option with a radio button, and presses the re-conversion button 53a To do.

上記操作がなされた場合は(ステップS624;Yes)、選択されたオブジェクトに対して選択された変換オプションに対応する制約条件が設定されて(ステップS625)ステップS621へ移行し、該制約条件の下で応力の総和が最小となるように色変換が再実行される。続行釦53bが操作されると(ステップS624;No)、オペレータからの追加の指示を受ける処理は終了する(エンド)。この場合、現在の色変換の状態(シミュレーション画像52の状態)で第2の画像出力デバイス17による出力が実行される。   When the above operation is performed (step S624; Yes), a constraint condition corresponding to the selected conversion option is set for the selected object (step S625), and the process proceeds to step S621. The color conversion is performed again so that the sum of stresses is minimized. When the continue button 53b is operated (step S624; No), the process of receiving an additional instruction from the operator ends (end). In this case, the output by the second image output device 17 is executed in the current color conversion state (the state of the simulation image 52).

たとえば、図23の指示入力画面50にて「同一色名範囲に制限」の変換オプションが選択されると、図7に示すように、色名毎の色領域25、26に対応する障壁(図7bのような応力特性)が制約条件として設定される。また、図23の指示入力画面50にて「元の色調を重視」の変換オプションが選択されると、各オブジェクトに対してそのオブジェクトの第1の色空間における色度点(初期色)との間に応力特性が設定され、初期色との色調差が抑制される。「最大限色調維持」の変換オプションが選択されると、初期色との間により大きな応力が作用するように応力特性が設定される。   For example, when the conversion option “restrict to the same color name range” is selected on the instruction input screen 50 in FIG. 23, as shown in FIG. 7, barriers corresponding to the color regions 25 and 26 for each color name (see FIG. 7b) is set as a constraint condition. 23, when the conversion option “focus on the original color tone” is selected on the instruction input screen 50 in FIG. 23, the chromaticity point (initial color) in the first color space of the object is set for each object. A stress characteristic is set between them, and a color difference from the initial color is suppressed. When the “maximum color tone maintenance” conversion option is selected, the stress characteristic is set so that a greater stress acts on the initial color.

オペレータから受け付ける変換オプション(色変換に関する条件)は例示したものに限定されず、他の種類の条件であってもかまわない。   Conversion options (conditions relating to color conversion) received from the operator are not limited to those exemplified, and other types of conditions may be used.

このように、色変換の結果生じた任意のオブジェクトの色調の変化量または任意の2つのオブジェクト間の歪みが許容値を超える場合に、該色変換の可否または色変換に関する条件の変更をオペレータに問い合わせるので、オペレータの意図しない色変換の実施が防止される。また、 指示入力画面50のような画面にて変換オプションを列挙し、選択指示を受けるようにしたので、容易にオペレータの指示を反映した色変換を行うことができ、非常に特性差の大きなデバイス間の色変換においても、簡単に効果的な資料作成が可能になる。   As described above, when the amount of change in the color tone of an arbitrary object resulting from the color conversion or the distortion between any two objects exceeds an allowable value, whether or not the color conversion is possible or a condition change related to the color conversion is changed to the operator. Since the inquiry is made, the color conversion unintended by the operator is prevented. In addition, since conversion options are listed on a screen such as the instruction input screen 50 and a selection instruction is received, it is possible to easily perform color conversion reflecting the operator's instruction, and a device with a very large characteristic difference. Even in the color conversion between them, it is possible to easily create an effective document.

次に、複数ページの画像を処理する場合について説明する。画像ファイルが複数ページの画像で構成される場合、ページ相互間の関連を考慮して色変換することが望ましい。たとえば、プレゼンテーション資料が複数ページある場合には、同一の意味付けをしたパターン(たとえば、会社のロゴマーク)が繰り返し現れることがある。このような場合に、繰り返し現れるパターン(類似オブジェクト)が同一の色調に保たれるよう、制約条件を付加することも好ましい。   Next, a case where a multi-page image is processed will be described. When an image file is composed of images of a plurality of pages, it is desirable to perform color conversion in consideration of the relationship between pages. For example, when there are a plurality of presentation materials, a pattern having the same meaning (for example, a company logo mark) may appear repeatedly. In such a case, it is also preferable to add a constraint condition so that repeatedly appearing patterns (similar objects) are maintained in the same color tone.

図24は、複数ページの画像を色変換する場合の処理の流れを示している。1ページ分のオブジェクトについて、前述した本発明の手法によりオブジェクト構造と応力特性を定義する作業(ステップS701)を、全ページに対して終了するまで繰り返し行う(ステップS702;No)。全ページ終了すると(ステップS702;Yes)、次に、処理対象の複数ページの画像の中から類似するオブジェクト(所定以上の関連強度を有するオブジェクト)の組みを抽出し(ステップS703)、その組に属する類似のオブジェクト間に応力特性を設定する(ステップS704)。類似オブジェクトは一連の画像群に複数存在する可能性があるため、類似オブジェクトのすべての組みに対してステップS703、S704の処理を施す。すなわち、類似オブジェクトのすべての組みに対してステップS703、S704の終了していない場合は(ステップS705;No)ステップS703に戻る。   FIG. 24 shows the flow of processing when color-converting an image of a plurality of pages. With respect to the object for one page, the operation of defining the object structure and the stress characteristic (step S701) by the above-described method of the present invention is repeatedly performed for all the pages until completion (step S702; No). When all pages have been completed (step S702; Yes), next, a set of similar objects (objects having a relation strength greater than or equal to a predetermined level) is extracted from the images of the plurality of pages to be processed (step S703). A stress characteristic is set between similar objects to which it belongs (step S704). Since there is a possibility that a plurality of similar objects exist in a series of image groups, the processes of steps S703 and S704 are performed on all sets of similar objects. That is, if steps S703 and S704 have not been completed for all sets of similar objects (step S705; No), the process returns to step S703.

すべての類似オブジェクトの組みに対して応力特性の設定が完了すると(ステップS705;Yes)、全ページ分のオブジェクトを対象にして、歪みに対する応力の総和が最小となるように、オブジェクトの色調を調整し(ステップS706)処理を終了する(エンド)。   When the setting of stress characteristics for all sets of similar objects is completed (step S705; Yes), the color of the object is adjusted so that the total sum of stresses against distortion is minimized for all pages of the object. (Step S706), and the process ends (END).

これにより、同じ組に属する類似オブジェクト間に応力が作業するので、類似オブジェクトの色調が近似するようになる。なお、類似オブジェクト間に他のオブジェクト間よりも大きな応力が働くように類似オブジェクト間の応力特性を設定することが望ましい。   As a result, the stress works between similar objects belonging to the same group, so that the color tones of similar objects approximate. Note that it is desirable to set stress characteristics between similar objects so that a larger stress acts between similar objects than between other objects.

抽出された類似オブジェクトの色変換法は、上記の方法に限定されず、適宜の方法を選択して用いればよい。たとえば、以下の別態様がある。なお、上記ステップS703の処理を以下に示す(J)の処理を置き換え、上記ステップS706の処理を以下に示す(K)の処理に置き換えることで、図24に示す処理が別態様に対応した処理となる。   The color conversion method of the extracted similar object is not limited to the above method, and an appropriate method may be selected and used. For example, there are the following other modes. Note that the process shown in FIG. 24 corresponds to another mode by replacing the process of step S703 with the process (J) shown below and replacing the process of step S706 with the process (K) shown below. It becomes.

<別態様1>
(J)抽出されたオブジェクトと初期色間に応力特性を付与する。
(K)各々のページについて、応力の総和が最小となるように色調を調整する。
なお、初期色との間の応力特性を他のオブジェクト間の応力特性に比べて大きな応力が働くように設定することが望ましい。
<Another aspect 1>
(J) A stress characteristic is imparted between the extracted object and the initial color.
(K) For each page, the color tone is adjusted so that the total sum of stresses is minimized.
Note that it is desirable to set the stress characteristic between the initial colors so that a larger stress is applied than the stress characteristic between other objects.

<別態様2>
(J)抽出されたオブジェクト近傍に障壁を定義する。
(K)各々のページについて、応力の総和が最小となるように色調を調整する。
<Another aspect 2>
(J) Define a barrier near the extracted object.
(K) For each page, the color tone is adjusted so that the total sum of stresses is minimized.

<別態様3>
(J)各々のページについて応力の総和の最低化処理を行い、その総和が最も大きいページの当該オブジェクトの変換後の色調近傍に障壁を設ける。
(K)各々のページについて、応力の総和が最小となるように色調を調整する。
<Another aspect 3>
(J) A process of minimizing the sum of stress is performed for each page, and a barrier is provided in the vicinity of the color tone after conversion of the object of the page having the largest sum.
(K) For each page, the color tone is adjusted so that the total sum of stresses is minimized.

類似オブジェクトの抽出法には次のようなものがある。
(1)同じパターンが繰り返されているデザインの同一要素は類似するオブジェクトとする。たとえば、編集履歴情報を取得し、同一テンプレートの同一要素やコピー&ペーストした要素で、追加調整していないものは、より高い類似性があると判断することができる。
(2)オペレータが特に留意すべき同一要素について指示できる様にしても良い。
(3)同じパターンが繰り返されているデザインの中に、類似したタイミングで繰り返し現れる色調のオブジェクトは、その形態が異なっていても類似性を高く判断することができる。
(4)顔、鉛筆、指差しマーク等の特有パターンを抽出し、それに連接して現れるパターン同士は類似すると推定する。例えば、図25に示すような同一の指差しマーク61が繰り返し出現し、各指差しマーク61に付随する「吹き出し」62、63の形状が相違する場合でも「吹き出し」の色調が統一されている場合は、これらの「吹き出し」62、63を類似オブジェクトの組とする。
There are the following methods for extracting similar objects.
(1) The same element of a design in which the same pattern is repeated is a similar object. For example, it is possible to determine that the edit history information is acquired and the same element or the copied and pasted element of the same template that has not been additionally adjusted has higher similarity.
(2) The operator may be able to instruct the same element that should be particularly noted.
(3) A color object that repeatedly appears at a similar timing in a design in which the same pattern is repeated can be judged highly similar even if its shape is different.
(4) Extract unique patterns such as faces, pencils, and pointing marks, and estimate that patterns appearing contiguously are similar. For example, even when the same pointing mark 61 as shown in FIG. 25 repeatedly appears and the shapes of the “balloons” 62 and 63 attached to the respective pointing marks 61 are different, the color tone of the “balloon” is unified. In this case, these “balloons” 62 and 63 are set as a set of similar objects.

図26は、類似オブジェクトの抽出処理の流れの一例を示している。オペレータから指定を受けた場合は(ステップS721;Yes)、その指定された複数のオブジェクトを類似オブジェクトに設定する(ステップS722)。なお、オペレータの指定したオブジェクトの類似性(関連強度)を仮評価し、組み合わせに無理がある場合は、警告メッセージを表示するように構成されてもよい。   FIG. 26 shows an example of the flow of similar object extraction processing. When receiving designation from the operator (step S721; Yes), the designated plurality of objects are set as similar objects (step S722). Note that the similarity (relevance strength) of the object designated by the operator is temporarily evaluated, and a warning message may be displayed when the combination is impossible.

処理対象の画像や文書データの作成過程の履歴情報がある場合は(ステップS723;Yes)、コピーとペーストの組みで生成されたオブジェクトを探し出し、さらにその中から同一階調値を有するものを抽出して類似オブジェクトの組に設定する(ステップS724)。   If there is history information on the process of creating the image or document data to be processed (step S723; Yes), the object generated by the combination of copy and paste is searched, and the one having the same gradation value is extracted from among them. Then, a set of similar objects is set (step S724).

テンプレートが使用されている場合は(ステップS725;Yes)、テンプレートの同一構成要件でありかつ同一階調を有するものを抽出して類似オブジェクトの組に設定する(ステップS726)。   When the template is used (step S725; Yes), the template having the same component requirement and the same gradation is extracted and set to a set of similar objects (step S726).

さらに残ったオブジェクトをパターン特性に基づいてグループ化する(ステップS727)。そして1つのグループを抽出し、形態、色調共に類似性(関連強度)が高い場合に類似オブジェクトの組に設定する(ステップS728)。全グループについてステップS728の評価を終了していない場合は(ステップS729;No)、評価対象を次の組(グループ)に切り替え(ステップS730)ステップS728へ移行する。全グループについてステップS728の評価を終了すると(ステップS729;Yes)処理を終了する(エンド)。   Further, the remaining objects are grouped based on the pattern characteristics (step S727). Then, one group is extracted, and when the similarity (relevance strength) is high in both form and color tone, it is set as a set of similar objects (step S728). When the evaluation in step S728 has not been completed for all groups (step S729; No), the evaluation target is switched to the next group (group) (step S730), and the process proceeds to step S728. When the evaluation in step S728 is finished for all groups (step S729; Yes), the process is finished (end).

なお、形態や文面を基にした一般的なパターンマッチングにより類似オブジェクトの組を検出するように構成されてもよく、類似オブジェクトの検出方法は任意に定めればよい。   It should be noted that a set of similar objects may be detected by general pattern matching based on the form and the text, and a method for detecting similar objects may be arbitrarily determined.

また、各組の類似オブジェクトに対して設定する応力特性はその類似性(関連強度)に応じて応力の大小を定めてもよい。たとえば、ロゴマークのように完全一致を必要とする場合は、極めて大きな応力が働くように応力特性を設定する。これに比べて、吹き出しのようにある程度の違いが許容される類似オブジェクトについては応力をロゴマークの場合に比べて小さく設定する。これらオブジェクトと設定する応力との関係は、例えば複数の考えられる場合について、プリセットのテーブルとして用意しておけばよい。   Further, the stress characteristics set for each set of similar objects may determine the magnitude of the stress according to the similarity (relevant strength). For example, when a perfect match such as a logo mark is required, the stress characteristic is set so that an extremely large stress acts. Compared to this, the stress is set to be smaller than that of the logo mark for a similar object that allows a certain degree of difference such as a balloon. The relationship between these objects and the stress to be set may be prepared as a preset table for a plurality of possible cases, for example.

図27は、本発明の手法による色変換の結果を模擬的に示したものである。図27(a)は、図3に示す画像Pをオブジェクト分割し、そのオブジェクト間に作用する応力をオブジェクト間の実線で表し、これを編集装置の有する第1の色空間M1に配置した状態を示している(図28(b)に対応)。なお、小領域および弱い応力は図示省略してある。図27(b)は、第1の色空間M1において図27(a)に示すように表わされた画像Pを本実施の形態に係る色変換方法によって第2の画像出力デバイス17の有する第2の色空間M2内へ色変換した状態を示している。   FIG. 27 schematically shows the result of color conversion by the method of the present invention. FIG. 27A shows a state in which the image P shown in FIG. 3 is divided into objects, the stress acting between the objects is represented by a solid line between the objects, and this is arranged in the first color space M1 of the editing apparatus. (Corresponding to FIG. 28 (b)). A small region and weak stress are not shown. FIG. 27B shows a second image output device 17 having the image P represented as shown in FIG. 27A in the first color space M1 by the color conversion method according to the present embodiment. 2 shows a state in which color conversion is performed into the second color space M2.

本実施の形態に係る色変換方法では、オブジェクト相互の関係について応力特性を定義して色変換を行うので、応力が強い特性を与えられているオブジェクト間の色調関係、すなわち、図中、太い実線で結ばれているオブジェクト間の色調関係が保持されるよう色変換がなされ、図27(b)のように色変換される。また、大領域Bと他の大領域A、Cとの関係のように、応力特性の弱いオブジェクト間に大きな歪みが生じることになるが、前述の通り、資料の説明効果に影響が小さい関係(色差があっても識別性に影響を与えにくいオブジェクト間)に対し選択的に歪みを与えているのであり、これによって資料の説明効果を最大限に生かした色調配置が可能になっている。   In the color conversion method according to the present embodiment, since color conversion is performed by defining a stress characteristic with respect to the relationship between objects, the color tone relationship between objects given strong stress characteristics, that is, a thick solid line in the figure The color conversion is performed so as to maintain the color tone relationship between the objects connected in step (b), and the color conversion is performed as shown in FIG. In addition, as in the relationship between the large region B and the other large regions A and C, a large distortion occurs between objects having weak stress characteristics, but as described above, the relationship has a small influence on the explanation effect of the material ( In this way, it is possible to selectively arrange distortions between objects that do not easily affect discrimination even if there is a color difference.

図28(c)、(d)に示す色変換に比べて、関連するオブジェクト間(大領域A内の中領域同士や大領域B内の中領域同士)の色調変化が少なく抑えられつつ、第2の色空間M2を有効活用した(彩度も高い)画像が得られている。   Compared to the color conversion shown in FIGS. 28C and 28D, the change in color tone between related objects (the middle areas in the large area A and the middle areas in the large area B) is suppressed to a small level. An image that effectively uses the second color space M2 (high saturation) is obtained.

このように、本実施の形態に係る色変換方法では、色変換対象の画像に複数配置されているオブジェクトの構造に基づき、色調関係が重要な意味を持つオブジェクト間の色調差を優先的に保つよう色変換が行えるため、画像の編集環境(第1の色空間)と表示環境(第2の色空間)が異なっていても特段の画像再調整を強いられることなく、効果的な画像の印刷や投影が可能になり、意図通りの効果を持つ資料によりプレゼンテーションを行う等が可能になる。   As described above, in the color conversion method according to the present embodiment, based on the structure of a plurality of objects arranged in the color conversion target image, the color difference between objects having a significant color relationship is preferentially maintained. Therefore, even if the image editing environment (first color space) and the display environment (second color space) are different, effective image printing is not required without requiring special image readjustment. And projection, and presentations can be made with materials that have the intended effect.

なお、本発明の効果はオブジェクト数が3以上の場合に生じる。また本発明の効果はオブジェクト間の関連が多く定義できる場合によりよく発現するので、オブジェクト数が3以上の所定数以上の場合に、効率的な画像処理が実現される。なお、オブジェクト数のほかにも、「関連が定義されたオブジェクト間が所定値(たとえば、3)以上の場合に本発明の色変換を実施」の条件や、「関連が定義されたオブジェクト間の応力特性の種類が2以上となった場合に本発明の色変換を実施」の条件を用いてもよく、これらを複合(「かつ」、「または」で結合)した条件を用いても良い。   The effect of the present invention occurs when the number of objects is three or more. In addition, since the effect of the present invention is more apparent when many relationships between objects can be defined, efficient image processing is realized when the number of objects is three or more. In addition to the number of objects, the condition of “perform the color conversion of the present invention when the relationship between defined objects is greater than or equal to a predetermined value (for example, 3)” or “between objects with defined relationships” The condition of “perform color conversion of the present invention when the type of stress characteristic is 2 or more” may be used, or a condition in which these are combined (“and” or “or”) may be used.

以上、本発明の実施の形態を図面によって説明してきたが、具体的な構成はこれら実施の形態に限られるものではなく、本発明の要旨を逸脱しない範囲における変更や追加があっても本発明に含まれる。   Although the embodiments of the present invention have been described with reference to the drawings, the specific configuration is not limited to these embodiments, and the present invention can be changed or added without departing from the scope of the present invention. include.

たとえば、応力の総和が最小になるように色変換したが、最小になるまで最適化しなくても、応力の総和が、従来方法で色変換した状態に比べて小さくなるようすれば、本発明の効果、すなわち、識別性に影響のある色調変化を少なく抑える(あるいは、意味のある色調関係を維持する)効果をある程度得ることができる。   For example, the color conversion is performed so that the total sum of stresses is minimized, but if the total sum of stresses is made smaller than that obtained by color conversion by the conventional method without optimization until the total amount is minimized, It is possible to obtain a certain degree of effect, that is, an effect of suppressing a change in color tone that affects the distinguishability (or maintaining a meaningful color tone relationship).

また、実施の形態では、オブジェクト構造に基づいて応力特性を決定したが、他の要素、たとえば、ユーザによる応力の指定や維持すべき色調関係の指定など、あるいはこれらのみに基づいて応力特性を定めてもよい。   In the embodiment, the stress characteristics are determined based on the object structure. However, the stress characteristics are determined based on other factors, for example, the designation of stress by the user, the designation of the color relationship to be maintained, or the like. May be.

応力特性は、言い換えると、オブジェクト間の関連度を設定していることに相当する。つまり、応力が強いほど、色調関係が維持されるように作用するので、関連度の強いオブジェクト間ほど、色変換による色彩の変化が小さくなるように色変換されることになる。なお、関連度は応力特性として定めなくてもよく、関連度を数ランクに設定し、上位ランクの関連度が設定されたオブジェクト間ほど色変換による色調の変化量が少なくなるように色変換すればよい。たとえば、ランク別に色調変化の許容量を定めておき、従来方法により色変換した結果、許容量を超える色調変化のあるオブジェクトについて、その色調変化が少なくなるように色配置を移動させる、といった処理を繰り返し行い、すべてのオブジェクトが該当ランクの許容量内に収まるように調整するような方法でもかまわない。   In other words, the stress characteristic corresponds to setting the degree of association between objects. In other words, the stronger the stress is, the more the color relationship is maintained, so that the color conversion by the color conversion becomes smaller between the objects having the higher degree of association. Note that the degree of association does not have to be defined as a stress characteristic. The degree of association is set to several ranks, and color conversion is performed so that the amount of change in color due to color conversion decreases between objects for which the degree of association of the higher rank is set. That's fine. For example, an allowable amount of color change is determined for each rank, and the color arrangement of an object having a color change exceeding the allowable amount as a result of color conversion by a conventional method is moved so that the color change is reduced. It is also possible to repeat the method and adjust so that all the objects are within the allowable amount of the corresponding rank.

本発明の実施の形態に係る色変換方法によって色変換を行う画像処理システムの構成を示すブロック図である。It is a block diagram which shows the structure of the image processing system which performs color conversion with the color conversion method which concerns on embodiment of this invention. 本発明の実施の形態に係る画像処理部が行う色変換処理の概略を示す流れ図である。It is a flowchart which shows the outline of the color conversion process which the image process part which concerns on embodiment of this invention performs. 元画像の一例を示す正面図である。It is a front view which shows an example of an original image. 図3に示す元画像のオブジェクト構造を示す説明図である。It is explanatory drawing which shows the object structure of the original image shown in FIG. 色変換によって生じる歪みの一例をCIELAB表色系にて示した説明図である。It is explanatory drawing which showed an example of the distortion produced by color conversion in the CIELAB color system. 各種の応力特性を例示した説明図である。It is explanatory drawing which illustrated various stress characteristics. 色名障壁および障壁を作るための応力特性の一例を示す説明図である。It is explanatory drawing which shows an example of the stress characteristic for making a color name barrier and a barrier. 図4に示すオブジェクト構造を有する画像Pの各オブジェクト間に応力特性を設定した状態を模式的に示す説明図である。FIG. 5 is an explanatory diagram schematically illustrating a state in which stress characteristics are set between objects of the image P having the object structure illustrated in FIG. 4. 文字、写真、グラフなどを含む元画像の例を示す正面図である。It is a front view which shows the example of the original image containing a character, a photograph, a graph, etc. 図9に示す元画像P2のオブジェクト構造を示す説明図である。It is explanatory drawing which shows the object structure of the original image P2 shown in FIG. 連続階調領域に関する第1の分割法によるオブジェクト分割処理を示す流れ図である。It is a flowchart which shows the object division process by the 1st division method regarding a continuous tone area | region. 連続階調領域の色調のヒストグラムから検出された各ピークを色座標上に表した説明図である。It is explanatory drawing which represented each peak detected from the histogram of the color tone of the continuous tone area | region on the color coordinate. 連続階調領域に関する第2の分割法によるオブジェクト分割処理を示す流れ図である。It is a flowchart which shows the object division process by the 2nd division method regarding a continuous tone area | region. 連続階調領域に対する実画像処理法を示す流れ図である。It is a flowchart which shows the real image processing method with respect to a continuous tone area | region. オブジェクト間以外で応力特性を定義した状態を例示した説明図である。It is explanatory drawing which illustrated the state which defined the stress characteristic except between objects. 画像をオブジェクトに分割する処理を示す流れ図である。It is a flowchart which shows the process which divides | segments an image into an object. 応力特性を決定する処理の概略を示す流れ図である。It is a flowchart which shows the outline of the process which determines a stress characteristic. 応力の総和が最小となる最適解を求める処理を示す流れ図である。It is a flowchart which shows the process which calculates | requires the optimal solution from which the sum total of stress becomes the minimum. 応力の総和が最小となる最適解を求める処理を示す流れ図である。It is a flowchart which shows the process which calculates | requires the optimal solution from which the sum total of stress becomes the minimum. 色差ΔEと輪郭およびテクスチャの構造の強さとの関係を示す説明図である。It is explanatory drawing which shows the relationship between color difference (DELTA) E and the strength of the structure of an outline and a texture. 残留能力を装飾に変換する処理を示す流れ図である。It is a flowchart which shows the process which converts residual capacity into decoration. 色変換に関する追加の指示をオペレータから受け付ける処理を示す流れ図である。It is a flowchart which shows the process which receives the additional instruction | indication regarding color conversion from an operator. 指示入力画面の一例を示す正面図である。It is a front view which shows an example of an instruction | indication input screen. 複数ページの画像を色変換する場合の処理を示す流れ図である。It is a flowchart which shows the process in the case of carrying out color conversion of the image of several pages. 類似オブジェクトの一例(吹き出しの形状が異なる指差しマーク)を示す説明図である。It is explanatory drawing which shows an example (pointing mark from which the shape of a speech bubble differs) of a similar object. 類似オブジェクトの抽出処理を示す流れ図である。It is a flowchart which shows the extraction process of a similar object. 本発明の効果(第1の色空間にある画像を本実施の形態に係る色変換方法で第2の色空間に色変換した結果)を示す説明図である。It is explanatory drawing which shows the effect (The result which color-converted the image in 1st color space to 2nd color space by the color conversion method which concerns on this Embodiment). 従来の方法で色変換した例を示す説明図である。It is explanatory drawing which shows the example color-converted by the conventional method.

符号の説明Explanation of symbols

10…画像処理システム
11…画像入力部
11a…通信部
11b…撮像部
11c…スキャナ部
12…画像記憶部
13…編集処理部
14…モニタ装置(第1の画像出力デバイス)
15…指示入力部
16…画像処理部
17…第2の画像出力デバイス
17a…プリンタ
17b…投影型ディスプレイ
21…輝度方向の歪みに対する応力特性
22…他の成分に対する応力特性
25…色名「橙」に対応する色領域
26…色名「赤」に対応する色領域
31…大領域Aの背景
32…写真
33…応力特性
41…第1の色空間
42…第2の色空間
43…応力の総和が最小となる点
44…対象オブジェクト自身の色度点
45a〜45f…原色点
50…指示入力画面
51…メッセージ
52…シミュレーション画像
53…操作ボタン
53a…再変換釦
53b…続行釦
61…指差しマーク
62、63…吹き出し
M1…第1の色空間
M2…第2の色空間
P、P2…元画像
DESCRIPTION OF SYMBOLS 10 ... Image processing system 11 ... Image input part 11a ... Communication part 11b ... Imaging part 11c ... Scanner part 12 ... Image storage part 13 ... Editing process part 14 ... Monitor apparatus (1st image output device)
DESCRIPTION OF SYMBOLS 15 ... Instruction input part 16 ... Image processing part 17 ... 2nd image output device 17a ... Printer 17b ... Projection type display 21 ... Stress characteristic with respect to distortion of luminance direction 22 ... Stress characteristic with respect to other components 25 ... Color name "orange" 26 color area corresponding to the color name "red" 31 ... background of large area A 32 ... photograph 33 ... stress characteristic 41 ... first color space 42 ... second color space 43 ... sum of stress 44 ... The chromaticity point 45a to 45f of the target object itself ... Primary color point 50 ... Instruction input screen 51 ... Message 52 ... Simulation image 53 ... Operation button 53a ... Re-convert button 53b ... Continue button 61 ... Pointing mark 62, 63 ... balloon M1 ... first color space M2 ... second color space P, P2 ... original image

Claims (15)

第1の色空間に存在しかつ複数のオブジェクトで構成された元画像を第2の色空間内の画像に色変換する色変換方法において、
前記第1の色空間における2つのオブジェクト間の色差と前記第2の色空間内へ色変換した後の前記2つのオブジェクト間の色差との差分を歪みとし、この歪みを解消する方向に働く力を応力とした場合に、前記元画像を構成するオブジェクトの各々について、他のオブジェクトとの間に生じる歪みに対する応力の特性を決定し、前記応力の総和が小さくなるように前記色変換を行う
ことを特徴とする色変換方法。
In a color conversion method for color-converting an original image that exists in a first color space and includes a plurality of objects into an image in a second color space,
The difference between the color difference between two objects in the first color space and the color difference between the two objects after color conversion into the second color space is used as a distortion, and the force acts in a direction to eliminate the distortion. For each of the objects constituting the original image, the characteristic of the stress with respect to the distortion generated between the other objects is determined, and the color conversion is performed so that the total sum of the stresses becomes small. A color conversion method characterized by the above.
前記応力の特性は、前記元画像のオブジェクト構造に基づいて決定する
ことを特徴とする請求項1に記載の色変換方法。
The color conversion method according to claim 1, wherein the stress characteristic is determined based on an object structure of the original image.
前記総和が最小になるように前記色変換を行う
ことを特徴とする請求項1または2に記載の色変換方法。
The color conversion method according to claim 1, wherein the color conversion is performed so that the sum is minimized.
前記色変換の結果、任意のオブジェクトの色調の変化量または任意の2つのオブジェクト間の前記歪みが所定の閾値を超える場合は、該色変換の可否または色変換に関する条件の変更をユーザに問い合わせる
ことを特徴とする請求項1乃至3のいずれか1つに記載の色変換方法。
As a result of the color conversion, when the amount of change in the color tone of an arbitrary object or the distortion between two arbitrary objects exceeds a predetermined threshold, the user is inquired about whether or not the color conversion is possible or a condition change related to the color conversion. The color conversion method according to claim 1, wherein:
前記色変換する際に、所定のオブジェクトに対する色調変化を所定の色領域内に制限する
ことを特徴とする請求項1乃至4のいずれか1つに記載の色変換方法。
5. The color conversion method according to claim 1, wherein, when the color conversion is performed, a change in color tone for a predetermined object is limited within a predetermined color region.
前記応力の特性は、非線形である
ことを特徴とする請求項1乃至5のいずれか1つに記載の色変換方法。
The color conversion method according to claim 1, wherein the stress characteristic is non-linear.
前記応力を輝度または明るさの成分に関する応力と他の成分に関する応力とに分けると共に、輝度または明るさ成分に関する応力が前記他の成分に関する応力より大きくなるようにそれぞれの応力の特性を設定した
ことを特徴とする請求項1乃至6のいずれか1つに記載の色変換方法。
The stress is divided into the stress related to the luminance or brightness component and the stress related to the other component, and the characteristics of each stress are set so that the stress related to the brightness or brightness component is larger than the stress related to the other component. The color conversion method according to claim 1, wherein:
前記色変換後に残留する応力が所定値以上となったオブジェクトに対して、その残留する応力に応じた装飾を施す
ことを特徴とする請求項1乃至7のいずれか1つに記載の色変換方法。
The color conversion method according to any one of claims 1 to 7, wherein a decoration corresponding to the residual stress is applied to an object whose residual stress after the color conversion is equal to or greater than a predetermined value. .
特定のオブジェクトの色変換に関する制約条件の設定を受け付ける
ことを特徴とする請求項1乃至8のいずれか1つに記載の色変換方法。
The color conversion method according to any one of claims 1 to 8, wherein a setting of a restriction condition related to color conversion of a specific object is received.
特定パターンに属するオブジェクトを検出し、その検出したオブジェクトの色変換に関して所定の制約条件を設定する
ことを特徴とする請求項1乃至9のいずれか1つに記載の色変換方法。
The color conversion method according to any one of claims 1 to 9, wherein an object belonging to the specific pattern is detected, and a predetermined constraint condition is set for color conversion of the detected object.
第1の画像と第2の画像とを前記色変換する場合に、前記第1の画像を構成するオブジェクトの中に前記第2の画像を構成するいずれかのオブジェクトと所定以上の関連強度を有するオブジェクトがある場合は、それら所定以上の関連強度を有するオブジェクトの色変換に関して所定の制約条件を設定する
ことを特徴とする請求項1乃至10のいずれか1つに記載の色変換方法。
When the color conversion is performed on the first image and the second image, the object constituting the first image has a relation strength higher than a predetermined value with any object constituting the second image. 11. The color conversion method according to claim 1, wherein when there is an object, a predetermined constraint condition is set for the color conversion of the object having a relation strength higher than a predetermined level.
前記制約条件は、(1)オブジェクトの色調変化を所定の色領域内に制限する、(2)オブジェクトの前記第1の色空間における色と色変換後の前記第2の色空間における色との差分を歪みとして該歪みに対する応力を設定する、(3)所定の定義に基づいて定めた色とオブジェクトを色変換した後の前記第2の色空間における色との差分を歪みとして該歪みに対する応力を設定する、のうちの少なくとも1つである
ことを特徴とする請求項9乃至11のいずれか1つに記載の色変換方法。
The constraint conditions are: (1) limiting the color change of the object within a predetermined color region; (2) the color of the object in the first color space and the color in the second color space after color conversion; The difference is set as a distortion, and the stress for the distortion is set. (3) The difference between the color determined based on the predetermined definition and the color in the second color space after the color conversion of the object is set as the distortion. The color conversion method according to claim 9, wherein the color conversion method is at least one of the following.
第1の色空間に存在しかつ複数のオブジェクトで構成された元画像を第2の色空間内の画像に色変換する色変換方法において、
前記元画像を構成する各オブジェクト間に関連度を設定し、オブジェクト間の色差の変化が前記関連度の強いオブジェクト間ほど小さくなるようにして前記色変換を行う
ことを特徴とする色変換方法。
In a color conversion method for color-converting an original image that exists in a first color space and includes a plurality of objects into an image in a second color space,
A color conversion method characterized in that a degree of association is set between each object constituting the original image, and the color conversion is performed such that a change in color difference between objects becomes smaller between objects having a higher degree of association.
前記関連度は、前記元画像のオブジェクト構造に基づいて決定する
ことを特徴とする請求項13に記載の色変換方法。
The color conversion method according to claim 13, wherein the relevance is determined based on an object structure of the original image.
前記元画像を構成するオブジェクトの数が3以上の場合にのみ、前記色変換を実行する
ことを特徴とする請求項1乃至14のいずれか1つに記載の色変換方法。
The color conversion method according to any one of claims 1 to 14, wherein the color conversion is executed only when the number of objects constituting the original image is three or more.
JP2008148425A 2008-06-05 2008-06-05 Color conversion method Withdrawn JP2009296372A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2008148425A JP2009296372A (en) 2008-06-05 2008-06-05 Color conversion method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2008148425A JP2009296372A (en) 2008-06-05 2008-06-05 Color conversion method

Publications (1)

Publication Number Publication Date
JP2009296372A true JP2009296372A (en) 2009-12-17

Family

ID=41544122

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2008148425A Withdrawn JP2009296372A (en) 2008-06-05 2008-06-05 Color conversion method

Country Status (1)

Country Link
JP (1) JP2009296372A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2011007623A1 (en) * 2009-07-17 2011-01-20 三菱電機株式会社 Facility operation display device, air-conditioning system, and program

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2011007623A1 (en) * 2009-07-17 2011-01-20 三菱電機株式会社 Facility operation display device, air-conditioning system, and program
JP5452597B2 (en) * 2009-07-17 2014-03-26 三菱電機株式会社 Operation screen display device, air conditioning system, and program
US8736631B2 (en) 2009-07-17 2014-05-27 Mitsubishi Electric Corporation Facility operation display device, air-conditioning system, and non-transitory computer-readable medium

Similar Documents

Publication Publication Date Title
EP1453006A1 (en) Converted digital colour image with improved colour distinction for colour-blinds
JP4645662B2 (en) Color conversion table creation program, interpolation calculation program, color conversion table creation method, interpolation calculation method, color conversion device, and printing device
JP4408858B2 (en) Image processing apparatus and method
US5740076A (en) System for describing a color gamut in a graphical data processing system
US8526061B2 (en) Image processing apparatus, image processing method, and computer program product
US20060072135A1 (en) Image forming apparatus and method
JP2016035623A (en) Information processing apparatus and information processing method
US8982411B2 (en) Image processing apparatus and method
KR20080013719A (en) Information processing apparatus, information processing method, and color separation table generation method
US7558422B2 (en) Document processing apparatus
US9665324B2 (en) Simulation of preprinted forms
US8824016B2 (en) Image processing device capable of suppressing deformation of printing medium
JP2010103606A (en) Apparatus, program and method for generating profile
JP2009296372A (en) Color conversion method
US7679782B2 (en) System and method for extracting grayscale data in accordance with a prescribed tolerance function
JP5012871B2 (en) Image processing apparatus, image forming apparatus, and image processing program
JPH04107163A (en) Recording device
EP1453008A1 (en) Cocverted digital colour image with improved colour distinction for colour-blinds
JP4775328B2 (en) Image processing apparatus and program
JP2007096430A (en) Apparatus, method, and program for generating color reproduction range
JP2010050832A (en) Device and method for processing image, program, and recording medium
JP2006260533A (en) Image forming apparatus and method
JP2010062921A (en) Image processing apparatus and method, program, and recording medium
JP2009071715A (en) Color gamut generating method, color gamut generating device, program, and storage medium
JP2007324861A (en) Apparatus and program of creating color conversion definition

Legal Events

Date Code Title Description
A300 Withdrawal of application because of no request for examination

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 20110906