JPH04167076A - Two-dimensional image deformation processor - Google Patents

Two-dimensional image deformation processor

Info

Publication number
JPH04167076A
JPH04167076A JP2291762A JP29176290A JPH04167076A JP H04167076 A JPH04167076 A JP H04167076A JP 2291762 A JP2291762 A JP 2291762A JP 29176290 A JP29176290 A JP 29176290A JP H04167076 A JPH04167076 A JP H04167076A
Authority
JP
Japan
Prior art keywords
image
representative points
points
dimensional
coordinate
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
JP2291762A
Other languages
Japanese (ja)
Inventor
Hiroaki Takagi
高城 宏明
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.)
Fujifilm Business Innovation Corp
Original Assignee
Fuji Xerox 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 Fuji Xerox Co Ltd filed Critical Fuji Xerox Co Ltd
Priority to JP2291762A priority Critical patent/JPH04167076A/en
Publication of JPH04167076A publication Critical patent/JPH04167076A/en
Pending legal-status Critical Current

Links

Landscapes

  • Processing Or Creating Images (AREA)
  • Image Processing (AREA)

Abstract

PURPOSE:To deform an image which is a two-dimensional plane so that the image is made simply uneven still in the form of two-dimensional information by giving random distortion to the two-dimensional image and changing its shape. CONSTITUTION:Representative points which are separated at certain intervals are determined by 1st processing means 102 - 104 in the two-dimensional plane image, and the coordinates of those representative points are converted by using a random function to restrict the range wherein the coordinates move so that adjacent representative points interfere. When the coordinate conversion of all the representative points is completed, coordinate converting processes for points other than the representative points are performed by 2nd processing means 102, and 105 - 108. This coordinate conversion is carried out in small plane units consisting of plural adjacent representative points. Namely, the two-dimensional image is distorted at random and deformed. Consequently, the operation is easy, the amount of data which are processed decreases, and the processing speed becomes fast.

Description

【発明の詳細な説明】[Detailed description of the invention] 【産業上の利用分野】[Industrial application field]

本発明は二次元のビットマツプ画像の形状を変える二次
元画像変形処理装置に関する。
The present invention relates to a two-dimensional image transformation processing device that changes the shape of a two-dimensional bitmap image.

【従来の技術】[Conventional technology]

二次元の平面である画像に凹凸感をつけて立体的に見せ
る、いわゆる特殊的な表現効果を狙いとした機能が画像
処理やコンピュータグラフィックの世界では必要とされ
る。平面画像に凹凸感をつけるためには、形状に変化を
与えなければならない。形状の変化を本格的に与えて凹
凸感をつけるためには、三次元空間の中で高さの変化の
ある立体モデルを生成し、その上に平面画像を貼りつけ
るテクスチャマツピングがある(例えば、安居院他:「
複数な三次元形状に対するテクスチャマツピング」、グ
ラフィックスとCAD31−7 (1988,2,26
)参照)。この方法によればリアルな凹凸表現が可能と
なるが、三次元の立体モデルを作成するのが面倒である
。さらに、処理に用いられるデータが三次元情報である
ため、データ量が多く、また計算量も多くなるという問
題があった。凹凸感を与える別の方法として三次元の立
体モデルを用いずに、二次元平面内で自出自面を生成し
、その曲面にテクスチャマツピングを行うこ去により平
面画像に凹凸感をつけたように変形させる方法も考えら
れる。しかし、山面生成では形状を決定するための制御
点の位置を決定することが必要であり、これも面倒な操
作であった。
In the world of image processing and computer graphics, there is a need for functions aimed at so-called special expressive effects that give a two-dimensional plane image a sense of unevenness to make it appear three-dimensional. In order to give a flat image a sense of unevenness, it is necessary to change the shape. In order to fully change the shape and create a sense of unevenness, there is texture mapping, which generates a 3D model with varying heights in 3D space and pastes a flat image on top of it (for example, , Angoin et al.: “
"Texture Mapping for Multiple Three-Dimensional Shapes", Graphics and CAD31-7 (1988, 2, 26
)reference). Although this method makes it possible to express realistic unevenness, it is troublesome to create a three-dimensional three-dimensional model. Furthermore, since the data used for processing is three-dimensional information, there is a problem in that the amount of data and the amount of calculation are large. Another method to give a sense of unevenness is to generate a self-contained surface in a two-dimensional plane without using a three-dimensional solid model, and then perform texture mapping on that curved surface.This gives a sense of unevenness to a flat image. Another possible method is to transform it into However, when generating a mountain surface, it is necessary to determine the positions of control points for determining the shape, which is also a troublesome operation.

