JP3403912B2 - Color converter - Google Patents

Color converter

Info

Publication number
JP3403912B2
JP3403912B2 JP05439697A JP5439697A JP3403912B2 JP 3403912 B2 JP3403912 B2 JP 3403912B2 JP 05439697 A JP05439697 A JP 05439697A JP 5439697 A JP5439697 A JP 5439697A JP 3403912 B2 JP3403912 B2 JP 3403912B2
Authority
JP
Japan
Prior art keywords
interpolation
color
oblique
axis
triangular prism
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
JP05439697A
Other languages
Japanese (ja)
Other versions
JPH10257338A (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.)
Panasonic Corp
Panasonic Holdings Corp
Original Assignee
Panasonic Corp
Matsushita Electric Industrial Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Panasonic Corp, Matsushita Electric Industrial Co Ltd filed Critical Panasonic Corp
Priority to JP05439697A priority Critical patent/JP3403912B2/en
Publication of JPH10257338A publication Critical patent/JPH10257338A/en
Application granted granted Critical
Publication of JP3403912B2 publication Critical patent/JP3403912B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

  • Dot-Matrix Printers And Others (AREA)
  • Color, Gradation (AREA)
  • Image Processing (AREA)
  • Processing Of Color Television Signals (AREA)
  • Facsimile Image Signal Circuits (AREA)
  • Color Image Communication Systems (AREA)
  • Controls And Circuits For Display Device (AREA)

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、生成あるいは入力
されたカラー画像信号に対して、そのディスプレイ出
力、ハードコピー出力、あるいは伝送、蓄積の目的のた
め種々の色変換を行う色変換装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a color conversion device for performing various color conversions on a generated or input color image signal for display output, hard copy output, transmission or storage.

【0002】[0002]

【従来の技術】従来からカラー印刷、カラーハードコピ
ーの分野で複雑多様な色変換を簡単、高速に実行する手
法として、三次元補間を用いた三次元テーブルルックア
ップ法が提案されている。これらの方法では、入力色空
間を複数の単位補間立体群に分割し、その頂点位置にお
ける色変換後の出力値をテーブルメモリに蓄積してお
き、色信号が入力されると、その入力色が含まれる前記
単位補間立体を選択し、該補間立体の複数頂点での出力
値を用いて重みづけ加算して補間する。その結果、テー
ブルメモリを用いて自由な色変換を実行しつつ、テーブ
ル容量を比較的少なくして、色空間全域にわたって連続
性を確保して色変換を実行できる。現在のところ、色空
間を複数の立方体に分割する立方体補間、立方体をさら
に2つの三角柱に分割する三角柱補間(特開平7−99
586号公報)、立方体をさらに3つの四角錐に分割す
る四角錐補間(US4、334、240)、立方体を5
個あるいは6個の四面体に分割する4面体補間(特公昭
58―16180号公報)、立体の体心を用いるDis
henoid補間(たとえば、 James M .Kasson, 他:
Performing color space conversions with three-dime
nsional linear interpolation、Journal of Electroni
c Imaging /Jul 1995/Vol.4(3) PP.226-249 )などが知
られており、他に立方体補間、四角錐補間、三角柱補間
を切り替えて組み合わせる方法(特開平7−95423
号公報)がある。
2. Description of the Related Art Conventionally, a three-dimensional table lookup method using three-dimensional interpolation has been proposed as a method for easily and rapidly performing complicated and various color conversions in the fields of color printing and color hard copy. In these methods, the input color space is divided into a plurality of unit interpolation solid groups, the output values after color conversion at the vertex positions are stored in a table memory, and when a color signal is input, the input color is The unit interpolated solid included is selected, weighted addition is performed using the output values at a plurality of vertices of the interpolated solid, and interpolation is performed. As a result, it is possible to perform color conversion while using the table memory to perform free color conversion, relatively reducing the table capacity, and ensuring continuity over the entire color space. At present, cubic interpolation that divides the color space into a plurality of cubes, and triangular prism interpolation that further divides the cube into two triangular prisms (Japanese Patent Laid-Open No. 7-99).
586), a quadrangular pyramid interpolation (US 4,334,240) for further dividing the cube into three quadrangular pyramids, and the cube is 5
Tetrahedron interpolation for dividing into six or six tetrahedrons (Japanese Patent Publication No. 58-16180), Dis using the solid body center
henoid interpolation (eg James M. Kasson, et al .:
Performing color space conversions with three-dime
nsional linear interpolation, Journal of Electroni
c Imaging / Jul 1995 / Vol.4 (3) PP.226-249) and the like, and other methods such as cubic interpolation, quadrangular pyramid interpolation, and triangular prism interpolation are combined and switched (JP-A-7-95423).
Issue gazette).

【0003】ところで本願出願人は、以前、これらのい
ずれとも異なる斜三角柱補間を特開平7−99587号
公報において開示している。これは、三原色入力空間に
おいて、対角線上に隣接する2個の立方体で形成される
斜行した三角柱を単位補間立体とする方法である。この
斜三角柱補間法には、大きく2つの利点がある。
By the way, the applicant of the present application has previously disclosed, in Japanese Patent Application Laid-Open No. 7-99587, an interpolated triangular prism. This is a method in which, in the three primary color input space, a diagonal triangular prism formed by two cubes that are diagonally adjacent to each other is used as a unit interpolation solid. This oblique triangular prism interpolation method has two major advantages.

【0004】第1の利点は、ハードコピーの色修正でシ
アンC,マゼンタM,イエローYの濃度空間を入力とす
る場合、墨生成を行う場合に多用される3変数のうちの
最小値を算出するMIN演算が誤差なく実行できるとい
う点である。
The first advantage is that when the density space of cyan C, magenta M, and yellow Y is input for hard copy color correction, the minimum value of the three variables frequently used when black generation is performed is calculated. That is, the MIN calculation can be executed without error.

【0005】第2の利点は、色再現を行う場合、視覚的
に重要な無彩色(グレイ)のバランス調整が容易である
点にある。入力されるグレイは3原色が完全に一致する
ことはなく近似的に等しくなっているため、図形的には
入力空間の対角線の近傍に対角線に沿って分布する。斜
三角柱補間では、補間立体自身が無彩色近傍を包含する
ように設定されるので、グレイ再現時の出力色の微妙な
制御に用いる格子点を他のどの補間方法よりも合理的に
設定でき、調整が容易になる。
The second advantage is that when color reproduction is performed, it is easy to balance the visually important achromatic color (gray). In the input gray, the three primary colors do not completely match and are approximately equal to each other. Therefore, the gray is graphically distributed near the diagonal of the input space along the diagonal. In the oblique triangular prism interpolation, the interpolation solid itself is set so as to include the vicinity of the achromatic color, so the grid points used for delicate control of the output color during gray reproduction can be set more rationally than any other interpolation method. Adjustment becomes easy.

【0006】[0006]

【発明が解決しようとする課題】しかしながら斜三角柱
補間では、三原色入力空間を完全にカバーするために、
入力空間より1補間区画分だけ広い範囲外のテーブルメ
モリが必要になる。例えば、レッド、グリーン、ブルー
(RGB)、あるいはシアン、マゼンタ、イエロー(C
MY)のような三原色入力色座標系で各軸は本来0から
1の範囲の入力があると考える。斜行していない従来型
の補間方法では、入力空間範囲内を粗く分割して各格子
点上での出力色を蓄積して色変換テーブルを作成すれば
よいが、斜三角柱補間では単位補間立体が座標軸に対し
て傾いているため、各軸の変数の0以下の負部分の1区
画と1以上の1区画部分においても色変換出力を計算し
てテーブル化を必要とする。このため、色変換関数にL
OGやべき乗のような定義域が0以上に規定されている
関数が使われている場合、もともと数学的に定義されて
いない負の入力部においても、テーブル作成のために演
算結果が必要であるという困難な課題があった。また、
斜三角柱補間用の色変換テーブルが従来のものに比較し
て容量が各軸ごとに2区画分多く必要であるため、メモ
リ量が増大する課題があった。さらに、この色変換テー
ブルが増大している理由によって斜三角柱補間と他の補
間方法とのテーブル互換性が無く、実用性に難があるな
どの課題があった。このような課題に対し、立方体補
間、四角錐補間、三角柱補間を切り替えて組み合わせる
方法(特開平7−95423号公報)が既に知られてい
るが、この公開特許にて開示されている方法は、後述す
るように四角錐の補間方法に課題があり、現実には補間
連続性を確保できていない。
However, in the oblique triangular prism interpolation, in order to completely cover the three primary color input spaces,
A table memory outside the range that is wider than the input space by one interpolation section is required. For example, red, green, blue (RGB), or cyan, magenta, yellow (C
In the three primary color input color coordinate system such as MY), it is considered that each axis originally has an input of 0 to 1. In the conventional interpolation method without skewing, the input space range is roughly divided and output colors on each grid point are accumulated to create a color conversion table. Is inclined with respect to the coordinate axis, color conversion output is calculated also in one section of the negative portion of 0 or less and one division portion of 1 or more of the variables of each axis, and tabulation is required. Therefore, the color conversion function has L
When a function whose domain is defined as 0 or more, such as OG and exponentiation, is used, the operation result is necessary for creating the table even in the negative input part that is not mathematically defined originally. There was a difficult problem. Also,
There is a problem that the memory amount increases because the capacity of the color conversion table for oblique-triangular prism interpolation is larger by 2 sections for each axis than the conventional color conversion table. Further, due to the increase in the number of color conversion tables, there is a problem in that there is no table compatibility between the oblique triangular prism interpolation and other interpolation methods, and the practicality is difficult. For such a problem, a method of switching and combining cubic interpolation, quadrangular pyramid interpolation, and triangular prism interpolation (Japanese Patent Laid-Open No. 7-95423) is already known, but the method disclosed in this publication is As will be described later, there is a problem in the method of interpolating the quadrangular pyramid, and in reality, interpolation continuity cannot be ensured.

