JP2001222275A - Image mapping method - Google Patents

Image mapping method

Info

Publication number
JP2001222275A
JP2001222275A JP2000030691A JP2000030691A JP2001222275A JP 2001222275 A JP2001222275 A JP 2001222275A JP 2000030691 A JP2000030691 A JP 2000030691A JP 2000030691 A JP2000030691 A JP 2000030691A JP 2001222275 A JP2001222275 A JP 2001222275A
Authority
JP
Japan
Prior art keywords
mapped
source image
coordinates
axis
mapping
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP2000030691A
Other languages
Japanese (ja)
Other versions
JP3545304B2 (en
Inventor
Takayuki Shibata
高幸 柴田
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.)
Axell Corp
Original Assignee
Axell Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Axell Corp filed Critical Axell Corp
Priority to JP2000030691A priority Critical patent/JP3545304B2/en
Publication of JP2001222275A publication Critical patent/JP2001222275A/en
Application granted granted Critical
Publication of JP3545304B2 publication Critical patent/JP3545304B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Image Processing (AREA)
  • Image Generation (AREA)
  • Controls And Circuits For Display Device (AREA)

Abstract

PROBLEM TO BE SOLVED: To calculate a coordinate of a source image to be mapped from a coordinate in a deformed and mapped four-sided figure and to realize mapping of a pixel along a straight line for a vanishing point in perspective drawing. SOLUTION: This method is constituted of a means for specifying the positions of four vertexes of the source image, a means for specifying two points A1, A2 on an X axis or a Y axis of a mapping coordinate system and an optional point A3 not existing on the same axis as the A1, A2 and a means for specifying two points B1, B2 on the same axis as the A1, A2 and an optional point B3 not existing on the same axis as the B1, B2.

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【発明の属する技術分野】この発明は、画像マッピング
方法に関する。
[0001] The present invention relates to an image mapping method.

【従来の技術】従来の画像マッピング方法は、矩形領域
で示されたマッピングされるソース画像の4つの頂点
と、マッピングする四角形の4つの頂点を指定する方法
で行われていた。また、マッピングする四角形の頂点で
パラメータが決定されるアフィン変換により、ソース画
像の画素の座標からマッピングする四角形の座標を算出
していた。以下、図11を用いてその詳細について説明
する。11aはマッピングする四角形、11bはマッピングさ
れるソース画像である。ソース画像の頂点a,b,c,dはマ
ッピングする四角形の頂点a’,b’,c’,d’にそれぞれ
対応しており、aおよびa’をそれぞれの座標系の原点と
する。ソース画像の幅と高さはcの座標(X,Y)で表される
のでそれぞれX,Yとなり、b’,c’,d’の座標はそれぞれ
(Bx,By),(Cx,Cy),(Dx,Dy)である。これらのパラメータ
ーからソース画像の画素の座標(x,y)に対して数1で表
されるアフィン変換を行う事により、マッピングする四
角形の画素の座標(x’,y’)を求めている。
2. Description of the Related Art A conventional image mapping method is performed by designating four vertices of a source image to be mapped indicated by a rectangular area and four vertices of a quadrangle to be mapped. In addition, the coordinates of the square to be mapped are calculated from the coordinates of the pixels of the source image by affine transformation in which parameters are determined at the vertices of the square to be mapped. Hereinafter, the details will be described with reference to FIG. 11a is a square to be mapped, and 11b is a source image to be mapped. The vertices a, b, c, and d of the source image correspond to the vertices a ', b', c ', and d' of the quadrangle to be mapped, respectively, and a and a 'are the origins of the respective coordinate systems. Since the width and height of the source image are represented by the coordinates (X, Y) of c, they are X and Y, respectively, and the coordinates of b ', c', d 'are respectively
(Bx, By), (Cx, Cy), (Dx, Dy). From these parameters, the coordinates (x ′, y ′) of the square pixel to be mapped are obtained by performing the affine transformation represented by Equation 1 on the coordinates (x, y) of the pixels of the source image.

【数1】 (Equation 1)

