JPH03198167A - Method and device for deforming two-dimensional bit map image - Google Patents

Method and device for deforming two-dimensional bit map image

Info

Publication number
JPH03198167A
JPH03198167A JP1336416A JP33641689A JPH03198167A JP H03198167 A JPH03198167 A JP H03198167A JP 1336416 A JP1336416 A JP 1336416A JP 33641689 A JP33641689 A JP 33641689A JP H03198167 A JPH03198167 A JP H03198167A
Authority
JP
Japan
Prior art keywords
image
original image
transformed
processing
deformed
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
JP1336416A
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 JP1336416A priority Critical patent/JPH03198167A/en
Publication of JPH03198167A publication Critical patent/JPH03198167A/en
Pending legal-status Critical Current

Links

Landscapes

  • Image Processing (AREA)

Abstract

PURPOSE:To deform the two-dimensional bit map image so that a path is put thereto artificially by combining the processing for executing variable power of picture element density in accordance with a shape of a deformed image with respect to a two-dimen sional bit map original image, and the processing for deforming the shape of the original image to the shape of the deformed image designated arbitrarily. CONSTITUTION:Variable power of picture element density in one direction of a bit map original image being a rectangular square shape is executed so as to be propot- tional to the ratio of a pair of opposite side lengths (Q1Q2 and Q3Q4) of a bit map image of a quadrangle to be deformed, and also, variable power of picture element density in the remaining one direction of the original image is executed so as to be proportional to the ratio of the remaining pair of opposite side lengths (Q1Q4 and Q2Q3) of the image to be deformed, by which the processing for giving a depth sense is executed. Simultaneously, by a pseudo affine deformation processing, the deformation processing extending from the rectangular quadrangle of the original image to a deformed arbitrary square shape is executed. In such a way, the two-dimensional bit map image can be deformed so that a path is put thereto.

Description

【発明の詳細な説明】 (産業上の利用分野) 本発明は二次元のビットマツプ画像の形状を変える画像
変形方法および装置に関する。
DETAILED DESCRIPTION OF THE INVENTION (Field of Industrial Application) The present invention relates to an image transformation method and apparatus for changing the shape of a two-dimensional bitmap image.

(従来の技術) 二次元ビットマツプ画像に対する変形機能の種類には拡
大/縮小や回転を始めとして、その用途や目的によって
様々なものが考えられ、またそれらの機能実現のために
多くの手法が提案されている。その機能のひとつに二次
元の平面画像にパースをつける機能がある。これは平面
画像を三次元空間内で様々な視点から見たときの形とな
るように変形したり、二次元画像内にある立体物に貼り
付は合成できるように変形する際に必要となる。
(Prior art) Various types of transformation functions can be considered for two-dimensional bitmap images, including enlargement/reduction and rotation, depending on their use and purpose, and many methods have been proposed to realize these functions. has been done. One of its functions is the ability to add perspective to two-dimensional plane images. This is necessary when transforming a flat image so that it takes on the shape of a three-dimensional image when viewed from various viewpoints, or when pasting or transforming a two-dimensional image so that it can be combined with a three-dimensional object. .

この機能を実現するための一般的な手法として二次射影
変換が知られており、工業技術院電子技術総合研究所の
開発した画像処理サブルーチンパッケージrsPIDE
RJの中にもそのソフトウェアが創作されている。
Quadratic projective transformation is known as a general method for realizing this function, and the image processing subroutine package rsPIDE developed by the National Institute of Electronics Technology, Agency of Industrial Science and Technology.
That software has also been created in RJ.

二次射影変換は計算式中で三次元情報を用いていないが
三次元空間内での画像の配置に基づいて計算されるため
、正確なパースを表現できる。
Although quadratic projective transformation does not use three-dimensional information in its calculation formula, it is calculated based on the arrangement of images in three-dimensional space, so it can express accurate perspective.

しかしこの正確な計算法以外にも二次元情報だけを利用
した計算により疑似的にパースをつけたいとの要求があ
った。
However, in addition to this accurate calculation method, there has been a demand for pseudo-perspective calculations using only two-dimensional information.