【0007】本発明は、このような従来の問題を解決す
るものであり、色変換装置において、従来提案されてい
る斜三角柱補間を用いる場合、色空間外の入力に対して
色変換テーブルを不要とすることにより、その作成の手
間をなくし、使用メモリ量を減らし、他の補間方法と色
変換テーブルメモリとの共用を可能にするなど、実用性
の向上を図ること、併せて補間連続性を確保できる補間
方法を実行することを目的とする。
The present invention solves such a conventional problem. In the color conversion apparatus, when the conventionally proposed oblique triangular prism interpolation is used, a color conversion table is not necessary for an input outside the color space. By doing so, it is possible to improve the practicality by eliminating the trouble of creating it, reducing the amount of memory used, and making it possible to share the color conversion table memory with other interpolation methods. The purpose is to implement a secure interpolation method.

【0008】[0008]

【課題を解決するための手段】上記目的を達成するた
め、本発明の色変換装置においては、三原色入力空間に
おける斜三角柱補間を実行する場合、入力空間内のみで
定義された色変換テーブルを用いて補間を実行できるよ
うにする。すなわち入力空間の周囲を除く色空間内部で
のみ斜三角柱補間を用いて実行し、残りの周囲1区画分
のスペースにおいては4面体補間法と四角錐(ピラミッ
ド)補間法を用いて実行する。これによって入力色空間
を補間立体で完全に埋め尽くしつつ、かつ斜三角柱補間
との補間の連続性を確保する。
In order to achieve the above object, the color conversion apparatus of the present invention uses a color conversion table defined only in the input space when performing oblique triangular prism interpolation in the three primary color input spaces. So that interpolation can be performed. That is, the oblique triangular prism interpolation is used only in the color space excluding the periphery of the input space, and the tetrahedral interpolation method and the quadrangular pyramid interpolation method are used in the remaining one section space. As a result, the input color space is completely filled with the interpolated solid, and at the same time, the continuity of the interpolation with the oblique triangular prism interpolation is ensured.

【0009】したがって、本発明によれば、色空間外の
入力に対して色変換テーブルを不要とすることにより、
その作成の手間をなくし、使用メモリ量を減らし、他の
補間方法と色変換テーブルメモリとの共用を可能にする
など、実用性の向上を図ることができ、併せて補間連続
性を確保できる補間方法を実現することができる。
Therefore, according to the present invention, by eliminating the need for the color conversion table for the input outside the color space,
It is possible to improve the practicality by eliminating the trouble of creating it, reducing the amount of memory used, and making it possible to share the color conversion table memory with other interpolation methods. The method can be realized.

【0010】[0010]

【0011】[0011]

【0012】本発明の請求項に記載の色変換装置は、
無彩色近傍を包含する斜三角柱群、入力色空間周辺部の
四面体群及び入力色空間周辺部の斜四角錐群の補間立体
の組み合わせにより入力色空間を隙間なく分割し、前記
補間立体の頂点位置での色変換後の出力値を蓄積する色
変換テーブルメモリと、入力色信号から前記補間立体の
種類を選択する補間立体選択部と、前記入力色信号を含
む前記補間立体の頂点での出力値、前記補間立体が配置
される領域により決まる重み係数及び前記補間立体が配
置される領域により決まるオフセット値を用いて補間演
算する補間部とを備え、前記補間立体は、全ての稜線及
び全ての平面を共有しつつ、前記入力色空間の内部を隙
間なく分割し、入力色信号に任意の色変換を実施して出
力するものであり、補間立体に斜め三角柱を用いる場合
に、補間立体が入力色空間外に存在することなく入力色
空間を埋め尽くすために、入力色空間外の入力に対する
色変換テーブルが不要となり、他の補間方法と色変換テ
ーブルを共用することができ、更に、補間の連続性を確
保するという作用を有する。
[0012] The color conversion device according to claim 1 of the present invention,
The input color space is divided without any gap by combining the interpolated solids of the oblique triangular prism group including the vicinity of the achromatic color, the tetrahedral group of the peripheral part of the input color space and the oblique pyramid group of the peripheral part of the input color space, and the vertex of the interpolated solid A color conversion table memory that stores output values after color conversion at a position, an interpolation solid selection unit that selects the type of the interpolation solid from an input color signal, and an output at the vertex of the interpolation solid that includes the input color signal. A value, a weighting factor determined by the area in which the interpolated solid is arranged, and an interpolation unit that performs an interpolation operation using an offset value determined by the area in which the interpolated solid is arranged. While sharing a plane, the inside of the input color space is divided without gaps, the input color signal is subjected to arbitrary color conversion and output, and when an oblique triangular prism is used as an interpolated solid.
, The interpolated volume does not exist outside the input color space.
To fill the space, for inputs outside the input color space
The color conversion table is no longer needed, and other interpolation methods and color conversion
Table can be shared, and further, it has an effect of ensuring continuity of interpolation.

【0013】本発明の請求項に記載の色変換装置は、
請求項の構成において、斜三角柱の上底面と下底面
は、三原色入力空間を構成する3座標軸のうち、第1軸
の変数を一定とする面に平行であり、前記上下底面を形
成する三角形の二辺はおのおの第2軸と第3軸に平行で
あり、斜三角柱の主軸は三原色空間の無彩色を表現する
対角軸に平行であり、結果として前記斜三角柱は第1軸
の変数と第2軸の変数が等しくなる面、第2軸の変数と
第3軸の変数が等しくなる面、第3軸の変数と第1軸の
変数が等しくなる面、の3平面を境界面としてもつ。
A color conversion device according to claim 2 of the present invention is
2. The triangle according to claim 1 , wherein an upper bottom surface and a lower bottom surface of the oblique triangular prism are parallel to a surface of the three coordinate axes forming the three primary color input spaces in which the variable of the first axis is constant, and form the upper and lower bottom surfaces. The two sides of each are parallel to the second and third axes, and the main axis of the oblique triangular prism is parallel to the diagonal axis expressing the achromatic color of the three primary color space, and as a result, the oblique triangular prism is the variable of the first axis. It has three planes as a boundary surface: a surface where the variables of the second axis are equal, a surface where the variables of the second axis and the variable of the third axis are equal, and a surface where the variables of the third axis and the variables of the first axis are equal. .

【0014】本発明の請求項に記載の色変換装置は、
請求項の構成において、斜四角錐を構成する5点のう
ちの4点から構成される底面は斜三角柱の側面である平
行四辺形に合致し、残る1頂点は色空間の最外郭の1点
である。
A color conversion device according to claim 3 of the present invention is
In the structure according to claim 1, the bottom surface composed of four points out of the five points forming the diagonal quadrangular pyramid matches the parallelogram that is the side surface of the triangular prism, and the remaining one vertex is the outermost contour of the color space. It is a point.

【0015】本発明の請求項に記載の色変換装置は、
請求項の構成において、四面体は色空間を分割した立
方体を前記立方体の対角線を共有する形で6分割された
ものであり、前記四面体の側面は色空間の最外郭の側面
であるか、または他の四面体もしくは斜四角錐に接して
いる。
A color conversion apparatus according to a fourth aspect of the present invention is
In the construction of claim 1, or tetrahedron has been a 6 divided form a cube obtained by dividing the color space to share the diagonal of the cube, the tetrahedron aspect is the outermost side of the color space , Or touching another tetrahedron or pyramid.