【発明が解決しようとする課題】しかしながら、以上の
従来技術によれば、ソース画像の画素の座標からマッピ
ングする四角形の座標を算出していたため、マッピング
する画素数とマッピングされる画素数との大小関係によ
り、マッピングする四角形内で、同じ画素に対して複数
回のマッピングが行われたり、マッピングが行われない
画素が発生してしまう場合があった。また、2D表示で
擬似的に3D表示を実現する場合には、マッピングする
四角形の各辺での直線性が保存されてしまうため、マッ
ピングした画素が遠近法での失消点に対する直線とずれ
てしまい、不自然な画像となっていた。図12に8×8
の桝目のソース画像をマッピングした例を示す。12aはX
軸での分割間隔を均等にし、各消失点まで直線を引いた
遠近法を表す図であり、12bは各辺での分割間隔を均等
にし、対向する辺まで直線を引いた従来のマッピング方
法を表す図である。そこで、この発明は、マッピングす
る四角形内の座標から、マッピングされるソース画像の
座標を算出する事と、遠近法での失消点に対する直線に
沿った画素のマッピングを実現する事を課題とする。
However, according to the prior art described above, since the coordinates of the square to be mapped are calculated from the coordinates of the pixels of the source image, the size of the number of pixels to be mapped and the number of pixels to be mapped are small or large. Depending on the relationship, the same pixel may be mapped a plurality of times, or a pixel may not be mapped, in the rectangle to be mapped. Also, when pseudo 3D display is realized by 2D display, the linearity of each side of the quadrangle to be mapped is preserved, so that the mapped pixels deviate from the straight line for the vanishing point in perspective. That was an unnatural image. 8 × 8 in FIG.
Here is an example of mapping the source image of the square. 12a is X
It is a diagram showing a perspective method of equalizing the division interval on the axis and drawing a straight line to each vanishing point, 12b is a conventional mapping method of equalizing the division interval on each side and drawing a straight line to the opposite side. FIG. Therefore, an object of the present invention is to calculate coordinates of a source image to be mapped from coordinates in a rectangle to be mapped, and to realize mapping of pixels along a straight line to a vanishing point in perspective. .

【課題を解決するための手段】以上の課題を解決するた
めに、請求項1の発明は、X軸とY軸の座標系で構成さ
れる2次元空間内で、長方形または正方形の領域で示さ
れたマッピングされるソース画像を、全ての内角が18
0度より小さい四角形に変形してマッピングする画像マ
ッピングにおいて、ソース画像の4つの頂点の位置を指
定する手段と、マッピングする座標系のX軸もしくはY
軸上の2点A1、A2と、A1、A2とは同一軸上には
ない任意の点A3を指定する手段と、A1、A2と同一
軸上の2点B1、B2とB1、B2とは同一軸上にはな
い任意の点B3を指定する手段とを有し、A1、A2、
A3からなる三角形Pもしくは、A1とA3からなる直
線L1とL1と平行でA2を含む直線L2とで構成され
る平行線Qと、B1、B2、B3からなる三角形Rもし
くは、B1とB3からなる直線L3とL3と平行でB2
を含む直線L4とで構成される平行線Sもしくは、B1
とB2からなる直線L5とL5と平行でB3を含む直線
L6とで構成される平行線T、とを交差させることによ
り構成される四角形Uにソース画像をマッピングするこ
とを特徴とし、四角形U内の画素の座標からマッピング
されるソース画像の画素の座標を算出する画像マッピン
グ方法である。また、請求項2の発明は、請求項1記載
の画像マッピング方法において、四角形Uを構成するた
めに交差させる要素を三角形とした場合、指定する任意
の点A3およびB3はそれぞれが頂点となる三角形内
で、遠近法での失消点となるようにソース画像のマッピ
ングを行うものである。
In order to solve the above-mentioned problems, the invention according to claim 1 is directed to a rectangular or square area in a two-dimensional space formed by an X-axis and a Y-axis coordinate system. The mapped source image is mapped to all interior angles of 18
Means for designating the positions of four vertices of a source image in image mapping for mapping by transforming into a quadrangle smaller than 0 degrees, and an X axis or Y of a coordinate system to be mapped
The means for designating an arbitrary point A3 that is not on the same axis as the two points A1, A2 on the axis and the two points B1, B2 and B1, B2 on the same axis as A1, A2 Means for designating an arbitrary point B3 which is not on the same axis, wherein A1, A2,
A triangle P composed of A3 or a parallel line Q composed of straight lines L1 and L1 composed of A1 and A3 and a straight line L2 including A2, and a triangle R composed of B1, B2 and B3, or a triangle R composed of B1 and B3 B2 parallel to straight lines L3 and L3
A parallel line S or B1 composed of a straight line L4 including
And a parallel line T formed by crossing a straight line L5 composed of B2 and a parallel line T composed of a straight line L6 parallel to L5 and including B3. Is an image mapping method for calculating the coordinates of the pixels of the source image to be mapped from the coordinates of the pixels. According to a second aspect of the present invention, in the image mapping method according to the first aspect, when the elements to be intersected to form the quadrangle U are triangles, the specified points A3 and B3 are triangles each having a vertex. Within this, mapping of the source image is performed so as to be a vanishing point in perspective.