(発明が解決しようとする課H) 本発明は上記要求に応えるために提案されたもので、二
次元のビットマツプ画像に二次元情報だけを利用した計
算により疑似的にパースをつける画像変形方法およびそ
の方法を実施するための装置を提供することを目的とす
る。
(Problem H to be Solved by the Invention) The present invention has been proposed in response to the above requirements, and includes an image transformation method and method for pseudo-parsing a two-dimensional bitmap image by calculation using only two-dimensional information; The object is to provide an apparatus for carrying out the method.

(課題を解決するための手段) 本発明は、変形しようとする四角形であるビットマツプ
画像の1組の座標とそれに対応するように矩形四角形状
であるビットマツプ原画像の1方向の画素密度を変倍し
、また前記の変形しようとする画像の残りの1組の座標
とそれに対応するように前記の原画像の残りの1方向の
画素密度変倍する処理と、疑似アフィン変形処理との組
み合せにより、画像にパースをつけたように変形する二
次元ビットマツプ画像の変形方法である。
(Means for Solving the Problems) The present invention provides a method for scaling a set of coordinates of a rectangular bitmap image to be transformed and a pixel density in one direction of a rectangular bitmap original image corresponding thereto. In addition, by combining the remaining one set of coordinates of the image to be transformed, the process of scaling the pixel density in the remaining one direction of the original image to correspond to the remaining set of coordinates of the image to be transformed, and the pseudo affine transformation process, This is a two-dimensional bitmap image transformation method that transforms the image as if it were given a perspective.

ある。be.

また、この方法を実施するための本発明の装置は、変形
しようとする四角形のビットマツプの原画像および変形
後の画像の各4頂点座標に基づいて、下記■■■の変形
を行ったとしたときの変形後の画像の各画素の座標とそ
れに対応する原画像上の座標との対応を表す式を求める
第1の処理手段と、 行つたとしたときの変形後の原画像の一組の座標とそれ
に対応するよう対辺間のビットマツプ画像の画素密度を
変倍する、 行つたとしたときの変形後の原画像の他の一組の座標と
それに対応するよう対辺間のビットマツプ画像の画素密
度を変倍する、 他の一組の対辺の長さの割合に疑似アフィン変換を施す
、 前記変形後の画像の4頂点によりて定まる領域内の各座
標から、第1の処理手段により求めた前記対応を表す式
に基づいて、原画像上の対応するの各座標から、第1の
処理手段と、 第2の処理手段により算出した前記原画像上の対応する
座標における原画像の画素値を求め、変形後の画像領域
の前記座標における画素値とする第3の処理手段と を具備する。
Furthermore, when the apparatus of the present invention for implementing this method performs the following transformations based on the coordinates of each of the four vertices of the original image and the transformed image of the rectangular bitmap to be transformed, a first processing means for calculating a formula representing the correspondence between the coordinates of each pixel in the transformed image and the corresponding coordinates on the original image; , and the pixel density of the bitmap image between the opposite sides is scaled to correspond to the other set of coordinates of the original image after transformation, and the pixel density of the bitmap image between the opposite sides is changed to correspond to that. changing the scale; applying a pseudo-affine transformation to the ratio of the lengths of the other pair of opposite sides; and calculating the correspondence obtained by the first processing means from each coordinate in the area defined by the four vertices of the transformed image. Based on the formula representing the original image, calculate the pixel value of the original image at the corresponding coordinate on the original image calculated by the first processing means and the second processing means from each corresponding coordinate on the original image, and third processing means for determining pixel values at the coordinates of the image area after deformation.

(作用) 変形しようとする四角形のビットマツプ画像(第1図(
C))の1組の対辺(例、辺Q1Q1とQ = Q a
 )の長さの割合に比例するように矩形四角形状である
ビットマツプ原画像(第1図(a))の1方向(例、X
方向)の画素密度を変倍し、また前記の変形しようとす
る画像の残りの11組の対辺(例、辺QIQ、とQ *
 Q o )の長さの割合に比例するように前記の原画
