JP2000076439A - Picture deforming method and its device - Google Patents

Picture deforming method and its device

Info

Publication number
JP2000076439A
JP2000076439A JP24813498A JP24813498A JP2000076439A JP 2000076439 A JP2000076439 A JP 2000076439A JP 24813498 A JP24813498 A JP 24813498A JP 24813498 A JP24813498 A JP 24813498A JP 2000076439 A JP2000076439 A JP 2000076439A
Authority
JP
Japan
Prior art keywords
mapping
polygon
image
original image
texture
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP24813498A
Other languages
Japanese (ja)
Other versions
JP4187078B2 (en
Inventor
Naoki Kawai
直樹 河合
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Dai Nippon Printing Co Ltd
Original Assignee
Dai Nippon Printing Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Dai Nippon Printing Co Ltd filed Critical Dai Nippon Printing Co Ltd
Priority to JP24813498A priority Critical patent/JP4187078B2/en
Publication of JP2000076439A publication Critical patent/JP2000076439A/en
Application granted granted Critical
Publication of JP4187078B2 publication Critical patent/JP4187078B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Image Generation (AREA)
  • Image Processing (AREA)

Abstract

PROBLEM TO BE SOLVED: To speedily simulate how an original picture is deformed by mapping defined for deforming a picture. SOLUTION: A polygon generator 4 generates plural plygons corresponding to the original picture. A texture coordinate assigning device 5 assigns a texture coordinate for mapping the original picture to each of these generated polygons. A polygon deforming device 6 deforms each polygon by executing coordinate transformation with respect to all the vertexes of the polygons based on the defined map. Then, a texture mapping device 7 deforms the original picture by adhering a corresponding picture pattern of the original picture by texture mapping based on the original picture, a texture coordinate, etc., assigned by the device 5 with respect to each deformed polygon to display it. This device 7 consists of a dedicated hardware.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、画像変形の処理を高速
に行うための画像変形方法及びその装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an image transformation method and apparatus for performing high-speed image transformation processing.

【0002】[0002]

【従来の技術】画像のデザインの手法の一つとして、あ
る適宜な画像を原画像として用い、その原画像に変形を
施すという手法が知られている。そして、そのような場
合に用いる画像の変形方法としては、規則的な変形が行
われる方法よりも、不定形な変形が行われる方法の方が
バリエーションが豊かになるので望ましいものである。
2. Description of the Related Art As one of image designing methods, there is known a method of using an appropriate image as an original image and deforming the original image. As a method of deforming an image used in such a case, a method in which irregular deformation is performed is more desirable than a method in which regular deformation is performed, because the method is rich in variations.

【0003】本出願人は、先に、画像に対して不定形な
変形を行うことができる画像変形方法を提案しているの
で、以下その方法について概略説明する。この方法に
は、直交座標系を用いる方法と、極座標系を用いる方法
がある。即ち、画像変形を行うには、変形の対象となっ
ている画像の全画素に対して、座標変換のための写像を
定義して、その定義した写像によって、原画像の(x,
y)の位置にある画素を、他の位置(x′,y′)に移
動させるのであるが、その写像を直交座標系で定義する
方法と、極座標系で定義する方法があるのである。
The applicant has previously proposed an image deformation method capable of performing irregular deformation on an image, and the method will be briefly described below. This method includes a method using a rectangular coordinate system and a method using a polar coordinate system. That is, in order to perform image deformation, a mapping for coordinate transformation is defined for all pixels of the image to be deformed, and (x,
The pixel at the position y) is moved to another position (x ', y'). There are a method of defining the mapping in a rectangular coordinate system and a method of defining the mapping in a polar coordinate system.

【0004】[直交座標系を用いる画像変形方法]ま
ず、原画像と、二つの二次元スカラ場A,Bを用意する
(図4のステップS1)。この二次元スカラ場A,Bと
しては、二次元スカラ場であればどのようなものを用い
てもよいが、ここでは二次元フラクタル場を用いるもの
とする。フラクタル場は、スカラ値を自己相似的に空間
内に定義した場であり、自然なゆらぎをもった連続場に
なるので、二次元スカラ場としてフラクタル場を用いれ
ば、原画像に対して自然のゆらぎをもった不定形な変形
を施すことができるからである。二次元フラクタル場を
生成するためには、例えば、中点変位法として広く知ら
れている手法を用いればよい。
[Image Deformation Method Using Orthogonal Coordinate System] First, an original image and two two-dimensional scalar fields A and B are prepared (step S1 in FIG. 4). As the two-dimensional scalar fields A and B, any two-dimensional scalar fields may be used, but here, a two-dimensional fractal field is used. A fractal field is a field in which scalar values are defined in space in a self-similar manner and is a continuous field with natural fluctuations.Therefore, if a fractal field is used as a two-dimensional scalar field, the natural This is because irregular deformation with fluctuation can be performed. In order to generate a two-dimensional fractal field, for example, a method widely known as a midpoint displacement method may be used.

【0005】次に、原画像、及び二次元フラクタル場
A,Bに対して直交座標系を設定する(図4のステップ
S2)。ここで、原画像と、二次元フラクタル場A,B
のサイズは同一であってよいことは当然であるが、異な
っていてもよい。原画像と、二次元フラクタル場A,B
のサイズが異なっている場合には、座標系を正規化し
て、各画像の画素の位置が一対一の対応をとるようにす
ればよい。ここでは座標系は正規化されているものとす
る。即ち、各画像のサイズはx方向もy方向も[0,1
]の範囲となっているものとする。
Next, an orthogonal coordinate system is set for the original image and the two-dimensional fractal fields A and B (step S2 in FIG. 4). Here, the original image and the two-dimensional fractal fields A and B
May be the same, but may be different. Original image and two-dimensional fractal fields A and B
Are different, the coordinate system may be normalized so that the positions of the pixels in each image have a one-to-one correspondence. Here, it is assumed that the coordinate system is normalized. That is, the size of each image is [0, 1] in both the x and y directions.
].

【0006】次に、写像を定義する(図4のステップS
3)。即ち、原画像を変形するためには、原画像の
(x,y)の位置にある画素を(x′,y′)の位置に
移動させる写像が必要である。そして、定義された写像
を原画像の全画素に施せば、原画像を変形することがで
きるのである。
Next, a mapping is defined (step S in FIG. 4).
3). That is, in order to deform the original image, a mapping that moves the pixel at the position (x, y) of the original image to the position (x ′, y ′) is necessary. Then, by applying the defined mapping to all the pixels of the original image, the original image can be deformed.

【0007】いま、原画像の(x,y)の位置にある画
素を、変形後に(x′,y′)の位置に移動させるもの
とすると、写像は例えば次のような式で定義することが
できる。
Now, assuming that the pixel at the position (x, y) in the original image is to be moved to the position (x ', y') after the transformation, the mapping is defined by the following equation, for example. Can be.