【発明の実施の形態】以下に本発明の実施例を図1、図
2、図3、図4、図5、図6、図7、図8、図9を用い
て説明する。図1は三角形Pと三角形Rを交差させて四
角形Uを構成し、ソース画像を四角形Uにマッピングす
る様子を示した説明図である。1a はマッピングする四
角形Uと指定する座標の関係を示し、1b はマッピング
されるソース画像を示す。ソース画像の頂点a,b,c,d は
四角形Uの頂点a’,b’,c’,d’にそれぞれ対応してい
る。図2は三角形Pと平行線Sを交差させて四角形Uを
構成し、ソース画像を四角形Uにマッピングする様子を
示した説明図である。2a はマッピングする四角形Uと
指定する座標の関係を示し、2bはマッピングされるソー
ス画像を示す。ソース画像の頂点a,b,c,d は四角形Uの
頂点a’,b’,c’,d’にそれぞれ対応している。図3は
平行線Qと三角形Rを交差させて四角形Uを構成し、ソ
ース画像を四角形Uにマッピングする様子を示した説明
図である。3a はマッピングする四角形Uと指定する座
標の関係を示し、3b はマッピングされるソース画像を
示す。ソース画像の頂点a,b,c,d は四角形Uの頂点a’,
b’,c’,d’にそれぞれ対応している。図4は平行線Q
と平行線Sを交差させて四角形Uを構成し、ソース画像
を四角形Uにマッピングする様子を示した説明図であ
る。4a はマッピングする四角形Uと指定する座標の関
係を示し、4b はマッピングされるソース画像を示す。
ソース画像の頂点a,b,c,d は四角形Uの頂点a’,b’,
c’,d’にそれぞれ対応している。図5は三角形Pと平
行線Tを交差させて四角形Uを構成し、ソース画像を四
角形Uにマッピングする様子を示した説明図である。5a
はマッピングする四角形Uと指定する座標の関係を示
し、5b はマッピングされるソース画像を示す。ソース
画像の頂点a,b,c,d は四角形Uの頂点a’,b’,c’,d’
にそれぞれ対応している。図6は平行線Qと平行線Tを
交差させて四角形Uを構成し、ソース画像を四角形Uに
マッピングする様子を示した説明図である。6a はマッ
ピングする四角形Uと指定する座標の関係を示し、6b
はマッピングされるソース画像を示す。ソース画像の頂
点a,b,c,d は四角形Uの頂点a’,b’,c’,d’にそれぞ
れ対応している。図7は図1で示したマッピングの例に
おける詳細な座標計算の様子を示した説明図である。図
8は図2で示したマッピングの例における詳細な座標計
算の様子を示した説明図である。図9は図5で示したマ
ッピングの例における詳細な座標計算の様子を示した説
明図である。以下に、図7を用いて図1で示したマッピ
ングの例の詳細な座標計算の様子を説明する。7b の(x,
y)で示されるソース画像の画素の座標を7aの(x’.y’)
にマッピングを行う場合には、X軸と平行で(x’.y’)
を含むスキャンラインSL上での、直線A2-A3 との交点
と直線A1-A3との交点との距離X’ 、直線A2-A3 との交
点と(x’,y’)との距離px、直線B1-B3との交点と直線B2
-B3との交点との距離Y’、直線B1-B3との交点と(x’,
y’)との距離pyを数2、数3、数4、数5により求め、
ソース画像のサイズであるX,Y とで数6に示す演算を行
ってソース画像の画素の座標(x,y) を求めれば良い。
DESCRIPTION OF THE PREFERRED EMBODIMENTS An embodiment of the present invention will be described below with reference to FIGS. 1, 2, 3, 4, 5, 6, 7, 8, and 9. FIG. FIG. 1 is an explanatory diagram showing a state in which a triangle U is formed by intersecting a triangle P and a triangle R, and a source image is mapped onto the square U. 1a shows the relationship between the quadrangle U to be mapped and the designated coordinates, and 1b shows the source image to be mapped. The vertices a, b, c, d of the source image correspond to the vertices a ', b', c ', d' of the square U, respectively. FIG. 2 is an explanatory diagram showing a state in which a rectangle U is formed by intersecting a triangle P and a parallel line S, and a source image is mapped onto the rectangle U. 2a shows the relationship between the rectangle U to be mapped and the designated coordinates, and 2b shows the source image to be mapped. The vertices a, b, c, d of the source image correspond to the vertices a ', b', c ', d' of the square U, respectively. FIG. 3 is an explanatory diagram showing a state in which a parallel line Q and a triangle R intersect to form a square U, and a source image is mapped to the square U. 3a shows the relationship between the quadrangle U to be mapped and the designated coordinates, and 3b shows the source image to be mapped. The vertices a, b, c, d of the source image are the vertices a ',
b ', c', and d ', respectively. Figure 4 shows the parallel line Q
FIG. 4 is an explanatory diagram showing a state in which a square U is formed by intersecting parallel lines S with each other and a source image is mapped to the square U. 4a shows the relationship between the rectangle U to be mapped and the designated coordinates, and 4b shows the source image to be mapped.
The vertices a, b, c, d of the source image are the vertices a ', b',
They correspond to c 'and d', respectively. FIG. 5 is an explanatory diagram showing a state in which a rectangle U is formed by intersecting a triangle P and a parallel line T, and a source image is mapped to the rectangle U. 5a
Indicates the relationship between the square U to be mapped and the specified coordinates, and 5b indicates the source image to be mapped. The vertices a, b, c, d of the source image are the vertices a ', b', c ', d' of the square U
Respectively. FIG. 6 is an explanatory diagram showing a state in which a parallel line Q and a parallel line T intersect to form a rectangle U, and a source image is mapped to the rectangle U. 6a shows the relationship between the rectangle U to be mapped and the coordinates to be specified, and 6b
Indicates a source image to be mapped. The vertices a, b, c, d of the source image correspond to the vertices a ', b', c ', d' of the square U, respectively. FIG. 7 is an explanatory diagram showing a detailed coordinate calculation in the example of the mapping shown in FIG. FIG. 8 is an explanatory diagram showing a detailed coordinate calculation in the mapping example shown in FIG. FIG. 9 is an explanatory diagram showing a detailed coordinate calculation in the example of the mapping shown in FIG. Hereinafter, a detailed coordinate calculation in the example of the mapping shown in FIG. 1 will be described with reference to FIG. 7b (x,
The coordinates of the pixels of the source image indicated by (y) are represented by (x'.y ') of 7a.
When mapping to (x'.y ') parallel to the X axis
On the scan line SL including the distance X 'between the intersection with the straight line A2-A3 and the intersection with the straight line A1-A3, the distance px between the intersection with the straight line A2-A3 and (x', y '), Intersection with line B1-B3 and line B2
-The distance Y 'to the intersection with B3, the intersection with the straight line B1-B3 and (x',
y ′) and the distance py is calculated by Equations 2, 3, 4, and 5,
The coordinates (x, y) of the pixels of the source image may be obtained by performing the operation shown in Expression 6 with X, Y, which is the size of the source image.