像の残りの1方向(例、X方向)の画素密度変倍するこ
とにより、奥行き感を与える処理(第1図(a)から(
b)への処理)を行う。併せて、疑似アフィン変形処理
により原画像の矩形四角形から変形後の任意四角形状へ
の変形処理(第1図(b)から(C)への処理)を行な
う。本発明の方法は、これらの処理の組み合せにより、
二次元のビットマツプ画像をパースをつげたように変形
することができる。
(Operation) Bitmap image of the rectangle to be transformed (Fig. 1 (
A pair of opposite sides of C)) (e.g. sides Q1Q1 and Q = Q a
) in one direction (e.g., X
direction), and the remaining 11 pairs of opposite sides (for example, sides QIQ and Q*) of the image to be transformed.
A process that gives a sense of depth by scaling the pixel density in the remaining direction (for example, the X direction) of the original image in proportion to the length of (
Processing for b)) is performed. At the same time, a pseudo-affine transformation process is performed to transform the rectangle of the original image into an arbitrary rectangular shape after transformation (processing from FIG. 1(b) to FIG. 1(C)). The method of the present invention, by combining these treatments,
It is possible to transform a two-dimensional bitmap image to make it appear more perspective.

また、本発明の画像変形装置において、第1の処理手段
は、上記の変形方法で変形処理したとしたときの変形後
の画像の各画素の座標とそれに対応する原画像上の座標
との対応を表す式(変形座標関数の逆写像関数式)を、
原画像および変形後の画像の各4頂点座標に基づいて、
求める。
Further, in the image deformation device of the present invention, the first processing means is capable of determining the correspondence between the coordinates of each pixel of the deformed image and the corresponding coordinates on the original image when the deformation process is performed using the above deformation method. (inverse mapping function formula of deformed coordinate function) is
Based on the coordinates of each of the four vertices of the original image and the transformed image,
demand.

第2の処理手段では、変形座標関数の逆写像関数式によ
り、変形後の画像の4頂点によって定まる領域内の各座
標に対応する原画像上の座dを算出する。
The second processing means calculates the locus d on the original image corresponding to each coordinate within the area defined by the four vertices of the transformed image using the inverse mapping function equation of the transformed coordinate function.

第3の処理手段では、第2の処理手段により算出した前
記原画像上の対応する座標における原画像の画素値を求
める。例えば、その画素値は前記対応座標の近傍にある
原画像の画素の画素値から補間等を用いて算出する。求
めた画素値は変形後の画像領域の前記座標における画素
値として、画像メモリ等に格納する。
The third processing means calculates pixel values of the original image at the corresponding coordinates on the original image calculated by the second processing means. For example, the pixel value is calculated from the pixel value of a pixel in the original image near the corresponding coordinates using interpolation or the like. The determined pixel value is stored in an image memory or the like as a pixel value at the coordinates of the transformed image area.

(実施例) まず、本発明の方法の一実施例を図面を参照しながら説
明する。
(Example) First, an example of the method of the present invention will be described with reference to the drawings.

第2図は変形処理前後の画像の例であり、第2図(a)
は変形前の矩形である原画像、第2図(b)はパースの
ついた最終的な変形後の画像である。第2図において1
1,12,13.14は原画像の4隅の頂点P+、P*
、P−、P4であり、19.20,21.22は原画像
の各頂点P、、 P2+P3+P4に対応する変形後の
画像の4隅の頂点Q+、Qs、Qa、Q4である。第2
図のような変形を行う手法およびその演算について説明
する。
Figure 2 shows an example of images before and after the transformation process, and Figure 2(a)
is the original rectangular image before transformation, and FIG. 2(b) is the final image after transformation with perspective. In Figure 2, 1
1, 12, 13.14 are the four corner vertices P+, P* of the original image
, P-, P4, and 19.20 and 21.22 are the four corner vertices Q+, Qs, Qa, and Q4 of the transformed image, which correspond to the vertices P, , P2+P3+P4 of the original image. Second
The method of performing the transformation as shown in the figure and its calculation will be explained.

まず初めに矩形の原画像に対し、奥行き感を与える処理
を行う。
First, a rectangular original image is processed to give a sense of depth.