【0016】上記構成から、従来の斜三角柱補間を主と
して無彩色を中心とする色空間の大部分の領域に用いる
ことにより、従来問題となっていた色空間の周辺におけ
る飛び出しをなくし、色空間外の入力に対して色変換テ
ーブルを不要とするという作用を有する。
With the above structure, the conventional oblique triangular prism interpolation is used mainly for most areas of the color space centering on the achromatic color, thereby eliminating the problem of jumping out in the periphery of the color space, which is a problem in the prior art. This has the effect of eliminating the need for a color conversion table for the input.

【0017】また、各補間立体同士の接平面では互いに
共通な稜線を共有する特殊な配置を行い、かつ補間方法
も共有する稜線、平面上での補間結果に連続性を維持す
るという作用を有する。また斜三角柱補間の利点である
MIN演算の補間性能や無彩色グレイの色調整の容易性
をそのまま維持するという作用を有する。
In addition, the tangent planes of the respective interpolated solids have a special arrangement in which they share common ridgelines, and also have the effect of maintaining continuity in the ridgelines sharing the interpolation method and the interpolation results on the plane. . Further, it has an effect of maintaining the interpolation performance of MIN calculation and the ease of color adjustment of achromatic gray, which are the advantages of the oblique triangular prism interpolation.

【0018】以下、図を参照しながら本発明の実施の形
態について詳細に説明する。 (実施の形態)図1は本発明の実施の形態における色変
換装置の構成を示している。図1において、101は入
力色信号の上位信号、102は入力色信号の下位信号で
ある。103は四面体領域番号判定部、104は補間立
体選択部、105は四面体領域番号Area、106は
色変換テーブルメモリ、107はセレクタ、108は四
面体補間部、109は斜三角柱補間部、110は斜四角
錐補間部である。111は四面体各頂点における色変換
出力値、112は斜三角柱各頂点における色変換出力
値、113は斜四角錐各頂点における色変換出力値であ
る。114は四面体補間出力、115は斜三角柱補間出
力、116は斜四角錐補間出力である。117は補間立
体選択情報である。
Embodiments of the present invention will be described in detail below with reference to the drawings. (Embodiment) FIG. 1 shows the configuration of a color conversion apparatus according to an embodiment of the present invention. In FIG. 1, 101 is an upper color signal of the input color signal, and 102 is a lower color signal of the input color signal. Reference numeral 103 is a tetrahedral area number determination unit, 104 is an interpolation solid selection unit, 105 is a tetrahedral area number Area, 106 is a color conversion table memory, 107 is a selector, 108 is a tetrahedral interpolation unit, 109 is a triangular prism interpolation unit, 110 Is an oblique quadrangular pyramid interpolation unit. Reference numeral 111 is a color conversion output value at each vertex of the tetrahedron, 112 is a color conversion output value at each vertex of the oblique triangular prism, and 113 is a color conversion output value at each vertex of the oblique quadrangular pyramid. 114 is a tetrahedral interpolation output, 115 is an oblique triangular prism interpolation output, and 116 is an oblique quadrangular pyramid interpolation output. Reference numeral 117 is interpolation stereoscopic selection information.

【0019】この実施例においては、入力色空間を各軸
8ビットの(RGB)の3軸で構成される空間とし、各
色の上位3ビットである上位信号(RH、GH、BH)
101にて色変換テーブルをルックアップし、各色下位
5ビットである下位信号(RL,GL,BL)102に
て補間を行う。色変換テーブルメモリ106には、入力
空間を上位信号である(RH、GH,BH)でアクセス
される8x8x8個の立方体に分割した頂点である9x
9x9=729個の格子点での色変換出力が格納されて
いる。この色変換出力は、出力に不連続性をもつ関数以
外であればいかなるものでも構わない。例えば本発明の
主たる用途ではカラーマスキング法の近似に用いられる
ため、特開平7−95423号公報において開示された
最小値関数(MIN演算)を用いるカラーマスキング法
などを用いて構成された3次元LUTをそのまま色変換
テーブルとして用いることができる。
In this embodiment, the input color space is a space composed of three axes of 8 bits (RGB) for each axis, and the higher order signals (RH, GH, BH) which are the higher order 3 bits of each color.
The color conversion table is looked up at 101, and interpolation is performed by the low-order signal (RL, GL, BL) 102 which is the low-order 5 bits of each color. In the color conversion table memory 106, the input space is 9x which is a vertex obtained by dividing the input space into 8x8x8 cubes which are accessed by (RH, GH, BH).
Color conversion outputs at 9 × 9 = 729 grid points are stored. The color conversion output may be any function other than a function having discontinuity in the output. For example, since it is used for approximation of the color masking method in the main application of the present invention, a three-dimensional LUT constructed by using the color masking method using the minimum value function (MIN operation) disclosed in Japanese Patent Laid-Open No. 7-95423. Can be used as is as a color conversion table.

【0020】上位信号は補間立体選択部104への1つ
の入力となる。一方、下位信号は四面体領域番号判定部
103に入力され、入力色が上記の立方体をさらに分割
した6個の四面体にうちいずれに属しているかが判定さ
れる。
The high-order signal is one input to the interpolation solid selection unit 104. On the other hand, the lower signal is input to the tetrahedral area number determination unit 103, and it is determined which one of the six tetrahedrons the input color belongs to is further divided.

【0021】図2は前記四面体領域判定における6個の
四面体領域であるArea=0からArea=5を示し
たものであり、これらは下位信号(RL、GL、BL)
から図3に示す流れ図に従って決定される。これら四面
体はすべて立方体の対角線を共有する同体積の立体であ
り、対角線上では便宜上Area=0としている。この
結果である領域番号0から5は、補間立体選択部104
に入力される。補間立体選択部104は、上位信号10
1と四面体領域番号105から補間立体を選択する。こ
の補間立体は、斜三角柱、四面体、斜四角錐の3種類で
ある。
FIG. 2 shows six tetrahedron areas, Area = 0 to Area = 5, in the tetrahedron area determination, which are lower order signals (RL, GL, BL).
Is determined according to the flow chart shown in FIG. All of these tetrahedra are cubes of the same volume sharing the diagonal of the cube, and Area = 0 is set on the diagonal for convenience. The area numbers 0 to 5 as the result are the interpolation solid selection unit 104.
Entered in. The interpolated solid selection unit 104 uses the higher-order signal 10
An interpolation solid is selected from 1 and the tetrahedral area number 105. There are three types of interpolated solids: oblique triangular prism, tetrahedron, and oblique quadrangular pyramid.

【0022】図4は、入力色空間であるRGB立体をこ
れら補間立体である斜三角柱、四面体、斜四角錐に隙間
なく分割する概念を表現したものである。ここで、この
ような補間立体を用いるにいたった理由について説明す
る。
FIG. 4 expresses the concept of dividing an RGB solid, which is an input color space, into these interpolated solids, that is, an oblique triangular prism, a tetrahedron, and an oblique quadrangular pyramid without any space. Here, the reason why such an interpolation solid is used will be described.

【0023】図25は、図4における斜三角柱のみを用
いた補間を用いた場合の色変換テーブルをあらわす三面
図である。ここでは便宜上、分割数を各軸4x4x4分
割にして描いている。R,G,Bの三原色が0から1
(最大値)まで全組みあわせで変化した場合のRGB空
間は図25における白丸250で構成される立方体であ
り、白丸が格子点となる。このRGB立方体を斜三角柱
で完全に充填することはできず、全部を補間領域で覆う
ためには図25の黒点251で示すRGB空間立体範囲
外の点が余分に必要になる。しかし前述したように、範
囲外のテーブルを作成するにはしばしば困難が伴う。通
常はRGB入力をそれぞれ0から1までを表現すると考
えるため、例えば式の中にLog(R)の項やPow
(R,1/3)などのべき乗の計算が入っている場合に
は本来の関数の定義域を超えた部分の演算結果をテーブ
ルに蓄積しなくてはならず、これが演算精度を悪化させ
る。この点を考慮して従来、斜三角柱補間を用いる場合
には種々の外挿の手法で格子点を作成してきたが、これ
もまた演算精度を悪化させる原因となっていた。この
他、格子点の増加に伴う色変換テーブル容量増大の問題
も大きい。範囲外の格子点は各軸の分割立方体数をNと
した場合、 範囲外格子点数=2(2N+1)N ・・・(式1) 範囲内格子点数=(N+1)(N+1)(N+1) ・・・(式2) となり、図25の分割数N=4の場合に範囲外格子点数
が72個、範囲内の格子点が125個であり、これは本
来範囲内の色変換テーブルのみでよい立方体補間法など
に比較して容量の57.6%の増大になる。このテーブ
ル容量の増大はN=8のとき、37.3%、N=16の
とき21.4%となって分割数が増加しても依然として
大きい。
FIG. 25 is a trihedral view showing a color conversion table when the interpolation using only the oblique triangular prism in FIG. 4 is used. Here, for the sake of convenience, the number of divisions is divided into 4x4x4 axes. The three primary colors of R, G, B are 0 to 1.
The RGB space when changing all combinations up to (maximum value) is a cube formed by white circles 250 in FIG. 25, and the white circles are grid points. This RGB cube cannot be completely filled with the oblique triangular prism, and in order to cover the whole with the interpolation area, an extra point outside the RGB spatial solid range shown by the black dot 251 in FIG. 25 is required. However, as mentioned above, creating out-of-range tables is often difficult. Normally, RGB inputs are considered to represent 0 to 1, respectively. Therefore, for example, in the formula, the term of Log (R) or Pow
When a power calculation such as (R, 1/3) is included, the calculation result of the portion exceeding the original function domain must be stored in the table, which deteriorates the calculation accuracy. In consideration of this point, conventionally, when the oblique triangular prism interpolation is used, grid points are created by various extrapolation methods, but this also causes deterioration of calculation accuracy. In addition, there is a big problem that the capacity of the color conversion table increases with the increase of the grid points. When the number of divided cubes of each axis is N, the number of grid points outside the range is N = 2 (2N + 1) N (Equation 1) The number of grid points inside the range = (N + 1) (N + 1) (N + 1) .. (Equation 2), and when the number of divisions N = 4 in FIG. 25, the number of out-of-range lattice points is 72 and the number of in-range lattice points is 125, which is essentially only the color conversion table within the range. The capacity is increased by 57.6% as compared with the cubic interpolation method. This increase in table capacity is 37.3% when N = 8 and 21.4% when N = 16, and is still large even if the number of divisions increases.