【数2】 (Equation 2)

【数3】 (Equation 3)

【数4】 (Equation 4)

【数5】 (Equation 5)

【数6】 なお、数2、数3では0≦y’≦A3y 数4、数5では、0
≦y’≦B3y 数6では、0≦Px≦X’、0≦Py≦Y’なの
で、乗除算部については線形補間演算が可能である。さ
らに、以下に、図8を用いて図2で示したマッピングの
例の詳細な座標計算の様子を説明する。8bの(x,y)で示
されるソース画像の画素の座標を8aの(x’.y’)にマッ
ピングを行う場合には、数2、数3、数5によりX’、p
x、pyを数7によりY’、を求め、ソース画像のサイズで
あるX,Yとで数6に示す演算を行ってソース画像の画素
の座標(x,y)を求めれば良い。
(Equation 6) In Equations 2 and 3, 0 ≦ y ′ ≦ A3y In Equations 4 and 5, 0
.Ltoreq.y'.ltoreq.B3y In Equation 6, since 0.ltoreq.Px.ltoreq.X 'and 0.ltoreq.Py.ltoreq.Y', linear interpolation can be performed for the multiplication / division unit. Further, a detailed coordinate calculation in the example of the mapping shown in FIG. 2 will be described below with reference to FIG. When mapping the coordinates of the pixel of the source image represented by (x, y) of 8b to (x′.y ′) of 8a, X ′, p is calculated by Expressions 2, 3, and 5.
The coordinates (x, y) of the pixels of the source image may be obtained by calculating x 'and py's by Y' using Equation 7, and performing the operation shown by Equation 6 with X and Y which are the size of the source image.

