JPH0746463A - Picture effect device - Google Patents

Picture effect device

Info

Publication number
JPH0746463A
JPH0746463A JP17581193A JP17581193A JPH0746463A JP H0746463 A JPH0746463 A JP H0746463A JP 17581193 A JP17581193 A JP 17581193A JP 17581193 A JP17581193 A JP 17581193A JP H0746463 A JPH0746463 A JP H0746463A
Authority
JP
Japan
Prior art keywords
coordinate
address space
image
logical address
viewpoint
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
JP17581193A
Other languages
Japanese (ja)
Other versions
JP2739808B2 (en
Inventor
Yoshitaka Kaneko
義孝 金子
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.)
NEC Corp
Original Assignee
NEC Corp
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 NEC Corp filed Critical NEC Corp
Priority to JP17581193A priority Critical patent/JP2739808B2/en
Publication of JPH0746463A publication Critical patent/JPH0746463A/en
Application granted granted Critical
Publication of JP2739808B2 publication Critical patent/JP2739808B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

  • Studio Circuits (AREA)

Abstract

PURPOSE:To generate a diversified 3-dimension special effect pictures when a visual point is changed in many ways without provision of a large number of functions. CONSTITUTION:An input picture D1 is sequentially written in a picture frame memory 2 and read depending on read addresses Ax, Ay generated by a read address generating circuit 1 to generate a diversified 3-dimensional special effect pictures D2. An X coordinate generating section 11 and a Y coordinate generating section 12 output a coordinate (x, y) of each picture element of an input picture. A distance calculation section 13 calculates a distance (d) between a straight line set optionally on the input picture and each picture element of the input picture. A Z coordinate setting section 14 sets a coordinate (z) to shift the input picture in the Z axis direction of a 3-dimension logic address space. A mapping processing section 15 observes a point P of a coordinate (x, y, z) from a visual point Q set to a 3-dimension logic address space and applies mapping processing to the space into a 2-dimension logic address space thereby generating the read addresses Ax, Ay.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は画像効果装置に関し、特
に3次元の特殊効果を与える画像効果装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an image effect device, and more particularly, to an image effect device which gives a three-dimensional special effect.

【0002】[0002]

【従来の技術】一般に画像効果装置では、画像データを
画像フレームメモリに順次書込んで記憶させ、この画像
フレームメモリに記憶させた画像データを読出しアドレ
スを制御して読出すことによって、種々の特殊効果画像
を生成している。従来の画像効果装置は、例えば、特公
平5−17747号公報によって開示されているよう
に、平面上に置かれた紙が円筒に沿って丸められるよう
な3次元の画像を生成する場合、丸める面を特定するた
めの直線と各画素との距離を計算し、所定の写像を行う
ための予め設定された関数に距離を入力して出力値を求
め、読出しアドレスを生成している。
2. Description of the Related Art Generally, in an image effect device, image data is sequentially written into an image frame memory to be stored therein, and the image data stored in the image frame memory is read out by controlling a read address so as to perform various special operations. The effect image is being generated. A conventional image effect device, for example, as disclosed in Japanese Examined Patent Publication No. 5-17747, when a paper placed on a plane is rolled along a cylinder, a three-dimensional image is rolled. A distance between a straight line for specifying a surface and each pixel is calculated, the distance is input to a preset function for performing a predetermined mapping, an output value is obtained, and a read address is generated.

【0003】[0003]

【発明が解決しようとする課題】しかし、上述した従来
の画像効果装置では、生成しようとする特殊効果画像に
応じて、読出しアドレスを生成するための写像を行う関
数を設定している。すなわち、紙が円筒に沿って丸めら
れるような3次元の画像を生成するためには、そのよう
な効果が得られる特定の関数が必要であり、この場合の
視点は限定されている。従って、種々に視点を変えた場
合の3次元の特殊効果画像を生成する場合には、写像を
行う関数を多数用意する必要があり、複雑化するという
問題点を有している。
However, in the above-mentioned conventional image effect apparatus, the function for performing the mapping for generating the read address is set according to the special effect image to be generated. That is, in order to generate a three-dimensional image in which the paper is rolled along a cylinder, a specific function that achieves such an effect is required, and the viewpoint in this case is limited. Therefore, in the case of generating a three-dimensional special effect image when the viewpoint is changed variously, it is necessary to prepare a large number of functions for mapping, which causes a problem of complication.

【0004】本発明の目的は、種々に視点を変えた場合
の多様な3次元の特殊効果画像を、多数の関数を用意す
ることなく生成できる画像効果装置を提供することにあ
る。
It is an object of the present invention to provide an image effect apparatus capable of generating various three-dimensional special effect images when the viewpoint is changed variously without preparing a large number of functions.