【0008】 x′=x+kAA(x,y) …(1) y′=y+kBB(x,y) …(2) ここで、kA ,kB はxおよびy方向への変位の大きさ
を表す係数であり、任意に設定することができるもので
ある。また、関数FA(x,y),FB(x,y)はそれ
ぞれ二次元フラクタル場A,Bの(x,y)の位置にお
けるスカラ値を表している。
X ′ = x + k A F A (x, y) (1) y ′ = y + k B F B (x, y) (2) where k A and k B are in the x and y directions. This is a coefficient representing the magnitude of the displacement, and can be set arbitrarily. The functions F A (x, y) and F B (x, y) represent scalar values at the position (x, y) of the two-dimensional fractal fields A and B, respectively.

【0009】この(1),(2)式によれば、原画像の(x,
y)の位置にある画素のx方向の変位の大きさは二次元
フラクタル場Aの(x,y)の位置におけるスカラ値に
比例し、y方向の変位の大きさは、二次元フラクタル場
Bの(x,y)の位置におけるスカラ値に比例すること
になる。なお、この場合のように各画像のサイズを正規
化している場合には、FA(x,y)及びFB(x,y)
の値域は[-1,+1]の範囲に正規化されていることが望
ましい。
According to the equations (1) and (2), (x,
The magnitude of the displacement in the x direction of the pixel at the position y) is proportional to the scalar value of the two-dimensional fractal field A at the position (x, y), and the magnitude of the displacement in the y direction is the two-dimensional fractal field B Is proportional to the scalar value at the position (x, y). When the size of each image is normalized as in this case, F A (x, y) and F B (x, y)
Is preferably normalized to the range [-1, + 1].

【0010】次に、原画像に対して変形の処理を行う
(図4のステップS4)。即ち、原画像の(x,y)の
位置にある画素に着目し、上記(1) ,(2) 式による写像
により当該画素の移動先の位置(x′,y′)を求め、
予め用意されている原画像とは異なるメモリ空間上の
(x′,y′)の位置に当該原画像の(x,y)の位置
にある画素値を書き込む。この処理を原画像の全ての画
素に対して施すことによって変形を行うことができる。
Next, a deformation process is performed on the original image (step S4 in FIG. 4). That is, focusing on the pixel at the position (x, y) of the original image, the destination position (x ', y') of the pixel is obtained by mapping using the above equations (1) and (2).
The pixel value at the position (x, y) of the original image is written at the position (x ', y') in a memory space different from the previously prepared original image. Deformation can be performed by performing this processing on all pixels of the original image.

【0011】ところで、ステップS4で原画像の変形を
行った場合、その変形の結果得られた画像(以下、これ
を変形画像と称す)には画素値が定義されない画素(以
下、このような画素を空画素と称す)が生じることがあ
る。つまり、実際には、画素の数は有限個であるため、
画素の位置を示す座標値はとびとびの離散的な値になる
のに対して、写像によって決定される画素のx方向の移
動量kAA(x,y)、及びy方向の移動量kB
B(x,y)は通常は連続量になるので、移動先の位置
(x′,y′)を求める際には、量子化を行うことにな
り、このため、原画像の複数の画素の移動先が変形画像
上の同一の位置に重なってしまう場合がある。例えば、
いま、原画像及び変形画像がそれぞれ10×10の画素配列
から構成されているものとすると、原画像の画素配列を
構成する 100個の画素のそれぞれが、変形に定義された
写像に基づいて勝手に移動することになり、その写像の
結果得られる移動先の位置を量子化すると原画像の複数
の画素が変形画像において同一の位置に統合してしまう
ことが起こり得るのである。
When the original image is deformed in step S4, an image obtained as a result of the deformation (hereinafter, referred to as a deformed image) has a pixel whose pixel value is not defined (hereinafter, such a pixel is referred to as a deformed image). May be referred to as a blank pixel). That is, in practice, the number of pixels is finite,
The coordinate values indicating the positions of the pixels are discrete discrete values, whereas the moving amounts k A F A (x, y) in the x direction and the moving amounts k in the y direction of the pixels are determined by the mapping. B F
Since B (x, y) is usually a continuous quantity, quantization is performed when obtaining the destination position (x ′, y ′), and therefore, a plurality of pixels of the original image are quantized. The destination may overlap the same position on the deformed image. For example,
Now, assuming that each of the original image and the deformed image is composed of a 10 × 10 pixel array, each of the 100 pixels constituting the pixel array of the original image is based on the mapping defined in the deformation. When the position of the movement destination obtained as a result of the mapping is quantized, a plurality of pixels of the original image may be integrated at the same position in the deformed image.

【0012】このことは、逆にいえば、変形画像上には
画素値が定義されない空画素が生じることを意味する。
例えば、原画像上に存在していた合計 100個の画素が、
移動によって合計70個の画素に統合されてしまったとす
ると、変形画像上の30個の画素が空画素となる。
[0012] Conversely, this means that a blank pixel whose pixel value is not defined occurs on the deformed image.
For example, a total of 100 pixels that existed on the original image
Assuming that the pixels are integrated into a total of 70 pixels by the movement, 30 pixels on the deformed image become empty pixels.

【0013】そこで、ステップS4の原画像の変形を行
う際には、空画素の処理を行う必要がある。この空画素
の処理としては、例えば、予め「空画素については、画
素値= 0とする」というような定義を行っておけば、空
画素の部分は黒で表現されることになる。また、空画素
の領域には、何らかの背景画像を割り付けるというよう
な処理を行ってもよい。
Therefore, when deforming the original image in step S4, it is necessary to perform processing on empty pixels. As the processing of the empty pixel, for example, if a definition such as “set the pixel value to 0 for an empty pixel” is made in advance, the empty pixel portion is expressed in black. Further, a process of assigning some background image to the area of the empty pixel may be performed.

【0014】更に、変形画像上に空画素を生じさせない
ように原画像を変形することも可能である。その手法と
しては、写像を逆に用いることで行うことができる。例
えば、いま変形が上記の(1) ,(2) 式で定義されるもの
とすると、 x=x′−kAA(x′,y′) …(3) y=y′−kBB(x′,y′) …(4) という写像を用いて行えばよい。ここで、(x,y)は
原画像上の画素位置であり、(x′,y′)は変形画像
上の画素位置である。即ち、まず、変形画像上の位置
(x′,y′)に着目し、当該位置での二次元フラクタ
ル場A,Bのスカラ値FA(x′,y′),FB(x′,
y′)からx方向の移動量kAA(x′,y′)及びy
方向の移動量kBB(x′,y′)を求め、(1) 式及び
(2) 式の逆演算によって、当該変形画像上の位置
(x′,y′)に対応する原画像上の位置(x,y)を
求め、原画像上の当該位置(x,y)の画素値を変形画
像上の位置(x′,y′)の画素値とするのである。こ
のような手法によって、変形画像に空画素が生じること
を回避することができる。
Further, it is possible to deform the original image so as not to cause a blank pixel on the deformed image. The technique can be performed by using the mapping in reverse. For example, now deformation of (1), assuming that is defined by the equation (2), x = x'-k A F A (x ', y') ... (3) y = y'-k B F B (x ′, y ′)... (4) Here, (x, y) is a pixel position on the original image, and (x ′, y ′) is a pixel position on the deformed image. That is, first, the position on the deformed image (x ', y') in focused, two-dimensional fractal field A at that position, B scalar value F A (x ', y' ), F B (x ',
y ′), the amount of movement k A F A (x ′, y ′) in the x direction and y
Direction of movement amount k B F B (x ', y') sought, (1) and
The position (x, y) on the original image corresponding to the position (x ', y') on the deformed image is obtained by the inverse operation of equation (2), and the position (x, y) on the original image is calculated. The pixel value is set as the pixel value at the position (x ', y') on the deformed image. With such a method, it is possible to avoid generation of empty pixels in the deformed image.