【0024】これらの理由から範囲外の格子点を用いな
いで済む斜三角柱補間法が求められており、本発明では
以下のようにこれを解決している。斜三角柱の利点は無
彩色近傍の調整など主として色空間の内部での話であ
り、斜三角柱の範囲外への飛び出しという欠点は色空間
の周囲において現れる。このことから、色空間を飛び出
さない範囲においてのみ斜三角柱補間を使用するように
使用を制限する。
For these reasons, there is a demand for an oblique triangular prism interpolation method that does not require use of grid points outside the range, and the present invention solves this as follows. The advantage of the oblique triangle is mainly inside the color space, such as adjustment in the vicinity of the achromatic color, and the disadvantage of popping out of the range of the oblique triangle appears around the color space. For this reason, the use is restricted so that the oblique triangular prism interpolation is used only in the range that does not overflow the color space.

【0025】図5は本発明での斜三角柱補間部分を示し
ている。このように斜三角柱補間は色空間の内部に限定
されるため、色空間の周囲には補間区間に含まれない部
分が残ってしまう。そこで、このスペースを他の補間立
体を用いる方法で埋めることにする。この時に重要なこ
とは、条件1)RGB空間すべてを隙間なく充填するこ
と、条件2)異なる補間立体の接続部分で補間結果に不
連続性を生じないことである。
FIG. 5 shows an oblique triangular prism interpolation portion in the present invention. In this way, since the oblique triangular prism interpolation is limited to the inside of the color space, a portion not included in the interpolation section remains around the color space. Therefore, this space is filled with a method using another interpolation solid. At this time, it is important that condition 1) fill all the RGB spaces without gaps, and condition 2) do not cause discontinuity in the interpolation result at the connecting portion of different interpolated solids.

【0026】図4は上記第1の条件に基づき、RGB空
間を、斜三角柱、斜四角錐、四面体に分割する様子の一
部を示したもので、単に空間を充填するだけでなく、連
続性のために平面や稜線が必ず共有されている点に特徴
があり、以下分割方法の詳細について説明する。これ
は、上位信号(RH,GH,BH)と四面体領域番号に
て決定される。
FIG. 4 shows a part of how the RGB space is divided into an oblique triangular prism, an oblique quadrangular pyramid and a tetrahedron based on the above first condition, and not only the space is filled but also the continuous space is continuously filled. The feature is that planes and edges are always shared for the sake of sex, and the details of the dividing method will be described below. This is determined by the higher order signals (RH, GH, BH) and the tetrahedral area number.

【0027】まず、四面体にて充填されている四面体補
間使用部分であるが、図6に示すようにGの正方向から
見た場合、各G一定の分割面においてRB平面の周囲を
囲むように分布し、立方体の中で1つの領域のみが相当
している部分と2個の領域が相当している角部、3個の
領域が相当している角部があることがわかる。例えば
(RH,BH)=(1,0)などの辺上では、四面体領
域番号=0の四面体のみが四面体補間部分に相当する
が、(RH、BH)=(0,0)の角部の立方体では、
四面体領域番号=0、5の2個の四面体が四面体補間部
分に相当し、(RH,BH)=(3,0)の角部の立方
体では、四面体領域番号=0、1、2の3個の四面体が
四面体補間部分に相当していることがわかる。
First, regarding the tetrahedral interpolation use portion filled with the tetrahedron, when viewed from the positive direction of G as shown in FIG. 6, each G constant division plane surrounds the periphery of the RB plane. It can be seen that there are corners corresponding to only one region, corners corresponding to two regions, and corners corresponding to three regions in the cube. For example, on a side such as (RH, BH) = (1,0), only the tetrahedron having the tetrahedron region number = 0 corresponds to the tetrahedral interpolation part, but (RH, BH) = (0,0) In the corner cube,
Two tetrahedrons with tetrahedron region numbers = 0 and 5 correspond to the tetrahedron interpolation part, and in the cube of the corner of (RH, BH) = (3,0), tetrahedron region numbers = 0,1, It can be seen that the three tetrahedra of 2 correspond to the tetrahedral interpolation portion.

【0028】次に、斜四角錐にて充填されている斜四角
錐補間部分であるが、図7に示すようにGの正方向から
見た場合、各G一定の分割面においてRB平面の周囲を
囲むように分布している。斜四角錐の種類は(1−5)
型、 (3―1)) 型、(2−4)型、(4−0)型の4
種類に分けられ、図7では、(1−5)型と(3−1)
型の一部、(2−4)型と(4−0)型の一部が上から
見て重なっている状態を描いている。これらの意味する
ところが、図8および図9に示されている。図8の四角
錐(1−5)型はR方向に隣接しあう2つの立方体にお
いてRが小さい方の立方体内のArea=1の四面体と
Rが大きい方の立方体内のArea=5の四面体とを組
み合わせてできる斜四角錐を意味する。以下、これらの
四面体をそれぞれ150、151と称する。同様に四角
錐(2−4)型はR方向に隣接しあう2つの立方体にお
いてRが小さい方の立方体内のArea=2の四面体と
Rが大きい方の立方体内のArea=4の四面体とを組
み合わせてできる斜四角錐を意味する。以下、これらの
四面体をそれぞれ240、241と称する。同様に四角
錐(3−1)型はB方向に隣接しあう2つの立方体にお
いてBが小さい方の立方体内のArea=3の四面体と
Bが大きい方の立方体内のArea=1の四面体とを組
み合わせてできる斜四角錐を意味する。以下、これらの
四面体をそれぞれ310、311と称する。同様に四角
錐(4−0)型はB方向に隣接しあう2つの立方体にお
いてBが小さい方の立方体内のArea=4の四面体と
Bが大きい方の立方体内のArea=0の四面体とを組
み合わせてできる斜四角錐を意味する。以下、これらの
四面体をそれぞれ400、401と称する。
Next, regarding the diagonal quadrangular pyramid interpolation portion filled with the diagonal quadrangular pyramids, when viewed from the positive direction of G as shown in FIG. It is distributed so that it surrounds. The type of diagonal quadrangular pyramid is (1-5)
Type, (3-1)) type, (2-4) type, (4-0) type 4
They are classified into types, and in FIG. 7, type (1-5) and type (3-1)
A part of the mold, a part of the (2-4) mold and a part of the (4-0) mold are illustrated as overlapping from the top. These meanings are shown in FIGS. 8 and 9. The quadrangular pyramid (1-5) type of FIG. 8 is a tetrahedron with Area = 1 in a cube with smaller R in two cubes adjoining in the R direction and a tetrahedron with Area = 5 in a cube with larger R. It means an oblique quadrangular pyramid formed by combining with the body. Hereinafter, these tetrahedra are referred to as 150 and 151, respectively. Similarly, a tetragonal pyramid (2-4) type is a tetrahedron with Area = 2 in a cube with a smaller R in two cubes adjoining in the R direction and a tetrahedron with Area = 4 in a cube with a larger R. It means an oblique quadrangular pyramid made by combining and. Hereinafter, these tetrahedra are referred to as 240 and 241 respectively. Similarly, the tetragonal pyramid (3-1) type is a tetrahedron with Area = 3 in a cube with a smaller B in two cubes adjacent to each other in the B direction and a tetrahedron with an Area = 1 in a cube with a larger B. It means an oblique quadrangular pyramid made by combining and. Hereinafter, these tetrahedra are referred to as 310 and 311 respectively. Similarly, a tetragonal pyramid (4-0) type is a tetrahedron of Area = 0 in a cube with a smaller B in the two cubes adjacent to each other in the B direction and a tetrahedron of Area = 0 in a cube with a larger B. It means an oblique quadrangular pyramid made by combining and. Hereinafter, these tetrahedra are referred to as 400 and 401, respectively.