第1図(a)はこの処理を行う前の画像、すなわち第2
図(a)の原画像であり、第1図(b)は奥行き感を与
えた後の画像である。第1図の11.12.13.14
は原画像の4隅の頂点PP2.PI1 P4であり、1
5.18,17.18は原画像の各頂点pHP2+ P
3+ P4に対応する奥行き変形処理後の画像の4隅の
頂点R++R21Rs+R4である。
Figure 1(a) shows the image before this processing, that is, the second image.
This is the original image in FIG. 1(a), and FIG. 1(b) is the image after giving a sense of depth. 11.12.13.14 in Figure 1
are the four corner vertices PP2 of the original image. PI1 P4 and 1
5.18, 17.18 are each vertex pHP2+ P of the original image
The four corner vertices of the image after depth transformation processing corresponding to 3+P4 are R++R21Rs+R4.

第2図の変形画像において19の点Q、は三次元空間内
では視点に一番近い点、21の点Q、は逆に一番遠い点
と見なすことができる。視点からの距離が異なればその
間で画素密度に違いが生じる。
In the deformed image of FIG. 2, point Q 19 can be regarded as the closest point to the viewpoint in three-dimensional space, and point Q 21 can be regarded as the farthest point. If the distance from the viewpoint differs, the pixel density will differ between them.

そこで視点に近い側と遠い側とで画素密度を変える処理
を施すことにより奥行き感の効果を疑似的に与える。点
QI側と点QI側とでは画素密度が異なるが、同じ様な
ことが辺Q1Q、側とQ s Q 4側との間に、また
Q、Q、側とQtQ−側との間にも言える。この特徴を
利用して水平・垂直の各方向に対して変倍率を連続的に
変化させながら画像を変倍する。水平方向について見れ
ば辺Q、Q、上での水平方向の画素の大きさは等倍のま
まとし、辺Q、Q、上での同方向の大きさは辺Q r 
Q x上に比べてIQ言Q4 l / I Q IQs
 I倍となるように処理する。垂直方向についても水平
方向と同様に辺Q s Q s上の垂直方向の画素の大
きさは辺Q 1Q 4上に比べてl Q*Qs I /
 I QI Q41倍となるように処理する。これらの
2つの変換処理の計算式をそれぞれ(1)式と(2)式
に示す。
Therefore, by performing a process that changes the pixel density between the side close to the viewpoint and the side far from the viewpoint, a pseudo depth effect is given. Although the pixel density is different between the point QI side and the point QI side, the same thing is true between the side Q1Q and the QsQ4 side, and between the Q,Q side and the QtQ- side. I can say it. Utilizing this feature, the image is scaled while continuously changing the scale ratio in each of the horizontal and vertical directions. Looking at the horizontal direction, the horizontal pixel sizes on sides Q, Q, and above remain the same size, and the sizes in the same direction on sides Q, Q, and above are side Q r
IQ words compared to Q x Q4 l / I Q IQs
It is processed so that it becomes I times. In the vertical direction, as in the horizontal direction, the size of the vertical pixel on the side Q s Q s is l Q * Qs I / compared to the size on the side Q 1Q 4.
Process so that I QI Q41 times. The calculation formulas for these two conversion processes are shown in formulas (1) and (2), respectively.

式中でxyは奥行き変形処理前の水平番垂直座標であり
、X、Yは処理後の座標である。PI。
In the formula, xy is the horizontal and vertical coordinates before the depth transformation process, and X and Y are the coordinates after the process. P.I.

p 、、〜Q++Qt+〜R3,R−の各点はそれぞれ
水平・垂直方向の座標値を持つ。実際の計算では原画像
の左下隅の頂点はxy平面座標上の原点位置となるよう
に配置させておく。
Each point p, . . . ~Q++Qt+ ~R3, R- has coordinate values in the horizontal and vertical directions, respectively. In actual calculations, the vertex at the lower left corner of the original image is arranged so as to be the origin position on the xy plane coordinates.

奥行き感を与える処理の後の矩形画像の2辺の長さIR
,R,l、IR,Riは(3)式と(4)式により与え
られるものとなる。
Length IR of two sides of a rectangular image after processing to give a sense of depth
, R, l, IR, Ri are given by equations (3) and (4).