【数7】 さらに、以下に、図9を用いて図5で示したマッピング
の例の詳細な座標計算の様子を説明する。9b の(x,y)で
示されるソース画像の画素の座標を9aの(x’.y’) にマ
ッピングを行う場合には、数2、数3によりX’、px 数
8、数9によりY’、pyを求め、ソース画像のサイズで
あるX,Yとで数6に示す演算を行ってソース画像の画素
の座標(x,y)を求めれば良い。なお、この時にB1x,B2x,B
3xは演算には使用されない。
(Equation 7) Further, the details of the coordinate calculation in the example of the mapping shown in FIG. 5 will be described below with reference to FIG. When mapping the coordinates of the pixel of the source image indicated by (x, y) of 9b to (x'.y ') of 9a, X ′ is calculated by Expressions 2 and 3, and X ′ is calculated by Expressions 8 and 9, The coordinates (x, y) of the pixels of the source image may be obtained by calculating Y ′ and py and performing the operation shown in Expression 6 with X and Y that are the sizes of the source image. At this time, B1x, B2x, B
3x is not used for the operation.

【数8】 (Equation 8)

【数9】 以上の様に、四角形Uを構成するために交差させる要素
が三角形P、Rか平行線Q、Sか平行線Tかにより、
X’、Y’およびpx、pyを求める演算を変更し、四角形U
の中の全ての画素の座標に上記の演算を行うことで、図
1〜図6の全ての場合においてソース画像の画素の座標
(x,y)を求める事が出来る。 「実施形態の効果」この実施形態では、マッピングする
四角形内の座標から、マッピングされるソース画像の座
標を算出しているため、マッピングする画素数とマッピ
ングされる画素数との大小関係に関わり無く、マッピン
グする四角形内で、同じ画素に対して複数回のマッピン
グが行われたり、マッピングが行われない画素が発生し
てしまう事は無い。また、四角形Uを構成するために交
差させる要素を三角形とした場合、指定する任意の点A
3およびB3はそれぞれが頂点となる三角形内で、遠近
法での失消点となるようにソース画像のマッピングが行
われるので、2D表示で擬似的に3D表示を実現する場
合には、マッピングした画素が遠近法での失消点に対す
る直線と一致し、自然な画像を得ることが出来る。ま
た、従来のマッピング方法に比べて乗算の演算回数が少
なく、さらに、乗除算に関しても補間演算を用いる事が
可能なのでマッピングのための演算量を減らすことが出
来る。 「他の実施形態」上記の実施形態では、A1,A2、B
1、B2をX軸上に指定したが、これをY軸としてもよ
い。また、A1とB1をパラメーターとして指定してい
るが、これをXY軸の原点(0,0)に固定して指定し、パ
ラメーターを減らしてもよい。また、マッピングされる
ソース画像の領域の辺はX軸もしくはY軸に平行として
いるが、斜めであったも良い。図10に辺がXY軸と4
5度の角度をなす正方形のソース画像の領域の例を示
す。上記の実施形態で得られる10aに示す領域のソース
画像の画素の座標(x,y)に数10の演算を行い(xr,yr)を
新たなソース画像の画素の座標として用いることで10b
に示すような領域が得られる。
(Equation 9) As described above, depending on whether the elements that intersect to form the quadrangle U are the triangles P, R or the parallel lines Q, S, or the parallel lines T,
Change the calculation to find X ', Y' and px, py,
The above operation is performed on the coordinates of all the pixels in the coordinates of the source image in all the cases of FIGS. 1 to 6.
(x, y) can be obtained. "Effects of Embodiment" In this embodiment, since the coordinates of the source image to be mapped are calculated from the coordinates in the rectangle to be mapped, regardless of the magnitude relationship between the number of pixels to be mapped and the number of pixels to be mapped. In the rectangle to be mapped, the same pixel is not mapped a plurality of times, and there is no pixel that is not mapped. Further, if the elements to be intersected to form the quadrangle U are triangular, any point A
In 3 and B3, the source images are mapped so as to be vanishing points in perspective within triangles each having a vertex. Therefore, when 3D display is pseudo-realized by 2D display, mapping is performed. Pixels match the straight line for the vanishing point in the perspective view, and a natural image can be obtained. In addition, the number of multiplication operations is smaller than that of the conventional mapping method, and the interpolation operation can be used for multiplication and division, so that the amount of calculation for mapping can be reduced. "Other embodiments" In the above embodiment, A1, A2, B
Although 1, B2 is designated on the X axis, it may be designated as the Y axis. Although A1 and B1 are specified as parameters, they may be fixed at the origin (0, 0) of the XY axes and specified to reduce the parameters. Although the side of the area of the source image to be mapped is parallel to the X axis or the Y axis, it may be oblique. In FIG. 10, the sides are XY axes and 4
5 shows an example of a square source image region forming an angle of 5 degrees. The coordinates (x, y) of the pixel of the source image in the region indicated by 10a obtained in the above embodiment are calculated by the formula (10), and (xr, yr) is used as the coordinates of the pixel of the new source image.
Are obtained as shown in FIG.