【0005】[0005]

【課題を解決するための手段】本発明の画像効果装置
は、入力画像を画像フレームメモリに記憶させ、読出し
アドレスに応じて読出すことにより特殊効果画像を生成
する画像効果装置において、X,Y,Z軸を有する3次
元論理アドレス空間のX,Y平面に前記入力画像を設定
したときの各画素のX,Y軸の座標(x,y)を出力す
るX,Y座標発生部と、前記入力画像上に任意に設定す
る直線の係数を出力する直線係数発生部と、前記直線の
係数によって前記入力画像上に設定される直線と前記入
力画像の各画素との距離dを計算する距離計算部と、前
記3次元論理アドレス空間のZ軸方向に前記各画素を変
位させる座標値zを設定するZ座標値設定部と、前記3
次元論理アドレス空間に任意に設定する視点の座標を出
力する視点座標発生部と、前記X,Y座標発生部の出力
および前記Z座標値設定部の出力によって示される前記
3次元論理アドレス空間の座標(x,y,z)の点を、
前記視点の座標が示す視点から観察し、2次元論理アド
レス空間に写像処理して前記読出しアドレスを生成する
写像処理部とを備える。また、前記Z座標値設定部は、
前記距離dを変数とする予め設定された関数に基づき前
記座標値zを算出するように構成する。
The image effect device of the present invention is an image effect device for generating a special effect image by storing an input image in an image frame memory and reading it according to a read address. An X, Y coordinate generator for outputting the coordinates (x, y) of the X and Y axes of each pixel when the input image is set on the X, Y plane of the three-dimensional logical address space having the Z and Z axes. A straight line coefficient generation unit that outputs a coefficient of a straight line that is arbitrarily set on the input image, and a distance calculation that calculates a distance d between the straight line set on the input image and each pixel of the input image by the straight line coefficient And a Z coordinate value setting unit that sets a coordinate value z for displacing each pixel in the Z axis direction of the three-dimensional logical address space.
A viewpoint coordinate generation unit for outputting coordinates of a viewpoint arbitrarily set in the dimensional logical address space, and coordinates of the three-dimensional logical address space indicated by outputs of the X and Y coordinate generation units and outputs of the Z coordinate value setting unit. The point (x, y, z) is
A mapping processing unit for observing from the viewpoint indicated by the coordinates of the viewpoint and mapping processing in a two-dimensional logical address space to generate the read address. Further, the Z coordinate value setting unit is
The coordinate value z is calculated based on a preset function having the distance d as a variable.

【0006】[0006]

【実施例】次に本発明について図面を参照して説明す
る。
The present invention will be described below with reference to the drawings.

【0007】図1は本発明の一実施例を示すブロック図
である。入力画像D1を画像フレームメモリ2に順次書
込み、読出しアドレス生成回路1が生成する読出しアド
レスAx,Ayに応じて読出すことにより、多様な3次
元の特殊効果画像D2を生成する。
FIG. 1 is a block diagram showing an embodiment of the present invention. The input image D1 is sequentially written in the image frame memory 2 and read in accordance with the read addresses Ax and Ay generated by the read address generation circuit 1 to generate various three-dimensional special effect images D2.