【発明が解決しようとする課題】[Problem to be solved by the invention]

本発明は上記した問題を解消するために提案されたもの
で、二次元の平面である画像に二次元情報のままで簡単
に凹凸感をつけたように変形する二次元画像の変形処理
装置を提供することを目的とするものである。
The present invention was proposed in order to solve the above-mentioned problems, and provides a two-dimensional image deformation processing device that easily deforms a two-dimensional plane image so that it has unevenness while retaining two-dimensional information. The purpose is to provide

【課題を解決するための手段】[Means to solve the problem]

本発明の二次元画像変形処理装置は、二次元平面のii
像の中のある間隔ずつ離れた代表点に対しては隣接する
代表点と干渉しない移動範囲内でランダムな値を用いて
任意の位置へ座標変換する第1の処理手段(第1図10
3〜104.102)と、代表点以外の点に対しては隣
接した複数の代表点から構成される小平面WIi像単位
での変形関数をもとにして座標変換する第2の処理手段
(第1図105〜108,102)とを備えている。
The two-dimensional image deformation processing device of the present invention has two-dimensional
A first processing means converts the coordinates of representative points separated by a certain interval in the image to arbitrary positions using random values within a movement range that does not interfere with adjacent representative points (see Fig. 10).
3 to 104.102), and a second processing means that performs coordinate transformation for points other than the representative points based on a deformation function for each small plane WIi image composed of a plurality of adjacent representative points ( 105-108, 102) in FIG.

【作用】 第1の処理手段においては、まず、二次元平面の画像(
第2図)の中において、ある間隔ずつ離れた代表点(第
3図)を決定する。この代表点に対してランダム関数を
用いて座標変換を行う。その変換により座標の移動する
範囲は隣接する代表点と干渉しないように制限する(第
4図)、これは、移動距離が大きいと隣接する点を飛び
越えた位置に配置されてしまい、代表点同士の並びが入
れかわるという問題を避けるために必要である。 この座標変換は、例えば後述する(1)式(2)式によ
り算出する。 すべての代表点に対し座標変換処理が終了したら、代表
点以外の点に対する座標変換処理を第2の処理手段によ
り行う。この座標変換は、隣接した複数の代表点から構
成される小平面単位で行う。 例えば、隣接する3つの代表点を結ぶ三角形を単位とす
る(第5図)。変換には例えばアフィン変換を用いる。 本発明によれば、二次元の画像にランダムな歪みを与え
ることにより形状を変更するので、三次元立体モデルや
二次元平面内自由曲面に対するテクスチャマツピングに
より凹凸感を付与する前述の従来の技術に比べて、操作
が簡単で、処理すべきデータ量が少なくなり、処理速度
が速くなる利点がある。
[Operation] In the first processing means, first, a two-dimensional plane image (
2), representative points (FIG. 3) separated by a certain interval are determined. Coordinate transformation is performed on this representative point using a random function. Through this transformation, the range in which the coordinates move is limited so that they do not interfere with adjacent representative points (Figure 4).This means that if the moving distance is large, the coordinates will be placed at a position that jumps over adjacent points, and the representative points will This is necessary to avoid the problem of swapping the order of the . This coordinate transformation is calculated, for example, using equations (1) and (2), which will be described later. When the coordinate transformation process is completed for all the representative points, the second processing means performs the coordinate transformation process for points other than the representative points. This coordinate transformation is performed in units of small planes each consisting of a plurality of adjacent representative points. For example, the unit is a triangle connecting three adjacent representative points (FIG. 5). For example, affine transformation is used for the transformation. According to the present invention, since the shape is changed by applying random distortion to a two-dimensional image, the above-mentioned conventional technology that imparts a sense of unevenness by texture mapping to a three-dimensional three-dimensional model or a free-form surface in a two-dimensional plane It has the advantages of being easier to operate, requiring less data to be processed, and faster processing speed.

【実施例】【Example】