次に奥行き感が与えられた矩形画像を非矩形である任意
四角形へ変形する。第1図(C)は最終的に得られたパ
ースのかかった画像であり、19゜20.21.22は
変形前画像の各頂点R11RatR3,R,に対応する
4隅の頂点Q++Qt*03+Q4である。この変換で
は画像内部の画素が線形の位置に配置される疑似アフィ
ン変換を用いる。ここでの変換処理の計算式をそれぞれ
(5)式と(6)式に示す。
Next, the rectangular image given a sense of depth is transformed into an arbitrary non-rectangular square. Figure 1 (C) is the finally obtained parsed image, where 19°20.21.22 is the four corner vertices Q++Qt*03+Q4 corresponding to each vertex R11RatR3,R, of the image before transformation. be. This transformation uses a pseudo-affine transformation in which pixels within the image are arranged at linear positions. The calculation formulas for the conversion process here are shown in formulas (5) and (6), respectively.

式中でx+ yとX、Yはそれぞれ任意四角変形処理前
後の水平会垂直座標である。
In the formula, x+y, X, and Y are the vertical coordinates of the horizontal plane before and after arbitrary rectangular transformation processing, respectively.

以上のように奥行き感を与える変換と任意四角形への変
換の2つの処理を組み合せることにより変形を行う。実
際の処理では前者の処理により中間画像を得た後、その
画像に対して後者の処理を行うのではな(、画素単位に
前者と後者の処理を続けて計算する。
As described above, deformation is performed by combining two processes: conversion to give a sense of depth and conversion to an arbitrary rectangle. In actual processing, the former process is used to obtain an intermediate image, and then the latter process is performed on that image (the former and latter processes are performed successively on a pixel-by-pixel basis).

以上に詳述した本発明の実施例の方法を実行するための
ハードウェア構成の一実施例を第3図に示す。
FIG. 3 shows an embodiment of a hardware configuration for executing the method of the embodiment of the present invention detailed above.

同図において、31は計算機、32は中央演算処理装置
、33は画像変形処理部、34は画像メモリ、35は入
力装置、36はデイスプレィ、37はスキャナ、38は
プリンタ、39はバスである。入力部@35は計算機に
命令等を与えるためのものである。デイスプレィ36は
画像を出力表示するものである。スキャナ37は画像を
入力するもので、プリンタ38は画像出力するものであ
る。バス39は画像データや制御情報を受渡しする役割
を果たす。画像メモリ34は画像データを記憶するもの
であり、中央演算処理袋ffi!32は画像処理装置全
体の制御や一般的な演算を行うものである。
In the figure, 31 is a computer, 32 is a central processing unit, 33 is an image transformation processing section, 34 is an image memory, 35 is an input device, 36 is a display, 37 is a scanner, 38 is a printer, and 39 is a bus. The input unit @35 is for giving commands etc. to the computer. The display 36 outputs and displays images. The scanner 37 is for inputting images, and the printer 38 is for outputting images. The bus 39 plays the role of exchanging image data and control information. The image memory 34 stores image data, and is a central processing unit ffi! Reference numeral 32 controls the entire image processing apparatus and performs general calculations.

画像変形処理部33は、本発明の特徴とするところの画
像変形のための処理を行うもので、第4図に示すように
、変形前後の4頂点座標を初期値として取り込む変形初
期値入力部41と、入力された初期値より変形関数式の
逆写像関数を求める逆写像計算部42と、逆写像関数を
用いてトレースされる変形後の画像領域の座標値から原
画像上の座標値を計算する逆写像座標計算部43と、計
算された座標値から補間演算により変形後の画像上の新
画素値を計算する補間処理部44と、画素値の書き込み
と読み込みを行う画素入出力制御部45から構成されて
いる。46は変形前後の画像データが記憶されている画
像メモリである。
The image deformation processing section 33 performs processing for image deformation, which is a feature of the present invention, and as shown in FIG. 41, an inverse mapping calculation unit 42 that calculates an inverse mapping function of the deformation function formula from the input initial value, and an inverse mapping calculation unit 42 that calculates the coordinate values on the original image from the coordinate values of the image area after transformation traced using the inverse mapping function. An inverse mapping coordinate calculation unit 43 that calculates, an interpolation processing unit 44 that calculates new pixel values on the transformed image by interpolation from the calculated coordinate values, and a pixel input/output control unit that writes and reads pixel values. It consists of 45. 46 is an image memory in which image data before and after transformation is stored.

では画素値の読みだしから座標計算等をへて書き込みま
でを行う全体的な処理フローについて説明する。第5図
に計算手順の処理フローを示す。
Now, the overall processing flow from reading out pixel values to writing them through coordinate calculations and the like will be explained. FIG. 5 shows the processing flow of the calculation procedure.

■変形初期値入力部41により、初期値となる変形前後
の画像の4隅の頂点P1.P1.P、、P。
(2) The transformation initial value input unit 41 inputs the four corner vertices P1 of the image before and after transformation, which are the initial values. P1. P,,P.

およびQ、Q8.Q3.Q4の座標値を入力する。and Q, Q8. Q3. Input the coordinate values of Q4.

■逆写像関数計算部42において、初期値として入力さ
れた座標値より変形座標関数の逆写像関数を求める。変
形座標関数とは奥行き感を与える変換と任意四角形への
変換の2つの処理の計算式を直列に組み合せたもの、す
なわち前記式(1)〜(6)である。
(2) In the inverse mapping function calculation section 42, an inverse mapping function of the deformed coordinate function is calculated from the coordinate values input as initial values. The deformed coordinate function is a series combination of calculation formulas for two processes: transformation to give a sense of depth and transformation to an arbitrary rectangle, that is, the above-mentioned formulas (1) to (6).

■逆写像座標計算部43では、まず、変形後側像の領域
のトレースを開始する。
(2) The inverse mapping coordinate calculation unit 43 first starts tracing the region of the deformed side image.

■変形後画像領域のトレースした座標値を用いて逆写像
関数により原画像上の座標値を計算する。
(2) Using the traced coordinate values of the transformed image area, calculate the coordinate values on the original image using an inverse mapping function.

■補間処理部44では、まず、逆写像座標計算部43の
ステップ■の処理により求めた座標値の近傍にある複数
の画素値を読み出す。
(2) The interpolation processing section 44 first reads out a plurality of pixel values in the vicinity of the coordinate values obtained by the process of step (2) of the inverse mapping coordinate calculation section 43.

■補間処理部44は、次に、読み出した画素値をもとに
補間処理を行い新たな画素値を計算する。
(2) The interpolation processing unit 44 then performs interpolation processing based on the read pixel values to calculate new pixel values.

補間の方式は要求される画質や処理速度に応じて適切な
ものを選択すればよい。例えば算出された座標値の周囲
の4点にある画素値を用いる4点線形補間などが一例と
してあげられる。
An appropriate interpolation method may be selected depending on the required image quality and processing speed. For example, four-point linear interpolation using pixel values at four points around the calculated coordinate value is given as an example.

■求めた新画素値を画素入出力制御部45を介して、−
像メモリ46におけるトレースした変形後置像領域の座
標位置に書き込む。
■The obtained new pixel value is sent via the pixel input/output control unit 45 to -
It is written to the coordinate position of the traced post-deformed image area in the image memory 46.

■変形後の画像領域内のトレースが終了したか否かを判
定する。Yesの場合には処理を終了し、Noの場合に
はステップ■に戻る。
(2) Determine whether tracing within the image area after deformation has been completed. If Yes, the process ends; if No, the process returns to step (2).

(発明の効果) 以上に詳述したように、本発明によれば、二次元ビット
マツプ原画像を変形後画像の形状に応じて画素密度を変
倍することにより奥行き感を与える処理と、原画像の形
状を任意の指定された変形後画像の形状に変形する処理
とを組み合せて、二次元情報だけを利用した計算により
、二次元ビットマツプ原画像に疑似的なパースをつけた
画像を容易に得ることができる。
(Effects of the Invention) As described in detail above, according to the present invention, processing that gives a sense of depth by scaling the pixel density of a two-dimensional bitmap original image according to the shape of the transformed image, and In combination with the process of transforming the shape of the image into the shape of an arbitrarily specified transformed image, an image with a pseudo-perspective added to the two-dimensional bitmap original image can be easily obtained by calculation using only two-dimensional information. be able to.

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

第1図本発明による画像変形の一例における変形の過程
を示す図であり、同図(a)は変形前の画像、同図(b
)は奥行き感を与える変形処理後の画像、同図(c)は
更に疑似アフィン変換処理を行った後のパースをつけた
画像の例を示すものである。 第2図は平面画像に対してパースをつける変形処理前後
の画像の例である。 第3図は本発明の方法を実施するためのハードウェア構
成の一例を示す図である。 第4図は画像の変形のための計算を行う画像変形処理部
のブロック図である。 第5図は画素値の読みだしがら座標計算等をへて書き込
みまでを行う全体的な計算手順の処理フローを示す図で
ある。 41・・・変形初期値入力部、42・・・逆写像関数計
界部、43・・・虐写像座標計算部、44・・・補間処
理部、45・・・画素入出力制御部、46・・・画像メ
モリ。
FIG. 1 is a diagram showing a deformation process in an example of image deformation according to the present invention, in which (a) is an image before deformation, and (b) is an image before deformation.
) shows an example of an image after transformation processing to give a sense of depth, and (c) of the same figure shows an example of an image with added perspective after further performing pseudo-affine transformation processing. FIG. 2 is an example of an image before and after a transformation process that adds perspective to a plane image. FIG. 3 is a diagram showing an example of a hardware configuration for implementing the method of the present invention. FIG. 4 is a block diagram of an image transformation processing unit that performs calculations for image transformation. FIG. 5 is a diagram showing the processing flow of the overall calculation procedure in which pixel values are read, coordinate calculations, etc., and then written. 41... Deformation initial value input section, 42... Inverse mapping function calculation section, 43... Mass mapping coordinate calculation section, 44... Interpolation processing section, 45... Pixel input/output control section, 46 ...image memory.