【0008】ここで、読出しアドレス生成回路1は、入
力画像D1の各画素の座標(x,y)を出力するX座標
発生部11およびY座標発生部12と、入力画像上に任
意に設定する直線の係数を出力する直線係数発生部16
と、入力画像上に設定した直線と各画素との距離dを計
算する距離計算部13と、入力画像を3次元論理アドレ
ス空間のZ軸方向に変位させる座標値zを設定するZ座
標値設定部14と、3次元論理アドレス空間に任意に設
定する視点の座標を出力する視点座標発生部17と、3
次元論理アドレス空間に設定される視点から座標(x,
y,z)の点を観察し、2次元論理アドレス空間に写像
処理して読出しアドレスAx,Ayを生成する写像処理
部15とを備えている。
Here, the read address generating circuit 1 arbitrarily sets on the input image an X coordinate generating section 11 and a Y coordinate generating section 12 for outputting the coordinates (x, y) of each pixel of the input image D1. Linear coefficient generator 16 for outputting linear coefficients
And a distance calculation unit 13 that calculates a distance d between each pixel and a straight line set on the input image, and a Z coordinate value setting that sets a coordinate value z that displaces the input image in the Z axis direction of the three-dimensional logical address space. And a viewpoint coordinate generation unit 17 for outputting coordinates of a viewpoint arbitrarily set in the three-dimensional logical address space.
From the viewpoint set in the dimensional logical address space, coordinates (x,
and a mapping processor 15 for observing points (y, z) and mapping processing in a two-dimensional logical address space to generate read addresses Ax, Ay.

【0009】次に一具体例により動作を説明する。Next, the operation will be described with reference to a specific example.

【0010】X,Y,Z軸からなる3次元論理アドレス
空間を想定し、X,Y軸平面上に入力画像を設定する。
距離計算部13は、図2に示すように、入力画像の各画
素と入力画像上に設定される任意の直線L:aX+bY
+c=0との距離dを計算する。ここでは、各画素の座
標(x,y)から直線Lまでの最短距離を計算する。例
えば、画素P1,P2,P3に対する距離はd1,d
2,d3である。なお、直線Lの係数a,b,cは直線
係数発生部16が生成し、この直線Lは特殊効果画像の
基準線となる。
Assuming a three-dimensional logical address space consisting of X, Y and Z axes, an input image is set on the X and Y axis plane.
As shown in FIG. 2, the distance calculation unit 13 causes each pixel of the input image and an arbitrary straight line L: aX + bY set on the input image.
Calculate the distance d with + c = 0. Here, the shortest distance from the coordinates (x, y) of each pixel to the straight line L is calculated. For example, the distances to the pixels P1, P2, P3 are d1, d
2, d3. The coefficients a, b, and c of the straight line L are generated by the straight line coefficient generating unit 16, and the straight line L serves as a reference line of the special effect image.

【0011】Z座標値設定部14は、距離計算部13が
出力する距離dに応じて、入力画像の画素を3次元論理
アドレス空間のZ軸方向に変位させるための座標値zを
設定する。この場合、距離dを変数とする関数z=f
(d)によりzの値を算出する。
The Z coordinate value setting unit 14 sets the coordinate value z for displacing the pixel of the input image in the Z axis direction of the three-dimensional logical address space according to the distance d output by the distance calculation unit 13. In this case, the function z = f with the distance d as a variable
The value of z is calculated from (d).

【0012】この関数を、例えば、z=h+h・cos
(d) (但し、hは定数)とした場合、dを横軸とし
zを縦軸としてグラフで表わせば、図3に示すようにな
る。従って、X,Y,Z軸からなる3次元論理アドレス
空間に座標(x,y,z)の点を表示すれば、図4に示
すように、直線Lからの距離に応じてZ軸方向に上下に
変動する波状の画像面となる。この波状画像面の座標
(x,y,z)が写像処理部15に入力される。なお、
関数z=f(d)を種々用意しておくことにより、種々
の形状に画像面を変化させることができる。
This function is calculated by, for example, z = h + h.cos
When (d) (where h is a constant) is plotted in a graph with d as the horizontal axis and z as the vertical axis, the result is as shown in FIG. Therefore, if the point of coordinates (x, y, z) is displayed in the three-dimensional logical address space consisting of the X, Y, and Z axes, as shown in FIG. 4, in the Z axis direction according to the distance from the straight line L. It becomes a wavy image surface that fluctuates up and down. The coordinates (x, y, z) of this wavy image plane are input to the mapping processing unit 15. In addition,
By preparing various functions z = f (d), the image surface can be changed into various shapes.

【0013】写像処理部15は、3次元論理アドレス空
間に設定される視点Qの座標データ(Xq,Yq,Z
q)を視点座標発生部17から受け、図4に示した視点
Q(Xq,Yq,Zq)から画像面上の点P(x,y,
z)を観察して2次元論理アドレス空間に写像し、読出
しアドレスAx,Ayを出力する。この読出しアドレス
Ax,Ayにより画像フレームメモリ2から画像データ
を読出す。ここで、視点Qの座標データ(Xq,Yq,
Zq)を変化させることにより、種々に視点を変えた場
合の3次元の特殊効果画像を生成できる。なお、このよ
うな写像処理は、コンピュータグラフイックス等で周知
の演算処理により実行できる。
The mapping processor 15 coordinates data (Xq, Yq, Z) of the viewpoint Q set in the three-dimensional logical address space.
q) from the viewpoint coordinate generation unit 17, and from the viewpoint Q (Xq, Yq, Zq) shown in FIG. 4, a point P (x, y,
z) is observed and mapped into a two-dimensional logical address space, and read addresses Ax and Ay are output. Image data is read from the image frame memory 2 by the read addresses Ax and Ay. Here, the coordinate data (Xq, Yq,
By changing Zq), it is possible to generate a three-dimensional special effect image when the viewpoint is variously changed. Note that such mapping processing can be executed by well-known arithmetic processing such as computer graphics.