【0015】なお、原画像上のある画素pを写像により
移動した場合に、移動後の位置が変形画像の範囲外には
み出してしまう場合があるが、この場合には、変形画像
の範囲外に同じサイズの領域(仮想変形画像)が隣接配
置されているものとして、移動後の位置を変形画像の範
囲内に補正するはみ出し補正処理を行ってもよい。例え
ば、原画像の画素pを写像した結果、図5のp′で示す
ように変形画像の範囲外にはみ出した場合には、変形画
像の範囲外に図の破線で示すように変形画像と同じサイ
ズの仮想変形画像が隣接配置されているものと考えて、
仮想変形画像内におけるp′の位置と同じ位置となる変
形画像内の位置p″の位置に補正するのである。図5は
変形画像の横方向にはみ出した場合の例であるが、変形
画像の縦方向にはみ出した場合も同様に補正する。
When a certain pixel p on the original image is moved by mapping, the position after the movement may protrude out of the range of the deformed image. Assuming that areas of the same size (virtual deformed images) are arranged adjacent to each other, an out-of-plane correction process may be performed to correct the moved position within the range of the deformed image. For example, as a result of mapping the pixel p of the original image, if the pixel protrudes out of the range of the deformed image as shown by p 'in FIG. 5, the same as the deformed image as shown by the broken line in the figure outside the range of the deformed image Assuming that virtual deformed images of the size are arranged adjacently,
The position is corrected to the position of the position p ″ in the deformed image which is the same as the position of p ′ in the virtual deformed image. FIG. 5 shows an example in which the deformed image extends laterally. The same correction is applied to the case of protruding in the vertical direction.

【0016】以上のようであるので、この変形方法によ
れば、原画像に対して自然のゆらぎをもった不定形な変
形を施すことができる。そして、その変形の態様は、
(1) ,(2) で示す係数kA ,kB の値、及び二次元フラ
クタル場A,Bとしてどのようなものを用いるかによっ
て制御することができる。
As described above, according to this deformation method, an irregular deformation having natural fluctuation can be applied to the original image. And the mode of the deformation is
It can be controlled by the values of the coefficients k A and k B shown in (1) and (2) and what kind of two-dimensional fractal fields A and B are used.

【0017】[極座標系を用いる画像変形方法]この方
法では、原画像の画素の移動先を定めるための写像を定
義するために極座標系を用いる。その処理の流れは図6
に示すようである。まず、原画像と、二つの二次元スカ
ラ場A,Bを用意する(ステップS11)。このステッ
プS11は図4のステップS1と同じである。次に、原
画像、及び二次元フラクタル場A,Bに対して極座標系
を設定する(ステップS12)。ここでも座標系は正規
化されているとする。
[Image Deformation Method Using Polar Coordinate System] In this method, a polar coordinate system is used to define a mapping for determining a destination of a pixel in an original image. The processing flow is shown in FIG.
It seems as shown. First, an original image and two two-dimensional scalar fields A and B are prepared (step S11). This step S11 is the same as step S1 in FIG. Next, a polar coordinate system is set for the original image and the two-dimensional fractal fields A and B (step S12). Here, it is also assumed that the coordinate system is normalized.

【0018】次に、写像を定義する(ステップS1
3)。この写像は、例えば次の(5) 〜(8) 式のように定
義することができる。 r=krA(x,y) …(5) θ=kqB(x,y) …(6) x′=x+rcosθ …(7) y′=y+rsinθ …(8) ここで、x,yはそれぞれ原画像の画素の直交座標表現
によるx座標、y座標であり、x′,y′はそれぞれ当
該原画像の画素が写像によって移動された後の変形画像
上のx座標、y座標であり、kr は極座標の変位のr成
分の大きさを表す係数であり、kq は極座標の変位のθ
成分の大きさを表す係数であり、関数FA(x,y),
B(x,y)はそれぞれ二次元フラクタル場A,Bの
位置(x,y)におけるスカラ値を表している。なお、
上記の二つの関数、FA(x,y),FB(x,y)の値
域は[-1,+1]の範囲に正規化されているものとする。
Next, a mapping is defined (step S1).
3). This mapping can be defined, for example, as in the following equations (5) to (8). r = k r F A (x , y) ... (5) θ = k q F B (x, y) ... (6) x '= x + rcosθ ... (7) y' = y + rsinθ ... (8) wherein, x , Y are the x-coordinate and y-coordinate of the pixels of the original image in the orthogonal coordinate expression, respectively, and x ′, y ′ are the x-coordinate and y-coordinate of the transformed image after the pixels of the original image have been moved by mapping Where k r is a coefficient representing the magnitude of the r component of the displacement in polar coordinates, and k q is θ of the displacement in polar coordinates.
A coefficient representing the magnitude of the component, and the function F A (x, y),
F B (x, y) represents a scalar value at the position (x, y) of the two-dimensional fractal fields A and B, respectively. In addition,
It is assumed that the range of the above two functions F A (x, y) and F B (x, y) is normalized to the range of [−1, +1].

【0019】このような写像によれば、係数kr 及び/
または係数kq の値を適宜に定めることによって、変形
の大きさ、あるいは局所的な変形の激しさを所望のよう
に制御することが可能である。
According to such a mapping, the coefficients k r and / or
Alternatively, by appropriately determining the value of the coefficient k q , it is possible to control the magnitude of the deformation or the degree of the local deformation as desired.