Claims (2)

【特許請求の範囲】[Claims] (1)変形しようとする四角形であるビットマップ画像
の1組の対辺の長さの割合に比例するように矩形四角形
状であるビットマップ原画像の1方向の画素密度を変倍
し、また前記の変形しようとする画像の残りの1組の対
辺の長さの割合に比例するように前記の原画像の残りの
1方向の画素密度変倍する処理と、疑似アフィン変形処
理との組み合せにより画像にパースをつけたように変形
することを特徴とする二次元ビットマップ画像の変形方
法。
(1) The pixel density in one direction of the original rectangular bitmap image is scaled in proportion to the length of a pair of opposite sides of the bitmap image, which is the rectangular one to be transformed, and The image is transformed by a combination of a process of scaling the pixel density in one direction of the remaining original image in proportion to the length of the remaining pair of opposite sides of the image to be transformed, and a pseudo-affine transformation process. A method for transforming a two-dimensional bitmap image, which is characterized by transforming it as if it were given perspective.
(2)変形しようとする四角形のビットマップの原画像
および変形後の画像の各4頂点座標に基づいて、下記[
1][2][3]の変形を行ったとしたときの変形後の
画像の各画素の座標とそれに対応する原画像上の座標と
の対応を表す式を求める第1の処理手段と、[1]変形
しようとする四角形の原画像の一組の対辺の長さの割合
に比例するよう対辺間のビットマップ画像の画素密度を
変倍する、 [2]変形しようとする四角形の原画像の他の一組の対
辺の長さの割合に比例するよう対辺間のビットマップ画
像の画素密度を変倍する、 [3]前記[1][2]の変倍された画像に疑似アフィ
ン変換を施す、 前記変形後の画像の4頂点によって定まる領域内の各座
標から、第1の処理手段により求めた前記対応を表す式
に基づいて、原画像上の対応する座標を算出する第2の
処理手段と、 第2の処理手段により算出した前記原画像上の対応する
座標における原画像の画素値を求め、変形後の画像領域
の前記座標における画素値とする第3の処理手段と を具備する二次元ビツトマツプ画像の変形装置。
(2) Based on the coordinates of each of the four vertices of the original image and the transformed image of the rectangular bitmap to be transformed,
1] [2] [3] A first processing means for calculating a formula representing the correspondence between the coordinates of each pixel of the transformed image and the corresponding coordinates on the original image when the transformations are performed; 1] The pixel density of the bitmap image between opposite sides is scaled in proportion to the length ratio of a pair of opposite sides of the original image of the rectangle to be transformed. [2] The original image of the rectangle to be transformed is [3] Perform pseudo-affine transformation on the scaled images of [1] and [2], which scales the pixel density of the bitmap image between opposite sides so as to be proportional to the length ratio of the other pair of opposite sides. a second process of calculating the corresponding coordinates on the original image from each coordinate in the area determined by the four vertices of the transformed image based on the formula representing the correspondence determined by the first processing means; and a third processing means that obtains a pixel value of the original image at the corresponding coordinates on the original image calculated by the second processing means, and sets it as a pixel value at the coordinates of the image area after deformation. A device for transforming two-dimensional bitmap images.
JP1336416A 1989-12-27 1989-12-27 Method and device for deforming two-dimensional bit map image Pending JPH03198167A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP1336416A JPH03198167A (en) 1989-12-27 1989-12-27 Method and device for deforming two-dimensional bit map image

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP1336416A JPH03198167A (en) 1989-12-27 1989-12-27 Method and device for deforming two-dimensional bit map image

