Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JP3831390B2 - Color signal selection device, color signal interpolation device, color signal generation device, encircling point selection method, and color conversion table creation method - Google Patents
[go: Go Back, main page]

JP3831390B2 - Color signal selection device, color signal interpolation device, color signal generation device, encircling point selection method, and color conversion table creation method - Google Patents

Color signal selection device, color signal interpolation device, color signal generation device, encircling point selection method, and color conversion table creation method Download PDF

Info

Publication number
JP3831390B2
JP3831390B2 JP2004190237A JP2004190237A JP3831390B2 JP 3831390 B2 JP3831390 B2 JP 3831390B2 JP 2004190237 A JP2004190237 A JP 2004190237A JP 2004190237 A JP2004190237 A JP 2004190237A JP 3831390 B2 JP3831390 B2 JP 3831390B2
Authority
JP
Japan
Prior art keywords
color
color signal
space
point
interpolation
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Lifetime
Application number
JP2004190237A
Other languages
Japanese (ja)
Other versions
JP2004328792A (en
Inventor
雅芳 清水
祥治 鈴木
聡史 仙波
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Fujitsu Ltd
Original Assignee
Fujitsu Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP2004190237A priority Critical patent/JP3831390B2/en
Publication of JP2004328792A publication Critical patent/JP2004328792A/en
Application granted granted Critical
Publication of JP3831390B2 publication Critical patent/JP3831390B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Images

Landscapes

  • Color Image Communication Systems (AREA)
  • Image Processing (AREA)
  • Facsimile Image Signal Circuits (AREA)

Description

本発明は、色信号選択装置、色信号生成装置、色信号補間装置、包囲点選択方法及び色変換テーブルの作成方法に関し、特に、空間上に不規則に分布する点の中から、入力された点を包囲する点を選択する場合に適用して好適なものである。   The present invention relates to a color signal selection device, a color signal generation device, a color signal interpolation device, an encircling point selection method, and a color conversion table creation method, and in particular, input from irregularly distributed points in space. It is suitable for application when selecting a point surrounding the point.

近年、プリンタやファクシミリなどにおいてフルカラー化が急速に進展してきており、カラー画像を異なるデバイス間で共有しようという要求が発生している。ところが、カラー画像を異なるデバイス間で共有しようとする場合、デバイスが異なると色再現性も異なることから、送信側で得られる画像の色と受信側で得られる画像の色とが異なるという問題が発生する。   In recent years, full-colorization has rapidly progressed in printers, facsimiles, and the like, and there is a demand for sharing color images between different devices. However, when a color image is to be shared between different devices, the color reproducibility is also different for different devices, so the color of the image obtained on the transmission side is different from the color of the image obtained on the reception side. appear.

例えば、プリンタやスキャナなどでは、それぞれCMY信号やRGB信号などのデバイスに送る色信号の形式で色が扱われる。すなわち、出力される色信号の最小値が0、出力される色信号の最大値が255であるプリンタでは、各CMY信号の値が0〜255の範囲の組み合わせにより全ての出力色が表現される。この場合、同一の値のCMY信号が入力されても、プリンタの機種によって印刷される色は異なることから、CMY信号による色の表現方法は、デバイスに依存する色の表し方と言うことができる。   For example, printers and scanners handle colors in the form of color signals sent to devices such as CMY signals and RGB signals, respectively. That is, in a printer in which the minimum value of the output color signal is 0 and the maximum value of the output color signal is 255, all output colors are expressed by combinations of the CMY signal values ranging from 0 to 255. . In this case, even if CMY signals having the same value are input, the color to be printed differs depending on the printer model. Therefore, the color expression method based on the CMY signals can be said to be a color representation method dependent on the device. .

そのため、従来では、デバイスに依存する表現形式で表されている色信号を、デバイスに依存しない中間的な表現形式で表すことにより、異なるデバイス間での色再現性を一致させることが行われている。   Therefore, conventionally, the color reproducibility between different devices has been made consistent by representing the color signal represented in a device-dependent representation format in an intermediate representation format independent of the device. Yes.

例えば、デバイスに依存しない絶対的な色を表す色の表現方式として、L* a* b* 信号やXYZ信号などによる色の表し方がある。これらの形式で表される色は一義的に定義されているので、異なるデバイスの色空間の間で色変換を行う場合の中間的な色の表現方式として用いることができる。   For example, as a method of expressing a color that represents an absolute color that does not depend on a device, there is a method of expressing a color using an L * a * b * signal, an XYZ signal, or the like. Since the colors represented in these formats are uniquely defined, they can be used as an intermediate color expression method when color conversion is performed between the color spaces of different devices.

具体的には、スキャナから入力したRGB信号で表現された画像を、L* a* b* 信号で表現された画像に変換し、さらに、このL* a* b* 信号をCMY信号に変換してから、プリンタに出力するようにする。このため、これらの色信号の表現形式の変換が正確に行われれば、デバイス間で色を一致させることができる。   Specifically, the image expressed by the RGB signal input from the scanner is converted into an image expressed by the L * a * b * signal, and this L * a * b * signal is converted into a CMY signal. Then output to the printer. For this reason, if conversion of the expression format of these color signals is accurately performed, colors can be matched between devices.

色信号の表現形式を変換するためには、各形式で表現されている色信号の値を他の形式の色信号の値に変換する必要がある。色信号の値を変換する方法としては、それぞれの色空間での色の対応関係を示した色変換テーブルを用いる方法がある。色変換テーブルを用いた色信号の変換方法において、色変換テーブルに登録されている色信号を他の形式の色信号に変換する時は、色変換テーブルに登録されている対応関係を用いて変換する。色変換テーブルに登録されていない色信号を他の形式の色信号に変換する時は、色変換テーブルに登録されている色信号の中から、変換対象となる色信号の近傍の色信号を選択する。そして、これらの選択された色信号を用いて補間することにより、変換対象となる色信号の変換を行う。   In order to convert the representation format of the color signal, it is necessary to convert the color signal value represented in each format into the color signal value of another format. As a method of converting the value of the color signal, there is a method of using a color conversion table showing the correspondence of colors in each color space. In the color signal conversion method using the color conversion table, when converting a color signal registered in the color conversion table into a color signal of another format, conversion is performed using the correspondence relationship registered in the color conversion table. To do. When converting a color signal not registered in the color conversion table into a color signal of another format, select a color signal near the color signal to be converted from the color signals registered in the color conversion table. To do. Then, by interpolating using these selected color signals, the color signal to be converted is converted.

ここで、色変換テーブルには、規則テーブルと不規則テーブルの2つの種類がある。規則テーブルでは、変換対象となる色信号が色空間上で規則的に分布し、不規則テーブルでは、変換対象となる色信号が色空間上で不規則に分布している。   Here, there are two types of color conversion tables: a rule table and an irregular table. In the rule table, color signals to be converted are regularly distributed in the color space, and in the irregular table, color signals to be converted are irregularly distributed in the color space.

規則テーブルを用いて色変換を行う場合には、色変換テーブルに登録されていない色信号が変換対象として入力されても、色変換テーブルに登録されている色信号の中から、変換対象となる色信号を包囲する色信号を容易に選択することができる。   When color conversion is performed using a rule table, even if a color signal not registered in the color conversion table is input as a conversion target, it is converted from the color signals registered in the color conversion table. The color signal surrounding the color signal can be easily selected.

また、これらの選択された色信号は色空間上の格子点に分布していることから、四面体補間、三角柱補間、または立方体補間などにより、変換対象となる色信号の変換を比較的容易に行うことが可能である。   Since these selected color signals are distributed at grid points in the color space, conversion of the color signals to be converted is relatively easy by tetrahedral interpolation, triangular prism interpolation, cube interpolation, or the like. Is possible.

一方、不規則テーブルを用いて色変換を行う場合には、色変換テーブルに登録されていない色信号が変換対象として入力された時に、色変換テーブルに登録されている色信号の中から、変換対象となる色信号の近傍の色信号を選択しても、変換対象となる色信号が、選択された色信号で包囲されているとは限らない。このため、変換対象となる色信号の近傍の色信号を用いて補間を行った場合でも、補間の精度が十分でないことがある。   On the other hand, when color conversion is performed using an irregular table, when a color signal not registered in the color conversion table is input as a conversion target, conversion is performed from among the color signals registered in the color conversion table. Even if a color signal in the vicinity of the target color signal is selected, the color signal to be converted is not necessarily surrounded by the selected color signal. For this reason, even when interpolation is performed using a color signal near the color signal to be converted, the accuracy of the interpolation may not be sufficient.

色変換で補間演算を行うための色を選択する方法と、色変換テーブルの構成を変換して色変換を実行する際に利用しやすいテーブルに変換を行う方法としては、例えば、特開平7−95431号公報に記載されたものがある。   As a method for selecting a color for performing an interpolation operation by color conversion and a method for converting the configuration of the color conversion table into a table that can be easily used when executing color conversion, for example, Japanese Patent Laid-Open No. 7-1990. There is one described in Japanese Patent No. 95431.

ここでは、色空間で格子点に分布しないデータを用いることにより、補間を行う方法について示されている。つまり、不規則テーブルを用いて色変換を行う際の色の選択方法について述べられている。   Here, a method of performing interpolation by using data that is not distributed to grid points in the color space is shown. That is, a method for selecting a color when performing color conversion using an irregular table is described.

図37は、この従来の色選択方法を示すフローチャートである。
図37において、まず、補間しようとする点xに最も近いk個の点x1〜xkを選択する(ステップS181)。
FIG. 37 is a flowchart showing this conventional color selection method.
In FIG. 37, first, k points x1 to xk closest to the point x to be interpolated are selected (step S181).

次に、補間しようとする点xが、選択したk個の点x1〜xkに包囲されているどうかをか調べる(ステップS182)。そして、補間しようとする点xが、選択したk個の点x1〜xkに包囲されていない場合には(ステップS183)、次に最も近い点を選択し(ステップS184)、補間しようとする点xを包囲する点が見つかるまで、この処理を続ける。そして、補間しようとする点xを包囲する点が選択されると、これらの選択された点を用いることにより、補間を行う(ステップS185)。   Next, it is checked whether or not the point x to be interpolated is surrounded by the selected k points x1 to xk (step S182). If the point x to be interpolated is not surrounded by the selected k points x1 to xk (step S183), the next closest point is selected (step S184), and the point to be interpolated is selected. This process continues until a point surrounding x is found. When points surrounding the point x to be interpolated are selected, interpolation is performed by using these selected points (step S185).

さらに、特許文献1には、凸補間を用いることにより、色信号が格子点に分布しない色変換テーブル(不規則テーブル)を、色信号が格子点に分布する色変換テーブル(規則テーブル)に変換する方法についても言及されている。この方法では、凸補間を用いて規則的な分布の色信号を作成し、この作成した色信号を規則テーブルに登録する。
特開平7−95431号公報
Furthermore, in Patent Document 1, by using convex interpolation, a color conversion table (irregular table) in which color signals are not distributed at lattice points is converted into a color conversion table (rule table) in which color signals are distributed at lattice points. It is also mentioned how to do. In this method, a color signal having a regular distribution is created using convex interpolation, and the created color signal is registered in a rule table.
JP 7-95431 A

しかしながら、従来の色信号選択方法では、補間しようとする点xが選択したk個の点x1〜xkに包囲されていない場合には、データの選択をやり直すため、補間しようとする点xを包囲する点を見つけるために、データの選択を繰り返す必要があった。このため、補間しようとする点xを包囲する点を選択するための処理時間が長くなるという問題があった。   However, in the conventional color signal selection method, when the point x to be interpolated is not surrounded by the selected k points x1 to xk, the point x to be interpolated is surrounded to perform data selection again. It was necessary to repeat selection of data to find a point to do. For this reason, there is a problem that the processing time for selecting a point surrounding the point x to be interpolated becomes long.

また、包囲する色信号の選択の時間がかかり、色変換の処理速度が低下するため、不規則テーブルから規則テーブルへの変換に用いた場合でも、同様に処理速度が低下するという問題があった。   In addition, since it takes time to select the surrounding color signal and the processing speed of the color conversion decreases, there is a problem that the processing speed similarly decreases even when used for conversion from an irregular table to a rule table. .

さらに、不規則テーブルから規則テーブルに登録する色信号を補間演算で生成する場合、不規則テーブルに登録されている色信号で包囲される範囲外については、色信号を生成できないという問題もあった。   Furthermore, when the color signal registered in the rule table is generated from the irregular table by interpolation, there is a problem that the color signal cannot be generated outside the range surrounded by the color signal registered in the irregular table. .

そこで、本発明の第1の目的は、空間上に不規則に分布する点の中から、入力された点を包囲する点を高速に選択することを可能とすることである。
また、本発明の第2の目的は、不規則テーブルから規則テーブルの色信号を欠落なく生成することを可能とすることである。
Accordingly, a first object of the present invention is to make it possible to select at high speed a point that surrounds an input point from among points that are irregularly distributed in space.
The second object of the present invention is to make it possible to generate a color signal of a rule table from an irregular table without omission.

上述した課題を解決するために、本発明によれば、入力された第1の色信号を基準として、前記第1の色信号が属する色空間を分割する色空間分割手段と、分割された色空間から第2の色信号を選択する色信号選択手段とを備えている。   In order to solve the above-described problem, according to the present invention, a color space dividing unit that divides a color space to which the first color signal belongs with reference to the input first color signal, and a divided color Color signal selection means for selecting the second color signal from the space.

このことにより、色空間上で第2の色信号が不規則に分布している場合においても、第1の色信号を包囲する第2の色信号の選択に失敗することがなくなり、第1の色信号を包囲しない色信号の選択が防止されて、第2の色信号の選択をやり直しをなくすことが可能となることから、第1の色信号を包囲する第2の色信号を高速に選択することが可能となる。   As a result, even when the second color signal is irregularly distributed in the color space, the selection of the second color signal surrounding the first color signal does not fail, and the first color signal does not fail. Since the selection of the color signal that does not surround the color signal is prevented and the selection of the second color signal can be eliminated, the second color signal that surrounds the first color signal can be selected at high speed. It becomes possible to do.

また、本発明の一態様によれば、第2の色信号が所定の領域に来るように、回転変換を行うようにしている。
このことにより、第1の色信号を包囲する第2の色信号を選択する際に、第2の色信号の個数をできるだけ少なくすることが可能となり、補間演算を簡易に行うことが可能となる。
In addition, according to one aspect of the present invention, rotation conversion is performed so that the second color signal is in a predetermined region.
As a result, when the second color signal surrounding the first color signal is selected, the number of the second color signals can be reduced as much as possible, and the interpolation calculation can be easily performed. .

また、本発明の一態様によれば、第1の色信号の各成分の値と第2の色信号の各成分の値との大小関係に基づいて、第2の色信号を選択するようにしている。
このことにより、第1の色信号の各成分の値と第2の色信号の各成分の値とを比較するだけで、第1の色信号を包囲する第2の色信号を確実に選択することが可能となることから、第1の色信号を包囲する第2の色信号を簡単な演算を行うだけで選択することが可能となる。
According to one aspect of the present invention, the second color signal is selected based on the magnitude relationship between the value of each component of the first color signal and the value of each component of the second color signal. ing.
As a result, the second color signal surrounding the first color signal is reliably selected only by comparing the value of each component of the first color signal and the value of each component of the second color signal. Therefore, the second color signal surrounding the first color signal can be selected simply by performing a simple calculation.

また、本発明の一態様によれば、第2の色信号として、第1の色信号との距離が最も短い色信号を分割された色空間から選択するようにしている。
このことにより、第1の色信号から離れた点の色信号が補間演算に用いられることを防止でき、第2の色信号を用いた第1の色信号の補間演算を高精度に行うことが可能となる。
According to one aspect of the present invention, a color signal having the shortest distance from the first color signal is selected from the divided color space as the second color signal.
Accordingly, it is possible to prevent the color signal at a point away from the first color signal from being used for the interpolation calculation, and to perform the interpolation calculation of the first color signal using the second color signal with high accuracy. It becomes possible.

また、本発明の一態様によれば、第2の色信号として、第1の色信号との距離が所定の値以上の最も短い色信号を分割された色空間から選択するようにしている このことにより、限定された狭い範囲内の色信号だけが選択されたために、補間演算により生成可能な色信号の範囲に片寄りが発生することを防止することが可能となり、色空間上の色再現範囲内において生成可能な色信号の欠落をなくすことが可能となる。   According to one aspect of the present invention, the shortest color signal whose distance from the first color signal is a predetermined value or more is selected from the divided color space as the second color signal. As a result, only a color signal within a limited narrow range is selected, so that it is possible to prevent deviation from occurring in the range of color signals that can be generated by interpolation, and color reproduction in the color space. It is possible to eliminate missing color signals that can be generated within the range.

また、本発明の一態様によれば、入力された第1の色信号を基準として第1の色空間を分割する色空間分割手段と、分割された第1の色空間から第2の色信号を選択する色信号選択手段と、第2の色信号の第2の色空間への変換結果に基づいて、第1の色信号の第2の色空間への変換結果を算出する色信号算出手段とを備えている。   Further, according to one aspect of the present invention, the color space dividing unit that divides the first color space based on the input first color signal, and the second color signal from the divided first color space. And a color signal calculation means for calculating the conversion result of the first color signal to the second color space based on the conversion result of the second color signal to the second color space. And.

このことにより、第1の色空間上で第2の色信号が不規則に分布している場合においても、分割された第1の色空間から第2の色信号を1つずつ取り出すことにより、第1の色信号を第2の色信号で確実に包囲することが可能となり、第1の色信号の補間に必要な第2の色信号を迅速に選択することが可能となることから、色信号の補間を高速に行うことが可能となる。   Thus, even when the second color signal is irregularly distributed on the first color space, by taking out the second color signal one by one from the divided first color space, Since the first color signal can be surely surrounded by the second color signal, and the second color signal necessary for interpolation of the first color signal can be quickly selected. Signal interpolation can be performed at high speed.

また、本発明の一態様によれば、第1の色空間上の格子点の値を基準として、その第1の色空間を分割するようにしている。
このことにより、第1の色空間上に補間点を規則的に生成することが可能となり、第1の色空間上の色信号の分布に片寄りをなくして、第1の色空間上の色信号の分布を均一にすることが可能となる。
Further, according to one aspect of the present invention, the first color space is divided on the basis of the value of the grid point on the first color space.
This makes it possible to regularly generate interpolation points in the first color space, eliminate the deviation in the distribution of color signals in the first color space, and change the color in the first color space. The signal distribution can be made uniform.

また、本発明の一態様によれば、入力された第1の色信号を基準として第1の色空間を分割する色空間分割手段と、分割された第1の色空間から第2の色信号を選択する色信号選択手段と、前記第2の色信号の第2の色空間への変換結果に基づいて、前記第2の色信号で囲まれる第3の色信号についての変換結果を算出する色信号算出手段とを備えている。   Further, according to one aspect of the present invention, the color space dividing unit that divides the first color space based on the input first color signal, and the second color signal from the divided first color space. And a conversion result for the third color signal surrounded by the second color signal is calculated based on the color signal selection means for selecting the second color signal and the conversion result of the second color signal to the second color space. Color signal calculating means.

このことにより、第1の色空間上で補間対象となる第3の色信号と、第1の色空間上で分割の基準点となる第1の色信号とを異なるものとすることができ、第3の色信号として異なる色信号が入力された場合においても、色空間を分割する際の基準点を共通に設定することが可能となることから、第2の色信号で囲まれる同一範囲内の異なる第3の色信号について、第2の色信号の選択を一括して行うことが可能となる。   Accordingly, the third color signal to be interpolated in the first color space can be different from the first color signal to be the reference point for division in the first color space. Even when a different color signal is input as the third color signal, it is possible to set a common reference point for dividing the color space, and therefore, within the same range surrounded by the second color signal. For the third color signals having different values, the second color signal can be selected at once.

また、本発明の一態様によれば、第1の色空間上の格子点の値を基準として、その第1の色空間を分割するようにしている。
このことにより、第2の色信号の選択の基準となる点を第1の色空間上で等間隔に設定することが可能となり、第1の色空間上での第2の色信号の選択を規則正しく行うことが可能となる。
Further, according to one aspect of the present invention, the first color space is divided on the basis of the value of the grid point on the first color space.
This makes it possible to set the reference points for selection of the second color signal at equal intervals on the first color space, and to select the second color signal on the first color space. It becomes possible to carry out regularly.

また、本発明の一態様によれば、第1の色空間に分布している色信号の粗密に基づいて、格子点の格子間隔を変更するようにしている。
このことにより、格子点を基準として第2の色信号を選択する際に、異なる格子点に対して同一の第2の色信号が選択されることを防止することが可能となり、第2の色信号で包囲される範囲の重複を減らすことが可能となることから、新たな補間点を第1の色空間上に効率よく生成することが可能となる。
Further, according to one aspect of the present invention, the lattice spacing of lattice points is changed based on the density of the color signal distributed in the first color space.
This makes it possible to prevent the same second color signal from being selected for different lattice points when the second color signal is selected on the basis of the lattice point. Since it becomes possible to reduce the overlap of the range surrounded by the signal, it is possible to efficiently generate a new interpolation point on the first color space.

また、本発明の一態様によれば、第1の色空間上に分布している色信号を第1の色信号として入力するようにしている。
このことにより、第1の色信号を基準として選択された第2の色信号で包囲される範囲を、第1の色空間上に分布している色信号の範囲全体に隙間なく設定することが可能となり、色空間上の色再現範囲内において生成可能な色信号の欠落を防止することが可能となる。なお、第1の色空間上に分布している色信号は、例えば、色変換テーブルに登録されている値である。
Further, according to one aspect of the present invention, a color signal distributed in the first color space is input as the first color signal.
As a result, the range surrounded by the second color signal selected on the basis of the first color signal can be set without any gap in the entire range of the color signal distributed in the first color space. This makes it possible to prevent missing color signals that can be generated within the color reproduction range in the color space. Note that the color signal distributed in the first color space is, for example, a value registered in the color conversion table.

また、本発明の一態様によれば、第1の色空間上の格子点の値を第3の色信号として設定するようにしている。
このことにより、第1の色空間上で補間対象となる第3の色信号と、第1の色空間上で分割の基準点となる第1の色信号とが異なる場合においても、第1の色空間上の格子点の色信号を求めることが可能となる。
Further, according to one aspect of the present invention, the value of the grid point on the first color space is set as the third color signal.
As a result, even when the third color signal to be interpolated in the first color space is different from the first color signal to be the reference point for division in the first color space, the first color signal is different. It becomes possible to obtain color signals of lattice points in the color space.

また、本発明の一態様によれば、第1の色空間に属する第1の色信号を入力する色信号入力手段と、前記第1の色信号を包囲する第2の色信号を選択する色信号選択手段と、前記第2の色信号と第2の色空間に属する第3の色信号との対応関係を獲得する対応関係獲得手段と、前記色信号選択手段により選択された第2の色信号についての重み係数を設定する重み係数設定手段と、前記重み係数に基づいて、前記第2の色信号で包囲される範囲内に補間点を生成する補間点生成手段と、前記重み係数設定手段により設定された重み係数の中から、前記第2の色信号で包囲される前記第4の色信号に最も近い補間点の重み係数を選択する重み係数選択手段と、前記重み係数選択手段により選択された重み係数を前記第3の色信号に適用することにより、前記第4の色信号の前記第2の色空間への変換結果を算出する補間演算手段とを備えている。   According to one aspect of the present invention, the color signal input means for inputting the first color signal belonging to the first color space and the color for selecting the second color signal surrounding the first color signal. Signal selection means; correspondence relation acquisition means for acquiring a correspondence relation between the second color signal and the third color signal belonging to the second color space; and the second color selected by the color signal selection means. Weighting factor setting means for setting a weighting factor for the signal, interpolation point generating means for generating an interpolation point within a range surrounded by the second color signal based on the weighting factor, and the weighting factor setting means The weighting factor selection unit that selects the weighting factor of the interpolation point closest to the fourth color signal surrounded by the second color signal from the weighting factor set by the selection by the weighting factor selection unit Applying the weighted factor to the third color signal More, and an interpolation calculating means for calculating a transformation result to the second color space of the fourth color signals.

このことにより、第1の色信号を包囲する第2の色信号を選択する際に、第2の色信号の個数をできるだけ少なくすることが可能となり、補間演算を簡易に行うことが可能となる。   As a result, when the second color signal surrounding the first color signal is selected, the number of the second color signals can be reduced as much as possible, and the interpolation calculation can be easily performed. .

また、本発明の一態様によれば、第1の色信号の各成分の値と第2の色信号の各成分の値との大小関係に基づいて、第2の色信号を選択するようにしている。
このことにより、第1の色信号の各成分の値と第2の色信号の各成分の値とを比較するだけで、第1の色信号を包囲する第2の色信号を確実に選択することが可能となることから、第1の色信号を包囲する第2の色信号を簡単な演算を行うだけで選択することが可能となる。
According to one aspect of the present invention, the second color signal is selected based on the magnitude relationship between the value of each component of the first color signal and the value of each component of the second color signal. ing.
As a result, the second color signal surrounding the first color signal is reliably selected only by comparing the value of each component of the first color signal and the value of each component of the second color signal. Therefore, the second color signal surrounding the first color signal can be selected simply by performing a simple calculation.

また、本発明の一態様によれば、第2の色信号として、第1の色信号との距離が最も短い色信号を分割された色空間から選択するようにしている。
このことにより、第1の色信号から離れた点の色信号が補間演算に用いられることを防止でき、第2の色信号を用いた第1の色信号の補間演算を高精度に行うことが可能となる。
According to one aspect of the present invention, a color signal having the shortest distance from the first color signal is selected from the divided color space as the second color signal.
Accordingly, it is possible to prevent the color signal at a point away from the first color signal from being used for the interpolation calculation, and to perform the interpolation calculation of the first color signal using the second color signal with high accuracy. It becomes possible.

また、本発明の一態様によれば、第2の色信号として、第1の色信号との距離が所定の値以上の最も短い色信号を分割された色空間から選択するようにしている このことにより、限定された狭い範囲内の色信号だけが選択されたために、補間演算により生成可能な色信号の範囲に片寄りが発生することを防止することが可能となり、色空間上の色再現範囲内において生成可能な色信号の欠落をなくすことが可能となる。   According to one aspect of the present invention, the shortest color signal whose distance from the first color signal is a predetermined value or more is selected from the divided color space as the second color signal. As a result, only a color signal within a limited narrow range is selected, so that it is possible to prevent deviation from occurring in the range of color signals that can be generated by interpolation, and color reproduction in the color space. It is possible to eliminate missing color signals that can be generated within the range.

また、本発明の一態様によれば、入力された第1の色信号を基準として第1の色空間を分割する色空間分割手段と、分割された第1の色空間から第2の色信号を選択する色信号選択手段と、第2の色信号の第2の色空間への変換結果に基づいて、第1の色信号の第2の色空間への変換結果を算出する色信号算出手段とを備えている。   Further, according to one aspect of the present invention, the color space dividing unit that divides the first color space based on the input first color signal, and the second color signal from the divided first color space. And a color signal calculation means for calculating the conversion result of the first color signal to the second color space based on the conversion result of the second color signal to the second color space. And.

このことにより、第1の色空間上で第2の色信号が不規則に分布している場合においても、分割された第1の色空間から第2の色信号を1つずつ取り出すことにより、第1の色信号を第2の色信号で確実に包囲することが可能となり、第1の色信号の補間に必要な第2の色信号を迅速に選択することが可能となることから、色信号の補間を高速に行うことが可能となる。   Thus, even when the second color signal is irregularly distributed on the first color space, by taking out the second color signal one by one from the divided first color space, Since the first color signal can be surely surrounded by the second color signal, and the second color signal necessary for interpolation of the first color signal can be quickly selected. Signal interpolation can be performed at high speed.

また、本発明の一態様によれば、第1の色空間上の格子点の値を基準として、その第1の色空間を分割するようにしている。
このことにより、第1の色空間上に補間点を規則的に生成することが可能となり、第1の色空間上の色信号の分布に片寄りをなくして、第1の色空間上の色信号の分布を均一にすることが可能となる。
Further, according to one aspect of the present invention, the first color space is divided on the basis of the value of the grid point on the first color space.
This makes it possible to regularly generate interpolation points in the first color space, eliminate the deviation in the distribution of color signals in the first color space, and change the color in the first color space. The signal distribution can be made uniform.

また、本発明の一態様によれば、入力された第1の色信号を基準として第1の色空間を分割する色空間分割手段と、分割された第1の色空間から第2の色信号を選択する色信号選択手段と、前記第2の色信号の第2の色空間への変換結果に基づいて、前記第2の色信号で囲まれる第3の色信号についての変換結果を算出する色信号算出手段とを備えている。   Further, according to one aspect of the present invention, the color space dividing unit that divides the first color space based on the input first color signal, and the second color signal from the divided first color space. And a conversion result for the third color signal surrounded by the second color signal is calculated based on the color signal selection means for selecting the second color signal and the conversion result of the second color signal to the second color space. Color signal calculating means.

このことにより、第1の色空間上で補間対象となる第3の色信号と、第1の色空間上で分割の基準点となる第1の色信号とを異なるものとすることができ、第3の色信号として異なる色信号が入力された場合においても、色空間を分割する際の基準点を共通に設定することが可能となることから、第2の色信号で囲まれる同一範囲内の異なる第3の色信号について、第2の色信号の選択を一括して行うことが可能となる。   Accordingly, the third color signal to be interpolated in the first color space can be different from the first color signal to be the reference point for division in the first color space. Even when a different color signal is input as the third color signal, it is possible to set a common reference point for dividing the color space, and therefore, within the same range surrounded by the second color signal. For the third color signals having different values, the second color signal can be selected at once.

また、本発明の一態様によれば、第1の色空間上の格子点の値を基準として、その第1の色空間を分割するようにしている。
このことにより、第2の色信号の選択の基準となる点を第1の色空間上で等間隔に設定することが可能となり、第1の色空間上での第2の色信号の選択を規則正しく行うことが可能となる。
Further, according to one aspect of the present invention, the first color space is divided on the basis of the value of the grid point on the first color space.
This makes it possible to set the reference points for selection of the second color signal at equal intervals on the first color space, and to select the second color signal on the first color space. It becomes possible to carry out regularly.

また、本発明の一態様によれば、第1の色空間に分布している色信号の粗密に基づいて、格子点の格子間隔を変更するようにしている。
このことにより、格子点を基準として第2の色信号を選択する際に、異なる格子点に対して同一の第2の色信号が選択されることを防止することが可能となり、第2の色信号で包囲される範囲の重複を減らすことが可能となることから、新たな補間点を第1の色空間上に効率よく生成することが可能となる。
Further, according to one aspect of the present invention, the lattice spacing of lattice points is changed based on the density of the color signal distributed in the first color space.
This makes it possible to prevent the same second color signal from being selected for different lattice points when the second color signal is selected on the basis of the lattice point. Since it becomes possible to reduce the overlap of the range surrounded by the signal, it is possible to efficiently generate a new interpolation point on the first color space.

また、本発明の一態様によれば、第1の色空間上に分布している色信号を第1の色信号として入力するようにしている。
このことにより、第1の色信号を基準として選択された第2の色信号で包囲される範囲を、第1の色空間上に分布している色信号の範囲全体に隙間なく設定することが可能となり、色空間上の色再現範囲内において生成可能な色信号の欠落を防止することが可能となる。
Further, according to one aspect of the present invention, a color signal distributed in the first color space is input as the first color signal.
As a result, the range surrounded by the second color signal selected on the basis of the first color signal can be set without any gap in the entire range of the color signal distributed in the first color space. This makes it possible to prevent missing color signals that can be generated within the color reproduction range in the color space.

また、本発明の一態様によれば、第1の色空間上の格子点の値を第3の色信号として設定するようにしている。
このことにより、第1の色空間上で補間対象となる第3の色信号と、第1の色空間上で分割の基準点となる第1の色信号とが異なる場合においても、第1の色空間上の格子点の色信号を求めることが可能となる。
Further, according to one aspect of the present invention, the value of the grid point on the first color space is set as the third color signal.
As a result, even when the third color signal to be interpolated in the first color space is different from the first color signal to be the reference point for division in the first color space, the first color signal is different. It becomes possible to obtain color signals of lattice points in the color space.

また、本発明の一態様によれば、第1の色空間に属する第1の色信号を入力する色信号入力手段と、前記第1の色信号を包囲する第2の色信号を選択する色信号選択手段と、前記第2の色信号と第2の色空間に属する第3の色信号との対応関係を獲得する対応関係獲得手段と、前記色信号選択手段により選択された第2の色信号についての重み係数を設定する重み係数設定手段と、前記重み係数に基づいて、前記第2の色信号で包囲される範囲内に補間点を生成する補間点生成手段と、前記重み係数設定手段により設定された重み係数の中から、前記第2の色信号で包囲される前記第4の色信号に最も近い補間点の重み係数を選択する重み係数選択手段と、前記重み係数選択手段により選択された重み係数を前記第3の色信号に適用することにより、前記第4の色信号の前記第2の色空間への変換結果を算出する補間演算手段とを備えている。   According to one aspect of the present invention, the color signal input means for inputting the first color signal belonging to the first color space and the color for selecting the second color signal surrounding the first color signal. Signal selection means; correspondence relation acquisition means for acquiring a correspondence relation between the second color signal and the third color signal belonging to the second color space; and the second color selected by the color signal selection means. Weighting factor setting means for setting a weighting factor for the signal, interpolation point generating means for generating an interpolation point within a range surrounded by the second color signal based on the weighting factor, and the weighting factor setting means The weighting factor selection unit that selects the weighting factor of the interpolation point closest to the fourth color signal surrounded by the second color signal from the weighting factor set by the selection by the weighting factor selection unit Applying the weighted factor to the third color signal More, and an interpolation calculating means for calculating a transformation result to the second color space of the fourth color signals.

このことにより、第1の色空間上で第2の色信号が不規則に分布している場合においても、第1の色空間の補間に使用する重み係数を設定することが可能となるとともに、第1の色空間上で補間点を求める場合に使用した重み係数を用いて、第2の色空間上の色信号の値を求めることが可能となり、第1の色空間で新たに与えられた色信号についての第2の色空間上での値を求めることが可能となる。   As a result, even when the second color signal is irregularly distributed in the first color space, it is possible to set the weighting coefficient used for the interpolation of the first color space. It is possible to obtain the value of the color signal in the second color space using the weighting coefficient used when obtaining the interpolation point in the first color space, and it is newly given in the first color space. It is possible to obtain a value on the second color space for the color signal.

また、本発明の一態様によれば、第1の色信号を基準として分割された第1の色空間から第2の色信号を選択するようにしている。
このことにより、第1の色空間上で第2の色信号が不規則に分布している場合においても、第1の色信号を包囲する第2の色信号の選択に失敗することがなくなることから、第1の色信号を包囲する第2の色信号を高速に選択することが可能となり、補間点の生成を高速に行うことが可能となる。
In addition, according to one aspect of the present invention, the second color signal is selected from the first color space divided on the basis of the first color signal.
Thus, even when the second color signal is irregularly distributed in the first color space, the selection of the second color signal surrounding the first color signal does not fail. Therefore, the second color signal surrounding the first color signal can be selected at high speed, and the interpolation point can be generated at high speed.

また、本発明の一態様によれば、所定の間隔で立方体を分割した時の体積を、補間点を生成する際の重み係数として設定するようにしている。
このことにより、第1の色空間上で第2の色信号が不規則に分布している場合においても、8点補間により補間点を生成することが可能となり、ノイズの影響を受けにくい補間方法を提供することが可能となる。
Further, according to one aspect of the present invention, the volume when a cube is divided at a predetermined interval is set as a weighting factor when generating an interpolation point.
As a result, even when the second color signal is irregularly distributed in the first color space, an interpolation point can be generated by 8-point interpolation, and the interpolation method is less susceptible to noise. Can be provided.

また、本発明の一態様によれば、第2の色信号の間の距離または第3の色信号の間の距離に基づいて、立方体を分割する時の間隔を変更するようにしている。
このことにより、第1の色空間上の補間点の間隔または第2の色空間上の補間点の間隔を制御することが可能となり、第2の色信号または第3の色信号で囲まれる範囲が歪んだ形になっている場合においても、第1の色空間または第2の色空間に均一に補間点を生成することが可能となることから、人間の視覚特性により適応した形で、色信号の補間を行うことが可能となる。
According to one aspect of the present invention, the interval at which the cube is divided is changed based on the distance between the second color signals or the distance between the third color signals.
This makes it possible to control the interval between the interpolation points on the first color space or the interval between the interpolation points on the second color space, and a range surrounded by the second color signal or the third color signal. Even in the case where the image is distorted, it is possible to generate the interpolation points uniformly in the first color space or the second color space. It is possible to perform signal interpolation.

また、本発明の一態様によれば、複数の第4の色信号が同一の第2の色信号で包囲される場合、第4の色信号についての各重み係数を一括して選択するようにしている。
このことにより、複数の第4の色信号に対して同一の第2の色信号の選択を繰り返す必要がなくなり、同一範囲内の第4の色信号の変換結果を効率よく算出することが可能となる。
In addition, according to one aspect of the present invention, when a plurality of fourth color signals are surrounded by the same second color signal, the weighting factors for the fourth color signal are selected collectively. ing.
This eliminates the need to repeat the selection of the same second color signal for a plurality of fourth color signals, and allows the conversion result of the fourth color signal within the same range to be calculated efficiently. Become.

また、本発明の一態様によれば、第1の色空間は機器に依存する機器依存色空間であり、第2の色空間は機器に依存しない独立色空間である。
このことにより、色再現性の異なる機器の間で色信号の送受信を行う場合においても、各機器の間での色再現性を一致させることが可能となる。
Further, according to one aspect of the present invention, the first color space is a device-dependent color space that depends on a device, and the second color space is an independent color space that does not depend on the device.
Thus, even when color signals are transmitted and received between devices having different color reproducibility, the color reproducibility between the devices can be matched.

また、本発明の一態様によれば、第1の色空間は、CMY空間、CMYK空間またはRGB空間であり、第2の色空間は、L* a* b* 空間またはXYZ空間である。
このことにより、機器に依存する機器依存色空間の色信号を、機器に依存しない独立色空間の色信号に変換することが可能となる。
Further, according to one aspect of the present invention, the first color space is a CMY space, a CMYK space, or an RGB space, and the second color space is an L * a * b * space or an XYZ space.
As a result, the color signal in the device-dependent color space depending on the device can be converted into the color signal in the independent color space independent of the device.

また、本発明の一態様によれば、色空間に分布する第1の色信号で包囲される範囲内に第1の補間点を生成する第1の補間点生成手段と、前記色空間に分布する第2の色信号で包囲される範囲内に第2の補間点を生成する第2の補間点生成手段と、前記第1の補間点または前記第2の補間点のうち、前記色空間の第3の色信号に近い方を選択する補間点選択手段と、前記補間点選択手段により前記第1の補間点が選択された場合、前記第1の色信号を使用して前記第3の色信号の補間を行い、前記補間点選択手段により前記第2の補間点が選択された場合、前記第2の色信号を使用して前記第3の色信号の補間を行う補間手段とを備えている。   Further, according to one aspect of the present invention, the first interpolation point generation means for generating the first interpolation point within the range surrounded by the first color signal distributed in the color space, and the distribution in the color space. A second interpolation point generating means for generating a second interpolation point within a range surrounded by the second color signal, and the first interpolation point or the second interpolation point of the color space. Interpolation point selection means for selecting the one closer to the third color signal, and when the first interpolation point is selected by the interpolation point selection means, the third color signal is used using the first color signal. Interpolating means for performing interpolation of the third color signal using the second color signal when the second interpolation point is selected by the interpolation point selecting means. Yes.

このことにより、第3の色信号と異なる点を基準として第3の色信号の補間に使用する色信号を選択した結果、第3の色信号の補間に使用する色信号の候補が複数通り得られた場合においても、これらの複数通りの色信号の候補の中から、第3の色信号の補間に使用する最適な色信号を選択することが可能となる。   As a result, as a result of selecting a color signal to be used for interpolation of the third color signal on the basis of a difference from the third color signal, a plurality of color signal candidates to be used for interpolation of the third color signal are obtained. Even in such a case, it is possible to select an optimum color signal to be used for interpolation of the third color signal from among the plurality of color signal candidates.

また、本発明の一態様によれば、第1の色空間に属する第1の色信号を入力する色信号入力手段と、前記第1の色信号を包囲する第2の色信号を選択する色信号選択手段と、前記第2の色信号の第2の色空間への変換結果に基づいて、前記第2の色信号で包囲される第3の色信号の変換結果を算出する色信号算出手段と、前記第2の色信号で囲まれる範囲の外側の第4の色信号の変換結果を外挿により算出する外挿手段とを備えている。   According to one aspect of the present invention, the color signal input means for inputting the first color signal belonging to the first color space and the color for selecting the second color signal surrounding the first color signal. And a color signal calculating unit that calculates a conversion result of the third color signal surrounded by the second color signal based on the conversion result of the second color signal into the second color space. And extrapolation means for calculating the conversion result of the fourth color signal outside the range surrounded by the second color signal by extrapolation.

このことにより、第1の色空間に第2の色信号が不規則に分布している場合においても、第2の色信号で囲まれる範囲の外側に、新たな色信号を生成することが可能となる。
また、本発明の一態様によれば、第1の色信号を基準として分割された第1の色空間から、第2の色信号を選択する。
As a result, even when the second color signal is irregularly distributed in the first color space, a new color signal can be generated outside the range surrounded by the second color signal. It becomes.
According to one aspect of the present invention, the second color signal is selected from the first color space divided on the basis of the first color signal.

このことにより、第1の色空間上で第2の色信号が不規則に分布している場合においても、第1の色信号を包囲する第2の色信号の選択に失敗することがなくなることから、第1の色信号を包囲する第2の色信号を高速に選択することが可能となり、補間点の生成を高速に行うことが可能となるとともに、外挿点の生成も高速化することが可能となり、第1の色空間に分布している色信号で囲まれる範囲の外側に、新たな色信号を効率よく生成することが可能となる。   Thus, even when the second color signal is irregularly distributed in the first color space, the selection of the second color signal surrounding the first color signal does not fail. Therefore, the second color signal surrounding the first color signal can be selected at high speed, the interpolation point can be generated at high speed, and the generation of the extrapolation point can be accelerated. Therefore, it is possible to efficiently generate a new color signal outside the range surrounded by the color signals distributed in the first color space.

また、本発明の一態様によれば、2次元空間上の第1の点を包囲する3つの点を選択する包囲点選択方法において、前記第1の点の近傍の第2の点を選択するステップと、前記第2の点が座標軸上に来るように、前記第1の点の周りに前記座標軸を回転させるステップと、前記座標軸で対向する領域から1点づつ選択するステップとを備えている。   According to an aspect of the present invention, in the encircling point selection method for selecting three points enclosing the first point in the two-dimensional space, the second point in the vicinity of the first point is selected. A step, rotating the coordinate axis around the first point so that the second point is on the coordinate axis, and selecting one point at a time from areas facing the coordinate axis. .

このことにより、2次元空間上の第1の点を包囲する3つの点を確実に選択することが可能となり、2次元空間上の第1の点を最小の個数の点で包囲することが可能となる。
また、本発明の一態様によれば、3次元空間上の第1の点を包囲する4つの点を選択する包囲点選択方法において、前記第1の点の近傍の第2の点を選択するステップと、前記第2の点が第1の座標軸上の負の領域に来るように、前記第1の座標軸を回転させるステップと、回転後の第1の座標軸上の正の領域から第3の点を選択するステップと、前記第3の点が、前記第1の座標軸及び第2の座標軸からなる平面上で、かつ前記第2の座標軸の負の領域に来るように、前記第2の座標軸を回転させるステップと、第1の座標軸及び第2の座標軸が負の領域で、かつ第3の座標軸が0以上の領域から第4の点を選択するステップと、第1の座標軸及び第2の座標軸が負の領域で、かつ第3の座標軸が負の領域から第5の点を選択するステップとを備えている。
This makes it possible to reliably select the three points surrounding the first point in the two-dimensional space, and to surround the first point in the two-dimensional space with the minimum number of points. It becomes.
According to another aspect of the present invention, in a surrounding point selection method for selecting four points surrounding a first point in a three-dimensional space, a second point in the vicinity of the first point is selected. A step of rotating the first coordinate axis so that the second point is in a negative region on the first coordinate axis; a third region from the positive region on the first coordinate axis after the rotation; Selecting a point; and the second coordinate axis so that the third point is on a plane composed of the first coordinate axis and the second coordinate axis and is in a negative region of the second coordinate axis. Selecting a fourth point from an area in which the first coordinate axis and the second coordinate axis are negative and the third coordinate axis is 0 or more, and the first coordinate axis and the second coordinate axis Selecting a fifth point from a region where the coordinate axis is negative and the third coordinate axis is negative It is equipped with a.

このことにより、3次元空間上の第1の点を包囲する4つの点を確実に選択することが可能となり、3次元空間上の第1の点を最小の個数の点で包囲することが可能となる。
また、本発明の一態様によれば、第1の色空間で不規則に分布している第1の色信号と第2の色空間に分布している第2の色信号との第1の対応関係を求めるステップと、前記第1の色空間に基準点を設定するステップと、前記第1の色空間を前記基準点で分割するステップと、分割された色空間から第1の色信号を選択するステップと、選択された第1の色信号に基づいて補間を行うことにより、前記第1の色信号で囲まれる範囲内において、前記第1の色空間の格子点に分布している第3の色信号と前記第2の色空間上に分布している第4の色信号との第2の対応関係を求めるステップと、前記第2の対応関係を外挿することにより、前記第1の色信号で囲まれる範囲外において、前記第1の色空間の格子点に分布している第5の色信号と前記第2の色空間上に分布している第6の色信号との第3の対応関係を求めるステップと、前記第2の対応関係及び前記第3の対応関係を色変換テーブルに登録するステップとを備えている。
This makes it possible to reliably select four points that surround the first point in the three-dimensional space, and to surround the first point in the three-dimensional space with a minimum number of points. It becomes.
Further, according to one aspect of the present invention, the first of the first color signal that is irregularly distributed in the first color space and the second color signal that is distributed in the second color space. Determining a correspondence relationship; setting a reference point in the first color space; dividing the first color space at the reference point; and outputting a first color signal from the divided color space. By selecting and interpolating based on the selected first color signal, the first distributed in the grid points of the first color space within the range surrounded by the first color signal. Determining the second correspondence relationship between the third color signal and the fourth color signal distributed in the second color space, and extrapolating the second correspondence relationship, The fifth color signal distributed at the grid points of the first color space outside the range surrounded by the color signals of Obtaining a third correspondence relationship with the sixth color signal distributed in the second color space, and registering the second correspondence relationship and the third correspondence relationship in a color conversion table. And.

このことにより、第1の色信号が第1の色空間で不規則に分布している場合においても、補間演算に使用する第1の色信号の選択に失敗することなく、第1の色信号で囲まれる範囲内に補間点を生成することが可能となるとともに、第1の色信号で囲まれる範囲外に外挿点を生成して、第1の色空間の格子点に対応する第2の色空間の色信号を求めることが可能となり、不規則テーブルを規則テーブルに効率的に変換することが可能となる。   Thus, even when the first color signal is irregularly distributed in the first color space, the first color signal is not failed in selecting the first color signal used for the interpolation calculation. It is possible to generate interpolation points within the range surrounded by, and to generate extrapolation points outside the range surrounded by the first color signal, so as to correspond to the grid points of the first color space. Thus, it is possible to obtain a color signal of the color space, and to efficiently convert the irregular table into the rule table.

また、本発明の一態様によれば、前記基準点は、前記第1の色信号である。
このことにより、第1の色空間で不規則に分布している第1の色信号を基準として、第2の色信号を選択することすることが可能となり、第2の色信号で包囲される第1の色空間の範囲を、第1の色空間上に分布している色信号の範囲全体に隙間なく設定することが可能となることから、登録されている色信号の範囲に欠落のない色変換テーブルを生成することが可能となる。
According to another aspect of the invention, the reference point is the first color signal.
This makes it possible to select the second color signal based on the first color signal that is irregularly distributed in the first color space, and is surrounded by the second color signal. Since it is possible to set the range of the first color space to the entire range of the color signal distributed in the first color space without any gap, there is no omission in the range of the registered color signal. A color conversion table can be generated.

また、本発明の一態様によれば、前記基準点は、前記第3の色信号である。
このことにより、第1の色空間の格子点を基準として、第2の色信号を選択することすることが可能となり、第1の色空間上に補間点を規則的に生成することが可能となることから、登録されている色信号に片寄りのない色変換テーブルを生成することが可能となる。
According to another aspect of the invention, the reference point is the third color signal.
As a result, the second color signal can be selected on the basis of the lattice point of the first color space, and the interpolation points can be regularly generated on the first color space. As a result, it is possible to generate a color conversion table that does not deviate from registered color signals.

また、本発明の一態様によれば、前記基準点は、前記第3の色信号の中の一部である。
このことにより、色変換テーブルに登録する格子点の密度が第1の色信号の密度より大きいため、異なる格子点が同一の第1の色信号で包囲される場合においても、第1の色信号の選択の基準となる基準点の数を減らすことにより、第1の色信号で包囲される範囲の重複を減らすことが可能となることから、同一の範囲について同一の処理が何度も繰り返されることを防止することが可能となり、不規則テーブルを規則テーブルに効率よく変換することが可能となる。
According to another aspect of the invention, the reference point is a part of the third color signal.
Thus, since the density of the grid points registered in the color conversion table is larger than the density of the first color signal, the first color signal can be obtained even when different grid points are surrounded by the same first color signal. By reducing the number of reference points that serve as the reference for selection, it is possible to reduce the overlap of the range surrounded by the first color signal, so that the same processing is repeated many times for the same range. It becomes possible to prevent this, and it becomes possible to efficiently convert an irregular table into a rule table.

また、本発明の一態様によれば、前記第2の対応関係を求めるステップは、所定の間隔で立方体を分割した時の体積を、選択された第1の色信号についての重み係数として設定するステップと、前記重み係数に基づいて、前記第1の色信号で包囲される範囲内に補間点を生成するステップと、設定された重み係数の中から、前記第1の色信号で包囲される前記第3の色信号に最も近い補間点の重み係数を選択するステップと、選択された重み係数を前記第2の色信号に適用することにより、前記第4の色信号を算出するステップとを備えている。   According to one aspect of the present invention, in the step of obtaining the second correspondence relationship, a volume when the cube is divided at a predetermined interval is set as a weighting factor for the selected first color signal. A step of generating an interpolation point within a range surrounded by the first color signal based on the weighting factor, and a range surrounded by the first color signal among the set weighting factors Selecting a weighting factor of an interpolation point closest to the third color signal, and calculating the fourth color signal by applying the selected weighting factor to the second color signal. I have.

このことにより、第1の色空間上で第1の色信号が不規則に分布している場合においても、第1の色空間で8点補間を行うことが可能となるとともに、第1の色空間上で補間点を求める場合に使用した重み係数を用いて、第2の色空間上の色信号の値を求めることが可能となり、不規則テーブルを規則テーブルに精度よく変換することが可能となる。   Thus, even when the first color signal is irregularly distributed in the first color space, 8-point interpolation can be performed in the first color space, and the first color It is possible to obtain the value of the color signal in the second color space using the weighting coefficient used when obtaining the interpolation point in the space, and to convert the irregular table into the rule table with high accuracy. Become.

また、本発明の一態様によれば、前記第3の対応関係を求めるステップは、前記第1の色空間上で、前記第1の色信号で包囲される範囲の境界の外側に隣接する第1の格子点を選択するステップと、前記第1の色空間上で、前記第1の格子点の内側に隣接する第2の格子点を選択するステップと、前記第1の色空間上で、前記第2の格子点から1つだけ内側の第3の格子点を選択するステップと、前記第2の対応関係に基づいて、前記第2の格子点に対応する前記第2の色空間上の第1の点を求めるステップと、前記第2の対応関係に基づいて、前記第3の格子点に対応する前記第2の色空間上の第2の点とを求めるステップと、前記第2の色空間上で、前記第1の点を中心に前記第2の点と点対称な第3の点の色信号を求めるステップと、前記第1の格子点の色信号に対応させて、前記第3の点の色信号を色変換テーブルに登録するステップとを備えている。   Further, according to one aspect of the present invention, the step of obtaining the third correspondence relationship includes a second step adjacent to the outside of the boundary of the range surrounded by the first color signal on the first color space. Selecting one grid point, selecting a second grid point adjacent to the inside of the first grid point on the first color space, and on the first color space, Selecting a third grid point that is only one inside from the second grid point, and on the second color space corresponding to the second grid point based on the second correspondence relationship Obtaining a first point; obtaining a second point on the second color space corresponding to the third grid point based on the second correspondence; and the second point Obtaining a color signal of a third point that is symmetric with respect to the second point around the first point on a color space; Serial to correspond to the color signals of the first grid point, and a step of registering the color signal of the third point in the color conversion table.

このことにより、外挿により作成される点を、外挿で使用する2つの点を結んだ直線上に生成することが可能となり、外挿で生成する第6の色信号の近傍の第4の色信号を用いて簡易な演算により、第6の色信号を算出することが可能となることから、第1の色信号で囲まれる範囲外の色信号を高速かつ精度よく算出することが可能となる。   This makes it possible to generate a point created by extrapolation on a straight line connecting two points used in extrapolation, and the fourth color signal in the vicinity of the sixth color signal generated by extrapolation. Since the sixth color signal can be calculated by a simple calculation using the color signal, it is possible to calculate the color signal outside the range surrounded by the first color signal with high speed and accuracy. Become.

以上説明したように、本発明によれば、第1の色信号を基準として分割された色空間から第2の色信号を選択することにより、色空間上で第2の色信号が不規則に分布している場合においても、第2の色信号の選択のやり直すことなく、第2の色信号で第1の色信号を包囲することが可能となることから、第1の色信号を包囲する第2の色信号を高速に選択することが可能となる。   As described above, according to the present invention, by selecting the second color signal from the color space divided on the basis of the first color signal, the second color signal becomes irregular in the color space. Even in the case of distribution, it is possible to surround the first color signal with the second color signal without reselecting the second color signal, so that the first color signal is surrounded. It becomes possible to select the second color signal at high speed.

また、本発明の一態様によれば、色空間の座標軸を回転させながら、第2の色信号の選択を行うことにより、第1の色信号を包囲する第2の色信号を選択する際に、第2の色信号の個数をできるだけ少なくすることが可能となり、補間演算を簡潔に行うことが可能となる。   According to one aspect of the present invention, when the second color signal surrounding the first color signal is selected by selecting the second color signal while rotating the coordinate axis of the color space. The number of the second color signals can be reduced as much as possible, and the interpolation calculation can be performed simply.

また、本発明の一態様によれば、第1の色信号の各成分の値と第2の色信号の各成分の値との比較結果に基づいて色空間を分割することにより、第1の色信号を包囲する第2の色信号を簡単な演算で選択することが可能となる。   According to one aspect of the present invention, the color space is divided based on the comparison result between the value of each component of the first color signal and the value of each component of the second color signal. The second color signal surrounding the color signal can be selected by a simple calculation.

また、本発明の一態様によれば、第1の色信号との距離が最も短い第2の色信号を選択することにより、補間演算を高精度に行うことが可能となる。
また、本発明の一態様によれば、第1の色信号との距離が所定の値以上の第2の色信号を選択することにより、限定された狭い範囲内の色信号だけが選択されることを防止することが可能となり、色空間上の色再現範囲内において生成可能な色信号の欠落をなくすことが可能となる。
Further, according to one embodiment of the present invention, it is possible to perform the interpolation calculation with high accuracy by selecting the second color signal having the shortest distance from the first color signal.
In addition, according to one aspect of the present invention, by selecting the second color signal whose distance from the first color signal is equal to or greater than a predetermined value, only the color signal within a limited narrow range is selected. It is possible to prevent this, and it is possible to eliminate missing color signals that can be generated within the color reproduction range in the color space.

また、本発明の一態様によれば、分割された色空間からの色信号の選択結果に基づいて色信号の補間を行うことにより、色空間上で色信号が不規則に分布している場合においても、補間に必要な色信号を迅速に選択することが可能となることから、色変換を高速に行うことが可能となる。   According to one aspect of the present invention, when color signals are irregularly distributed in the color space by performing color signal interpolation based on the selection result of the color signals from the divided color space. In this case, color signals necessary for interpolation can be quickly selected, and color conversion can be performed at high speed.

また、本発明の一態様によれば、色空間上の格子点の値を基準として色空間を分割することにより、色空間上に補間点を規則的に生成することが可能となり、色空間上の色信号の分布を均一にすることが可能となる。   Further, according to one aspect of the present invention, it is possible to regularly generate interpolation points on a color space by dividing the color space on the basis of the values of the grid points on the color space. It is possible to make the color signal distribution uniform.

また、本発明の一態様によれば、補間対象となる色信号と異なる点を分割の基準点とすることにより、補間対象となる複数の色信号に対して同一の基準点を設定することが可能となり、同一範囲内の色信号が補間対象として入力される度に補間に使用する色信号の選択をやり直すことを省略することが可能となり、処理の高速化を図ることが可能となる。   According to one aspect of the present invention, the same reference point can be set for a plurality of color signals to be interpolated by setting a point different from the color signal to be interpolated as a division reference point. This makes it possible to omit the selection of the color signal used for interpolation every time a color signal within the same range is input as an interpolation target, thereby increasing the processing speed.

また、本発明の一態様によれば、色空間上の格子点の値を基準として色空間を分割することにより、色空間上に基準点を規則的に生成することが可能となり、補間に使用する色信号の選択を規則正しく行うことが可能となる。   Further, according to one aspect of the present invention, it is possible to regularly generate reference points on the color space by dividing the color space on the basis of the values of the grid points on the color space, which are used for interpolation. The color signal to be selected can be regularly selected.

また、本発明の一態様によれば、色信号の粗密に基づいて格子点の格子間隔を変更することにより、その格子点を基準に選択された色信号で包囲される範囲の重複を減らすことが可能となり、同一の補間点が繰り返し生成されることを防止することが可能となる。   Further, according to one aspect of the present invention, by changing the lattice spacing of the lattice points based on the density of the color signal, it is possible to reduce overlap of the range surrounded by the color signal selected based on the lattice point. It is possible to prevent the same interpolation point from being repeatedly generated.

また、本発明の一態様によれば、色空間上に分布している色信号を基準として色空間を分割することにより、選択された色信号で包囲される範囲を色空間上に隙間なく設定することが可能となり、色空間上の色再現範囲内において生成可能な色信号の欠落をなくすことが可能となる。   According to one aspect of the present invention, the color space is divided on the basis of the color signal distributed in the color space, so that the range surrounded by the selected color signal is set on the color space without a gap. This makes it possible to eliminate missing color signals that can be generated within the color reproduction range in the color space.

また、本発明の一態様によれば、設定された重み係数を用いて生成した補間点の中から、変換対象となる点に最も近い補間点を選択し、選択した補間点を求める場合に使用した重み係数を用いて色変換を行うことにより、色空間上で色信号が不規則に分布している場合においても、4面体補間などのようにn次元補間に使用される点をn+1個に限る必要がなくなり、8点補間などのようにノイズの影響を受けにくい補間方法を用いて補間点を生成することが可能となる。   Further, according to one aspect of the present invention, the interpolation point closest to the point to be converted is selected from the interpolation points generated using the set weighting coefficient, and used when obtaining the selected interpolation point. By performing color conversion using the weighting factors, even when color signals are irregularly distributed in the color space, the number of points used for n-dimensional interpolation such as tetrahedral interpolation is reduced to n + 1. It is not necessary to limit, and interpolation points can be generated using an interpolation method that is not easily affected by noise, such as 8-point interpolation.

また、本発明の一態様によれば、基準点で分割された色空間から色信号を選択することにより、基準点を包囲する色信号の選択に失敗することがなくなることから、選択された色信号の範囲内に補間点を効率よく生成することが可能となる。   In addition, according to one aspect of the present invention, selecting a color signal from the color space divided by the reference point prevents the selection of the color signal surrounding the reference point from failing, so that the selected color Interpolation points can be efficiently generated within the signal range.

また、本発明の一態様によれば、所定の間隔で立方体を分割した時の体積を補間時の重み係数として設定することにより、色信号が不規則に分布している場合においても、8点補間により補間点を生成することが可能となり、ノイズの影響を受けにくい補間方法を提供することが可能となる。   Further, according to one aspect of the present invention, by setting a volume when a cube is divided at a predetermined interval as a weighting factor at the time of interpolation, even when color signals are irregularly distributed, Interpolation points can be generated by interpolation, and an interpolation method that is less susceptible to noise can be provided.

また、本発明の一態様によれば、選択された色信号の間の距離に基づいて、立方体を分割する時の間隔を変更することにより、選択された色信号で囲まれる範囲が歪んだ形になっている場合においても、補間点を均一に生成することが可能となることから、人間の視覚特性により適応した形態で、色信号の補間を行うことが可能となる。   Further, according to one aspect of the present invention, the range surrounded by the selected color signal is distorted by changing the interval at which the cube is divided based on the distance between the selected color signals. Even in such a case, since the interpolation points can be generated uniformly, the color signal can be interpolated in a form adapted to human visual characteristics.

また、本発明の一態様によれば、変換対象となる複数の点が同一の色信号で包囲される場合、変換対象となる複数の点についての各重み係数を一括して選択することにより、変換対象となる点を包囲する色信号の選択を繰り返す必要がなくなり、色変換を効率よく行うことが可能となる。   Further, according to one aspect of the present invention, when a plurality of points to be converted are surrounded by the same color signal, by selecting collectively each weighting factor for the plurality of points to be converted, There is no need to repeatedly select a color signal surrounding a point to be converted, and color conversion can be performed efficiently.

また、本発明の一態様によれば、機器依存色空間の色信号を独立色空間の色信号に変換することにより、色再現性の異なる機器の間で色信号の送受信を行う場合においても、各機器の間での色再現性を致させることが可能となる。   Further, according to one aspect of the present invention, even when color signals are transmitted and received between devices having different color reproducibility by converting the color signals of the device-dependent color space into color signals of an independent color space, It becomes possible to match color reproducibility between devices.

また、本発明の一態様によれば、CMY空間またはCMYK空間またはRGB空間の色信号をL* a* b* 空間またはXYZ空間の色信号に変換することにより、機器依存色空間の色信号を独立色空間の色信号に変換することが可能となる。   Further, according to one aspect of the present invention, the color signal in the device-dependent color space is converted by converting the color signal in the CMY space, the CMYK space, or the RGB space into the color signal in the L * a * b * space or the XYZ space. It is possible to convert the color signal into an independent color space.

また、本発明の一態様によれば、色空間に分布している色信号で囲まれる範囲内の色信号を外挿することにより、色信号が色空間に不規則に分布している場合においても、色空間に分布している色信号で囲まれる範囲外に新たな色信号を生成することが可能となる。   Further, according to one aspect of the present invention, in the case where the color signal is irregularly distributed in the color space by extrapolating the color signal within the range surrounded by the color signal distributed in the color space. In addition, it is possible to generate a new color signal outside the range surrounded by the color signals distributed in the color space.

また、本発明の一態様によれば、分割された色空間から色信号を選択することにより、色信号が不規則に分布している場合においても、補間点の生成を高速に行うことが可能となることから、外挿点を補間点から高速に生成することが可能となり、色空間に分布している色信号で囲まれる範囲外に新たな色信号を効率よく生成することが可能となる。   Further, according to one aspect of the present invention, it is possible to generate interpolation points at high speed even when the color signals are irregularly distributed by selecting the color signals from the divided color space. Therefore, extrapolation points can be generated from interpolation points at high speed, and new color signals can be efficiently generated outside the range surrounded by color signals distributed in the color space. .

また、本発明の一態様によれば、色信号が不規則に分布している色空間を分割し、分割した色空間から色信号を選択することにより、補間演算に使用する色信号の選択に失敗することなく、不規則テーブルを規則テーブルに変換することが可能となる。   Further, according to one aspect of the present invention, a color space in which color signals are irregularly distributed is divided, and a color signal is selected from the divided color space, thereby selecting a color signal to be used for the interpolation calculation. It is possible to convert an irregular table into a rule table without failure.

また、本発明の一態様によれば、色変換テーブルに登録されている色信号を基準に色空間を分割することにより、分割された色空間から選択された色信号で包囲される範囲を隙間なく設定することが可能となり、色変換テーブルに登録される色信号の範囲に欠落が発生しないようにすることが可能となる。 また、本発明の一態様によれば、格子点を基準に色空間を分割して色信号の選択を行うことにより、補間演算に使用する色信号の選択に失敗することなく、補間点を等間隔で生成することが可能となり、不規則テーブルを規則テーブルに効率よく変換することが可能となる。   Further, according to one aspect of the present invention, the color space is divided on the basis of the color signals registered in the color conversion table, so that the range surrounded by the color signals selected from the divided color spaces is gapd. Therefore, it is possible to prevent the loss of the color signal range registered in the color conversion table. In addition, according to one aspect of the present invention, by selecting a color signal by dividing a color space on the basis of a grid point, the interpolation point can be selected without failing to select a color signal used for the interpolation calculation. It is possible to generate the data at intervals, and it is possible to efficiently convert the irregular table into a rule table.

また、本発明の一態様によれば、色変換テーブルに登録する格子点を間引いたものを、色空間を分割する基準点とすることにより、同一の色信号で包囲される範囲の重複を減らすことが可能となることから、不規則テーブルを規則テーブルに効率よく変換することが可能となる。   In addition, according to one aspect of the present invention, the overlap of the range surrounded by the same color signal is reduced by using a reference point that divides the color space by thinning out the grid points registered in the color conversion table. Therefore, it becomes possible to efficiently convert the irregular table into the rule table.

また、本発明の一態様によれば、前記第2の対応関係を求めるステップは、所定の間隔で立方体を分割した時の体積を、選択された第1の色信号についての重み係数として設定するステップと、前記重み係数に基づいて、前記第1の色信号で包囲される範囲内に補間点を生成するステップと、設定された重み係数の中から、前記第1の色信号で包囲される前記第3の色信号に最も近い補間点の重み係数を選択するステップと、選択された重み係数を前記第2の色信号に適用することにより、前記第4の色信号を算出するステップとを備えている。   According to one aspect of the present invention, in the step of obtaining the second correspondence relationship, a volume when the cube is divided at a predetermined interval is set as a weighting factor for the selected first color signal. A step of generating an interpolation point within a range surrounded by the first color signal based on the weighting factor, and a range surrounded by the first color signal among the set weighting factors Selecting a weighting factor of an interpolation point closest to the third color signal, and calculating the fourth color signal by applying the selected weighting factor to the second color signal. I have.

このことにより、所定の間隔で立方体を分割した時の体積を重み係数として生成した補間点の中から、色変換テーブルへの登録対象となる点に最も近い補間点を選択し、選択した補間点を求める場合に使用した重み係数を用いて色変換を行うことにより、不規則テーブルに登録されている色信号に対して8点補間で色変換を行うことが可能となり、不規則テーブルを規則テーブルに精度よく変換することが可能となる。   As a result, the interpolation point closest to the point to be registered in the color conversion table is selected from the interpolation points generated using the volume when the cube is divided at a predetermined interval as the weighting coefficient, and the selected interpolation point is selected. By performing color conversion using the weighting factor used in determining the color, it is possible to perform color conversion by 8-point interpolation on the color signal registered in the irregular table. Can be accurately converted to

また、本発明の一態様によれば、外挿点の近傍の2つの点を用いた線形演算を行うことにより、色変換テーブルに登録されている色信号で囲まれる範囲外についても、色変換を高速かつ精度よく行うことが可能となる。   In addition, according to one aspect of the present invention, by performing linear calculation using two points in the vicinity of the extrapolation point, color conversion is also performed outside the range surrounded by the color signal registered in the color conversion table. Can be performed at high speed and with high accuracy.

以下、本発明の実施例について図面を参照しながら説明する。
図1は、本発明の一実施例に係わる色信号選択装置の構成を示すブロック図である。
図1において、色空間分割手段1は、入力された第1の色信号を基準として、その第1の色信号が属する色空間を分割する。色信号選択手段2は、色空間分割手段1により分割された色空間から、その色空間に分布している第2の色信号を選択する。
Embodiments of the present invention will be described below with reference to the drawings.
FIG. 1 is a block diagram showing the configuration of a color signal selection apparatus according to an embodiment of the present invention.
In FIG. 1, a color space dividing unit 1 divides a color space to which the first color signal belongs with reference to the input first color signal. The color signal selection unit 2 selects a second color signal distributed in the color space from the color space divided by the color space division unit 1.

このことにより、第1の色信号を第2の色信号で確実に包囲することが可能となり、色空間上で第2の色信号が不規則に分布している場合においても、第1の色信号を包囲しない色信号の選択が防止されることから、色信号の選択のやり直しをなくすことが可能となる。   This makes it possible to reliably surround the first color signal with the second color signal, and the first color signal can be obtained even when the second color signal is irregularly distributed in the color space. Since the selection of the color signal that does not surround the signal is prevented, it is possible to eliminate the re-selection of the color signal.

このように、色空間を領域分割し、この領域の幾つかから色信号を選択することにより、データの選択の繰り返しを防止でき、高速な色信号の選択が可能となる。
図2は、本発明の第1実施例に係わる色信号選択方法を2次元の色空間上で示す図である。この第1実施例に係わる色信号選択方法では、第1の色信号の各成分の値と第2の色信号の各成分の値との大小関係に基づいて、第2の色信号を選択するようにしている。
In this way, by dividing the color space into regions and selecting color signals from some of these regions, it is possible to prevent repeated data selection and to select color signals at high speed.
FIG. 2 is a diagram showing a color signal selection method according to the first embodiment of the present invention on a two-dimensional color space. In the color signal selection method according to the first embodiment, the second color signal is selected based on the magnitude relationship between the value of each component of the first color signal and the value of each component of the second color signal. I am doing so.

図2において、色変換テーブルに登録されている色信号が、色空間上の点P1〜P20に分布しているものとする。そして、色空間上の点Pの色信号が、補間対象として入力されたものとする。ここで、点Pの色信号は色変換テーブルに登録されていないので、色空間上に分布しているP1〜P20の中から、点Pを包囲する4つの点P7、P9、P14,P17を選択する。そして、選択された4つの点P7、P9、P14,P17の色信号を用いて重み演算を行うことにより、点Pの色信号の補間を行う。 点Pを包囲する4つの点P7、P9、P14,P17を選択するには、点Pを通り、互いに直交する直線L1、L2でP1〜P20が分布している色空間を分割する。この分割により、色空間上に4つの領域1〜4が生成される。そして、領域1から点Pに最も近い点P7を選択し、領域2から点Pに最も近い点P9を選択し、領域3から点Pに最も近い点P14を選択し、領域4から点Pに最も近い点P17を選択する。この結果、点Pは4つの点P7、P9、P14,P17により確実に包囲され、分割により得られた4つの領域1〜4から色信号を1つずつ選択するだけで、色空間上に不規則に分布しているP1〜P20の中から、点Pを包囲する4つの点P7、P9、P14,P17を取り出すことが可能となる。   In FIG. 2, it is assumed that color signals registered in the color conversion table are distributed at points P1 to P20 on the color space. It is assumed that the color signal of the point P on the color space is input as an interpolation target. Here, since the color signal of the point P is not registered in the color conversion table, four points P7, P9, P14, and P17 surrounding the point P are selected from P1 to P20 distributed in the color space. select. Then, the color signal of the point P is interpolated by performing a weight calculation using the color signals of the four selected points P7, P9, P14, and P17. In order to select the four points P7, P9, P14, and P17 surrounding the point P, the color space where P1 to P20 are distributed is divided by straight lines L1 and L2 that pass through the point P and are orthogonal to each other. By this division, four regions 1 to 4 are generated on the color space. Then, the point P7 closest to the point P is selected from the region 1, the point P9 closest to the point P is selected from the region 2, the point P14 closest to the point P is selected from the region 3, and the point P is changed from the region 4 to the point P. The closest point P17 is selected. As a result, the point P is surely surrounded by the four points P7, P9, P14, and P17, and only one color signal is selected from the four regions 1 to 4 obtained by the division, and the point P is not included in the color space. It becomes possible to take out four points P7, P9, P14, and P17 surrounding the point P from P1 to P20 distributed in the rule.

このように、点Pを通り、互いに直交する直線L1、L2で色空間を分割することにより、点Pの色信号の各成分の値とP1〜P20の色信号の各成分の値とを比較するだけで、点Pの色信号を包囲する4つの点P7、P9、P14,P17の色信号を確実に選択することが可能となり、補間に用いる色信号の選択を簡単な演算で高速に行うことが可能となる。   In this way, by dividing the color space by the straight lines L1 and L2 passing through the point P and orthogonal to each other, the value of each component of the color signal at the point P is compared with the value of each component of the color signals at P1 to P20. This makes it possible to reliably select the color signals of the four points P7, P9, P14, and P17 surrounding the color signal of the point P, and to select the color signals used for interpolation at high speed with simple calculation. It becomes possible.

また、分割された各領域1〜4から、点Pに距離が最も近い4つの点P7、P9、P14,P17を選択することにより、補間演算を行う際に点Pから離れた点の色信号が用いられることを防止でき、補間演算を高精度に行うことが可能となる。   In addition, by selecting the four points P7, P9, P14, and P17 that are closest to the point P from each of the divided areas 1 to 4, the color signal of the point away from the point P when performing the interpolation calculation Can be prevented, and interpolation calculation can be performed with high accuracy.

なお、図2の例では、2次元的に示したため、4つの領域に分割したが、3次元では、8領域に分割する。
図3は、本発明の第1実施例に係わる色信号選択方法を示すフローチャートである。
In the example of FIG. 2, since it is shown two-dimensionally, it is divided into four areas, but in three dimensions, it is divided into eight areas.
FIG. 3 is a flowchart showing a color signal selection method according to the first embodiment of the present invention.

図3において、色信号が分布している色空間を複数の領域に分割し(ステップS1)、分割された領域から色信号を選択する(ステップS2)。このことにより、不規則に分布している色信号の中から、補間対象となる色信号を包囲する色信号を容易に見つけ出すことが可能となる。   In FIG. 3, a color space in which color signals are distributed is divided into a plurality of regions (step S1), and color signals are selected from the divided regions (step S2). As a result, it is possible to easily find a color signal surrounding the color signal to be interpolated from irregularly distributed color signals.

図4は、本発明の第1実施例に係わる領域分割方法を示すフローチャートである。
図4において、まず、色空間を分割する時の基準となる色信号を入力する(ステップS11)。ここで、基準となる色信号は、補間の対象となる色信号でもよく、格子点の色信号でもよい。
FIG. 4 is a flowchart showing an area dividing method according to the first embodiment of the present invention.
In FIG. 4, first, a color signal which is a reference when dividing the color space is input (step S11). Here, the reference color signal may be a color signal to be interpolated or a grid point color signal.

次に、入力された色信号を基準として色空間に複数の領域を設定し(ステップS12)、設定された領域から色信号を選択する(ステップS13)。
図5は、本発明の第2実施例に係わる色信号選択方法を2次元の色空間上で示す図である。この第2実施例に係わる色信号選択方法では、回転変換を施した後に領域分割することにより、できるだけ少ないデータ数で基準点を包囲する色信号を確実に選択できるようにしている。
Next, a plurality of areas are set in the color space based on the input color signal (step S12), and a color signal is selected from the set area (step S13).
FIG. 5 is a diagram showing a color signal selection method according to the second embodiment of the present invention on a two-dimensional color space. In the color signal selection method according to the second embodiment, the color signal surrounding the reference point can be reliably selected with as few data as possible by dividing the region after performing the rotation conversion.

図5において、色変換テーブルに登録されている色信号が、色空間上の点P1〜P20に分布しているものとする。そして、色空間上の点Pの色信号が、補間対象として入力されたものとする。ここで、点Pの色信号は色変換テーブルに登録されていないので、色空間上に分布しているP1〜P20の中から、点Pを包囲する3つの点P4、P11、P14を選択する。そして、選択された3つの点P4、P11、P14の色信号を用いて重み演算を行うことにより、点Pの色信号の補間を行う。   In FIG. 5, it is assumed that color signals registered in the color conversion table are distributed at points P1 to P20 on the color space. It is assumed that the color signal of the point P on the color space is input as an interpolation target. Here, since the color signal of the point P is not registered in the color conversion table, three points P4, P11, and P14 surrounding the point P are selected from P1 to P20 distributed in the color space. . Then, the color signal of the point P is interpolated by performing a weight calculation using the color signals of the three selected points P4, P11, and P14.

点Pを包囲する3つのP4、P11、P14を選択するには、色空間上に分布しているP1〜P20の中から、点Pに最も近い点P4を選択する。そして、点P及び点P4を通る直線L1で色空間を分割するとともに、直線L1に直交する直線L2で色空間を分割する。この分割により、色空間上に4つの領域1〜4が生成される。そして、領域3から点Pに最も近い点P11を選択し、領域4から点Pに最も近い点P14を選択する。この結果、点Pは3つの点P4、P11、P14により確実に包囲され、色空間上に不規則に分布しているP1〜P20の中から、点Pを包囲する最小個数の3つの点P4、P11、P14を取り出すことが可能となる。   In order to select three P4, P11, and P14 surrounding the point P, the point P4 closest to the point P is selected from P1 to P20 distributed on the color space. Then, the color space is divided by a straight line L1 passing through the points P and P4, and the color space is divided by a straight line L2 orthogonal to the straight line L1. By this division, four regions 1 to 4 are generated on the color space. Then, the point P11 closest to the point P from the region 3 is selected, and the point P14 closest to the point P from the region 4 is selected. As a result, the point P is surely surrounded by the three points P4, P11, and P14, and the minimum number of three points P4 that surround the point P among P1 to P20 irregularly distributed in the color space. , P11 and P14 can be taken out.

このように、基準点に最も近い点を最初に選択し、この選択された点が座標軸上に来るように回転し、その後、対向する2領域から1点ずつ選択することにより、基準点を包囲する3点を確実に選択することができる。   In this way, the point closest to the reference point is first selected, rotated so that the selected point is on the coordinate axis, and then selected one by one from two opposing areas, thereby enclosing the reference point 3 points to be selected can be selected with certainty.

図6は、本発明の第2実施例に係わる色信号選択方法を示すフローチャートである。
図6において、まず、色空間を分割する時の基準となる色信号を入力する(ステップS21)。ここで、基準となる色信号は、補間の対象となる色信号でもよく、格子点の色信号でもよい。
FIG. 6 is a flowchart showing a color signal selection method according to the second embodiment of the present invention.
In FIG. 6, first, a color signal serving as a reference when the color space is divided is input (step S21). Here, the reference color signal may be a color signal to be interpolated or a grid point color signal.

次に、回転量を決める色信号を色空間上に分布している色信号から選択する(ステップS22)。ここで、回転量を決める色信号は、基準となる色信号に最も近い点とすることができる。   Next, a color signal that determines the amount of rotation is selected from the color signals distributed in the color space (step S22). Here, the color signal for determining the rotation amount can be the point closest to the reference color signal.

次に、回転量を決める色信号が座標軸上に来るように、色色空間上に分布している色信号に回転演算を行う(ステップS23)。
次に、回転後の色信号を基準として色空間に複数の領域を設定し(ステップS24)、設定された領域から色信号を選択する(ステップS25)。
Next, rotation calculation is performed on the color signals distributed in the color space so that the color signal that determines the rotation amount is on the coordinate axis (step S23).
Next, a plurality of areas are set in the color space with reference to the rotated color signal (step S24), and a color signal is selected from the set area (step S25).

図7は、本発明の第2実施例に係わる色信号選択方法を3次元の色空間上で示す図である。
図7において、3次元空間上の点Pを包囲する4つの点P1〜P4を選択するものとする。この場合、点Pに最も近い点P1をR軸上の負の位置に設定し、R軸上の値が正の領域から残りの3つの点P2〜P4を選択する。ここで、R軸上の値が正の領域で点Pに最も近い点を点P2とし、点P2をRG平面上でG軸上の値が負の領域に設定する。そして、G軸上の値が正の領域から点P3、P4を選択する。ここで、点P3はB軸上の値が0または正の領域となるように選択し、点P4はB軸上の値が負の領域となるように選択する。
FIG. 7 is a diagram showing a color signal selection method according to the second embodiment of the present invention on a three-dimensional color space.
In FIG. 7, four points P1 to P4 surrounding the point P in the three-dimensional space are selected. In this case, the point P1 closest to the point P is set to a negative position on the R axis, and the remaining three points P2 to P4 are selected from the region where the value on the R axis is positive. Here, the point closest to the point P in the positive region on the R axis is set as the point P2, and the point P2 is set in the negative region on the RG plane on the G axis. Then, points P3 and P4 are selected from a region where the value on the G axis is positive. Here, the point P3 is selected so that the value on the B axis is 0 or a positive region, and the point P4 is selected so that the value on the B axis is a negative region.

すなわち、点P1と点P2〜P4とでは、R軸上の値が反対符号となり、点P2と点P3、P4とでは、G軸上の値が反対符号となるとともに、点P1のG軸上の値が0となり、点P3とP4とでは、B軸上の値が反対符号となるとともに、点P1と点P2のB軸上の値が0となるようにする。   That is, the value on the R axis is opposite in the point P1 and the points P2 to P4, the value on the G axis is opposite in the point P2 and the points P3 and P4, and the point P1 on the G axis The values on the B axis are opposite signs at the points P3 and P4, and the values on the B axis of the points P1 and P2 are 0.

図8は、本発明の第2実施例に係わる色信号を3次元の色空間上で選択する方法を示す図である。なお、この例では、基準点Pを原点としたRGB座標系を示し、回転後の座標軸をR′,G′,B′で表している。   FIG. 8 is a diagram showing a method for selecting color signals in a three-dimensional color space according to the second embodiment of the present invention. In this example, an RGB coordinate system with the reference point P as the origin is shown, and the coordinate axes after rotation are represented by R ′, G ′, and B ′.

図8において、まず、基準点Pに最も近い色変換テーブルの点P1を選択する。
次に、点P1がR軸上で負の値になるようにR軸を回転する。なお、点P1が原点の場合は回転不要である。
In FIG. 8, first, the point P1 of the color conversion table closest to the reference point P is selected.
Next, the R axis is rotated so that the point P1 has a negative value on the R axis. Note that no rotation is required when the point P1 is the origin.

次に、回転後のR値が正の範囲で最も原点に近い色変換テーブルの点P2を選択する。
次に、点P2がRG平面上のGが負の領域に来るようにG軸を回転する。なお、点P2がR軸上にある場合は回転不要である。
Next, the point P2 of the color conversion table that is closest to the origin in the range where the R value after rotation is positive is selected.
Next, the G axis is rotated so that the point P2 is in the negative region of G on the RG plane. When the point P2 is on the R axis, rotation is not necessary.

次に、RGが正の領域でBが0以上の領域と、RGが正の領域でBが負の領域からそれぞれ一つずつ最も基準点Pに近い点P3、P4を選択する。
図9は、本発明の第3実施例に係わる色信号選択方法を2次元の色空間上で示す図である。この第3実施例に係わる色信号選択方法では、色変換テーブルに登録されている色信号を基準点として順次選択することにより、この基準点を中心として選択された色信号により包囲される範囲を、登録されている色信号の分布する範囲全体に隙間なく設定することを可能としている。
Next, points P3 and P4 that are closest to the reference point P are selected one by one from the region where RG is positive and B is 0 or more and the region where RG is positive and B is negative.
FIG. 9 is a diagram showing a color signal selection method according to the third embodiment of the present invention on a two-dimensional color space. In the color signal selection method according to the third embodiment, by sequentially selecting the color signals registered in the color conversion table as reference points, the range surrounded by the color signal selected around the reference point is set. Therefore, it is possible to set the entire range where the registered color signals are distributed without any gaps.

図9において、色変換テーブルに登録されている色信号が、色空間上の点P1〜P20に分布しているものとする。そして、色空間上に分布している点P1〜P20を選択する時の基準点を設定するものとする。この場合、色空間上に分布している点P1〜P20に着目し、色空間上に分布している点P1〜P20を順次に基準点として設定する。   In FIG. 9, it is assumed that the color signals registered in the color conversion table are distributed at points P1 to P20 on the color space. Then, it is assumed that a reference point for selecting the points P1 to P20 distributed in the color space is set. In this case, paying attention to the points P1 to P20 distributed on the color space, the points P1 to P20 distributed on the color space are sequentially set as reference points.

例えば、色空間上に分布している点P4を基準点に設定し、点P1を基準として色空間を分割することにより、点P4を包囲する4つの点P1、P2、P5、P6を選択する。
次に、選択されたP6を基準点に設定し、点P6を基準として色空間を分割することにより、点P6を包囲する4つの点P2、P4、P7、P11を選択する。
For example, the point P4 distributed in the color space is set as a reference point, and the color space is divided on the basis of the point P1, thereby selecting four points P1, P2, P5, and P6 surrounding the point P4. .
Next, the selected P6 is set as a reference point, and the color space is divided using the point P6 as a reference, thereby selecting four points P2, P4, P7, and P11 surrounding the point P6.

次に、選択されたP7を基準点に設定し、点P7を基準として色空間を分割することにより、点P7を包囲する4つの点P2、P3、P6、P9を選択する。
この基準点の設定処理を色空間上に分布している点P1〜P20について行うことにより、点P1〜P20から選択された点で包囲される範囲を、登録されている点の分布する範囲全体に隙間なく分布させることが可能となる。このため、不規則な分布の色信号を補間して規則的な分布(例えば、格子点上)の色信号を作成する際に、色空間上に生成される色信号の範囲に欠落が発生することを防止することが可能となり、色変換を精度の良く行うことが可能な規則テーブルを生成することが可能となる。
Next, the selected P7 is set as a reference point, and the color space is divided using the point P7 as a reference, thereby selecting four points P2, P3, P6, and P9 surrounding the point P7.
By performing this reference point setting process for the points P1 to P20 distributed in the color space, the range surrounded by the points selected from the points P1 to P20 is changed to the entire range where the registered points are distributed. Can be distributed without gaps. For this reason, when a color signal with an irregular distribution is interpolated to create a color signal with a regular distribution (for example, on a grid point), a lack occurs in the range of the color signal generated in the color space. Therefore, it is possible to generate a rule table capable of performing color conversion with high accuracy.

図10は、本発明の第3実施例に係わる色信号選択方法を示すフローチャートである。
図10において、まず、不規則テーブルに登録されている色信号を順次入力する(ステップS31)。ここで、色信号を入力する順番は任意に設定することができ、例えば、不規則テーブルに格納されている順番で入力することができる。
FIG. 10 is a flowchart showing a color signal selection method according to the third embodiment of the present invention.
In FIG. 10, first, the color signals registered in the irregular table are sequentially input (step S31). Here, the order in which the color signals are input can be arbitrarily set. For example, the color signals can be input in the order stored in the irregular table.

次に、入力された色信号を基準として色空間に複数の領域を設定し(ステップS32)、設定された領域から色信号を選択する(ステップS33)。
図11は、本発明の第4実施例に係わる色信号選択方法を2次元の色空間上で示す図である。この第4実施例に係わる色信号選択方法では、新たに生成する色変換テーブルに登録する色信号を基準点として、色信号の選択を行うようにしている。
Next, a plurality of areas are set in the color space with reference to the input color signal (step S32), and a color signal is selected from the set area (step S33).
FIG. 11 is a diagram showing a color signal selection method according to the fourth embodiment of the present invention on a two-dimensional color space. In the color signal selection method according to the fourth embodiment, a color signal is selected using a color signal registered in a newly generated color conversion table as a reference point.

図11において、色変換テーブルに登録されている色信号が、色空間上の点P1〜P20に分布しているものとする。ここで、色空間上の格子点に対応する色信号の値を補間により求めるものとする。この場合、色空間上の格子点に対応する色信号を基準点として色空間を分割し、補間に使用する色信号を選択する。   In FIG. 11, it is assumed that color signals registered in the color conversion table are distributed at points P1 to P20 on the color space. Here, the value of the color signal corresponding to the grid point on the color space is obtained by interpolation. In this case, the color space is divided using the color signal corresponding to the lattice point on the color space as a reference point, and the color signal used for interpolation is selected.

例えば、基準点として格子点K1の値が入力されると、格子点K1を基準点として色空間を分割し、分割された色空間からそれぞれ点P1、P2、P3、P4を選択する。この結果、格子点K1は点P1、P2、P3、P4で包囲され、点P1、P2、P3、P4の値を用いて補間を行うことにより、格子点K1の値を求めることが可能となる。   For example, when the value of the grid point K1 is input as the reference point, the color space is divided using the grid point K1 as the reference point, and points P1, P2, P3, and P4 are selected from the divided color space, respectively. As a result, the lattice point K1 is surrounded by the points P1, P2, P3, and P4, and the value of the lattice point K1 can be obtained by performing interpolation using the values of the points P1, P2, P3, and P4. .

また、基準点として格子点K2の値が入力されると、格子点K2を基準点として色空間を分割し、分割された色空間からそれぞれ点P2、P3、P4、P5を選択する。この結果、格子点K2は点P2、P3、P4、P5で包囲され、点P2、P3、P4、P5の値を用いて補間を行うことにより、格子点K2の値を求めることが可能となる。   When the value of the grid point K2 is input as the reference point, the color space is divided using the grid point K2 as the reference point, and points P2, P3, P4, and P5 are selected from the divided color space, respectively. As a result, the lattice point K2 is surrounded by the points P2, P3, P4, and P5, and the value of the lattice point K2 can be obtained by performing interpolation using the values of the points P2, P3, P4, and P5. .

また、基準点として格子点K3の値が入力されると、格子点K3を基準点として色空間を分割し、分割された色空間からそれぞれ点P2、P3、P4、P5を選択する。この結果、格子点K3は点P2、P3、P4、P5で包囲され、点P2、P3、P4、P5の値を用いて補間を行うことにより、格子点K3の値を求めることが可能となる。   When the value of the grid point K3 is input as the reference point, the color space is divided using the grid point K3 as the reference point, and points P2, P3, P4, and P5 are selected from the divided color space, respectively. As a result, the lattice point K3 is surrounded by the points P2, P3, P4, and P5, and the value of the lattice point K3 can be obtained by performing interpolation using the values of the points P2, P3, P4, and P5. .

また、基準点として格子点K4の値が入力されると、格子点K4を基準点として色空間を分割し、分割された色空間からそれぞれ点P4、P5、P6、P7を選択する。この結果、格子点K4は点P4、P5、P6、P7で包囲され、点P4、P5、P6、P7の値を用いて補間を行うことにより、格子点K4の値を求めることが可能となる。   When the value of the grid point K4 is input as the reference point, the color space is divided using the grid point K4 as the reference point, and points P4, P5, P6, and P7 are selected from the divided color space, respectively. As a result, the lattice point K4 is surrounded by the points P4, P5, P6, and P7, and the value of the lattice point K4 can be obtained by performing interpolation using the values of the points P4, P5, P6, and P7. .

また、基準点として格子点K5の値が入力されると、格子点K5を基準点として色空間を分割し、分割された色空間からそれぞれ点P4、P5、P6、P7を選択する。この結果、格子点K5は点P4、P5、P6、P7で包囲され、点P4、P5、P6、P7の値を用いて補間を行うことにより、格子点K5の値を求めることが可能となる。   When the value of the grid point K5 is input as the reference point, the color space is divided using the grid point K5 as the reference point, and points P4, P5, P6, and P7 are selected from the divided color space, respectively. As a result, the lattice point K5 is surrounded by the points P4, P5, P6, and P7, and the value of the lattice point K5 can be obtained by performing interpolation using the values of the points P4, P5, P6, and P7. .

このように、基準とする色信号を格子点に設定することにより、格子点を包囲する色信号を確実に選択することが可能となり、不規則テーブルを規則テーブルに効率よく変換することが可能となる。   In this way, by setting the reference color signal as a grid point, it is possible to reliably select the color signal surrounding the grid point, and to convert the irregular table into a rule table efficiently. Become.

図12は、本発明の第4実施例に係わる色信号選択方法を示すフローチャートである。
図12において、まず、規則テーブルに登録されている色信号を順次入力する(ステップS41)。ここで、色信号を入力する順番は任意に設定することができ、例えば、格子番号の順序で入力することができる。
FIG. 12 is a flowchart showing a color signal selection method according to the fourth embodiment of the present invention.
In FIG. 12, first, the color signals registered in the rule table are sequentially input (step S41). Here, the order in which the color signals are input can be arbitrarily set. For example, the color signals can be input in the order of the lattice numbers.

次に、入力された色信号を基準として色空間に複数の領域を設定し(ステップS42)、設定された領域から色信号を選択する(ステップS43)。
図13は、本発明の一実施例に係わる色信号補間装置の構成を示すブロック図である。
Next, a plurality of areas are set in the color space using the input color signal as a reference (step S42), and a color signal is selected from the set area (step S43).
FIG. 13 is a block diagram showing the configuration of a color signal interpolation apparatus according to an embodiment of the present invention.

図13において、色信号入力手段11は、第1の色空間に属する第1の色信号を入力する。
色信号選択手段12は、色信号入力手段11により入力された第1の色信号を包囲する第2の色信号を選択する。ここで、色信号選択手段12は、第1の色信号を基準として第1の色空間を分割し、分割された第1の色空間から色信号を選択することにより、第1の色信号を包囲する第2の色信号を選択することができる。
In FIG. 13, the color signal input means 11 inputs a first color signal belonging to the first color space.
The color signal selection unit 12 selects a second color signal surrounding the first color signal input by the color signal input unit 11. Here, the color signal selection unit 12 divides the first color space based on the first color signal, and selects the first color signal by selecting the color signal from the divided first color space. The surrounding second color signal can be selected.

対応関係獲得手段13は、色信号選択手段12により選択された第2の色信号と第2の色空間に属する第3の色信号との対応関係を獲得する。ここで、対応関係獲得手段13は、色変換テーブルに記憶されているデータを読み出すことにより、第2の色信号と第3の色信号との対応関係を獲得することができる。   Correspondence relationship acquisition means 13 acquires the correspondence relationship between the second color signal selected by the color signal selection means 12 and the third color signal belonging to the second color space. Here, the correspondence acquisition means 13 can acquire the correspondence between the second color signal and the third color signal by reading the data stored in the color conversion table.

重み係数設定手段14は、色信号選択手段12により選択された第2の色信号についての重み係数を設定する。ここで、補間点生成手段15が8点補間により補間点を生成する場合、色信号選択手段12により選択された8つの色信号のそれぞれについての重み係数を設定する。8つの色信号の重み係数は、特定の位置で立方体を8つに分割した時の体積を用いることができる。   The weighting factor setting unit 14 sets a weighting factor for the second color signal selected by the color signal selection unit 12. Here, when the interpolation point generation unit 15 generates an interpolation point by 8-point interpolation, the weighting coefficient is set for each of the eight color signals selected by the color signal selection unit 12. As the weighting factors of the eight color signals, the volume when the cube is divided into eight at a specific position can be used.

また、補間点生成手段15が四面体補間により補間点を生成する場合、色信号選択手段12により選択された4つの色信号のそれぞれについての重み係数を設定する。
補間点生成手段15は、重み係数設定手段14により設定された重み係数に基づいて、第2の色信号で包囲される範囲内に補間点を生成する。ここで,補間点生成手段15は、重み係数設定手段14により設定される重み係数を少しずつ変化させることにより、第2の色信号で包囲される範囲内に複数の補間点を生成する。
When the interpolation point generation unit 15 generates an interpolation point by tetrahedral interpolation, a weighting factor is set for each of the four color signals selected by the color signal selection unit 12.
The interpolation point generation unit 15 generates an interpolation point within the range surrounded by the second color signal based on the weighting factor set by the weighting factor setting unit 14. Here, the interpolation point generating means 15 generates a plurality of interpolation points within a range surrounded by the second color signal by gradually changing the weighting coefficient set by the weighting coefficient setting means 14.

重み係数選択手段16は、補間点生成手段15により生成された複数の補間点の中から、第4の色信号に最も近い補間点を検出する。そして、重み係数設定手段14により設定された重み係数の中から、検出された補間点の重み係数を選択する。このため、第1の色空間上で第2の色信号が不規則に分布している場合においても、補間に使用する第2の色信号の個数や重み係数を自由に設定することが可能となる。   The weighting coefficient selection unit 16 detects an interpolation point closest to the fourth color signal from the plurality of interpolation points generated by the interpolation point generation unit 15. Then, the weight coefficient of the detected interpolation point is selected from the weight coefficients set by the weight coefficient setting means 14. For this reason, even when the second color signals are irregularly distributed in the first color space, the number of second color signals used for interpolation and the weighting coefficient can be freely set. Become.

補間演算手段17は、重み係数選択手段16により選択された重み係数を第3の色信号に適用することにより、第4の色信号の第2の色空間への変換結果を算出する。このため、第1の色空間上で補間点を求める場合に使用した重み係数を用いて、第2の色空間上の色信号の値を求めることが可能となり、第1の色空間上で新たに与えられた色信号と第2の色空間の色信号との対応関係を求めることが可能となる。   The interpolation calculation means 17 calculates the conversion result of the fourth color signal into the second color space by applying the weight coefficient selected by the weight coefficient selection means 16 to the third color signal. For this reason, it is possible to obtain the value of the color signal in the second color space using the weighting coefficient used when obtaining the interpolation point in the first color space, and a new value in the first color space. It is possible to obtain the correspondence between the color signal given to the color signal of the second color space.

このように、設定された重み係数を用いて生成した補間点の中から、変換対象となる点に最も近い補間点を選択し、選択した補間点を求める場合に使用した重み係数を用いて色変換を行うことにより、色空間上で色信号が不規則に分布している場合においても、4面体補間などのようにn次元補間に使用される点をn+1個に限る必要がなくなり、8点補間などのようにノイズの影響を受けにくい補間方法を用いて補間点を生成することが可能となる。   In this way, the interpolation point closest to the point to be converted is selected from the interpolation points generated using the set weighting factor, and the color using the weighting factor used when obtaining the selected interpolation point is used. By performing the conversion, even when the color signals are irregularly distributed in the color space, it is not necessary to limit the number of points used for n-dimensional interpolation to n + 1 as in tetrahedral interpolation, and so on. Interpolation points can be generated using an interpolation method that is not easily affected by noise, such as interpolation.

すなわち、色空間上で色信号が不規則に分布している場合に用いることができる距離補間やベクトル補間や四面体補間などの一般的な補間方法の他に、見本信号や見本点が補間を実行する2つの空間において格子点として存在することを必要とする8点補間などの補間方法を用いることにより、補間を行うことが可能となり、補間演算を精度良く行うことが可能となる。   In other words, in addition to general interpolation methods such as distance interpolation, vector interpolation, and tetrahedral interpolation that can be used when color signals are irregularly distributed in the color space, sample signals and sample points are interpolated. By using an interpolation method such as 8-point interpolation that needs to exist as grid points in the two spaces to be executed, interpolation can be performed, and interpolation calculation can be performed with high accuracy.

図14は、RGB空間上で不規則に分布するRGB値とL* a* b* 空間上で不規則に分布するL* a* b* 値との対応関係から、入力されたRGB値に対応するL* a* b* 値を補間により求める実施例を、2次元的に説明する図である。   FIG. 14 corresponds to the input RGB value from the correspondence between the RGB value irregularly distributed in the RGB space and the L * a * b * value irregularly distributed in the L * a * b * space. It is a figure explaining the Example which calculates | requires the L * a * b * value to perform by interpolation two-dimensionally.

図14において、色票をスキャナで読み取った時のRGB値と色票を測色機で測色した時のL* a* b* 値との対応関係が離散的に生成されているものとする。また、色票をスキャナで読み取った時のRGB値はRGB空間上で不規則に分布し、色票を測色機で測色した時のL* a* b* 値はL* a* b* 空間上で不規則に分布しているものとする。例えば、RGB空間の点P1はL* a* b* 空間の点Q1に対応し、RGB空間の点P2はL* a* b* 空間の点Q2に対応し、RGB空間の点P3はL* a* b* 空間の点Q3に対応し、RGB空間の点P4はL* a* b* 空間の点Q4に対応しているものとする。   In FIG. 14, it is assumed that the correspondence between the RGB values when the color chart is read by the scanner and the L * a * b * values when the color chart is measured by the colorimeter is discretely generated. . Also, the RGB values when the color chart is read by the scanner are irregularly distributed in the RGB space, and the L * a * b * values when the color chart is measured by the colorimeter are L * a * b *. Suppose that it is distributed irregularly in space. For example, point P1 in RGB space corresponds to point Q1 in L * a * b * space, point P2 in RGB space corresponds to point Q2 in L * a * b * space, and point P3 in RGB space corresponds to L *. It is assumed that the point Q4 in the a * b * space corresponds to the point P4 in the RGB space and the point P4 in the RGB space corresponds to the point Q4 in the L * a * b * space.

ここで、RGB空間上の点Pに対応するL* a* b* 空間上の点Qを求めるものとする。
まず、RGB空間上の点Pを包囲する点P1〜P4を選択する。なお、この点P1〜P4を選択する場合、点Pを基準としてRGB空間を4つの領域に分割し、分割された4つの領域から点Pに最も近い点をそれぞれ選択するようにすることができる。
Here, it is assumed that a point Q in the L * a * b * space corresponding to the point P in the RGB space is obtained.
First, the points P1 to P4 surrounding the point P in the RGB space are selected. When selecting the points P1 to P4, the RGB space can be divided into four regions with the point P as a reference, and the point closest to the point P can be selected from each of the divided four regions. .

次に、点P1〜p4で囲まれる領域の内部に補間によるRGB値を複数生成する。この補間により、点R1〜R12のRGB値が生成されたものとする。
次に、この補間により生成されたRGB空間上の点R1〜R12の中から、点Pに最も近いものを選択する。この選択により、RGB空間上の点R9が選択されたものとする。
Next, a plurality of RGB values by interpolation are generated inside the area surrounded by the points P1 to p4. It is assumed that RGB values of points R1 to R12 are generated by this interpolation.
Next, a point closest to the point P is selected from the points R1 to R12 on the RGB space generated by this interpolation. It is assumed that a point R9 on the RGB space is selected by this selection.

次に、点R9を求める時に使用した点P1〜P4についての各重み係数を、L* a* b* 空間上の点Q1〜Q4に対してそれぞれ適用することにより、L* a* b* 空間の点Qを求める。そして、L* a* b* 空間上の点QのL* a* b* 値を、RGB空間上の点PのRGB値に対応するものとして出力する。   Next, by applying the weighting factors for the points P1 to P4 used when obtaining the point R9 to the points Q1 to Q4 on the L * a * b * space, respectively, the L * a * b * space is obtained. Find the point Q. Then, the L * a * b * value of the point Q on the L * a * b * space is output as corresponding to the RGB value of the point P on the RGB space.

このように、不則的に分布しているRGB空間上で色信号の対応関係を補間により増やし、この中から変換対象となるRGB値に最も近いものを見つけ出す。そして、RGB空間上での補間に使用した重み係数を、L* a* b* 空間上のL* a* b* 値に適用することにより、不規則に分布しているRGB値とL* a* b* 値との対応関係から、入力されたRGB値とL* a* b* 値との対応関係を近似的に求めることが可能となる。   In this way, the correspondence relationship of the color signals is increased by interpolation in the irregularly distributed RGB space, and the closest one to the RGB value to be converted is found out from this. Then, by applying the weighting coefficient used for the interpolation in the RGB space to the L * a * b * value in the L * a * b * space, the irregularly distributed RGB values and the L * a From the correspondence with the * b * value, the correspondence between the input RGB value and the L * a * b * value can be obtained approximately.

図15は、本発明の一実施例に係わる色信号処理装置のシステム構成を示すブロック図である。
図15において、21は全体的な処理を行う中央演算処理ユニット(CPU)、22はリードオンリメモリ(ROM)、23はランダムアクセスメモリ(RAM)、24は入出力インターフェイス、25はRGB信号に基づいてカラー画像を表示するディスプレイ、26はCMY信号に基づいてカラー画像を印刷するプリンタ、27はスキャナ28により読み取られたデータを一時的に格納するメモリ、28はカラー画像を読み取ることにより、RGB信号を出力するスキャナ、29は通信インターフェイス、30は通信ネットワーク、31は記憶媒体を駆動するドライバ、32はハードディスク、33はICメモリカード、34は磁気テープ、35はフレキシブルディスク、36はCD−ROMやDVD−ROMなどの光ディスク、37はバス、38はキーボードである。
FIG. 15 is a block diagram showing a system configuration of a color signal processing apparatus according to an embodiment of the present invention.
In FIG. 15, 21 is a central processing unit (CPU) that performs overall processing, 22 is a read only memory (ROM), 23 is a random access memory (RAM), 24 is an input / output interface, and 25 is based on RGB signals. A display for displaying a color image; 26, a printer for printing a color image based on the CMY signal; 27, a memory for temporarily storing data read by the scanner 28; and 28, an RGB signal by reading the color image. , A communication interface, 30 a communication network, 31 a driver for driving a storage medium, 32 a hard disk, 33 an IC memory card, 34 a magnetic tape, 35 a flexible disk, 36 a CD-ROM, DVD-ROM and other optical disks, 37 Vinegar, 38 is a keyboard.

色信号選択処理を行うプログラムや色信号補間処理を行うプログラム、あるいは色変換テーブルの内容を、ハードディスク32、ICメモリカード33、磁気テープ34、フレキシブルディスク35、光ディスク36などの記憶媒体に格納し、これらの色信号選択処理を行うプログラムや色信号補間処理を行うプログラム、あるいは色変換テーブルの内容をRAM23に読み出すことにより、色信号選択処理や色信号補間処理を行うことができる。また、色信号選択処理を行うプログラムや色信号補間処理を行うプログラム、あるいは色変換テーブルの内容を、ROM22に格納しておくこともできる。   A program for performing color signal selection processing, a program for performing color signal interpolation processing, or the contents of a color conversion table is stored in a storage medium such as the hard disk 32, IC memory card 33, magnetic tape 34, flexible disk 35, optical disk 36, By reading the color signal selection processing program, the color signal interpolation processing program, or the contents of the color conversion table into the RAM 23, the color signal selection processing and the color signal interpolation processing can be performed. Also, the ROM 22 can store a program for performing color signal selection processing, a program for performing color signal interpolation processing, or the contents of a color conversion table.

さらに、色信号選択処理を行うプログラムや色信号補間処理を行うプログラム、あるいは色変換テーブルの内容を、通信インターフェイス29を介して通信ネットワーク30から取り出すことをできる。通信インターフェイス29に接続される通信ネットワーク30として、例えば、LAN(Local Area Network)、WAN(Wide Area Network)、インターネット、アナログ電話網、デジタル電話網(ISDN:Integral Service Digital Network)、PHS(パーソナルハンディシステム)や衛星通信などの無線通信網を用いることができる。   Furthermore, the program for performing color signal selection processing, the program for performing color signal interpolation processing, or the contents of the color conversion table can be extracted from the communication network 30 via the communication interface 29. The communication network 30 connected to the communication interface 29 includes, for example, a LAN (Local Area Network), a WAN (Wide Area Network), the Internet, an analog telephone network, a digital telephone network (ISDN: Integrated Service Digital Network), and a PHS (Personal Handy Network). System) and satellite communication.

CPU21は、色信号選択処理を行うプログラムが起動されると、スキャナ28で読み取られたRGB信号を受信する。スキャナ28で読み取られたRGB信号を受信すると、受信したRGB信号を基準としてRGB空間を分割する。そして、分割されたRGB空間の中から色変換テーブルに登録されているRGB信号を1つずつ選択する。このことにより、受信したRGB信号を包囲するRGB信号を、スキャナ28の色変換テーブルに登録されているRGB値の中から選択することができる。   The CPU 21 receives the RGB signals read by the scanner 28 when a program for performing color signal selection processing is started. When the RGB signal read by the scanner 28 is received, the RGB space is divided based on the received RGB signal. Then, RGB signals registered in the color conversion table are selected one by one from the divided RGB space. As a result, the RGB signal surrounding the received RGB signal can be selected from the RGB values registered in the color conversion table of the scanner 28.

CPU21は、色信号補間処理を行うプログラムが起動されると、スキャナ28で読み取られたRGB信号を受信する。スキャナ28で読み取られたRGB信号を受信すると、スキャナ28の色変換テーブルを参照することにより、このRGB信号をL* a* b* 信号に変換する。そして、プリンタ26の色変換テーブルを参照することにより、このL* a* b* 信号をCMY信号に変換し、プリンタ26に出力する。このことにより、スキャナ28での色再現性とプリンタ26での色再現性とを一致させることができる。   The CPU 21 receives the RGB signals read by the scanner 28 when a program for performing color signal interpolation processing is started. When the RGB signal read by the scanner 28 is received, the RGB signal is converted into an L * a * b * signal by referring to the color conversion table of the scanner 28. The L * a * b * signal is converted into a CMY signal by referring to the color conversion table of the printer 26 and output to the printer 26. Thereby, the color reproducibility in the scanner 28 and the color reproducibility in the printer 26 can be matched.

次に、不規則に分布しているRGB値とL* a* b* 値との対応関係を、規則的に分布しているRGB値とL* a* b* 値との対応関係に変換する方法について説明する。
図16は、本発明の一実施例に係わる色変換テーブルの作成方法を色空間上で示す図である。この実施例は、実測により得られた不規則分布のRGB値に対して補間を行うことにより、格子状の規則的な分布のRGB値を生成するとともに、実測により得られる範囲を超えるRGB値については、外挿を行うことにより、規則的に分布しているRGB値とL* a* b* 値との対応関係を生成するようにしたものである。
Next, the correspondence relationship between irregularly distributed RGB values and L * a * b * values is converted into a correspondence relationship between regularly distributed RGB values and L * a * b * values. A method will be described.
FIG. 16 is a diagram showing a color conversion table creation method according to an embodiment of the present invention on a color space. In this embodiment, the RGB values of the irregular distribution obtained by actual measurement are interpolated to generate RGB values of a regular distribution in a lattice shape, and the RGB values exceeding the range obtained by the actual measurement are obtained. Is a correspondence relationship between regularly distributed RGB values and L * a * b * values by extrapolation.

図16において、スキャナで色票を読み取ることにより、その色票の色に対応したRGB値の分布がRGB空間上に生成される。また、同一の色票を測色機で測色することにより、その色票の色に対応したL* a* b* 値の分布がL* a* b* 空間上に生成される。この時、RGB空間上に分布しているRGB値と、L* a* b* 空間上に分布しているL* a* b* 値との間に1対1の対応関係が付けられる。   In FIG. 16, by reading a color chart with a scanner, a distribution of RGB values corresponding to the color of the color chart is generated in the RGB space. Also, by measuring the same color chart with a colorimeter, a distribution of L * a * b * values corresponding to the color of the color chart is generated in the L * a * b * space. At this time, there is a one-to-one correspondence between RGB values distributed in the RGB space and L * a * b * values distributed in the L * a * b * space.

ここで、色票の色は規則的に分布しているとは限らないので、RGB空間上のRGB値の分布及びL* a* b* 空間上のL* a* b* 値の分布は、不規則となる。この結果、不規則に分布しているRGB値とL* a* b* 値との対応関係が実測により生成される。   Here, since the colors of the color chart are not necessarily distributed regularly, the distribution of RGB values in the RGB space and the distribution of L * a * b * values in the L * a * b * space are: It becomes irregular. As a result, a correspondence relationship between irregularly distributed RGB values and L * a * b * values is generated by actual measurement.

次に、不規則に分布しているRGB値とL* a* b* 値との対応関係に基づいて、RGB値が規則的に分布するように変換を行う。この変換は、RGB空間上で不規則に分布するRGB値の補間を行い、補間で求めたRGB空間上の格子点に対応するL* a* b* 値を求めることにより行うことができる。   Next, conversion is performed so that the RGB values are regularly distributed based on the correspondence between the irregularly distributed RGB values and the L * a * b * values. This conversion can be performed by interpolating irregularly distributed RGB values in the RGB space and obtaining L * a * b * values corresponding to lattice points in the RGB space obtained by interpolation.

この補間演算は、例えば、以下の方法により行うことができる。
まず、RGB空間上の格子点を包囲するRGB値を実測データの中から選択する。そして、選択されたRGB値に対応する重み係数を順次設定することにより、選択されたRGB値で囲まれる領域内に補間点を多数生成する。
This interpolation calculation can be performed, for example, by the following method.
First, an RGB value surrounding a grid point in the RGB space is selected from the measured data. Then, by sequentially setting weighting factors corresponding to the selected RGB values, a large number of interpolation points are generated in the region surrounded by the selected RGB values.

次に、この多数生成された補間点の中から、RGB空間上の格子点に距離が最も近いものを検出する。そして、RGB空間上で検出された補間点に対する重み係数を用いて、実測で得られたL* a* b* 値の補間を行う。この結果、実測されたRGB値の分布の範囲内で、格子状の規則的な分布のRGB値とL* a* b* 値との対応関係を近似的に求めることができる。   Next, from the many generated interpolation points, the one having the closest distance to the grid point in the RGB space is detected. Then, the L * a * b * values obtained by actual measurement are interpolated using the weighting coefficients for the interpolation points detected in the RGB space. As a result, the correspondence between the RGB values of the lattice-like regular distribution and the L * a * b * values can be obtained approximately within the range of the measured RGB value distribution.

次に、補間を用いて生成したRGB値とL* a* b* 値との対応関係を外挿することにより、RGB空間上の格子点の分布の範囲を拡大する。これは、補間を用いて生成したRGB空間上の格子点は、実測されたRGB信号で包囲される範囲内に限って生成されることから、補間を用いて生成したRGB空間上の格子点の分布の範囲は、実測されたRGB値の分布の範囲より狭くなるためである。   Next, the range of the distribution of grid points in the RGB space is expanded by extrapolating the correspondence between RGB values generated using interpolation and L * a * b * values. This is because the grid points on the RGB space generated using interpolation are generated only within the range surrounded by the measured RGB signals, so the grid points on the RGB space generated using interpolation are This is because the distribution range is narrower than the measured RGB value distribution range.

このように、実測により得られた不規則テーブルを規則テーブルに変換することにより、RGB値をL* a* b* 値に変換する際の補間演算を高速かつ高精度に行うことが可能な色変換テーブルを生成することができる。   In this way, by converting the irregular table obtained by actual measurement into a rule table, it is possible to perform interpolation calculation at high speed and with high accuracy when converting RGB values to L * a * b * values. A conversion table can be generated.

図17は、補間による色変換テーブルの生成方法の一例を示すフローチャートである。
図17において、まず、色信号が分布している色空間を複数の領域に分割し(ステップS51)、分割された領域から色信号を選択する(ステップS52)。
FIG. 17 is a flowchart illustrating an example of a method for generating a color conversion table by interpolation.
In FIG. 17, first, a color space in which color signals are distributed is divided into a plurality of regions (step S51), and color signals are selected from the divided regions (step S52).

次に、選択された色信号を用いて補間演算を行うことにより、色信号を新たに生成し、(ステップS53)、新たに生成した色信号を色変換テーブルに登録する(ステップS54)。   Next, a color signal is newly generated by performing an interpolation operation using the selected color signal (step S53), and the newly generated color signal is registered in the color conversion table (step S54).

このように、分割された領域から選択された色信号を用いて補間を行うことにより、不規則テーブルを規則テーブルに高速に変換することが可能となり、利用しやすい色変換テーブルを効率的に生成することが可能となる。   In this way, by performing interpolation using the color signal selected from the divided areas, it is possible to convert the irregular table into the rule table at a high speed, and efficiently generate an easy-to-use color conversion table. It becomes possible to do.

図18は、外挿による色変換テーブル生成の生成方法の一例を示すフローチャートである。
図18において、まず、色変換テーブルに登録されている色信号を用いて補間演算を行うことにより、色変換テーブルに登録されている色信号の範囲内で新たな色信号を生成し、(ステップS61)、新たに生成した色信号を色変換テーブルに登録する(ステップS62)。
FIG. 18 is a flowchart illustrating an example of a generation method for generating a color conversion table by extrapolation.
In FIG. 18, first, a new color signal is generated within the range of the color signal registered in the color conversion table by performing an interpolation operation using the color signal registered in the color conversion table. S61) The newly generated color signal is registered in the color conversion table (step S62).

次に、外挿演算をを行うことにより、色変換テーブルに登録されている色信号の範囲外で新たな色信号を生成し、(ステップS63)、新たに生成した色信号を色変換テーブルに登録する(ステップS64)。   Next, by performing extrapolation calculation, a new color signal is generated outside the range of the color signal registered in the color conversion table (step S63), and the newly generated color signal is stored in the color conversion table. Register (step S64).

このように、補間演算で生成した色信号をさらに外挿して色信号を増やすことにより、不規則テーブルで包囲される範囲の外にも、規則テーブルに登録する色信号を生成することができる。   As described above, by further extrapolating the color signals generated by the interpolation operation and increasing the color signals, the color signals to be registered in the rule table can be generated outside the range surrounded by the irregular table.

図19は、本発明の一実施例に係わる色変換テーブル生成装置の構成を示すブロック図である。この色変換テーブル生成装置は、不規則テーブルから規則テーブルを効率的に生成することを可能とするとともに、規則テーブルの登録される色信号の範囲に欠落がないようにすることを可能とするものである。   FIG. 19 is a block diagram showing a configuration of a color conversion table generation apparatus according to an embodiment of the present invention. This color conversion table generation device enables efficient generation of a rule table from an irregular table and also prevents missing of the color signal range registered in the rule table It is.

図19において、スキャナ43は、色票42に印刷されている色を読み取り、その結果得られたRGB値41aを色変換テーブル41に出力する。測色機44は、色票42に印刷されている色を測色し、その結果得られたL* a* b* 値41bを色変換テーブル41に出力する。   In FIG. 19, the scanner 43 reads the color printed on the color chart 42 and outputs the RGB value 41 a obtained as a result to the color conversion table 41. The colorimeter 44 measures the color printed on the color chart 42 and outputs the L * a * b * value 41 b obtained as a result to the color conversion table 41.

ここで、スキャナ43から得られたRGB値41a及び測色機44から得られたL* a* b* 値41bは不規則に分布するため、色変換テーブル41は不規則テーブルとなる。
色変換テーブル49は、RGB空間の格子点に分布するRGB値とL* a* b* 値49bとの対応関係を格納するもので、色変換テーブル49に登録するRGB値の範囲は、例えば、スキャナ43の色再現範囲に対応する0≦R≦256、0≦G≦256、0≦B≦256とし、格子間隔が16の格子点に対応するRGB値を登録するものとする。このため、色変換テーブル49に登録するRGB値をRGB番号49aに置き換えて登録することができ、RGB番号49aは、0≦R番号≦16、0≦G番号≦16、0≦B番号≦16の整数値となる。
Here, since the RGB values 41a obtained from the scanner 43 and the L * a * b * values 41b obtained from the colorimeter 44 are irregularly distributed, the color conversion table 41 becomes an irregular table.
The color conversion table 49 stores the correspondence between RGB values distributed at grid points in the RGB space and L * a * b * values 49b. The range of RGB values registered in the color conversion table 49 is, for example, Assume that 0 ≦ R ≦ 256, 0 ≦ G ≦ 256, 0 ≦ B ≦ 256 corresponding to the color reproduction range of the scanner 43, and RGB values corresponding to grid points with a grid interval of 16 are registered. Therefore, the RGB value registered in the color conversion table 49 can be registered by being replaced with the RGB number 49a. The RGB number 49a is 0 ≦ R number ≦ 16, 0 ≦ G number ≦ 16, and 0 ≦ B number ≦ 16. The integer value of

ここで、RGB値はRGB番号49aから、
R値=R番号×16 ・・・(1)
G値=G番号×16 ・・・(2)
B値=B番号×16 ・・・(3)
により求めることができる。
Here, the RGB value is from RGB number 49a,
R value = R number × 16 (1)
G value = G number × 16 (2)
B value = B number × 16 (3)
It can ask for.

選択部45は、登録対象となるRGB番号49aが色変換テーブル49から与えられると、(1)〜(3)式により、RGB番号49aに対応するRGB値を求める。このRGB値は、RGB空間上の格子点のRGB値(格子RGB値)に対応している。そして、この格子RGB値を基準としてRGB空間を分割し、色変換テーブル41に登録されているRGB値41aの中から、格子RGB値を包囲するRGB値41aを選択する。ここで、補間部46による補間点の生成を8点補間により行う場合、格子RGB値を包囲する8個のRGB値41aを選択し、補間部46による補間点の生成を四面体補間により行う場合、格子RGB値を包囲する4個のRGB値41aを選択する。   When the RGB number 49a to be registered is given from the color conversion table 49, the selection unit 45 obtains an RGB value corresponding to the RGB number 49a according to equations (1) to (3). This RGB value corresponds to the RGB value (grid RGB value) of the grid point in the RGB space. Then, the RGB space is divided on the basis of the grid RGB value, and the RGB value 41 a surrounding the grid RGB value is selected from the RGB values 41 a registered in the color conversion table 41. Here, when the interpolation point generation by the interpolation unit 46 is performed by 8-point interpolation, eight RGB values 41a surrounding the grid RGB values are selected, and the interpolation point generation by the interpolation unit 46 is performed by tetrahedral interpolation. , Four RGB values 41a surrounding the grid RGB values are selected.

なお、選択部45は、格子RGB値の格子間隔よりも広い間隔で格子RGB値を選択し、この選択された格子RGB値を基準としてRGB空間を分割するようにしてもよい。
次に、格子RGB値を包囲するRGB値41aが選択されると、選択されたRGB値41aに対応するL* a* b* 値41bを、色変換テーブル41から読み出す。そして、色変換テーブル41から選択されたRGB値41aと、色変換テーブル41から読み出されたL* a* b* 値41bとを、補間部46に出力する。
Note that the selection unit 45 may select a grid RGB value at an interval wider than the grid interval of the grid RGB value, and divide the RGB space on the basis of the selected grid RGB value.
Next, when the RGB value 41a surrounding the grid RGB value is selected, the L * a * b * value 41b corresponding to the selected RGB value 41a is read from the color conversion table 41. Then, the RGB value 41 a selected from the color conversion table 41 and the L * a * b * value 41 b read from the color conversion table 41 are output to the interpolation unit 46.

補間部46は、選択部45から出力されたRGB値41aに対する重み係数を設定することにより、選択部45から出力されたRGB値41aで包囲される領域に補間点を生成する。ここで、補間部46は、補間点の生成を8点補間や四面体補間などにより行うことができる。   The interpolation unit 46 sets the weighting factor for the RGB value 41a output from the selection unit 45, thereby generating an interpolation point in the region surrounded by the RGB value 41a output from the selection unit 45. Here, the interpolation unit 46 can generate an interpolation point by 8-point interpolation, tetrahedral interpolation, or the like.

近接色検出部47は、色変換テーブル49から出力されたRGB番号49aに対応する格子RGB値を(1)〜(3)式により求め、補間部46から出力された補間点のRGB値と格子RGB値とを比較する。そして、補間点のRGB値に近い格子点のRGB番号を検出する。   The proximity color detection unit 47 obtains a grid RGB value corresponding to the RGB number 49a output from the color conversion table 49 by using the equations (1) to (3), and the RGB value and grid of the interpolation point output from the interpolation unit 46. Compare RGB values. Then, the RGB number of the lattice point close to the RGB value of the interpolation point is detected.

近接度算出部48は、補間部46から出力された補間点のRGB値と近接色検出部47により検出された格子点のRGB値との近接度を算出する。なお、近接度は、補間部46から出力された補間点のRGB値と近接色検出部47により検出された格子点のRGB値との間の距離の二乗で定義することが可能である。   The proximity calculation unit 48 calculates the proximity between the RGB value of the interpolation point output from the interpolation unit 46 and the RGB value of the grid point detected by the proximity color detection unit 47. The degree of proximity can be defined by the square of the distance between the RGB value of the interpolation point output from the interpolation unit 46 and the RGB value of the grid point detected by the proximity color detection unit 47.

比較選択部50は、近接色検出部47により検出された格子点のRGB番号49aの近接度49cを色変換テーブル49から読み出し、色変換テーブル49から読み出した近接度49cと、近接度算出部48で算出された近接度とを比較する。そして、近接度算出部48で算出された近接度の方が、色変換テーブル49から読み出した近接度49cより大きい場合、そのことを補間部46に伝達する。   The comparison / selection unit 50 reads the proximity 49c of the RGB number 49a of the grid point detected by the proximity color detection unit 47 from the color conversion table 49, the proximity 49c read from the color conversion table 49, and the proximity calculation unit 48. Compare with the proximity calculated in. If the proximity calculated by the proximity calculation unit 48 is greater than the proximity 49 c read from the color conversion table 49, this is transmitted to the interpolation unit 46.

補間部46は、補間点の近接度の方が色変換テーブル49に登録されている近接度49cより大きいか、または、近接色検出部47で検出された格子点のRGB番号について近接度49cが登録されていない場合、色変換テーブル41から選択されたRGB値41aに対応するL* a* b* 値41bに対し、補間点の重み係数を適用することにより、色変換テーブル49のRGB番号49aに対応するL* a* b* 値49bを算出する。   The interpolation unit 46 determines that the proximity of the interpolation points is greater than the proximity 49c registered in the color conversion table 49, or the proximity 49c is the RGB number of the grid point detected by the proximity color detection unit 47. If not registered, the RGB number 49a of the color conversion table 49 is applied to the L * a * b * value 41b corresponding to the RGB value 41a selected from the color conversion table 41 by applying the weighting coefficient of the interpolation point. L * a * b * value 49b corresponding to is calculated.

登録部51は、近接色検出部47により検出された格子点のRGB番号49aに対応させて、補間部46から出力されたL* a* b* 値49bと比較選択部50から出力された近接度49cとを色変換テーブル49に登録する。   The registration unit 51 associates the L * a * b * value 49b output from the interpolation unit 46 with the proximity output output from the comparison / selection unit 50 in correspondence with the RGB number 49a of the grid point detected by the proximity color detection unit 47. The degree 49c is registered in the color conversion table 49.

次に、スキャナ用の色変換テーブルの作成方法について、数式を用いながらより具体的に説明する。なお、ここで作成するスキャナ用の色変換テーブルは、スキャナで入力したRGB信号をL* a* b* 信号に変換するために用いる色変換テーブルである。この色変換テーブルには、規則的な分布のRGB値に対応するL* a* b* 値が登録される。   Next, a method for creating a color conversion table for a scanner will be described more specifically using mathematical expressions. Note that the color conversion table for the scanner created here is a color conversion table used for converting RGB signals input by the scanner into L * a * b * signals. In this color conversion table, L * a * b * values corresponding to regularly distributed RGB values are registered.

この色変換テーブルの作成では、まず、ターゲット(様々な色票が印刷されたもの)をスキャナで入力し、その色票のRGB値を獲得するとともに、色票を測色機で測定することで、色票のL* a* b* 値を得る。ここでは、一般的なIT8.7ターゲットを用いる。   In creating this color conversion table, first, the target (on which various color charts are printed) is input with a scanner, the RGB values of the color chart are acquired, and the color chart is measured with a colorimeter. To obtain the L * a * b * value of the color chart. Here, a general IT8.7 target is used.

スキャナによる入力と測色機の測定で得られたものは、RGB値とL* a* b* 値の対応を表すため、色変換テーブルと言える。しかし、ターゲットの色は完全に規則的に分布しているわけではないので、RGB値もL* a* b* 値も不規則な分布となる。   What is obtained by the input by the scanner and the measurement by the colorimeter represents a correspondence between the RGB values and the L * a * b * values, and can be said to be a color conversion table. However, since the target colors are not completely regularly distributed, the RGB values and the L * a * b * values are irregularly distributed.

以下、本発明の第1実施例に係わるテーブル変換方法について説明する。この第1実施例に係わるテーブル変換方法は、8点補間により不規則テーブルを規則テーブルに変換するようにしたものである。 この第1実施例の処理ステップは、「色の組の作成」、「補間による規則テーブルの生成」及び「外挿による規則テーブルの追加」の3段階からなる。   The table conversion method according to the first embodiment of the present invention will be described below. The table conversion method according to the first embodiment converts an irregular table into a rule table by 8-point interpolation. The processing steps of the first embodiment are composed of three stages: “creation of color set”, “generation of rule table by interpolation”, and “addition of rule table by extrapolation”.

色の組の作成では、格子RGB値を囲む不規則テーブルの色信号を、各格子点について求める。ここで、1つの格子点につき8つの色信号を選択する。なお、この8つの色信号を、以下、「色の組み」と呼ぶ。   In creating a color set, an irregular table color signal surrounding a grid RGB value is obtained for each grid point. Here, eight color signals are selected for each grid point. The eight color signals are hereinafter referred to as “color sets”.

補間による規則テーブルの生成では、色の組みを補間することにより、色の組みの間の色信号を多数生成する。そして、その中から、格子RGB値に最も近い色信号を選択する。色の組みの選択を登録対象の全ての格子点について行うことにより、各格子RGB値に対するL* a* b* 値を算出することができる。なお、不規則テーブルに登録されている色信号を用いただけでは、登録対象の全ての格子点を包囲することができるとは限らないため、通常、L* a* b* 値を算出できない格子RGB値がある。 ここで、規則テーブルに登録するRGB値の範囲を0≦R≦256、0≦G≦256、0≦B≦256とし、格子間隔が16の格子点に対応する格子RGB値を登録するものとすると、格子RGB値(Rgrid、Ggrid、Bgrid)は、
Rgrid=Rnum・16 ・・・(4)
Ggrid=Gnum・16 ・・・(5)
Bgrid=Bnum・16 ・・・(6)
により算出できる。ここで、Rnum,Gnum,BnumはRGB番号で、それぞれ0〜16の整数値である。
In the generation of the rule table by interpolation, a large number of color signals between the color sets are generated by interpolating the color sets. Then, the color signal closest to the grid RGB value is selected from among them. By selecting a set of colors for all grid points to be registered, the L * a * b * values for each grid RGB value can be calculated. Note that using only the color signals registered in the irregular table does not always enclose all the lattice points to be registered, and therefore, the grid RGB in which L * a * b * values cannot usually be calculated. There is a value. Here, the range of RGB values to be registered in the rule table is 0 ≦ R ≦ 256, 0 ≦ G ≦ 256, 0 ≦ B ≦ 256, and grid RGB values corresponding to grid points with a grid interval of 16 are registered. Then, the grid RGB values (Rgrid, Ggrid, Bgrid) are
Rgrid = Rnum · 16 (4)
Ggrid = Gnum · 16 (5)
Bgrid = Bnum · 16 (6)
Can be calculated. Here, Rnum, Gnum, and Bnum are RGB numbers, which are integer values of 0 to 16, respectively.

外挿による規則テーブルの追加では、生成した規則テーブルの値を外挿することにより、登録対象の全ての格子RGB値に対するL* a* b* 値を算出する。
以下、各ステップについて、より詳細に説明する。
In addition of the rule table by extrapolation, L * a * b * values for all the grid RGB values to be registered are calculated by extrapolating the values of the generated rule table.
Hereinafter, each step will be described in more detail.

色の組の作成では、規則テーブルとして生成する格子RGB値に順次着目する。そして、この格子RGB値の周囲の8個の色信号(ターゲットのスキャナ入力値と測色値)を色の組みとして選択する。   In creating a color set, attention is sequentially paid to lattice RGB values generated as a rule table. Then, eight color signals (target scanner input value and colorimetric value) around this grid RGB value are selected as a set of colors.

図20は、本発明の一実施例に係わる色信号選択方法をRGB空間上で2次元的に示す図である。
図20において、不規則テーブルに登録されているRGB値が、色空間上の点P1〜P16に分布しているものとする。そして、規則テーブルに登録する格子点K1の格子RGB値が、補間対象として入力されたものとする。ここで、格子点K1の格子RGB値は不規則テーブルに登録されていないので、不規則テーブルに登録されている点P1〜P16のRGB値の中から、格子点K1を包囲する点P1、P2、P5,P10のRGB値を選択する。そして、選択された点P1、P2、P5,P10のRGB値を用いて重み演算を行うことにより、格子点K1の格子RGB値を補間する。
FIG. 20 is a diagram two-dimensionally showing the color signal selection method according to an embodiment of the present invention on the RGB space.
In FIG. 20, it is assumed that the RGB values registered in the irregular table are distributed at points P1 to P16 on the color space. It is assumed that the grid RGB value of the grid point K1 registered in the rule table is input as an interpolation target. Here, since the grid RGB values of the grid point K1 are not registered in the irregular table, the points P1 and P2 surrounding the grid point K1 among the RGB values of the points P1 to P16 registered in the irregular table. , P5, P10 RGB values are selected. Then, the grid RGB value of the grid point K1 is interpolated by performing a weight calculation using the RGB values of the selected points P1, P2, P5, and P10.

格子点K1を包囲する4つの点P1、P2、P5,P10を選択するには、格子点K1を通り、互いに直交する直線L1、L2で、点P1〜P16が分布している色空間を分割する。この分割により、色空間上に4つの領域1〜4が生成される。そして、領域1から格子点K1に最も近い点P1を選択し、領域2から格子点K1に最も近い点P2を選択し、領域3から格子点K1に最も近い点P10を選択し、領域4から格子点K1に最も近い点P5を選択する。この結果、格子点K1は4つの点P1、P2、P5,P10により確実に包囲され、分割により得られた4つの領域1〜4から色信号を1つずつ選択するだけで、色空間上に不規則に分布しているP1〜P16の中から、格子点K1を包囲する4つの点P1、P2、P5,P10を取り出すことが可能となる。   To select the four points P1, P2, P5, and P10 that surround the grid point K1, the color space where the points P1 to P16 are distributed is divided by the straight lines L1 and L2 that pass through the grid point K1 and are orthogonal to each other. To do. By this division, four regions 1 to 4 are generated on the color space. Then, the point P1 closest to the lattice point K1 is selected from the region 1, the point P2 closest to the lattice point K1 is selected from the region 2, the point P10 closest to the lattice point K1 is selected from the region 3, and from the region 4 A point P5 closest to the grid point K1 is selected. As a result, the grid point K1 is surely surrounded by the four points P1, P2, P5, and P10, and only one color signal is selected from the four regions 1 to 4 obtained by the division, so that the color point is displayed on the color space. From the irregularly distributed P1 to P16, four points P1, P2, P5, and P10 surrounding the lattice point K1 can be extracted.

なお、全ての格子点を順次選択する際に、色再現範囲の境界に近いために格子点を包囲する8個の色信号を選択できない場合、その格子点については8色の組は選択できなかったものとする。例えば、図20では、格子番号が(2,1)の格子点の周囲には色信号が登録されていないため、格子番号が(2,1)の格子点を包囲する色信号を選択できない。   When all the grid points are selected sequentially, if eight color signals surrounding the grid points cannot be selected because they are close to the boundary of the color reproduction range, a set of eight colors cannot be selected for that grid point. Shall be. For example, in FIG. 20, since no color signal is registered around the grid point with the grid number (2, 1), the color signal surrounding the grid point with the grid number (2, 1) cannot be selected.

このように、全ての格子点を順次選択しながら、格子点を基準に平面を4領域に分割し、各領域について格子点と最も距離の小さい色信号を選択することにより、格子点の周囲の4つの点でその格子点を確実に包囲することが可能となる。   In this way, by sequentially selecting all the lattice points, the plane is divided into four regions with reference to the lattice points, and the color signal having the smallest distance from the lattice points is selected for each region. It is possible to reliably surround the lattice point with four points.

なお、図20では、2次元的に示したため、4個の色信号が選択されるが、3次元空間では8個の色信号を選択する。
以下、色の組の作成アルゴリズムを順を追って説明する。
In FIG. 20, four color signals are selected because they are shown two-dimensionally, but eight color signals are selected in a three-dimensional space.
In the following, the color group creation algorithm will be described in order.

まず、初期化として、不規則テーブルに登録されているRGB値及びL* a* b* 値(ターゲットの色)を配列に設定する。
すなわち、不規則テーブルに登録されているRGB値及びL* a* b* 値をLin[k],ain[k],bin[k],Rin[k],Gin[k],Bin[k]に設定する。ここで、色番号kは、0≦k<色数である。
First, as initialization, RGB values and L * a * b * values (target colors) registered in the irregular table are set in an array.
That is, the RGB values and L * a * b * values registered in the irregular table are converted into Lin [k], ain [k], bin [k], Rin [k], Gin [k], Bin [k]. Set to. Here, the color number k is 0 ≦ k <number of colors.

次に、格子番号を順次指定することにより、RGB空間の格子点の色信号を順次選択する。
すなわち、(4)〜(6)式により、Rgridの値、Ggridの値及びBgridの値を順次設定する。
Next, the color signals of the grid points in the RGB space are sequentially selected by sequentially specifying the grid numbers.
That is, the value of Rgrid, the value of Ggrid, and the value of Bgrid are sequentially set by the equations (4) to (6).

次に、各格子点を中心にRGB空間を8つの領域に分け、各領域の中で格子点との距離が最も近い不規則テーブルの色信号を選択する。
すなわち、0≦i<色数について、Rgridの値、Ggridの値及びBgridの値を基準として、(Rin[k],Gin[k],Bin[k])を8つの領域に分類し、各領域に分類された(Rin[i],Gin[i],Bin[i])の中で、格子点との距離が最も小さい色番号iをnum0〜num7に格納する。
Next, the RGB space is divided into eight regions around each lattice point, and the color signal of the irregular table that is closest to the lattice point in each region is selected.
That is, for 0 ≦ i <color number, (Rin [k], Gin [k], Bin [k]) are classified into eight regions, based on the values of Rgrid, Ggrid, and Bgrid. Among the categorized regions (Rin [i], Gin [i], Bin [i]), the color number i having the smallest distance from the grid point is stored in num0 to num7.

数式で示すと以下のようになる。
(1)Rin[i]≦Rgrid、Gin[i]≦Ggrid、
Bin[i]≦Bgridの条件を満たす色番号iをnum0に保存
(2)Rin[i]>Rgrid、Gin[i]≦Ggrid、
Bin[i]≦Bgridの条件を満たす色番号iをnum1に保存
(3)Rin[i]≦Rgrid、Gin[i]>Ggrid、
Bin[i]≦Bgridの条件を満たす色番号iをnum2に保存
(4)Rin[i]≦Rgrid、Gin[i]≦Ggrid、
Bin[i]>Bgridの条件を満たす色番号iをnum3に保存
(5)Rin[i]>Rgrid、Gin[i]>Ggrid、
Bin[i]≦Bgridの条件を満たす色番号iをnum4に保存
(6)Rin[i]≦Rgrid、Gin[i]>Ggrid、
Bin[i]>Bgridの条件を満たす色番号iをnum5に保存
(7)Rin[i]>Rgrid、Gin[i]≦Ggrid、
Bin[i]>Bgridの条件を満たす色番号iをnum6に保存
(8)Rin[i]>Rgrid、Gin[i]>Ggrid、
Bin[i]>Bgridの条件を満たす色番号iをnum7に保存
なお、上記のnum0〜num7の全てが設定できた場合のみ、次のステップの補間による規則テーブルの生成を行い、設定できない色信号がある場合は、格子点の選択に戻る。
It is as follows when expressed in mathematical formulas.
(1) Rin [i] ≦ Rgrid, Gin [i] ≦ Ggrid,
The color number i satisfying the condition of Bin [i] ≦ Bgrid is stored in num0. (2) Rin [i]> Rgrid, Gin [i] ≦ Ggrid,
Color number i satisfying the condition of Bin [i] ≦ Bgrid is stored in num1 (3) Rin [i] ≦ Rgrid, Gin [i]> Ggrid,
The color number i satisfying the condition of Bin [i] ≦ Bgrid is stored in num2. (4) Rin [i] ≦ Rgrid, Gin [i] ≦ Ggrid,
The color number i satisfying the condition of Bin [i]> Bgrid is stored in num3 (5) Rin [i]> Rgrid, Gin [i]> Ggrid,
Color number i satisfying the condition of Bin [i] ≦ Bgrid is stored in num4 (6) Rin [i] ≦ Rgrid, Gin [i]> Ggrid,
The color number i satisfying the condition of Bin [i]> Bgrid is stored in num5 (7) Rin [i]> Rgrid, Gin [i] ≦ Ggrid,
The color number i satisfying the condition of Bin [i]> Bgrid is stored in num6 (8) Rin [i]> Rgrid, Gin [i]> Ggrid,
The color number i satisfying the condition of Bin [i]> Bgrid is stored in num7. Note that a color table that cannot be set is generated only when all of the above num0 to num7 can be set, by generating a rule table by interpolation in the next step. If there is, return to grid point selection.

図21は、本発明の第1実施例に係わる色の組の選択方法を示すフローチャートである。なお、図21のフローチャートでは、規則テーブルに登録するRGB値の範囲を、0≦R≦256、0≦G≦256、0≦B≦256とし、格子間隔が16の格子点に対応するRGB値を登録するものとする。このため、RGB番号(Rnum,Gnum,Bnum)は、0≦Rnum≦16、0≦Gnum≦16、0≦Bnum≦16の範囲の整数値となる。   FIG. 21 is a flowchart showing a method of selecting a color set according to the first embodiment of the present invention. In the flowchart of FIG. 21, the RGB value ranges registered in the rule table are 0 ≦ R ≦ 256, 0 ≦ G ≦ 256, 0 ≦ B ≦ 256, and the RGB values corresponding to the grid points with a grid interval of 16 are used. Shall be registered. Therefore, the RGB numbers (Rnum, Gnum, Bnum) are integer values in the range of 0 ≦ Rnum ≦ 16, 0 ≦ Gnum ≦ 16, and 0 ≦ Bnum ≦ 16.

図21において、まず、スキャナによる入力値と測色機による測色値を配列に設定する(ステップS71)。ここで、この配列に設定される色信号は、一般的に不規則なものとなり、配列の特定は、ターゲットの色に対応した色番号kを指定することにより行うことができる。   In FIG. 21, first, an input value by a scanner and a colorimetric value by a colorimeter are set in an array (step S71). Here, the color signals set in this arrangement are generally irregular, and the arrangement can be specified by designating the color number k corresponding to the target color.

次に、RGB番号(Rnum,Gnum,Bnum)をそれぞれ0に設定する(ステップS72)。 次に、RGB番号(Rnum,Gnum,Bnum)で特定される格子点を中心として、RGB空間を8つの領域に分割し(ステップS73)、分割された各領域について、格子点に最も近い色番号kを特定する(ステップS74)。このことにより、RGB空間上で格子点の色を包囲するターゲットの8つの色を選択することができる。   Next, the RGB number (Rnum, Gnum, Bnum) is set to 0 (step S72). Next, the RGB space is divided into eight regions around the lattice point specified by the RGB number (Rnum, Gnum, Bnum) (step S73), and the color number closest to the lattice point is determined for each divided region. k is specified (step S74). This makes it possible to select eight colors of the target that surround the colors of the grid points in the RGB space.

次に、RGB番号(Rnum,Gnum,Bnum)で特定された格子点について、その格子点の色を包囲するターゲットの8つの色を選択することができたかどうかを判断し(ステップS75)、格子点の色を包囲するターゲットの8つの色を選択することができた場合、補間による規則テーブルの生成を行ってから(ステップS76)、次の格子点の選択を行う(ステップS77〜ステップS84)。格子点の色を包囲するターゲットの8つの色を選択することができない場合、その格子点については補間による規則テーブルの生成を行わないようにして、次の格子点の選択を行う(ステップS77〜ステップS84)。   Next, with respect to the lattice point specified by the RGB number (Rnum, Gnum, Bnum), it is determined whether or not the eight colors of the target surrounding the color of the lattice point have been selected (step S75). If eight colors of the target surrounding the color of the point can be selected, a rule table is generated by interpolation (step S76), and then the next grid point is selected (step S77 to step S84). . If the eight colors of the target surrounding the color of the grid point cannot be selected, the next grid point is selected without generating a rule table by interpolation for the grid point (steps S77 to S77). Step S84).

以下、RGB番号(Rnum,Gnum,Bnum)がそれぞれ16に達するまで、RGB番号(Rnum,Gnum,Bnum)をそれぞれを1ずつ増加させる(ステップS77〜ステップS84)。この結果、RGB空間に生成される17×17×17個の格子点のうち、ターゲットの8つの色で包囲される格子点について、L* a* b* 値を規則テーブルに登録することができる。   Thereafter, each of the RGB numbers (Rnum, Gnum, Bnum) is incremented by 1 until each of the RGB numbers (Rnum, Gnum, Bnum) reaches 16 (steps S77 to S84). As a result, L * a * b * values can be registered in the rule table for the lattice points surrounded by the eight colors of the target among the 17 × 17 × 17 lattice points generated in the RGB space. .

補間による規則テーブルの生成では、色の組み合わせを補間することにより、新たな色信号の対応関係を多数作成し、作成した色信号の中から、RGB空間の格子点に近いRGB値に対応するL* a* b* 値を登録する。   In the generation of the rule table by interpolation, a large number of new color signal correspondences are created by interpolating color combinations, and L corresponding to RGB values close to the grid points in the RGB space from the created color signals. * a * b * Register the value.

なお、作成するデータは、格子点のRGB番号(Rnum,Gnum,Bnum)に対応するL* a* b* 値であるので、実際の作成データ形式は、
L[Rnum][Gnum][Bnum]、
a[Rnum][Gnum][Bnum]、
b[Rnum][Gnum][Bnum]、
という3次元配列となる。
Since the data to be created is an L * a * b * value corresponding to the RGB number (Rnum, Gnum, Bnum) of the grid point, the actual created data format is
L [Rnum] [Gnum] [Bnum],
a [Rnum] [Gnum] [Bnum],
b [Rnum] [Gnum] [Bnum],
This is a three-dimensional array.

以下、補間による規則テーブルの生成アルゴリズムを順を追って説明する。
まず、補間で作成する色の間隔を設定する。これは、補間で多数の色を生成する際に、補間点を極端に多く作成しても、使用されない補間点が多数発生して無駄となるので、補間で作成する色の生成間隔を制御することにより、補間を効率的に行うようにするためである。
Hereinafter, the rule table generation algorithm by interpolation will be described in order.
First, the interval between colors created by interpolation is set. This is because when generating a large number of colors by interpolation, even if an extremely large number of interpolation points are created, many unused interpolation points are generated and are wasted. Therefore, the generation interval of colors created by interpolation is controlled. Therefore, the interpolation is performed efficiently.

図22は、本発明の第1実施例に係わるRGB空間とL* a* b* 空間との分割方法を示す図である。図22の例では、RGB空間で概ね等間隔になるように補間で作成する色の生成間隔を設定するようにしている。   FIG. 22 is a diagram showing a method of dividing the RGB space and the L * a * b * space according to the first embodiment of the present invention. In the example of FIG. 22, the generation interval of colors created by interpolation is set so that the intervals are substantially equal in the RGB space.

図22において、色票をスキャナで読み取った時に得られたRGB値が、RGB空間上の点P1〜P9に分布し、色票を測色機で測色した時に得られたL* a* b* 値が、L* a* b* 空間上の点Q1〜Q9に分布しているものとする。ここで、点P1〜P9はそれぞれ点Q1〜Q9に対応しているものとする。そして、点P1〜P9はRGB空間上で不規則に分布し、この不規則な分布を規則的な分布にするため、RGB空間上の格子点K1〜K16に対応するL* a* b* 値を求めるものとする。   In FIG. 22, the RGB values obtained when the color chart is read by the scanner are distributed at points P1 to P9 in the RGB space, and L * a * b obtained when the color chart is measured by the colorimeter. * It is assumed that the values are distributed at points Q1 to Q9 in the L * a * b * space. Here, the points P1 to P9 correspond to the points Q1 to Q9, respectively. The points P1 to P9 are irregularly distributed in the RGB space, and the L * a * b * values corresponding to the lattice points K1 to K16 in the RGB space are used to make the irregular distribution regular. Is to be sought.

RGB空間上の格子点K1〜K5、K8、K9、16、K12〜K16については、格子点K1〜K5、K8、K9、16、K12〜K16を包囲する実測点が得られなかったため、補間による規則テーブルの生成の対象外となる。   For grid points K1 to K5, K8, K9, 16, and K12 to K16 in the RGB space, since the actual measurement points surrounding the grid points K1 to K5, K8, K9, 16, and K12 to K16 were not obtained, interpolation was performed. It is not subject to rule table generation.

RGB空間上の格子点K6が、補間による規則テーブルの生成の対象となった場合、格子点K6を中心としてRGB空間を分割し、格子点K6に最も近い点P1、P2、P4、P5を、分割されたRGB空間からそれぞれ選択する。点P1、P2、P4、P5が選択されると、点P1、P2、P4、P5で包囲される領域に、RGB空間上でほぼ等間隔になるように補間点を生成する。   When the grid point K6 in the RGB space is a target for generating a rule table by interpolation, the RGB space is divided around the grid point K6, and the points P1, P2, P4, and P5 closest to the grid point K6 are Each is selected from the divided RGB space. When the points P1, P2, P4, and P5 are selected, interpolation points are generated in the region surrounded by the points P1, P2, P4, and P5 so as to be almost equally spaced in the RGB space.

そして、点P1、P2、P4、P5で包囲される領域に生成された補間点の中から、格子点K6に最も近い補間点R1を検出する。補間点R1が検出されると、RGB空間上の点P1、P2、P4、P5に対応するL* a* b* 空間上の点Q1、Q2、Q4、Q5に対し、補間点R1を生成する時に使用した重み係数を適用して、RGB空間上の補間点R1に対応するL* a* b* 空間上の補間点S1を算出する。そして、RGB空間上の格子点K6の格子番号に対応させて、L* a* b* 空間上の補間点S1のL* a* b* 値を規則テーブルに登録する。   Then, the interpolation point R1 closest to the lattice point K6 is detected from the interpolation points generated in the region surrounded by the points P1, P2, P4, and P5. When the interpolation point R1 is detected, an interpolation point R1 is generated for the points Q1, Q2, Q4, and Q5 in the L * a * b * space corresponding to the points P1, P2, P4, and P5 in the RGB space. The interpolation point S1 in the L * a * b * space corresponding to the interpolation point R1 in the RGB space is calculated by applying the weighting factor used sometimes. Then, the L * a * b * value of the interpolation point S1 in the L * a * b * space is registered in the rule table in correspondence with the grid number of the grid point K6 in the RGB space.

RGB空間上の格子点K7が、補間による規則テーブルの生成の対象となった場合、格子点K7を中心としてRGB空間を分割し、格子点K7に最も近い点P2、P3、P5、P6を、分割されたRGB空間からそれぞれ選択する。点P2、P3、P5、P6が選択されると、点P2、P3、P5、P6で包囲される領域に、RGB空間上でほぼ等間隔になるように補間点を生成する。   When the grid point K7 in the RGB space is a target for generating a rule table by interpolation, the RGB space is divided around the grid point K7, and the points P2, P3, P5, and P6 closest to the grid point K7 are Each is selected from the divided RGB space. When the points P2, P3, P5, and P6 are selected, interpolation points are generated in the region surrounded by the points P2, P3, P5, and P6 so as to be substantially equally spaced in the RGB space.

そして、点P2、P3、P5、P6で包囲される領域に生成された補間点の中から、格子点K7に最も近い補間点R2を検出する。補間点R2が検出されると、RGB空間上の点P2、P3、P5、P6に対応するL* a* b* 空間上の点Q2、Q3、Q5、Q6に対し、補間点R2を生成する時に使用した重み係数を適用して、RGB空間上の補間点R2に対応するL* a* b* 空間上の補間点S2を算出する。そして、RGB空間上の格子点K7の格子番号に対応させて、L* a* b* 空間上の補間点S2のL* a* b* 値を規則テーブルに登録する。   Then, the interpolation point R2 closest to the grid point K7 is detected from the interpolation points generated in the region surrounded by the points P2, P3, P5, and P6. When the interpolation point R2 is detected, an interpolation point R2 is generated for the points Q2, Q3, Q5, and Q6 in the L * a * b * space corresponding to the points P2, P3, P5, and P6 in the RGB space. The interpolation point S2 on the L * a * b * space corresponding to the interpolation point R2 on the RGB space is calculated by applying the weighting factor used sometimes. Then, the L * a * b * value of the interpolation point S2 in the L * a * b * space is registered in the rule table in correspondence with the grid number of the grid point K7 in the RGB space.

RGB空間上の格子点K10が、補間による規則テーブルの生成の対象となった場合、格子点K10を中心としてRGB空間を分割し、格子点K10に最も近い点P4、P5、P7、P8を、分割されたRGB空間からそれぞれ選択する。点P4、P5、P7、P8が選択されると、点P4、P5、P7、P8で包囲される領域に、RGB空間上でほぼ等間隔になるように補間点を生成する。   When the grid point K10 in the RGB space is a target for generating a rule table by interpolation, the RGB space is divided around the grid point K10, and the points P4, P5, P7, and P8 closest to the grid point K10 are Each is selected from the divided RGB space. When the points P4, P5, P7, and P8 are selected, interpolation points are generated in the region surrounded by the points P4, P5, P7, and P8 so as to be substantially equally spaced in the RGB space.

そして、点P4、P5、P7、P8で包囲される領域に生成された補間点の中から、格子点K10に最も近い補間点R3を検出する。補間点R3が検出されると、RGB空間上の点P4、P5、P7、P8に対応するL* a* b* 空間上の点Q4、Q5、Q7、Q8に対し、補間点R3を生成する時に使用した重み係数を適用して、RGB空間上の補間点R3に対応するL* a* b* 空間上の補間点S3を算出する。そして、RGB空間上の格子点K10の格子番号に対応させて、L* a* b* 空間上の補間点S3のL* a* b* 値を規則テーブルに登録する。   Then, the interpolation point R3 closest to the lattice point K10 is detected from the interpolation points generated in the region surrounded by the points P4, P5, P7, and P8. When the interpolation point R3 is detected, an interpolation point R3 is generated for the points Q4, Q5, Q7, and Q8 in the L * a * b * space corresponding to the points P4, P5, P7, and P8 in the RGB space. The interpolation point S3 in the L * a * b * space corresponding to the interpolation point R3 in the RGB space is calculated by applying the weighting factor used sometimes. Then, the L * a * b * value of the interpolation point S3 in the L * a * b * space is registered in the rule table in correspondence with the grid number of the grid point K10 in the RGB space.

RGB空間上の格子点K11が、補間による規則テーブルの生成の対象となった場合、格子点K11を中心としてRGB空間を分割し、格子点K11に最も近い点P5、P6、P8、P9を、分割されたRGB空間からそれぞれ選択する。点P5、P6、P8、P9が選択されると、点P5、P6、P8、P9で包囲される領域に、RGB空間上でほぼ等間隔になるように補間点を生成する。   When the grid point K11 on the RGB space is a target for generating a rule table by interpolation, the RGB space is divided around the grid point K11, and the points P5, P6, P8, and P9 closest to the grid point K11 are Each is selected from the divided RGB space. When the points P5, P6, P8, and P9 are selected, interpolation points are generated in the region surrounded by the points P5, P6, P8, and P9 so that they are almost equally spaced in the RGB space.

そして、点P5、P6、P8、P9で包囲される領域に生成された補間点の中から、格子点K11に最も近い補間点R4を検出する。補間点R4が検出されると、RGB空間上の点P5、P6、P8、P9に対応するL* a* b* 空間上の点Q5、Q6、Q8、Q9に対し、補間点R4を生成する時に使用した重み係数を適用して、RGB空間上の補間点R4に対応するL* a* b* 空間上の補間点S4を算出する。そして、RGB空間上の格子点K11の格子番号に対応させて、L* a* b* 空間上の補間点S4のL* a* b* 値を規則テーブルに登録する。   Then, the interpolation point R4 closest to the grid point K11 is detected from the interpolation points generated in the region surrounded by the points P5, P6, P8, and P9. When the interpolation point R4 is detected, an interpolation point R4 is generated for the points Q5, Q6, Q8, and Q9 in the L * a * b * space corresponding to the points P5, P6, P8, and P9 in the RGB space. An interpolation point S4 in the L * a * b * space corresponding to the interpolation point R4 in the RGB space is calculated by applying the weighting factor used sometimes. Then, the L * a * b * value of the interpolation point S4 in the L * a * b * space is registered in the rule table in correspondence with the grid number of the grid point K11 in the RGB space.

なお、RGB空間上でほぼ等間隔になるように、色の組として選択された色信号で囲まれる範囲内に補間点を生成したため、L* a* b* 空間上でRGB値に対応する補間点の分布は、特定の領域に片寄ったものとなる。   Since the interpolation points are generated within the range surrounded by the color signals selected as the color set so that the intervals are substantially equal on the RGB space, the interpolation corresponding to the RGB values is performed on the L * a * b * space. The distribution of the points is shifted to a specific area.

図23は、本発明の第2実施例に係わるRGB空間とL* a* b* 空間との分割方法を示す図である。図23の例では、L* a* b* 空間で概ね等間隔になるように補間で作成する色の生成間隔を設定するようにしている。   FIG. 23 is a diagram showing a method of dividing the RGB space and the L * a * b * space according to the second embodiment of the present invention. In the example of FIG. 23, the generation interval of colors created by interpolation is set so that the intervals are substantially equal in the L * a * b * space.

図23において、色票をスキャナで読み取った時に得られたRGB値が、RGB空間上の点P1〜P9に分布し、色票を測色機で測色した時に得られたL* a* b* 値が、L* a* b* 空間上の点Q1〜Q9に分布しているものとする。ここで、点P1〜P9はそれぞれ点Q1〜Q9に対応しているものとする。そして、点P1〜P9はRGB空間上で不規則に分布し、この不規則な分布を規則的な分布にするため、RGB空間上の格子点K1〜K16に対応するL* a* b* 値を求めるものとする。   In FIG. 23, RGB values obtained when the color chart is read by the scanner are distributed at points P1 to P9 in the RGB space, and L * a * b obtained when the color chart is measured by the colorimeter. * It is assumed that the values are distributed at points Q1 to Q9 in the L * a * b * space. Here, the points P1 to P9 correspond to the points Q1 to Q9, respectively. The points P1 to P9 are irregularly distributed in the RGB space, and the L * a * b * values corresponding to the lattice points K1 to K16 in the RGB space are used to make the irregular distribution regular. Is to be sought.

RGB空間上の格子点K1〜K5、K8、K9、16、K12〜K16については、格子点K1〜K5、K8、K9、16、K12〜K16を包囲する実測点が得られなかったため、補間による規則テーブルの生成の対象外となる。   For grid points K1 to K5, K8, K9, 16, and K12 to K16 in the RGB space, since the actual measurement points surrounding the grid points K1 to K5, K8, K9, 16, and K12 to K16 were not obtained, interpolation was performed. It is not subject to rule table generation.

RGB空間上の格子点K6が、補間による規則テーブルの生成の対象となった場合、格子点K6を中心としてRGB空間を分割し、格子点K6に最も近い点P1、P2、P4、P5を、分割されたRGB空間からそれぞれ選択する。点P1、P2、P4、P5が選択されると、点P1、P2、P4、P5で包囲される領域に、L* a* b* 空間上でほぼ等間隔になるように補間点を生成する。ここで、L* a* b* 空間上でほぼ等間隔になるように、点P1、P2、P4、P5で包囲される領域に補間点を生成するには、L* a* b* 空間上の点Q1、Q2、Q4、Q5の配置状態に基づいて、RGB空間上に補間点を生成するときの重み係数を設定する。   When the grid point K6 in the RGB space is a target for generating a rule table by interpolation, the RGB space is divided around the grid point K6, and the points P1, P2, P4, and P5 closest to the grid point K6 are Each is selected from the divided RGB space. When the points P1, P2, P4, and P5 are selected, interpolation points are generated in the region surrounded by the points P1, P2, P4, and P5 so as to be almost equally spaced in the L * a * b * space. . Here, in order to generate interpolation points in the region surrounded by the points P1, P2, P4, and P5 so as to be almost equally spaced on the L * a * b * space, the L * a * b * space Based on the arrangement state of the points Q1, Q2, Q4, and Q5, a weighting factor for generating an interpolation point in the RGB space is set.

そして、点P1、P2、P4、P5で包囲される領域に生成された補間点の中から、格子点K6に最も近い補間点R1を検出する。補間点R1が検出されると、RGB空間上の点P1、P2、P4、P5に対応するL* a* b* 空間上の点Q1、Q2、Q4、Q5に対し、補間点R1を生成する時に使用した重み係数を適用して、RGB空間上の補間点R1に対応するL* a* b* 空間上の補間点S1を算出する。そして、RGB空間上の格子点K6の格子番号に対応させて、L* a* b* 空間上の補間点S1のL* a* b* 値を規則テーブルに登録する。   Then, the interpolation point R1 closest to the lattice point K6 is detected from the interpolation points generated in the region surrounded by the points P1, P2, P4, and P5. When the interpolation point R1 is detected, an interpolation point R1 is generated for the points Q1, Q2, Q4, and Q5 in the L * a * b * space corresponding to the points P1, P2, P4, and P5 in the RGB space. The interpolation point S1 in the L * a * b * space corresponding to the interpolation point R1 in the RGB space is calculated by applying the weighting factor used sometimes. Then, the L * a * b * value of the interpolation point S1 in the L * a * b * space is registered in the rule table in correspondence with the grid number of the grid point K6 in the RGB space.

RGB空間上の格子点K7が、補間による規則テーブルの生成の対象となった場合、格子点K7を中心としてRGB空間を分割し、格子点K7に最も近い点P2、P3、P5、P6を、分割されたRGB空間からそれぞれ選択する。点P2、P3、P5、P6が選択されると、点P2、P3、P5、P6で包囲される領域に、L* a* b* 空間上でほぼ等間隔になるように補間点を生成する。ここで、L* a* b* 空間上でほぼ等間隔になるように、点P2、P3、P5、P6で包囲される領域に補間点を生成するには、L* a* b* 空間上の点Q2、Q3、Q5、Q6の配置状態に基づいて、RGB空間上に補間点を生成するときの重み係数を設定する。   When the grid point K7 in the RGB space is a target for generating a rule table by interpolation, the RGB space is divided around the grid point K7, and the points P2, P3, P5, and P6 closest to the grid point K7 are Each is selected from the divided RGB space. When the points P2, P3, P5, and P6 are selected, interpolation points are generated in the region surrounded by the points P2, P3, P5, and P6 so as to be almost equally spaced in the L * a * b * space. . Here, in order to generate interpolation points in the region surrounded by the points P2, P3, P5, and P6 so as to be almost equally spaced in the L * a * b * space, the L * a * b * space Based on the arrangement state of the points Q2, Q3, Q5, and Q6, a weighting coefficient for generating an interpolation point in the RGB space is set.

そして、点P2、P3、P5、P6で包囲される領域に生成された補間点の中から、格子点K7に最も近い補間点R2を検出する。補間点R2が検出されると、RGB空間上の点P2、P3、P5、P6に対応するL* a* b* 空間上の点Q2、Q3、Q5、Q6に対し、補間点R2を生成する時に使用した重み係数を適用して、RGB空間上の補間点R2に対応するL* a* b* 空間上の補間点S2を算出する。そして、RGB空間上の格子点K7の格子番号に対応させて、L* a* b* 空間上の補間点S2のL* a* b* 値を規則テーブルに登録する。   Then, the interpolation point R2 closest to the grid point K7 is detected from the interpolation points generated in the region surrounded by the points P2, P3, P5, and P6. When the interpolation point R2 is detected, an interpolation point R2 is generated for the points Q2, Q3, Q5, and Q6 in the L * a * b * space corresponding to the points P2, P3, P5, and P6 in the RGB space. The interpolation point S2 on the L * a * b * space corresponding to the interpolation point R2 on the RGB space is calculated by applying the weighting factor used sometimes. Then, the L * a * b * value of the interpolation point S2 in the L * a * b * space is registered in the rule table in correspondence with the grid number of the grid point K7 in the RGB space.

RGB空間上の格子点K10が、補間による規則テーブルの生成の対象となった場合、格子点K10を中心としてRGB空間を分割し、格子点K10に最も近い点P4、P5、P7、P8を、分割されたRGB空間からそれぞれ選択する。点P4、P5、P7、P8が選択されると、点P4、P5、P7、P8で包囲される領域に、L* a* b* 空間上でほぼ等間隔になるように補間点を生成する。ここで、L* a* b* 空間上でほぼ等間隔になるように、点P4、P5、P7、P8で包囲される領域に補間点を生成するには、L* a* b* 空間上の点Q4、Q5、Q7、Q8の配置状態に基づいて、RGB空間上に補間点を生成するときの重み係数を設定する。   When the grid point K10 in the RGB space is a target for generating a rule table by interpolation, the RGB space is divided around the grid point K10, and the points P4, P5, P7, and P8 closest to the grid point K10 are Each is selected from the divided RGB space. When the points P4, P5, P7, and P8 are selected, interpolation points are generated in the region surrounded by the points P4, P5, P7, and P8 so that they are almost equally spaced in the L * a * b * space. . Here, in order to generate interpolation points in the region surrounded by the points P4, P5, P7, and P8 so as to be almost equally spaced on the L * a * b * space, the L * a * b * space Based on the arrangement state of the points Q4, Q5, Q7, and Q8, a weighting coefficient for generating interpolation points in the RGB space is set.

そして、点P4、P5、P7、P8で包囲される領域に生成された補間点の中から、格子点K10に最も近い補間点R3を検出する。補間点R3が検出されると、RGB空間上の点P4、P5、P7、P8に対応するL* a* b* 空間上の点Q4、Q5、Q7、Q8に対し、補間点R3を生成する時に使用した重み係数を適用して、RGB空間上の補間点R3に対応するL* a* b* 空間上の補間点S3を算出する。そして、RGB空間上の格子点K10の格子番号に対応させて、L* a* b* 空間上の補間点S3のL* a* b* 値を規則テーブルに登録する。   Then, the interpolation point R3 closest to the lattice point K10 is detected from the interpolation points generated in the region surrounded by the points P4, P5, P7, and P8. When the interpolation point R3 is detected, an interpolation point R3 is generated for the points Q4, Q5, Q7, and Q8 in the L * a * b * space corresponding to the points P4, P5, P7, and P8 in the RGB space. The interpolation point S3 in the L * a * b * space corresponding to the interpolation point R3 in the RGB space is calculated by applying the weighting factor used sometimes. Then, the L * a * b * value of the interpolation point S3 in the L * a * b * space is registered in the rule table in correspondence with the grid number of the grid point K10 in the RGB space.

RGB空間上の格子点K11が、補間による規則テーブルの生成の対象となった場合、格子点K11を中心としてRGB空間を分割し、格子点K11に最も近い点P5、P6、P8、P9を、分割されたRGB空間からそれぞれ選択する。点P5、P6、P8、P9が選択されると、点P5、P6、P8、P9で包囲される領域に、L* a* b* 空間上でほぼ等間隔になるように補間点を生成する。ここで、L* a* b* 空間上でほぼ等間隔になるように、点P5、P6、P8、P9で包囲される領域に補間点を生成するには、L* a* b* 空間上の点Q5、Q6、Q8、Q9の配置状態に基づいて、RGB空間上に補間点を生成するときの重み係数を設定する。   When the grid point K11 on the RGB space is a target for generating a rule table by interpolation, the RGB space is divided around the grid point K11, and the points P5, P6, P8, and P9 closest to the grid point K11 are Each is selected from the divided RGB space. When the points P5, P6, P8, and P9 are selected, interpolation points are generated in the region surrounded by the points P5, P6, P8, and P9 so that they are almost equally spaced in the L * a * b * space. . Here, in order to generate interpolation points in the region surrounded by the points P5, P6, P8, and P9 so as to be almost equally spaced in the L * a * b * space, the L * a * b * space Based on the arrangement state of the points Q5, Q6, Q8, and Q9, a weighting coefficient for generating an interpolation point in the RGB space is set.

そして、点P5、P6、P8、P9で包囲される領域に生成された補間点の中から、格子点K11に最も近い補間点R4を検出する。補間点R4が検出されると、RGB空間上の点P5、P6、P8、P9に対応するL* a* b* 空間上の点Q5、Q6、Q8、Q9に対し、補間点R4を生成する時に使用した重み係数を適用して、RGB空間上の補間点R4に対応するL* a* b* 空間上の補間点S4を算出する。そして、RGB空間上の格子点K11の格子番号に対応させて、L* a* b* 空間上の補間点S4のL* a* b* 値を規則テーブルに登録する。   Then, the interpolation point R4 closest to the grid point K11 is detected from the interpolation points generated in the region surrounded by the points P5, P6, P8, and P9. When the interpolation point R4 is detected, an interpolation point R4 is generated for the points Q5, Q6, Q8, and Q9 in the L * a * b * space corresponding to the points P5, P6, P8, and P9 in the RGB space. An interpolation point S4 in the L * a * b * space corresponding to the interpolation point R4 in the RGB space is calculated by applying the weighting factor used sometimes. Then, the L * a * b * value of the interpolation point S4 in the L * a * b * space is registered in the rule table in correspondence with the grid number of the grid point K11 in the RGB space.

なお、L* a* b* 空間上でほぼ等間隔になるように、色の組として選択された色信号で囲まれる範囲内に補間点を生成したため、RGB空間上でL* a* b* 値に対応する補間点の分布は、特定の領域に片寄ったものとなる。   Since the interpolation points are generated within the range surrounded by the color signals selected as the color set so that they are substantially equally spaced in the L * a * b * space, L * a * b * in the RGB space. The distribution of the interpolation points corresponding to the values is shifted to a specific area.

図24は、本発明の一実施例に係わる選択された点を3次元の色空間上で示す図である。
図24において、入力された3次元空間上の点Pに対し、点Pを包囲する8個の点P0〜P7が選択されている。そして、8個の点P0〜P7で包囲される領域に補間点を生成するものとすると、点P0〜P7を頂点とする6面体の対角線の長さを評価することにより、補間点の生成間隔を決定する。
FIG. 24 is a diagram illustrating selected points according to an embodiment of the present invention on a three-dimensional color space.
In FIG. 24, eight points P0 to P7 surrounding the point P are selected for the input point P in the three-dimensional space. Then, assuming that interpolation points are generated in the region surrounded by the eight points P0 to P7, the interpolation point generation interval is evaluated by evaluating the length of the diagonal line of the hexahedron having the points P0 to P7 as vertices. To decide.

すなわち、点P0と点P7との間の距離、点P1と点P5との間の距離、点P2と点P67との間の距離及び点P3と点P4との間の距離を、3次元空間上の各成分についてそれぞれ求める。そして、点P0と点P7との間の距離、点P1と点P5との間の距離、点P2と点P67との間の距離及び点P3と点P4との間の距離の中の最小値に基づいて、3次元空間上の各成分の生成間隔とする。   That is, the distance between the points P0 and P7, the distance between the points P1 and P5, the distance between the points P2 and P67, and the distance between the points P3 and P4 are represented in the three-dimensional space. Find each component above. The minimum value among the distance between the points P0 and P7, the distance between the points P1 and P5, the distance between the points P2 and P67, and the distance between the points P3 and P4. Based on the above, the generation interval of each component in the three-dimensional space is set.

以下、数式を用いて示す。なお、ここでは、RGB空間よりも人間の感覚に合ったL* a* b* 空間で概ね等間隔になるように補間点の生成間隔を設定する。
まず、色の組の選択で設定されたnum0〜num7のLab値は、以下の式で求めることができる。
Hereafter, it shows using numerical formula. Here, the generation interval of the interpolation points is set so as to be approximately equal in the L * a * b * space that is more suitable for human sense than the RGB space.
First, the Lab values of num0 to num7 set by selecting a color set can be obtained by the following equation.

L0=Lin[num0]、a0=ain[num0]、
b0=bin[num0] ・・・(7)
L1=Lin[num1]、a1=ain[num1]、
b1=bin[num1] ・・・(8)
L2=Lin[num2]、a2=ain[num2]、
b2=bin[num2] ・・・(9)
L3=Lin[num3]、a3=ain[num3]、
b3=bin[num3] ・・・(10)
L4=Lin[num4]、a4=ain[num4]、
b4=bin[num4] ・・・(11)
L5=Lin[num5]、a5=ain[num5]、
b5=bin[num5] ・・・(12)
L6=Lin[num6]、a6=ain[num6]、
b6=bin[num6] ・・・(13)
L7=Lin[num7]、a7=ain[num7]、
b7=bin[num7] ・・・(14)
次に、(7)〜(14)式のLab値で包囲される6面体の対角線のL成分、a成分及びb成分の長さの最小値は、以下のように求めることができる。
L0 = Lin [num0], a0 = ain [num0],
b0 = bin [num0] (7)
L1 = Lin [num1], a1 = ain [num1],
b1 = bin [num1] (8)
L2 = Lin [num2], a2 = ain [num2],
b2 = bin [num2] (9)
L3 = Lin [num3], a3 = ain [num3],
b3 = bin [num3] (10)
L4 = Lin [num4], a4 = ain [num4],
b4 = bin [num4] (11)
L5 = Lin [num5], a5 = ain [num5],
b5 = bin [num5] (12)
L6 = Lin [num6], a6 = ain [num6],
b6 = bin [num6] (13)
L7 = Lin [num7], a7 = ain [num7],
b7 = bin [num7] (14)
Next, the minimum values of the lengths of the diagonal L component, a component, and b component of the hexahedron surrounded by the Lab values of Equations (7) to (14) can be obtained as follows.

Lint0=(int)(W/sqrt((L0−L7)2
+(a0−a7)2 +(b0−b7)2 )+0.5)
Lint1=(int)(W/sqrt((L1−L5)2
+(a1−a5)2 +(b1−b5)2 )+0.5)
Lint2=(int)(W/sqrt((L2−L6)2
+(a2−a6)2 +(b2−b6)2 )+0.5)
Lint3=(int)(W/sqrt((L3−L4)2
+(a3−a4)2 +(b3−b4)2 )+0.5)
Lint=Lint0〜Lint3の最小値 ・・・(15)
(ただし、0の場合は1とする)
aint0=(int)(W/sqrt((L0−L7)2
+(a0−a7)2 +(b0−b7)2 )+0.5)
aint1=(int)(W/sqrt((L1−L5)2
+(a1−a5)2 +(b1−b5)2 )+0.5)
aint2=(int)(W/sqrt((L2−L6)2
+(a2−a6)2 +(b2−b6)2 )+0.5)
aint3=(int)(W/sqrt((L3−L4)2
+(a3−a4)2 +(b3−b4)2 )+0.5)
aint=aint0〜aint3の最小値
(ただし、0の場合は1とする) ・・・(16)
bint0=(int)(W/sqrt((L0−L7)2
+(a0−a7)2 +(b0−b7)2 )+0.5)
bint1=(int)(W/sqrt((L1−L5)2
+(a1−a5)2 +(b1−b5)2 )+0.5)
bint2=(int)(W/sqrt((L2−L6)2
+(a2−a6)2 +(b2−b6)2 )+0.5)
bint3=(int)(W/sqrt((L3−L4)2
+(a3−a4)2 +(b3−b4)2 )+0.5)
bint=bint0〜bint3の最小値 ・・・(17)
(ただし、0の場合は1とする)
ここで、Wはあらかじめ設定された値で、ここでは、32とする。
Lint0 = (int) (W / sqrt ((L0−L7) 2
+ (A0-a7) 2 + (b0-b7) 2 ) +0.5)
Lint1 = (int) (W / sqrt ((L1-L5) 2
+ (A1-a5) 2 + (b1-b5) 2 ) +0.5)
Lint2 = (int) (W / sqrt ((L2-L6) 2
+ (A2-a6) 2 + (b2-b6) 2 ) +0.5)
Lint3 = (int) (W / sqrt ((L3-L4) 2
+ (A3-a4) 2 + (b3-b4) 2 ) +0.5)
Lint = Minimum value of Lint0 to Lint3 (15)
(However, 0 is 1)
aint0 = (int) (W / sqrt ((L0-L7) 2
+ (A0-a7) 2 + (b0-b7) 2 ) +0.5)
aint1 = (int) (W / sqrt ((L1-L5) 2
+ (A1-a5) 2 + (b1-b5) 2 ) +0.5)
aint2 = (int) (W / sqrt ((L2-L6) 2
+ (A2-a6) 2 + (b2-b6) 2 ) +0.5)
aint3 = (int) (W / sqrt ((L3-L4) 2
+ (A3-a4) 2 + (b3-b4) 2 ) +0.5)
aint = minimum value of aint0 to aint3 (however, 0 is 1) (16)
bint0 = (int) (W / sqrt ((L0-L7) 2
+ (A0-a7) 2 + (b0-b7) 2 ) +0.5)
bint1 = (int) (W / sqrt ((L1-L5) 2
+ (A1-a5) 2 + (b1-b5) 2 ) +0.5)
bint2 = (int) (W / sqrt ((L2-L6) 2
+ (A2-a6) 2 + (b2-b6) 2 ) +0.5)
bint3 = (int) (W / sqrt ((L3-L4) 2
+ (A3-a4) 2 + (b3-b4) 2 ) +0.5)
bint = minimum value of bint0 to bint3 (17)
(However, 0 is 1)
Here, W is a preset value, and is 32 here.

そして、(15)〜(17)式により求めたLint、aint、bintを補間点の生成間隔とすることができる。
次に、新たな色信号のRGB値(Rnew,Gnew,Bnew)を補間により算出する。この補間による新たな色信号の作成では、一辺の長さがWの立方体を、(15)〜(17)式により設定した間隔(Lint、aint、bint)で8つの立方体に分割する。そして、分割して得られた立方体の体積を、色の組みとして選択された8個の色信号の重み係数とすることにより、補間点を生成する。
Then, Lint, aint, and bint obtained by the equations (15) to (17) can be used as the interpolation point generation interval.
Next, the RGB values (Rnew, Gnew, Bnew) of the new color signal are calculated by interpolation. In creating a new color signal by this interpolation, a cube whose side is W is divided into eight cubes at intervals (Lint, aint, bint) set by the equations (15) to (17). Then, an interpolation point is generated by using the volume of the cube obtained by the division as a weighting coefficient of eight color signals selected as a set of colors.

図25は、本発明の一実施例に係わる立方体補間で使用する重み係数の算出方法を説明する図である。
図25において、一辺がWの立方体の内部の、0≦Lw≦W,0≦aw≦W,0≦bw≦Wの範囲で、LwについてはLint間隔、awについてはaint間隔、bwについてはbint間隔の全ての組み合わせの値(Lw,aw,bw)の点Oを設定し、この点Oを通る平面で一辺がWの立方体を分割する。この時、分割後の立方体の体積V(0,0,0)、V(1,0,0)、V(0,1,0)、V(0,0,1)、V(0,1,1)、V(1,0,1)、V(1,1,0)、V(1,1,1)は、以下の式で与えられる。
FIG. 25 is a diagram for explaining a method of calculating weighting factors used in cube interpolation according to an embodiment of the present invention.
In FIG. 25, in the range of 0 ≦ Lw ≦ W, 0 ≦ aw ≦ W, 0 ≦ bw ≦ W, inside a cube whose side is W, Lint interval for Lw, aint interval for aw, and bint for bw A point O of all combinations of intervals (Lw, aw, bw) is set, and a cube whose side is W on a plane passing through the point O is divided. At this time, the volume V (0,0,0), V (1,0,0), V (0,1,0), V (0,0,1), V (0,1) of the cube after division. , 1), V (1, 0, 1), V (1, 1, 0), V (1, 1, 1) are given by the following equations.

V(0,0,0)=(W−Lw)・(W−aw)・(W−bw)
・・・(18)
V(1,0,0)=Lw・(W−aw)・(W−bw) ・・・(19)
V(0,1,0)=(W−Lw)・aw・(W−bw) ・・・(20)
V(0,0,1)=(W−Lw)・(W−aw)bw ・・・(21)
V(0,1,1)=(W−Lw)aw・bw ・・・(22)
V(1,0,1)=Lw・(W−aw)bw ・・・(23)
V(1,1,0)=Lw・aw・(W−bw) ・・・(24)
V(1,1,1)=Lw・aw・bw ・・・(25)
また、色の組として選択された8つの色信号のRGB値(R0、G0、B0)〜(R7、G7、B7)は、以下の式で与えられる。
V (0,0,0) = (W−Lw) · (W−aw) · (W−bw)
... (18)
V (1, 0, 0) = Lw · (W−aw) · (W−bw) (19)
V (0,1,0) = (W−Lw) · aw · (W−bw) (20)
V (0,0,1) = (W−Lw) · (W−aw) bw (21)
V (0,1,1) = (W−Lw) aw · bw (22)
V (1, 0, 1) = Lw · (W−aw) bw (23)
V (1,1,0) = Lw · aw · (W−bw) (24)
V (1,1,1) = Lw · aw · bw (25)
The RGB values (R0, G0, B0) to (R7, G7, B7) of the eight color signals selected as the color set are given by the following equations.

R0=Rin[num0]、G0=Gin[num0]、
B0=Bin[num0] ・・・(26)
R1=Rin[num1]、G1=Gin[num1]、
B1=Bin[num1] ・・・(27)
R2=Rin[num2]、G2=Gin[num2]、
B2=Bin[num2] ・・・(28)
R3=Rin[num3]、G3=Gin[num3]、
B3=Bin[num3] ・・・(29)
R4=Rin[num4]、G4=Gin[num4]、
B4=Bin[num4] ・・・(30)
R5=Rin[num5]、G5=Gin[num5]、
B5=Bin[num5] ・・・(31)
R6=Rin[num6]、G6=Gin[num6]、
B6=Bin[num6] ・・・(32)
R7=Rin[num7]、G7=Gin[num7]、
B7=Bin[num7] ・・・(33)
(26)〜(33)式の色の組として選択された8つの色信号のRGB値に対し、(18)〜(25)式の重み係数をそれぞれかけ合わせることにより、補間による新たな色信号のRGB値(Rnew,Gnew,Bnew)は、以下のように求めることができる。
R0 = Rin [num0], G0 = Gin [num0],
B0 = Bin [num0] (26)
R1 = Rin [num1], G1 = Gin [num1],
B1 = Bin [num1] (27)
R2 = Rin [num2], G2 = Gin [num2],
B2 = Bin [num2] (28)
R3 = Rin [num3], G3 = Gin [num3],
B3 = Bin [num3] (29)
R4 = Rin [num4], G4 = Gin [num4],
B4 = Bin [num4] (30)
R5 = Rin [num5], G5 = Gin [num5],
B5 = Bin [num5] (31)
R6 = Rin [num6], G6 = Gin [num6],
B6 = Bin [num6] (32)
R7 = Rin [num7], G7 = Gin [num7],
B7 = Bin [num7] (33)
A new color signal by interpolation is obtained by multiplying the RGB values of the eight color signals selected as the color sets of the equations (26) to (33) by the weighting factors of the equations (18) to (25), respectively. RGB values (Rnew, Gnew, Bnew) can be obtained as follows.

Rnew=(R0・V(0,0,0)+R1・V(1,0,0)
+R2・V(0,1,0)+R3・V(0,0,1)
+R4・V(1,1,0)+R5・V(0,1,1)
+R6・V(1,0,1)+R7・V(1,1,1))
/(W・W・W) ・・・(34)
Gnew=(G0・V(0,0,0)+G1・V(1,0,0)
+G2・V(0,1,0)+G3・V(0,0,1)
+G4・V(1,1,0)+G5・V(0,1,1)
+G6・V(1,0,1)+G7・V(1,1,1))
/(W・W・W) ・・・(35)
Bnew=(B0・V(0,0,0)+B1・V(1,0,0)
+B2・V(0,1,0)+B3・V(0,0,1)
+B4・V(1,1,0)+B5・V(0,1,1)
+B6・V(1,0,1)+B7・V(1,1,1))
/(W・W・W) ・・・(36)
(34)〜(36)式の演算を、0≦Lw≦W,0≦aw≦W,0≦bw≦Wの範囲で、LwについてはLint間隔、awについてはaint間隔、bwについてはbint間隔で繰り返すことにより、色の組として選択された8つの色信号で囲まれる範囲内に複数の補間点が生成される。
Rnew = (R0 · V (0,0,0) + R1 · V (1,0,0)
+ R2 · V (0,1,0) + R3 · V (0,0,1)
+ R4 · V (1,1,0) + R5 · V (0,1,1)
+ R6 · V (1, 0, 1) + R7 · V (1, 1, 1))
/ (W / W / W) (34)
Gnew = (G0 · V (0,0,0) + G1 · V (1,0,0)
+ G2 · V (0,1,0) + G3 · V (0,0,1)
+ G4 · V (1,1,0) + G5 · V (0,1,1)
+ G6 · V (1, 0, 1) + G7 · V (1, 1, 1))
/ (W / W / W) (35)
Bnew = (B0 · V (0,0,0) + B1 · V (1,0,0)
+ B2 · V (0,1,0) + B3 · V (0,0,1)
+ B4 · V (1,1,0) + B5 · V (0,1,1)
+ B6 · V (1,0,1) + B7 · V (1,1,1))
/ (W / W / W) (36)
The calculations of the equations (34) to (36) are performed in the range of 0 ≦ Lw ≦ W, 0 ≦ aw ≦ W, 0 ≦ bw ≦ W, Lint interval for Lw, aint interval for aw, and bint interval for bw. By repeating the above, a plurality of interpolation points are generated within the range surrounded by the eight color signals selected as the color set.

次に、データ仮設定を行う。
このデータ仮設定では、(34)〜(36)式により求めた補間による新たな色信号のRGB値(Rnew,Gnew,Bnew)と、(4)〜(6)式により求めた格子点の格子RGB値(Rgrid、Ggrid、Bgrid)とを比較する。そして、補間により生成した新たな色信号の中から格子点に最も近いもの検出し、この検出された色信号を生成する時に用いた値(Lw,aw,bw)を検出する。
Next, data temporary setting is performed.
In this data temporary setting, the RGB values (Rnew, Gnew, Bnew) of the new color signal by interpolation obtained from the equations (34) to (36) and the lattice point lattice obtained from the equations (4) to (6) are used. The RGB values (Rgrid, Ggrid, Bgrid) are compared. Then, the closest color to the lattice point is detected from the new color signals generated by interpolation, and the values (Lw, aw, bw) used when generating the detected color signals are detected.

すなわち、以下の式で、距離の二乗diffを算出する。
diff=(Rgrid−Rnew)2
+(Ggrid−Gnew)2 +(Bgrid−Bnew)2
・・・(37)
そして、格子番号(Rnum,Gnum,Bnum)の格子点に設定されたデータが無いか(初回のみ)、あるいは、新たに算出した距離の二乗diffが、すでに設定されている距離の二乗diffminより小さければ、以下のようにデータを設定する。
That is, the distance squared diff is calculated by the following equation.
diff = (Rgrid-Rnew) 2
+ (Ggrid-Gnew) 2 + (Bgrid-Bnew) 2
... (37)
And there is no data set at the grid point of the grid number (Rnum, Gnum, Bnum) (only the first time), or the newly calculated distance squared diff is smaller than the already set distance squared diffmin For example, data is set as follows.

diffmin=diff ・・・(38)
Lwmin=Lw ・・・(39)
awmin=aw ・・・(40)
bwmin=bw ・・・(41)
次に、データ設定を行う。
diffmin = diff (38)
Lwmin = Lw (39)
awmin = aw (40)
bwmin = bw (41)
Next, data setting is performed.

このデータ設定では、データ仮設定までの繰り返し処理が終了したら、(39)〜(41)式により求めたLwmin,awmin,bwminを用いることにより、L[Rnum][Gnum][Bnum]、a[Rnum][Gnum][Bnum]、b[Rnum][Gnum][Bnum]を算出する。   In this data setting, when the repetitive processing up to the data temporary setting is completed, L [Rnum] [Gnum] [Bnum], a [ Rnum] [Gnum] [Bnum], b [Rnum] [Gnum] [Bnum] are calculated.

すなわち、一辺がWの立方体を分割する時の基準となる値(Lw,aw,bw)を以下のように設定する。
Lw=Lwmin ・・・(42)
aw=awmin ・・・(43)
bw=bwmin ・・・(44)
そして、(42)〜(44)式により設定された値(Lw,aw,bw)を用いて、立方体の体積V(0,0,0)、V(1,0,0)、V(0,1,0)、V(0,0,1)、V(0,1,1)、V(1,0,1)、V(1,1,0)、V(1,1,1)を、(18)〜(25)式により求める。
That is, the reference values (Lw, aw, bw) when dividing a cube whose side is W are set as follows.
Lw = Lwmin (42)
aw = awmin (43)
bw = bwmin (44)
Then, using the values (Lw, aw, bw) set by the equations (42) to (44), the cubic volumes V (0, 0, 0), V (1, 0, 0), V (0 , 1, 0), V (0, 0, 1), V (0, 1, 1), V (1, 0, 1), V (1, 1, 0), V (1, 1, 1) Is obtained by the equations (18) to (25).

次に、(7)〜(14)式の色の組として選択された8つの色信号に対応するL* a* b* 値に対し、(18)〜(25)式により求めた重み係数をそれぞれかけ合わせることにより、格子番号(Rnum,Gnum,Bnum)の格子点に対応するL* a* b* 値を、以下の式で求めることができる。   Next, with respect to the L * a * b * values corresponding to the eight color signals selected as the color pairs of the expressions (7) to (14), the weighting coefficient obtained by the expressions (18) to (25) is used. By multiplying them, the L * a * b * values corresponding to the lattice points of the lattice numbers (Rnum, Gnum, Bnum) can be obtained by the following equations.

L[Rnum][Gnum][Bnum]
=(L0・V(0,0,0)+L1・V(1,0,0)
+L2・V(0,1,0)+L3・V(0,0,1)
+L4・V(1,1,0)+L5・V(0,1,1)
+L6・V(1,0,1)+L7・V(1,1,1))
/(W・W・W) ・・・(45)
a[Rnum][Gnum][Bnum]
=(a0・V(0,0,0)+a1・V(1,0,0)
+a2・V(0,1,0)+a3・V(0,0,1)
+a4・V(1,1,0)+a5・V(0,1,1)
+a6・V(1,0,1)+a7・V(1,1,1))
/(W・W・W)
b[Rnum][Gnum][Bnum] ・・・(46)
=(b0・V(0,0,0)+b1・V(1,0,0)
+b2・V(0,1,0)+b3・V(0,0,1)
+b4・V(1,1,0)+b5・V(0,1,1)
+b6・V(1,0,1)+b7・V(1,1,1))
/(W・W・W) ・・・(47)
図26は、本発明の第1実施例に係わる補間による規則的な色信号の生成方法を示すフローチャートである。なお、図26のフローチャートでは、一辺が32の立方体を分割する時の基準となる値(Lw,aw,bw)を、LwがLint間隔、awがaint間隔、bwがbint間隔で設定した場合について示している。
L [Rnum] [Gnum] [Bnum]
= (L0 · V (0,0,0) + L1 · V (1,0,0)
+ L2 · V (0,1,0) + L3 · V (0,0,1)
+ L4 · V (1,1,0) + L5 · V (0,1,1)
+ L6 · V (1,0,1) + L7 · V (1,1,1))
/ (W / W / W) (45)
a [Rnum] [Gnum] [Bnum]
= (A0 · V (0,0,0) + a1 · V (1,0,0)
+ A2 · V (0,1,0) + a3 · V (0,0,1)
+ A4 · V (1,1,0) + a5 · V (0,1,1)
+ A6 · V (1, 0, 1) + a7 · V (1, 1, 1))
/ (W / W / W)
b [Rnum] [Gnum] [Bnum] (46)
= (B0 · V (0,0,0) + b1 · V (1,0,0)
+ B2 · V (0,1,0) + b3 · V (0,0,1)
+ B4 · V (1,1,0) + b5 · V (0,1,1)
+ B6 · V (1,0,1) + b7 · V (1,1,1))
/ (W / W / W) (47)
FIG. 26 is a flowchart showing a method of generating a regular color signal by interpolation according to the first embodiment of the present invention. In the flowchart of FIG. 26, a reference value (Lw, aw, bw) for dividing a cube having 32 sides is set with Lw being a Lint interval, aw being an aint interval, and bw being a bint interval. Show.

図26において、まず、(15)〜(17)式により、色作成間隔(Lint、aint、bint)を設定する(ステップS91)。
次に、一辺が32の立方体を分割する時の基準となる値(Lw,aw,bw)をそれぞれ0に設定する(ステップS92)。
In FIG. 26, first, the color creation intervals (Lint, aint, bint) are set by equations (15) to (17) (step S91).
Next, the reference values (Lw, aw, bw) for dividing a cube having 32 sides are set to 0 (step S92).

次に、値(Lw,aw,bw)を基準として立方体を分割することにより、(18)〜(25)式の重み係数を算出する。そして、(26)〜(33)式により色の組として選択された8つの色信号のRGB値に対し、(18)〜(25)式の重み係数をそれぞれかけ合わせることにより、補間による新たな色信号のRGB値(Rnew,Gnew,Bnew)を算出する(ステップS93)。   Next, by dividing the cube based on the values (Lw, aw, bw), the weighting coefficients of the equations (18) to (25) are calculated. Then, by multiplying the RGB values of the eight color signals selected as color sets by the equations (26) to (33) by the weighting factors of the equations (18) to (25), a new value by interpolation is obtained. The RGB values (Rnew, Gnew, Bnew) of the color signal are calculated (step S93).

次に、ステップS93で求めた補間による新たな色信号のRGB値(Rnew,Gnew,Bnew)と、(4)〜(6)式により求めた格子点の格子RGB値(Rgrid、Ggrid、Bgrid)との間の距離の二乗diffを算出する(ステップS94)。   Next, the RGB values (Rnew, Gnew, Bnew) of the new color signal obtained by the interpolation obtained in step S93 and the grid RGB values (Rgrid, Ggrid, Bgrid) of the lattice points obtained by the equations (4) to (6). The square diff of the distance between is calculated (step S94).

次に、格子番号(Rnum,Gnum,Bnum)の格子点に設定されたデータが無いか、または、新たに算出した距離の二乗diffが、すでに設定されている距離の二乗diffminより小さい場合(ステップS95)、立方体を分割する時の基準となる値(Lw,aw,bw)及び新たに算出した距離の二乗diffを格納する(ステップS96)。   Next, when there is no data set at the grid point of the grid number (Rnum, Gnum, Bnum), or the newly calculated distance squared diff is smaller than the already set distance squared diffmin (step S95), a value (Lw, aw, bw) serving as a reference when dividing the cube and the square diff of the newly calculated distance are stored (step S96).

以下、立方体を分割する時の基準となる値(Lw,aw,bw)がそれぞれ32以上に達するまで、立方体を分割する時の基準となる値(Lw,aw,bw)をそれぞれ色作成間隔(Lint、aint、bint)で増加させることにより(ステップS97〜ステップS104)、新たな色信号のRGB値(Rnew,Gnew,Bnew)を補間演算で算出する。   Hereinafter, until the reference value (Lw, aw, bw) for dividing the cube reaches 32 or more, the reference value (Lw, aw, bw) for dividing the cube is changed to the color creation interval ( By increasing the value by (Lint, aint, bint) (steps S97 to S104), the RGB values (Rnew, Gnew, Bnew) of the new color signal are calculated by interpolation.

次に、ステップS96で格納した値(Lw,aw,bw)を基準として立方体を分割することにより、(18)〜(25)式の重み係数を算出する。そして、(7)〜(14)式により色の組として選択された8つの色信号のL* a* b* 値に対し、(18)〜(25)式の重み係数をそれぞれかけ合わせることにより、格子番号(Rnum,Gnum,Bnum)の格子点に対応するL* a* b* 値を算出する(ステップS105)。   Next, by dividing the cube based on the values (Lw, aw, bw) stored in step S96, the weighting coefficients of equations (18) to (25) are calculated. Then, by multiplying the L * a * b * values of the eight color signals selected as the color pairs by the expressions (7) to (14) by the weighting coefficients of the expressions (18) to (25), respectively. Then, the L * a * b * value corresponding to the lattice point of the lattice number (Rnum, Gnum, Bnum) is calculated (step S105).

以上により、実測で得られたRGB値の範囲内の格子点についての規則テーブルを生成することができる。
外挿による規則テーブルの追加では、格子点を順次選択しながら、補間による規則テーブルの生成で設定できなかった格子点を検出したら、設定済の格子点の色信号を外挿することにより、補間演算では生成できなかった格子点の色信号を生成する。ここで、補間演算または外挿演算で設定した格子点に対して、その外側の格子点の色信号を作成するという処理を繰り返すことで、色再現範囲全体の格子点に色信号を設定することができる。
As described above, it is possible to generate a rule table for lattice points within the range of RGB values obtained by actual measurement.
When adding a rule table by extrapolation, if a grid point that cannot be set by generating a rule table by interpolation is detected while sequentially selecting grid points, interpolation is performed by extrapolating the color signals of the set grid points. A color signal of a grid point that could not be generated by calculation is generated. Here, by repeating the process of creating the color signal of the outer grid point for the grid point set by the interpolation calculation or extrapolation calculation, the color signal is set at the grid point of the entire color reproduction range. Can do.

実際の処理では、まず、設定対象となる格子点を順次選択する。そして、この格子点にデータが設定されていなかった場合、その隣の格子点とさらにもう一つ隣の格子点の両方にデータが設定されているか調べる。この調査は、26方向について予め定められた順序で行う。そして、データが設定されていない格子点の隣の格子点とさらにもう一つ隣の格子点の両方にデータが設定されているものが検出されるまで継続する。この2つの格子点が検出されれば、この格子点に設定されている2つのデータを外挿して、選択した格子点のデータを生成する。   In actual processing, first, lattice points to be set are sequentially selected. If no data is set at this lattice point, it is checked whether data is set at both the adjacent lattice point and another adjacent lattice point. This investigation is performed in a predetermined order for the 26 directions. Then, the process continues until a data point set to both a grid point adjacent to a grid point for which no data is set and another grid point is detected. If these two grid points are detected, the data of the selected grid point is generated by extrapolating the two data set at this grid point.

以上の処理が、全ての格子点について一巡すると、設定済みの格子点の外側の1層分の格子点について、データの設定が行われる。この処理を何回も繰り返せば、外挿による格子点のデータの設定を何層でも行うことができ、最終的には、RGB空間の全ての格子点にデータを設定することができる。   When the above processing is completed for all the grid points, data is set for one layer of grid points outside the set grid points. If this process is repeated many times, the grid point data can be set by any number of layers by extrapolation, and finally, the data can be set at all grid points in the RGB space.

その後、設定したL* a* b* 値が色再現範囲外の場合は、そのL* a* b* 値をクリッピングする。例えば、設定したL* a* b* 値が
(0≦L≦255,−128≦a≦127,−128≦b≦127)の範囲に入るようにする。
After that, if the set L * a * b * value is outside the color reproduction range, the L * a * b * value is clipped. For example, the set L * a * b * values fall within the range of (0 ≦ L ≦ 255, −128 ≦ a ≦ 127, −128 ≦ b ≦ 127).

図27は、外挿により格子点のRGB値を生成する方法を示す図である。
図27において、実測により得られたRGB値が色空間に分布しているものとすると、補間演算で生成できる格子点のRGB値の範囲は、実測により得られたRGB値で囲まれる範囲の内側となる。これは、実測により得られたRGB値で囲まれる範囲の色信号の数を補間演算で増やし、この中の色信号から格子点の色信号を選択するためである。
FIG. 27 is a diagram illustrating a method of generating RGB values of grid points by extrapolation.
In FIG. 27, assuming that the RGB values obtained by the actual measurement are distributed in the color space, the range of the RGB values of the grid points that can be generated by the interpolation calculation is inside the range surrounded by the RGB values obtained by the actual measurement. It becomes. This is because the number of color signals in the range surrounded by the RGB values obtained by actual measurement is increased by interpolation, and the color signal at the lattice point is selected from the color signals among them.

このため、実測により得られたRGB値で囲まれる範囲の色信号の数を補間演算で増やして、規則テーブルを生成しただけでは、機器の色信号の範囲全体の格子点についての規則テーブルを生成できないので、外挿演算で色信号を追加することにより、機器の色信号の範囲全体の格子点についての規則テーブルを生成できるようにする。   For this reason, simply generating a rule table by increasing the number of color signals in the range surrounded by RGB values obtained by actual measurement and generating a rule table generates a rule table for the entire grid point of the device color signal range. Since it is not possible to add a color signal by extrapolation, it is possible to generate a rule table for lattice points of the entire range of the color signal of the device.

例えば、実測で得られたRGB値の範囲内で外側に位置する2つの格子点K1、K2を用いて外挿することにより、実測で得られたRGB値の範囲外に格子点K3の色信号を算出することができる。すなわち、一番外側のデータ設定済みの格子点K2に対応する色信号を中心に、格子点K2から1つ内側の格子点K1に対応する色信号と対称な色信号を、格子点K3の色信号とすることができる。   For example, by extrapolating using two grid points K1 and K2 located outside in the range of RGB values obtained by actual measurement, the color signal of the grid point K3 outside the range of RGB values obtained by actual measurement Can be calculated. That is, a color signal symmetric with respect to the color signal corresponding to the lattice point K1 that is one inward from the lattice point K2, with the color signal corresponding to the outermost data-set lattice point K2 as the center, is the color of the lattice point K3. It can be a signal.

図28は、選択した格子点Oの隣の格子点K1〜K26の位置を3次元空間で示す図である。
図28において、選択した格子点Oに対し、3次元空間での隣の格子点K1〜K26は26個だけ存在している。このため、選択した格子点Oの隣の格子点K1〜K26を選択するには、26通りの方向を調べる必要がある。
FIG. 28 is a diagram showing the positions of the grid points K1 to K26 adjacent to the selected grid point O in a three-dimensional space.
In FIG. 28, there are only 26 grid points K1 to K26 adjacent to the selected grid point O in the three-dimensional space. For this reason, in order to select the lattice points K1 to K26 adjacent to the selected lattice point O, it is necessary to examine 26 directions.

図29は、補間により設定された格子点及び外挿により設定された格子点の分布を示す図である。
図29において、実測により得られたRGB値が境界Aの内側に分布しているものとすると、境界Aの内側の格子点(黒丸)については、補間によりデータの設定が行われ、境界Aの外側の格子点(白丸)については、外挿によりデータの設定が行われる例を示している。外挿によりデータの設定を行う場合、データ設定済みの格子点に隣接するデータ未設定の格子点を検出する。そして、データ設定済みの格子点のデータを用いることにより、データ未設定の格子点のデータを算出する。
FIG. 29 is a diagram showing the distribution of grid points set by interpolation and grid points set by extrapolation.
In FIG. 29, assuming that the RGB values obtained by actual measurement are distributed inside the boundary A, the grid points (black circles) inside the boundary A are set by interpolation, and the data of the boundary A is set. For the outer grid point (white circle), an example is shown in which data is set by extrapolation. When data is set by extrapolation, grid points where data is not set adjacent to grid points where data has been set are detected. Then, by using data of grid points for which data has been set, data of grid points for which data has not been set is calculated.

例えば、RGB空間の格子点Pに対応するL* a* b* 値を求める場合、格子点Pに隣接する格子点P1と格子点P1のさらに隣に隣接する格子点P2とを取り出す。ここで、格子点P1に対応するL* a* b* 値と格子点P2に対応するL* a* b* 値とは、補間演算により算出されているものとする。そして、格子点P1に対応するL* a* b* 値と格子点P2に対応するL* a* b* 値とを用いることにより、格子点Pに対応するL* a* b* 値を算出する。   For example, when obtaining an L * a * b * value corresponding to a grid point P in the RGB space, a grid point P1 adjacent to the grid point P and a grid point P2 adjacent to the grid point P1 are extracted. Here, it is assumed that the L * a * b * value corresponding to the lattice point P1 and the L * a * b * value corresponding to the lattice point P2 are calculated by interpolation. Then, by using the L * a * b * value corresponding to the grid point P1 and the L * a * b * value corresponding to the grid point P2, the L * a * b * value corresponding to the grid point P is calculated. To do.

以上の処理をRGB空間の全ての格子点に対して行うことにより、境界Bの内側の1層分の格子点にL* a* b* 値を設定することができる。また、境界Bの内側の格子点のデータを用いて外挿することにより、境界Cの内側の1層分の格子点にL* a* b* 値を設定することができる。さらに、境界Cの内側の格子点のデータを用いて外挿することにより、境界Dの内側の1層分の格子点にL* a* b* 値を設定することができる。   By performing the above processing on all grid points in the RGB space, L * a * b * values can be set at grid points for one layer inside the boundary B. Further, by extrapolating using the data of the grid points inside the boundary B, L * a * b * values can be set at the grid points for one layer inside the boundary C. Furthermore, by extrapolating using the data of the grid points inside the boundary C, L * a * b * values can be set at the grid points for one layer inside the boundary D.

図30は、図29の格子点Pに対応するL* a* b* 値を、外挿により算出する方法を説明する図である。
図30において、RGB空間の格子点P1は格子点Pに隣接し、RGB空間の格子点P2は格子点Pのさらに隣に隣接するものとする。また、RGB空間の格子点P1はL* a* b* 空間の点Q1に対応し、RGB空間の格子点P2はL* a* b* 空間の点Q2に対応しているものとする。さらに、点Q1及び点Q2のL* a* b* 値は補間演算に算出されているものとする。この時、格子点Pに対応するL* a* b* 値は、点Q1に対して点Q2と点対称となっている点QのL* a* b* 値として求めることができる。
FIG. 30 is a diagram for explaining a method of calculating the L * a * b * values corresponding to the lattice points P in FIG. 29 by extrapolation.
In FIG. 30, a grid point P1 in the RGB space is adjacent to the grid point P, and a grid point P2 in the RGB space is adjacent to the grid point P. Further, the grid point P1 in the RGB space corresponds to the point Q1 in the L * a * b * space, and the grid point P2 in the RGB space corresponds to the point Q2 in the L * a * b * space. Furthermore, it is assumed that the L * a * b * values of the points Q1 and Q2 are calculated in the interpolation calculation. At this time, the L * a * b * value corresponding to the lattice point P can be obtained as the L * a * b * value of the point Q that is symmetric with respect to the point Q2 with respect to the point Q1.

以下、外挿による規則テーブルの追加アルゴリズムを順を追って説明する。
まず、初期設定として、外挿設定済みフラグ=0に設定する。この外挿設定済みフラグは、機器の色信号の範囲全体の全ての格子点について、データが設定されたかどうかを判定するものである。すなわち、機器の色信号の範囲全体の全ての格子点を1回スキャンしただけでは、設定済みの格子点の外側の1層だけしかデータを設定できないので、機器の色信号の範囲全体の全ての格子点にデータを設定するには、機器の色信号の範囲全体の全ての格子点を何度もスキャンする必要がある。このため、機器の色信号の範囲全体の全ての格子点が選択されたかどうかを判断するだけでは、機器の色信号の範囲全体の全ての格子点について、データが設定されたかどうかを判別できないからである。
Hereinafter, the rule table addition algorithm by extrapolation will be described in order.
First, an extrapolation set flag = 0 is set as an initial setting. This extrapolation set flag is used to determine whether data has been set for all grid points in the entire color signal range of the device. That is, only scanning all the grid points in the entire range of the device color signal can set data for only one layer outside the set grid points. In order to set data at grid points, it is necessary to repeatedly scan all the grid points in the entire range of the color signal of the device. For this reason, it is not possible to determine whether or not data has been set for all grid points in the entire range of the device color signal simply by determining whether or not all grid points in the entire range of the color signal of the device have been selected. It is.

次に、格子番号(Rnum,Gnum,Bnum)の格子点を、
0≦Rnum<17,0≦Gnum<17,0≦Bnum<17の範囲の整数値の全ての組み合わせについて順次選択する。
Next, the lattice point of the lattice number (Rnum, Gnum, Bnum)
All combinations of integer values in the range of 0 ≦ Rnum <17, 0 ≦ Gnum <17, and 0 ≦ Bnum <17 are sequentially selected.

そして、全ての格子点の選択が一巡したら、外挿設定済みフラグを調べ、外挿設定済みフラグ=1ならば、初期設定に戻り、外挿設定済みフラグ=0ならば、全ての処理を終了する。   When all the grid points have been selected, the extrapolation set flag is checked. If the extrapolation set flag = 1, the process returns to the initial setting. If the extrapolation set flag = 0, the entire process ends. To do.

次に、選択した格子番号(Rnum,Gnum,Bnum)の格子点にデータが設定されていない場合のみ、以降の処理を継続し、選択した格子番号(Rnum,Gnum,Bnum)の格子点にデータが設定されている場合は、次の格子点の選択を行う。   Next, only when the data is not set at the grid point of the selected grid number (Rnum, Gnum, Bnum), the subsequent processing is continued, and the data is stored at the grid point of the selected grid number (Rnum, Gnum, Bnum). Is set, the next grid point is selected.

次に、以下の順序で、選択した格子番号(Rnum,Gnum,Bnum)の格子点の隣とさらにもう一つ隣の格子点にデータが設定されているかを、26通りの方向について調べる。そして、26通りのいずれかの方向において、データが設定されているものが見つかった段階で、隣の格子点のRGB番号を、
(Rnum1、Gnum1、Bnum1)、
さらに隣の格子点のRGB番号を、
(Rnum2、Gnum2、Bnum2)
とし、外挿演算処理へ進む。
Next, in the following order, it is examined in 26 directions whether data is set at the grid point adjacent to the grid point of the selected grid number (Rnum, Gnum, Bnum) and further one next. Then, in any of the 26 directions, at the stage where the data is set, the RGB number of the adjacent grid point is
(Rnum1, Gnum1, Bnum1),
Furthermore, the RGB number of the adjacent grid point is
(Rnum2, Gnum2, Bnum2)
And proceed to extrapolation calculation processing.

なお、26通りのいずれの方向においても、データが設定されているものが見つからなかった場合、次の格子点の選択を行う。
ここで、選択した格子点Oの隣の格子点K1〜K26のRGB番号(Rnum1、Gnum1、Bnum1)、及び選択した格子点Oのさらに隣の格子点のRGB番号(Rnum2、Gnum2、Bnum2)を、選択した格子点OのRGB番号(Rnum、Gnum、Bnum)を用いて表すと、以下の式になる。
1) (Rnum1,Gnum1,Bnum1)
=(Rnum+1,Gnum,Bnum)(K1)
(Rnum2,Gnum2,Bnum2)
=(Rnum+2,Gnum,Bnum)
2) (Rnum1,Gnum1,Bnum1)
=(Rnum−1,Gnum,Bnum)(K2)
(Rnum2,Gnum2,Bnum2)
=(Rnum−2,Gnum,Bnum)
3) (Rnum1,Gnum1,Bnum1)
=(Rnum,Gnum+1,Bnum)(K3)
(Rnum2,Gnum2,Bnum2)
=(Rnum,Gnum+2,Bnum)
4) (Rnum1,Gnum1,Bnum1)
=(Rnum,Gnum−1,Bnum1)(K4)
(Rnum2,Gnum2,Bnum2)
=(Rnum,Gnum−2,Bnum)
5) (Rnum1,Gnum1,Bnum1)
=(Rnum,Gnum,Bnum+1)(K5)
(Rnum2,Gnum2,Bnum2)
=(Rnum,Gnum,Bnum+2)
6) (Rnum1,Gnum1,Bnum1)
=(Rnum,Gnum,Bnum−1)(K6)
(Rnum2,Gnum2,Bnum2)
=(Rnum,Gnum,Bnum−2)
7) (Rnum1,Gnum1,Bnum1)
=(Rnum+1,Gnum+1,Bnum)(K7)
(Rnum2,Gnum2,Bnum2)
=(Rnum+2,Gnum+2,Bnum)
8) (Rnum1,Gnum1,Bnum1)
=(Rnum+1,Gnum−1,Bnum)(K8)
(Rnum2,Gnum2,Bnum2)
=(Rnum+2,Gnum−2,Bnum)
9) (Rnum1,Gnum1,Bnum1)
=(Rnum−1,Gnum+1,Bnum)(K9)
(Rnum2,Gnum2,Bnum2)
=(Rnum−2,Gnum+2,Bnum)
10)(Rnum1,Gnum1,Bnum1)
=(Rnum−1,Gnum−1,Bnum)(K10)
(Rnum2,Gnum2,Bnum2)
=(Rnum−2,Gnum−2,Bnum)
11)(Rnum1,Gnum1,Bnum1)
=(Rnum+1,Gnum,Bnum+1)(K11)
(Rnum2,Gnum2,Bnum2)
=(Rnum+2,Gnum,Bnum+2)
12)(Rnum1,Gnum1,Bnum1)
=(Rnum+1,Gnum,Bnum−1)(K12)
(Rnum2,Gnum2,Bnum2)
=(Rnum−2,Gnum,Bnum−2)
13)(Rnum1,Gnum1,Bnum1)
=(Rnum−1,Gnum,Bnum+1)(K13)
(Rnum2,Gnum2,Bnum2)
=(Rnum−2,Gnum,Bnum+2)
14)(Rnum1,Gnum1,Bnum1)
=(Rnum−1,Gnum,Bnum−1)(K14)
(Rnum2,Gnum2,Bnum2)
=(Rnum−2,Gnum,Bnum−2)
15)(Rnum1,Gnum1,Bnum1)
=(Rnum,Gnum+1,Bnum+1)(K15)
(Rnum2,Gnum2,Bnum2)
=(Rnum,Gnum+2,Bnum+2)
16)(Rnum1,Gnum1,Bnum1)
=(Rnum,Gnum+1,Bnum−1)(K16)
(Rnum2,Gnum2,Bnum2)
=(Rnum,Gnum+2,Bnum−2)
17)(Rnum1,Gnum1,Bnum1)
=(Rnum,Gnum−1,Bnum+1)(K17)
(Rnum2,Gnum2,Bnum2)
=(Rnum,Gnum−2,Bnum+2)
18)(Rnum1,Gnum1,Bnum1)
=(Rnum,Gnum−1,Bnum−1)(K18)
(Rnum2,Gnum2,Bnum2)
=(Rnum,Gnum−2,Bnum−2)
19)(Rnum1,Gnum1,Bnum1)
=(Rnum+1,Gnum+1,Bnum+1)(K19)
(Rnum2,Gnum2,Bnum2)
=(Rnum+2,Gnum+2,Bnum+2)
20)(Rnum1,Gnum1,Bnum1)
=(Rnum+1,Gnum+1,Bnum−1)(K20)
(Rnum2,Gnum2,Bnum2)
=(Rnum+2,Gnum+2,Bnum−2)
21)(Rnum1,Gnum1,Bnum1)
=(Rnum+1,Gnum−1,Bnum+1)(K21)
(Rnum2,Gnum2,Bnum2)
=(Rnum+2,Gnum−2,Bnum+2)
22)(Rnum1,Gnum1,Bnum1)
=(Rnum+1,Gnum−1,Bnum−1)(K22)
(Rnum2,Gnum2,Bnum2)
=(Rnum+2,Gnum−2,Bnum−2)
23)(Rnum1,Gnum1,Bnum1)
=(Rnum−1,Gnum+1,Bnum+1)(K23)
(Rnum2,Gnum2,Bnum2)
=(Rnum−2,Gnum+2,Bnum+2)
24)(Rnum1,Gnum1,Bnum1)
=(Rnum−1,Gnum+1,Bnum−1)(K24)
(Rnum2,Gnum2,Bnum2)
=(Rnum−2,Gnum+2,Bnum−2)
25)(Rnum1,Gnum1,Bnum1)
=(Rnum−1,Gnum−1,Bnum+1)(K25)
(Rnum2,Gnum2,Bnum2)
=(Rnum−2,Gnum−2,Bnum+2)
26)(Rnum1,Gnum1,Bnum1)
=(Rnum−1,Gnum−1,Bnum−1)(K26)
(Rnum2,Gnum2,Bnum2)
=(Rnum−2,Gnum−2,Bnum−2)
このように、選択した格子点Oの隣に相当する方向は26方向あるので、1)〜26)の順序で順次調べる。なお、この順序は一例であって、この順序以外でもよい。
If no data set is found in any of the 26 directions, the next grid point is selected.
Here, the RGB numbers (Rnum1, Gnum1, Bnum1) of the grid points K1 to K26 adjacent to the selected grid point O and the RGB numbers (Rnum2, Gnum2, Bnum2) of the grid points adjacent to the selected grid point O are obtained. When expressed using the RGB numbers (Rnum, Gnum, Bnum) of the selected grid point O, the following equation is obtained.
1) (Rnum1, Gnum1, Bnum1)
= (Rnum + 1, Gnum, Bnum) (K1)
(Rnum2, Gnum2, Bnum2)
= (Rnum + 2, Gnum, Bnum)
2) (Rnum1, Gnum1, Bnum1)
= (Rnum-1, Gnum, Bnum) (K2)
(Rnum2, Gnum2, Bnum2)
= (Rnum-2, Gnum, Bnum)
3) (Rnum1, Gnum1, Bnum1)
= (Rnum, Gnum + 1, Bnum) (K3)
(Rnum2, Gnum2, Bnum2)
= (Rnum, Gnum + 2, Bnum)
4) (Rnum1, Gnum1, Bnum1)
= (Rnum, Gnum-1, Bnum1) (K4)
(Rnum2, Gnum2, Bnum2)
= (Rnum, Gnum-2, Bnum)
5) (Rnum1, Gnum1, Bnum1)
= (Rnum, Gnum, Bnum + 1) (K5)
(Rnum2, Gnum2, Bnum2)
= (Rnum, Gnum, Bnum + 2)
6) (Rnum1, Gnum1, Bnum1)
= (Rnum, Gnum, Bnum-1) (K6)
(Rnum2, Gnum2, Bnum2)
= (Rnum, Gnum, Bnum-2)
7) (Rnum1, Gnum1, Bnum1)
= (Rnum + 1, Gnum + 1, Bnum) (K7)
(Rnum2, Gnum2, Bnum2)
= (Rnum + 2, Gnum + 2, Bnum)
8) (Rnum1, Gnum1, Bnum1)
= (Rnum + 1, Gnum-1, Bnum) (K8)
(Rnum2, Gnum2, Bnum2)
= (Rnum + 2, Gnum-2, Bnum)
9) (Rnum1, Gnum1, Bnum1)
= (Rnum-1, Gnum + 1, Bnum) (K9)
(Rnum2, Gnum2, Bnum2)
= (Rnum-2, Gnum + 2, Bnum)
10) (Rnum1, Gnum1, Bnum1)
= (Rnum-1, Gnum-1, Bnum) (K10)
(Rnum2, Gnum2, Bnum2)
= (Rnum-2, Gnum-2, Bnum)
11) (Rnum1, Gnum1, Bnum1)
= (Rnum + 1, Gnum, Bnum + 1) (K11)
(Rnum2, Gnum2, Bnum2)
= (Rnum + 2, Gnum, Bnum + 2)
12) (Rnum1, Gnum1, Bnum1)
= (Rnum + 1, Gnum, Bnum-1) (K12)
(Rnum2, Gnum2, Bnum2)
= (Rnum-2, Gnum, Bnum-2)
13) (Rnum1, Gnum1, Bnum1)
= (Rnum-1, Gnum, Bnum + 1) (K13)
(Rnum2, Gnum2, Bnum2)
= (Rnum-2, Gnum, Bnum + 2)
14) (Rnum1, Gnum1, Bnum1)
= (Rnum-1, Gnum, Bnum-1) (K14)
(Rnum2, Gnum2, Bnum2)
= (Rnum-2, Gnum, Bnum-2)
15) (Rnum1, Gnum1, Bnum1)
= (Rnum, Gnum + 1, Bnum + 1) (K15)
(Rnum2, Gnum2, Bnum2)
= (Rnum, Gnum + 2, Bnum + 2)
16) (Rnum1, Gnum1, Bnum1)
= (Rnum, Gnum + 1, Bnum-1) (K16)
(Rnum2, Gnum2, Bnum2)
= (Rnum, Gnum + 2, Bnum-2)
17) (Rnum1, Gnum1, Bnum1)
= (Rnum, Gnum-1, Bnum + 1) (K17)
(Rnum2, Gnum2, Bnum2)
= (Rnum, Gnum-2, Bnum + 2)
18) (Rnum1, Gnum1, Bnum1)
= (Rnum, Gnum-1, Bnum-1) (K18)
(Rnum2, Gnum2, Bnum2)
= (Rnum, Gnum-2, Bnum-2)
19) (Rnum1, Gnum1, Bnum1)
= (Rnum + 1, Gnum + 1, Bnum + 1) (K19)
(Rnum2, Gnum2, Bnum2)
= (Rnum + 2, Gnum + 2, Bnum + 2)
20) (Rnum1, Gnum1, Bnum1)
= (Rnum + 1, Gnum + 1, Bnum-1) (K20)
(Rnum2, Gnum2, Bnum2)
= (Rnum + 2, Gnum + 2, Bnum-2)
21) (Rnum1, Gnum1, Bnum1)
= (Rnum + 1, Gnum-1, Bnum + 1) (K21)
(Rnum2, Gnum2, Bnum2)
= (Rnum + 2, Gnum-2, Bnum + 2)
22) (Rnum1, Gnum1, Bnum1)
= (Rnum + 1, Gnum-1, Bnum-1) (K22)
(Rnum2, Gnum2, Bnum2)
= (Rnum + 2, Gnum-2, Bnum-2)
23) (Rnum1, Gnum1, Bnum1)
= (Rnum-1, Gnum + 1, Bnum + 1) (K23)
(Rnum2, Gnum2, Bnum2)
= (Rnum-2, Gnum + 2, Bnum + 2)
24) (Rnum1, Gnum1, Bnum1)
= (Rnum-1, Gnum + 1, Bnum-1) (K24)
(Rnum2, Gnum2, Bnum2)
= (Rnum-2, Gnum + 2, Bnum-2)
25) (Rnum1, Gnum1, Bnum1)
= (Rnum-1, Gnum-1, Bnum + 1) (K25)
(Rnum2, Gnum2, Bnum2)
= (Rnum-2, Gnum-2, Bnum + 2)
26) (Rnum1, Gnum1, Bnum1)
= (Rnum-1, Gnum-1, Bnum-1) (K26)
(Rnum2, Gnum2, Bnum2)
= (Rnum-2, Gnum-2, Bnum-2)
As described above, since there are 26 directions corresponding to the next to the selected lattice point O, it is sequentially examined in the order of 1) to 26). This order is an example, and other orders may be used.

次に、外挿演算処理では、補間により生成された規則テーブルを参照することにより、RGB番号(Rnum1、Gnum1、Bnum1)の格子点に対応するL* a* b* 値、及びRGB番号(Rnum2、Gnum2、Bnum2)の格子点に対応するL* a* b* 値を獲得する。そして、RGB番号(Rnum1、Gnum1、Bnum1)の格子点に対応するL* a* b* 値を中心に、RGB番号(Rnum2、Gnum2、Bnum2)の格子点に対応するL* a* b* 値と対称なL* a* b* 値を、以下の式により算出する。   Next, in the extrapolation calculation process, the L * a * b * values corresponding to the grid points of the RGB numbers (Rnum1, Gnum1, Bnum1) and the RGB numbers (Rnum2) are referred to by referring to the rule table generated by the interpolation. , Gnum2, Bnum2), L * a * b * values corresponding to the lattice points are obtained. Then, L * a * b * values corresponding to the grid points of the RGB numbers (Rnum2, Gnum2, Bnum2) around the L * a * b * values corresponding to the grid points of the RGB numbers (Rnum1, Gnum1, Bnum1). L * a * b * values that are symmetric with respect to are calculated by the following equation.

L[Rnum][Gnum][Bnum]
=L[Rnum1][Gnum1][Bnum1]・2
−L[Rnum2][Gnum2][Bnum2] ・・・(48)
a[Rnum][Gnum][Bnum]
=a[Rnum1][Gnum1][Bnum1]・2
−a[Rnum2][Gnum2][Bnum2] ・・・(49)
b[Rnum][Gnum][Bnum]
=b[Rnum1][Gnum1][Bnum1]・2
−b[Rnum2][Gnum2][Bnum2] ・・・(50)
そして、(48)〜(50)式により算出された、
L[Rnum][Gnum][Bnum]
a[Rnum][Gnum][Bnum]
b[Rnum][Gnum][Bnum]
をRGB番号(Rnum、Gnum、Bnum)の格子点に対応するL* a* b* 値として、規則テーブルに登録する。なお、この時、外挿設定済みフラグ=1に設定する。
L [Rnum] [Gnum] [Bnum]
= L [Rnum1] [Gnum1] [Bnum1] · 2
-L [Rnum2] [Gnum2] [Bnum2] (48)
a [Rnum] [Gnum] [Bnum]
= A [Rnum1] [Gnum1] [Bnum1] · 2
-A [Rnum2] [Gnum2] [Bnum2] (49)
b [Rnum] [Gnum] [Bnum]
= B [Rnum1] [Gnum1] [Bnum1] · 2
-B [Rnum2] [Gnum2] [Bnum2] (50)
And calculated by the equations (48) to (50),
L [Rnum] [Gnum] [Bnum]
a [Rnum] [Gnum] [Bnum]
b [Rnum] [Gnum] [Bnum]
Are registered in the rule table as L * a * b * values corresponding to grid points of RGB numbers (Rnum, Gnum, Bnum). At this time, the extrapolation set flag = 1 is set.

以上の処理により、全ての格子点についてのL* a* b* 値を設定することができる。
次に、全ての格子点の値を設定した後、以下の式により、L* a* b* 値をクリッピングする。
Through the above processing, L * a * b * values for all grid points can be set.
Next, after setting the values of all grid points, the L * a * b * values are clipped by the following formula.

if 0>L then L=0
if 100<L then L=100
if −128>a then a=−128
if 127<a then a=127
if −128>b then b=−128
if 127<b then b=127
以上の処理により、補間演算に用いる色信号の選択のやり直しを行うことなく、規則テーブルを効率的に生成することができる。
if 0> L then L = 0
if 100 <L then L = 100
if -128> a then a = -128
if 127 <a then a = 127
if -128> b then b = -128
if 127 <b then b = 127
With the above processing, the rule table can be generated efficiently without reselecting the color signal used for the interpolation calculation.

図31は、本発明の一実施例に係わる外挿処理を示すフローチャートである。
図31において、まず、初期設定として、外挿設定済みフラグを0に設定する(ステップS111)。なお、初期状態では、実測点で包囲される範囲内の格子点だけにデータが設定されている。
FIG. 31 is a flowchart showing extrapolation processing according to an embodiment of the present invention.
In FIG. 31, first, as an initial setting, an extrapolation set flag is set to 0 (step S111). In the initial state, data is set only for the lattice points within the range surrounded by the actual measurement points.

次に、RGB番号(Rnum,Gnum,Bnum)を選択することにより、RGB空間の格子点を選択し(ステップS112)、選択した格子点にデータが設定されているか調査する(ステップS113)。選択した格子点にデータが設定されていない場合には、データ設定処理を行う。   Next, by selecting an RGB number (Rnum, Gnum, Bnum), a grid point in the RGB space is selected (step S112), and it is checked whether data is set at the selected grid point (step S113). If no data is set for the selected grid point, a data setting process is performed.

データ設定処理では、選択した格子点の隣の格子点とさらに隣の格子点を選択し(ステップS114)、選択した格子点の隣の格子点とさらに隣の格子点のデータが設定済みか調査する(ステップS115)。ここで、隣の格子点のRGB番号を(Rnum1,Gnum1,Bnum1)、さらに隣の格子点のRGB番号を(Rnum2,Gnum2,Bum2)とする。   In the data setting process, a grid point adjacent to the selected grid point and a grid point adjacent to the selected grid point are selected (step S114), and it is checked whether data of the grid point adjacent to the selected grid point and the grid point adjacent to the selected grid point has been set. (Step S115). Here, the RGB number of the adjacent grid point is (Rnum1, Gnum1, Bnum1), and the RGB number of the adjacent grid point is (Rnum2, Gnum2, Bum2).

そして、26方向のいずれかの方向において、選択した格子点の隣の格子点とさらに隣の格子点のデータが設定されている場合、選択した格子点の隣の格子点とさらに隣の格子点のデータを用いて外挿演算処理を行うことにより、選択した格子点に対応するL* a* b* 値を算出するとともに(ステップS116)、外挿設定済みフラグを1に設定する(ステップS117)。   Then, in any of the 26 directions, when the data of the grid point adjacent to the selected grid point and the grid point adjacent to the selected grid point are set, the grid point adjacent to the selected grid point and the grid point adjacent to the selected grid point By performing extrapolation calculation processing using the above data, an L * a * b * value corresponding to the selected grid point is calculated (step S116), and an extrapolation set flag is set to 1 (step S117). ).

一方、26方向の全ての方向において、選択した格子点の隣の格子点とさらに隣の格子点のデータが設定されていない場合、全ての格子点が選択済みでなければ(ステップS118)、ステップS112に戻って、RGB空間の次の格子点を選択する。   On the other hand, if the data of the grid point adjacent to the selected grid point and the data of the grid point adjacent to the selected grid point are not set in all the 26 directions, all the grid points have not been selected (step S118). Returning to S112, the next grid point in the RGB space is selected.

全ての格子点の第1回目の選択が終了し、外挿設定済みフラグが1の場合(ステップS119)、ステップS111に戻り、全ての格子点の第2回目の選択を行うことにより、新たに設定された格子点のさらに外側に格子点のデータの設定を行う。以上の処理を繰り返し、RGB空間の全ての格子点のデータの設定が終了すると、外挿設定済みフラグがステップS119で0と判断され、処理が終了する。   When the first selection of all grid points is completed and the extrapolation set flag is 1 (step S119), the process returns to step S111, and a new selection is made by performing the second selection of all grid points. The data of the grid point is set further outside the set grid point. When the above process is repeated and the setting of data for all grid points in the RGB space is completed, the extrapolation set flag is determined to be 0 in step S119, and the process ends.

次に、本発明の第2実施例に係わるテーブル変換方法について説明する。この第2実施例に係わるテーブル変換方法は、四面体補間により不規則テーブルを規則テーブルに変換するようにしたものである。   Next, a table conversion method according to the second embodiment of the present invention will be described. In the table conversion method according to the second embodiment, an irregular table is converted into a rule table by tetrahedral interpolation.

この第2実施例の処理ステップは、「色の組の作成」、「補間による規則テーブルの生成」及び「外挿による規則テーブルの追加」の3段階からなる。
色の組の作成では、格子RGB値を囲む不規則テーブルの色信号を、各格子点について求める。ここで、1つの格子点につき4つの色信号を選択する。なお、この4つの色信号を、以下、「色の組み」と呼ぶ。
The processing steps of the second embodiment are composed of three stages: “creation of color set”, “generation of rule table by interpolation”, and “addition of rule table by extrapolation”.
In creating a color set, an irregular table color signal surrounding a grid RGB value is obtained for each grid point. Here, four color signals are selected for each grid point. These four color signals are hereinafter referred to as “color sets”.

この色の組は、規則テーブルとして生成する格子RGB値を順次選択しながら、この格子点の周囲の4つの色信号(ターゲットのスキャナ入力値と測色値)を不規則テーブルから選択することで生成される。ここで、格子点を包囲する4つの色信号を効率的に選択するには、色空間を固定的に分割するのではなく、色信号の分布に応じて座標軸を回転させ、回転した座標軸を基準に座標値の大小関係で色空間を分割する。   This set of colors is obtained by selecting four color signals (target scanner input value and colorimetric value) around this grid point from the irregular table while sequentially selecting grid RGB values to be generated as a rule table. Generated. Here, in order to efficiently select the four color signals that surround the grid points, the coordinate space is rotated according to the distribution of the color signals and the rotated coordinate axes are used as a reference instead of dividing the color space in a fixed manner. The color space is divided by the magnitude relationship of coordinate values.

以下、色の組の作成アルゴリズムを順を追って説明する。
まず、初期化として、不規則テーブルに登録されているRGB値及びL* a* b* 値を配列に設定する。
In the following, the color group creation algorithm will be described in order.
First, as initialization, RGB values and L * a * b * values registered in the irregular table are set in the array.

すなわち、不規則テーブルに登録されているRGB値及びL* a* b* 値を配列Lin[i],ain[i],bin[i],Rin[i],Gin[i],Bin[i]に設定する。ここで、パッチの色番号iは、0≦i<色数である。   That is, the RGB values and L * a * b * values registered in the irregular table are converted into the arrays Lin [i], ain [i], bin [i], Rin [i], Gin [i], Bin [i ] Is set. Here, the color number i of the patch is 0 ≦ i <color number.

次に、格子番号を順次指定することにより、RGB空間の格子点の色信号を順次選択する。
すなわち、(4)〜(6)式により、Rgridの値、Ggridの値及びBgridの値を順次設定する。
Next, the color signals of the grid points in the RGB space are sequentially selected by sequentially specifying the grid numbers.
That is, the value of Rgrid, the value of Ggrid, and the value of Bgrid are sequentially set by the equations (4) to (6).

次に、各格子点を中心にRGB空間を4つの領域に分け、各領域の中で格子点との距離が最も近い不規則テーブルの色信号を選択する。
ここで、RGB空間の4つの領域への分け方は、回転した座標系で行う。すなわち、格子点に最も近い不規則テーブルの第1の色信号を選択する。
Next, the RGB space is divided into four regions around each lattice point, and the color signal of the irregular table having the closest distance to the lattice point in each region is selected.
Here, the method of dividing the RGB space into four regions is performed by a rotated coordinate system. That is, the first color signal of the irregular table closest to the lattice point is selected.

次に、第1の色信号がR軸上で負の値になるようにR軸を回転する。
次に、回転後のR値が正の範囲で最も原点に近い不規則テーブルの第2の色信号を選択する。
Next, the R axis is rotated so that the first color signal has a negative value on the R axis.
Next, the second color signal of the irregular table closest to the origin in the range where the R value after rotation is positive is selected.

次に、第2の色信号が、RG平面上のGが負の領域に来るように、G軸を回転する。
次に、RGが正の領域でBが0以上の領域と、RGが正の領域でBが負の領域からそれぞれ一つずつ最も格子点に近い色を選択する。
Next, the second color signal rotates the G axis so that G on the RG plane is in a negative region.
Next, a color closest to the lattice point is selected from each of a region where RG is positive and B is 0 or more, and a region where RG is positive and B is negative.

以上の処理で選択した4つの色信号の色番号を、それぞれnum1〜num4に保存する。
なお、上記のnum1〜num4の全てが設定できた場合のみ、次のステップの補間による規則テーブルの生成を行い、設定できない色信号がある場合は、格子点の選択にもどる。
The color numbers of the four color signals selected by the above processing are stored in num1 to num4, respectively.
Only when all of the above num1 to num4 can be set, a rule table is generated by interpolation in the next step. If there is a color signal that cannot be set, the selection returns to the grid point.

補間による規則テーブルの生成では、色の組み合わせを補間することにより、新たな色信号の対応関係を多数作成し、作成した色信号の中から、RGB空間の格子点に近いRGB値に対応するL* a* b* 値を登録する。   In the generation of the rule table by interpolation, a large number of new color signal correspondences are created by interpolating color combinations, and L corresponding to RGB values close to the grid points in the RGB space from the created color signals. * a * b * Register the value.

なお、作成するデータは、格子点のRGB番号(Rnum,Gnum,Bnum)に対応するL* a* b* 値であるので、実際の作成データ形式は、
L[Rnum][Gnum][Bnum]、
a[Rnum][Gnum][Bnum]、
b[Rnum][Gnum][Bnum]、
という3次元配列となる。
Since the data to be created is an L * a * b * value corresponding to the RGB number (Rnum, Gnum, Bnum) of the grid point, the actual created data format is
L [Rnum] [Gnum] [Bnum],
a [Rnum] [Gnum] [Bnum],
b [Rnum] [Gnum] [Bnum],
This is a three-dimensional array.

以下、補間による規則テーブルの生成アルゴリズムを順を追って説明する。なお、この実施例では、処理の簡素さを優先し、色信号の生成間隔は固定とした。
まず、新たな色信号のRGB値(Rnew,Gnew,Bnew)を補間により算出する。この補間による新たな色信号の作成では、色番号がnum1〜num4の4つの色信号についての重み係数V1〜V4を、以下の手順で作成する。
Hereinafter, the rule table generation algorithm by interpolation will be described in order. In this embodiment, priority is given to the simplicity of processing, and the color signal generation interval is fixed.
First, RGB values (Rnew, Gnew, Bnew) of a new color signal are calculated by interpolation. In the creation of new color signals by this interpolation, the weighting factors V1 to V4 for the four color signals having the color numbers num1 to num4 are created by the following procedure.

0≦V1≦W ・・・(51)
を満たす重み係数V1を順次設定し、
0≦V2≦W−W1 ・・・(52)
を満たす重み係数V2を順次設定し、
0≦V3≦W−(V1+V2) ・・・(53)
を満たす重み係数V3を順次設定し、重み係数V4を、
V4=W−(V1+V2+V3) ・・・(54)
により設定する。
0 ≦ V1 ≦ W (51)
Sequentially set weighting coefficient V1 satisfying
0 ≦ V2 ≦ W−W1 (52)
Sequentially set the weighting coefficient V2 satisfying
0 ≦ V3 ≦ W− (V1 + V2) (53)
Sequentially set the weighting coefficient V3 satisfying
V4 = W− (V1 + V2 + V3) (54)
Set by.

ここで、Wは、例えば、32に設定する。
また、色番号がnum1〜num4の4つの色信号のRGB値(R1、G1、B1)〜(R4、G4、B4)は、以下の式で与えられる。
Here, W is set to 32, for example.
The RGB values (R1, G1, B1) to (R4, G4, B4) of the four color signals having the color numbers num1 to num4 are given by the following equations.

R1=Rin[num1]、G1=Gin[num1]、
B1=Bin[num1] ・・・(55)
R2=Rin[num2]、G2=Gin[num2]、
B2=Bin[num2] ・・・(56)
R3=Rin[num3]、G3=Gin[num3]、
B3=Bin[num3] ・・・(57)
R4=Rin[num4]、G4=Gin[num4]、
B4=Bin[num4] ・・・(58)
次に、(55)〜(58)式の色の組として選択された4つの色信号のRGB値に対し、(51)〜(54)式で設定した重み係数V1〜V4をそれぞれかけ合わせることにより、補間による新たな色信号のRGB値(Rnew,Gnew,Bnew)は、以下のように求めることができる。
R1 = Rin [num1], G1 = Gin [num1],
B1 = Bin [num1] (55)
R2 = Rin [num2], G2 = Gin [num2],
B2 = Bin [num2] (56)
R3 = Rin [num3], G3 = Gin [num3],
B3 = Bin [num3] (57)
R4 = Rin [num4], G4 = Gin [num4],
B4 = Bin [num4] (58)
Next, the RGB values of the four color signals selected as the color pairs of the expressions (55) to (58) are respectively multiplied by the weighting factors V1 to V4 set by the expressions (51) to (54). Thus, the RGB values (Rnew, Gnew, Bnew) of the new color signal by interpolation can be obtained as follows.

Rnew=(R1・V1+R2・V2+R3・V3+R4・V4)/W
・・・(58)
Gnew=(G1・V1+G2・V2+G3・V3+G4・V4)/W
・・・(59)
Bnew=(B1・V1+B2・V2+B3・V3+B4・V4)/W
・・・(60)
(58)〜(60)式の演算を、(51)〜(54)式により設定される全ての重み係数V1〜V4について繰り返すことにより、色の組として選択された4つの色信号で囲まれる範囲内に複数の補間点が生成される。
Rnew = (R1 * V1 + R2 * V2 + R3 * V3 + R4 * V4) / W
... (58)
Gnew = (G1 / V1 + G2 / V2 + G3 / V3 + G4 / V4) / W
... (59)
Bnew = (B1 · V1 + B2 · V2 + B3 · V3 + B4 · V4) / W
... (60)
By repeating the operations of the equations (58) to (60) for all the weighting factors V1 to V4 set by the equations (51) to (54), the color signals are surrounded by four color signals selected as a color set. A plurality of interpolation points are generated within the range.

次に、データ仮設定を行う。
このデータ仮設定では、(58)〜(60)式により求めた補間による新たな色信号のRGB値(Rnew,Gnew,Bnew)と、(4)〜(6)式により求めた格子点の格子RGB値(Rgrid、Ggrid、Bgrid)とを比較する。そして、補間による新たな色信号の中から格子点に最も近いもの検出し、この検出された色信号を生成する時に用いた重み係数V1〜V4を選択する。
Next, data temporary setting is performed.
In this temporary data setting, the RGB values (Rnew, Gnew, Bnew) of the new color signal by interpolation obtained from the equations (58) to (60) and the lattice point lattice obtained from the equations (4) to (6) are used. The RGB values (Rgrid, Ggrid, Bgrid) are compared. Then, a new closest color signal is detected from the new color signals by interpolation, and the weighting factors V1 to V4 used to generate the detected color signals are selected.

すなわち、以下の式で、距離の二乗diffを算出する。
diff=(Rgrid−Rnew)2
+(Ggrid−Gnew)2 +(Bgrid−Bnew)2
そして、格子番号(Rnum,Gnum,Bnum)の格子点に設定されたデータが無いか(初回のみ)、あるいは、新たに算出した距離の二乗diffが、すでに設定されている距離の二乗diffminより小さければ、以下のようにデータを設定する。
That is, the distance squared diff is calculated by the following equation.
diff = (Rgrid-Rnew) 2
+ (Ggrid-Gnew) 2 + (Bgrid-Bnew) 2
Then, there is no data set at the grid point of the grid number (Rnum, Gnum, Bnum) (only the first time), or the newly calculated distance squared diff is smaller than the already set distance squared diffmin. For example, data is set as follows.

diffmin=diff ・・・(61)
V1min=V1 ・・・(62)
V2min=V2 ・・・(63)
V3min=V3 ・・・(64)
V4min=V4 ・・・(65)
次に、データ設定を行う。
diffmin = diff (61)
V1min = V1 (62)
V2min = V2 (63)
V3min = V3 (64)
V4min = V4 (65)
Next, data setting is performed.

このデータ設定では、データ仮設定までの繰り返し処理が終了したら、(62)〜(65)式により求めたV1min〜V4minを用いることにより、L[Rnum][Gnum][Bnum]、a[Rnum][Gnum][Bnum]、b[Rnum][Gnum][Bnum]を算出する。   In this data setting, when the repetitive processing up to the data temporary setting is completed, L [Rnum] [Gnum] [Bnum], a [Rnum] are obtained by using V1min to V4min obtained by the equations (62) to (65). [Gnum] [Bnum], b [Rnum] [Gnum] [Bnum] are calculated.

すなわち、L[Rnum][Gnum][Bnum]、a[Rnum][Gnum][Bnum]、b[Rnum][Gnum][Bnum]を算出する時の重み係数V1〜V4を以下のように設定する。   That is, the weighting factors V1 to V4 for calculating L [Rnum] [Gnum] [Bnum], a [Rnum] [Gnum] [Bnum], b [Rnum] [Gnum] [Bnum] are set as follows. To do.

V1=V1min ・・・(66)
V2=V2min ・・・(67)
V3=V3min ・・・(68)
V4=V4min ・・・(69)
また、色番号がnum1〜num4の4つの色信号のL* a* b* 値(L1、a1、b1)〜(L4、a4、b4)は、以下の式で与えられる。
V1 = V1min (66)
V2 = V2min (67)
V3 = V3min (68)
V4 = V4min (69)
The L * a * b * values (L1, a1, b1) to (L4, a4, b4) of the four color signals having the color numbers num1 to num4 are given by the following equations.

L1=Lin[num1]、a1=ain[num1]、
b1=bin[num1] ・・・(70)
L2=Lin[num2]、a2=ain[num2]、
b2=bin[num2] ・・・(71)
L3=Lin[num3]、a3=ain[num3]、
b3=bin[num3] ・・・(72)
L4=Lin[num4]、a4=ain[num4]、
b4=bin[num4] ・・・(73)
そして、(70)〜(73)式のL* a* b* 値に対し、(66)〜(69)式により求めた重み係数V1〜V4をそれぞれかけ合わせることにより、格子番号(Rnum,Gnum,Bnum)の格子点に対応するL* a* b* 値を、以下の式で求めることができる。
L1 = Lin [num1], a1 = ain [num1],
b1 = bin [num1] (70)
L2 = Lin [num2], a2 = ain [num2],
b2 = bin [num2] (71)
L3 = Lin [num3], a3 = ain [num3],
b3 = bin [num3] (72)
L4 = Lin [num4], a4 = ain [num4],
b4 = bin [num4] (73)
Then, by multiplying the L * a * b * values of the equations (70) to (73) by the weighting factors V1 to V4 obtained by the equations (66) to (69), the lattice numbers (Rnum, Gnum) are obtained. , Bnum), the L * a * b * value corresponding to the lattice point can be obtained by the following equation.

L[Rnum][Gnum][Bnum]
=(L1・V1+L2・V2+L3・V3+L4・V4)/W
・・・(74)
a[Rnum][Gnum][Bnum]
=(a1・V1+a2・V2+a3・V3+a4・V4)/W
・・・(75)
b[Rnum][Gnum][Bnum]
=(b1・V1+b2・V2+b3・V3+b4・V4)/W
・・・(76)
図32は、本発明の第2実施例に係わる補間による規則的な色信号の生成方法を示すフローチャートである。
L [Rnum] [Gnum] [Bnum]
= (L1 ・ V1 + L2 ・ V2 + L3 ・ V3 + L4 ・ V4) / W
... (74)
a [Rnum] [Gnum] [Bnum]
= (A1, V1 + a2, V2 + a3, V3 + a4, V4) / W
... (75)
b [Rnum] [Gnum] [Bnum]
= (B1, V1 + b2, V2 + b3, V3 + b4, V4) / W
... (76)
FIG. 32 is a flowchart showing a method for generating a regular color signal by interpolation according to the second embodiment of the present invention.

図32において、まず、重み係数V1〜V3を0に設定するとともに(ステップS121)、重み係数V4をW−(V1+V2+V3)に設定する(ステップS122)。
次に、(55)〜(58)式の色の組として選択された4つの色信号のRGB値に対し、重み係数V1〜V4をそれぞれかけ合わせることにより、補間による新たな色信号のRGB値(Rnew,Gnew,Bnew)を算出する(ステップS123)。
In FIG. 32, first, the weighting factors V1 to V3 are set to 0 (step S121), and the weighting factor V4 is set to W− (V1 + V2 + V3) (step S122).
Next, by multiplying the RGB values of the four color signals selected as the color pairs of the equations (55) to (58) by the weighting factors V1 to V4, respectively, the RGB values of the new color signal by interpolation are obtained. (Rnew, Gnew, Bnew) is calculated (step S123).

次に、ステップS123で求めた補間による新たな色信号のRGB値(Rnew,Gnew,Bnew)と、(4)〜(6)式により求めた格子点の格子RGB値(Rgrid、Ggrid、Bgrid)との間の距離の二乗diffを算出する(ステップS124)。   Next, the RGB values (Rnew, Gnew, Bnew) of the new color signal obtained by interpolation obtained in step S123, and the grid RGB values (Rgrid, Ggrid, Bgrid) of the lattice points obtained by the equations (4) to (6). A square diff of the distance between is calculated (step S124).

次に、格子番号(Rnum,Gnum,Bnum)の格子点に設定されたデータが無いか、または、新たに算出した距離の二乗diffが、すでに設定されている距離の二乗diffminより小さい場合(ステップS125)、新たな色信号の重み係数V1〜V4及び新たに算出した距離の二乗diffを格納する(ステップS126)。   Next, when there is no data set at the grid point of the grid number (Rnum, Gnum, Bnum), or the newly calculated distance squared diff is smaller than the already set distance squared diffmin (step In step S125, the weight coefficients V1 to V4 of the new color signal and the square diff of the newly calculated distance are stored (step S126).

以下、重み係数V3がW−V1−V2、重み係数V2がW−V1、重み係数V2がWに達するまで、重み係数V1〜V3の値をそれぞれ1つずつ増加させることにより(ステップS127〜ステップS134)、新たな色信号のRGB値(Rnew,Gnew,Bnew)を補間演算で算出する。   Hereinafter, the weighting factors V1 to V3 are increased by one each until the weighting factor V3 reaches W−V1−V2, the weighting factor V2 reaches W−V1 and the weighting factor V2 reaches W (steps S127 to S27). S134), RGB values (Rnew, Gnew, Bnew) of the new color signal are calculated by interpolation calculation.

次に、(70)〜(73)式により色の組として選択された4つの色信号のL* a* b* 値に対し、ステップS126で格納された重み係数V1〜V4をそれぞれかけ合わせることにより、格子番号(Rnum,Gnum,Bnum)の格子点に対応するL* a* b* 値を算出する(ステップS135)。 補間による規則テーブルの生成が終了すると、外挿による規則テーブルの追加を行うが、この外挿による規則テーブルの追加は、第1実施例と同様の方法で行うことができる。   Next, the weighting coefficients V1 to V4 stored in step S126 are respectively multiplied with the L * a * b * values of the four color signals selected as the color set by the equations (70) to (73). Thus, the L * a * b * value corresponding to the lattice point of the lattice number (Rnum, Gnum, Bnum) is calculated (step S135). When the generation of the rule table by interpolation is completed, the rule table is added by extrapolation. The addition of the rule table by extrapolation can be performed by the same method as in the first embodiment.

次に、本発明の第3実施例に係わるテーブル変換方法について説明する。この第3実施例に係わるテーブル変換方法は、8点補間により不規則テーブルを規則テーブルに変換するとともに、RGB空間を分割するときの基準点が補間対象となる格子点と異なるように設定することを可能としたものである。 すなわち、色信号の組を選択する基準となる色信号を、規則テーブルとして生成する格子RGB値以外の値に設定する。例えば、格子RGB値の間隔が、不規則テーブルの色の間隔に比べて極端に小さい場合は、格子RGB値を基準にすると、異なる格子RGB値に対し、同じ色信号の組が多数重複して選択される。同じ色信号の組が多数重複して選択されても、補間処理を行うことは可能であるが、同じ色信号の組が多数重複して選択されると、同じ色信号の組に対して何度も同じ演算が繰り返して行われるため、規則テーブルを補間により生成する際の効率が悪くなる場合がある。   Next, a table conversion method according to the third embodiment of the present invention will be described. In the table conversion method according to the third embodiment, the irregular table is converted into the rule table by 8-point interpolation, and the reference point when dividing the RGB space is set to be different from the lattice point to be interpolated. Is possible. That is, a color signal that is a reference for selecting a set of color signals is set to a value other than the grid RGB value generated as the rule table. For example, when the grid RGB value interval is extremely small compared to the irregular table color interval, a large number of sets of the same color signal are duplicated for different grid RGB values based on the grid RGB value. Selected. Interpolation can be performed even if the same set of color signals is selected in duplicate. However, if multiple sets of the same color signal are selected in duplicate, what happens to the same set of color signals? Since the same calculation is repeatedly performed, the efficiency when the rule table is generated by interpolation may deteriorate.

このため、例えば、格子RGB値よりも広めの格子間隔のRGB値を基準として色の組を選択することにより、同じ色信号の組が多数重複して選択されることが軽減され、補間による規則テーブルの生成をより効率的に行うことが可能となる。   For this reason, for example, by selecting a set of colors based on an RGB value having a grid interval wider than the grid RGB value, it is possible to reduce the selection of a plurality of sets of the same color signal, and the rule by interpolation The table can be generated more efficiently.

また、補間演算で色の数を増やし、色信号全体に色を生成する場合には、極端に接近したデータ同士を選択すると、生成される色信号に抜けが生じる可能性がある。例えば、不規則テーブルのデータ同士の組を作成し、これを補間して、不規則テーブルのデータ分布範囲全体に分布する色信号を多数作成しようとする場合、選択した色信号によって包囲される範囲にオーバーラップする部分があっても構わない。しかし、どの色信号の組にも包囲されない領域があると、その包囲されない領域の色信号を作成することができない。   Further, in the case where the number of colors is increased by interpolation calculation and colors are generated for the entire color signal, if the data that are extremely close to each other are selected, the generated color signal may be lost. For example, when creating a set of irregular table data and interpolating them to create a large number of color signals distributed over the entire data distribution range of the irregular table, the range surrounded by the selected color signal There may be overlapping parts. However, if there is an unenclosed area in any set of color signals, a color signal for the unenclosed area cannot be created.

従って、色信号を選択する際のしきい値を設けることにより、極端に接近したデータが選択されないようにする。そして、包囲される範囲がある程度の広さを持つようにすることにより、色信号の組で包囲される範囲に欠落が発生することを防止するようにしてもよい。   Therefore, by providing a threshold value for selecting a color signal, extremely close data is not selected. Then, by making the surrounded range have a certain extent, it is possible to prevent the occurrence of a loss in the range surrounded by the set of color signals.

図33は、本発明の第3実施例に係わる補間による規則的な色信号の生成方法を色空間上で示す図である。
図33において、不規則テーブルに登録されている色信号が、色空間上の点P1〜P14に分布しているものとする。ここで、色空間上の格子点K1〜K25に対応する色信号の値を補間により求めるものとする。ここで、色空間上の格子点K1〜K25を基準点として色空間を分割し、補間に使用する色信号を選択するものとする。
FIG. 33 is a diagram showing a method for generating a regular color signal by interpolation according to the third embodiment of the present invention on a color space.
In FIG. 33, it is assumed that color signals registered in the irregular table are distributed at points P1 to P14 on the color space. Here, the values of the color signals corresponding to the grid points K1 to K25 on the color space are obtained by interpolation. Here, it is assumed that the color space is divided using the grid points K1 to K25 on the color space as reference points, and the color signal used for interpolation is selected.

この場合、格子点K6、K7、K11、K12に対しては、色空間上の点P4、P5、P7、P8が選択され、補間による規則テーブルの生成を各格子点K6、K7、K11、K12ごとに独立して行うと、同一の補間演算が何度も繰り返されることになる。例えば、(34)〜(36)式または(58)〜(60)式を用いて補間による新たな色信号のRGB値(Rnew,Gnew,Bnew)を生成する際に、この補間による新たな色信号のRGB値(Rnew,Gnew,Bnew)は、各格子点K6、K7、K11、K12に対して同一のものになる。   In this case, for the lattice points K6, K7, K11, and K12, points P4, P5, P7, and P8 on the color space are selected, and generation of the rule table by interpolation is performed for each lattice point K6, K7, K11, and K12. If each is performed independently, the same interpolation calculation is repeated many times. For example, when generating RGB values (Rnew, Gnew, Bnew) of new color signals by interpolation using the equations (34) to (36) or (58) to (60), a new color by this interpolation is used. The RGB values (Rnew, Gnew, Bnew) of the signal are the same for each grid point K6, K7, K11, K12.

このため、例えば、補間対象となる格子点K1〜K25に対し、色空間を分割する時の基準となる点を、格子点K1〜K25の格子間隔の2倍の間隔で設定し、格子点K1、K3、K5、K11、K13、K15、K21、K23、K25を色空間を分割する時の基準となる点とする。ここで、格子点K11が色空間を分割する時の基準となった場合、この格子点K11に対しては、色空間上の点P4、P5、P7、P8が選択される。   Therefore, for example, with respect to the lattice points K1 to K25 to be interpolated, the reference points when dividing the color space are set at an interval twice the lattice interval of the lattice points K1 to K25, and the lattice point K1. , K3, K5, K11, K13, K15, K21, K23, and K25 are used as reference points when the color space is divided. Here, when the grid point K11 becomes a reference when dividing the color space, the points P4, P5, P7, and P8 on the color space are selected for the grid point K11.

そして、点P4、P5、P7、P8が選択された場合、この点P4、P5、P7、P8で囲まれる範囲内の格子点K6、K7、K11、K12について、補間による新たな色信号のRGB値(Rnew,Gnew,Bnew)を生成を一括して行い、この一括して生成された補間による新たな色信号のRGB値(Rnew,Gnew,Bnew)の中から、各格子点K6、K7、K11、K12に近いものを検出するようにする。   When points P4, P5, P7, and P8 are selected, RGB of the new color signal by interpolation is applied to the lattice points K6, K7, K11, and K12 within the range surrounded by the points P4, P5, P7, and P8. The values (Rnew, Gnew, Bnew) are generated all at once, and from the RGB values (Rnew, Gnew, Bnew) of the new color signal by the interpolation generated in batch, the respective grid points K6, K7, Those close to K11 and K12 are detected.

このことにより、異なる格子点K6、K7、K11、K12に対する同一の補間演算が何度も繰り返されることを抑制することができ、補間による規則テーブルの生成をより効率的に行うことが可能となる。   As a result, it is possible to prevent the same interpolation calculation for different grid points K6, K7, K11, and K12 from being repeated many times, and it is possible to more efficiently generate a rule table by interpolation. .

また、格子点K13が色空間を分割する時の基準となった場合、分割された色空間から格子点K13に最も近い点を選択すると、色空間上の点P5、P6、P8、P9が選択される。   Further, when the grid point K13 becomes a reference when dividing the color space, when a point closest to the grid point K13 is selected from the divided color space, points P5, P6, P8, and P9 on the color space are selected. Is done.

また、格子点K15が色空間を分割する時の基準となった場合、分割された色空間から格子点K15に最も近い点を選択すると、色空間上の点P3、P6、P10、P11が選択される。   Further, when the grid point K15 becomes a reference for dividing the color space, when a point closest to the grid point K15 is selected from the divided color space, points P3, P6, P10, and P11 on the color space are selected. Is done.

この場合、補間対象となる格子点K14は、格子点K13を基準として選択された点P5、P6、P8、P9または格子点K15を基準として選択された点P3、P6、P10、P11により包囲することができず、補間対象となる格子点K14については、補間演算ができなくなる。このため、補間対象となる格子点K1〜K25と異なる点を、色空間の分割の基準とする時は、色信号を選択する際のしきい値を設けることにより、極端に接近したデータが選択されないようにする。例えば、格子点K15を基準に色信号を選択する場合、格子点K15の近くに位置する点P10の代わりに点P9を選択するようにする。   In this case, the lattice point K14 to be interpolated is surrounded by the points P5, P6, P8, P9 selected with reference to the lattice point K13 or the points P3, P6, P10, P11 selected with reference to the lattice point K15. Therefore, the interpolation calculation cannot be performed for the lattice point K14 to be interpolated. For this reason, when a point different from the grid points K1 to K25 to be interpolated is used as a reference for color space division, extremely close data is selected by providing a threshold for selecting a color signal. Do not be. For example, when the color signal is selected based on the grid point K15, the point P9 is selected instead of the point P10 located near the grid point K15.

このことにより、格子点K15を基準として選択された点P3、P6、P9、P11で囲まれる領域が広くなり、格子点K14は、格子点K15を基準として選択された点P3、P6、P9、P11で包囲されるようになる。この結果、補間対象となる格子点K14と異なる格子点K15を、色空間の分割の基準とした場合においても、補間対象となる格子点K14に対する補間演算が不可能となることを防止することができる。   As a result, a region surrounded by the points P3, P6, P9, and P11 selected with the lattice point K15 as a reference is widened, and the lattice point K14 is a point P3, P6, P9, selected with the lattice point K15 as a reference. It will be surrounded by P11. As a result, even when a grid point K15 different from the grid point K14 to be interpolated is used as a reference for dividing the color space, it is possible to prevent the interpolation operation on the grid point K14 to be interpolated from becoming impossible. it can.

この第3実施例の処理ステップは、「色の組の作成」、「補間による規則テーブルの生成(前処理)」、「補間による規則テーブルの生成(後処理)」及び「外挿による規則テーブルの追加」の4段階からなる。   The processing steps of the third embodiment include “color set creation”, “generation of rule table by interpolation (pre-processing)”, “generation of rule table by interpolation (post-processing)”, and “rule table by extrapolation” It consists of four stages of “addition of”.

この第3実施例でも、補間による規則テーブルの生成を色の組みごとに行うが、色の組みごとに行う処理は、第1の実施例のデータ仮設定までとする。そして、全ての色の組みについての処理が終了した後、規則テーブルへのL* a* b* 値の登録を補間による規則テーブルの生成(後処理)で一括して行う。   Also in the third embodiment, the rule table is generated by interpolation for each color set, but the processing to be performed for each color set is limited to the provisional data setting of the first embodiment. Then, after the processing for all the color combinations is completed, L * a * b * values are registered in the rule table all together by generating a rule table by interpolation (post-processing).

色の組の作成では、色空間を分割する際の基準となるRGB値を設定し、この基準となるRGB値を囲む不規則テーブルの色信号を、各基準となるRGB値について求める。ここで、1つの基準となるRGB値につき8つの色信号を選択する。なお、この8つの色信号を、以下、「色の組み」と呼ぶ。   In creating a color set, an RGB value serving as a reference when the color space is divided is set, and a color signal of an irregular table surrounding the RGB value serving as the reference is obtained for each reference RGB value. Here, eight color signals are selected for one reference RGB value. The eight color signals are hereinafter referred to as “color sets”.

例えば、補間対象となる格子RGB値より広めの格子間隔のRGB値(例えば、格子RGB値の2倍の間隔)を基準として、その広めの格子間隔のRGB値を包囲する色信号を選択する。そして、選択した色の組みを補間して多数の色信号を生成し、補間により生成された多数の色信号の中から、格子RGB値に近い色信号を検出し、その検出された色信号に対応するL* a* b* 値を規則テーブルに登録する。ただし、L* a* b* 値の登録は、全ての色の組みの作成終了後に一括して行う。   For example, with reference to an RGB value having a grid interval wider than the grid RGB value to be interpolated (for example, an interval twice the grid RGB value), a color signal surrounding the RGB value of the wider grid interval is selected. Then, the selected set of colors is interpolated to generate a large number of color signals, and a color signal close to the grid RGB value is detected from the large number of color signals generated by the interpolation. The corresponding L * a * b * value is registered in the rule table. However, the L * a * b * values are registered in a lump after the creation of all color combinations.

なお、この色の組の作成では、格子RGB値とは無関係な色信号を基準とすることができ、選択した色の組みによって包囲される領域の間に隙間ができる場合がある。そして、その隙間に格子RGBが入ると、この隙間の格子RGB値に相当する色信号を生成できなくなる。このため、選択する色の組みの間隔をやや大き目にする。具体的には、選択した色の組みによって包囲される領域が互いに必ずオーバーラップするように、基準とする色信号から、ある一定値以上離れた色信号を選択する。一定値としては、基準とする色信号の間隔の0.5√3倍とすることが好ましい。   It should be noted that the creation of this color set can be based on a color signal irrelevant to the grid RGB value, and there may be a gap between the regions surrounded by the selected color set. If a grid RGB enters the gap, a color signal corresponding to the grid RGB value of the gap cannot be generated. For this reason, the interval of the set of colors to be selected is slightly increased. Specifically, a color signal that is separated from the reference color signal by a certain value or more is selected so that the regions surrounded by the selected color set always overlap each other. The fixed value is preferably 0.5√3 times the interval of the reference color signal.

この色の組の作成により、選択された8つの色信号の色番号iがnum0〜num7に保存される。 補間による規則テーブルの生成(前処理)では、基準となる色信号に基づいて選択された色の組(num0〜num7)を用いて補間することにより、新たな色信号(Rnew,Gnew,Bnew)の対応関係を作成する。そして、補間対象となる格子RGB値の中から、新たに作成した色信号(Rnew,Gnew,Bnew)に最も近い格子RGB値を選択する。ここで、複数の色の組(num0〜num7)の間で同一の格子RGB値が選択された場合、選択された格子RGB値との距離が最も小さい色信号(Rnew,Gnew,Bnew)を生成する色の組(num0〜num7)を選択する。   By creating this color set, the color numbers i of the eight selected color signals are stored in num0 to num7. In the generation (preprocessing) of the rule table by interpolation, new color signals (Rnew, Gnew, Bnew) are obtained by interpolating using a set of colors (num0 to num7) selected based on the reference color signal. Create a correspondence for. Then, the grid RGB value closest to the newly created color signal (Rnew, Gnew, Bnew) is selected from the grid RGB values to be interpolated. Here, when the same grid RGB value is selected among a plurality of color sets (num0 to num7), a color signal (Rnew, Gnew, Bnew) having the smallest distance from the selected grid RGB value is generated. A set of colors (num0 to num7) to be selected is selected.

補間対象となる格子RGB値についての色の組(num0〜num7)が決まると、この格子RGB値の選択に使われた色信号(Rnew,Gnew,Bnew)を生成した時の重み係数を決定する。そして、色の組(num0〜num7)として選択されたL* a* b* 値にこの重み係数をかけ合わせることにより、格子RGB値に対応するL* a* b* 値を生成する。   When the set of colors (num0 to num7) for the grid RGB values to be interpolated is determined, the weighting factor when the color signals (Rnew, Gnew, Bnew) used to select the grid RGB values are generated is determined. . Then, L * a * b * values corresponding to the grid RGB values are generated by multiplying the L * a * b * values selected as the color pairs (num0 to num7) by this weighting factor.

このように、色の組を選択する時の色信号と補間対象となる色信号とが異なる場合、色の組を選択する時の色信号と補間対象となる色信号とが必ずしも1対1に対応しないことから、補間による規則テーブルの生成処理へ入力された色の組みが、すでに処理済みのものと同じである場合は、補間による規則テーブルの生成をスキップする。また、規則テーブルに登録する格子RGB値の補間をどの色の組みを用いて行うかを、色の組を選択する時の基準となる色信号を設定しただけでは定めることができないので、補間で生成した各色信号について、格子RGBと距離が最も近い色信号を検出することにより、格子RGB値の補間に用いる色の組みを選択する。   In this way, when the color signal when selecting a color set is different from the color signal to be interpolated, the color signal when selecting the color set and the color signal to be interpolated are not necessarily one-to-one. Since it does not correspond, the generation of the rule table by interpolation is skipped when the set of colors input to the rule table generation processing by interpolation is the same as that already processed. In addition, it is not possible to determine which color set is used to interpolate the grid RGB values registered in the rule table simply by setting a color signal as a reference when selecting a color set. For each generated color signal, a color set that is closest to the grid RGB is detected to select a set of colors used for interpolation of the grid RGB values.

以下、補間による規則テーブルの生成アルゴリズムを順を追って説明する。
まず、すでに処理済の色の組みの中に、全く同じ色の組(num0〜num7)がないか調べる。全く同じ色の組(num0〜num7)があれば、補間による規則テーブルの生成処理を終了し、色の組みの作成に戻る。
Hereinafter, the rule table generation algorithm by interpolation will be described in order.
First, it is examined whether there is a set of the same color (num0 to num7) among already processed sets of colors. If there are exactly the same color set (num0 to num7), the rule table generation processing by interpolation is terminated, and the process returns to the creation of the color set.

次に、補間で作成する色の間隔を設定する。この処理は、第1実施例で説明した方法と同様に行うことができる。
次に、新たな色信号のRGB値(Rnew,Gnew,Bnew)を補間により算出する。この処理は、第1実施例で説明した方法と同様に行うことができる。
Next, a color interval created by interpolation is set. This process can be performed in the same manner as the method described in the first embodiment.
Next, the RGB values (Rnew, Gnew, Bnew) of the new color signal are calculated by interpolation. This process can be performed in the same manner as the method described in the first embodiment.

次に、データ仮設定を行う。
データ仮設定では、(34)〜(36)式により求めた補間による新たな色信号のRGB値(Rnew,Gnew,Bnew)に最も近い格子RGB値(Rgrid、Ggrid、Bgrid)を選択する。例えば、格子RGB値(Rgrid、Ggrid、Bgrid)が8間隔で並んでいるならば、最も近い格子RGB値(Rgrid、Ggrid、Bgrid)は以下の式で計算できる。
Next, data temporary setting is performed.
In the temporary data setting, a grid RGB value (Rgrid, Ggrid, Bgrid) closest to the RGB value (Rnew, Gnew, Bnew) of the new color signal by interpolation obtained by the equations (34) to (36) is selected. For example, if the grid RGB values (Rgrid, Ggrid, Bgrid) are arranged at 8 intervals, the closest grid RGB values (Rgrid, Ggrid, Bgrid) can be calculated by the following formula.

Rnum=(int)((Rnew+4)/8) ・・・(77)
Rgrid=Rnum・8 ・・・(78)
Gnum=(int)((Gnew+4)/8) ・・・(79)
Ggrid=Gnum・8 ・・・(80)
Bnum=(int)((Bnew+4)/8) ・・・(81)
Bgrid=Bnum・8 ・・・(82)
ここで、(int) は少数点以下切り捨てを意味する。
Rnum = (int) ((Rnew + 4) / 8) (77)
Rgrid = Rnum · 8 (78)
Gnum = (int) ((Gnew + 4) / 8) (79)
Ggrid = Gnum · 8 (80)
Bnum = (int) ((Bnew + 4) / 8) (81)
Bgrid = Bnum · 8 (82)
Here, (int) means rounding down the decimal point.

次に、補間による新たな色信号のRGB値(Rnew,Gnew,Bnew)と、(77)〜(82)式により選択された格子RGB値(Rgrid、Ggrid、Bgrid)との間の距離の二乗diffを、以下の式で算出する。   Next, the square of the distance between the RGB values (Rnew, Gnew, Bnew) of the new color signal by interpolation and the grid RGB values (Rgrid, Ggrid, Bgrid) selected by the equations (77) to (82) Diff is calculated by the following equation.

diff=(Rgrid−Rnew)2
+(Ggrid−Gnew)2 +Bgrid−Bnew)2
そして、距離の二乗diffが予め定められたしきい値(例えば、2)より小さい場合には、格子番号(Rnum,Gnum,Bnum)の格子点に設定されたデータが無いか(初回のみ)、あるいは、新たに算出した距離の二乗diffが、すでに設定されている距離の二乗diffmin[Rnum][Gnum][Bnum]より小さければ、以下のようにデータを設定する。
diff = (Rgrid−Rnew) 2
+ (Ggrid-Gnew) 2 + Bgrid-Bnew) 2
If the square diff of the distance is smaller than a predetermined threshold value (for example, 2), there is no data set at the grid point of the grid number (Rnum, Gnum, Bnum) (only the first time), Alternatively, if the newly calculated distance squared diff is smaller than the already set distance squared diffmin [Rnum] [Gnum] [Bnum], data is set as follows.

diffmin[Rnum][Gnum][Bnum]=diff
・・・(83)
Lwmin[Rnum][Gnum][Bnum]=Lw
・・・(84)
awmin[Rnum][Gnum][Bnum]=aw
・・・(85)
bwmin[Rnum][Gnum][Bnum]=bw
・・・(86)
num0min[Rnum][Gnum][Bnum]=num0
・・・(87)
num1min[Rnum][Gnum][Bnum]=num1
・・・(88)
num2min[Rnum][Gnum][Bnum]=num2
・・・(89)
num3min[Rnum][Gnum][Bnum]=num3
・・・(90)
num4min[Rnum][Gnum][Bnum]=num4
・・・(91)
num5min[Rnum][Gnum][Bnum]=num5
・・・(92)
num6min[Rnum][Gnum][Bnum]=num6
・・・(93)
num7min[Rnum][Gnum][Bnum]=num7
・・・(94)
すなわち、この第3実施例では、第1実施例で設定されるデータに加えて、色の組(num0〜num7)も保存することにより、格子RGB値の補間に使用する色の組(num0〜num7)を特定できるようにする。なお、diffmin,Lwmin,awmin,bwmin、num0〜num7はそれぞれ、格子番号(Rnum,Gnum,Bnum)ごとに保存するため、3次元列形式とする。
diffmin [Rnum] [Gnum] [Bnum] = diff
... (83)
Lwmin [Rnum] [Gnum] [Bnum] = Lw
... (84)
awmin [Rnum] [Gnum] [Bnum] = aw
... (85)
bwmin [Rnum] [Gnum] [Bnum] = bw
... (86)
num0min [Rnum] [Gnum] [Bnum] = num0
... (87)
num1min [Rnum] [Gnum] [Bnum] = num1
... (88)
num2min [Rnum] [Gnum] [Bnum] = num2
... (89)
num3min [Rnum] [Gnum] [Bnum] = num3
... (90)
num4min [Rnum] [Gnum] [Bnum] = num4
... (91)
num5min [Rnum] [Gnum] [Bnum] = num5
... (92)
num6min [Rnum] [Gnum] [Bnum] = num6
... (93)
num7min [Rnum] [Gnum] [Bnum] = num7
... (94)
That is, in the third embodiment, in addition to the data set in the first embodiment, a set of colors (num0 to num7) is also saved, so that a set of colors (num0 to num0) used for interpolation of grid RGB values is stored. num7) can be specified. In addition, since diffmin, Lwmin, awmin, bwmin, and num0 to num7 are stored for each lattice number (Rnum, Gnum, Bnum), a three-dimensional column format is used.

図34は、本発明の第3実施例に係わる補間による規則的な色信号の生成方法を示すフローチャートである。なお、図34のフローチャートでは、一辺が32の立方体を分割する時の基準となる値(Lw,aw,bw)を、LwがLint間隔、awがaint間隔、bwがbint間隔で設定した場合について示している。   FIG. 34 is a flowchart showing a method for generating a regular color signal by interpolation according to the third embodiment of the present invention. In the flowchart of FIG. 34, a reference value (Lw, aw, bw) for dividing a cube having 32 sides is set with Lw being a Lint interval, aw being an aint interval, and bw being a bint interval. Show.

図34において、まず、すでに処理済の色の組みの中に、全く同じ色の組(num0〜num7)がないか調べる(ステップS141)。そして、全く同じ色の組(num0〜num7)があれば、補間による規則テーブルの生成処理を終了する。   In FIG. 34, first, it is checked whether there is a set of the same color (num0 to num7) among the set of processed colors (step S141). Then, if there is a set of exactly the same color (num0 to num7), the rule table generation processing by interpolation is terminated.

次に、(15)〜(17)式により、色作成間隔(Lint、aint、bint)を設定する(ステップS142)。
次に、一辺が32の立方体を分割する時の基準となる値(Lw,aw,bw)をそれぞれ0に設定する(ステップS143)。
Next, the color creation intervals (Lint, aint, bint) are set according to equations (15) to (17) (step S142).
Next, the reference values (Lw, aw, bw) for dividing the cube having 32 sides are set to 0 (step S143).

次に、値(Lw,aw,bw)を基準として立方体を分割することにより、(18)〜(25)式の重み係数を算出する。そして、(26)〜(33)式により色の組(num0〜num7)として選択された8つの色信号のRGB値に対し、(18)〜(25)式の重み係数をそれぞれかけ合わせることにより、補間による新たな色信号のRGB値(Rnew,Gnew,Bnew)を算出する(ステップS144)。   Next, by dividing the cube based on the values (Lw, aw, bw), the weighting coefficients of the equations (18) to (25) are calculated. Then, by multiplying the RGB values of the eight color signals selected as the color pairs (num0 to num7) by the equations (26) to (33), the weighting factors of the equations (18) to (25) are respectively multiplied. Then, the RGB values (Rnew, Gnew, Bnew) of the new color signal by interpolation are calculated (step S144).

次に、(34)〜(36)式により求めた補間による新たな色信号のRGB値(Rnew,Gnew,Bnew)に最も近い格子RGB値(Rgrid、Ggrid、Bgrid)を、(77)〜(82)式により選択する(ただし、格子RGB値(Rgrid、Ggrid、Bgrid)が8間隔で並んでいる場合)(ステップS145)。   Next, the grid RGB values (Rgrid, Ggrid, Bgrid) closest to the RGB values (Rnew, Gnew, Bnew) of the new color signal by interpolation obtained by the equations (34) to (36) are expressed by (77) to ( 82) (in the case where the grid RGB values (Rgrid, Ggrid, Bgrid) are arranged at intervals of 8) (step S145).

次に、ステップS144で求めた補間による新たな色信号のRGB値(Rnew,Gnew,Bnew)と、ステップS145で選択した格子RGB値(Rgrid、Ggrid、Bgrid)との間の距離の二乗diffを算出する(ステップS146)。   Next, the square diff of the distance between the RGB value (Rnew, Gnew, Bnew) of the new color signal obtained by interpolation obtained in step S144 and the grid RGB value (Rgrid, Ggrid, Bgrid) selected in step S145 is set. Calculate (step S146).

次に、距離の二乗diffが2より小さく、かつ、格子RGB値(Rgrid、Ggrid、Bgrid)の格子点のデータが未設定、または、新たに算出した距離の二乗diffが、すでに設定されている距離の二乗diffminより小さい場合(ステップS147)、立方体を分割する時の基準となる値(Lw,aw,bw)、新たに算出した距離の二乗diff及び色の組(num0〜num7)を格納する(ステップS148)。   Next, the square of the distance diff is smaller than 2, and the grid point data of the grid RGB values (Rgrid, Ggrid, Bgrid) is not set, or the square diff of the newly calculated distance is already set. When the distance is smaller than the squared diffmin (step S147), the reference value (Lw, aw, bw) for dividing the cube, the newly calculated distance squared diff, and a set of colors (num0 to num7) are stored. (Step S148).

以下、立方体を分割する時の基準となる値(Lw,aw,bw)がそれぞれ32以上になるまで、立方体を分割する時の基準となる値(Lw,aw,bw)をそれぞれ色作成間隔(Lint、aint、bint)で増加させることにより(ステップS149〜ステップS156)、新たな色信号のRGB値(Rnew,Gnew,Bnew)に最も近い格子RGB値(Rgrid、Ggrid、Bgrid)を選択する。   Hereinafter, until the reference values (Lw, aw, bw) for dividing the cube become 32 or more, the reference values (Lw, aw, bw) for dividing the cube are set to the color creation intervals ( Lattice RGB values (Rgrid, Ggrid, Bgrid) that are closest to the RGB values (Rnew, Gnew, Bnew) of the new color signal are selected by increasing (Lint, aint, bint) (steps S149 to S156).

補間による規則テーブルの生成(後処理)では、(84)〜(94)式により、
Lwmin[Rnum][Gnum][Bnum]、
awmin[Rnum][Gnum][Bnum]、
bwmin[Rnum][Gnum][Bnum]、
num0min[Rnum][Gnum][Bnum]〜
num7min[Rnum][Gnum][Bnum]
の設定が終わった格子RGB値(Rgrid、Ggrid、Bgrid)について、L* a* b* 値を算出する。
In the generation (post-processing) of the rule table by interpolation, (84) to (94)
Lwmin [Rnum] [Gnum] [Bnum],
awmin [Rnum] [Gnum] [Bnum],
bwmin [Rnum] [Gnum] [Bnum],
num0min [Rnum] [Gnum] [Bnum]
num7min [Rnum] [Gnum] [Bnum]
L * a * b * values are calculated for the grid RGB values (Rgrid, Ggrid, Bgrid) for which the setting is completed.

すなわち、格子RGB値(Rgrid、Ggrid、Bgrid)の補間に使用する色の組(num0〜num7)は、以下の式で与えられる。
num0=num0min[Rnum][Gnum][Bnum]
・・・(95)
num1=num1min[Rnum][Gnum][Bnum]
・・・(96)
num2=num2min[Rnum][Gnum][Bnum]
・・・(97)
num3=num3min[Rnum][Gnum][Bnum]
・・・(98)
num4=num4min[Rnum][Gnum][Bnum]
・・・(99)
num5=num5min[Rnum][Gnum][Bnum]
・・・(100)
num6=num6min[Rnum][Gnum][Bnum]
・・・(101)
num7=num7min[Rnum][Gnum][Bnum]
・・・(102)
色の組(num0〜num7)が(95)〜(102)式により与えられると、色の組(num0〜num7)として選択された8つの色信号のL* a* b* 値(L0、a0、b0)〜(L7、a7、b7)は、(7)〜(14)式により与えられる。
That is, a set of colors (num0 to num7) used for interpolation of grid RGB values (Rgrid, Ggrid, Bgrid) is given by the following equation.
num0 = num0min [Rnum] [Gnum] [Bnum]
... (95)
num1 = num1min [Rnum] [Gnum] [Bnum]
... (96)
num2 = num2min [Rnum] [Gnum] [Bnum]
... (97)
num3 = num3min [Rnum] [Gnum] [Bnum]
... (98)
num4 = num4min [Rnum] [Gnum] [Bnum]
... (99)
num5 = num5min [Rnum] [Gnum] [Bnum]
... (100)
num6 = num6min [Rnum] [Gnum] [Bnum]
... (101)
num7 = num7min [Rnum] [Gnum] [Bnum]
... (102)
When the color set (num0-num7) is given by the equations (95) to (102), the L * a * b * values (L0, a0) of the eight color signals selected as the color set (num0-num7). , B0) to (L7, a7, b7) are given by the equations (7) to (14).

また、重み係数を生成するときの立方体を分割する値(Lw,aw,bw)は、以下の式で与えられる。
Lw=Lwmin[Rnum][Gnum][Bnum]・・・(103)
aw=awmin[Rnum][Gnum][Bnum]・・・(104)
bw=bwmin[Rnum][Gnum][Bnum]・・・(105)
そして、(103)〜(105)式を用いることにより、補間演算を行う時の重み係数が(18)〜(25)式により与えられ、(18)〜(25)式により求め重み係数を用いることにより、格子RGB値(Rgrid、Ggrid、Bgrid)に対応するL* a* b* 値を(45)〜(47)式により求めることができる。
Further, values (Lw, aw, bw) for dividing the cube when generating the weighting coefficient are given by the following equations.
Lw = Lwmin [Rnum] [Gnum] [Bnum] (103)
aw = awmin [Rnum] [Gnum] [Bnum] (104)
bw = bwmin [Rnum] [Gnum] [Bnum] (105)
Then, by using the equations (103) to (105), the weighting coefficient when performing the interpolation calculation is given by the expressions (18) to (25), and the weighting coefficient obtained by the expressions (18) to (25) is used. As a result, L * a * b * values corresponding to the grid RGB values (Rgrid, Ggrid, Bgrid) can be obtained from the equations (45) to (47).

以上の補間演算で、不規則テーブルで包囲されている範囲の格子RGB値を、規則テーブルに設定することができる。続いて、第1実施例と同様に、外挿による規則テーブルの追加を行えば、規則テーブルを完成することができる。   With the above interpolation calculation, the grid RGB values in the range surrounded by the irregular table can be set in the regular table. Subsequently, as in the first embodiment, the rule table can be completed by adding the rule table by extrapolation.

次に、本発明の第4実施例に係わるテーブル変換方法について説明する。この第4実施例に係わるテーブル変換方法は、四面体補間により不規則テーブルを規則テーブルに変換するとともに、RGB空間を分割するときの基準点が補間対象となる格子点と異なるように設定することを可能としたものである。   Next, a table conversion method according to the fourth embodiment of the present invention will be described. In the table conversion method according to the fourth embodiment, the irregular table is converted into the rule table by tetrahedral interpolation, and the reference point when dividing the RGB space is set to be different from the lattice point to be interpolated. Is possible.

この第4実施例の処理ステップは、「色の組の作成」、「補間による規則テーブルの生成(前処理)」、「補間による規則テーブルの生成(後処理)」及び「外挿による規則テーブルの追加」の4段階からなる。   The processing steps of the fourth embodiment are “color set creation”, “rule table generation by interpolation (pre-processing)”, “rule table generation by interpolation (post-processing)”, and “rule table by extrapolation” It consists of four stages of “addition of”.

色の組の作成では、色空間を分割する際の基準となるRGB値を設定し、この基準となるRGB値を中心として色空間を8つの領域に分割する。そして、分割された8つの領域から3つの領域を選択し、選択された3つの領域から基準となるRGB値に最も近い色信号を選択する。なお、基準となるRGB値及び選択された3つの色信号からなる4つの色信号を、以下、「色の組み」と呼ぶ。   In creating a color set, an RGB value serving as a reference when the color space is divided is set, and the color space is divided into eight regions around the RGB value serving as the reference. Then, three areas are selected from the eight divided areas, and the color signal closest to the reference RGB value is selected from the three selected areas. The four color signals including the reference RGB value and the selected three color signals are hereinafter referred to as “color combinations”.

ここで、基準となるRGB値は、例えば、不規則テーブルに登録されている色信号を順次選択することにより設定することができる。そして、選択した色の組みを補間して多数の色信号を生成し、補間により生成された多数の色信号の中から、格子RGB値に近い色信号を検出し、その検出された色信号に対応するL* a* b* 値を規則テーブルに登録する。ただし、L* a* b* 値の登録は、全ての色の組みの作成終了後に一括して行う。   Here, the reference RGB value can be set, for example, by sequentially selecting color signals registered in the irregular table. Then, the selected set of colors is interpolated to generate a large number of color signals, and a color signal close to the grid RGB value is detected from the large number of color signals generated by the interpolation. The corresponding L * a * b * value is registered in the rule table. However, the L * a * b * values are registered in a lump after the creation of all color combinations.

図35は、本発明の一実施例に係わる色信号選択方法を3次元の色空間上で示す図である。
図35において、3次元空間を分割する時の基準となる点Pが与えられ、この点Pを中心として、3次元空間が8つの領域1〜8に分割されている。そして、互いに隣接している3つの領域を、分割された8つの領域1〜8から選択し、選択された3つの領域に分布している色信号のうち、点Pに最も近いものを選択する。例えば、互いに隣接している3つの領域として、領域0,1,6が選択され、領域0から点P0を選択し、領域1から点P1を選択し、領域6から点P6を選択する。なお、分割された8つの領域1〜8から互いに隣接している3つの領域を選択する方法は24通りあるので、点Pに対して3つの点を選択する方法は24通りある。
FIG. 35 is a diagram showing a color signal selection method according to an embodiment of the present invention on a three-dimensional color space.
In FIG. 35, a point P that is a reference when dividing the three-dimensional space is given, and the three-dimensional space is divided into eight regions 1 to 8 around the point P. Then, the three areas adjacent to each other are selected from the eight divided areas 1 to 8, and the color signal distributed in the selected three areas is selected to be closest to the point P. . For example, regions 0, 1, 6 are selected as three regions adjacent to each other, point P0 is selected from region 0, point P1 is selected from region 1, and point P6 is selected from region 6. Note that there are 24 methods for selecting three regions adjacent to each other from the divided eight regions 1 to 8, and therefore there are 24 methods for selecting three points for the point P.

以下、色の組の作成アルゴリズムを順を追って説明する。なお、この例では、基準とする色信号として、不規則テーブルに登録されているRGB値(Rin[j],Gin[j],Bin[j])を、0≦j<色数について順次選択する。そして、1つの基準とする色信号に対して、領域の選択方法を24通りに変えて行うものとする。   In the following, the color group creation algorithm will be described in order. In this example, the RGB values (Rin [j], Gin [j], Bin [j]) registered in the irregular table are sequentially selected for 0 ≦ j <number of colors as the reference color signal. To do. It is assumed that the region selection method is changed in 24 ways for one reference color signal.

まず、初期化として、不規則テーブルに登録されているRGB値及びL* a* b* 値(ターゲットの色、0≦k<色数)を、配列Lin[k],ain[k],bin[k],Rin[k],Gin[k],Bin[k]に設定する。   First, as initialization, RGB values and L * a * b * values (target colors, 0 ≦ k <number of colors) registered in the irregular table are arrayed Lin [k], ain [k], bin. Set to [k], Rin [k], Gin [k], Bin [k].

次に、不規則テーブルに登録されているRGB値(Rin[k],Gin[k],Bin[k])の中から、色空間を分割する際の基準となるRGB値(Rin[j],Gin[j],Bin[j])を順次選択し、以下のように設定する。ただし、0≦j<色数である。   Next, among RGB values (Rin [k], Gin [k], Bin [k]) registered in the irregular table, RGB values (Rin [j]) serving as a reference for dividing the color space are used. , Gin [j], Bin [j]) are sequentially selected and set as follows. However, 0 ≦ j <number of colors.

Rcnet=Rin[j] ・・・(105)
Gcnet=Gin[j] ・・・(106)
Bcnet=Bin[j] ・・・(107)
次に、(105)〜(107)により設定された色信号を中心にRGB空間を8つの領域に分割する。そして、分割された8つの領域から3つの領域を選択し、選択された3つの領域から基準となるRGB値に最も近い色信号を選択する。
Rcnet = Rin [j] (105)
Gcnet = Gin [j] (106)
Bcnet = Bin [j] (107)
Next, the RGB space is divided into eight regions around the color signal set in (105) to (107). Then, three areas are selected from the eight divided areas, and the color signal closest to the reference RGB value is selected from the three selected areas.

具体的には、0≦i<ターゲット色数について、RGB空間を以下のように8つの領域1〜8に分類する。
領域0:Rin[i]>Rgrid、Gin[i]≦Ggrid、
Bin[i]≦Bgrid
ただし、Rin[i]=Rcent,Gin[i]=Gcent,
Bin[i]=Bcentの三つの等号同時成立は除く。
領域1:Rin[i]>Rgrid、Gin[i]≦Ggrid、
Bin[i]≦Bgrid
領域2:Rin[i]≦Rgrid、Gin[i]>Ggrid、
Bin[i]≦Bgrid
領域3:Rin[i]≦Rgrid、Gin[i]≦Ggrid、
Bin[i]>Bgrid
領域4:Rin[i]>Rgrid、Gin[i]>Ggrid、
Bin[i]≦Bgrid
領域5:Rin[i]≦Rgrid、Gin[i]>Ggrid、
Bin[i]>Bgrid
領域6:Rin[i]>Rgrid、Gin[i]≦Ggrid、
Bin[i]>Bgrid
領域7:Rin[i]>Rgrid、Gin[i]>Ggrid、
Bin[i]>Bgrid
そして、以下の24通りの組み合わせについて、各領域1〜8に分類された(Rin[i],Gin[i],Bin[i])の中で、基準とするRGB値(Rin[j],Gin[j],Bin[j])との距離が最も小さいRGB値の番号をnum2〜num4に保存する。なお、num1には、基準とするRGB値の番号を保存する。
Specifically, for 0 ≦ i <target number of colors, the RGB space is classified into eight regions 1 to 8 as follows.
Region 0: Rin [i]> Rgrid, Gin [i] ≦ Ggrid,
Bin [i] ≦ Bgrid
However, Rin [i] = Rcent, Gin [i] = Gcent,
Excluding simultaneous establishment of three equal signs of Bin [i] = Bcent.
Region 1: Rin [i]> Rgrid, Gin [i] ≦ Ggrid,
Bin [i] ≦ Bgrid
Region 2: Rin [i] ≦ Rgrid, Gin [i]> Ggrid,
Bin [i] ≦ Bgrid
Region 3: Rin [i] ≦ Rgrid, Gin [i] ≦ Ggrid,
Bin [i]> Bgrid
Region 4: Rin [i]> Rgrid, Gin [i]> Ggrid,
Bin [i] ≦ Bgrid
Region 5: Rin [i] ≦ Rgrid, Gin [i]> Ggrid,
Bin [i]> Bgrid
Region 6: Rin [i]> Rgrid, Gin [i] ≦ Ggrid,
Bin [i]> Bgrid
Region 7: Rin [i]> Rgrid, Gin [i]> Ggrid,
Bin [i]> Bgrid
The following 24 combinations are classified into regions 1 to 8 (Rin [i], Gin [i], Bin [i]), and the reference RGB values (Rin [j], The number of the RGB value having the smallest distance from Gin [j], Bin [j]) is stored in num2 to num4. In num1, the reference RGB number is stored.

組み合わせ1:
num1=j
基準とする色との距離が領域0,1,2で最も小さい色の番号をそれぞれnum2、num3、num4に保存
組み合わせ2:
num1=j
基準とする色との距離が領域0,1,3で最も小さい色の番号をそれぞれnum2、num3、num4に保存
組み合わせ3:
num1=j
基準とする色との距離が領域0,2,3で最も小さい色の番号をそれぞれnum2、num3、num4に保存
組み合わせ4:
num1=j
基準とする色との距離が領域0,1,4で最も小さい色の番号をそれぞれnum2、num3、num4に保存
組み合わせ5:
num1=j
基準とする色との距離が領域0,1,6で最も小さい色の番号をそれぞれnum2、num3、num4に保存
組み合わせ6:
num1=j
基準とする色との距離が領域1,4,6で最も小さい色の番号をそれぞれnum2、num3、num4に保存
組み合わせ7:
num1=j
基準とする色との距離が領域0,2,4で最も小さい色の番号をそれぞれnum2、num3、num4に保存
組み合わせ8:
num1=j
基準とする色との距離が領域0,2,5で最も小さい色の番号をそれぞれnum2、num3、num4に保存
組み合わせ9:
num1=j
基準とする色との距離が領域2,4,5で最も小さい色の番号をそれぞれnum2、num3、num4に保存
組み合わせ10:
num1=j
基準とする色との距離が領域0,3,5で最も小さい色の番号をそれぞれnum2、num3、num4に保存
組み合わせ11:
num1=j
基準とする色との距離が領域0,3,6で最も小さい色の番号をそれぞれnum2、num3、num4に保存
組み合わせ12:
num1=j
基準とする色との距離が領域5,3,6で最も小さい色の番号をそれぞれnum2、num3、num4に保存
組み合わせ13:
num1=j
基準とする色との距離が領域1,2,4で最も小さい色の番号をそれぞれnum2、num3、num4に保存
組み合わせ14:
num1=j
基準とする色との距離が領域1,4,7で最も小さい色の番号をそれぞれnum2、num3、num4に保存
組み合わせ15:
num1=j
基準とする色との距離が領域2,4,7で最も小さい色の番号をそれぞれnum2、num3、num4に保存
組み合わせ16:
num1=j
基準とする色との距離が領域2,3,5で最も小さい色の番号をそれぞれnum2、num3、num4に保存
組み合わせ17:
num1=j
基準とする色との距離が領域2,5,7で最も小さい色の番号をそれぞれnum2、num3、num4に保存
組み合わせ18:
num1=j
基準とする色との距離が領域3,5,7で最も小さい色の番号をそれぞれnum2、num3、num4に保存
組み合わせ19:
num1=j
基準とする色との距離が領域1,3,6で最も小さい色の番号をそれぞれnum2、num3、num4に保存
組み合わせ20:
num1=j
基準とする色との距離が領域1,6,7で最も小さい色の番号をそれぞれnum2、num3、num4に保存
組み合わせ21:
num1=j
基準とする色との距離が領域3,6,7で最も小さい色の番号をそれぞれnum2、num3、num4に保存
組み合わせ22:
num1=j
基準とする色との距離が領域4,5,7で最も小さい色の番号をそれぞれnum2、num3、num4に保存
組み合わせ23:
num1=j
基準とする色との距離が領域4,6,7で最も小さい色の番号をそれぞれnum2、num3、num4に保存
組み合わせ24:
num1=j
基準とする色との距離が領域5,6,7で最も小さい色の番号をそれぞれnum2、num3、num4に保存
図36は、本発明の第2実施例に係わる色信号の組の選択方法を示すフローチ
ャートである。
Combination 1:
num1 = j
The number of the smallest color in the areas 0, 1, and 2 with respect to the reference color is stored in num2, num3, and num4, respectively. Combination 2:
num1 = j
The number of the smallest color whose distance from the reference color is 0, 1, 3 is stored in num2, num3, and num4, respectively. Combination 3:
num1 = j
The number of the smallest color in the areas 0, 2, and 3 with respect to the reference color is stored in num2, num3, and num4, respectively. Combination 4:
num1 = j
The number of the smallest color whose distance from the reference color is in areas 0, 1, and 4 is stored in num2, num3, and num4, respectively. Combination 5:
num1 = j
The number of the smallest color in the areas 0, 1, and 6 with respect to the reference color is stored in num2, num3, and num4, respectively. Combination 6:
num1 = j
The number of the smallest color in the areas 1, 4 and 6 with respect to the reference color is stored in num2, num3 and num4, respectively. Combination 7:
num1 = j
The number of the smallest color in the areas 0, 2, and 4 with respect to the reference color is stored in num2, num3, and num4, respectively. Combination 8:
num1 = j
The number of the smallest color in the areas 0, 2, and 5 with respect to the reference color is stored in num2, num3, and num4, respectively. Combination 9:
num1 = j
Save the number of the smallest color in the areas 2, 4 and 5 to the reference color in num2, num3 and num4, respectively. Combination 10:
num1 = j
The number of the smallest color in the areas 0, 3, and 5 with respect to the reference color is stored in num2, num3, and num4, respectively. Combination 11:
num1 = j
The number of the smallest color whose distance from the reference color is 0, 3, 6 is stored in num2, num3, and num4, respectively. Combination 12:
num1 = j
The number of the smallest color in the areas 5, 3 and 6 with respect to the reference color is stored in num2, num3 and num4, respectively. Combination 13:
num1 = j
The number of the smallest color in the areas 1, 2 and 4 with respect to the reference color is stored in num2, num3, and num4, respectively. Combination 14:
num1 = j
Save the number of the smallest color in the areas 1, 4 and 7 to the reference color in num2, num3 and num4, respectively Combination 15:
num1 = j
Save the number of the smallest color in the areas 2, 4 and 7 to the reference color in num2, num3 and num4 respectively. Combination 16:
num1 = j
The number of the smallest color whose distance from the reference color is the area 2, 3, 5 is stored in num2, num3, and num4, respectively. Combination 17:
num1 = j
The number of the smallest color in the areas 2, 5, and 7 with respect to the reference color is stored in num2, num3, and num4, respectively. Combination 18:
num1 = j
The number of the smallest color in the areas 3, 5 and 7 with respect to the reference color is stored in num2, num3 and num4, respectively. Combination 19:
num1 = j
The number of the smallest color whose distance from the reference color is the area 1, 3, 6 is stored in num2, num3, and num4, respectively. Combination 20:
num1 = j
Save the number of the smallest color in the areas 1, 6 and 7 to the reference color in num2, num3 and num4 respectively. Combination 21:
num1 = j
The number of the smallest color whose distance from the reference color is in regions 3, 6 and 7 is stored in num2, num3, and num4, respectively. Combination 22:
num1 = j
The number of the smallest color whose distance from the reference color is in areas 4, 5, and 7 is stored in num2, num3, and num4, respectively. Combination 23:
num1 = j
The number of the smallest color whose distance from the reference color is the area 4, 6, 7 is stored in num2, num3, and num4, respectively. Combination 24:
num1 = j
The number of the smallest color in the areas 5, 6 and 7 with respect to the reference color is stored in num2, num3, and num4, respectively. FIG. It is a flowchart to show.

図36において、まず、スキャナによる入力値と測色機による測色値を配列に設定する(ステップS161)。ここで、この配列に設定される色信号は、一般的に不規則なものとなり、配列の特定は、ターゲットの色に対応した色番号jを指定することにより行うことができる。   In FIG. 36, first, an input value by the scanner and a colorimetric value by the colorimeter are set in an array (step S161). Here, the color signals set in this array are generally irregular, and the array can be specified by designating the color number j corresponding to the target color.

次に、色番号jを0に設定し(ステップS162)、色番号jにより特定されるRGB値(Rin[j]、Gin[j]、Bin[j])を、基準となる色信号として選択する(ステップS163)。   Next, the color number j is set to 0 (step S162), and the RGB values (Rin [j], Gin [j], Bin [j]) specified by the color number j are selected as reference color signals. (Step S163).

次に、組み合わせ番号を1に設定し(ステップS164)、組み合わせ番号に応じて領域を設定する(ステップS165)。
次に、設定された各領域について、基準となる色信号に最も近い色信号を選択する(ステップS166)。
Next, the combination number is set to 1 (step S164), and an area is set according to the combination number (step S165).
Next, for each set area, the color signal closest to the reference color signal is selected (step S166).

次に、4つの色信号を選択することができたかどうかを判断し(ステップS167)、4つの色信号を選択することができた場合、補間による規則テーブルの生成を行い(ステップS168)、ステップS169に進む。   Next, it is determined whether or not four color signals can be selected (step S167). If four color signals can be selected, a rule table is generated by interpolation (step S168). The process proceeds to S169.

一方、4つの色信号を選択することができない場合、組み合わせ番号が24以下かどうかを判断し(ステップS169)、組み合わせ番号が24以下の場合、組み合わせ番号を1つだけ増加させて(ステップS170)、ステップS165に戻る。   On the other hand, if the four color signals cannot be selected, it is determined whether the combination number is 24 or less (step S169). If the combination number is 24 or less, the combination number is incremented by one (step S170). Return to step S165.

一方、組み合わせ番号が24を越える場合、色番号jが色数より小さいかどうかを判断し(ステップS171)、色番号jが色数より小さい場合、色番号jを1つだけ増加させて(ステップS172)、ステップS163に戻る。   On the other hand, if the combination number exceeds 24, it is determined whether the color number j is smaller than the number of colors (step S171). If the color number j is smaller than the number of colors, the color number j is increased by one (step S171). S172), the process returns to step S163.

一方、色番号jが色数以上となった場合、処理を終了する。
上記のnum1〜num4の全てが設定された場合、補間による規則テーブルの生成(前処理)を行い、設定できない色信号がある場合、格子点の選択に戻る。
On the other hand, if the color number j is greater than or equal to the number of colors, the process is terminated.
When all of the above num1 to num4 are set, a rule table is generated (pre-processed) by interpolation. If there is a color signal that cannot be set, the process returns to the selection of the grid point.

補間による規則テーブルの生成(前処理)では、基準となるRGB値(Rin[j],Gin[j],Bin[j])に基づいて選択された色の組(num0〜num4)を用いて補間することにより、新たな色信号(Rnew,Gnew,Bnew)の対応関係を作成する。なお、補間演算時の重み係数は、(51)〜(54)式を用いて設定することができ、色の組(num0〜num4)の各RGB値は、(55)〜(58)式を用いて設定することができ、新たな色信号(Rnew,Gnew,Bnew)は、(58)〜(60)式を用いて算出することができる。   In the generation (preprocessing) of the rule table by interpolation, a set of colors (num0 to num4) selected based on the reference RGB values (Rin [j], Gin [j], Bin [j]) are used. By interpolating, a correspondence relationship between new color signals (Rnew, Gnew, Bnew) is created. The weighting coefficient at the time of interpolation calculation can be set using the equations (51) to (54), and the RGB values of the color pairs (num0 to num4) are expressed by the equations (55) to (58). The new color signal (Rnew, Gnew, Bnew) can be calculated using equations (58) to (60).

そして、補間対象となる格子RGB値の中から、新たに作成した色信号(Rnew,Gnew,Bnew)に最も近い格子RGB値を選択する。ここで、複数の色の組(num0〜num4)の間で同一の格子RGB値が選択された場合、選択された格子RGB値との距離が最も小さい色信号(Rnew,Gnew,Bnew)を生成する色の組(num0〜num4)を選択する。   Then, the grid RGB value closest to the newly created color signal (Rnew, Gnew, Bnew) is selected from the grid RGB values to be interpolated. Here, when the same grid RGB value is selected among a plurality of color sets (num0 to num4), a color signal (Rnew, Gnew, Bnew) having the smallest distance from the selected grid RGB value is generated. A set of colors (num0 to num4) to be selected is selected.

全ての不規則テーブルの色信号について色の組みの生成が終わったならば、補間による規則テーブルの生成(後処理)を行う。
補間による規則テーブルの生成(後処理)では、補間対象となる格子RGB値についての色の組(num0〜num4)が決まると、この格子RGB値の選択に使われた色信号(Rnew,Gnew,Bnew)を生成した時の重み係数を決定する。そして、色の組(num0〜num4)として選択されたL* a* b* 値にこの重み係数をかけ合わせることにより、格子RGB値に対応するL* a* b* 値を生成する。なお、L* a* b* 値を算出する時の重み係数は、(66)〜(69)式を用いて設定することができ、色の組(num0〜num4)の各L* a* b* 値は、(70)〜(73)式を用いて設定することができ、格子RGB値に対応するL* a* b* 値は、(74)〜(76)式を用いて算出することができる。
When the generation of the color set is completed for the color signals of all the irregular tables, the rule table is generated (post-processing) by interpolation.
In generation (post-processing) of a rule table by interpolation, when a set of colors (num0 to num4) for a grid RGB value to be interpolated is determined, the color signals (Rnew, Gnew, (Bnew) is generated. Then, L * a * b * values corresponding to the grid RGB values are generated by multiplying the L * a * b * values selected as the color pairs (num0 to num4) by this weighting factor. The weighting factor for calculating the L * a * b * value can be set using the equations (66) to (69), and each L * a * b of the color set (num0 to num4). * Values can be set using equations (70) to (73), and L * a * b * values corresponding to grid RGB values should be calculated using equations (74) to (76). Can do.

色の組みの選択、補間による規則テーブルの生成(前処理)及び補間による規則テーブルの生成(後処理)により、不規則テーブルで包囲されている範囲内の格子RGB値の設定が終わる。続いて、第1実施例と同様に外挿による規則テーブルの追加を行うことにより、規則テーブルを完成することができる。なお、この外挿による規則テーブルの追加は、第1実施例で説明した方法と同様に行うことができる。   The selection of a set of colors, generation of a rule table by interpolation (pre-processing), and generation of a rule table by interpolation (post-processing) complete setting of grid RGB values within the range surrounded by the irregular table. Subsequently, the rule table can be completed by adding the rule table by extrapolation as in the first embodiment. Note that the addition of the rule table by extrapolation can be performed in the same manner as described in the first embodiment.

以上、本発明の実施例について説明したが、本発明は上述した実施例に限定されることなく、本発明の技術的思想の範囲内で他の様々の変更が可能である。例えば、上述した実施例では、RGB値をL* a* b* 値に変換する方法について説明したが、機器に依存しない独立色空間の色信号はCMY値やCMYK値であってもよく、機器に依存する機器依存色空間の色信号はXYZ値であってもよい。   As mentioned above, although the Example of this invention was described, this invention is not limited to the Example mentioned above, Various other changes are possible within the range of the technical idea of this invention. For example, in the above-described embodiment, the method of converting the RGB value into the L * a * b * value has been described. However, the color signal of the independent color space independent of the device may be a CMY value or a CMYK value. The color signal in the device-dependent color space depending on the XYZ value may be used.

本発明の一実施例に係わる色信号選択装置の構成を示すブロック図である。It is a block diagram which shows the structure of the color signal selection apparatus concerning one Example of this invention. 本発明の第1実施例に係わる色信号選択方法を2次元の色空間上で示す図である。It is a figure which shows the color signal selection method concerning 1st Example of this invention on a two-dimensional color space. 本発明の第1実施例に係わる色信号選択方法を示すフローチャートである。3 is a flowchart illustrating a color signal selection method according to the first embodiment of the present invention. 本発明の第1実施例に係わる領域分割方法を示すフローチャートである。It is a flowchart which shows the area division | segmentation method concerning 1st Example of this invention. 本発明の第2実施例に係わる色信号選択方法を2次元の色空間上で示す図である。It is a figure which shows the color signal selection method concerning 2nd Example of this invention on a two-dimensional color space. 本発明の第2実施例に係わる色信号選択方法を示すフローチャートである。It is a flowchart which shows the color signal selection method concerning 2nd Example of this invention. 本発明の第2実施例に係わる色信号選択方法を3次元の色空間上で示す図である。It is a figure which shows the color signal selection method concerning 2nd Example of this invention on a three-dimensional color space. 本発明の第2実施例に係わる色信号を3次元の色空間上で選択する方法を示す図である。It is a figure which shows the method of selecting the color signal concerning 2nd Example of this invention on a three-dimensional color space. 本発明の第3実施例に係わる色信号選択方法を2次元の色空間上で示す図である。It is a figure which shows the color signal selection method concerning 3rd Example of this invention on a two-dimensional color space. 本発明の第3実施例に係わる色信号選択方法を示すフローチャートである。It is a flowchart which shows the color signal selection method concerning 3rd Example of this invention. 本発明の第4実施例に係わる色信号選択方法を2次元の色空間上で示す図である。It is a figure which shows the color signal selection method concerning 4th Example of this invention on a two-dimensional color space. 本発明の第4実施例に係わる色信号選択方法を示すフローチャートである。It is a flowchart which shows the color signal selection method concerning 4th Example of this invention. 本発明の一実施例に係わる色信号補間装置の構成を示すブロック図である。1 is a block diagram illustrating a configuration of a color signal interpolation apparatus according to an embodiment of the present invention. 本発明の一実施例に係わる色信号補間方法を色空間上で示す図である。It is a figure which shows the color signal interpolation method concerning one Example of this invention on color space. 本発明の一実施例に係わる色信号処理装置のシステム構成を示すブロック図である。1 is a block diagram showing a system configuration of a color signal processing apparatus according to an embodiment of the present invention. 本発明の一実施例に係わる色信号生成方法を色空間上で示す図である。It is a figure which shows the color signal generation method concerning one Example of this invention on color space. 本発明の一実施例に係わる色変換テーブルの生成方法を示すフローチャートである。4 is a flowchart illustrating a method for generating a color conversion table according to an embodiment of the present invention. 本発明の一実施例に係わる外挿点生成方法を示すフローチャートである。It is a flowchart which shows the extrapolation point production | generation method concerning one Example of this invention. 本発明の一実施例に係わる色変換テーブル生成装置の構成を示すブロック図である。It is a block diagram which shows the structure of the color conversion table production | generation apparatus concerning one Example of this invention. 本発明の一実施例に係わる色信号選択方法をRGB空間上で2次元的に示す図である。It is a figure which shows the color signal selection method concerning one Example of this invention two-dimensionally on RGB space. 本発明の第1実施例に係わる色信号の組の選択方法を示すフローチャートである。3 is a flowchart showing a method for selecting a set of color signals according to the first embodiment of the present invention. 本発明の第1実施例に係わるRGB空間とL* a* b* 空間との分割方法を示す図である。It is a figure which shows the division | segmentation method of RGB space and L * a * b * space concerning 1st Example of this invention. 本発明の第2実施例に係わるRGB空間とL* a* b* 空間との分割方法を示す図である。It is a figure which shows the division | segmentation method of RGB space and L * a * b * space concerning 2nd Example of this invention. 本発明の一実施例に係わる選択された点を3次元の色空間上で示す図である。FIG. 6 is a diagram illustrating a selected point according to an embodiment of the present invention on a three-dimensional color space. 本発明の一実施例に係わる立方体補間で使用する重み係数の算出方法を説明する図である。It is a figure explaining the calculation method of the weighting coefficient used by the cube interpolation concerning one Example of this invention. 本発明の第1実施例に係わる補間による規則的な色信号の生成方法を示すフローチャートである。3 is a flowchart illustrating a method of generating a regular color signal by interpolation according to the first embodiment of the present invention. 本発明の一実施例に係わる外挿点生成方法を色空間上で2次元的に示す図である。It is a figure which shows the extrapolation point production | generation method concerning one Example of this invention two-dimensionally on color space. 本発明の一実施例に係わる3次元空間上での隣接点を示す図である。It is a figure which shows the adjacent point on the three-dimensional space concerning one Example of this invention. 本発明の一実施例に係わる外挿点選択処理をRGB空間上で2次元的に示す図である。It is a figure which shows the extrapolation point selection process concerning one Example of this invention two-dimensionally on RGB space. 本発明の一実施例に係わる外挿点生成時におけるRGB信号とL* a* b* 信号との対応関係を示す図である。It is a figure which shows the correspondence of the RGB signal and the L * a * b * signal at the time of the extrapolation point generation concerning one Example of this invention. 本発明の一実施例に係わる外挿による規則的な色信号の生成方法を示すフローチャートである。5 is a flowchart illustrating a method for generating a regular color signal by extrapolation according to an embodiment of the present invention. 本発明の第2実施例に係わる補間による規則的な色信号の生成方法を示すフローチャートである。It is a flowchart which shows the production | generation method of the regular color signal by the interpolation concerning 2nd Example of this invention. 本発明の第3実施例に係わる補間による規則的な色信号の生成方法を色空間上で示す図である。It is a figure which shows the production | generation method of the regular color signal by the interpolation concerning 3rd Example of this invention on a color space. 本発明の第3実施例に係わる補間による規則的な色信号の生成方法を示すフローチャートである。It is a flowchart which shows the production | generation method of the regular color signal by the interpolation concerning 3rd Example of this invention. 本発明の一実施例に係わる色信号選択方法を3次元の色空間上で示す図である。It is a figure which shows the color signal selection method concerning one Example of this invention on a three-dimensional color space. 本発明の第2実施例に係わる色信号の組の選択方法を示すフローチャートである。It is a flowchart which shows the selection method of the group of the color signal concerning 2nd Example of this invention. 従来の包囲点選択方法を示すフローチャートである。It is a flowchart which shows the conventional surrounding point selection method.

符号の説明Explanation of symbols

1 色空間分割手段
2 色信号選択手段
11 色信号入力手段
12 色信号選択手段
13 対応関係獲手段
14 重み係数設定手段
15 補間点生成手段
16 重み係数選択手段
17 補間演算手段
21 CPU
22 ROM
23 RAM
24 入出力インターフェイス
25 ディスプレイ
26 プリンタ
27 メモリ
28 スキャナ
29 通信インターフェイス
30 通信ネットワーク
31 ドライバ
32 ハードディスク
33 ICメモリカード
34 磁気テープ
35 フレキシブルディスク
36 光ディスク
37 バス
38 キーボード
41、49 色変換テーブル
41a RBG値
41b、49b L* a* b* 値
49a RGB番号
49c 近接度
42 色票
43 スキャナ
44 測色機
45 選択部
46 補間部
47 近接度検出部
48 近接度算出部
50 比較選択部
51 登録部
DESCRIPTION OF SYMBOLS 1 Color space division means 2 Color signal selection means 11 Color signal input means 12 Color signal selection means 13 Correspondence acquisition means 14 Weight coefficient setting means 15 Interpolation point generation means 16 Weight coefficient selection means 17 Interpolation calculation means 21 CPU
22 ROM
23 RAM
24 Input / Output Interface 25 Display 26 Printer 27 Memory 28 Scanner 29 Communication Interface 30 Communication Network 31 Driver 32 Hard Disk 33 IC Memory Card 34 Magnetic Tape 35 Flexible Disk 36 Optical Disk 37 Bus 38 Keyboard 41, 49 Color Conversion Table 41a RBG Value 41b, 49b L * a * b * value 49a RGB number 49c Proximity 42 Color chart 43 Scanner 44 Colorimeter 45 Selection unit 46 Interpolation unit 47 Proximity detection unit 48 Proximity calculation unit 50 Comparison selection unit 51 Registration unit

Claims (6)

入力された第1の色信号を分割の境界として、色空間を複数の領域に分割する色空間分割手段と、
分割された複数の領域それぞれにおいて、不規則に分布する色信号群から色信号を選択することによって第1の色信号を包囲する第2の色信号群を選択する色信号選択手段と
不規則に分布する色信号群から色信号の一つを第2の色信号群の一つとして選択し、この信号が前記分割された2つ以上の領域の境界に来るように、前記不規則に分布する色信号群を回転させる回転手段と、
を備え、前記色信号選択手段は、前記境界を作る領域以外から不規則に分布する色信号群から色信号を追加選択することによって、第1の色信号を包囲する第2の色信号群を選択することを特徴とする色信号選択装置。
Color space dividing means for dividing the color space into a plurality of regions using the input first color signal as a dividing boundary;
Color signal selection means for selecting a second color signal group surrounding the first color signal by selecting a color signal from the color signal group randomly distributed in each of the plurality of divided areas ;
One of the color signals is selected as one of the second color signal group from the irregularly distributed color signal group, and the irregular signal is arranged so that the signal comes to the boundary of the two or more divided areas. Rotating means for rotating the color signal group distributed in
And the color signal selection means further selects a second color signal group surrounding the first color signal by additionally selecting a color signal from a color signal group that is irregularly distributed from a region other than the region forming the boundary. selection to a color signal selecting device according to claim Rukoto.
前記色空間分割手段は、第1の色信号値に対する色信号値の大小関係で分割する手段であり、
前記色信号選択手段は、前記大小関係によって分割された複数の領域それぞれにおいて、不規則に分布する色信号群から色信号を選択することによって、第1の色信号を包囲する第2の色信号群を選択する手段であることを特徴とする請求項1に記載の色信号選択装置。
The color space dividing unit is a unit that divides the color signal value with respect to the first color signal value according to a magnitude relationship.
The color signal selection unit selects a color signal from a group of color signals that are irregularly distributed in each of the plurality of regions divided according to the magnitude relationship, thereby providing a second color signal surrounding the first color signal. 2. The color signal selection apparatus according to claim 1, wherein the color signal selection apparatus is a means for selecting a group.
前記色信号選択手段は、
前記第1の色信号との距離が最も短い色信号を選択することを特徴とする請求項1または2に記載の色信号選択装置。
The color signal selection means includes
The color signal selection apparatus according to claim 1 or 2 , wherein the color signal having the shortest distance from the first color signal is selected.
前記色信号選択手段は、
前記第1の色信号との距離が所定の値以上の範囲において、距離が最も短い色信号を選択することを特徴とする請求項1〜のいずれか1項に記載の色信号選択装置。
The color signal selection means includes
Wherein the first range distance is equal to or larger than the predetermined value of the color signal, a color signal selecting device according to any one of claims 1 to 3, distance and selects the shortest color signals.
第1の色空間に属する色信号の第2の色空間への変換結果を、第1の色空間に不規則に分布する色信号群に対する第2の色空間の色信号の、予め与えられた対応関係を基準に、補間演算によって生成する色信号補間装置であって、
第1の色空間に属する第1の色信号を入力する色信号入力手段と、
第1の色信号を分割の境界として色空間を複数の領域に分割する色空間分割手段と、
前記第1の色信号を包囲する第1の色空間の色信号である第2の色信号群を、分割された複数の領域から選択する色信号選択手段と、
不規則に分布する色信号群から色信号の一つを第2の色信号群の一つとして選択し、この信号が前記分割された2つ以上の領域の境界に来るように、前記不規則に分布する色信号群を回転させる回転手段と、
前記第2の色信号群の第2の色空間での対応信号である第3の色信号群を、前記予め与えられた対応関係に沿って定める対応関係獲得手段と、
前記第3の色信号群に補間演算を実施することにより、前記第1の色信号の前記第2の色空間への変換結果を算出する補間演算手段と
を備え
前記色信号選択手段は、前記境界を作る領域以外から不規則に分布する色信号群から色信号を追加選択することによって、第1の色信号を包囲する第2の色信号群を選択することを特徴とする色信号補間装置。
The conversion result of the color signal belonging to the first color space to the second color space is given in advance as the color signal of the second color space for the color signal group irregularly distributed in the first color space. A color signal interpolation device that generates an interpolation operation based on the correspondence relationship,
Color signal input means for inputting a first color signal belonging to the first color space;
Color space dividing means for dividing the color space into a plurality of regions using the first color signal as a boundary of division;
Color signal selection means for selecting a second color signal group, which is a color signal in a first color space surrounding the first color signal, from a plurality of divided areas;
One of the color signals is selected as one of the second color signal group from the irregularly distributed color signal group, and the irregular signal is arranged so that the signal comes to the boundary of the two or more divided areas. Rotating means for rotating the color signal group distributed in
Correspondence relationship acquisition means for determining a third color signal group that is a corresponding signal in the second color space of the second color signal group along the predetermined correspondence relationship;
Interpolation calculation means for calculating a conversion result of the first color signal into the second color space by performing an interpolation calculation on the third color signal group ;
Equipped with a,
The color signal selecting means, by adding selecting a color signal from the color signal groups randomly distributed from outside the area to make the boundary, select the second color signal group surrounding the first color signal A color signal interpolating device characterized by the above.
第1の色空間に属する色信号の第2の色空間への変換結果を、第1の色空間に不規則に分布する色信号群に対する第2の色空間の色信号の予め与えられた対応関係を基準に、補間演算によって生成する色信号補間装置であって、
第1の色空間に属する第1の色信号を入力する色信号入力手段と、
第1の色信号を分割の境界として色空間を複数の領域に分割する色空間分割手段と、
前記第1の色信号を包囲する第1の色空間での色信号である第2の色信号群を、分割された複数の領域から選択する色信号選択手段と、
不規則に分布する色信号群から色信号の一つを第2の色信号群の一つとして選択し、この信号が前記分割された2つ以上の領域の境界に来るように、前記不規則に分布する色信号群を回転させる回転手段と、
前記第2の色信号群の第2の色空間での対応信号である第3の色信号群を、前記予め与えられた対応関係に沿って定める対応関係獲得手段と、
前記第3の色信号群に補間演算を実施することにより、前記第2の色信号群に囲まれる任意の第3の色信号の前記第2の色空間への変換結果を算出する補間演算手段と
を備え
前記色信号選択手段は、前記境界を作る領域以外から不規則に分布する色信号群から色信号を追加選択することによって、第1の色信号を包囲する第2の色信号群を選択することを特徴とする色信号補間装置。
The conversion result of the color signal belonging to the first color space into the second color space is assigned in advance to the color signal of the second color space corresponding to the color signal group irregularly distributed in the first color space. A color signal interpolation device that generates an interpolation operation based on the relationship,
Color signal input means for inputting a first color signal belonging to the first color space;
Color space dividing means for dividing the color space into a plurality of regions using the first color signal as a boundary of division;
Color signal selection means for selecting a second color signal group that is a color signal in a first color space surrounding the first color signal from a plurality of divided areas;
One of the color signals is selected as one of the second color signal group from the irregularly distributed color signal group, and the irregular signal is arranged so that the signal comes to the boundary of the two or more divided areas. Rotating means for rotating the color signal group distributed in
Correspondence relationship acquisition means for determining a third color signal group that is a corresponding signal in the second color space of the second color signal group along the predetermined correspondence relationship;
Interpolation calculation means for calculating a conversion result of an arbitrary third color signal surrounded by the second color signal group into the second color space by performing an interpolation calculation on the third color signal group and,
Equipped with a,
The color signal selecting means, by adding selecting a color signal from the color signal groups randomly distributed from outside the area to make the boundary, select the second color signal group surrounding the first color signal A color signal interpolating device characterized by the above.
JP2004190237A 2004-06-28 2004-06-28 Color signal selection device, color signal interpolation device, color signal generation device, encircling point selection method, and color conversion table creation method Expired - Lifetime JP3831390B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2004190237A JP3831390B2 (en) 2004-06-28 2004-06-28 Color signal selection device, color signal interpolation device, color signal generation device, encircling point selection method, and color conversion table creation method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2004190237A JP3831390B2 (en) 2004-06-28 2004-06-28 Color signal selection device, color signal interpolation device, color signal generation device, encircling point selection method, and color conversion table creation method

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
JP26256497A Division JP4067609B2 (en) 1997-09-26 1997-09-26 Color signal selection device, color signal interpolation device, color signal generation device, encircling point selection method, and color conversion table creation method

Publications (2)

Publication Number Publication Date
JP2004328792A JP2004328792A (en) 2004-11-18
JP3831390B2 true JP3831390B2 (en) 2006-10-11

Family

ID=33509358

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2004190237A Expired - Lifetime JP3831390B2 (en) 2004-06-28 2004-06-28 Color signal selection device, color signal interpolation device, color signal generation device, encircling point selection method, and color conversion table creation method

Country Status (1)

Country Link
JP (1) JP3831390B2 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5830936B2 (en) * 2011-05-27 2015-12-09 ブラザー工業株式会社 Color conversion table creation method, creation apparatus, and computer program
JP5790151B2 (en) * 2011-05-27 2015-10-07 ブラザー工業株式会社 Color conversion table creation method, creation apparatus, and computer program

Also Published As

Publication number Publication date
JP2004328792A (en) 2004-11-18

Similar Documents

Publication Publication Date Title
JP4067609B2 (en) Color signal selection device, color signal interpolation device, color signal generation device, encircling point selection method, and color conversion table creation method
JP4692564B2 (en) Color processing apparatus and program
US20040057614A1 (en) Color adjustment method, color adjustment apparatus, color conversion definition editing apparatus, image processing apparatus, program, and storage medium
JP2000115558A (en) Color characteristic description device, color management device, image conversion device, and color correction method
US8149483B2 (en) Color gamut data creating device
JP2002304621A (en) High-speed interpolation of large color look-up table
JP4276561B2 (en) Color conversion definition creation method, profile creation method, color conversion definition creation device, profile creation device, color conversion definition creation program, and profile creation program
JP3831390B2 (en) Color signal selection device, color signal interpolation device, color signal generation device, encircling point selection method, and color conversion table creation method
WO2003101084A1 (en) Color conversion method and color conversion device
CN104601859B (en) Color conversion apparatus and color changeover method
CN101902542B (en) Color look up table adjusting apparatus
JPH10307911A (en) Multidimensional interpolation method and device therefor
JP2008141237A (en) Color processing apparatus and method
US20050237549A1 (en) Method and apparatus for producing new color chart
JP4049763B2 (en) Color conversion table, color conversion device, color signal generation device, color conversion table creation method, color conversion method, and color gamut determination method
JP6354706B2 (en) Lattice point group generation method, lattice point group generation program, and lattice point group generation device
JP2007267432A (en) Color conversion table, color conversion device, color signal generation device, color conversion table creation method, color conversion method, and color gamut determination method
JP2008054346A (en) Color conversion table, color conversion device, color signal generation device, color conversion table creation method, color conversion method, and color gamut determination method
JP6354707B2 (en) Lattice point group generation method, lattice point group generation program, and lattice point group generation device
JP6734566B2 (en) Lattice point group generation method, lattice point group generation program, and lattice point group generation device
JP3788834B2 (en) Color conversion correspondence table construction method, color conversion apparatus, and image forming apparatus
JP2009071715A (en) Color gamut creation method, color gamut creation device, program, and storage medium
JP6734565B2 (en) Lattice point group generation method, lattice point group generation program, and lattice point group generation device
JP2005167503A (en) Image processing apparatus and image forming apparatus having the same
JP2005064738A (en) Method and device for converting profile and color, image forming device, profile and color conversion process program, and recording medium

Legal Events

Date Code Title Description
A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20060403

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20060425

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20060619

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20060711

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20060713

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

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

Free format text: PAYMENT UNTIL: 20100721

Year of fee payment: 4

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

Free format text: PAYMENT UNTIL: 20100721

Year of fee payment: 4

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

Free format text: PAYMENT UNTIL: 20110721

Year of fee payment: 5

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

Free format text: PAYMENT UNTIL: 20110721

Year of fee payment: 5

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

Free format text: PAYMENT UNTIL: 20120721

Year of fee payment: 6

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

Free format text: PAYMENT UNTIL: 20120721

Year of fee payment: 6

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

Free format text: PAYMENT UNTIL: 20130721

Year of fee payment: 7

EXPY Cancellation because of completion of term