【数10】 (Equation 10)

【発明の効果】以上説明したように、この発明によれ
ば、マッピングする四角形内の座標から、マッピングさ
れるソース画像の座標を算出しているため、マッピング
する画素数とマッピングされる画素数との大小関係に関
わり無く、マッピングする四角形内で、同じ画素に対し
て複数回のマッピングが行われたり、マッピングが行わ
れない画素が発生してしまう事は無い。また、四角形U
を構成するために交差させる要素を三角形とした場合、
指定する任意の点A3およびB3はそれぞれが頂点とな
る三角形内で、遠近法での失消点となるようにソース画
像のマッピングが行われるので、2D表示で擬似的に3
D表示を実現する場合には、マッピングした画素が遠近
法での失消点に対する直線と一致し、自然な画像を得る
ことが出来る。また、従来のマッピング方法に比べて乗
算の演算回数が少なく、さらに、乗除算に関しても補間
演算を用いる事が可能なのでマッピングのための演算量
を減らすことが出来る。
As described above, according to the present invention, since the coordinates of the source image to be mapped are calculated from the coordinates in the rectangle to be mapped, the number of pixels to be mapped and the number of pixels to be mapped are reduced. Regardless of the magnitude relationship of, there is no possibility that mapping is performed a plurality of times on the same pixel within a rectangle to be mapped, or that a pixel is not mapped. In addition, square U
If the elements to be intersected to form a triangle are
The arbitrary points A3 and B3 to be specified are mapped in the source image so as to be vanishing points in perspective within triangles each having a vertex.
In the case of realizing the D display, the mapped pixels coincide with the straight line for the vanishing point in the perspective view, and a natural image can be obtained. In addition, the number of multiplication operations is smaller than that of the conventional mapping method, and the interpolation operation can be used for multiplication and division, so that the amount of calculation for mapping can be reduced.

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

【図1】この発明の一実施形態の三角形Pと三角形Rが
交差した場合の説明図である。
FIG. 1 is an explanatory diagram when a triangle P and a triangle R intersect according to an embodiment of the present invention.

【図2】この発明の一実施形態の三角形Pと平行線Sが
交差した場合の説明図である。
FIG. 2 is an explanatory diagram of a case where a triangle P and a parallel line S intersect according to one embodiment of the present invention.

【図3】この発明の一実施形態の平行線Qと三角形Rが
交差した場合の説明図である。
FIG. 3 is an explanatory diagram of a case where a parallel line Q and a triangle R intersect according to one embodiment of the present invention.

【図4】この発明の一実施形態の平行線Qと平行線Sが
交差した場合の説明図である。
FIG. 4 is an explanatory diagram when a parallel line Q and a parallel line S intersect in one embodiment of the present invention.

【図5】この発明の一実施形態の三角形Pと平行線Tが
交差した場合の説明図である。
FIG. 5 is an explanatory diagram of a case where a triangle P and a parallel line T intersect according to one embodiment of the present invention.

【図6】この発明の一実施形態の平行線Qと平行線Tが
交差した場合の説明図である。
FIG. 6 is an explanatory diagram when a parallel line Q and a parallel line T intersect in one embodiment of the present invention.

【図7】この発明の一実施形態の図1でのマッピングの
詳細説明図である。
FIG. 7 is a detailed explanatory diagram of the mapping in FIG. 1 according to the embodiment of the present invention;

【図8】この発明の一実施形態の図2でのマッピングの
詳細説明図である。
FIG. 8 is a detailed explanatory diagram of the mapping in FIG. 2 according to the embodiment of the present invention;

【図9】この発明の一実施形態の図5でのマッピングの
詳細説明図である。
FIG. 9 is a detailed explanatory diagram of the mapping in FIG. 5 according to the embodiment of the present invention;

【図10】この発明の一実施形態のソース画像の領域の
辺が斜めの場合の説明図である。
FIG. 10 is an explanatory diagram in a case where a side of a region of a source image is oblique according to one embodiment of the present invention;

【図11】従来のマッピング方法を示す説明図である。FIG. 11 is an explanatory diagram showing a conventional mapping method.

【図12】この発明の一実施形態と従来のマッピング方
法との差を示す説明図である。
FIG. 12 is an explanatory diagram showing a difference between an embodiment of the present invention and a conventional mapping method.

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

