JP2004064309A - Device for special effect image - Google Patents

Device for special effect image Download PDF

Info

Publication number
JP2004064309A
JP2004064309A JP2002218345A JP2002218345A JP2004064309A JP 2004064309 A JP2004064309 A JP 2004064309A JP 2002218345 A JP2002218345 A JP 2002218345A JP 2002218345 A JP2002218345 A JP 2002218345A JP 2004064309 A JP2004064309 A JP 2004064309A
Authority
JP
Japan
Prior art keywords
special effect
image
address
coordinate system
read address
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.)
Pending
Application number
JP2002218345A
Other languages
Japanese (ja)
Inventor
Masatake Hayashi
林 正武
Keisuke Matsuda
松田 圭右
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Panasonic Holdings Corp
Original Assignee
Matsushita Electric Industrial Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Matsushita Electric Industrial Co Ltd filed Critical Matsushita Electric Industrial Co Ltd
Priority to JP2002218345A priority Critical patent/JP2004064309A/en
Publication of JP2004064309A publication Critical patent/JP2004064309A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Studio Circuits (AREA)
  • Image Processing (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To provide a device for special effect images which freely changes a curvature of a spherical shape that results from deforming a video signal and displayed. <P>SOLUTION: An input image signal is stored temporarily into a memory and read from the memory according to a read address generated by a read address generating means. The read address generating means includes: a polar coordinate transformation means 22 for transforming an orthogonal coordinate system address into a polar coordinate system address wherein the center of an image subjected to a special effect is used for the origin; a modulation amount generating means 23 for generating a modulation amount of the polar coordinate system address; a modulation amount amplitude adjustment means 24 for adjusting the amplitude of the modulation amount; a correction means 26 for correcting a magnification factor of an image subjected to the special effect; orthogonal coordinate transformation means 27, 29, 30 for transforming the corrected polar coordinate system address into an orthogonal coordinate system address to generate the read address; and a discrimination means 28 for discriminating whether or not the read addresses falls within a range of the image subjected to the special image. Thus, the device for special effect image can deform a part of the input image to be like a sphere and freely change the curvature of the sphere. <P>COPYRIGHT: (C)2004,JPO

Description

【0001】
【発明の属する技術分野】
本発明は、映像信号に特殊効果を与える画像特殊効果装置に関し、特に、球状の特殊効果を実現するものである。
【0002】
【従来の技術】
従来、映像信号を変形して表示する画像特殊効果装置は、原画像の画像信号をフレームメモリに一時蓄積し、このフレームメモリの読み出しアドレスを所定の変形画像が得られるように設定している。
例えば、特開平5−328217号公報には、画面上の任意の場所に任意の大きさの泡状の特殊効果映像を発生させる画像特殊効果装置が開示されている。この装置は、原画像の画像信号を一時蓄積するフレームメモリと、このフレームメモリのアドレスを指定するコントローラ部と、コントローラ部から出力されたアドレスを関数で変換するアドレス変換回路とを備えている。
【0003】
フレームメモリには、入力する原画像の画像信号が1フレーム分ずつ順次書き込まれる。コントローラ部は、フレームメモリのアドレスと特殊効果映像を発生する泡の半球面の半径とを指定する信号を出力し、アドレス変換回路は、このアドレスを、指定された半径の半球面に対応するアドレスに変換する。フレームメモリから、このアドレスの画像信号が順次読み出されて、泡状の特殊効果映像が表示される。
【0004】
【発明が解決しようとする課題】
しかし、このような従来の画像特殊効果装置では、画像を球状に変形する特殊効果を施しても、実際の映像は所望の効果よりも平面的に見えるという問題点があった。
本発明は、こうした従来の問題点を解決するものであり、所望の丸みを持つ球状への変形が得られるように、変形表示する球状の曲率を自由に変えることができる画像特殊効果装置を提供することを目的としている。
【0005】
【課題を解決するための手段】
そこで、本発明では、外部から入力される画像信号をメモリバッファに一時記憶し、このメモリバッファに記憶された画像信号を、読み出しアドレス生成手段が生成した読み出しアドレスによって読み出すことにより、メモリバッファに記憶された画像信号に対して特殊効果を施す画像特殊効果装置において、読み出しアドレス生成手段に、直交座標系アドレスを、特殊効果を施す画像の中心を原点とする極座標系アドレスに変換する極座標変換手段と、極座標系アドレスの変調量を生成する変調量生成手段と、変調量の振幅を調整する変調量振幅調整手段と、特殊効果を施す画像の拡大率を補正するために変調量が付加された極座標系アドレスを補正する補正手段と、補正手段で補正された極座標系アドレスを直交座標系アドレスに変換して読み出しアドレスを生成する直交座標変換手段と、極座標系アドレスの半径成分に基づいて、読み出しアドレスが特殊効果を施す画像の範囲内か否かを判定する判定手段とを設け、入力画像の一部を任意の曲率の球に変形できるように構成している。
この構成により、入力画像の一部を球のように変形することができ、この球の曲率を自由に変えることができる。
【0006】
【発明の実施の形態】
(第1の実施形態)
本発明の第1の実施形態における画像特殊効果装置は、図4(b)に示すように、原画像(図4(a))の一部分を球状に拡大することができ、この球の曲率を自由に変えることができる。
この装置は、図1に示すように、外部から入力される1フレーム分の映像信号を一時記憶するフレームメモリバッファ10と、シーケンシャルな書き込みアドレスを発生する書き込みアドレス発生手段11と、シーケンシャルリードアドレスを入力として、フレームメモリバッファ10から画像信号を読み出すための読み出しアドレスを出力する読み出しアドレス生成手段12とを備えている。
【0007】
読み出しアドレス生成手段12は、図2に示すように、変形表示する球の半径R、曲率を調整するパラメータk及び特殊効果領域の中心位置(xc,yc)から各種パラメータを演算するCPU32と、シーケンシャルリードアドレスのx座標とCPU32から送られた特殊効果領域の中心位置のパラメータ(−xc)とを加算する加算器20と、シーケンシャルリードアドレスのy座標とCPU32から送られた特殊効果領域の中心位置のパラメータ(−yc)とを加算する加算器21と、加算器21、22の出力を入力としてxy座標系をrθ座標系に変換する極座標変換手段22と、極座標変換手段22より出力されるrとCPU32から送られた球の半径Rとからrに加える基本変調量を生成する変調量生成手段23と、基本変調量にパラメータkを乗算して基本変調量の振幅を調整する乗算器24と、乗算器24の出力とrとを加算する加算器25と、特殊効果領域の画像が特殊効果領域の端で連続的に特殊効果領域外の画像とつながるように補正するための拡大補正パラメータcを加算器25の出力に乗算する乗算器26と、rθ座標系をxy座標系に変換する直交座標変換手段27と、直交座標変換手段27によりxy座標系に変換されたxアドレスとCPU32より送られてくる特殊効果領域の中心位置のパラメータxcとを加算する加算器29と、直交座標変換手段27によりxy座標系に変換されたyアドレスとCPU32より送られてくる特殊効果領域の中心位置のパラメータycとを加算する加算器30と、特殊効果領域の範囲内では加算器29、30の出力を読み出しアドレスとして出力し、特殊効果領域の範囲外ではシーケンシャルリードアドレスx,yを読み出しアドレスとして出力する切替手段31と、極座標のrと球の半径Rとを比較して切替手段31に読み出しアドレスの切り替え信号を出力する判定手段28とを備えている。
【0008】
図1において、書き込みアドレス発生手段11はシーケンシャルなアドレスを発生し、このアドレスに基づいて1フレーム分の映像信号がフレームメモリバッファ10に書き込まれる。この1フレーム分の映像信号は一枚の画像信号として扱われる。読み出しアドレス生成手段12は、入力するシーケンシャルリードアドレスから特殊効果を施すための読み出しアドレスを生成し、フレームメモリバッファ10の該当する読み出しアドレスから画像信号が読み出される。
【0009】
図2を参照しながら、読み出しアドレス生成手段12の動作を説明する。
シーケンシャルアドレスのxアドレスは、加算器20で、CPU32から送られてくる特殊効果領域の中心位置のパラメータ(−xc)と加算され、また、シーケンシャルアドレスのyアドレスは、加算器21で、CPU32から送られてくる特殊効果領域の中心位置のパラメータ(−yc)と加算される。加算器20、21の出力は極座標変換手段22に入力し、xy座標系のシーケンシャルアドレスが、(xc,yc)を原点とするrθ座標系のアドレスに変換される。
【0010】
変調量生成手段23は、極座標のrとCPU32より送られてくる球の半径Rとから、rの基本変調量を生成する。この基本変調量に、乗算器24で、CPU32より送られてくる曲率調整パラメータkが乗算されて変調量が生成され、この変調量が、加算器25で極座標のrに加算される。
変調量が加算された極座標のrに対して、乗算器26で、特殊効果領域の端で連続的に特殊効果領域外の画像とつながるように補正するための拡大補正パラメータcが乗算される。直交座標変換手段27は、補正した極座標のrと極座標のθとから成るrθ座標系のアドレスをxy座標系のアドレスに変換する。直交座標変換手段27が出力するxアドレスには、CPU32から送られてくる特殊効果領域の中心位置のパラメータxcが加算器29で加算され、また、直交座標変換手段27が出力するyアドレスには、CPU32から送られてくる特殊効果領域の中心位置のパラメータycが加算器30で加算される。
【0011】
切替手段31は、判定手段28から出力される切替え信号によって、読み出しアドレスの出力(X,Y)をシーケンシャルアドレス(x,y)または加算器29、30の出力に切り替える。
判定手段28は、極座標変換手段22から出力されるrと、CPU32から送られてくる球の半径Rとを比較し、rがR以下であれば、加算器29、30の出力を読み出しアドレス(X,Y)とし、rがRを超えるときはシーケンシャルアドレス(x,y)を読み出しアドレス(X,Y)とする読み出しアドレスの切り替え信号を切替手段31に出力する。
【0012】
図3のフローチャートは、この画像特殊効果装置の動作手順を示している。なお、フローチャートの各図面では、動作手順を表すステップを“S”で表示している。
フレームメモリバッファ10は、1フレーム分の映像信号を書き込みアドレス発生手段11より出力されるアドレスに従ってフレームメモリに書き込む(ステップ101)。シーケンシャルリードアドレス(x,y)が読み出しアドレス生成手段12に入力する(ステップ102)。
【0013】
加算器20及び加算器21は、
=x−xc
=y−yc
により、効果の中心位置から読み出しアドレスx,yまでの差x、yを求める(ステップ103)。ここで、xc、ycは特殊効果領域の中心位置、つまり球の中心位置のx,y座標であり、CPU32より設定する。
【0014】
極座標変換手段24は、
r=√(x +y
θ=tan−1(y/x
により、直交座標系のアドレス(x,y)を極座標系のアドレス(θ,r)に変換する(ステップ104)。
【0015】
変調量生成手段23は、rとCPU32より送られてくる球の半径Rとから、
=Rsin−1(r/R)−r
により、基本変調量rを求める(ステップ105)。ここで、基本変調量rmは図5に示すような関数である。
乗算器24は、
dr=k・r
により変調量drを求める(ステップ106)。ここで、kは変調量の振幅であり、曲率を調整するためのパラメータである。これは、CPU32より設定する。
【0016】
加算器25は、
=r+dr
により、rにおける変調後の読み出しアドレスを求める(ステップ107)。
乗算器26は、
=c・r
により、特殊効果領域の端で連続的に特殊効果領域外の画像とつながるように読み出しアドレスを補正する(ステップ108)。ここで、拡大補正パラメータcは、
c=1/{k(π/2−1)+1}
としてCPU32で求めた上で設定する。
【0017】
直交座標変換手段27は、
=rcosθ
=rsinθ
により、極座標系の読み出しアドレス(θ,r)を直交座標系のアドレス(x,y)に変換する(ステップ109)。
加算器29及び加算器30は、
=x+xc
=y+yc
により、特殊効果領域の中心位置(xc,yc)の値をオフセット値として加えて座標系の原点を戻し、特殊効果を施すための読み出しアドレスとする(ステップ110)。
【0018】
判定手段28は、極座標系のrとCPU32より設定される球の半径Rとを比較し、
r<R
であるか否かを判定する(ステップ111)。r<Rである場合には、切替手段31は、読み出しアドレス(X,Y)として、
X=x
Y=y
を出力する(ステップ112)。また、r<Rでない場合には、切替手段31は、読み出しアドレス(X,Y)として、
X=x
Y=y
を出力する(ステップ113)。
読み出しアドレス生成手段12は、フレームメモリバッファ10に書き込まれた1フレーム分の映像信号を、この読み出しアドレス(X,Y)により読み出す(ステップ114)。
【0019】
このように、この画像特殊効果装置では、画像を球状に変化させるための変調量の振幅を変化させ、極座標系rにおける読み出しアドレスについて拡大率を補正することで、球の曲率を自由に変えることが可能であり、画像の特殊効果領域の部分とも連続的につながるように補正された球状の特殊効果を与えることができる。
【0020】
(第2の実施形態)
本発明の第2の実施形態における画像特殊効果装置は、図9(b)に示すように、特殊効果領域外の原画像(図9(a))の部分を除くことができ、かつ、球を水平または垂直に回転したように特殊効果領域内の画像の位相を変化させることができる。
この画像特殊効果装置は、図6に示すように、特殊効果領域の範囲外で黒レベル(あるいは白レベル等の固定したレベル)の画像信号を出力する黒レベル出力手段40を備えており、また、読み出しアドレス生成手段12は、シーケンシャルリードアドレスを入力として、フレームメモリバッファ10の読み出しアドレスを生成してフレームメモリバッファ10に出力し、特殊効果領域の内/外を示すkey信号を生成して黒レベル出力手段40に出力する。その他の構成は第1の実施形態(図1)と変わりがない。
【0021】
この読み出しアドレス生成手段12の構成は、図7に示すように、第1の実施形態(図2)の構成から切替手段を除いたものに相当している。
また、CPU32は、変形表示する球の半径R、曲率を調整するパラメータk、特殊効果領域の中心位置(xc,yc)及び画像オフセットパラメータ(xd,yd)(特殊効果領域内の画像を垂直または水平に回転したような効果を得るためのパラメータ)から各種パラメータを演算する。
【0022】
乗算器26は、極座標のrに変調量が加算された加算器25の出力に対して、所望の半径の球となるように読み出しアドレスを補正するための拡大補正パラメータcを乗算する。
判定手段28は、判定結果をkey信号として黒レベル出力手段40に出力する。
加算器29及び加算器30は、直交座標変換手段27により極座標から変換された直交座標に対して、画像オフセットパラメータ(xd,yd)を加算して特殊効果領域の読み出しアドレス(X,Y)を生成する。
その他の構成・動作は第1の実施形態と変わりがない。
【0023】
図8のフローチャートは、この画像特殊効果装置の動作を示している。このフローチャートにおいて、ステップ101からステップ107までの手順は第1の実施形態(図3)と同じである。
乗算器26は、rに変調量が加えられたrを用いて、
=c・r
により、所望の半径の球となるように読み出しアドレスを補正する(ステップ108)。ここで、拡大補正パラメータcは、
c=1/{k(π/2−1)+1}
としてCPU32で求めた上で設定する。
【0024】
直交座標変換手段27は、
=rcosθ
=rsinθ
により、極座標系の読み出しアドレス(θ,r)を直交座標系のアドレス(x,y)に変換する(ステップ109)。
加算器29及び加算器30は、
X=x+xd
Y=y+yd
により、(x,y)にxd,ydの値をオフセット値として加えて、特殊効果を施すための読み出しアドレスとする(ステップ201)。ここで、xd,ydは画像の位相を調整するパラメータであり、このパラメータを調整することで、特殊効果領域内の画像を垂直または水平に回転するような効果が実現できる。また、xd=xc,yd=ycとしたときには画像の回転はない。
【0025】
判定手段28は、極座標系のrとCPU32より設定される球の半径Rとを比較し、
r<R
であるか否かを判定する(ステップ111)。判定手段28は、r<Rである場合には、key信号を1として出力し(ステップ202)、また、r<Rでない場合には、key信号を0として出力する(ステップ203)。
【0026】
読み出しアドレス生成手段12は、フレームメモリバッファ10に書き込まれた1フレーム分の映像信号を、読み出しアドレス(X,Y)により読み出す(ステップ114)。
黒レベル出力手段40は、読み出しアドレス生成手段12より出力されるkey信号が0のときは、信号を黒レベルの画像信号に変えて出力する(ステップ204)。
【0027】
このように、この画像特殊効果装置は、直交座標変換をしたあとに、画像の水平または垂直の回転を調整するオフセット値を加えており、また、判定手段から出力されるkey信号を黒レベル出力手段に与えている。こうすることで、画像の特殊効果領域外の部分を除くことができ、かつ、球を水平または垂直に回転したように特殊効果領域内の画像の位相を変化させることができる。
【0028】
なお、ここでは、特殊効果領域以外の部分を黒く表示する場合について説明したが、特殊効果領域以外の部分を、図9(b)に示すように白くしたり、あるいは、他の一定の色で表示することも可能である。
【0029】
(第3の実施形態)
本発明の第3の実施形態における画像特殊効果装置は、図12(b)に示すように、特殊効果領域外の原画像(図12(a))の部分を除くことができ、かつ、特殊効果領域内の画像を2次元回転することができる。
この装置の全体構成は第2の実施形態(図6)と同様である。読み出しアドレス生成手段12は、図10に示すように、極座標変換手段22により生成された極座標のθに2次元回転量θcを加算して直交座標変換手段27に出力する加算器50を備えている。また、CPU32は、変形表示する球の半径R、曲率を調整するパラメータk、特殊効果領域の中心位置(xc,yc)、画像オフセットパラメータ(xd,yd)及び2次元回転量θcから各種パラメータを演算する。
その他の構成は、第2の実施形態(図7)と変わりがない。
【0030】
図11のフローチャートは、この画像特殊効果装置の動作を示している。このフローチャートにおいて、ステップ101からステップ108までの手順は第2の実施形態(図8)と同じである。
加算器50は、極座標変換手段22で変換された極座標のθを基に、
θ=θ+θc
により、オフセットθcを加えたθを求める(ステップ301)。ここで、θcはCPU32より設定する2次元回転量のパラメータであり、このパラメータを調整することで、特殊効果領域内の画像を2次元的に回転したような効果を施すことができる。
【0031】
直交座標変換手段27は、
=rcosθ
=rsinθ
により、極座標系の読み出しアドレス(θ,r)を直交座標系のアドレス(x,y)に変換する(ステップ109)。
この後のステップ201からステップ204までの手順は、第2の実施形態(図8)と同じである。
【0032】
このように、この画像特殊効果装置では、極座標変換をしたあとのθに対してオフセット値を加えた上で、直交座標変換している。こうすることで、特殊効果領域の中だけに表示する球状の画像を2次元回転する特殊効果を実現することができる。
【0033】
(第4の実施形態)
本発明の第4の実施形態における画像特殊効果装置は、図15(b)に示すように、球を回転させたときにも原画像(図15(a))の右端に左端をつなげて画像が途切れることなく表示させることができる。
この装置の全体構成は第2の実施形態(図6)と同様である。読み出しアドレス生成手段12は、図13に示すように、加算器29、30の出力するアドレス値が有効画面範囲から外れる場合でも、有効画面範囲内のアドレス値を繰り返して発生する繰り返しアドレス発生手段60を備えている。また、CPU32は、変形表示する球の半径R、曲率を調整するパラメータk、特殊効果領域の中心位置(xc,yc)、画像オフセットパラメータ(xd,yd)及び画像の縦及び横の大きさwx,wyから各種パラメータを演算する。
その他の構成は第2の実施形態(図7)と変わりがない。
【0034】
図14のフローチャートは、この画像特殊効果装置の動作を示している。このフローチャートにおいて、ステップ101からステップ109までの手順は第2の実施形態(図8)と同じである。
加算器29及び加算器30は、直交変換された座標値x,yにオフセット値xd,ydを加えて、
=x+xd
=y+yd
により、特殊効果を施すための読み出しアドレスを得る(ステップ201)。
【0035】
繰り返しアドレス発生手段60は、
X=mod(x,wx)
Y=mod(y,wy)
により、有効画面範囲内のアドレスに変換する(ステップ401)。ここで、wx,wyは画像の縦及び横の大きさであり、mod(A,B)はA/Bの余りを求める演算である。
【0036】
従って、x<wxであれば、X=xとなり、x≧wxであれば、X=x−wxとなる。つまり、x、yが有効画面範囲から外れたときには、x、yから有効画面範囲の大きさwx,wyを減算して、有効画面範囲内の読み出しアドレスが生成される。
その後のステップ111からステップ204までの手順は、第2の実施形態(図8)と同じである。
【0037】
このように、この画像特殊効果装置では、出力読み出しアドレスを有効画素範囲で繰り返すようにしている。こうすることで、特殊効果領域に回転した状態の球を表示するときでも、画像が途切れずに表示することができる。
【0038】
(第5の実施形態)
本発明の第5の実施形態における画像特殊効果装置は、図18に示すように、球状の特殊効果画像を、基準とする位置に対称に表示することができる。
この装置の全体構成は第1の実施形態(図1)と同じである。読み出しアドレス生成手段12は、図16に示すように、変形表示する球の半径R、曲率を調整するパラメータk、特殊効果領域の中心位置(xc,yc)及び対称の基準位置(xb,yb)から各種パラメータを演算するCPU32と、シーケンシャルリードアドレスを基準位置で対称に折り返すアドレスに変換する領域分割手段70と、領域分割手段70から出力されるx座標とCPU32より送られてくる特殊効果領域の中心位置のパラメータ(−xc)とを加算する加算器20と、領域分割手段70から出力されるy座標とCPU32より送られてくる特殊効果領域の中心位置のパラメータ(−yc)とを加算する加算器21と、領域分割手段70から出力される折り返しフラグ信号に基づいて、加算器29、30で求めたアドレス値を用いて、そのアドレス値が与える特殊効果と対称な特殊効果を与えるための読み出しアドレスを生成する対称効果生成手段71と、判定手段28からの切り替え信号によって対称効果生成手段71から出力される読み出しアドレスまたはシーケンシャルリードアドレスを切り替えて出力する切替手段31とを備えている。その他の構成は第1の実施形態(図2)と変わりがない。
【0039】
図17のフローチャートは、この画像特殊効果装置の動作を示している。
フレームメモリバッファ10は、書き込みアドレス発生手段11より出力されるアドレスに従って1フレーム分の映像信号をフレームメモリに書き込む(ステップ101)。
読み出しアドレス生成手段12にシーケンシャルリードアドレス(x,y)が入力すると(ステップ102)、領域分割手段70は、
x<xb
であるか否かを識別する(ステップ501)。x<xbであるときには、領域分割手段70は、
=x
とし、分割Xフラグとして0を設定する(ステップ502)。また、x≧xbであるときには、領域分割手段70は、これを基準位置から対称に折り返すアドレスとするため、
=2xb−x
とし、分割Xフラグとして1を設定する(ステップ503)。
【0040】
同様に、y座標についても、領域分割手段70は、
y<yb
であるか否かを識別し(ステップ504)、y<ybであるときには、領域分割手段70は、
=y
とし、分割Yフラグとして0を設定する(ステップ505)。また、y≧ybであるときには、領域分割手段70は、
=2yb−y
とし、分割Yフラグとして1を設定する(ステップ506)。
【0041】
加算器20及び加算器21は、
=x−xc
=y−yc
により、特殊効果領域の中心位置から読み出しアドレスx,yまでの差x、yを求める(ステップ103)。
【0042】
ステップ104からステップ110の手順は第1の実施形態(図3)と同じである。
即ち、極座標変換手段24は、
r=√(x +y
θ=tan−1(y/x
により、直交座標系のアドレス(x,y)を極座標系のアドレス(θ,r)に変換する(ステップ104)。
変調量生成手段23は、rとCPU32より送られてくる球の半径Rとから、
=Rsin−1(r/R)−r
により、基本変調量rを求める(ステップ105)。ここで、基本変調量rmは図5に示すような関数である。
乗算器24は、
dr=k・r
により変調量drを求める(ステップ106)。ここで、kは変調量の振幅であり、曲率を調整するためのパラメータである。これは、CPU32より設定する。
【0043】
加算器25は、
=r+dr
により、rにおける変調後の読み出しアドレスを求める(ステップ107)。
乗算器26は、
=c・r
により、特殊効果領域の端で連続的に特殊効果領域外の画像とつながるように読み出しアドレスを補正する(ステップ108)。ここで、拡大補正パラメータcは、
c=1/{k(π/2−1)+1}
としてCPU32で求めた上で設定する。
直交座標変換手段27は、
=rcosθ
=rsinθ
により、極座標系の読み出しアドレス(θ,r)を直交座標系のアドレス(x,y)に変換する(ステップ109)。
【0044】
加算器29及び加算器30は、
=x+xc
=y+yc
により、特殊効果領域の中心位置(xc,yc)の値をオフセット値として加えて座標系の原点を戻し、特殊効果を施すための読み出しアドレスとする(ステップ110)。
対称効果生成手段71は、分割Xフラグが0であるか否かを判定し(ステップ507)、分割Xフラグが0のときには、
=x
とする(ステップ508)。また、分割Xフラグが1のときには、
=2xb−x
とする(ステップ509)。
【0045】
同様に、y座標についても、対称効果生成手段71は、分割Yフラグが0であるか否かを判定し(ステップ510)、分割Yフラグが0のときには、
=y
とする(ステップ511)。また、分割Yフラグが1のときには、
=2yb−y
とする(ステップ512)。
【0046】
判定手段28は、極座標系のrとCPU32より設定される球の半径Rとを比較し、
r<R
であるか否かを判定する(ステップ111)。r<Rである場合には、切替手段31は、読み出しアドレス(X,Y)として、
X=x
Y=y
を出力する(ステップ112)。また、r<Rでない場合には、切替手段31は、読み出しアドレス(X,Y)として、
X=x
Y=y
を出力する(ステップ113)。
読み出しアドレス生成手段12は、フレームメモリバッファ10に書き込まれた1フレーム分の映像信号を、この読み出しアドレス(X,Y)により読み出す(ステップ114)。
【0047】
このように、この画像特殊効果装置では、入力する読み出しアドレスを領域分割手段によって基準位置で対称になるように折り返した上で、球状の特殊効果が得られるように読み出しアドレスを生成し、また、対称効果生成手段により、折り返された読み出しアドレスを元に戻すように処理をしている。こうすることで、基準位置に対して対称な球状の特殊効果を与えることができる。
【0048】
なお、この実施形態では、xy軸の軸対称に球状の特殊効果を与える場合について説明したが、領域分割手段においてx軸またはy軸の点対称となるように読み出しアドレスを折り返し、対称効果生成手段でこの折り返しを元に戻すように処理をしてもよい。
また、この場合も、第2の実施形態に示すように、特殊効果領域外の画像を除くようにしてもよい。
【0049】
【発明の効果】
以上の説明から明らかなように、本発明の画像特殊効果装置は、入力画像の一部を球状に変形することができ、この球の曲率を自由に変えることができる。そのため、入力画像を所望の丸みを持つ球状に変形することができる。
【図面の簡単な説明】
【図1】本発明の第1の実施形態における画像特殊効果装置の構成を示すブロック図
【図2】本発明の第1の実施形態における画像特殊効果装置の読み出しアドレス生成手段の構成を示すブロック図
【図3】本発明の第1の実施形態における画像特殊効果装置の処理手順を示すフローチャート
【図4】本発明の第1の実施形態における画像特殊効果装置によって特殊効果が加えられた画像を模式的に示す図
【図5】本発明の実施形態における画像特殊効果装置での基本変調量を与える関数を示す図
【図6】本発明の第2の実施形態における画像特殊効果装置の構成を示すブロック図
【図7】本発明の第2の実施形態における画像特殊効果装置の読み出しアドレス生成手段の構成を示すブロック図
【図8】本発明の第2の実施形態における画像特殊効果装置の処理手順を示すフローチャート
【図9】本発明の第2の実施形態における画像特殊効果装置によって特殊効果が加えられた画像を模式的に示す図
【図10】本発明の第3の実施形態における画像特殊効果装置の読み出しアドレス生成手段の構成を示すブロック図
【図11】本発明の第3の実施形態における画像特殊効果装置の処理手順を示すフローチャート
【図12】本発明の第3の実施形態における画像特殊効果装置によって特殊効果が加えられた画像を模式的に示す図
【図13】本発明の第4の実施形態における画像特殊効果装置の読み出しアドレス生成手段の構成を示すブロック図
【図14】本発明の第4の実施形態における画像特殊効果装置の処理手順を示すフローチャート
【図15】本発明の第4の実施形態における画像特殊効果装置によって特殊効果が加えられた画像を模式的に示す図
【図16】本発明の第5の実施形態における画像特殊効果装置の読み出しアドレス生成手段の構成を示すブロック図
【図17】本発明の第5の実施形態における画像特殊効果装置の処理手順を示すフローチャート
【図18】本発明の第5の実施形態における画像特殊効果装置によって特殊効果が加えられた画像を模式的に示す図
【符号の説明】
10 フレームメモリバッファ
11 書き込みアドレス発生手段
12 読み出しアドレス生成手段
20 加算器
21 加算器
22 極座標変換手段
23 変調量生成手段
24 乗算器
25 加算器
26 乗算器
27 直交座標変換手段
28 判定手段
29 加算器
30 加算器
31 切替手段
32 CPU
40 黒レベル出力手段
50 加算器
60 繰り返しアドレス発生手段
70 領域分割手段
71 対称効果生成手段
[0001]
TECHNICAL FIELD OF THE INVENTION
The present invention relates to an image special effect device for giving a special effect to a video signal, and more particularly to a spherical special effect.
[0002]
[Prior art]
2. Description of the Related Art Conventionally, an image special effect device that deforms and displays a video signal temporarily stores an image signal of an original image in a frame memory, and sets a read address of the frame memory so that a predetermined deformed image can be obtained.
For example, Japanese Patent Application Laid-Open No. 5-328217 discloses an image special effect device for generating a bubble-like special effect image of an arbitrary size at an arbitrary position on a screen. This apparatus includes a frame memory for temporarily storing an image signal of an original image, a controller for designating an address of the frame memory, and an address conversion circuit for converting an address output from the controller with a function.
[0003]
An image signal of an input original image is sequentially written into the frame memory for each frame. The controller outputs a signal that specifies the address of the frame memory and the radius of the hemisphere of the bubble that generates the special effect image, and the address conversion circuit converts this address to the address corresponding to the hemisphere of the specified radius. Convert to The image signal at this address is sequentially read from the frame memory, and a bubble-shaped special effect image is displayed.
[0004]
[Problems to be solved by the invention]
However, such a conventional image special effect device has a problem that even when a special effect for deforming an image into a spherical shape is applied, an actual image looks flatter than a desired effect.
The present invention solves such a conventional problem, and provides an image special effect device capable of freely changing the curvature of a spherical shape to be deformed and displayed so that a spherical shape having a desired roundness can be obtained. It is intended to be.
[0005]
[Means for Solving the Problems]
Therefore, according to the present invention, the image signal input from the outside is temporarily stored in the memory buffer, and the image signal stored in the memory buffer is read out by the read address generated by the read address generation means, thereby storing the image signal in the memory buffer. In an image special effect device for applying a special effect to the image signal, the read address generation unit includes a rectangular coordinate conversion unit that converts a rectangular coordinate system address into a polar coordinate system address having the origin at the center of the image on which the special effect is to be performed. A modulation amount generating means for generating a modulation amount of a polar coordinate system address, a modulation amount amplitude adjusting means for adjusting the amplitude of the modulation amount, and a polar coordinate added with a modulation amount for correcting an enlargement ratio of an image to be subjected to a special effect. Correcting means for correcting the system address, and converting the polar coordinate system address corrected by the correcting means into a rectangular coordinate system address. A rectangular coordinate conversion means for generating a read address; and a determination means for determining whether or not the read address is within a range of an image to which a special effect is to be applied, based on a radial component of a polar coordinate system address. It is configured so that it can be transformed into a sphere having an arbitrary curvature.
With this configuration, a part of the input image can be deformed like a sphere, and the curvature of the sphere can be freely changed.
[0006]
BEST MODE FOR CARRYING OUT THE INVENTION
(1st Embodiment)
The image special effect device according to the first embodiment of the present invention can enlarge a part of the original image (FIG. 4A) into a sphere as shown in FIG. You can change it freely.
As shown in FIG. 1, this apparatus includes a frame memory buffer 10 for temporarily storing a video signal for one frame inputted from the outside, a write address generating means 11 for generating a sequential write address, and a sequential read address. A read address generating means 12 for outputting a read address for reading an image signal from the frame memory buffer 10 as an input is provided.
[0007]
As shown in FIG. 2, the read address generation means 12 includes a CPU 32 for calculating various parameters from a radius R of a sphere to be deformed and displayed, a parameter k for adjusting a curvature, and a center position (xc, yc) of a special effect area, and a sequential. An adder 20 for adding the x-coordinate of the read address and the parameter (-xc) of the center position of the special effect area sent from the CPU 32, the y-coordinate of the sequential read address and the center position of the special effect area sent from the CPU 32 An adder 21 for adding the parameter (−yc) of the above, polar coordinate conversion means 22 for converting the xy coordinate system into an rθ coordinate system using the outputs of the adders 21 and 22 as input, and r output from the polar coordinate conversion means 22 A modulation amount generating means 23 for generating a basic modulation amount to be added to r from the radius R of the sphere sent from the CPU 32; A multiplier 24 for adjusting the amplitude of the basic modulation amount by multiplying the parameter k, an adder 25 for adding the output of the multiplier 24 and r, and an image of the special effect area continuously at the end of the special effect area. A multiplier 26 for multiplying the output of the adder 25 by an enlargement correction parameter c for correcting the image to be connected to an image outside the special effect area; an orthogonal coordinate conversion unit 27 for converting an rθ coordinate system to an xy coordinate system; An adder 29 for adding the x address converted into the xy coordinate system by the coordinate conversion means 27 and the parameter xc of the center position of the special effect area sent from the CPU 32; and a conversion to the xy coordinate system by the orthogonal coordinate conversion means 27 An adder 30 for adding the y-address obtained and the parameter yc of the center position of the special effect area sent from the CPU 32, and outputs from the adders 29 and 30 within the range of the special effect area. As a read address, and outside the range of the special effect area, a sequential read address x, y is output as a read address. The switching means 31 compares the polar coordinate r with the radius R of the sphere, and sends the read address to the switching means 31. And a determination unit 28 that outputs a switching signal of
[0008]
In FIG. 1, a write address generating means 11 generates a sequential address, and a video signal for one frame is written to the frame memory buffer 10 based on this address. The video signal for one frame is handled as one image signal. The read address generating means 12 generates a read address for applying a special effect from the input sequential read address, and an image signal is read from the corresponding read address of the frame memory buffer 10.
[0009]
The operation of the read address generation means 12 will be described with reference to FIG.
The x address of the sequential address is added to the parameter (−xc) of the center position of the special effect area sent from the CPU 32 by the adder 20, and the y address of the sequential address is added by the adder 21 to the CPU 32. It is added to the parameter (-yc) of the center position of the sent special effect area. The outputs of the adders 20 and 21 are input to a polar coordinate conversion means 22, and the sequential addresses in the xy coordinate system are converted into addresses in the rθ coordinate system with the origin at (xc, yc).
[0010]
The modulation amount generating means 23 generates a basic modulation amount of r from the polar coordinate r and the radius R of the sphere sent from the CPU 32. The basic modulation amount is multiplied by the curvature adjustment parameter k sent from the CPU 32 by the multiplier 24 to generate a modulation amount. The modulation amount is added to the polar coordinate r by the adder 25.
The multiplier 26 multiplies the polar coordinate r to which the modulation amount has been added by an enlargement correction parameter c for correcting the end of the special effect area so as to be continuously connected to an image outside the special effect area. The orthogonal coordinate conversion means 27 converts the address of the rθ coordinate system including the corrected polar coordinate r and the polar coordinate θ into the address of the xy coordinate system. The adder 29 adds the parameter xc of the center position of the special effect area sent from the CPU 32 to the x address output from the orthogonal coordinate conversion means 27. The y address output from the orthogonal coordinate conversion means 27 , The parameter yc of the center position of the special effect area sent from the CPU 32 is added by the adder 30.
[0011]
The switching unit 31 switches the output (X, Y) of the read address to the sequential address (x, y) or the output of the adders 29 and 30 according to the switching signal output from the determination unit 28.
The determination means 28 compares r output from the polar coordinate conversion means 22 with the radius R of the sphere sent from the CPU 32. If r is equal to or less than R, the outputs of the adders 29 and 30 are read out at the address ( X, Y), and when r exceeds R, a read address switching signal for setting the sequential address (x, y) as the read address (X, Y) is output to the switching means 31.
[0012]
The flowchart of FIG. 3 shows the operation procedure of the image special effect device. Note that, in each drawing of the flowchart, steps representing operation procedures are indicated by "S".
The frame memory buffer 10 writes the video signal for one frame into the frame memory according to the address output from the write address generating means 11 (Step 101). The sequential read address (x, y) is input to the read address generator 12 (Step 102).
[0013]
The adder 20 and the adder 21
x1= X-xc
y1= Y-yc
, The difference x from the center position of the effect to the read address x, y1, Y1Is obtained (step 103). Here, xc and yc are the x and y coordinates of the center position of the special effect area, that is, the center position of the sphere, and are set by the CPU 32.
[0014]
Polar coordinate conversion means 24
r = √ (x1 2+ Y1 2)
θ = tan-1(Y1/ X1)
Gives the address (x1, Y1) Is converted to an address (θ, r) in the polar coordinate system (step 104).
[0015]
The modulation amount generating means 23 calculates, from r and the radius R of the sphere sent from the CPU 32,
rm= Rsin-1(R / R) -r
The basic modulation amount rmIs obtained (step 105). Here, the basic modulation amount rm is a function as shown in FIG.
The multiplier 24
dr = krm
The modulation amount dr is obtained by the following (Step 106). Here, k is the amplitude of the modulation amount, and is a parameter for adjusting the curvature. This is set by the CPU 32.
[0016]
The adder 25
r1= R + dr
Thus, the read address after modulation at r is obtained (step 107).
The multiplier 26
r2= Cr1
Thus, the read address is corrected so that the end of the special effect area is continuously connected to the image outside the special effect area (step 108). Here, the enlargement correction parameter c is
c = 1 / {k (π / 2-1) +1}
Is determined by the CPU 32 and set.
[0017]
The orthogonal coordinate conversion means 27
x2= R2cos θ
y2= R2sin θ
, The read address of the polar coordinate system (θ, r2) To the address (x2, Y2) (Step 109).
The adder 29 and the adder 30
x3= X2+ Xc
y3= Y2+ Yc
Thus, the origin of the coordinate system is returned by adding the value of the center position (xc, yc) of the special effect area as an offset value, and is used as a read address for applying the special effect (step 110).
[0018]
The judging means 28 compares r in the polar coordinate system with the radius R of the sphere set by the CPU 32,
r <R
Is determined (step 111). When r <R, the switching unit 31 sets the read address (X, Y) as
X = x3
Y = y3
Is output (step 112). When r <R is not satisfied, the switching unit 31 sets the read address (X, Y) as
X = x
Y = y
Is output (step 113).
The read address generating means 12 reads the video signal for one frame written in the frame memory buffer 10 by using the read address (X, Y) (step 114).
[0019]
As described above, in this image special effect device, the curvature of the sphere can be freely changed by changing the amplitude of the modulation amount for changing the image into a sphere and correcting the enlargement ratio for the read address in the polar coordinate system r. And a spherical special effect corrected so as to be continuously connected to the special effect area of the image can be given.
[0020]
(Second embodiment)
As shown in FIG. 9B, the image special effect device according to the second embodiment of the present invention can remove the portion of the original image (FIG. 9A) outside the special effect area, and The phase of the image in the special effect area can be changed as if the image were rotated horizontally or vertically.
As shown in FIG. 6, the image special effect device includes black level output means 40 for outputting an image signal of a black level (or a fixed level such as a white level) outside the range of the special effect area. The read address generating means 12 receives the sequential read address as input, generates a read address of the frame memory buffer 10 and outputs the read address to the frame memory buffer 10, and generates a key signal indicating the inside / outside of the special effect area to generate a black signal. Output to the level output means 40. Other configurations are the same as those of the first embodiment (FIG. 1).
[0021]
As shown in FIG. 7, the configuration of the read address generation unit 12 corresponds to the configuration of the first embodiment (FIG. 2) except for the switching unit.
The CPU 32 also determines the radius R of the sphere to be deformed and displayed, the parameter k for adjusting the curvature, the center position (xc, yc) of the special effect area, and the image offset parameter (xd, yd). Various parameters are calculated from the parameters for obtaining the effect of horizontal rotation.
[0022]
The multiplier 26 multiplies the output of the adder 25 in which the modulation amount is added to the polar coordinate r by an enlargement correction parameter c for correcting the read address so that the sphere has a desired radius.
The determination means 28 outputs the determination result to the black level output means 40 as a key signal.
The adder 29 and the adder 30 add the image offset parameters (xd, yd) to the rectangular coordinates converted from the polar coordinates by the rectangular coordinate conversion means 27 to obtain the read address (X, Y) of the special effect area. Generate.
Other configurations and operations are the same as those of the first embodiment.
[0023]
The flowchart of FIG. 8 shows the operation of the image special effect device. In this flowchart, the procedure from step 101 to step 107 is the same as in the first embodiment (FIG. 3).
The multiplier 26 calculates r by adding the modulation amount to r.1Using,
r2= Cr1
Thus, the read address is corrected so that the sphere has a desired radius (step 108). Here, the enlargement correction parameter c is
c = 1 / {k (π / 2-1) +1}
Is determined by the CPU 32 and set.
[0024]
The orthogonal coordinate conversion means 27
x2= R2cos θ
y2= R2sin θ
, The read address of the polar coordinate system (θ, r2) To the address (x2, Y2) (Step 109).
The adder 29 and the adder 30
X = x2+ Xd
Y = y2+ Yd
Gives (x2, Y2) Is added to the values of xd and yd as offset values to obtain read addresses for applying special effects (step 201). Here, xd and yd are parameters for adjusting the phase of the image. By adjusting these parameters, an effect of rotating the image in the special effect area vertically or horizontally can be realized. When xd = xc and yd = yc, the image is not rotated.
[0025]
The judging means 28 compares r in the polar coordinate system with the radius R of the sphere set by the CPU 32,
r <R
Is determined (step 111). If r <R, the judging means 28 outputs the key signal as 1 (step 202), and if r <R, outputs the key signal as 0 (step 203).
[0026]
The read address generation means 12 reads the video signal for one frame written in the frame memory buffer 10 by using the read address (X, Y) (step 114).
When the key signal output from the read address generation means 12 is 0, the black level output means 40 converts the signal into a black level image signal and outputs it (step 204).
[0027]
As described above, the image special effect device adds the offset value for adjusting the horizontal or vertical rotation of the image after performing the orthogonal coordinate transformation, and outputs the key signal output from the determination unit to the black level output. Has given to the means. By doing so, the portion of the image outside the special effect area can be removed, and the phase of the image in the special effect area can be changed as if the sphere were rotated horizontally or vertically.
[0028]
Here, the case where the part other than the special effect area is displayed in black has been described. However, the part other than the special effect area is whitened as shown in FIG. It can also be displayed.
[0029]
(Third embodiment)
The image special effect device according to the third embodiment of the present invention can remove the portion of the original image (FIG. 12A) outside the special effect area as shown in FIG. The image in the effect area can be rotated two-dimensionally.
The overall configuration of this device is the same as in the second embodiment (FIG. 6). As shown in FIG. 10, the read address generation unit 12 includes an adder 50 that adds the two-dimensional rotation amount θc to the polar coordinate θ generated by the polar coordinate conversion unit 22 and outputs the result to the orthogonal coordinate conversion unit 27. . The CPU 32 also calculates various parameters from the radius R of the sphere to be deformed and displayed, the parameter k for adjusting the curvature, the center position (xc, yc) of the special effect area, the image offset parameter (xd, yd), and the two-dimensional rotation amount θc. Calculate.
Other configurations are the same as those of the second embodiment (FIG. 7).
[0030]
The flowchart of FIG. 11 shows the operation of the image special effect device. In this flowchart, the procedure from step 101 to step 108 is the same as in the second embodiment (FIG. 8).
The adder 50, based on the polar coordinate θ converted by the polar coordinate conversion means 22,
θ1= Θ + θc
Gives the offset θc plus θ1Is obtained (step 301). Here, θc is a parameter of the two-dimensional rotation amount set by the CPU 32, and by adjusting this parameter, an effect as if the image in the special effect area is two-dimensionally rotated can be provided.
[0031]
The orthogonal coordinate conversion means 27
x2= R2cos θ1
y2= R2sin θ1
Gives the read address of the polar coordinate system (θ1, R2) To the address (x2, Y2) (Step 109).
The procedure from step 201 to step 204 thereafter is the same as in the second embodiment (FIG. 8).
[0032]
As described above, in this image special effect device, the orthogonal coordinate conversion is performed after adding the offset value to θ after the polar coordinate conversion. This makes it possible to realize a special effect in which a spherical image displayed only in the special effect area is two-dimensionally rotated.
[0033]
(Fourth embodiment)
As shown in FIG. 15B, the image special effect device according to the fourth embodiment of the present invention connects the left end to the right end of the original image (FIG. 15A) even when the sphere is rotated. Can be displayed without interruption.
The overall configuration of this device is the same as in the second embodiment (FIG. 6). As shown in FIG. 13, the read address generation means 12 repeats the address value within the effective screen range even if the address values output from the adders 29 and 30 are out of the effective screen range. It has. The CPU 32 also determines the radius R of the sphere to be deformed and displayed, the parameter k for adjusting the curvature, the center position (xc, yc) of the special effect area, the image offset parameter (xd, yd), and the vertical and horizontal dimensions wx of the image. , Wy are calculated.
Other configurations are the same as those of the second embodiment (FIG. 7).
[0034]
The flowchart of FIG. 14 shows the operation of the image special effect device. In this flowchart, the procedure from step 101 to step 109 is the same as in the second embodiment (FIG. 8).
The adder 29 and the adder 30 calculate the orthogonally transformed coordinate value x.2, Y2To the offset values xd and yd,
x3= X2+ Xd
y3= Y2+ Yd
As a result, a read address for applying a special effect is obtained (step 201).
[0035]
The repetitive address generation means 60
X = mod (x3, Wx)
Y = mod (y3, Wy)
Is converted to an address within the effective screen range (step 401). Here, wx and wy are the vertical and horizontal sizes of the image, and mod (A, B) is an operation for obtaining the remainder of A / B.
[0036]
Therefore, x3If <wx, X = x3And x3If ≧ wx, X = x3−wx. That is, x3, Y3Is outside the effective screen range, x3, Y3Is subtracted from the size wx, wy of the effective screen range to generate a read address within the effective screen range.
The subsequent steps 111 to 204 are the same as in the second embodiment (FIG. 8).
[0037]
As described above, in this image special effect device, the output read address is repeated in the effective pixel range. In this way, even when a rotated sphere is displayed in the special effect area, the image can be displayed without interruption.
[0038]
(Fifth embodiment)
As shown in FIG. 18, the image special effect device according to the fifth embodiment of the present invention can display a spherical special effect image symmetrically at a reference position.
The overall configuration of this device is the same as in the first embodiment (FIG. 1). As shown in FIG. 16, the read address generation means 12 includes a radius R of the sphere to be deformed and displayed, a parameter k for adjusting the curvature, a center position (xc, yc) of the special effect area, and a symmetric reference position (xb, yb). CPU 32 for calculating various parameters from the above, an area dividing means 70 for converting a sequential read address into an address which is symmetrically folded at a reference position, an x coordinate output from the area dividing means 70 and a special effect area sent from the CPU 32 The adder 20 adds the parameter (-xc) of the center position, and adds the y coordinate output from the area dividing means 70 and the parameter (-yc) of the center position of the special effect area sent from the CPU 32. The addresses obtained by the adders 29 and 30 based on the adder 21 and the return flag signal output from the area dividing means 70. , A symmetric effect generating means 71 for generating a read address for giving a special effect symmetric to the special effect given by the address value, and a read-out output from the symmetric effect generating means 71 by a switching signal from the judging means 28 Switching means 31 for switching and outputting an address or a sequential read address. Other configurations are the same as those of the first embodiment (FIG. 2).
[0039]
The flowchart of FIG. 17 shows the operation of the image special effect device.
The frame memory buffer 10 writes the video signal for one frame into the frame memory according to the address output from the write address generating means 11 (Step 101).
When the sequential read address (x, y) is input to the read address generating means 12 (Step 102), the area dividing means 70
x <xb
Is determined (step 501). When x <xb, the area dividing means 70
x0= X
And 0 is set as the division X flag (step 502). When x ≧ xb, the area dividing means 70 sets the address to be symmetrically folded back from the reference position.
x0= 2xb-x
And 1 is set as the division X flag (step 503).
[0040]
Similarly, for the y coordinate, the region dividing means 70
y <yb
(Step 504), and when y <yb, the area dividing means 70
y0= Y
And 0 is set as the division Y flag (step 505). When y ≧ yb, the area dividing means 70
y0= 2yb-y
And 1 is set as the division Y flag (step 506).
[0041]
The adder 20 and the adder 21
x1= X0-Xc
y1= Y0-Yc
, The difference x from the center position of the special effect area to the read addresses x, y1, Y1Is obtained (step 103).
[0042]
The procedure from step 104 to step 110 is the same as in the first embodiment (FIG. 3).
That is, the polar coordinate conversion means 24
r = √ (x1 2+ Y1 2)
θ = tan-1(Y1/ X1)
Gives the address (x1, Y1) Is converted to an address (θ, r) in the polar coordinate system (step 104).
The modulation amount generating means 23 calculates, from r and the radius R of the sphere sent from the CPU 32,
rm= Rsin-1(R / R) -r
The basic modulation amount rmIs obtained (step 105). Here, the basic modulation amount rm is a function as shown in FIG.
The multiplier 24
dr = krm
The modulation amount dr is obtained by the following (Step 106). Here, k is the amplitude of the modulation amount, and is a parameter for adjusting the curvature. This is set by the CPU 32.
[0043]
The adder 25
r1= R + dr
Thus, the read address after modulation at r is obtained (step 107).
The multiplier 26
r2= Cr1
Thus, the read address is corrected so that the end of the special effect area is continuously connected to the image outside the special effect area (step 108). Here, the enlargement correction parameter c is
c = 1 / {k (π / 2-1) +1}
Is determined by the CPU 32 and set.
The orthogonal coordinate conversion means 27
x2= R2cos θ
y2= R2sin θ
, The read address of the polar coordinate system (θ, r2) To the address (x2, Y2) (Step 109).
[0044]
The adder 29 and the adder 30
x3= X2+ Xc
y3= Y2+ Yc
Thus, the origin of the coordinate system is returned by adding the value of the center position (xc, yc) of the special effect area as an offset value, and is used as a read address for applying the special effect (step 110).
The symmetry effect generating means 71 determines whether or not the division X flag is 0 (step 507).
x4= X3
(Step 508). When the division X flag is 1,
x4= 2xb-x3
(Step 509).
[0045]
Similarly, for the y coordinate, the symmetry effect generating means 71 determines whether or not the division Y flag is 0 (step 510).
y4= Y3
(Step 511). When the division Y flag is 1,
y4= 2yb-y3
(Step 512).
[0046]
The judging means 28 compares r in the polar coordinate system with the radius R of the sphere set by the CPU 32,
r <R
Is determined (step 111). When r <R, the switching unit 31 sets the read address (X, Y) as
X = x4
Y = y4
Is output (step 112). When r <R is not satisfied, the switching unit 31 sets the read address (X, Y) as
X = x
Y = y
Is output (step 113).
The read address generating means 12 reads the video signal for one frame written in the frame memory buffer 10 by using the read address (X, Y) (step 114).
[0047]
As described above, in this image special effect device, after the input read address is turned back by the area dividing means so as to be symmetrical at the reference position, the read address is generated so as to obtain a spherical special effect. Processing is performed by the symmetric effect generation means to restore the folded read address. In this way, a spherical special effect symmetrical with respect to the reference position can be provided.
[0048]
In this embodiment, a case has been described in which a spherical special effect is applied to the xy axis axis symmetry. Then, processing may be performed so as to restore this return.
Also in this case, as shown in the second embodiment, the image outside the special effect area may be excluded.
[0049]
【The invention's effect】
As is apparent from the above description, the image special effect device of the present invention can deform a part of the input image into a sphere, and can freely change the curvature of the sphere. Therefore, the input image can be deformed into a spherical shape having a desired roundness.
[Brief description of the drawings]
FIG. 1 is a block diagram illustrating a configuration of an image special effect device according to a first embodiment of the present invention.
FIG. 2 is a block diagram illustrating a configuration of a read address generation unit of the image special effect device according to the first embodiment of the present invention.
FIG. 3 is a flowchart illustrating a processing procedure of the image special effect device according to the first embodiment of the present invention.
FIG. 4 is a diagram schematically showing an image to which a special effect has been added by the image special effect device according to the first embodiment of the present invention.
FIG. 5 is a diagram showing a function for giving a basic modulation amount in the image special effect device according to the embodiment of the present invention.
FIG. 6 is a block diagram illustrating a configuration of an image special effect device according to a second embodiment of the present invention.
FIG. 7 is a block diagram illustrating a configuration of a read address generation unit of the image special effect device according to the second embodiment of the present invention.
FIG. 8 is a flowchart showing a processing procedure of the image special effect device according to the second embodiment of the present invention.
FIG. 9 is a diagram schematically showing an image to which a special effect has been added by the image special effect device according to the second embodiment of the present invention.
FIG. 10 is a block diagram illustrating a configuration of a read address generation unit of the image special effect device according to the third embodiment of the present invention.
FIG. 11 is a flowchart illustrating a processing procedure of the image special effect device according to the third embodiment of the present invention.
FIG. 12 is a diagram schematically showing an image to which a special effect has been added by the image special effect device according to the third embodiment of the present invention.
FIG. 13 is a block diagram illustrating a configuration of a read address generation unit of the image special effect device according to the fourth embodiment of the present invention.
FIG. 14 is a flowchart illustrating a processing procedure of the image special effect device according to the fourth embodiment of the present invention.
FIG. 15 is a diagram schematically showing an image to which a special effect has been added by the image special effect device according to the fourth embodiment of the present invention.
FIG. 16 is a block diagram illustrating a configuration of a read address generation unit of an image special effect device according to a fifth embodiment of the present invention.
FIG. 17 is a flowchart illustrating a processing procedure of the image special effect device according to the fifth embodiment of the present invention.
FIG. 18 is a diagram schematically illustrating an image to which a special effect has been added by the image special effect device according to the fifth embodiment of the present invention.
[Explanation of symbols]
10 frame memory buffer
11 Write address generating means
12 Read address generation means
20 ° adder
21 adder
22 Polar coordinate conversion means
23 ° modulation amount generating means
24 multiplier
25 adder
26 multiplier
27 ° Cartesian coordinate conversion means
28 ° judgment means
29 ° adder
30 ° adder
31 ° switching means
32 CPU
40 ° black level output means
50 ° adder
60 ° repeated address generation means
70 ° area dividing means
71 ° symmetry effect generating means

Claims (8)

外部から入力される画像信号をメモリバッファに一時記憶し、前記メモリバッファに記憶された前記画像信号を、読み出しアドレス生成手段が生成した読み出しアドレスによって読み出すことにより、前記メモリバッファに記憶された前記画像信号に対して特殊効果を施す画像特殊効果装置において、
前記読み出しアドレス生成手段が、
直交座標系アドレスを、特殊効果を施す画像の中心を原点とする極座標系アドレスに変換する極座標変換手段と、
前記極座標系アドレスの変調量を生成する変調量生成手段と、
前記変調量の振幅を調整する変調量振幅調整手段と、
前記特殊効果を施す画像の拡大率を補正するために前記変調量が付加された極座標系アドレスを補正する補正手段と、
前記補正手段で補正された前記極座標系アドレスを直交座標系アドレスに変換して読み出しアドレスを生成する直交座標変換手段と、
前記極座標系アドレスの半径成分に基づいて、前記読み出しアドレスが前記特殊効果を施す画像の範囲内か否かを判定する判定手段と
を備え、入力画像の一部を任意の曲率の球に変形することを特徴とする画像特殊効果装置。
By temporarily storing an image signal input from the outside in a memory buffer and reading out the image signal stored in the memory buffer by using a read address generated by a read address generation unit, the image stored in the memory buffer is read out. In an image special effects device that applies special effects to signals,
The read address generation means,
Polar coordinate conversion means for converting the rectangular coordinate system address to a polar coordinate system address having the origin at the center of the image to be subjected to the special effect;
Modulation amount generating means for generating a modulation amount of the polar coordinate system address,
Modulation amount amplitude adjustment means for adjusting the amplitude of the modulation amount,
Correction means for correcting the polar coordinate system address to which the modulation amount has been added in order to correct the enlargement ratio of the image to which the special effect is applied;
Cartesian coordinate conversion means for converting the polar coordinate system address corrected by the correction means to a rectangular coordinate system address to generate a read address,
Determining means for determining whether or not the read address is within the range of the image to which the special effect is to be applied, based on a radius component of the polar coordinate system address, and transforms a part of the input image into a sphere having an arbitrary curvature. An image special effect device characterized by the above-mentioned.
前記判定手段が前記読み出しアドレスについて前記特殊効果を施す画像の範囲内であると判定したときだけ、前記メモリバッファの読み出しアドレスを、前記直交座標変換手段が生成した前記読み出しアドレスに切り替える切替手段を備えることを特徴とする請求項1に記載の画像特殊効果装置。Switching means for switching the read address of the memory buffer to the read address generated by the orthogonal coordinate conversion means only when the determination means determines that the read address is within the range of the image to which the special effect is applied. The image special effect device according to claim 1, wherein: 前記判定手段が前記読み出しアドレスについて前記特殊効果を施す画像の範囲外であると判定したとき、固定レベルの画像信号を出力する固定レベル出力手段を備え、前記判定手段が前記読み出しアドレスについて前記特殊効果を施す画像の範囲内であると判定したときだけ、前記メモリバッファから読み出された前記画像信号が出力されることを特徴とする請求項1に記載の画像特殊効果装置。When the determination means determines that the read address is outside the range of the image to which the special effect is applied, the determination means includes a fixed level output means for outputting a fixed level image signal, and wherein the determination means performs the special effect 2. The image special effect device according to claim 1, wherein the image signal read from the memory buffer is output only when it is determined that the image signal is within the range of the image to be processed. 前記直交座標変換手段は、前記補正手段で補正された前記極座標系アドレスを直交座標系アドレスに変換し、前記直交座標系アドレスに前記特殊効果を施す画像の中心の座標値を加算して、前記読み出しアドレスを生成することを特徴とする請求項1から請求項3までのいずれかに記載の画像特殊効果装置。The orthogonal coordinate conversion unit converts the polar coordinate system address corrected by the correction unit into a rectangular coordinate system address, and adds a coordinate value of a center of an image to which the special effect is applied to the rectangular coordinate system address, 4. The image special effect device according to claim 1, wherein a read address is generated. 前記直交座標変換手段は、前記補正手段で補正された前記極座標系アドレスを直交座標系アドレスに変換し、前記直交座標系アドレスにオフセット値を加算して、前記読み出しアドレスを生成することを特徴とする請求項1から請求項3までのいずれかに記載の画像特殊効果装置。The orthogonal coordinate conversion unit converts the polar coordinate system address corrected by the correction unit into a rectangular coordinate system address, adds an offset value to the rectangular coordinate system address, and generates the read address. The image special effect device according to any one of claims 1 to 3, wherein 前記極座標系アドレスの2次元回転の回転量を制御する2次元回転量加算手段を備え、前記直交座標変換手段が前記直交座標系アドレスに変換する前記極座標系アドレスに対して、前記2次元回転量加算手段により2次元回転の回転量が加算されていることを特徴とする請求項1から請求項5までのいずれかに記載の画像特殊効果装置。Two-dimensional rotation amount adding means for controlling a rotation amount of the two-dimensional rotation of the polar coordinate system address, wherein the rectangular coordinate conversion means converts the two-dimensional rotation amount with respect to the polar coordinate system address converted to the rectangular coordinate system address. 6. The image special effect device according to claim 1, wherein the rotation amount of the two-dimensional rotation is added by the adding means. 前記直交座標変換手段により生成された前記読み出しアドレスが有効画面範囲から外れたときに、当該読み出しアドレスから有効画面範囲の大きさを減算して、有効画面範囲内の読み出しアドレスを生成する繰り返しアドレス発生手段を備えることを特徴とする請求項5に記載の画像特殊効果装置。When the read address generated by the orthogonal coordinate conversion means deviates from the effective screen range, a repetitive address generation is performed to subtract the size of the effective screen range from the read address and generate a read address within the effective screen range. 6. The image special effect device according to claim 5, further comprising means. 前記メモリバッファの領域を対称な複数の領域に分割し、前記領域の一つを対象として前記特殊効果を施すための読み出しアドレスを生成し、前記読み出しアドレスを基に、前記複数の領域のそれぞれで前記特殊効果と対称な特殊効果を与えるための読み出しアドレスを生成することを特徴とする請求項1から請求項7までのいずれかに記載の画像特殊効果装置。Dividing the area of the memory buffer into a plurality of symmetrical areas, generating a read address for applying the special effect to one of the areas, and, based on the read address, in each of the plurality of areas 8. The image special effect device according to claim 1, wherein a read address for giving a special effect symmetric to the special effect is generated.
JP2002218345A 2002-07-26 2002-07-26 Device for special effect image Pending JP2004064309A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2002218345A JP2004064309A (en) 2002-07-26 2002-07-26 Device for special effect image

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2002218345A JP2004064309A (en) 2002-07-26 2002-07-26 Device for special effect image

Publications (1)

Publication Number Publication Date
JP2004064309A true JP2004064309A (en) 2004-02-26

Family

ID=31939567

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2002218345A Pending JP2004064309A (en) 2002-07-26 2002-07-26 Device for special effect image

Country Status (1)

Country Link
JP (1) JP2004064309A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2008126129A1 (en) * 2007-03-09 2008-10-23 Pioneer Corporation Video effect device, video processor, and program
CN100464569C (en) * 2007-04-17 2009-02-25 北京中星微电子有限公司 Method and system for adding special effects into image
CN101197945B (en) * 2007-12-26 2010-06-02 北京中星微电子有限公司 Method and device for generating special video effect
KR101007679B1 (en) * 2009-06-03 2011-01-13 주식회사 아인픽춰스 Apparatus of warping image generation for curved display and method thereof
US8698747B1 (en) 2009-10-12 2014-04-15 Mattel, Inc. Hand-activated controller

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2008126129A1 (en) * 2007-03-09 2008-10-23 Pioneer Corporation Video effect device, video processor, and program
CN100464569C (en) * 2007-04-17 2009-02-25 北京中星微电子有限公司 Method and system for adding special effects into image
CN101197945B (en) * 2007-12-26 2010-06-02 北京中星微电子有限公司 Method and device for generating special video effect
KR101007679B1 (en) * 2009-06-03 2011-01-13 주식회사 아인픽춰스 Apparatus of warping image generation for curved display and method thereof
US8698747B1 (en) 2009-10-12 2014-04-15 Mattel, Inc. Hand-activated controller

Similar Documents

Publication Publication Date Title
TWI524306B (en) Image transformation and multi-view output systems and methods
EP0437074B1 (en) Special effects using polar image coordinates
JP2007143173A (en) Method and apparatus for preventing keystone distortion
JP5046132B2 (en) Image data converter
JP2007088828A (en) Camera shake correction device
JP2012060517A (en) Image processing apparatus and image processing method
JP4728744B2 (en) Image processing device
US20110234611A1 (en) Method and apparatus for processing image in handheld device
JP2010170514A (en) Image data conversion device
JP2004320661A (en) Method for correcting area outside screen in geometrical correction interface using auxiliary line
JPH09149241A (en) Method and device for enlarging picture
JP2004064309A (en) Device for special effect image
JP6755811B2 (en) Image processing equipment, image processing methods, and programs
JPH1074258A (en) Image processing method and device therefor
JP2006215766A (en) Image display device, image display method and image display program
JP2007129633A (en) Wipe pattern generator
JP2010171624A (en) Outline correction circuit and interpolation pixel generation circuit
JP2005012407A (en) Picture projection device and picture processing method
JP2004129212A (en) Image projection device and image transformation method
JPH04343584A (en) Image data processor
JP2012168897A (en) Image processing device, control method therefor, and program
JP2970607B2 (en) Wipe pattern generator
JP2973978B2 (en) Wipe pattern generator
JP2004227470A (en) Image conversion method and image-converting computer program
JPH0816822A (en) Three-dimensional moving picture generation method