【0014】[0014]

【発明の効果】以上説明したように本発明によれば、
X,Y,Z軸からなる3次元論理アドレス空間を想定
し、X,Y軸平面上に入力画像を設定し、入力画像の各
画素の座標(x,y)と入力画像上に任意に設定する直
線との距離dを計算し、この距離dに応じて各画素をZ
軸方向に変位させる座標値zを設定し、任意に指定され
る視点から座標(x,y,z)を観察して2次元論理ア
ドレス空間に写像処理し、読出しアドレスを生成するこ
とにより、種々に視点を変えた場合の多様な3次元の特
殊効果画像を、多数の関数を用意することなく生成でき
る。
As described above, according to the present invention,
Assuming a three-dimensional logical address space consisting of X, Y, and Z axes, the input image is set on the X, Y axis plane, and the coordinates (x, y) of each pixel of the input image and the input image are arbitrarily set. The distance d from the straight line is calculated, and each pixel is Z-scaled according to this distance d.
By setting the coordinate value z to be displaced in the axial direction, observing the coordinates (x, y, z) from an arbitrarily designated viewpoint, performing mapping processing in the two-dimensional logical address space, and generating a read address, various Various three-dimensional special effect images when changing the viewpoint can be generated without preparing a large number of functions.

【0015】また、距離dを変数とする関数を使用して
座標値zを設定するようにしておけば、この関数を種々
用意しておくことにより、種々の形状の特殊効果画像を
容易に生成できる。
If the coordinate value z is set using a function having the distance d as a variable, various special effects images can be easily generated by preparing various functions. it can.

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

【図1】本発明の一実施例を示すブロック図である。FIG. 1 is a block diagram showing an embodiment of the present invention.

【図2】図1に示した距離計算部13が算出する直線L
と画素との距離dを示す図である。
2 is a straight line L calculated by a distance calculation unit 13 shown in FIG.
It is a figure which shows the distance d between a pixel and a pixel.

【図3】図1に示したZ座標値設定部14が座標値zを
算出する関数の一例を示す図である。
3 is a diagram showing an example of a function for a Z coordinate value setting unit 14 shown in FIG. 1 to calculate a coordinate value z.

【図4】図1に示した写像処理部15において設定され
る3次元論理アドレス空間の画像面上の点Pおよび視点
Qの一例を示す図である。
4 is a diagram showing an example of a point P and a viewpoint Q on the image plane of a three-dimensional logical address space set in the mapping processing section 15 shown in FIG.

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

1 読出しアドレス生成回路 2 画像フレームメモリ 11 X座標発生部 12 Y座標発生部 13 距離計算部 14 Z座標値設定部 15 写像処理部 16 直線係数発生部 17 視点座標発生部 Ax,Ay 読出しアドレス 1 Read Address Generation Circuit 2 Image Frame Memory 11 X Coordinate Generation Section 12 Y Coordinate Generation Section 13 Distance Calculation Section 14 Z Coordinate Value Setting Section 15 Mapping Processing Section 16 Linear Coefficient Generation Section 17 View Point Coordinate Generation Section Ax, Ay Read Address

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】 入力画像を画像フレームメモリに記憶さ
せ、読出しアドレスに応じて読出すことにより特殊効果
画像を生成する画像効果装置において、 X,Y,Z軸を有する3次元論理アドレス空間のX,Y
平面に前記入力画像を設定したときの各画素のX,Y軸
の座標(x,y)を出力するX,Y座標発生部と、 前記入力画像上に任意に設定する直線の係数を出力する
直線係数発生部と、 前記直線の係数によって前記入力画像上に設定される直
線と前記入力画像の各画素との距離dを計算する距離計
算部と、 前記3次元論理アドレス空間のZ軸方向に前記各画素を
変位させる座標値zを設定するZ座標値設定部と、 前記3次元論理アドレス空間に任意に設定する視点の座
標を出力する視点座標発生部と、 前記X,Y座標発生部の出力および前記Z座標値設定部
の出力によって示される前記3次元論理アドレス空間の
座標(x,y,z)の点を、前記視点の座標が示す視点
から観察し、2次元論理アドレス空間に写像処理して前
記読出しアドレスを生成する写像処理部とを備えること
を特徴とする画像効果装置。
1. An image effect device for generating a special effect image by storing an input image in an image frame memory and reading it according to a read address, wherein X of a three-dimensional logical address space having X, Y and Z axes. , Y
An X, Y coordinate generation unit that outputs the coordinates (x, y) of the X and Y axes of each pixel when the input image is set on a plane, and a linear coefficient that is arbitrarily set on the input image are output. A straight line coefficient generation unit, a distance calculation unit that calculates a distance d between a straight line set on the input image and each pixel of the input image according to the coefficient of the straight line, and in the Z-axis direction of the three-dimensional logical address space. A Z coordinate value setting unit that sets a coordinate value z for displacing each pixel, a viewpoint coordinate generation unit that outputs the coordinates of a viewpoint that is arbitrarily set in the three-dimensional logical address space, and an X, Y coordinate generation unit. The point of coordinates (x, y, z) in the three-dimensional logical address space indicated by the output and the output of the Z coordinate value setting unit is observed from the viewpoint indicated by the coordinates of the viewpoint, and mapped to the two-dimensional logical address space. The read address is processed. Image effect device, characterized in that it comprises a mapping unit for generating a.
【請求項2】前記Z座標値設定部は、前記距離dを変数
とする予め設定された関数に基づき前記座標値zを算出
することを特徴とする請求項1記載の画像効果装置。
2. The image effect apparatus according to claim 1, wherein the Z coordinate value setting unit calculates the coordinate value z based on a preset function having the distance d as a variable.
JP17581193A 1993-07-16 1993-07-16 Image effect device Expired - Lifetime JP2739808B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP17581193A JP2739808B2 (en) 1993-07-16 1993-07-16 Image effect device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP17581193A JP2739808B2 (en) 1993-07-16 1993-07-16 Image effect device