1a マッピングする四角形Uと指定する座標の関係 1b マッピングされるソース画像領域 2a マッピングする四角形Uと指定する座標の関係 2b マッピングされるソース画像領域 3a マッピングする四角形Uと指定する座標の関係 3b マッピングされるソース画像領域 4a マッピングする四角形Uと指定する座標の関係 4b マッピングされるソース画像領域 5a マッピングする四角形Uと指定する座標の関係 5b マッピングされるソース画像領域 6a マッピングする四角形Uと指定する座標の関係 6b マッピングされるソース画像領域 7a マッピングする四角形Uと指定する座標の関係の詳
細 7b マッピングされるソース画像領域の詳細 8a マッピングする四角形Uと指定する座標の関係の詳
細 8b マッピングされるソース画像領域の詳細 9a マッピングする四角形Uと指定する座標の関係の詳
細 9b マッピングされるソース画像領域の詳細 10a 辺がXY軸に平行なマッピングされるソース画像領
域 10b 辺がXY軸と45度の角度をなすマッピングされる
ソース画像領域 11a 従来のマッピング方法でのマッピングする四角形
と指定する座標の関係 11b 従来のマッピング方法でのマッピングされるソー
ス画像領域 12a 遠近法でのマッピング例 12b 従来のマッピング方法でのマッピング例
1a Relationship between rectangle U to be mapped and designated coordinates 1b Source image area to be mapped 2a Relationship between rectangle U to be mapped and designated coordinates 2b Source image area to be mapped 3a Relationship between rectangle U to be mapped and designated coordinates 3b Source image area 4a Relationship between rectangle U to be mapped and designated coordinates 4b Source image area to be mapped 5a Relationship between rectangle U to be mapped and designated coordinates 5b Source image area to be mapped 6a Square U to be mapped and coordinates to be designated Relationship 6b Source image area to be mapped 7a Details of relationship between square U to be mapped and specified coordinates 7b Details of source image area to be mapped 8a Details of relationship between square U to be mapped and specified coordinates 8b Source image area to be mapped Details 9a Square U to map 9b Details of the source image area to be mapped 10a Source image area where the side is mapped parallel to the XY axis 10b Source image area 11a where the side forms an angle of 45 degrees with the XY axis Relationship between rectangle to be mapped and coordinate to be specified by conventional mapping method 11b Source image area to be mapped by conventional mapping method 12a Example of mapping by perspective method 12b Example of mapping by conventional mapping method

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】X軸とY軸の座標系で構成される2次元空
間内で、長方形または正方形の領域で示されたマッピン
グされるソース画像を、全ての内角が180度より小さ
い四角形に変形してマッピングする画像マッピングにお
いて、ソース画像の4つの頂点の位置を指定する手段
と、マッピングする座標系のX軸もしくはY軸上の2点
A1、A2と、A1、A2とは同一軸上にはない任意の
点A3を指定する手段と、A1、A2と同一軸上の2点
B1、B2とB1、B2とは同一軸上にはない任意の点
B3を指定する手段とを有し、A1、A2、A3からな
る三角形Pもしくは、A1とA3からなる直線L1とL
1と平行でA2を含む直線L2とで構成される平行線Q
と、B1、B2、B3からなる三角形Rもしくは、B1
とB3からなる直線L3とL3と平行でB2を含む直線
L4とで構成される平行線Sもしくは、B1とB2から
なる直線L5とL5と平行でB3を含む直線L6とで構
成される平行線T、とを交差させることにより構成され
る四角形Uにソース画像をマッピングすることを特徴と
した、四角形U内の画素の座標からマッピングされるソ
ース画像の画素の座標を算出する画像マッピング方法。
1. A source image to be mapped, which is represented by a rectangular or square area, is transformed into a quadrangle having all interior angles smaller than 180 degrees in a two-dimensional space composed of an X-axis and a Y-axis coordinate system. Means for specifying the positions of the four vertices of the source image, and two points A1, A2 and A1, A2 on the X-axis or Y-axis of the coordinate system to be mapped are on the same axis. Means for designating an arbitrary point A3 that does not have, and means for designating an arbitrary point B3 that is not on the same axis as two points B1, B2 and B1, B2 on the same axis as A1 and A2, A triangle P composed of A1, A2, and A3 or a straight line L1 and L composed of A1 and A3
1 and a straight line L2 parallel to A2 and including A2.
And a triangle R consisting of B1, B2, and B3 or B1
A parallel line S composed of straight lines L3 and L3 composed of straight lines L3 and L3 and a straight line L4 including B2, or a parallel line composed of straight lines L5 and L5 composed of B1 and B2 and a straight line L6 parallel to and including B3. An image mapping method for calculating the coordinates of the pixels of the source image to be mapped from the coordinates of the pixels in the rectangle U, characterized by mapping the source image to a rectangle U formed by intersecting T and T.
【請求項2】請求項1記載の画像マッピング方法におい
て、四角形Uを構成するために交差させる要素を三角形
とした場合、指定する任意の点A3およびB3はそれぞ
れが頂点となる三角形内で、遠近法での失消点となるよ
うにソース画像のマッピングを行うもの。
2. An image mapping method according to claim 1, wherein if the elements to be intersected to form the quadrangle U are triangles, the specified points A3 and B3 are within the triangle each having a vertex. The source image is mapped so that it becomes a vanishing point in the law.
JP2000030691A 2000-02-08 2000-02-08 Image mapping method Expired - Fee Related JP3545304B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2000030691A JP3545304B2 (en) 2000-02-08 2000-02-08 Image mapping method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2000030691A JP3545304B2 (en) 2000-02-08 2000-02-08 Image mapping method