【0029】以上、述べてきた四面体と斜四角錐以外の
部分が斜三角柱の部分になる。斜三角柱については、図
10、図11を用いて斜三角柱の種類について説明す
る。図10は、4種の斜三角柱を構成する4種の原点位
置(0)から(3)を示すものであり、図11は斜三角
柱のタイプを示すものである。原点位置番号(0)は原
点であるa点が上位信号から決定する立方体と同じ場合
の斜三角柱である。原点位置番号(1)は(0)を−B
方向に、原点位置番号(2)は(0)を−R方向に、原
点位置番号(3)は(0)を−R方向と−B方向にそれ
ぞれ移動した位置にある斜三角柱である。このようにし
て斜三角柱の原点位置の他に、図11に示すように各位
置において手前の斜三角柱abc−efgのタイプ0
と、adc−ehgのタイプ1に分類される。この原点
位置番号とタイプを組み合わせてできる斜三角柱の種類
PRは(表1)のように(3−1)、(2−0)、(0
−0)、(0−1)、(1−1)、(3−0)の6通り
になる。図12は、1つの立方体が指定された場合に、
この立方体内で上記6通りの斜三角柱に属する部分を表
現したものであり、いずれも四面体になっている。
The parts other than the tetrahedron and the oblique quadrangular pyramid described above become the parts of the oblique triangular prism. Regarding the oblique triangular prism, types of the oblique triangular prism will be described with reference to FIGS. 10 and 11. FIG. 10 shows four kinds of origin positions (0) to (3) which form four kinds of oblique triangular prisms, and FIG. 11 shows the type of oblique triangular prisms. The origin position number (0) is an oblique triangular prism when the point a, which is the origin, is the same as the cube determined from the upper signal. Origin position number (1) is -B when (0)
, The origin position number (2) is (0) in the -R direction, and the origin position number (3) is (0) in the -R direction and the -B direction. Thus, in addition to the origin position of the oblique triangular prism, as shown in FIG. 11, the type 0 of the oblique triangular prism abc-efg on the front side at each position is shown.
And is classified into type 1 of adc-ehg. As shown in (Table 1), the types PR of the oblique triangular column formed by combining the origin position number and the type are (3-1), (2-0), (0
There are 6 types of (0), (0-1), (1-1), and (3-0). Figure 12 shows that when one cube is specified,
In this cube, the above-described six types of portions belonging to the oblique triangular prism are expressed, and each is a tetrahedron.

【表1】 [Table 1]

【0030】以上の補間立体の選択は、図13に示すよ
うな区分図に沿って実行される。図13においては、三
角形130が四面体補間部分を示し、平行四辺形131
が斜四角錐補間部分を示す。例えば、(RH、BH)=
(0、0)である立方体では、Area=0とArea
=5の四面体が四面体補間であり、Area=1は(R
H、BH)=(0、1)のArea=5と結合して斜四
角錐補間部分(1−5)となり、同様にArea=4の
四面体は(RH、BH)=(0、1)のArea=0と
結合して斜四角錐補間部(4−0)となることを示す。
補間立体選択部104は、以上の図形的な処理を前提に
して、図13により図14から図20の流れ図に従って
補間立体の選択を行う。これらの流れ図はArea番号
と上位信号RH、BHの数値によって、T(四面体補
間)、PY(斜四角錐補間)、PR(斜三角柱補間)の
3種類への選択とそれぞれの種類指定をするものであ
る。例えば、Area=1であれば図16へとび、四面
体補間T(1)(Area=1を示す。)、斜三角柱P
R(2−0)型、斜四角錐PY(150)型、あるいは
(311)型という選択が行われる。このように、T、
PR、PYという補間立体の選択情報と種類の情報をま
とめた補間立体選択情報117は、セレクタ107を経
由して、四面体補間部108、斜三角柱補間部109、
斜四角錐補間部110と、色変換テーブルメモリ106
に送られる。
The above-described selection of the interpolated solid is executed according to the sectional view as shown in FIG. In FIG. 13, a triangle 130 indicates a tetrahedral interpolation portion, and a parallelogram 131
Indicates an oblique quadrangular pyramid interpolation portion. For example, (RH, BH) =
For a cube that is (0,0), Area = 0 and Area
= 5 tetrahedron is tetrahedral interpolation, and Area = 1 is (R
H, BH) = (0, 1) is combined with Area = 5 to form an oblique pyramid interpolation part (1-5), and similarly, a tetrahedron with Area = 4 is (RH, BH) = (0, 1). Area = 0 to form an oblique quadrangular pyramid interpolation unit (4-0).
The interpolated solid selection unit 104 selects an interpolated solid according to the flowcharts of FIGS. 14 to 20 in FIG. 13 on the premise of the above graphic processing. These flow charts select three types of T (tetrahedral interpolation), PY (oblique quadrangular pyramid interpolation), and PR (oblique triangular prism interpolation) and specify the respective types according to the Area number and the numerical values of the upper signals RH and BH. It is a thing. For example, if Area = 1, the process jumps to FIG. 16, the tetrahedral interpolation T (1) (indicating Area = 1), and the triangular prism P.
The R (2-0) type, the oblique quadrangular pyramid PY (150) type, or the (311) type is selected. Thus, T,
Interpolation solid selection information 117, which is a selection information of interpolation solids such as PR and PY and type information, is passed through the selector 107 to a tetrahedral interpolation unit 108, an oblique triangular prism interpolation unit 109,
An oblique quadrangular pyramid interpolation unit 110 and a color conversion table memory 106
Sent to.

【0031】以上のように、補間立体選択部104にて
補間立体の選択情報を得た後は、セレクタ107が3つ
の補間部から1つを選択し、対応する各補間部108,
109,110のうちいずれか1カ所のみにて実際の補
間計算が行われる。無関係の2つの補間出力は無視され
るかあるいは、元々補間演算が行われない。
As described above, after the interpolation solid selection unit 104 obtains the selection information of the interpolation solid, the selector 107 selects one from the three interpolation units, and the corresponding interpolation units 108,
The actual interpolation calculation is performed at only one of 109 and 110. Two irrelevant interpolated outputs are either ignored or no interpolation operation is performed originally.

【0032】初めに四面体補間部108の演算につき図
21を用いて説明する。四面体補間部108には、入力
として、4点からなる色変換テーブル出力値111と下
位信号102、及び補間立体選択情報118が入力され
て最終補間結果114を出力する。入力点Pが属する四
面体領域番号Areaが決定されると、Pでの出力値は
四面体の4頂点a,b,c,dでの出力値(a)、
(b)、(c)、(d)と重み係数 MAX,MII
D,MINを用いて以下のように算出できる。 (P)=(1−MAX)・(a)+(MAX−MID)・(b)+(MID− MIN)・(c)+MIN・(d) ・・・(式3) ここで重み係数MAXは、RL、GL、BLのうちの最
大値、MIDは中間値、MINは最小値を意味し、下位
信号102と四面体領域番号Area105から決定で
きる。図21に例として示すのはArea=2であり、
図3からわかるように MAX=RL MID=BL
MIN=GLとなる。4頂点の構成は、各点を式4のよ
うな色変換テーブルメモリの格子点アドレスを上位信号
(RH、GH、BH)にオフセット値(DR、DG、D
B)を加える形式で表現され、このオフセット値は(表
2)のように決定される。 (RH+DR,GH+DG,BH+DB) ・・・(式4)
First, the calculation of the tetrahedral interpolation unit 108 will be described with reference to FIG. The tetrahedral interpolation unit 108 receives the color conversion table output value 111 consisting of four points, the lower-order signal 102, and the interpolation solid selection information 118 as inputs, and outputs the final interpolation result 114. When the tetrahedral area number Area to which the input point P belongs is determined, the output value at P is the output value (a) at the four vertices a, b, c, d of the tetrahedron,
(B), (c), (d) and weighting factor MAX, MII
It can be calculated as follows using D and MIN. (P) = (1-MAX). (A) + (MAX-MID). (B) + (MID-MIN). (C) + MIN. (D) (Equation 3) Weighting factor MAX Means the maximum value among RL, GL, and BL, MID means the intermediate value, and MIN means the minimum value, which can be determined from the lower signal 102 and the tetrahedral area number Area 105. In the example shown in FIG. 21, Area = 2,
As can be seen from FIG. 3, MAX = RL MID = BL
MIN = GL. In the configuration of 4 vertices, each point is a grid point address of the color conversion table memory as shown in Expression 4 and the offset value (DR, DG, D) is used as the upper signal (RH, GH, BH).
B) is added, and this offset value is determined as shown in (Table 2). (RH + DR, GH + DG, BH + DB) (Equation 4)