Publications (2)

Publication Number Publication Date
JPH0746463A true JPH0746463A (en) 1995-02-14
JP2739808B2 JP2739808B2 (en) 1998-04-15

Family

ID=16002652

Family Applications (1)

Application Number Title Priority Date Filing Date
JP17581193A Expired - Lifetime JP2739808B2 (en) 1993-07-16 1993-07-16 Image effect device

Country Status (1)

Country Link
JP (1) JP2739808B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO1997018667A1 (en) * 1995-11-14 1997-05-22 Sony Corporation Special effect device, image processing method, and shadow generating method

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO1997018667A1 (en) * 1995-11-14 1997-05-22 Sony Corporation Special effect device, image processing method, and shadow generating method
US6014472A (en) * 1995-11-14 2000-01-11 Sony Corporation Special effect device, image processing method, and shadow generating method

Also Published As

Publication number Publication date
JP2739808B2 (en) 1998-04-15

Similar Documents

Publication Publication Date Title
JPS6295666A (en) Picture generating device
US5877769A (en) Image processing apparatus and method
KR950024108A (en) Texture mapping method and device
JPH0916806A (en) Stereoscopic image processor
JP2006503365A (en) Method and system for generating a pseudo 3D display using a 2D display device
US6219062B1 (en) Three-dimensional graphic display device
JPS6324289A (en) Video signal processor
JP2008117113A (en) Image forming device and method, and image forming program
EP1026636A2 (en) Image processing
EP0535879B1 (en) Image processing apparatus and method
US6373494B1 (en) Signal processing apparatus and image processing apparatus
JP3903557B2 (en) Data conversion apparatus and image generation apparatus
JPH0746463A (en) Picture effect device
JPH01131976A (en) Device and method for texture mapping
JP3979162B2 (en) Image processing apparatus and method
US6518969B2 (en) Three dimensional graphics drawing apparatus for drawing polygons by adding an offset value to vertex data and method thereof
JPH1139507A (en) Stereoscopic image display device
JP3741053B2 (en) Image processing device
KR100252649B1 (en) 3d graphic controller
JP4042204B2 (en) Graphic operation apparatus and method
JPH05298456A (en) Texture mapping system
JP3312560B2 (en) Texture mapping device
JPH0251789A (en) Shadow adding device for solid representation image
JPH0816822A (en) Three-dimensional moving picture generation method
EP0707420A1 (en) 3D special effects system

Legal Events

Date Code Title Description
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 19971224

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

Free format text: PAYMENT UNTIL: 20080123

Year of fee payment: 10

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

Free format text: PAYMENT UNTIL: 20090123

Year of fee payment: 11

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

Free format text: PAYMENT UNTIL: 20100123

Year of fee payment: 12

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

Free format text: PAYMENT UNTIL: 20110123

Year of fee payment: 13

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

Free format text: PAYMENT UNTIL: 20110123

Year of fee payment: 13

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

Free format text: PAYMENT UNTIL: 20120123

Year of fee payment: 14

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

Free format text: PAYMENT UNTIL: 20130123

Year of fee payment: 15

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

Free format text: PAYMENT UNTIL: 20130123

Year of fee payment: 15

EXPY Cancellation because of completion of term