Publications (2)

Publication Number Publication Date
JP2001222275A true JP2001222275A (en) 2001-08-17
JP3545304B2 JP3545304B2 (en) 2004-07-21

Family

ID=18555674

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2000030691A Expired - Fee Related JP3545304B2 (en) 2000-02-08 2000-02-08 Image mapping method

Country Status (1)

Country Link
JP (1) JP3545304B2 (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH03198167A (en) * 1989-12-27 1991-08-29 Fuji Xerox Co Ltd Method and device for deforming two-dimensional bit map image
JPH06274650A (en) * 1993-03-23 1994-09-30 Dainippon Printing Co Ltd Image synthesizer

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH03198167A (en) * 1989-12-27 1991-08-29 Fuji Xerox Co Ltd Method and device for deforming two-dimensional bit map image
JPH06274650A (en) * 1993-03-23 1994-09-30 Dainippon Printing Co Ltd Image synthesizer

Also Published As

Publication number Publication date
JP3545304B2 (en) 2004-07-21

Similar Documents

Publication Publication Date Title
CA2818362C (en) System and method for scaling vector-based graphic designs
JP3744039B2 (en) Perspective drawing creation support method
JP2579421B2 (en) Surface drawing method with surface marking
JP2015114949A (en) Image processor, image processing method, program for image processor, and recording medium
EP2034445B1 (en) Method for drawing geometric shapes
JP4760550B2 (en) Image conversion apparatus and image conversion program
JP3545304B2 (en) Image mapping method
WO2019049457A1 (en) Image generation device and image generation method
JP4056118B2 (en) Image processing device
JPH11149566A (en) Three-dimensional cg plotting device for curved surface display
JP2604723B2 (en) Shape deformation method
CN114359456B (en) Picture pasting method and device, electronic equipment and readable storage medium
JPH03198167A (en) Method and device for deforming two-dimensional bit map image
JPH07200876A (en) Three-dimensional image generating method
JP3071495B2 (en) Object model editing device
JPH09138869A (en) Picture shaping method
JPH02259888A (en) Internal interpolation method for polygon
JP3513024B2 (en) View information determining apparatus, view information determining method, and recording medium storing a program for executing the view information determining method
CN115457166A (en) Irregular round-corner polygon drawing method
JPH03278278A (en) Method for converting image
JP2002245486A (en) Device, method and program for three-dimensional model generation
JPS6383871A (en) Shadow display method
JPH0350686A (en) Graphic processing system
JPH07200875A (en) Display position changing method for three-dimensional model
JPH03175583A (en) Deforming method for two-dimensional bit map picture

Legal Events

Date Code Title Description
TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20040330

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20040407

R150 Certificate of patent or registration of utility model

Ref document number: 3545304

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

Free format text: JAPANESE INTERMEDIATE CODE: R150

S531 Written request for registration of change of domicile

Free format text: JAPANESE INTERMEDIATE CODE: R313531

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

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

Free format text: PAYMENT UNTIL: 20110416

Year of fee payment: 7

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

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

Free format text: PAYMENT UNTIL: 20120416

Year of fee payment: 8

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

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

Free format text: PAYMENT UNTIL: 20120416

Year of fee payment: 8

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

Free format text: PAYMENT UNTIL: 20120416

Year of fee payment: 8

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

Free format text: PAYMENT UNTIL: 20120416

Year of fee payment: 8

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

Free format text: PAYMENT UNTIL: 20120416

Year of fee payment: 8

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

Free format text: PAYMENT UNTIL: 20130416

Year of fee payment: 9

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

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

Free format text: PAYMENT UNTIL: 20130416

Year of fee payment: 9

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

Free format text: PAYMENT UNTIL: 20130416

Year of fee payment: 9

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

Free format text: PAYMENT UNTIL: 20140416

Year of fee payment: 10

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

LAPS Cancellation because of no payment of annual fees