【表2】 したがって、色変換テーブルメモリには、上位信号10
1と118から決まるT(0)からT(5)が入力さ
れ、(表2)と式2を用いて4点a,b,c,dでの出
力値111が出力され、次に四面体補間部108におい
て、式3の補間演算が実行されることになる。
[Table 2] Therefore, the upper signal 10 is stored in the color conversion table memory.
T (0) to T (5) determined by 1 and 118 are input, output values 111 at four points a, b, c, d are output using (Table 2) and Equation 2, and then tetrahedron The interpolation unit 108 executes the interpolation calculation of Expression 3.

【0033】次に斜三角柱補間部109の演算を図22
を用いて説明する。点aからhまでの色変換テーブル出
力値を(a)から(h)にてあらわすこととする。入力
点Pから線分a−eに平行にひいた直線と下底面abc
dおよび上底面efghとの交点をそれぞれm、nとす
るとm、n点での出力(m)、(n)は斜三角柱がタイ
プ番号=0、則ちPR=(*―0)、*は任意のとき、
重み係数wr、wg、wbを用いて、 (m)=(a)+wr・{(b)−(a)}+wb・{(c)−(a)} (n)=(c)+wr・{(f)−(c)}+wb・{(g)−(f)} (P)=(m)+wg・{(n)−(m)} ・・・(式5) タイプ=1、則ちPR=(*―1)、*は任意のとき、 (m)=(a)+wr・{(c)−(d)}+wb・{(d)−(a)} (n)=(c)+wr・{(g)−(h)}+wb・{(h)−(e)} (P)=(m)+wg・{(n)−(m)} ・・・(式6) として計算される。ここで重み係数wr、wg、wbは
(表3)に示されるように計算される。また、格子点a
からhは(表4)における(DR,DG,DB)の各頂
点位置のオフセットを式4のように加算して、6点が求
められ6点での出力値112となり、斜三角柱補間部1
09に入力される。表4における*印はタイプ=0の場
合のd点など、タイプが異なっているために使用されな
い2点を表している。
Next, the calculation of the oblique triangular prism interpolating unit 109 is shown in FIG.
Will be explained. The output values of the color conversion table from points a to h are represented by (a) to (h). A straight line drawn from the input point P in parallel with the line segment ae and the lower bottom surface abc
If the intersection points with d and the upper bottom surface efgh are m and n, respectively, the output (m) and (n) at the points m and n are as follows: the oblique triangular prism has a type number = 0, that is, PR = (* -0), * means At any time
Using the weighting factors wr, wg, and wb, (m) = (a) + wr · {(b) − (a)} + wb · {(c) − (a)} (n) = (c) + wr · { (F) − (c)} + wb · {(g) − (f)} (P) = (m) + wg · {(n) − (m)} (Equation 5) Type = 1, that is, When PR = (* − 1) and * are arbitrary, (m) = (a) + wr · {(c) − (d)} + wb · {(d) − (a)} (n) = (c) + Wr * {(g)-(h)} + wb * {(h)-(e)} (P) = (m) + wg * {(n)-(m)} ... (Equation 6) It Here, the weighting factors wr, wg, and wb are calculated as shown in (Table 3). Also, the grid point a
From h to (h), the offsets of the respective vertex positions of (DR, DG, DB) in (Table 4) are added as in Equation 4 to obtain 6 points, which are output values 112 at 6 points.
09 is input. The asterisks in Table 4 indicate two points that are not used due to different types, such as the point d when type = 0.

【表3】 [Table 3]

【表4】 [Table 4]