本発明の一実施例を図面を参照しながら説明する。 この実施例の変形処理装置は第1図に示すように、変形
前後の画像の大きさや位置に関する情報や変形処理単位
となる小平面画像の大きさなどの情報を入力する変形初
期値入力部101と、入力された初期値より変形処理単
位となる小平画像の選択手順を制御し、また変形処理後
の小平面画像内の整数座標である点の選択手順を制御す
るトレース制御部102と、Oから1までの間のランダ
ムな値を発生するランダム値発生部103と、ランダム
値発生部103から発生されたランダム値を用いて選択
した小平面画像の頂点にっ〜)て変形処理後の座標値を
計算する変形座標値計算部104と、選択した小平面画
像とその変形処理後の小平面Ii像の頂点座標値から変
形の座標計算式を求めさらにその式から逆変形の座標計
算式を求める座標計算式生成部105と、変形処理後の
小平面画像内の整数座標値である点を検出する整数座標
点検出部106と、整数座標点検出部106により検出
した点に対して逆変形の座標計算式を用いて原画像上の
座標値を計算する逆変形座標値計算部107と、計算さ
れた座標値から補間演算により変形後の画像上の新画素
値を計算する補間処理部108と、画素値の書き込みと
読み込みの制御を行う画素入出力制御部109から構成
されている。110は変形処理前後の画像データを記憶
する画像メモリである。 まず、この実施例の変形処理の概要について説明する。 第2図は二次元平面の原画像の例である。この画像は水
平方向の幅をW、とし、垂直方向の高さをHlとする。 これらの大きさの単位はここでは画素数とする。画像の
左下隅の画素psLaの座標を(XaLo、YIILD
)とする。画像の右上隅の画素P IIRIIの座標値
(XsRu、YSRU)は(Xsto+Ws−1,Ys
to + Hs−l)で表される。コノ二次元ノ平面画
像に対して変形を行う。本発明は忠実な凹凸具合を表現
することが目的ではなく、立体感を感じさせるように変
形することが目的である。そこで本発明では二次元の画
像にランダムな歪みを与えて形状を変更することにより
立体感を感じさせようとするものである。 第3図は、第2図の原画像の中から等間隔に位置する画
素を代表点として表示した例である。図中の黒丸が代表
点である。この図の例では代表点の水平方向と垂直方向
の間隔を等しくしたが、これに限定する必要はない。代
表点は間隔を画素数で指定しても良いし、または原画像
を水平方向と垂直方向に対してあ木骨割数を与えて決め
ても良い。 ではこの代表点に対してランダム関数を用いて座標変換
を行うことにする。第4図は1つの代表点とその回りに
位置する複数の代表点の様子を示した例である。同図で
は9個の代表点を示しているが、この中で中心に位置す
る代表点に着目し、その点に対して処理する場合を考え
ることにする。 中心の代表点Pcの座標は(Xc、Yc)とする。 隣接する2つの代表点の間隔は水平方向がWP%垂直方
向がHPとする。この例では第3図では代表点を等間隔
に配置したため第4図におけるWpとH,とは等しい。 いま中心の代表点Pcを任意の位置に動かすことにする
。この点はその移動距離が大きいと隣接する点を飛び越
えた位置に配置されてしまい、代表点同志の並びが入れ
かわるという問題が起きる。他の代表点も任意の移動を
行うので、この問題が起きないように移動範囲を制限す
る必要がある。第4図の中心の代表点PCの回りを取り
囲む点線をこの点の移動範囲とする。すなわちこの条件
により中心の代表点P。の動く範囲は(xc−Wp/2
〜Xc+Wp/2.Yc−Hp/2〜Yc+Hp/2)
となる。この移動範囲内で座標変換を行う水平垂直の各
方向の変換式を式(1)と式(2)に示す。この式の中
でRAND (X)とRAND (Y)はランダム関数
で値は0からIまで出力されるものとする。RAND 
(X)とRAND (Y)は1つのランダム関数RAN
Dで兼用しても良い。そのときは式(1)と式(2)で
関数RANDは異なる値をとるようにする必要がある。 X、Yは移動変換前の水平と垂直の各方向の座標値であ
り X l 、 Y lは移動変換後の座標値である。 X’=Xc−Wp/2+RAND(X)xWp   (
1)Y’=Yc−H,/2+RAND(Y)零HP  
(2)以上の式で全ての代表点に対して移動変換処理を
行う。では次に代表点以外の点に対して移動変換処理を
行う方法につ〜)て述べる。第5図は代表点の中から隣
接する3つの代表点を取り出し、その代表点とともに代
表点以外の点をも移動変換処理する方法を示す例である
。第5図(a)は複数の代表点の中から隣接する3つの
代表点を取り出したものである。第5図(b)は代表点
とそれらの間の点をも示したものであり、黒丸が代表点
で、白丸が3つの代表点から作られる三角形の画像内部
にある点である。第5図(C)は3つの代表点をそれぞ
れ点線で示した移動範囲内で移動変換処理した後の様子
を示すものである。移動変換処理により第5図(a)の
代表点で構成される直角三角形の画像は第5図(c)の
任意の形状の三角形の画像に変形される。この変形処理
は式(1)と式(2)のFli、標変換により行われる
が、この変換にアフィン変換を当てはめることにする。 このとき例えば移動変換前の2つの代表点の中間に位置
する点は移動変換後の2つの代表点の中間の位置に変換
されるものと考えられる。アフィン変換のための座標計
算式の係数は移動変換前後の三角形画像の6つの頂点の
座標値により求められる。これより求めた座標計算式よ
り移動変換後から変換前への逆変形の座標計算式を求め
ておき、変形処理後の三角形画像の内部にある点をトレ
ースにより選択し、逆変形の座標計算式により変形処理
前の三角形画像の内部の座標値を求め、補間処理により
計算した画素値を選択点に書きこむことで変形処理を行
う。補間処理の方式は最近傍補間や4点線形補間などい
くつかのものがあるが、これらは処理速度や画質などに
違いを与えるものなので操作者が好みのものを選択すれ
ばよい。 原画像全体の変形を行うためには先に述べた三角形画像
に対する変形を原画像にある全ての三角形画像に対して
行えばよい。その全ての三角形画像を順々に選択する方
法について述べる。第6図は第3図の原画像を複数個の
三角形画像に分割し、それらをトレースする一例を示し
たものである。 矢印がトレース順序を表す。まず左下隅の三角形画像か
ら選択を初めて、右隣りの三角形画像へ選択を進め、一
番右端の三角形画像まで進んだら、上の段に進み同様に
選択を進める。このような選択を最後の右上隅の三角形
画像まで繰り返す。変形処理は各三角形tm&の選択時
に行う。隣接する2つの三角形は共有する点を含んでい
る。そこで1つの三角形画像の代表点のうち、後に選択
する三角形画像の代表点については、その点の変形座標
値は後の選択時に処理するまで保持しておく。 三角形画像の3頂点の中で下側にある点などは、トレー
スが上段に進んだときに再び使用される。 よって1.ライン分の代表点の数だけ移動変換後の座標
値を保持しておくことは最低必要である。 では、第1vlJに示す本実施例の変形処理装置による
三角形画像のトレースや変形処理などを含む全体の処理
フローについて説明する。第7図にそのフローを示す。 (701)  変形初期値入力部101により変形に必
要な初期情報を入力する。情報としては変形前後の画像
の大きさや位置、代表点同志の間隔もしくは変形処理単
位の小平面画像への分割数がある。 (702)  )レース制御部102により原画#!領
領域三角形mcaに分割しトレースを始める。 (703)   )レース制御部102のトレース制御
により三角形画像を順々に選択する。 (704)  変形座標値計算部104は、選択した三
角形画像の3頂点の座標値に対して、前記(1)式およ
び(2)式を用いて移動変換処理のための座標計算を行
う。ここでは3頂点の中で座標計算を行っていない点の
みに対して計算する。 すでに計算されている点についてはその値を用いる。ま
た後で再利用する点の座標値は記憶してお(。tt t
d、ランダム値RAND (X)、RAND(Y)はラ
ンダム値発生部103により発生したものを用いる。 (705)  座標計算式生成部105において、ステ
ップ(703)で選択した三角形画像の頂点の座標値と
ステップ(704)により得られた座標値とから、その
三角形画像に対する変形の座標計算式を求める。 (70B)  さらに座標計算式生成部105において
、ステップ(705)で得られた変形の座標計算式より
逆変形の座標計算式を求める。 (707)  ステップ(704)により得られた変形
後の三角形画像についてその領域内の整数座標である点
のトレースを開始する。このトレースはトレース制御部
102の制御のもとに動作する整数座標点検出部106
を川■て行われる。 この先ステップ(708)から(713)までが1つの
三角形画像に対しての変形処理となる。 (708)  )レース制御部102は、変形後の三角
形画像領域内のトレースにより整数座標値である点を順
に選択する。 (709)  迂変形座標値計算部107は、ステップ
(708)で選択した点に対してステップ(706)で
求めた逆変形の座標計算式を用いて座標計算を行い、原
画像上の座標値を求める。 (710)  ステップ(709)で求めた座標値の近
傍にある1つ以上の整数座標値である点の画素値を、画
素人出力制御部109の制御により画像メモリ110か
ら読み出す。 (711)  補間処理108は、読み出した画素値を
もとに補間処理を行い新たな画素値を計算する。 (712)  求めた新画素値を画像メモリ110上の
、トレースにより選択した変形後の三角形画像内の整数
座標値である点に書き込む。 (713)   )レース制御部102により、変形後
の三角形画像領域内のトレースが終了したが否かを判定
する。Yesの場合はステップ(714)に進み、No
の場合はステップ(708)に戻る。 (714)  原画像上の三角形画像のトレースが終了
したか否かを判定する。 最後に本発明を実施するためのハードウェア全体の構成
の一例を第8図に示す。同図において、81は計算機、
82は中央演算処理装置、83は画像変形処理部、84
は画像メモリ、85は入力装置、86はデイスプレィ、
87はスキャナ、88はプリンタ、89はバスである。 入力装置85は計算機に命令等を与えるためのものであ
る。デイスプレィ86は画像を出力表示するものである
。 デイスプレィ86は画像を出力表示するものである。ス
キャナ87は画像入力するもので、プリンタ88は画像
を出力するものである。パス89は画像データや制御情
報を受渡しする役割を果たす。 画像メモリ84は画像データを記憶するものであり、中
央演算処理装w182は画像処理装置全体の制御や一般
的な演算を行うものである。画像変形処理部83は、先
に説明したように画像変形のための処理を行うもので第
1図に示す構成を有するものである。
An embodiment of the present invention will be described with reference to the drawings. As shown in FIG. 1, the deformation processing device of this embodiment includes a deformation initial value input section 101 that inputs information such as the size and position of images before and after deformation, and the size of a small plane image that is a unit of deformation processing. , a trace control unit 102 that controls the selection procedure of a Kodaira image to be a unit of transformation processing based on the input initial value, and also controls the selection procedure of a point that is an integer coordinate in the small plane image after the transformation processing; The random value generation unit 103 generates a random value between 1 and 1, and the coordinates of the selected small plane image using the random value generated from the random value generation unit 103 after the transformation process are determined. A deformation coordinate value calculation unit 104 that calculates a value calculates a coordinate calculation formula for deformation from the vertex coordinate values of the selected small plane image and the small plane Ii image after the deformation processing, and further calculates a coordinate calculation formula for inverse deformation from that formula. A coordinate calculation formula generation unit 105 to be obtained, an integer coordinate point detection unit 106 that detects a point with an integer coordinate value in the small plane image after transformation processing, and an inverse transformation of the point detected by the integer coordinate point detection unit 106 an inversely transformed coordinate value calculation unit 107 that calculates coordinate values on the original image using the coordinate calculation formula; and an interpolation processing unit 108 that calculates new pixel values on the transformed image from the calculated coordinate values by interpolation calculations. and a pixel input/output control unit 109 that controls writing and reading of pixel values. 110 is an image memory that stores image data before and after transformation processing. First, an outline of the modification processing of this embodiment will be explained. FIG. 2 is an example of an original image on a two-dimensional plane. The width of this image in the horizontal direction is W, and the height in the vertical direction is Hl. Here, the unit of these sizes is the number of pixels. The coordinates of pixel psLa in the lower left corner of the image are (XaLo, YIILD
). The coordinate values (XsRu, YSRU) of pixel P IIRII in the upper right corner of the image are (Xsto+Ws-1, Ys
to + Hs-l). Transform the two-dimensional plane image. The purpose of the present invention is not to express faithful unevenness, but to deform it so as to give a three-dimensional effect. Therefore, the present invention attempts to create a three-dimensional effect by applying random distortion to a two-dimensional image and changing its shape. FIG. 3 is an example in which pixels located at equal intervals in the original image of FIG. 2 are displayed as representative points. The black circles in the figure are representative points. In the example shown in this figure, the intervals between the representative points in the horizontal direction and the vertical direction are equal, but there is no need to be limited to this. The representative points may be determined by specifying the interval by the number of pixels, or by giving the number of wooden frames in the horizontal and vertical directions of the original image. Now let's perform coordinate transformation on this representative point using a random function. FIG. 4 is an example showing one representative point and a plurality of representative points located around it. Although nine representative points are shown in the figure, we will focus on the representative point located at the center among these points and consider the case where processing is performed on that point. The coordinates of the central representative point Pc are (Xc, Yc). The interval between two adjacent representative points is WP in the horizontal direction and HP in the vertical direction. In this example, since the representative points are arranged at regular intervals in FIG. 3, Wp and H in FIG. 4 are equal. Let us now move the central representative point Pc to an arbitrary position. If this point is moved a long distance, it will be placed at a position that jumps over adjacent points, causing a problem in which the arrangement of representative points will be swapped. Since other representative points also move arbitrarily, it is necessary to limit the range of movement to prevent this problem from occurring. The dotted line surrounding the central representative point PC in FIG. 4 is the moving range of this point. That is, according to this condition, the central representative point P. The moving range of is (xc-Wp/2
~Xc+Wp/2. Yc-Hp/2~Yc+Hp/2)
becomes. Equations (1) and (2) show conversion equations in each horizontal and vertical direction for coordinate conversion within this movement range. In this equation, RAND (X) and RAND (Y) are random functions whose values are output from 0 to I. RAND
(X) and RAND (Y) are one random function RAN
D may also be used. In that case, the function RAND needs to take different values in equations (1) and (2). X and Y are coordinate values in the horizontal and vertical directions before movement transformation, and X l and Y l are coordinate values after movement transformation. X'=Xc-Wp/2+RAND(X)xWp (
1) Y'=Yc-H,/2+RAND(Y) zero HP
(2) Perform movement conversion processing on all representative points using the above equation. Next, a method for performing movement conversion processing on points other than representative points will be described. FIG. 5 is an example showing a method of extracting three adjacent representative points from among the representative points and moving and converting points other than the representative points along with the representative points. FIG. 5(a) shows three adjacent representative points selected from a plurality of representative points. FIG. 5(b) also shows representative points and points between them, where black circles are representative points and white circles are points inside the triangular image formed from the three representative points. FIG. 5(C) shows the situation after the three representative points have been subjected to movement conversion processing within the movement ranges indicated by dotted lines. By the movement conversion process, the right triangular image formed by the representative points in FIG. 5(a) is transformed into the triangular image having an arbitrary shape as shown in FIG. 5(c). This transformation process is performed using the Fli and standard transformations of equations (1) and (2), but an affine transformation will be applied to this transformation. At this time, for example, a point located midway between the two representative points before movement conversion is considered to be converted to a position midway between the two representative points after movement conversion. The coefficients of the coordinate calculation formula for the affine transformation are obtained from the coordinate values of the six vertices of the triangular image before and after the movement transformation. From the coordinate calculation formula obtained from this, find the coordinate calculation formula for the inverse transformation from after the movement transformation to before the transformation, select the points inside the triangular image after the transformation processing by tracing, and use the coordinate calculation formula for the inverse transformation. The coordinate values inside the triangular image before the deformation process are determined by the process, and the deformation process is performed by writing the pixel values calculated by the interpolation process to the selected points. There are several methods of interpolation processing, such as nearest neighbor interpolation and four-point linear interpolation, but since these give differences in processing speed, image quality, etc., the operator can select the method of his choice. In order to transform the entire original image, the aforementioned transformation of the triangular image may be performed on all the triangular images in the original image. A method for sequentially selecting all the triangular images will be described. FIG. 6 shows an example of dividing the original image of FIG. 3 into a plurality of triangular images and tracing them. Arrows represent tracing order. First, select from the triangular image in the lower left corner, proceed to the adjacent triangular image on the right, and when you reach the rightmost triangular image, proceed to the upper stage and proceed with the selection in the same way. Repeat this selection until the last triangular image in the upper right corner. The deformation process is performed when each triangle tm& is selected. Two adjacent triangles contain points in common. Therefore, among the representative points of one triangular image, for a representative point of a triangular image to be selected later, the deformed coordinate values of that point are held until they are processed at the time of later selection. Points on the lower side among the three vertices of the triangular image are used again when the trace advances to the upper stage. Therefore, 1. It is at least necessary to hold the coordinate values after movement transformation for the number of representative points for the line. Now, the overall processing flow including triangular image tracing and deformation processing by the deformation processing device of this embodiment shown in 1st vlJ will be explained. FIG. 7 shows the flow. (701) Initial information necessary for transformation is input using the transformation initial value input unit 101. The information includes the size and position of the image before and after transformation, the interval between representative points, or the number of divisions into small plane images of the transformation processing unit. (702)) Original picture #! by the race control unit 102. Divide the area into triangles mca and start tracing. (703)) Triangular images are sequentially selected by the trace control of the race control unit 102. (704) The deformed coordinate value calculation unit 104 performs coordinate calculation for the movement transformation process on the coordinate values of the three vertices of the selected triangular image using the above equations (1) and (2). Here, calculations are performed only for points for which coordinate calculations have not been performed among the three vertices. For points that have already been calculated, use those values. Also, remember the coordinate values of the points to be reused later (.tt t
d, random values RAND (X) and RAND (Y) are those generated by the random value generation unit 103. (705) The coordinate calculation formula generation unit 105 calculates a coordinate calculation formula for deformation of the triangular image from the coordinate values of the vertices of the triangular image selected in step (703) and the coordinate values obtained in step (704). . (70B) Furthermore, the coordinate calculation formula generation unit 105 obtains a coordinate calculation formula for inverse deformation from the coordinate calculation formula for deformation obtained in step (705). (707) Start tracing points that are integer coordinates within the area of the deformed triangular image obtained in step (704). This trace is processed by an integer coordinate point detection unit 106 that operates under the control of a trace control unit 102.
The river ■ is carried out. The subsequent steps (708) to (713) are transformation processing for one triangular image. (708)) The race control unit 102 sequentially selects points having integer coordinate values by tracing within the deformed triangular image area. (709) The roundabout transformation coordinate value calculation unit 107 calculates the coordinates of the point selected in step (708) using the coordinate calculation formula of the inverse transformation obtained in step (706), and calculates the coordinate value on the original image. seek. (710) The pixel value of a point having one or more integer coordinate values near the coordinate value obtained in step (709) is read from the image memory 110 under the control of the pixel output control unit 109. (711) Interpolation processing 108 performs interpolation processing based on the read pixel values to calculate new pixel values. (712) Write the obtained new pixel value to a point on the image memory 110 that is an integer coordinate value in the deformed triangular image selected by tracing. (713)) The race control unit 102 determines whether tracing within the deformed triangular image area has been completed. If Yes, proceed to step (714);
If so, the process returns to step (708). (714) Determine whether tracing of the triangular image on the original image is completed. Finally, an example of the overall hardware configuration for implementing the present invention is shown in FIG. In the figure, 81 is a computer;
82 is a central processing unit, 83 is an image transformation processing unit, 84
is an image memory, 85 is an input device, 86 is a display,
87 is a scanner, 88 is a printer, and 89 is a bus. The input device 85 is for giving commands etc. to the computer. The display 86 outputs and displays images. The display 86 outputs and displays images. The scanner 87 is for inputting images, and the printer 88 is for outputting images. The path 89 serves to transfer image data and control information. The image memory 84 stores image data, and the central processing unit w182 controls the entire image processing apparatus and performs general calculations. The image transformation processing unit 83 performs processing for image transformation as described above, and has the configuration shown in FIG. 1.