【0020】更に、上記の(6) 式で決定されるθの値を
そのまま変位の方向成分として用いるのではなく、入力
された角度θに対して特定の角度に偏った角度θ′を出
力する関数fa を導入して θ′=fa(θ)=fa(kqB(x,y)) …(9) と拡張し、このθ′の値を上記の(7) ,(8) 式に代入し
て移動先の位置(x′,y′)を定めるようにすれば、
変形の方向を所望の角度方向に偏らせるように制御する
ことができる。図7にその例を示す。図7において、横
軸θは上記の(6)式で決定されるθの値であり、縦軸
θ′は上記の(9) 式で得られる値である。図7において
は破線で示すように一様に分布するθに対して、実線で
示すように、π方向及び2π(=0)方向に偏りのある角
度θ′が得られている。従って、図7の実線で示す入出
力特性を有する関数fa を用いてθ′を得、そのθ′の
値を上記の(7) ,(8) 式に代入して移動先の位置
(x′,y′)を定めれば、変形画像では左右方向
(θ′=0,π,2π)への変形が強調されることになる。
Further, the value of θ determined by the above equation (6) is not used as it is as the direction component of the displacement, but an angle θ ′ deviated to a specific angle with respect to the input angle θ is output. by introducing the function f a θ '= f a ( θ) = f a (k q F B (x, y)) ... (9) and extends, the theta' value of the above (7), ( 8) By substituting into the equation to determine the destination position (x ', y'),
The direction of the deformation can be controlled so as to be deviated to a desired angle direction. FIG. 7 shows an example. In FIG. 7, the horizontal axis θ is the value of θ determined by the above equation (6), and the vertical axis θ ′ is the value obtained by the above equation (9). In FIG. 7, an angle θ ′ having a bias in the π direction and the 2π (= 0) direction is obtained as shown by a solid line with respect to θ uniformly distributed as shown by a broken line. Therefore, 'give, the theta' theta using a function f a with input-output characteristic indicated by the solid line in FIG. 7 the value of the above (7), the position of the destination are substituted into equation (8) (x ', Y'), the deformation in the left-right direction (θ '= 0, π, 2π) is emphasized in the deformed image.

【0021】以上のようであるので、座標系を極座標表
現する場合には、上述した事項を考慮して、写像を定義
すればよい。
As described above, when the coordinate system is expressed in polar coordinates, the mapping may be defined in consideration of the above-mentioned items.

【0022】そして、次に原画像に対して変形処理を施
す(ステップS14)。空画素の処理、はみ出し処理に
ついても上述したと同様である。特に、変形の処理の際
に変形画像上に空画素を生じさせないようにするために
は、例えば、 r=krA(x′,y′) …(10) θ=kqB(x′,y′) …(11) x=x′−rcosθ …(12) y=y′−rsinθ …(13) という写像を用いて原画像を変形すればよい。ここで、
(x,y)は原画像上の画素位置、(x′,y′)は変
形画像上の画素位置である。これによって、上述したと
同様に、変形画像上の位置(x′,y′)に対応する原
画像上の位置(x,y)を求めることができるので、そ
の求めた原画像上の位置の画素値を変形画像上の
(x′,y′)の位置に書き込めばよい。
Next, a deformation process is performed on the original image (step S14). The processing of the empty pixel and the protruding processing are the same as described above. In particular, in order not to cause a blank pixel on the deformed image during the process of the variation, for example, r = k r F A ( x ', y') ... (10) θ = k q F B ( x ′, y ′) (11) x = x′−r cos θ (12) The original image may be deformed using the mapping y = y′−rsin θ (13). here,
(X, y) is a pixel position on the original image, and (x ', y') is a pixel position on the deformed image. As a result, the position (x, y) on the original image corresponding to the position (x ', y') on the deformed image can be obtained in the same manner as described above. What is necessary is just to write the pixel value at the position (x ', y') on the deformed image.

【0023】以上のようであるので、この変形方法によ
っても、原画像に対して自然のゆらぎをもった不定形な
変形を施すことができる。そして、その変形の態様は、
上述した種々のパラメータ、及び二次元フラクタル場
A,Bとしてどのようなものを用いるかによって制御す
ることができる。
As described above, even with this deformation method, it is possible to apply an irregular deformation with natural fluctuations to the original image. And the mode of the deformation is
It can be controlled by various parameters described above and what two-dimensional fractal fields A and B are used.

【0024】[0024]

【発明が解決しようとする課題】しかしながら、上述し
たような画像変形方法では、定義された写像によって原
画像の全画素に対して変形の処理を施す必要があるの
で、変形の処理に時間がかかるという問題がある。勿
論、デザインした画像のプレゼンテーションを行う場合
や、刷版用の画像を作成する場合には、上述したように
して原画像の全画素に対して変形の処理を施して完全な
変形画像を得る必要があるのであるが、デザインの過程
においては、デザイナは使用する二次元スカラ場を変え
たり、上述したような係数、あるいはパラメータの値を
種々に変更して、どのような画像が得られるかを試した
い場合があり、このような場合には得られる変形画像は
厳密なものではなくても、画像変形の処理が高速に行わ
れることが望まれる。
However, in the above-described image deformation method, since it is necessary to perform the deformation process on all the pixels of the original image according to the defined mapping, it takes a long time to perform the deformation process. There is a problem. Of course, when presenting a designed image or creating an image for a printing plate, it is necessary to apply a transformation process to all pixels of the original image to obtain a completely transformed image as described above. However, in the design process, the designer changes the two-dimensional scalar field to be used, or variously changes the coefficient or parameter value as described above, and determines what kind of image can be obtained. There is a case where it is desired to try, and in such a case, even if the obtained deformed image is not strict, it is desired that the image deforming process be performed at high speed.

【0025】そこで、本発明は、画像の変形の処理を高
速に行うことができる画像変形方法及びその装置を提供
することを目的とするものである。
SUMMARY OF THE INVENTION It is an object of the present invention to provide an image deforming method and an image deforming method capable of performing high-speed image deformation processing.

【0026】[0026]

【課題を解決するための手段】上記の目的を達成するた
めに、本発明の画像変形方法は、請求項1記載のよう
に、原画像に対応させて複数のポリゴンを生成して、こ
の生成した各ポリゴンに原画像をマッピングするための
テクスチャ座標を割り当てると共に、座標変換を行うた
めの写像を定義し、当該写像により前記生成したポリゴ
ンの全ての頂点に対して座標変換を施すことによって前
記生成したポリゴンを変形し、その変形した各ポリゴン
に対して前記割り当てられたテクスチャ座標に基づいて
テクスチャマッピングにより原画像の対応する絵柄を貼
り込むことによって原画像の変形を行うことを特徴とす
る。
According to a first aspect of the present invention, there is provided an image transformation method comprising: generating a plurality of polygons corresponding to an original image; By assigning texture coordinates for mapping the original image to each of the polygons, defining a mapping for performing coordinate transformation, and performing coordinate transformation on all vertices of the generated polygon by the mapping, The deformed polygon is deformed, and the original image is deformed by pasting a corresponding pattern of the original image by texture mapping based on the assigned texture coordinates on each of the deformed polygons.

【0027】本発明の画像変形装置は、請求項2記載の
ように、原画像に対応させて複数のポリゴンを生成する
ポリゴン生成手段と、前記ポリゴン生成手段で生成され
た各ポリゴンに対して、原画像をマッピングするための
テクスチャ座標を割り当てるテクスチャ座標割り当て手
段と、座標変換を行うための写像を定義するための設定
手段と、前記ポリゴン生成手段で生成され、更に前記テ
クスチャ座標割り当て手段によってテクスチャ座標が割
り当てられたポリゴンの各頂点に対して、前記設定手段
で定義された写像によって座標変換を施し、各ポリゴン
を変形するポリゴン変形手段と、前記ポリゴン変形手段
によって変形された各ポリゴンに対して、原画像、前記
テクスチャ座標割り当て手段によって割り当てられたテ
クスチャ座標等に基づいて、テクスチャマッピングによ
り原画像の対応する絵柄を貼り込むことによって原画像
の変形を行うテクスチャマッピング手段とを備えること
を特徴とする。ここで、テクスチャマッピング手段は、
請求項3記載のように、テクスチャマッピングを行うた
めの専用のハードウェアで構成するとテクスチャマッピ
ングを高速に行うことができる。
According to a second aspect of the present invention, there is provided an image transformation apparatus comprising: a polygon generating means for generating a plurality of polygons corresponding to an original image; Texture coordinate allocating means for allocating texture coordinates for mapping an original image; setting means for defining a mapping for performing coordinate transformation; and texture coordinates generated by the polygon generating means, and further generated by the texture coordinate allocating means. For each vertex of the polygon to which is assigned, a coordinate transformation is performed by the mapping defined by the setting means, and a polygon deformation means for deforming each polygon, and for each polygon deformed by the polygon deformation means, To the original image, the texture coordinates assigned by the texture coordinate assigning means, etc. Zui it, characterized in that it comprises a texture mapping means for performing deformation of the original image by pasting a corresponding pattern of an original image by texture mapping. Here, the texture mapping means includes:
As described in the third aspect, if it is constituted by dedicated hardware for performing the texture mapping, the texture mapping can be performed at high speed.

【0028】[0028]

【発明の実施の形態】以下、図面を参照しつつ発明の実
施の形態について説明する。図1は本発明に係る画像変
形装置の一実施形態を示す図であり、図中、1は原画像
入力装置、2は二次元スカラ場入力装置、3は写像・パ
ラメータ設定装置、4はポリゴン生成装置、5はテクス
チャ座標割り当て装置、6はポリゴン変形装置、7はテ
クスチャマッピング装置、8は表示装置を示す。
Embodiments of the present invention will be described below with reference to the drawings. FIG. 1 is a diagram showing an embodiment of an image transformation device according to the present invention, wherein 1 is an original image input device, 2 is a two-dimensional scalar field input device, 3 is a mapping / parameter setting device, and 4 is a polygon. A generating device, a texture coordinate assigning device, a polygon deforming device, a texture mapping device, and a display device.

【0029】まず、図1に示す各装置の概略について説
明する。原画像入力装置1は、変形を施そうとする画像
を入力するための装置である。二次元スカラ場入力装置
2は、ポリゴン変形装置6においてポリゴンを変形する
際に用いる二つの二次元スカラ場A,Bを入力するため
のものである。なお、ここでは二次元スカラ場としては
二次元のフラクタル場を用いるものとする。
First, the outline of each device shown in FIG. 1 will be described. The original image input device 1 is a device for inputting an image to be deformed. The two-dimensional scalar field input device 2 is for inputting two two-dimensional scalar fields A and B used when the polygon deforming device 6 deforms a polygon. Here, a two-dimensional fractal field is used as the two-dimensional scalar field.

【0030】写像・パラメータ設定装置3は、ポリゴン
変形装置6においてポリゴンを変形する際に用いる写像
の定義を行うと共に、その写像を定義する際に用いる係
数などを設定するものである。例えば、写像を上記の
(1) ,(2) 式、あるいは(3) ,(4) 式により定義する場
合には、係数kA ,kB の値を設定する。また、写像を
上記の(5) 〜(8) 式、あるいは(10) 〜(13)式で定義す
る場合には、係数kr ,kq の値や、(9) 式に示す関数
a(θ) を設定する。
The mapping / parameter setting device 3 defines a mapping used when the polygon is deformed by the polygon deforming device 6, and sets a coefficient used when defining the mapping. For example, the mapping
In the case of defining by the equations (1) and (2), or the equations (3) and (4), the values of the coefficients k A and k B are set. When the mapping is defined by the above equations (5) to (8) or (10) to (13), the values of the coefficients k r and k q and the function f a shown in the equation (9) (Θ) is set.

【0031】ポリゴン生成装置4は、原画像入力装置1
から入力した原画像と同等のサイズの矩形を、ポリゴン
に分割する装置である。ポリゴンをどのような形状とす
るか、いくつに分割するかは予め設定されている。
The polygon generating device 4 includes the original image input device 1
This is a device that divides a rectangle having the same size as the original image input from, into polygons. The shape of the polygon and the number of divisions are set in advance.

【0032】テクスチャ座標割り当て装置5は、ポリゴ
ン生成装置4で生成されたポリゴンと、原画像入力装置
1から入力された原画像を取り込んで、各ポリゴンに原
画像をマッピングするためのテクスチャ座標を割り当て
る装置である。このとき、ポリゴン生成装置4がポリゴ
ンを生成する矩形領域のサイズが原画像と同一である場
合には一対一の対応がとれているからそのまま各ポリゴ
ンに対してテクスチャ座標を割り当てればよいが、ポリ
ゴンを生成する矩形領域のサイズが原画像と異なる場合
には、当該矩形と、原画像とを正規化してから各ポリゴ
ンにテクスチャ座標を割り当てるようにすればよい。
The texture coordinate allocating device 5 takes in the polygon generated by the polygon generating device 4 and the original image input from the original image input device 1, and allocates texture coordinates for mapping the original image to each polygon. Device. At this time, if the size of the rectangular area in which the polygon generating device 4 generates the polygon is the same as the original image, a one-to-one correspondence is established, so that texture coordinates may be assigned to each polygon as it is. If the size of a rectangular area for generating a polygon is different from that of the original image, the rectangle and the original image may be normalized, and texture coordinates may be assigned to each polygon.

【0033】ポリゴン変形装置6は、ポリゴンを変形す
る装置であるが、具体的には、二次元スカラ場入力装置
2から入力された二つのフラクタル場A,Bと、写像・
パラメータ設定装置3で設定された写像、パラメータを
用いて、ポリゴンの全ての頂点に対して座標変換を行う
ものである。
The polygon deforming device 6 is a device for deforming a polygon. Specifically, the two fractal fields A and B input from the two-dimensional scalar field input device 2 are mapped to a map / map.
Using the mapping and parameters set by the parameter setting device 3, coordinate conversion is performed on all vertices of the polygon.

【0034】テクスチャマッピング装置7は、原画像入
力装置1から入力された原画像、テクスチャ座標割り当
て装置5で各ポリゴンに割り当てられたテクスチャ座
標、及びポリゴン変形装置6により座標変換された各頂
点の座標値に基づいてテクスチャマッピングを行うもの
である。このテクスチャマッピング装置7としては、処
理の高速化を図るために、テクスチャマッピングを行う
専用のハードウェアを用いる。このようなハードウェア
は現在広く市販されており、そのアルゴリズム、及びハ
ードウェア構成は周知であるので詳細な説明は省略す
る。なお、テクスチャマッピングといえば通常は二次元
平面の画像(テクスチャ)を三次元物体の表面にマッピ
ングすることを意味するが、ここでは、二次元のテクス
チャを他の二次元の多角形にマッピングする手法を用い
る。
The texture mapping device 7 includes an original image input from the original image input device 1, texture coordinates assigned to each polygon by the texture coordinate assigning device 5, and coordinates of each vertex subjected to coordinate transformation by the polygon deforming device 6. This is to perform texture mapping based on the value. As the texture mapping device 7, dedicated hardware for performing texture mapping is used in order to speed up the processing. Such hardware is currently widely marketed, and its algorithm and hardware configuration are well known, so detailed description will be omitted. Note that texture mapping usually means mapping a two-dimensional image (texture) to the surface of a three-dimensional object, but here, a technique for mapping a two-dimensional texture to another two-dimensional polygon is used. Is used.

【0035】表示装置8は、テクスチャマッピング装置
7によりマッピングされた画像を表示するものであり、
カラーCRT等の表示手段で構成される。
The display device 8 displays an image mapped by the texture mapping device 7.
It is composed of display means such as a color CRT.

【0036】以上のような画像変形装置は、テクスチャ
マッピング装置7を除いてパーソナルコンピュータ等に
より構成することができる。そして、テクスチャマッピ
ング装置7のハードウェアがパーソナルコンピュータの
拡張スロットにセット可能となされていれば、この画像
変形装置は、テクスチャマッピング装置7をも含めて1
台のパーソナルコンピュータシステムで構成することが
可能である。
The image transformation apparatus as described above can be constituted by a personal computer or the like, except for the texture mapping apparatus 7. If the hardware of the texture mapping device 7 can be set in the expansion slot of the personal computer, this image deforming device includes one unit including the texture mapping device 7.
It can be composed of one personal computer system.

【0037】次に、図1に示す画像変形装置によって画
像変形を行う場合について、画像変形方法と共に説明す
る。まず、オペレータは、原画像入力装置1から原画像
を入力すると共に、二次元スカラ場入力装置2から二つ
の二次元婦場A,Bを入力し、更に写像・パラメータ設
定装置3により写像の定義、及びパラメータの設定を行
う。
Next, a case where an image is deformed by the image deforming apparatus shown in FIG. 1 will be described together with an image deforming method. First, an operator inputs an original image from the original image input device 1, inputs two two-dimensional women's rooms A and B from the two-dimensional scalar field input device 2, and further defines a mapping by the mapping / parameter setting device 3. , And parameters are set.

【0038】原画像の入力は、所望の絵柄の画像がフロ
ッピーディスク等の記憶媒体に記憶されている場合に
は、当該記憶媒体を原画像入力装置1にセットして取り
込めばよく、また所望の画像が印刷物としてある場合に
はカラースキャナによって画像を読み込んで入力すれば
よく、所望の画像のデータがデータベースとしてある場
合にはネットワークを介して原画像入力装置1によって
当該画像データを取り込めばよい。二次元フラクタル場
の入力についても同様に行うことができる。二次元スカ
ラ場入力装置2が二次元フラクタル場を生成する機能を
有している場合には、二次元スカラ場入力装置2で二つ
の二次元フラクタル場を生成すればよい。
When an image of a desired pattern is stored in a storage medium such as a floppy disk, the input of the original image may be performed by setting the storage medium in the original image input device 1 and capturing the image. If the image is a printed matter, the image may be read and input by a color scanner. If the data of the desired image is in a database, the image data may be captured by the original image input device 1 via a network. The same can be applied to input of a two-dimensional fractal field. When the two-dimensional scalar field input device 2 has a function of generating a two-dimensional fractal field, the two-dimensional scalar field input device 2 may generate two two-dimensional fractal fields.

【0039】また、写像の定義は直交座標系を用いて定
義してもよく、極座標系を用いて定義してもよい。直交
座標系を用いる場合には、上記の(1) ,(2) 式、あるい
は(3) ,(4) 式のように定義すればよく、極座標系を用
いる場合には、上記の(5) 〜(8) 式、あるいは(10)〜(1
3)式のように定義すればよい。
Further, the definition of the mapping may be defined using an orthogonal coordinate system, or may be defined using a polar coordinate system. When using the rectangular coordinate system, the above equation (1) or (2) or the equation (3) or (4) may be used. When using the polar coordinate system, the above equation (5) is used. To (8) or (10) to (1
It can be defined as in equation 3).

【0040】原画像が入力されると、ポリゴン生成装置
4は、入力された原画像を取り込んで、原画像と同じサ
イズの矩形領域を作成し、その作成した矩形領域を複数
のポリゴンに分割する。実際には、当該矩形領域は小さ
な多数のポリゴンによって細かく分割されるのである
が、ここでは理解を容易にするために、図2に示すよう
に、3×3の9個の四角形のポリゴンに分割するものと
する。従って、この場合には図2に示すように、P1
9 のポリゴンが生成され、Q1 〜Q16の16個の頂点
ができることになる。そして、ポリゴン生成装置4は生
成したポリゴンのデータをテクスチャ座標割り当て装置
5に渡す。
When an original image is input, the polygon generating device 4 takes in the input original image, creates a rectangular area having the same size as the original image, and divides the created rectangular area into a plurality of polygons. . Actually, the rectangular area is finely divided by a large number of small polygons. However, in order to facilitate understanding, here, as shown in FIG. 2, the rectangular area is divided into nine 3 × 3 square polygons. It shall be. Therefore, in this case, as shown in FIG. 2, P 1 ~
Polygon P 9 is generated, so that it is 16 vertices of Q 1 to Q 16. Then, the polygon generation device 4 passes the generated polygon data to the texture coordinate assignment device 5.

【0041】テクスチャ座標割り当て装置5は、ポリゴ
ン生成装置4から受けたポリゴンのデータと、原画像入
力装置1から受けた原画像とを取り込み、各ポリゴンに
テクスチャ座標を割り当てる。そして、その各ポリゴン
に割り当てたテクスチャ座標をポリゴン変形装置6と、
テクスチャマッピング装置7に渡す。
The texture coordinate assigning device 5 takes in the polygon data received from the polygon generating device 4 and the original image received from the original image input device 1, and assigns texture coordinates to each polygon. Then, the texture coordinates assigned to each polygon are determined by the polygon deforming device 6,
The texture is passed to the texture mapping device 7.

【0042】ポリゴン変形装置6は、二次元スカラ場入
力装置2から入力された二つのフラクタル場A,B、写
像・パラメータ設定装置3によって設定された写像とパ
ラメータ、ポリゴン生成装置4によって生成されたポリ
ゴン頂点座標、及びテクスチャ座標割り当て装置5から
受けた各ポリゴンに割り当てられたテクスチャ座標を取
り込み、図2のポリゴンのQ1 〜Q16の16個の頂点に
対してだけ座標変換を行う。この座標変換は、上述した
従来の技術の項で説明したように行う。そして、ポリゴ
ン変形装置6は、座標変換によって得られた頂点の新た
な座標をテクスチャマッピング装置7に渡す。
The polygon deforming device 6 generates the two fractal fields A and B input from the two-dimensional scalar field input device 2, the mapping and parameters set by the mapping / parameter setting device 3, and the polygon generating device 4. polygon vertex coordinates, and captures the texture coordinates assigned to each polygon received from the texture coordinates assignment device 5 performs only coordinate transformation with respect to 16 vertices of Q 1 to Q 16 of the polygon of Figure 2. This coordinate conversion is performed as described in the section of the related art described above. Then, the polygon transformation device 6 passes the new coordinates of the vertices obtained by the coordinate transformation to the texture mapping device 7.

【0043】テクスチャマッピング装置7は、画像入力
装置1から入力された原画像、テクスチャ座標割り当て
装置5で各ポリゴンに割り当てられたテクスチャ座標、
及びポリゴン変形装置6で座標変換されたポリゴンの全
頂点の座標に基づいて、ポリゴンを投影し、テクスチャ
マッピングを行って変形画像を作成する。
The texture mapping device 7 includes the original image input from the image input device 1, the texture coordinates assigned to each polygon by the texture coordinate assigning device 5,
Based on the coordinates of all the vertices of the polygon, the coordinates of which are converted by the polygon deforming device 6, the polygon is projected and texture mapping is performed to create a deformed image.

【0044】例えば、ポリゴン変形装置6における座標
変換によって、図2に示す各ポリゴンの頂点Q1 〜Q16
が図3のQ1′ 〜Q16′のように移動されたとすると、
図2のポリゴンP1 〜P9 は図3のP1′〜P9′のよう
に変形されることになるが、テクスチャマッピング装置
7は、図2の各ポリゴンPi (i=1,…,9)に割り当てら
れた原画像の画素を、変形後の図3の各ポリゴンPi
(i=1,…,9) 内にテクスチャ座標を保ったまま貼り付
ける。このような処理により、変形画像が作成され、表
示装置8に表示される。
For example, the vertices Q 1 to Q 16 of each polygon shown in FIG.
Are moved as shown by Q 1 ′ to Q 16 ′ in FIG.
The polygons P 1 to P 9 in FIG. 2 are transformed like P 1 ′ to P 9 ′ in FIG. 3, but the texture mapping device 7 uses the polygons P i (i = 1,. , 9) are replaced with the polygons P i ′ of FIG.
(I = 1,…, 9) Paste while keeping the texture coordinates. Through such processing, a deformed image is created and displayed on the display device 8.

【0045】オペレータは、表示装置8に表示される変
形画像を観察することによって、入力した二次元フラク
タル場、定義した写像、及び設定したパラメータによっ
て原画像が概ねどのように変形されるかを確認すること
ができる。
The operator observes the deformed image displayed on the display device 8 to confirm how the original image is substantially deformed by the input two-dimensional fractal field, the defined mapping, and the set parameters. can do.

【0046】なお、表示装置8に表示される変形画像
は、図3からも分かるように、一般的には正方形や長方
形等のきれいな矩形とはならない。勿論、上述したよう
に実際には多数の小さなポリゴンに分割されるので図3
に示すように極端に歪むことはないのであるが、それで
もきちんとした矩形にはならないのが一般的である。し
かし、この画像変形装置で行おうとしているのは、入力
された二次元フラクタル場、定義された写像、設定され
たパラメータによって原画像が概ねどのように変形され
るかを高速にシミュレーションすることであるので、変
形画像は正方形や、長方形等のきれいな矩形にならなく
ても構わないものである。
As can be seen from FIG. 3, the deformed image displayed on the display device 8 is generally not a clear rectangle such as a square or a rectangle. Of course, as described above, since it is actually divided into many small polygons,
Although it does not become extremely distorted as shown in (1), it is general that it still does not become a proper rectangle. However, what we are trying to do with this image transformation device is to quickly simulate how the original image is roughly transformed by the input two-dimensional fractal field, defined mapping, and set parameters. Therefore, the deformed image does not have to be a clean rectangle such as a square or a rectangle.

【0047】以上のようであるので、オペレータは、二
次元フラクタル場を変更したり、写像を変更したり、パ
ラメータを変更することによって、原画像が概ねどのよ
うに変形されるかをシミュレーションすることができ、
所望の変形画像が得られるまで上記の処理を繰り返すこ
とができる。しかも、テクスチャマッピング装置7とし
て専用のハードウェアを用いるので、テクスチャマッピ
ングを高速に行うことができ、オペレータは当該画像変
形装置と対話的に上記の処理を行うことができる。そし
て、原画像に対して所望の変形を施すことができる二次
元フラクタル場、写像、及びパラメータを見い出した
ら、オペレータはそれらの二次元フラクタル場、写像、
パラメータを用いてバッチ処理により原画像に対して、
上述した従来の技術の項で説明した画像変形の処理を施
せばよく、これによって完成した変形画像を得ることが
できる。
As described above, the operator simulates how the original image is generally deformed by changing the two-dimensional fractal field, changing the mapping, or changing the parameters. Can be
The above processing can be repeated until a desired deformed image is obtained. Moreover, since dedicated hardware is used as the texture mapping device 7, the texture mapping can be performed at a high speed, and the operator can perform the above processing interactively with the image deforming device. When the operator finds a two-dimensional fractal field, a mapping, and a parameter that can perform a desired deformation on the original image, the operator can use the two-dimensional fractal field, the mapping,
For the original image by batch processing using parameters,
What is necessary is just to perform the image deformation processing described in the section of the related art described above, whereby a completed deformed image can be obtained.

【0048】このように、この画像変形装置によれば、
写像による座標変換はポリゴンの頂点に対してだけ施せ
ばよいので、写像による座標変換に要する時間は従来の
ように原画像の全ての画素に対して座標変換を施す場合
に比較して大幅に短縮することができ、しかもテクスチ
ャマッピングは専用のハードウェアを用いて行うのでを
高速に行うことができる。従って、原画像が概ねどのよ
うに変形されるかを、対話的に、高速にシミュレーショ
ンすることができるので、作業効率を従来に比較して大
幅に向上させることができるものである。
As described above, according to this image transformation device,
Since the coordinate transformation by mapping only needs to be performed on the vertices of the polygon, the time required for coordinate transformation by mapping is greatly reduced compared to the case where coordinate transformation is performed on all pixels of the original image as before. Since texture mapping is performed using dedicated hardware, the texture mapping can be performed at high speed. Therefore, it is possible to interactively and quickly simulate how the original image is to be deformed, so that the working efficiency can be greatly improved as compared with the related art.

【0049】以上、本発明の一実施形態について説明し
たが、本発明は上記実施形態に限定されるものではなく
種々の変形が可能であることは当業者に明らかである。
As described above, one embodiment of the present invention has been described. However, it is apparent to those skilled in the art that the present invention is not limited to the above-described embodiment, and that various modifications are possible.

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

【図1】 本発明に係る画像変形装置の一実施形態を示
す図である。
FIG. 1 is a diagram showing an embodiment of an image deformation device according to the present invention.

【図2】 ポリゴン生成装置4におけるポリゴンの生成
を説明するための図である。
FIG. 2 is a diagram for explaining generation of a polygon by the polygon generation device 4;

【図3】 ポリゴン変形装置6によるポリゴンの変形の
例を示す図である。
FIG. 3 is a diagram illustrating an example of polygon deformation by a polygon deformation device 6;

【図4】 直交座標系を用いて定義した写像による画像
変形の処理の流れを示すフローチャートである。
FIG. 4 is a flowchart showing a flow of an image deformation process by a mapping defined using an orthogonal coordinate system.

【図5】 図4のステップS4のうちのはみ出し補正処
理を説明するための図である。
FIG. 5 is a diagram for explaining a protrusion correction process in step S4 of FIG. 4;

【図6】 極座標系を用いて定義した写像による画像変
形の処理の流れを示すフローチャートである。
FIG. 6 is a flowchart illustrating a flow of an image deformation process based on a mapping defined using a polar coordinate system.

【図7】 極座標表現により写像を定義した場合におい
て、変形の方向を所望の角度方向に偏らせるためのθに
対する関数のグラフの例を示す図である。
FIG. 7 is a diagram illustrating an example of a graph of a function with respect to θ for biasing the direction of deformation to a desired angle direction when a mapping is defined by a polar coordinate expression.

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

1…原画像入力装置、2…二次元スカラ場入力装置、3
…写像・パラメータ設定装置、4…ポリゴン生成装置、
5…テクスチャ座標割り当て装置、6…ポリゴン変形装
置、7…テクスチャマッピング装置、8…表示装置。
1. Original image input device 2. Two-dimensional scalar field input device 3.
... mapping / parameter setting device, 4 ... polygon generation device,
5: Texture coordinate assigning device, 6: Polygon deformation device, 7: Texture mapping device, 8: Display device.

Claims (3)

【特許請求の範囲】[Claims] 【請求項1】原画像に対応させて複数のポリゴンを生成
して、この生成した各ポリゴンに原画像をマッピングす
るためのテクスチャ座標を割り当てると共に、座標変換
を行うための写像を定義し、当該写像により前記生成し
たポリゴンの全ての頂点に対して座標変換を施すことに
よって前記生成したポリゴンを変形し、その変形した各
ポリゴンに対して前記割り当てられたテクスチャ座標に
基づいてテクスチャマッピングにより原画像の対応する
絵柄を貼り込むことによって原画像の変形を行うことを
特徴とする画像変形方法。
A plurality of polygons are generated in correspondence with an original image, texture coordinates for mapping the original image are assigned to each of the generated polygons, and a mapping for performing coordinate conversion is defined. The generated polygon is deformed by performing coordinate transformation on all vertices of the generated polygon by mapping, and the original image is transformed by texture mapping based on the assigned texture coordinates for each of the deformed polygons. An image deformation method, wherein an original image is deformed by pasting a corresponding picture.
【請求項2】原画像に対応させて複数のポリゴンを生成
するポリゴン生成手段と、 前記ポリゴン生成手段で生成された各ポリゴンに対し
て、原画像をマッピングするためのテクスチャ座標を割
り当てるテクスチャ座標割り当て手段と、 座標変換を行うための写像を定義するための設定手段
と、 前記ポリゴン生成手段で生成され、更に前記テクスチャ
座標割り当て手段によってテクスチャ座標が割り当てら
れたポリゴンの各頂点に対して、前記設定手段で定義さ
れた写像によって座標変換を施し、各ポリゴンを変形す
るポリゴン変形手段と、 前記ポリゴン変形手段によって変形された各ポリゴンに
対して、原画像、前記テクスチャ座標割り当て手段によ
って割り当てられたテクスチャ座標等に基づいて、テク
スチャマッピングにより原画像の対応する絵柄を貼り込
むことによって原画像の変形を行うテクスチャマッピン
グ手段とを備えることを特徴とする画像変形装置。
2. A polygon generating means for generating a plurality of polygons corresponding to an original image, and texture coordinate assignment for assigning texture coordinates for mapping the original image to each polygon generated by said polygon generating means. Means, setting means for defining a mapping for performing coordinate conversion, and setting for each vertex of the polygon generated by the polygon generating means and further assigned texture coordinates by the texture coordinate allocating means. Polygon transformation means for transforming each polygon by performing coordinate transformation according to the mapping defined by the means, and for each polygon transformed by the polygon transformation means, an original image and texture coordinates assigned by the texture coordinate assignment means. Of the original image by texture mapping An image transformation device comprising: a texture mapping unit for transforming an original image by pasting a corresponding picture.
【請求項3】前記テクスチャマッピング手段はテクスチ
ャマッピングを行うための専用のハードウェアで構成さ
れることを特徴とする請求項2記載の画像変形装置。
3. The image transformation apparatus according to claim 2, wherein said texture mapping means is constituted by dedicated hardware for performing texture mapping.
JP24813498A 1998-09-02 1998-09-02 Image deformation method and apparatus Expired - Fee Related JP4187078B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP24813498A JP4187078B2 (en) 1998-09-02 1998-09-02 Image deformation method and apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP24813498A JP4187078B2 (en) 1998-09-02 1998-09-02 Image deformation method and apparatus

Publications (2)

Publication Number Publication Date
JP2000076439A true JP2000076439A (en) 2000-03-14
JP4187078B2 JP4187078B2 (en) 2008-11-26

Family

ID=17173742

Family Applications (1)

Application Number Title Priority Date Filing Date
JP24813498A Expired - Fee Related JP4187078B2 (en) 1998-09-02 1998-09-02 Image deformation method and apparatus

Country Status (1)

Country Link
JP (1) JP4187078B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2014182638A (en) * 2013-03-19 2014-09-29 Canon Inc Display control unit, display control method and computer program

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2014182638A (en) * 2013-03-19 2014-09-29 Canon Inc Display control unit, display control method and computer program

Also Published As

Publication number Publication date
JP4187078B2 (en) 2008-11-26

Similar Documents

Publication Publication Date Title
JP4845147B2 (en) Perspective editing tool for 2D images
US6677944B1 (en) Three-dimensional image generating apparatus that creates a three-dimensional model from a two-dimensional image by image processing
KR100914846B1 (en) Method and system for texturing of 3d model in 2d environment
US6268846B1 (en) 3D graphics based on images and morphing
US6985148B2 (en) Interactive water effects using texture coordinate shifting
US7236178B2 (en) Dynamically adjusted brush for direct paint systems on parameterized multi-dimensional surfaces
JP4885196B2 (en) Generation of smooth feature lines on subdivision surfaces.
JP2000182038A (en) Method for generating perspective sizing data from distorted information, device to be used for this and computer program product
US6791569B1 (en) Antialiasing method using barycentric coordinates applied to lines
US4951230A (en) Method and apparatus for tiling an image
JP2837584B2 (en) How to create terrain data
US6650324B1 (en) Defining surface normals in a 3D surface mesh
JP2000076439A (en) Picture deforming method and its device
JP3090409B2 (en) Method and apparatus for designing three-dimensional shape using computer
CN110335335A (en) Uniform density cube for spherical projection renders
JPH11149566A (en) Three-dimensional cg plotting device for curved surface display
JP3807571B2 (en) Shape conversion method, recording medium on which program for executing the method is recorded, and shape conversion device
JPH09265548A (en) Method and device for generating pattern simulatively representing wrinkle, and printed matter having the same pattern
CN117274468A (en) Lens dirty spot simulation method, device, equipment and storage medium
JP4249340B2 (en) Data three-dimensional device and emboss shape simulation device
JP4076001B2 (en) Movie creation device
US6400369B1 (en) Information processing method and apparatus for generating texture-data for computer graphics
JPH04167077A (en) Deformation device for two-dimensional raster image
DE102022132137A1 (en) GENERATION OF A REACTIVE VIDEO SCREEN
JP2002352264A (en) Method and device for creating pattern image

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20050831

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20080611

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20080806

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: 20080903

A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20080903

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: 20110919

Year of fee payment: 3

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

Free format text: PAYMENT UNTIL: 20110919

Year of fee payment: 3

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

Free format text: PAYMENT UNTIL: 20120919

Year of fee payment: 4

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

Free format text: PAYMENT UNTIL: 20120919

Year of fee payment: 4

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

Free format text: PAYMENT UNTIL: 20130919

Year of fee payment: 5

LAPS Cancellation because of no payment of annual fees