JP4777181B2 - Image special effect device, image special effect method - Google Patents
Image special effect device, image special effect method Download PDFInfo
- Publication number
- JP4777181B2 JP4777181B2 JP2006210103A JP2006210103A JP4777181B2 JP 4777181 B2 JP4777181 B2 JP 4777181B2 JP 2006210103 A JP2006210103 A JP 2006210103A JP 2006210103 A JP2006210103 A JP 2006210103A JP 4777181 B2 JP4777181 B2 JP 4777181B2
- Authority
- JP
- Japan
- Prior art keywords
- normal vector
- special effect
- image special
- cosine value
- calculation unit
- 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 - Fee Related
Links
Images
Landscapes
- Processing Or Creating Images (AREA)
- Image Generation (AREA)
Description
本発明は、映像製作等に用いる画像特殊効果装置、画像特殊効果方法に関し、特に、光源と視点の関係を考慮した照明処理を行い、写実的な特殊効果をリアルタイムに表現し、多種類の特殊効果画像に対応できる装置の単純化かつ小型化を図るものである。 The present invention relates to an image special effect device and an image special effect method used for video production and the like, and in particular, performs illumination processing in consideration of the relationship between a light source and a viewpoint, expresses a real special effect in real time, and a variety of special effects. It is intended to simplify and miniaturize an apparatus that can deal with effect images.
従来の画像特殊効果装置は、図10に示すように、フレームメモリ102と、シーケンシャルなライトアドレス105から画像特殊効果用リードアドレス108を演算するリードアドレス演算部109とを備えている。図10は従来の画像特殊効果装置のブロック図である。
As shown in FIG. 10, the conventional image special effect device includes a
シーケンシャルなライトアドレス105でフレームメモリ102に順次書き込んだ入力画像101を、画像特殊効果用リードアドレス演算部109で演算した画像特殊効果用リードアドレス108でフレームメモリ102から出力画像103を読み出すことにより、ページめくり効果、ボール効果等の各種ビデオエフェクトを画像に施している。
By reading the
従来の画像特殊効果装置における、ページめくり効果を実現するときの表示画面水平方向の読み出しアドレスの計算方法は、図11に示すように、シーケンシャルな表示画面水平方向X13上の書き込みアドレスxから、下面平面部15、下面曲面部16、上面曲面部11、上面平面部12ごとに、次式のように示されるXeffectを計算する。また図11中のZ14は視点方向14(z軸)、R2は効果半径2(r)、θz40は視点方向Z14と法線ベクトルのなす角度を示している。図11は従来の画像特殊効果装置における水平方向座標計算仕様を説明するための図である。
In the conventional image special effect device, the method for calculating the display screen horizontal direction address when realizing the page turning effect is as shown in FIG. 11, starting from the write address x on the sequential display screen horizontal direction X13. For each of the
(下面平面部15)Xeffect = x
(下面曲面部16)Xeffect = rθz = r×arcsin ( x / r )
(上面曲面部11)Xeffect = πr / 2 - rθz = πr / 2 - r×arcsin ( x / r )
(上面平面部12)Xeffect = πr / 2 − x
(Lower plane part 15) Xeffect = x
(Lower curved surface portion 16) Xeffect = rθz = r × arcsin (x / r)
(Upper curved surface portion 11) Xeffect = πr / 2−rθz = πr / 2−r × arcsin (x / r)
(Top Plane 12) Xeffect = πr / 2−x
表示画面垂直方向の読み出しアドレス計算方法は、図12に示すように、シーケンシャルな表示画面上垂直方向Y22上の書き込みアドレスyから、下面平面部15、下面曲面部16、上面曲面部11、上面平面部12ごとに、次式のように示されるYeffectを計算する。また、図12中のA31は上面移動量を示す。図12は従来の画像特殊効果装置における垂直方向座標計算仕様を説明するための図である。
As shown in FIG. 12, the readout address calculation method in the display screen vertical direction starts from the write address y in the vertical direction Y22 on the sequential display screen, and the lower
尚、Xeffectは、直交座標のシーケンシャルな表示画面水平方向データから、ページめくり効果、ボール効果などの各種ビデオエフェクトを生成するための表示画面水平方向データであり、ページめくり水平方向座標計算の結果である。また、Yeffectは、直交座標のシーケンシャルな表示画面垂直方向データから、ページめくり効果、ボール効果などの各種ビデオエフェクトを生成するための表示画面垂直方向データであり、ページめくり垂直方向座標計算の結果である。Xeffect、Yeffectは、画像特殊効果用リードアドレス108に変換される。
Xeffect is display screen horizontal direction data for generating various video effects such as page turning effect and ball effect from the horizontal display screen horizontal direction data of Cartesian coordinates. is there. Yeffect is display screen vertical direction data for generating various video effects such as page turning effect and ball effect from sequential display screen vertical direction data of Cartesian coordinates. is there. Xeffect and Yeffect are converted into an image special effect read
また、得られた特殊効果画像に対して照明効果を与えるため、あらかじめ定められた複数の効果面の形状に対応する複数の照明パターンが記憶されたテーブル値を混合することにより、さまざまな形状の効果面に対する照明効果を得られる装置が知られている(例えば、特許文献1参照)。 Further, in order to give a lighting effect to the obtained special effect image, by mixing table values stored with a plurality of illumination patterns corresponding to a plurality of predetermined effect surface shapes, various shapes can be obtained. An apparatus capable of obtaining an illumination effect on an effect surface is known (for example, see Patent Document 1).
また、一般的に、鏡面反射の照明効果を実現する場合の計算方法は、光源ベクトルをL、効果面の法線ベクトルをNとすると、反射ベクトルRは、効果面の形状にかかわらず、
R=2(L・N)N−L・・・・数式1
である。
R = 2 (L · N) N−L · ··
It is.
しかし、上述した従来の特殊効果装置では、さまざまな照明パターンをあらかじめ定めることと、効果面に応じた最適な照明パターンの組み合わせを決めなくてはならない煩わしさがある。さらに、新規に特殊効果機能を追加した場合、実装済みの照明パターンでは最適な組み合わせが見つからない場合もある。 However, the above-described conventional special effect device has the inconvenience of determining various illumination patterns in advance and determining the optimal combination of illumination patterns according to the effect surface. Furthermore, when a special effect function is newly added, an optimal combination may not be found with the mounted illumination pattern.
乗算器を多く搭載するFPGA(Field Programmable Gate Array)では、さまざまな効果面への照明効果に対応可能な数式1の計算回路を実装することは容易である。 In a Field Programmable Gate Array (FPGA) equipped with many multipliers, it is easy to implement the calculation circuit of Formula 1 that can deal with lighting effects on various effect surfaces.
図13に、表示画面上、右から左にページをめくる効果の場合の法線ベクトルの計算式を示す。図13は従来の画像特殊効果装置における法線ベクトルを示した図である。図13から、下面平面部15、下面曲面部16、上面曲面部12、上面平面部11の法線ベクトルは次式のように表される。
FIG. 13 shows a normal vector calculation formula in the case of the effect of turning pages from right to left on the display screen. FIG. 13 is a diagram showing normal vectors in a conventional image special effect device. From FIG. 13, the normal vectors of the
この場合、図14に示すように、法線ベクトルの表示画面水平方向成分6が上面平面部12と上面曲面部11の接続部分の変化量が不連続になり、法線ベクトルの表示画面水平方向成分6が下面平面部15と下面曲面部16の接続部分の変化量が不連続になる。その結果、数式1から得られる照明効果も平面部と曲面部のつなぎ目で不連続となり、不自然な照明効果となってしまうという事情がある。
In this case, as shown in FIG. 14, the normal vector display screen
例えば、上面平面部12の上面法線ベクトル水平方向成分6は0であるが、上面曲面部11の上面法線ベクトル水平方向成分6は、x / r ( sinθz) である。また、下面平面部15の下面法線ベクトル水平方向成分17は0であるが、下面曲面部16の下面法線ベクトル水平方向成分17は、−x / r ( −sinθz) である。図14は従来の画像特殊効果装置における表示画面水平方向成分法線ベクトル特性を示した図である。
For example, the upper surface normal vector
本発明は、上記事情を鑑みてなされたものであって、自然な照明効果を実現し、かつ、小型化できる画像特殊効果装置、画像特殊効果方法を提供することを目的としている。 The present invention has been made in view of the above circumstances, and an object thereof is to provide an image special effect device and an image special effect method that can realize a natural lighting effect and can be downsized.
上記目的を達成するために、本発明の第1の画像特殊効果装置は、入力された画像に関する画像情報には平面および曲面を有する面において任意の視点から見た場合の光源からの光による照明効果が付加され、前記面に前記画像情報をマッピングさせて得られる映像信号を出力する画像特殊効果装置であって、前記視点の方向のベクトルを示す視点方向ベクトルと、前記面の水平方向座標および垂直方向座標の位置ならびに前記面の形状に基づいた前記面の位置における法線ベクトルとのなす角度の余弦値を算出する余弦値計算部と、前記余弦値を視点方向の成分、前記角度の(1−余弦値)または(−1+余弦値)を前記水平方向座標の成分とするベクトルを計算用法線ベクトルとして算出する法線ベクトル計算部と、前記計算用法線ベクトルに基づいて、前記照明効果を算出する照明効果計算部とを有する構成としている。 In order to achieve the above object, the first image special effect device according to the present invention is configured to illuminate with light from a light source when viewed from an arbitrary viewpoint on a plane having a plane and a curved surface for image information relating to an input image. An image special effect device to which an effect is added and outputs a video signal obtained by mapping the image information on the surface, comprising a viewpoint direction vector indicating a vector of the viewpoint direction, a horizontal coordinate of the surface, and A cosine value calculation unit that calculates a cosine value of an angle formed with a normal vector at the position of the surface based on the position of the vertical coordinate and the shape of the surface; the cosine value as a component in the viewpoint direction; 1−cosine value) or (−1 + cosine value) as a normal vector vector for calculating a vector having the horizontal coordinate component as a calculation normal vector, and the calculation normal vector And a lighting effect calculation unit for calculating the lighting effect based on the light.
この構成により、自然な照明効果を実現し、かつ、装置を小型化できる。例えば、ページめくりの平面部と曲面部の接続部分の法線ベクトルのうち、水平方向成分の変化量を、視点方向成分の計算結果から求めることで、大規模な新規計算回路を追加しなくても、連続とすることができるため、自然な照明効果を実現しつつ、装置を小型化することができる。 With this configuration, a natural lighting effect can be realized and the apparatus can be downsized. For example, it is necessary to add a large-scale new calculation circuit by calculating the amount of change in the horizontal direction component based on the calculation result of the viewpoint direction component from the normal vector of the connecting portion between the page turning plane part and the curved surface part. However, since it can be made continuous, the apparatus can be miniaturized while realizing a natural lighting effect.
また、本発明の第2の画像特殊効果装置は、前記法線ベクトル計算部が、前記形状が上面および下面を有するページめくりの形状である場合、前記余弦値計算部によって計算された余弦値、前記垂直方向座標の位置、および前記上面および下面の前記垂直方向の位置ずれ量に基づく上面移動量に基づいて、前記計算用法線ベクトルの前記垂直方向座標の成分を算出する構成としている。 Further, in the second image special effect device of the present invention, when the normal vector calculation unit is a page turning shape having the upper surface and the lower surface, the cosine value calculated by the cosine value calculation unit, The vertical coordinate component of the calculation normal vector is calculated based on the vertical coordinate position and the upper surface movement amount based on the vertical displacement amount of the upper surface and the lower surface.
この構成により、法線ベクトル計算用に計算済みの余弦値をページめくりの垂直座標方向の計算に用いることで、右から左にページをめくる形状変化にて上面と下面が重なることがなく、大規模な新規計算回路を追加しなくても、自然なページめくり効果が得られつつ、装置を小型化することができる。 With this configuration, the cosine value calculated for normal vector calculation is used for the calculation of the page turning vertical coordinate direction, so that the top and bottom surfaces do not overlap with each other when the page turns from right to left. Even without adding a large-scale new calculation circuit, it is possible to reduce the size of the apparatus while obtaining a natural page turning effect.
また、本発明の第3の画像特殊効果装置は、前記視点方向ベクトルと前記法線ベクトルとのなす角度の正弦値を算出する正弦値計算部と、前記正弦値計算部によって算出される正弦値および前記法線ベクトル計算部によって算出される前記角度の(1−余弦値)、(−1+余弦値)のうちのいずれかを、前記照明効果計算部による照明効果の算出に利用する前記計算用法線ベクトルの前記水平方向座標の成分として選択する選択部と、を有する構成としている。 The third image special effect device according to the present invention includes a sine value calculation unit that calculates a sine value of an angle formed by the viewpoint direction vector and the normal vector, and a sine value calculated by the sine value calculation unit. And (1−cosine value) and (−1 + cosine value) of the angle calculated by the normal vector calculation unit, the calculation method for using the lighting effect calculation unit to calculate a lighting effect. And a selection unit that selects as a component of the horizontal coordinate of the line vector.
この構成により、水平方向成分法線ベクトルを切り替えて出力できることで、大規模な新規計算回路を追加せずに、ページめくり効果以外にも、ボール効果用の汎用的な照明効果を計算でき、装置を小型化することができる。 With this configuration, the horizontal component normal vector can be switched and output, so that a general lighting effect for the ball effect can be calculated in addition to the page turning effect without adding a large-scale new calculation circuit. Can be miniaturized.
また、本発明の第1の画像特殊効果方法は、画像特殊効果装置を用いて、入力された画像に関する画像情報には平面および曲面を有する面において任意の視点から見た場合の光源からの光による照明効果を付加し、前記面に前記画像情報をマッピングさせて得られる映像信号を出力する画像特殊効果方法であって、前記画像特殊効果装置が備える余弦値計算部が、前記視点の方向のベクトルを示す視点方向ベクトルと、前記面の水平方向座標および垂直方向座標の位置ならびに前記面の形状に基づいた前記面の位置における法線ベクトルとのなす角度の余弦値を算出する余弦値計算ステップと、前記画像特殊効果装置が備える法線ベクトル計算部が、前記余弦値を視点方向の成分、前記角度の(1−余弦値)または(−1+余弦値)を前記水平方向座標の成分とするベクトルを計算用法線ベクトルとして算出する法線ベクトル計算ステップと、前記画像特殊効果装置が備える照明効果計算部が、前記計算用法線ベクトルに基づいて、前記照明効果を算出する照明効果計算ステップと、を有する方法としている。 The first image special effect method of the present invention uses an image special effect device, and the image information relating to the input image includes light from a light source when viewed from an arbitrary viewpoint on a plane having a plane and a curved surface. adds lighting effect, an the image information by mapping image special effect how to output a video signal obtained on the surface, the cosine value calculation unit to the image special effect apparatus is provided, the direction of the viewpoint Cosine value calculation for calculating the cosine value of the angle formed by the viewpoint direction vector indicating the vector of the surface, the position of the horizontal coordinate and the vertical coordinate of the surface, and the normal vector at the surface position based on the shape of the surface And a normal vector calculation unit included in the image special effect device, wherein the cosine value is a component in a viewing direction, and (1−cosine value) or (−1 + cosine value) of the angle is the horizontal A normal vector calculating step of calculating a vector with component in the direction coordinate as a calculation usage normal vector, lighting effects calculator the image special effect apparatus is provided, based on the calculated usage normal vector, and calculates the lighting effects And a lighting effect calculation step .
この方法により、自然な照明効果を実現し、かつ、装置を小型化できる。例えば、ページめくりの平面部と曲面部の接続部分の法線ベクトルのうち、水平方向成分の変化量を、視点方向成分の計算結果から求めることで、大規模な新規計算回路を追加しなくても、連続とすることができるため、自然な照明効果を実現しつつ、装置を小型化することができる。 By this method, a natural lighting effect can be realized and the apparatus can be miniaturized. For example, it is necessary to add a large-scale new calculation circuit by calculating the amount of change in the horizontal direction component based on the calculation result of the viewpoint direction component from the normal vector of the connecting portion between the page turning plane part and curved surface part. However, since it can be made continuous, the apparatus can be miniaturized while realizing a natural lighting effect.
本発明は、例えばページめくりのような平面と曲面をつなぐ効果面を有する画像特殊効果でも、(1−余弦値)、または(余弦値−1)から計算した表示画面平面成分の法線ベクトルによって、平面と曲面の接続部分が滑らかで、数式1の単純な計算によって自然な照明効果を実現でき、かつ、装置を小型化できる。また、自然で滑らかなシェーディング効果も同様に実現可能である。
In the present invention, even for an image special effect having an effect surface connecting a plane and a curved surface such as page turning, the normal vector of the plane component of the display screen calculated from (1 cosine value) or (cosine value −1). The connecting portion between the flat surface and the curved surface is smooth, a natural lighting effect can be realized by the simple calculation of
また、本発明の画像特殊効果装置は、例えば右から左、または左から右、または上から下、または下から上にページをめくるような形状に変化させ、ページめくり形状の上面、下面が重ならないように、照明処理で計算した(1−余弦値)、(余弦値−1)の計算結果を再利用して定数を乗算し、上面位置を移動することで、上面と下面が重ならないページめくり効果を実現でき、かつ、装置を小型化できる。 In addition, the image special effect device of the present invention changes the shape to turn the page, for example, from right to left, from left to right, from top to bottom, or from bottom to top, and the top and bottom surfaces of the page turning shape overlap. The page where the upper surface and the lower surface do not overlap by reusing the calculation result of (1-cosine value) and (cosine value-1) calculated by lighting processing and multiplying the constant by moving the upper surface position The turning effect can be realized and the apparatus can be miniaturized.
また、本発明の画像特殊効果装置は、(1−余弦値)もしくは(余弦値−1)を正弦値に切り替えることで、通常の法線ベクトルを算出でき、様々な画像特殊効果の照明効果に広く対応できる。 The image special effect device of the present invention can calculate a normal normal vector by switching (1-cosine value) or (cosine value-1) to a sine value. Widely applicable.
以下、本発明の実施形態の画像特殊効果装置について、図面を用いて説明する。 Hereinafter, an image special effect device according to an embodiment of the present invention will be described with reference to the drawings.
(第1の実施形態)
まず、ページめくり効果における上面の照明効果に関して説明する。
図1は本発明の第1の実施形態における画像特殊効果装置100の構成を示す図である。画像特殊効果装置100は、余弦値計算部4および法線ベクトル計算部7を有する。余弦値計算部4は、水平方向座標1(x)(図1中のX1)および効果半径2(r)(図1中のR2)を入力し、
First, the illumination effect on the upper surface in the page turning effect will be described.
FIG. 1 is a diagram showing a configuration of an image
ここで、ページめくり効果における上面の照明効果を実現するための法線ベクトルの水平方向成分6をn_vector_x,法線ベクトルの視点方向成分5をn_vector_zとすると、法線ベクトルN=(n_vector_x,0,n_vecotor_z)となる。法線ベクトル計算部7は、n_vector_zとして、入力値と同様の余弦値計算部4による計算である余弦値3(cosθz)を出力する。また、n_vector_xに関しては、法線ベクトル計算部7はn_vector_zの計算結果を利用して、n_vector_x = 1 - cosθzとして計算する。
Here, assuming that the
このとき上面曲面部11の法線ベクトルNは、
N=(0,0,1)
となり、n_vector_xの特性は、図3に示すように、上面曲面部11と上面平面部12の接続部分で変化量は連続となる。
At this time, the normal vector N of the upper
N = (0,0,1)
As shown in FIG. 3, the amount of change in the characteristics of n_vector_x is continuous at the connection portion between the upper
ここで、図2は本発明の第1の実施形態における法線ベクトルの詳細説明図であり、上面平面部12および下面曲面部11における太線矢印の向きは、法線ベクトルの向きを示している。また、図3は本発明の第1の実施形態における水平方向成分法線ベクトル特性を示した図である。
Here, FIG. 2 is a detailed explanatory diagram of the normal vector in the first embodiment of the present invention, and the directions of the thick arrows in the upper
この結果、図2のようなページめくり効果の上面平面部12、上面曲面部11の接続部分における照明効果は、連続的に変化することができるようになり、視覚的にも自然な照明効果を得ることができる。
As a result, the lighting effect at the connecting portion of the upper surface
次に、ページめくり効果における下面の照明効果に関して説明する。
図4は本発明の第1の実施形態における第2の画像特殊効果装置100Bの構成を示す図である。基本的には図1に示す画像特殊効果装置100と同様の構成であるが、画像特殊効果装置100Bは、法線ベクトル計算部7に代わり法線ベクトル計算部7Bを有する。
Next, the illumination effect on the lower surface in the page turning effect will be described.
FIG. 4 is a diagram showing a configuration of the second image
法線ベクトル計算部7Bは、n_vector_zに関しては、図1と同様に求める。そして下面曲面部16のn_vector_xに関しては、n_vector_zの計算結果を利用して、n_vector_x = cosθz − 1として計算する。
The normal
このとき下面曲面部16の法線ベクトルNは、
N=(0,0,1)
となり、n_vector_xの特性は、図6に示すように、下面曲面部16と下面平面部15との接続部分で変化量は連続となる。
At this time, the normal vector N of the lower
N = (0,0,1)
As shown in FIG. 6, the amount of change in the characteristics of n_vector_x is continuous at the connection portion between the lower
ここで、図5は本発明の第1の実施形態における第2の法線ベクトル詳細説明図であり、下面平面部15および下面曲面部16における太線矢印の向きは、法線ベクトルの向きを示している。また、図6は本発明の第1の実施形態における第2の水平方向成分法線ベクトル特性を示した図である。
Here, FIG. 5 is a detailed explanatory diagram of the second normal vector in the first embodiment of the present invention, and the direction of the thick arrow in the
この結果、図5のようなページめくり効果の下面平面部15、下面曲面部16の接続部分における照明効果は、連続的に変化することができるようになり、視覚的にも自然な照明効果を得ることができる。
As a result, the lighting effect at the connecting portion of the lower surface
このような本発明の第1の実施形態における画像特殊効果装置100によれば、入力された画像に関する画像情報には平面および曲面を有する面において任意の視点から見た場合の光源からの光による照明効果が付加され、面に画像情報をマッピングさせて得られる映像信号を出力する画像特殊効果装置100であって、視点の方向のベクトルを示す視点方向ベクトルと、面の水平方向座標および垂直方向座標の位置ならびに面の形状に基づいた面の位置における法線ベクトルとのなす角度の余弦値を算出する余弦値計算部4と、余弦値を視点方向の成分、角度の(1−余弦値)または(−1+余弦値)を水平方向座標の成分とするベクトルを計算用法線ベクトルとして算出する法線ベクトル計算部7と、計算用法線ベクトルに基づいて、照明効果を算出する照明効果計算部とを有する構成とすることで、例えばページめくりの平面部と曲面部の接続部分の法線ベクトルNのうち、水平方向成分の変化量を、視点方向成分の計算結果から求めることで、大規模な新規計算回路を追加しなくても、連続とすることができるため、自然な照明効果を実現しつつ、装置を小型化することができる。
According to the image
なお、本実施形態では、水平方向にページをめくる効果で説明したが、それ以外の方向でもよく、その際は、法線ベクトルの垂直方向成分も、水平方向成分と同様に考えればよい。 In the present embodiment, the effect of turning the page in the horizontal direction has been described. However, other directions may be used, and in this case, the vertical direction component of the normal vector may be considered in the same manner as the horizontal direction component.
また、本実施形態では、ページめくり効果を題材に説明したが、平面と曲面、曲面と曲面を接続する画像特殊効果でもよい。 In the present embodiment, the page turning effect has been described, but an image special effect that connects a plane and a curved surface or a curved surface and a curved surface may be used.
(第2の実施形態)
次に、本発明の第2の実施形態における画像特殊効果装置200について説明する。
図7は、本発明の第2の実施形態における画像特殊効果装置200の構成を示す図である。画像特殊効果装置200は、余弦値計算部4、法線ベクトル計算部18、およびページめくり垂直方向座標計算部19を有する。尚、ページめくり垂直方向座標計算部19は法線ベクトル計算部の一部の一例である。
(Second Embodiment)
Next, an image
FIG. 7 is a diagram showing a configuration of an image
余弦値計算部4は、第1の実施携帯において説明したものと同様である。法線ベクトル計算部18は、第1の実施形態における法線ベクトル計算部7もしくは法線ベクトル計算部7Bと同様の機能を有する。
The cosine
ページめくり垂直方向座標計算部19は、照明処理用法線ベクトル算出のため、余弦値計算部4によって計算した余弦値3(cosθz)、上面および下面の位置ずれ量を示す上面移動量31(a)(図7中のA31)、および垂直方向座標20(y)(図7中のY20)を用いて、Yeffectを求めるための計算を実行する。Yeffectを算出するための計算、つまりページめくり垂直方向座標計算部19が行う計算は、下面平面部15、下面曲面部16、上面曲面部11、上面平面部12ごとに、次式のように示される。図8は本発明の第2の実施形態におけるページめくり効果垂直方向座標計算仕様を説明するための図である。
The page turning vertical coordinate
(下面平面部15)Yeffect = y
(下面曲面部16)Yeffect = y - a { 1 - cosθz }
(上面曲面部11)Yeffect = y - a { 1 + cosθz }
(上面平面部12)Yeffect = y - 2a
(Lower plane part 15) Yeffect = y
(Lower curved surface portion 16) Yeffect = y−a {1−cosθz}
(Upper curved surface portion 11) Yeffect = y−a {1 + cosθz}
(Top Plane 12) Yeffect = y-2a
このような本発明の第2の実施形態における画像特殊効果装置200によれば、ページめくり垂直方向座標計算部19が、形状が上面および下面を有するページめくりの形状である場合、余弦値計算部4によって計算された余弦値、垂直方向座標の位置、および上面および下面の垂直方向の位置ずれ量に基づく上面移動量に基づいて、計算用法線ベクトルの垂直方向座標の成分を算出する構成とすることで、法線ベクトル計算用に計算済みのcosθzをページめくりの垂直座標方向の計算に用いることで、例えば右から左にページをめくる形状変化にて上面と下面が重なることがなく、大規模な新規計算回路を追加しなくても、自然なページめくり効果が得られつつ、装置を小型化することができる。
According to the image
なお、本実施形態では、右から左にページをめくる効果で説明したが、それ以外の左から右、上から下、下から上の方向でもよい。 In the present embodiment, the effect of turning pages from right to left has been described, but other directions may be left to right, top to bottom, and bottom to top.
(第3の実施形態)
次に、本発明の第3の実施形態における画像特殊効果装置300について説明する。
図9は、本発明の第3の実施形態における画像特殊効果装置300の構成を示す図である。画像特殊効果装置300は、正弦値計算部50、余弦値計算部4B、法線ベクトル計算部18、セレクタ25を有する。尚、セレクタ25は選択部の一例である。
(Third embodiment)
Next, an image
FIG. 9 is a diagram showing a configuration of an image
正弦値計算部50は、水平方向座標1(x)(図9中のX1)および効果半径2(r)(図9中のR2)を入力し、正弦値23( sinθz ) = x / rを計算する。余弦値計算部4Bは、正弦値23( sinθz )を入力し、余弦値計算
セレクタ25は、正弦値計算部50が計算した正弦値23(sinθz) = x / rと法線ベクトル計算部18が行った計算結果とを入力し、モード切替信号24によっていずれか一方を選択し、法線ベクトル水平方向成分6であるn_vector_xとして出力する。セレクタ25により、右から左にページをめくる効果用の水平方向成分法線ベクトルと、ボール効果用の水平方向成分法線ベクトルを切り替えて、法線ベクトル水平方向成分6として出力することができる。
The
このような本発明の第3の実施形態における画像特殊効果装置300によれば、視点方向ベクトルと法線ベクトルとのなす角度の正弦値を算出する正弦値計算部50と、正弦値計算部50によって算出される正弦値および法線ベクトル計算部18によって算出される角度の(1−余弦値)、(−1+余弦値)のうちのいずれかを、照明効果計算部による照明効果の算出に利用する計算用法線ベクトルの水平方向座標の成分として選択するセレクタ25とを有する構成とすることで、水平方向成分法線ベクトルを切り替えて出力できることで、大規模な新規計算回路を追加せずに、ページめくり効果以外にも、ボール効果用の汎用的な照明効果を計算でき、装置を小型化することができる。
According to the image
なお、本実施形態では、右から左にページをめくる効果とボール効果の照明効果を切り替える場合で説明したが、ページめくり効果以外の平面と曲面、曲面と曲面を接続した画像特殊効果から、他の画像特殊効果への切り替えでもよい。 In this embodiment, the case of switching the effect of turning the page from right to left and the lighting effect of the ball effect has been described. However, other than the image special effect that connects a curved surface and a curved surface other than the page turning effect, other It is also possible to switch to the image special effect.
本発明は、小型化した構成により様々な画像特殊効果の照明効果をリアルタイムに処理でき、映像・画像の制作・編集等が行われる各分野において広く利用することができる画像特殊装置等として有用である。 INDUSTRIAL APPLICABILITY The present invention can process lighting effects of various image special effects in real time with a downsized configuration, and is useful as an image special apparatus that can be widely used in various fields in which video / image production / editing is performed. is there.
100、100B、200、300 画像効果特殊装置
X1 水平方向座標
R2 効果半径
3 余弦値
4、4B 余弦値計算部
5 法線ベクトル視点方向成分
6 法線ベクトル水平方向成分
7、7B 法線ベクトル計算部
11 上面曲面部
12 上面平面部
X13 表示画面水平方向
Z14 視点方向
15 下面平面部
16 下面曲面部
18 法線ベクトル計算部
19 ページめくり垂直方向座標計算部
Y20 垂直方向座標
Y22 表示画面垂直方向
23 正弦値
24 モード選択信号
25 セレクタ
A31 上面移動量
θz40 視点方向と法線ベクトルのなす角度
50 正弦値計算部
101 入力画像
102 フレームメモリ
103 出力画像
105 シーケンシャルなライトアドレス
108 画像特殊効果用リードアドレス
109 リードアドレス演算部
100, 100B, 200, 300 Special equipment for image effects
X1 horizontal coordinate
X13 Display screen horizontal direction
Y20 vertical coordinate
Y22 Display screen
A31 Upper surface movement amount θz40 Angle formed by viewing direction and
Claims (4)
前記視点の方向のベクトルを示す視点方向ベクトルと、前記面の水平方向座標および垂直方向座標の位置ならびに前記面の形状に基づいた前記面の位置における法線ベクトルとのなす角度の余弦値を算出する余弦値計算部と、
前記余弦値を視点方向の成分、前記角度の(1−余弦値)または(−1+余弦値)を前記水平方向座標の成分とするベクトルを計算用法線ベクトルとして算出する法線ベクトル計算部と、
前記計算用法線ベクトルに基づいて、前記照明効果を算出する照明効果計算部と、
を有する画像特殊効果装置。 Illumination effect by light from a light source when viewed from an arbitrary viewpoint on a plane having a plane and a curved surface is added to the image information about the input image, and a video signal obtained by mapping the image information on the plane is obtained. An image special effect device for output,
Calculates the cosine value of the angle formed by the viewpoint direction vector indicating the direction vector of the viewpoint, the position of the horizontal and vertical coordinates of the surface, and the normal vector at the position of the surface based on the shape of the surface A cosine value calculation unit,
A normal vector calculation unit that calculates a vector having the cosine value as a component in the viewing direction and the angle (1−cosine value) or (−1 + cosine value) as the horizontal coordinate component as a calculation normal vector;
A lighting effect calculation unit for calculating the lighting effect based on the calculation normal vector;
An image special effect device.
前記法線ベクトル計算部は、
前記形状が上面および下面を有するページめくりの形状である場合、前記余弦値計算部によって計算された余弦値、前記垂直方向座標の位置、および前記上面および下面の前記垂直方向の位置ずれ量に基づく上面移動量に基づいて、前記計算用法線ベクトルの前記垂直方向座標の成分を算出する画像特殊効果装置。 The image special effect device according to claim 1,
The normal vector calculator is
When the shape is a page turning shape having an upper surface and a lower surface, it is based on the cosine value calculated by the cosine value calculation unit, the position of the vertical coordinate, and the amount of positional deviation in the vertical direction of the upper surface and the lower surface. An image special effect device that calculates a component of the vertical coordinate of the normal vector for calculation based on an upper surface movement amount.
前記視点方向ベクトルと前記法線ベクトルとのなす角度の正弦値を算出する正弦値計算部と、
前記正弦値計算部によって算出される正弦値および前記法線ベクトル計算部によって算出される前記角度の(1−余弦値)、(−1+余弦値)のうちのいずれかを、前記照明効果計算部による照明効果の算出に利用する前記計算用法線ベクトルの前記水平方向座標の成分として選択する選択部と、
を有する画像特殊効果装置。 The image special effect device according to claim 1,
A sine value calculator for calculating a sine value of an angle formed by the viewpoint direction vector and the normal vector;
One of the sine value calculated by the sine value calculation unit and the angle calculated by the normal vector calculation unit (1−cosine value) and (−1 + cosine value) is used as the lighting effect calculation unit. A selection unit for selecting as a component of the horizontal coordinate of the normal vector for calculation used to calculate the lighting effect by
An image special effect device.
前記画像特殊効果装置が備える余弦値計算部が、前記視点の方向のベクトルを示す視点方向ベクトルと、前記面の水平方向座標および垂直方向座標の位置ならびに前記面の形状に基づいた前記面の位置における法線ベクトルとのなす角度の余弦値を算出する余弦値計算ステップと、
前記画像特殊効果装置が備える法線ベクトル計算部が、前記余弦値を視点方向の成分、前記角度の(1−余弦値)または(−1+余弦値)を前記水平方向座標の成分とするベクトルを計算用法線ベクトルとして算出する法線ベクトル計算ステップと、
前記画像特殊効果装置が備える照明効果計算部が、前記計算用法線ベクトルに基づいて、前記照明効果を算出する照明効果計算ステップと、
を有する画像特殊効果方法。 Using an image special effect device, the image information relating to the input image is added with an illumination effect by light from a light source when viewed from an arbitrary viewpoint on a plane having a plane and a curved surface, and the image information is added to the plane. an image special effect how to output a video signal obtained by mapping,
The cosine value calculation unit included in the image special effect device includes a viewpoint direction vector indicating a vector of the viewpoint direction, the position of the horizontal coordinate and the vertical coordinate of the surface, and the position of the surface based on the shape of the surface. A cosine value calculating step for calculating a cosine value of an angle formed with the normal vector at
Normal vector calculating unit included in the image special effect apparatus, components of the viewpoint direction the cosine value, of the angle vector with components of the horizontal coordinate (1-cosine) or (-1 + cosine) A normal vector calculation step for calculating as a normal vector for calculation;
The lighting effect calculation unit provided in the image special effect device , the lighting effect calculation step of calculating the lighting effect based on the normal vector for calculation,
An image special effect method.
Priority Applications (4)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2006210103A JP4777181B2 (en) | 2006-08-01 | 2006-08-01 | Image special effect device, image special effect method |
| US12/305,752 US8179395B2 (en) | 2006-06-28 | 2007-03-09 | Image special effect apparatus and image special effect method |
| PCT/JP2007/054720 WO2008001515A1 (en) | 2006-06-28 | 2007-03-09 | Special effect imaging device and special effect imaging method |
| CN2007800237157A CN101479771B (en) | 2006-06-28 | 2007-03-09 | Image special effect device and image special effect method |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2006210103A JP4777181B2 (en) | 2006-08-01 | 2006-08-01 | Image special effect device, image special effect method |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JP2008040549A JP2008040549A (en) | 2008-02-21 |
| JP4777181B2 true JP4777181B2 (en) | 2011-09-21 |
Family
ID=39175518
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP2006210103A Expired - Fee Related JP4777181B2 (en) | 2006-06-28 | 2006-08-01 | Image special effect device, image special effect method |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP4777181B2 (en) |
Families Citing this family (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN114489553B (en) * | 2020-10-23 | 2024-03-08 | 北京嗨动视觉科技有限公司 | Special effect switching method, special effect switching device and plug-in card type video processing equipment |
Family Cites Families (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPH07296187A (en) * | 1994-04-28 | 1995-11-10 | Sony Corp | Image display processor |
| JP2001283250A (en) * | 2000-03-30 | 2001-10-12 | Konami Co Ltd | Image compositing device, its method, information storage medium program distributing device and its method |
| JP2002092634A (en) * | 2000-09-20 | 2002-03-29 | Metoro:Kk | Ambient value finding method, image displaying method, image display device, and information storage medium |
| WO2004079663A1 (en) * | 2003-03-06 | 2004-09-16 | Digital Media Professionals Inc. | Light reflection intensity calculation circuit |
-
2006
- 2006-08-01 JP JP2006210103A patent/JP4777181B2/en not_active Expired - Fee Related
Also Published As
| Publication number | Publication date |
|---|---|
| JP2008040549A (en) | 2008-02-21 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| TWI712004B (en) | Coordinate system calibration method and device of augmented reality equipment | |
| JP4986864B2 (en) | Image projection device | |
| JP4661829B2 (en) | Image data conversion device and camera device provided with the same | |
| US9516223B2 (en) | Motion-based image stitching | |
| US10235795B2 (en) | Methods of compressing a texture image and image data processing system and methods of generating a 360 degree panoramic video thereof | |
| JP5233709B2 (en) | Robot simulation image display system | |
| US20100031188A1 (en) | Method for zooming image and electronic device using the same | |
| CN105324791B (en) | Coordinate computing device and method and image processing apparatus and method | |
| JP2017524976A (en) | Multi-camera system using bending optics without parallax and tilt artifacts | |
| JP4935440B2 (en) | Image processing apparatus and camera apparatus | |
| JP5079973B2 (en) | Endoscope device for measurement and program for endoscope device for measurement | |
| JP4777181B2 (en) | Image special effect device, image special effect method | |
| CN116095249B (en) | Video processing method and electronic device | |
| KR101082545B1 (en) | Mobile communication terminal had a function of transformation for a picture | |
| US8179395B2 (en) | Image special effect apparatus and image special effect method | |
| US10460425B2 (en) | Method, device, and recording medium for processing image | |
| JP2007114820A (en) | Portable pointer device and display system | |
| WO2012049768A1 (en) | Image processing device, image processing method and image processing program | |
| US20140184851A1 (en) | Automatic image combining apparatus | |
| US20240203012A1 (en) | Electronic device for generating three-dimensional photo based on images acquired from plurality of cameras, and method therefor | |
| US20060178561A1 (en) | Endoscope apparatus | |
| JP2008092602A (en) | Image processing apparatus, camera system, and image processing method | |
| JP4777162B2 (en) | Image special effect device and image special effect method | |
| JP2010157146A (en) | Drawing system | |
| JP2013137709A (en) | Calibration device, method of controlling the same, and program |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| RD02 | Notification of acceptance of power of attorney |
Free format text: JAPANESE INTERMEDIATE CODE: A7422 Effective date: 20071113 |
|
| RD04 | Notification of resignation of power of attorney |
Free format text: JAPANESE INTERMEDIATE CODE: A7424 Effective date: 20071120 |
|
| A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20090609 |
|
| A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20110329 |
|
| A521 | Written amendment |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20110428 |
|
| 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: 20110601 |
|
| 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: 20110629 |
|
| 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: 20140708 Year of fee payment: 3 |
|
| 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 |
|
| LAPS | Cancellation because of no payment of annual fees |