【発明の効果】【Effect of the invention】

本発明によれば、二次元の画像にランダムな歪みを与え
て形状を変更することにより立体感を感じさせるよう構
成したので、前記従来の三次元立体モデルや二次元平面
内の自由曲面に対するテクスチャマフピングによる凹凸
感の付与技術に比べて、操作が簡単で、処理すべきデー
タ量が少なく、処理速度が速いという効果を奏すること
ができる。
According to the present invention, the configuration is such that a two-dimensional image is given a random distortion and its shape is changed to give a three-dimensional effect. Compared to the technique of imparting unevenness by muffing, this method has the advantage of being easier to operate, requiring less data to be processed, and having a faster processing speed.

【図面の簡単な説明】[Brief explanation of the drawing]

第1図は画像の変形のための計算を行う処理部のブロッ
ク図である。 第2図は二次元平面の原画像を示す例である。 第3図は原画像の中の等間隔に位置する画素を代表点と
して表示した例である。 第4図は1つの代表点とその回りに位置する複数の代表
点の様子を示した例である。 第5図は隣接する3つの代表点と代表点以外の点を移動
変換処理する方法を示す例である。 第6図は原画像の中で分割された複数個の三角形画像を
トレースする一例を示したものである。 第7図は画素値の読み出しから座標計算等をへて書き込
みまでを行う全体の処理フローである。 第8図は本発明を実施するためのハードウェア構成の一
例を示したものである。 101・・・変形初期値入力部、102・・・トレース
制御部、103・・・ランダム値発生部、1o4・・・
変形座標値計算部、105・・・座標計算式生成部、1
0B・・・整数座標点検出部、107・・・逆変形座標
値計算部、108・・・補間処理部、109・・・画素
入出力制御部、11o・・・画像メモリ。 特許出願人 富士ゼロックス株式会社 代  理  人  弁理士  岩  上  昇  −(
外1名) 第3図       第4図 (a)      (b)     (c)第6図 第1図 第2図 第8図
FIG. 1 is a block diagram of a processing section that performs calculations for image transformation. FIG. 2 is an example showing an original image on a two-dimensional plane. FIG. 3 is an example in which pixels located at equal intervals in the original image are displayed as representative points. FIG. 4 is an example showing one representative point and a plurality of representative points located around it. FIG. 5 is an example showing a method of moving and converting three adjacent representative points and points other than the representative points. FIG. 6 shows an example of tracing a plurality of triangular images divided within the original image. FIG. 7 shows the overall processing flow from reading out pixel values to performing coordinate calculations and writing. FIG. 8 shows an example of a hardware configuration for implementing the present invention. 101... Transformation initial value input section, 102... Trace control section, 103... Random value generation section, 1o4...
Deformed coordinate value calculation unit, 105...Coordinate calculation formula generation unit, 1
0B...Integer coordinate point detection section, 107... Inverse transformation coordinate value calculation section, 108... Interpolation processing section, 109... Pixel input/output control section, 11o... Image memory. Patent applicant Fuji Xerox Co., Ltd. Agent Patent attorney Noboru Iwagami - (
Figure 3 Figure 4 (a) (b) (c) Figure 6 Figure 1 Figure 2 Figure 8

Claims (1)

【特許請求の範囲】 二次元平面の画像の中のある間隔ずつ離れた代表点に対
しては隣接する代表点と干渉しない移動範囲内でランダ
ムな値を用いて任意の位置へ座標変換する第1の処理手
段と、 代表点以外の点に対しては隣接した複数の代表点から構
成される小平面画像単位での変形関数をもとにして座標
変換する第2の処理手段と を備えたことを特徴とする二次元画像変形処理装置。
[Claims] For representative points separated by a certain interval in a two-dimensional plane image, coordinates are transformed to arbitrary positions using random values within a movement range that does not interfere with adjacent representative points. and a second processing means that performs coordinate transformation for points other than the representative points based on a deformation function in units of small plane images made up of a plurality of adjacent representative points. A two-dimensional image transformation processing device characterized by:
JP2291762A 1990-10-31 1990-10-31 Two-dimensional image deformation processor Pending JPH04167076A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2291762A JPH04167076A (en) 1990-10-31 1990-10-31 Two-dimensional image deformation processor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2291762A JPH04167076A (en) 1990-10-31 1990-10-31 Two-dimensional image deformation processor

Publications (1)

Publication Number Publication Date
JPH04167076A true JPH04167076A (en) 1992-06-15

Family

ID=17773092

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2291762A Pending JPH04167076A (en) 1990-10-31 1990-10-31 Two-dimensional image deformation processor

Country Status (1)

Country Link
JP (1) JPH04167076A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2016162218A (en) * 2015-03-02 2016-09-05 セイコーエプソン株式会社 Image processing device, display device and control method of image processing device

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2016162218A (en) * 2015-03-02 2016-09-05 セイコーエプソン株式会社 Image processing device, display device and control method of image processing device
CN105938614A (en) * 2015-03-02 2016-09-14 精工爱普生株式会社 Image processing device, and display device

Similar Documents

Publication Publication Date Title
RU2215326C2 (en) Image-based hierarchic presentation of motionless and animated three-dimensional object, method and device for using this presentation to visualize the object
JP3466661B2 (en) Image processing apparatus and method
CN104732479B (en) Resizing an image
US6035075A (en) Image deforming method and apparatus
JP2000182038A (en) Method for generating perspective sizing data from distorted information, device to be used for this and computer program product
JPH10508715A (en) Computer graphic modeling system
KR100453530B1 (en) Apparatus and method for drawing three dimensional graphics by converting two dimensional polygon data to three dimensional polygon data
US9532071B2 (en) Resampling apparatus, method, and recording medium having resampling program recorded therein for digital image
JP2837584B2 (en) How to create terrain data
JP3979162B2 (en) Image processing apparatus and method
CN1327396C (en) Method of analyzing and modifying a footprint
JPH04167076A (en) Two-dimensional image deformation processor
US5821942A (en) Ray tracing through an ordered array
JPH06301792A (en) Texture mapping device
KR100684558B1 (en) Texture mipmapping device and the same method
JP6326914B2 (en) Interpolation apparatus and interpolation method
JP7455546B2 (en) Image processing device, image processing method, and program
JP2000057376A (en) Method for generating new viewpoint image
JP3712139B2 (en) Image creating apparatus and method
JP6254228B2 (en) Digital image resampling apparatus, method, and program
JP2707605B2 (en) Image data conversion method
JPH11306381A (en) Method and device for graphic operation
JPH0546775A (en) Method and device for processing image
JPH0661089B2 (en) Two-dimensional representation method of three-dimensional object
JPH04167077A (en) Deformation device for two-dimensional raster image