Publications (1)

Publication Number Publication Date
JPH03198167A true JPH03198167A (en) 1991-08-29

Family

ID=18298902

Family Applications (1)

Application Number Title Priority Date Filing Date
JP1336416A Pending JPH03198167A (en) 1989-12-27 1989-12-27 Method and device for deforming two-dimensional bit map image

Country Status (1)

Country Link
JP (1) JPH03198167A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH06274649A (en) * 1993-03-23 1994-09-30 Dainippon Printing Co Ltd Image synthesizer
JP2001222275A (en) * 2000-02-08 2001-08-17 Akuseru:Kk Image mapping method
JP2004206672A (en) * 2003-05-20 2004-07-22 Namco Ltd Image processing system, program and information storage medium
JP2013097782A (en) * 2011-11-01 2013-05-20 Shijin Kogyo Sakushinkai Image warp method and computer program product of the same

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH06274649A (en) * 1993-03-23 1994-09-30 Dainippon Printing Co Ltd Image synthesizer
JP2001222275A (en) * 2000-02-08 2001-08-17 Akuseru:Kk Image mapping method
JP2004206672A (en) * 2003-05-20 2004-07-22 Namco Ltd Image processing system, program and information storage medium
US7295699B2 (en) 2003-05-20 2007-11-13 Namco Bandai Games Inc. Image processing system, program, information storage medium, and image processing method
JP2013097782A (en) * 2011-11-01 2013-05-20 Shijin Kogyo Sakushinkai Image warp method and computer program product of the same