【0034】次に、斜四角錐補間部110の演算を詳細
に説明する。図23は、一般的な四角錐(ピラミッド)
補間の方法を示している。底辺であるa、b、c、d、
4点と頂点であるfの5点にて形成される四角錐に対し
て入力点Pでの補間値を得るには、直線fPと底辺ab
cdとの交点である補助点QとP点を通って底辺abc
dに平行な面と各稜線fa、fb、fc、fdとの交点
であるa’、b’、c’、d’を用いる。以下、点xで
の出力値を(x)で表記する略記法を用いる。線分fQ
と線分fPの比kは、 k=fP/fQ ・・・(式7) 稜線上の4点での値は、 (a’)=(f)+k・{(a)−(f)} (b’)=(f)+k・{(b)−(f)} (c’)=(f)+k・{(c)−(f)} (d’)=(f)+k・{(d)−(f)} ・・・(式8) となる。平面a’b’c’d’上でPから辺a’d’に
平行線をひき、辺a’b’との交点を点R’、同じくP
から辺a’b’に平行に線分を引き、辺a’d’との交
点を点S’とし、 l=a’R’/a’b’ m=a’S’/a’d’ ・・・(式9) なる比を求める。この比l.mは、平面abcd上で求
めることもできる。その場合には、直線fR’と辺ab
との交点R、および直線S’と辺adとの交点Sを用い
て、 l=aR/ab m=aS/ad ・・・(式10) となる。以上の値を用いると、点Pでの補間値(P)
は、 (P)=(1−l)・(1−m)・(a’)+l・(1−m)・(b’)+ l・m・(c’)+(1−l)・m・(d’) ・・・(式11) と求められる。特徴として各稜線上では稜線の端点2点
の線形補間に帰着し、側面の三角形補間ならびに平面の
四辺形補間は他の補間立体である四面体補間の側面上の
補間、斜三角柱補間の側面上の補間と一致するため、連
続性が保たれることにある。同じ四角錐補間を用いた例
でも特開平7−85423号公報の(39)式で示され
る式を用いる場合には前記の連続性が保たれないため空
間を隙間なく充填できても補間結果に飛びが生じてしま
う欠点がある。
Next, the calculation of the oblique quadrangular pyramid interpolation unit 110 will be described in detail. FIG. 23 shows a general pyramid.
The method of interpolation is shown. The bases a, b, c, d,
To obtain an interpolated value at the input point P with respect to a quadrangular pyramid formed by four points and five points of f which are vertices, a straight line fP and a base ab are obtained.
It passes through the auxiliary points Q and P, which are the intersections with cd, and the base abc
A ′, b ′, c ′, d ′, which are the intersections of the plane parallel to d and the respective ridge lines fa, fb, fc, fd, are used. Hereinafter, the abbreviated method in which the output value at the point x is represented by (x) is used. Line segment fQ
The ratio k between the line segment and the line segment fP is k = fP / fQ (Equation 7) The values at four points on the ridge line are (a ′) = (f) + k · {(a) − (f)} (B ′) = (f) + k · {(b) − (f)} (c ′) = (f) + k · {(c) − (f)} (d ′) = (f) + k · {( d)-(f)} (Equation 8) On the plane a'b'c'd ', draw a parallel line from P to the side a'd', and set the intersection with the side a'b 'to the point R', also P
A line segment parallel to the side a'b ', and the intersection point with the side a'd' is the point S ', l = a'R' / a'b 'm = a'S' / a'd ' ... (Equation 9) The ratio is calculated. This ratio l. m can also be obtained on the plane abcd. In that case, the straight line fR ′ and the side ab
Using the intersection point R with and the intersection point S between the straight line S ′ and the side ad, l = aR / ab m = aS / ad (Equation 10). If the above values are used, the interpolation value (P) at the point P
Is (P) = (1-1). (1-m). (A ') + l. (1-m). (B') + lm. (C ') + (1-l). m · (d ′) ... (Equation 11) As a feature, on each ridge line, it results in linear interpolation of the two end points of the ridge line, and side surface triangle interpolation and plane quadrilateral interpolation are other interpolation solids such as tetrahedral interpolation side surface and oblique triangular prism side surface. Since it matches the interpolation of, continuity is maintained. Even in the case of using the same quadrangular pyramid interpolation, when the formula (39) of Japanese Patent Laid-Open No. 7-85423 is used, the continuity cannot be maintained, and even if the space can be filled without a gap, the interpolation result is There is a drawback that jumps occur.

【0035】図24は以上の一般的な四角錐補間を本発
明における斜四角錐(1−5)タイプに適用する場合で
ある。a,b,c,d,f点とP点、Q点の意味は図2
3と同様であり、補間式は式11と同じである。ここで
k、l、mの3つの重み係数を求める方法は(表5)の
通り、各場合に分けて計算される。
FIG. 24 shows a case where the above general quadrangular pyramid interpolation is applied to the oblique quadrangular pyramid (1-5) type in the present invention. The meanings of points a, b, c, d, f and points P and Q are shown in FIG.
3 and the interpolation formula is the same as formula 11. Here, the method of obtaining the three weighting factors k, l, and m is calculated in each case as shown in (Table 5).

【表5】 ただし、k=0となる斜四角錐上の頂点ではm、lが計
算不能になる。したがって、頂点位置では補間不能にな
り、色変換テーブル自身を出力することになる。また、
各タイプにおける構成点は(表6)にある(DR,D
G,DB)の各頂点位置のオフセットを式4のように加
算して、5点が選択される。
[Table 5] However, m and l cannot be calculated at the vertices on the oblique quadrangular pyramid where k = 0. Therefore, interpolation cannot be performed at the vertex position, and the color conversion table itself is output. Also,
The composition points for each type are in (Table 6) (DR, D
G, DB) offsets at the respective vertex positions are added as in Expression 4, and five points are selected.

【表6】 結局、(表6)から5点 a,b,c,d,fが選択さ
れて格子点出力113となり、これら(表5)のkから
式8にyよって(a’)、(b’)、(c’)、
(d’)が求められ、次に、同じく(表5)のl、mと
式11とから補間出力値が求められる。
[Table 6] Eventually, five points a, b, c, d, and f are selected from (Table 6) to become the grid point output 113, and k from these (Table 5) is changed to y in Expression 8 (a ′), (b ′). , (C '),
(D ') is obtained, and then the interpolated output value is also obtained from l and m of (Table 5) and Equation 11.

【0036】なお、本発明の実施の様態に示した色変換
テーブルメモリの容量や色信号線のビット数などは全く
任意であり、他のものでもかまわない。
The capacity of the color conversion table memory and the number of bits of the color signal line described in the embodiment of the present invention are completely arbitrary, and other values may be used.

【0037】[0037]

【発明の効果】以上のように本発明によれば、従来の斜
三角柱補間を主として無彩色を中心とする色空間の大部
分の領域に用いることにより、従来問題となっていた色
空間の周辺における飛び出しをなくすようにしているの
で、色空間外の入力に対して色変換テーブルを不要と
し、その作成の手間を省くことができ、入力空間外の色
変換テーブルを無くした分だけ使用メモリ量を減らすこ
とができ、かつ他の補間方法と色変換テーブルメモリを
共用することができるなどの利点を有し、その実用性を
著しく向上させることができる。
As described above, according to the present invention, the conventional diagonal triangular prism interpolation is mainly used for most of the area of the color space centering on the achromatic color, so that the color space surrounding the conventional color space has been a problem. The color conversion table is not necessary for input outside the color space, and the effort of creating it can be saved, because the color conversion table outside the input space is eliminated. Can be reduced and the color conversion table memory can be shared with other interpolation methods, and the practicality thereof can be significantly improved.

【0038】また、各補間立体同士の接平面では互いに
共通な稜線を共有する特殊な配置を行い、かつ補間方法
も共有する稜線、平面上での補間結果に連続性を維持す
るように実施することができる。また斜三角柱補間の利
点であるMIN演算の補間性能や無彩色グレイの色調整
の容易性などをそのまま維持することができる。したが
って、色変換テーブル作成時に入力範囲外の点について
の問題が発生することがなく、従来型の補間方法と色変
換テーブルに互換性を持たせたまま斜三角柱補間の利点
をもって色変換を実行することができる。
Further, the tangent planes of the interpolated solids are specially arranged so as to share a common ridge line, and the interpolation method is carried out so as to maintain continuity in the ridge line and the interpolation result on the plane. be able to. Further, the interpolation performance of the MIN calculation and the ease of color adjustment of achromatic gray, which are the advantages of the oblique triangular prism interpolation, can be maintained as they are. Therefore, when creating a color conversion table, problems with points outside the input range do not occur, and color conversion is performed with the advantage of oblique triangular prism interpolation while maintaining compatibility with the conventional interpolation method and color conversion table. be able to.

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

【図1】本発明の実施の形態における色変換装置のブロ
ック図
FIG. 1 is a block diagram of a color conversion device according to an embodiment of the present invention.

【図2】四面体領域への分割を示す図FIG. 2 is a diagram showing division into tetrahedral regions.

【図3】四面体領域判定の流れ図[Fig. 3] Flow chart of tetrahedral region determination

【図4】色空間を四面体、斜四角錐、斜三角柱に分割す
る概念図
FIG. 4 is a conceptual diagram of dividing a color space into a tetrahedron, an oblique quadrangular pyramid, and an oblique triangular prism.

【図5】斜三角柱補間を用いる色空間内の領域FIG. 5: Region in color space using oblique triangular prism interpolation

【図6】四面体補間を用いる色空間内の領域FIG. 6 region in color space using tetrahedral interpolation

【図7】斜四角錐補間を用いる色空間内の領域FIG. 7: Region in color space using oblique quadrangular pyramid interpolation

【図8】斜四角錐の分類(1−5)(2−4)FIG. 8 Classification of oblique quadrangular pyramids (1-5) (2-4)

【図9】斜四角錐の分類(3−1)(4−0)FIG. 9 Classification of oblique quadrangular pyramids (3-1) (4-0)

【図10】斜三角柱の原点位置による分類[Figure 10] Classification by the origin position of the oblique triangular prism

【図11】斜三角柱の分類PR(0)−PR(3) 四
面体領域との関係
FIG. 11 Classification of oblique triangular prisms PR (0) -PR (3) Relationship with tetrahedral regions

【図12】斜三角柱の分類 タイプ0と1[Fig. 12] Classification types of oblique prisms 0 and 1

【図13】補間立体の選択図[Fig. 13] Selection diagram of interpolation solid

【図14】補間立体の選択流れ図その1FIG. 14 is a flowchart for selecting an interpolation solid part 1

【図15】補間立体の選択流れ図その2FIG. 15 is a flowchart for selecting an interpolation solid part 2

【図16】補間立体の選択流れ図その3FIG. 16 is a flowchart for selecting an interpolation solid part 3

【図17】補間立体の選択流れ図その4FIG. 17 is a flowchart for selecting an interpolation solid part 4

【図18】補間立体の選択流れ図その5FIG. 18 is a flowchart for selecting an interpolation solid part 5

【図19】補間立体の選択流れ図その6FIG. 19 is a flowchart for selecting an interpolation solid part 6

【図20】補間立体の選択流れ図その7FIG. 20 is a flowchart for selecting an interpolation solid, part 7

【図21】四面体補間方法の図FIG. 21 is a diagram of a tetrahedral interpolation method.

【図22】斜三角柱補間方法の図FIG. 22 is a diagram of an oblique triangular prism interpolation method.

【図23】四角錐(ピラミッド)補間方法の図FIG. 23 is a diagram of a pyramid interpolation method.

【図24】斜四角錐補間方法の図FIG. 24 is a diagram of an oblique quadrangular pyramid interpolation method.

【図25】従来の斜三角柱補間における色空間外の領域
を示す図
FIG. 25 is a diagram showing a region outside the color space in conventional diagonal triangular prism interpolation.

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

101 入力色信号の上位信号 102 入力色信号の下位信号 103 四面体領域番号判定部 104 補間立体選択部 105 四面体領域番号Area 106 色変換テーブルメモリ 107 セレクタ 108 四面体補間部 109 斜三角柱補間部 110 斜四角錐補間部 111 四面体各頂点における色変換出力値 112 斜三角柱各頂点における色変換出力値 113 斜四角錐各頂点における色変換出力値 114 四面体補間出力 115 斜三角柱補間出力 116 斜四角錐補間出力 117 補間立体選択情報 101 Upper color signal of input color signal 102 Lower-level signal of input color signal 103 Tetrahedral area number determination unit 104 Interpolation solid selection section 105 tetrahedron area number Area 106 color conversion table memory 107 selector 108 Tetrahedral interpolation unit 109 Oblique triangular prism interpolator 110 oblique quadrangular pyramid interpolation unit 111 Output value of color conversion at each vertex of tetrahedron 112 Color conversion output value at each vertex of the oblique triangle 113 Color conversion output value at each vertex of the diagonal quadrangular pyramid 114 tetrahedral interpolation output 115 Oblique triangular prism interpolation output 116 Oblique quadrangular pyramid interpolation output 117 Interpolation solid selection information

───────────────────────────────────────────────────── フロントページの続き (51)Int.Cl.7 識別記号 FI H04N 9/64 H04N 1/46 Z (56)参考文献 特開 平8−223432(JP,A) 特開 平7−99587(JP,A) 特開 平5−328114(JP,A) 特開 平7−131668(JP,A) 特開 平8−98046(JP,A) 特開 平9−69961(JP,A) 特開 平9−307777(JP,A) (58)調査した分野(Int.Cl.7,DB名) H04N 1/60 B41J 2/525 G06T 1/00 510 G09G 5/06 H04N 9/64 ─────────────────────────────────────────────────── ─── Continuation of front page (51) Int.Cl. 7 Identification code FI H04N 9/64 H04N 1/46 Z (56) Reference JP-A-8-223432 (JP, A) JP-A-7-99587 ( JP, A) JP 5-328114 (JP, A) JP 7-131668 (JP, A) JP 8-98046 (JP, A) JP 9-69961 (JP, A) JP Flat 9-307777 (JP, A) (58) Fields surveyed (Int.Cl. 7 , DB name) H04N 1/60 B41J 2/525 G06T 1/00 510 G09G 5/06 H04N 9/64

Claims (4)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 無彩色近傍を包含する斜三角柱群、入力
色空間周辺部の四面体群及び入力色空間周辺部の斜四角
錐群の補間立体の組み合わせにより入力色空間を隙間な
く分割し、前記補間立体の頂点位置での色変換後の出力
値を蓄積する色変換テーブルメモリと、入力色信号から
前記補間立体の種類を選択する補間立体選択部と、前記
入力色信号を含む前記補間立体の頂点での出力値、前記
補間立体が配置される領域により決まる重み係数及び前
記補間立体が配置される領域により決まるオフセット値
を用いて補間演算する補間部とを備え、前記補間立体
は、全ての稜線及び全ての平面を共有しつつ、前記入力
色空間の内部を隙間なく分割し、入力色信号に任意の色
変換を実施して出力する色変換装置。
1. An input color space is divided without a gap by a combination of an interpolated solid of an oblique triangular prism group including an achromatic color neighborhood, a tetrahedron group in an input color space peripheral portion and an oblique tetragonal pyramid group in an input color space peripheral portion, A color conversion table memory that stores output values after color conversion at the vertex positions of the interpolation solid, an interpolation solid selection unit that selects the type of the interpolation solid from an input color signal, and the interpolation solid that includes the input color signal. Of the output values at the vertices, the weighting factor determined by the area where the interpolated solid is arranged, and the offset value determined by the offset value determined by the area where the interpolated solid is arranged. The color conversion device that divides the inside of the input color space without any gaps while sharing the ridge line and all planes, performs arbitrary color conversion on the input color signal, and outputs the color signal.
【請求項2】 斜三角柱の上底面と下底面は、三原色入
力空間を構成する3座標軸のうち、第1軸の変数を一定
とする面に平行であり、前記上下底面を形成する三角形
の二辺はおのおの第2軸と第3軸に平行であり、斜三角
柱の主軸は三原色空間の無彩色を表現する対角軸に平行
であり、結果として前記斜三角柱は第1軸の変数と第2
軸の変数が等しくなる面、第2軸の変数と第3軸の変数
が等しくなる面、第3軸の変数と第1軸の変数が等しく
なる面、の3平面を境界面としてもつ請求項記載の色
変換装置。
2. The upper bottom surface and the lower bottom surface of the oblique triangular prism are parallel to the surface of the three coordinate axes forming the three primary color input space where the variable of the first axis is constant, and the upper and lower bottom surfaces of the triangle form the upper and lower bottom surfaces. Each side is parallel to the second axis and the third axis, and the main axis of the oblique triangular prism is parallel to the diagonal axis representing the achromatic color of the three primary color space, and as a result, the oblique triangular prism has the variable of the first axis and the second axis.
A boundary surface having three planes, that is, a surface where the variables of the axis are equal, a surface where the variables of the second axis and the variable of the third axis are equal, and a surface where the variables of the third axis and the variable of the first axis are equal. 1. The color conversion device described in 1 .
【請求項3】 斜四角錐を構成する5点のうちの4点か
ら構成される底面は斜三角柱の側面である平行四辺形に
合致し、残る1頂点は色空間の最外郭の1点である請求
記載の色変換装置。
3. A bottom surface composed of four points out of five points forming an oblique quadrangular pyramid matches a parallelogram that is a side surface of an oblique triangular prism, and the remaining one vertex is one outermost point of the color space. The color conversion device according to claim 1 .
【請求項4】 四面体は色空間を分割した立方体を前記
立方体の対角線を共有する形で6分割されたものであ
り、前記四面体の側面は色空間の最外郭の側面である
か、または他の四面体もしくは斜四角錐に接している請
求項記載の色変換装置。
4. A tetrahedron has been a 6 divided form a cube obtained by dividing the color space to share the diagonal of the <br/> cube, the tetrahedral sides in the outermost side of the color space The color conversion device according to claim 1 , wherein the color conversion device is present, or is in contact with another tetrahedron or an oblique tetragon.
JP05439697A 1997-03-10 1997-03-10 Color converter Expired - Lifetime JP3403912B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP05439697A JP3403912B2 (en) 1997-03-10 1997-03-10 Color converter

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP05439697A JP3403912B2 (en) 1997-03-10 1997-03-10 Color converter

Publications (2)

Publication Number Publication Date
JPH10257338A JPH10257338A (en) 1998-09-25
JP3403912B2 true JP3403912B2 (en) 2003-05-06

Family

ID=12969532

Family Applications (1)

Application Number Title Priority Date Filing Date
JP05439697A Expired - Lifetime JP3403912B2 (en) 1997-03-10 1997-03-10 Color converter

Country Status (1)

Country Link
JP (1) JP3403912B2 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7876330B2 (en) * 2007-03-30 2011-01-25 Kabushiki Kaisha Toshiba Color conversion apparatus, filter processing apparatus and color conversion method
JP5236788B2 (en) * 2011-10-05 2013-07-17 シャープ株式会社 Display device, display method, and television receiver

Also Published As

Publication number Publication date
JPH10257338A (en) 1998-09-25

Similar Documents

Publication Publication Date Title
US5504821A (en) Color converting apparatus for performing a three-dimensional color conversion of a colored picture in a color space with a small capacity of memory
JP2666523B2 (en) Color converter
EP0930776A2 (en) Method of converting color data
JPH10136216A (en) Color picture processor
JP2000165691A (en) Method and device for color conversion
US8164597B2 (en) Color conversion circuit and method of color conversion using interpolation from conversion coefficients some of which are substituted
US7944584B2 (en) Color-converting device
JPH06141172A (en) Method and device for converting chrominance signal
JP2001014454A (en) Picture processor
JP3403912B2 (en) Color converter
JP2876853B2 (en) Color converter
US20030215132A1 (en) Image processing device
JP3354158B2 (en) Color correction device, color correction method, and color correction application device
JP2947017B2 (en) Color conversion method and color conversion device
JP2947015B2 (en) Color conversion device and color conversion method
JPH0814843B2 (en) Color conversion method and color conversion device
JP3835059B2 (en) Color image processing method and apparatus
JP2000354171A (en) Color gamut compressor and color gamut compression method
JP3743036B2 (en) Color conversion method and color conversion apparatus
JPH05284346A (en) Color conversion device
JPH0969961A (en) Color conversion device
JPH0622124A (en) Conversion method, color conversion method, color conversion table generating method, color converter and color conversion table generating device
JP3215156B2 (en) Color image processing method
JP2616836B2 (en) Image synthesis processing device
JP2001169097A (en) Picture processor and picture processing method

Legal Events

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

Free format text: PAYMENT UNTIL: 20080229

Year of fee payment: 5

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

Free format text: PAYMENT UNTIL: 20090228

Year of fee payment: 6

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

Free format text: PAYMENT UNTIL: 20100228

Year of fee payment: 7

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

Free format text: PAYMENT UNTIL: 20100228

Year of fee payment: 7

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

Free format text: PAYMENT UNTIL: 20110228

Year of fee payment: 8

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

Free format text: PAYMENT UNTIL: 20120229

Year of fee payment: 9

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

Free format text: PAYMENT UNTIL: 20130228

Year of fee payment: 10

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

Free format text: PAYMENT UNTIL: 20130228

Year of fee payment: 10

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

Free format text: PAYMENT UNTIL: 20140228

Year of fee payment: 11

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

S533 Written request for registration of change of name

Free format text: JAPANESE INTERMEDIATE CODE: R313533

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

S111 Request for change of ownership or part of ownership

Free format text: JAPANESE INTERMEDIATE CODE: R313113

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

EXPY Cancellation because of completion of term