Similar Documents

Publication Publication Date Title
Heckbert Fundamentals of texture mapping and image warping
US4975976A (en) Image transformation method and device
US7564459B2 (en) Resolution-independent curve rendering using programmable graphics hardware
US4974177A (en) Mapping circuit of a CRT display device
US8289323B2 (en) Drawing processing apparatus, texture processing apparatus, and tessellation method
US7030880B2 (en) Information processor
US9501811B2 (en) Resizing an image
JPH04220783A (en) Display apparatus and display method
JPH08123969A (en) Mapping device
US8179399B2 (en) Rasterizing method
KR101107114B1 (en) Method of rendering graphical objects
JPH03198167A (en) Method and device for deforming two-dimensional bit map image
KR0179354B1 (en) Texture mapping method and image processing apparatus
EP4160541A1 (en) Method and system for visualization and simulation of flow phenomena
US7280108B2 (en) Bicubic surface rendering
JP2976512B2 (en) 2D image transformation device
Angelidis et al. Space deformations and their application to shape modeling
JPH11149566A (en) Three-dimensional cg plotting device for curved surface display
US6380936B1 (en) System and method for inferring projective mappings
JP3147391B2 (en) Method and apparatus for setting curved surface in three-dimensional boundary fitting mesh division
Bergamasco et al. Saliency-driven Variational Retargeting for Historical Maps
JPH087123A (en) Method and device for processing three-dimensional image
JP4187078B2 (en) Image deformation method and apparatus
JP3071495B2 (en) Object model editing device
JP3128374B2 (en) 3D image display device