JP4808167B2 - Image processing method and 3D drawing circuit using the processing method - Google Patents

Image processing method and 3D drawing circuit using the processing method Download PDF

Info

Publication number
JP4808167B2
JP4808167B2 JP2007037526A JP2007037526A JP4808167B2 JP 4808167 B2 JP4808167 B2 JP 4808167B2 JP 2007037526 A JP2007037526 A JP 2007037526A JP 2007037526 A JP2007037526 A JP 2007037526A JP 4808167 B2 JP4808167 B2 JP 4808167B2
Authority
JP
Japan
Prior art keywords
image
pixel information
edge
texture image
texture
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.)
Active
Application number
JP2007037526A
Other languages
Japanese (ja)
Other versions
JP2008204035A (en
Inventor
俊博 白川
Original Assignee
株式会社タイトー
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 株式会社タイトー filed Critical 株式会社タイトー
Priority to JP2007037526A priority Critical patent/JP4808167B2/en
Publication of JP2008204035A publication Critical patent/JP2008204035A/en
Application granted granted Critical
Publication of JP4808167B2 publication Critical patent/JP4808167B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Description

本発明は、画像データのエッジの外側を、内側の画像から予測し、拡張して表示する画像処理方法およびこの画像処理方法を用いた3D描画回路に関する。   The present invention relates to an image processing method for predicting an outside of an edge of image data from an inside image and expanding and displaying the image data, and a 3D drawing circuit using the image processing method.

従来、ディスプレイに表示される画像の内部の一部に欠損領域が存在した場合、その欠損領域の画像を復元する画像処理の方法(内部画像の欠損について前後の画像により画像を補間処理するもの)は実用に供されているが、画像領域の外側に画像を拡張する場合、その画像の外側を推測して拡張する画像処理方法は存在していない。
画像の範囲外を表示したい時は、単純な座標の置き換えによって実現していた。
図8に従来の画像処理方法で処理する画像例を示す。
例えば、(a)に示すようなL1 ×L2 に示すような範囲の絵の画素情報を持っているとする。L1 ×L2 の範囲の左外側に画像を拡張する場合、ラップという手法で拡張すると、元の画像の右端の画像がL1 ×L2 の範囲の左外側に繋げた処理となる。そのため、拡張した部分の画像の連続性は損なわれ滑らかな拡張画像を得ることはできない(b)。
Conventionally, when there is a missing area in a part of the image displayed on the display, an image processing method to restore the image of the missing area (interpolation processing of the internal image with the previous and subsequent images) However, when an image is expanded outside the image area, there is no image processing method for estimating and expanding the outside of the image area.
When we wanted to display outside the range of the image, it was realized by simple coordinate replacement.
FIG. 8 shows an example of an image processed by a conventional image processing method.
For example, it is assumed that pixel information of a picture in a range as shown in L 1 × L 2 as shown in FIG. When the image is extended to the left outer side of the range of L 1 × L 2 , if the method is called wrapping, the right end image of the original image is connected to the left outer side of the range of L 1 × L 2 . For this reason, the continuity of the extended portion of the image is impaired, and a smooth extended image cannot be obtained (b).

また、クランプという手法を採用すると、L1 ×L2 の範囲の左外側に画像を拡張する場合、画像の左エッジの画像の濃淡が左側に延長される画像処理となって(c)に示すような拡張部分を持つ画像となり、不自然である。さらにミラーという手法を用いれば、模様が傾斜している元画像では、L1 ×L2 の範囲の左外側に裏面から見た画像を繋げる処理となり、同様に不自然な画像となる(d)。
このような処理は、視覚的に非常に小さい部分の画像部分であってもエッジ部分が目立ってしまうという欠点があった。
Further, when a technique called clamping is employed, when the image is extended to the left outside of the range of L 1 × L 2 , the image processing is such that the density of the image at the left edge of the image is extended to the left side as shown in (c). It becomes an image with such an extended part and is unnatural. Furthermore, if a technique called a mirror is used, in the original image with a slanted pattern, the image viewed from the back side is connected to the left outer side of the range of L 1 × L 2 , and similarly an unnatural image is obtained (d). .
Such processing has a drawback that the edge portion is conspicuous even in the case of a visually very small image portion.

画像の並び替えなどをした場合、画像間に白画像が発生する場合の処理として映像データ処理装置(特許文献1)が提案されている。
これは、表示画面の1/4に画像データがある場合、この画像データを4つのマルチ画面表示するときに、各画面の間に生じる白画像部分を埋める処理を提案したもので、白画像部分に接する画像の画素を起点に、同じ画素を白画像部分に繰り返し加える処理を行うものである。このため、画面のエッジに接する新幹線の車輪からは長方形の模様が白画像の方向に延びた画像となる。これは、従来例で示した図8(c)の処理と同じであり、白画像部分の領域が大きい場合には画像の滑らかさが損なわれることとなる。
特開2005−142678号公報
A video data processing apparatus (Patent Document 1) has been proposed as a process when white images are generated between images when images are rearranged.
This is a proposal of a process for filling a white image portion generated between each screen when the image data is displayed on ¼ of the display screen when four multi-screen images are displayed. A process of repeatedly adding the same pixel to the white image portion starting from the pixel of the image in contact with the image is performed. For this reason, a rectangular pattern extends in the direction of the white image from the wheel of the bullet train in contact with the edge of the screen. This is the same as the processing of FIG. 8C shown in the conventional example, and the smoothness of the image is impaired when the area of the white image portion is large.
JP 2005-142678 A

本発明の目的は、画面上の所定範囲を表示する元画像データを有し、この元画像データの外側の領域(画像拡張部分)に対し、画像の範囲外の領域を予測することにより画像の拡張部分まで滑らかに連続する画像を表示できる画像処理方法を提供することにある。
本発明の他の目的はこの画像処理方法を用いてポリゴンのテクスチャ画像の貼り付けの境界付近の画像を従来に比較し滑らかに表示できるようにした3D描画回路を提供することにある。
It is an object of the present invention to have original image data for displaying a predetermined range on a screen, and predict an area outside the image range by predicting an area outside the image range with respect to an area outside the original image data (image extension portion). An object of the present invention is to provide an image processing method capable of displaying an image that continues smoothly up to an extended portion.
Another object of the present invention is to provide a 3D drawing circuit which can display an image near the boundary of the polygon texture image pasting using this image processing method more smoothly than in the prior art.

前記目的を達成するために本発明の請求項1は、所定の範囲を表示するための元画像データを有し、前記所定の範囲の外側の領域に対し前記元画像データに基づき画素を補充するための画像処理方法であって、エッジ検出手段により前記元画像データにより形成される絵のエッジを検出し、エッジ延長手段により前記検出した絵のエッジを前記所定の範囲の外側の領域まで延長し、画素補充面算出手段により前記所定の範囲の外側の領域であって前記延長した絵のエッジにより囲まれる面を算出し、画素情報演算手段により前記囲まれる面に対し、同じ面となる元画像データの画素情報より、補充すべき画素情報を求め、前記所定の範囲の外側の領域を補充すべき画素情報で描画することを特徴とする。
本発明の請求項2は、テクスチャ画像をポリゴン面に貼り付ける際、前記ポリゴン面を分ける境界付近にテクスチャ画像が欠損する領域が発生するときに画素を補充するための3D描画回路であって、テクスチャ画像の輪郭を検出するテクスチャ画像輪郭検出部と、前記テクスチャ画像輪郭検出部により検出したテクスチャ画像のエッジを前記欠損する領域まで延長し、延長したエッジによって形成される分割面を算出する分割面算出部と、前記分割面と同じ面となるテクスチャ画像の画素情報を参照することにより、前記分割面の補充すべき画素情報を算出する分割面画素情報算出部と、前記分割面の画素情報を前記元画像データに加えて画素情報を更新する更新部とを備えたことを特徴とする。
本発明の請求項3は請求項2記載の発明において前記画素情報は、面座標データおよび色データを含むことを特徴とする。
In order to achieve the object, claim 1 of the present invention has original image data for displaying a predetermined range, and replenishes a pixel outside the predetermined range based on the original image data. An image processing method for detecting an edge of a picture formed by the original image data by an edge detection means and extending the detected picture edge to an area outside the predetermined range by an edge extension means. The pixel supplement surface calculation means calculates a surface that is outside the predetermined range and is surrounded by the extended picture edge, and the pixel information calculation means is an original image that is the same surface as the surrounded surface. The pixel information to be supplemented is obtained from the pixel information of the data, and the region outside the predetermined range is drawn with the pixel information to be supplemented.
Claim 2 of the present invention is a 3D drawing circuit for replenishing pixels when an area in which a texture image is missing is generated near a boundary separating the polygon surface when the texture image is pasted on the polygon surface. A texture image contour detection unit for detecting a contour of a texture image, and a split surface for calculating a split surface formed by extending the edges of the texture image detected by the texture image contour detection unit to the missing region. By referring to the pixel information of the texture image that is the same plane as the division plane, the division plane pixel information calculation section that calculates pixel information to be supplemented to the division plane, and the pixel information of the division plane And an update unit that updates pixel information in addition to the original image data.
According to a third aspect of the present invention, in the second aspect, the pixel information includes plane coordinate data and color data.

上記構成によれば、画像データの外側の表示画面に対し、滑らかな画像を表示できる。特に3Dモデルの表面に貼るテクスチャのエッジに適用すると、従来の画像処理方法に比較し滑らかに3D画像を得ることができる。
また、ある物体が一部しか写っていない写真から全体を復元する場合、本発明方法を用いれば作業工程が削減でき手作業を単純化することができる。
According to the above configuration, a smooth image can be displayed on the display screen outside the image data. In particular, when applied to texture edges applied to the surface of a 3D model, a 3D image can be obtained more smoothly than in a conventional image processing method.
Further, when the entire image is restored from a photograph in which only a part of an object is shown, the work process can be reduced and the manual work can be simplified by using the method of the present invention.

以下、図面を参照して本発明の実施の形態を詳しく説明する。
図1Aは、本発明による画像処理方法により構成した描画処理回路の実施の形態を示すブロック図である。
メモリ部2に元画像データ2aが格納されている。描画処理回路3は元画像データ2aを用いて元画像データ2aの外側の部分に拡張する画像データを形成する。
描画処理回路3はエッジ検出回路3a,エッジ延長回路3b,画素補充面算出回路3cおよび画素情報演算回路3dより構成されており、画素情報演算回路3dから元画像データ2aの外側の拡張部分の画像データが出力され、図示しない表示部ではこの拡張部分の画像データも表示される。
Hereinafter, embodiments of the present invention will be described in detail with reference to the drawings.
FIG. 1A is a block diagram showing an embodiment of a drawing processing circuit configured by an image processing method according to the present invention.
Original image data 2 a is stored in the memory unit 2. The drawing processing circuit 3 uses the original image data 2a to form image data that is extended to the outside of the original image data 2a.
The drawing processing circuit 3 includes an edge detection circuit 3a, an edge extension circuit 3b, a pixel supplement plane calculation circuit 3c, and a pixel information calculation circuit 3d. An image of an extended portion outside the original image data 2a from the pixel information calculation circuit 3d. Data is output, and the image data of the expanded portion is also displayed on a display unit (not shown).

図1Bは、本発明による画像処理方法の工程を説明するための図である。
元画像データ2aは左外側の境界線に向かって少しずつ薄くなるグラデーションの帯の画像5と、左外側の境界線に対し斜め下に向かっている帯の画像6より構成されているとする(a)。この元画像の左外側の所定の範囲に拡張画像を生成する場合、元画像のエッジを検出する元画像エッジ検出回路3aにより、エッジ部分のみを検出する処理を行って(b)に示す帯の形状線5a,6aを検出する。
つぎにエッジ延長回路3bにより、帯の形状線5a,6aを左外側に延長させて拡張部分に延長線5b,6bを形成する(c)。
さらに画像補充面算出回路3cにより元画像データ2aの外側の領域の延長した絵のエッジにより囲まれる面を算出し、画像情報演算回路3dにより、囲まれる面に対し、同じ面となる元画像データの画素情報を参照し、この元画像データの画素情報に基づき、補充すべき画素情報を演算する。画素情報は面座標データおよび色データを含んでおり、これにより拡張部分に元画像データ2aに繋がる滑らかな画像を描画することができる。
FIG. 1B is a diagram for explaining the steps of the image processing method according to the present invention.
The original image data 2a is composed of a gradation band image 5 that gradually becomes thinner toward the left outer boundary line and a band image 6 that is inclined downward with respect to the left outer boundary line ( a). When generating an extended image in a predetermined range on the left outer side of the original image, the original image edge detection circuit 3a for detecting the edge of the original image performs processing for detecting only the edge portion, and the band shown in FIG. Shape lines 5a and 6a are detected.
Next, the edge extension circuit 3b extends the band shape lines 5a and 6a to the left outer side to form the extension lines 5b and 6b in the extended portion (c).
Further, the surface surrounded by the extended picture edge of the area outside the original image data 2a is calculated by the image supplemental surface calculation circuit 3c, and the original image data that becomes the same surface as the surrounded surface is calculated by the image information calculation circuit 3d. The pixel information to be supplemented is calculated based on the pixel information of the original image data. The pixel information includes plane coordinate data and color data, so that a smooth image connected to the original image data 2a can be drawn on the extended portion.

図2は、本発明による画像処理方法で処理した画像の例を示す図である。
元画像1は(a)に示すように多数の太い帯と多数の細い帯を所定間隔で斜めに配列したものであり、描画処理回路3で処理することにより、左外側には多数の太い帯のエッジを延長する線1aが(b)に示すように形成され、その線で囲まれる部分と同じ面の画像データを参照することにより(c)に示すように描画される画素を得ることができる。
FIG. 2 is a diagram showing an example of an image processed by the image processing method according to the present invention.
The original image 1 has a large number of thick bands and a large number of thin bands arranged obliquely at a predetermined interval as shown in FIG. The line 1a extending the edge of the line is formed as shown in (b), and by referring to the image data on the same surface as the part surrounded by the line, a pixel rendered as shown in (c) can be obtained. it can.

図3は、本発明による画像処理方法を適用した3Dゲーム装置の回路の実施の形態を示すブロック図である。
3Dゲーム装置16はパッド,キーボード,マウスなどによりプレイヤ操作を入力してCPU12に送出する入力操作装置10,ゲームのBGMなどを出力するサウンド回路15,サウンドを出力するスピーカ11,画素情報に基づきディスプレイ14に画像を表示するグラフィック回路13,ゲーム制御を司るプログラム,3Dゲームプログラムおよび必要なデータを格納するHDD18ならびにゲーム起動したときHDD18から読み出した3Dゲームプログラムや画像データを格納し、CPU12の演算の領域としても使用されるRAM17およびCPU12を備えている。
FIG. 3 is a block diagram showing an embodiment of a circuit of a 3D game device to which the image processing method according to the present invention is applied.
The 3D game device 16 has an input operation device 10 for inputting a player operation with a pad, a keyboard, a mouse, etc. and sending it to the CPU 12, a sound circuit 15 for outputting BGM of the game, a speaker 11 for outputting sound, and a display based on pixel information. 14 stores a graphic circuit 13 for displaying an image, a game control program, a HDD 18 for storing a 3D game program and necessary data, and a 3D game program and image data read from the HDD 18 when the game is started. A RAM 17 and a CPU 12 that are also used as areas are provided.

CPU12は、HDD18から読み出しRAM17に一時格納したプログラムおよびデータによりゲームを実行するためのゲーム制御部12aの他、3Dゲームのジオメトリ処理部12bおよびレンダリング部12cの機能を有する。
ジオメトリ処理部12bはポリゴンの3次元座標データを高速に処理する制御部で、ゲーム制御部12aから送られてくるポリゴンの座標データにモデルの移動,回転などに対する処理を行い、クリッピング,視野変換などの処理を行う。レンダリング部12cはポリゴンのレンダリングを高速に処理する制御部で、ゲーム制御部12aおよびジオメトリ処理部12bから送られてくるポリゴンデータに対しレンダリング処理を行い、陰面処理およびシェーディング処理などを行う。本発明にかかる描画処理部19はレンダリング処理の一部であり、テクスチャ画像輪郭検出部19a,分割面算出部19b,分割画面画素情報算出部19cおよびピクセル情報更新部19dの機能を備えている。
The CPU 12 has functions of a geometry control unit 12b and a rendering unit 12c for a 3D game, in addition to a game control unit 12a for executing a game using a program and data read from the HDD 18 and temporarily stored in the RAM 17.
The geometry processing unit 12b is a control unit that processes polygon three-dimensional coordinate data at high speed, and performs processing on movement, rotation, and the like of the polygon coordinate data sent from the game control unit 12a to perform clipping, field of view conversion, and the like. Perform the process. The rendering unit 12c is a control unit that processes polygon rendering at high speed, and performs rendering processing on polygon data sent from the game control unit 12a and the geometry processing unit 12b, and performs hidden surface processing, shading processing, and the like. The drawing processing unit 19 according to the present invention is a part of a rendering process, and includes functions of a texture image contour detection unit 19a, a divided surface calculation unit 19b, a divided screen pixel information calculation unit 19c, and a pixel information update unit 19d.

レンダリング部12cがゲーム制御部12aおよびジオメトリ処理部12bから送られてくるポリゴンデータに対し頂点処理を施し、作成したポリゴン面に対するテクスチャ画像の貼り付けを行う処理においてテクスチャ画像の範囲外を参照した場合、すなわちボリゴン面とテクスチャ画像が一致せず、テクスチャ画像の範囲の外側にも画像を補充すべきと判断した場合には、テクスチャ画像輪郭検出部19aはテクスチャ画像の濃淡の境界線を判断することにより画像の輪郭を検出する。分割面算出部19bは画像の輪郭線をテクスチャ画像の外側の欠損する領域まで延長し、この延長したエッジと隣接のポリゴンの境界およびテクスチャ画像の外側線との間にできる分割面を算出する。分割面画素情報算出部19cは分割面と同じ面となるテクスチャ画像の画素情報を参照することにより、分割面上に滑らかに繋がる画素情報を算出する。ピクセル情報更新部19dは分割面に対する画素情報を元のテクスチャ画像データに追加することにより貼り付けるべき画素情報を更新する。ピクセル情報更新部19dは背景処理や透過による処理の画素情報の更新なども行う。   When the rendering unit 12c performs vertex processing on polygon data sent from the game control unit 12a and the geometry processing unit 12b, and refers to the outside of the range of the texture image in the process of pasting the texture image on the created polygon surface That is, when the Boligon surface and the texture image do not match and it is determined that the image should be replenished outside the range of the texture image, the texture image contour detection unit 19a determines the boundary between the shades of the texture image. Thus, the contour of the image is detected. The dividing surface calculation unit 19b extends the contour line of the image to a missing region outside the texture image, and calculates a dividing surface formed between the extended edge and the boundary of the adjacent polygon and the outside line of the texture image. The division plane pixel information calculation unit 19c calculates pixel information smoothly connected to the division plane by referring to the pixel information of the texture image that is the same plane as the division plane. The pixel information update unit 19d updates pixel information to be pasted by adding pixel information for the divided surface to the original texture image data. The pixel information update unit 19d also performs update of pixel information for background processing and processing by transparency.

図4は、本発明による画像処理方法の流れを示すフローチャートである。
描画処理はグラフック処理の一連の流れとなる(S001)。RAM17から例えばある絵に関する頂点,テクスチャなどの情報が読み出され、CPU12でグラフィック処理するための準備がなされる(S002)。
つぎにどのポリゴンをどこに描画するという頂点処理を行って描画する場所を決め、ピクセル処理を開始する(S003,S004)。すなわち、画面を描画する処理に移行する。
ピクセル毎にテクスチャ画像のどの座標を参照するかが対応付けられており、ピクセル毎に貼るべきテクスチャ画像の領域を探すこととなる。この処理において、画像を貼付すべきピクセル部分に対しテクスチャ画像の方が大きい場合、貼付すべきピクセル部分は完全にテクスチャ画像の範囲の中にあるので、テクスチャ画像の範囲の外側は参照しない。一方、貼付すべきピクセル部分に対しテクスチャが小さい場合は、テクスチャの外側すなわち周辺部分も参照する。テクスチャ画像の範囲内の参照であれば、既に存在するテクスチャの色データを持ってくれば良いので、従来通りのピクセル情報の更新に移行する(S005,S010)。
一方、テクスチャ画像の範囲外の参照の場合、すなわち、テクスチャの外側のピクセル部分に貼り付けなければならない場合にはテクスチャ画像の輪郭検出の処理を行う(S005,S006)。
FIG. 4 is a flowchart showing the flow of the image processing method according to the present invention.
The drawing process is a series of graphic processes (S001). For example, information such as vertices and textures related to a picture is read from the RAM 17, and the CPU 12 prepares for graphic processing (S002).
Next, vertex processing is performed to determine which polygon is to be drawn where, the drawing place is determined, and pixel processing is started (S003, S004). That is, the process proceeds to a process of drawing a screen.
The coordinates of the texture image to be referred to are associated with each pixel, and the area of the texture image to be pasted is searched for each pixel. In this process, when the texture image is larger than the pixel portion to which the image is to be pasted, the pixel portion to be pasted is completely within the texture image range, so the outside of the texture image range is not referred to. On the other hand, when the texture is small relative to the pixel portion to be pasted, the outside of the texture, that is, the peripheral portion is also referred to. If it is a reference within the range of the texture image, it is only necessary to bring the existing color data of the texture, so that the process proceeds to the conventional pixel information update (S005, S010).
On the other hand, in the case of reference outside the range of the texture image, that is, when it must be pasted to the pixel portion outside the texture, processing for detecting the contour of the texture image is performed (S005, S006).

これはどこに何があるかを検出して絵の概ねの輪郭を求めるものである。
ここで求めた輪郭を延長することにより延長した輪郭で面を分割する(S007)。
分割した輪郭は各ポリゴン面のどの部分に相当するかを調べる。そして分割した輪郭,隣接するポリゴンとの境界線,テクスチャ画面との境界線で形成される分割面を求めるための演算を行う(S008)。
つぎに求めた分割面に対し同じ面のテクスチャ画像の内部データ(例えば、黒いドット,白いドットなど)を参照することにより求めた分割面に画素のデータを割り振る処理に進む。例えば分割面と同じ面のテクスチャ画像の内部データが徐々に青色が薄くなるグラデーションデータであるならば、テクスチャ画像の内部データと繋がる分割面の接続部分から分割面の延長部分に向けて貼付すべき青色のグラデーションデータの演算を行う(S009)。このとき、分割面の接続部分に貼付される青色はテクスチャ画像の内部データの最も外側の青色の濃度と同じ濃度から始まり、徐々に薄くなるグラデーションデータとなる。
This is to detect where and what to find the approximate outline of the picture.
The surface is divided by the extended contour by extending the obtained contour (S007).
It is examined to which part of each polygon surface the divided contour corresponds. Then, an operation for obtaining a divided surface formed by the divided contour, the boundary line with the adjacent polygon, and the boundary line with the texture screen is performed (S008).
Next, the process proceeds to a process of assigning pixel data to the obtained divided surface by referring to the internal data (for example, black dots, white dots, etc.) of the texture image of the same surface with respect to the obtained divided surface. For example, if the internal data of the texture image on the same surface as the divided surface is gradation data whose blue color gradually becomes lighter, it should be pasted from the connecting portion of the divided surface connected to the internal data of the texture image toward the extended portion of the divided surface Blue gradation data is calculated (S009). At this time, the blue color affixed to the connection portion of the dividing surface starts from the same density as the outermost blue density of the internal data of the texture image, and becomes gradation data that becomes gradually lighter.

このようにして分割面について画素情報を計算することにより分割面に色,模様などの画素情報を割り振る。このとき背景や透過などについての処理も施され、これら処理計算結果も含め、ポリゴン面上のピクセル情報の更新が行われる(S010)。
つぎにゲーム制御部12aは各ポリゴンについてこのようなピクセル処理がすべて終了したか否かを判断し、終了していないならば、S005に戻って処理を続ける。
ピクセル処理が終了した場合には、ディスプレイ2上に画像を表示するための描画処理に移行する(S012)。
In this way, pixel information such as color and pattern is allocated to the divided surface by calculating the pixel information for the divided surface. At this time, the background and transparency are also processed, and the pixel information on the polygon surface is updated including the calculation results of these processes (S010).
Next, the game control unit 12a determines whether or not all such pixel processing has been completed for each polygon, and if not, returns to S005 and continues the processing.
When the pixel process is completed, the process proceeds to a drawing process for displaying an image on the display 2 (S012).

図5は本発明による3D描画処理の過程について具体的な画像例を説明するための図である。
(a)は頂点処理によってポリゴンAと隣接するポリゴンBが形成され、ポリゴンAにはテクスチャ画像Aが、ポリゴンBにはテクスチャ画像Bが貼り付けられ、ポリゴンBに貼りつけるテクスチャ画像BはポリゴンBの座標と一致する大きさであるが、ポリゴンAにはテクスチャ画像の欠損部8aが生じた状態を示している。そしてテクスチャ画像Aは隣接するポリゴンBと接する境界線に向かって徐々に薄くなる青色の帯9の絵を持っており、テクスチャ画像Bは、隣接するポリゴンAと接する境界線からさらに徐々に薄くなる青色の帯10の画像を持っている。
FIG. 5 is a diagram for explaining a specific image example in the process of 3D rendering processing according to the present invention.
In (a), the polygon B adjacent to the polygon A is formed by the vertex processing, the texture image A is pasted on the polygon A, the texture image B is pasted on the polygon B, and the texture image B pasted on the polygon B is the polygon B. The polygon A shows a state where a texture image defect 8a is generated. The texture image A has a picture of a blue band 9 that gradually becomes thinner toward the boundary line that contacts the adjacent polygon B, and the texture image B becomes thinner gradually from the boundary line that contacts the adjacent polygon A. Have an image of the blue band 10.

このような場合に、帯9のエッジ部分をテクスチャ画像の外に向かって、すなわちポリゴンBに向かって延長させ、この延長線とポリゴンAとBとの境界線とテクスチャ画像Aの外郭線とで作られる分割面9aを計算により求める。分割面9aに貼り付ける画素は、テクスチャ画像Aの外郭線の内側の分割面と同じ領域9c(二点鎖線で囲んだ部分)の画素情報を参照して求める。領域9cは外に向かって青色の帯が徐々に薄くなるように画素が配置されていることから、この情報より、分割面9aにはこれと同じように外に向かって徐々に青色の帯が薄くなるように、かつ領域9cと接する部分の画素は、その部分のテクスチャ画像の色の濃淡と同じになるように帯補充画素9bが配置される演算が行われる。このように処理することにより、帯9に対し同じ色とグラデーションで繋がった帯が形成される。   In such a case, the edge portion of the band 9 is extended toward the outside of the texture image, that is, toward the polygon B, and the extension line, the boundary line between the polygons A and B, and the outline line of the texture image A The division surface 9a to be created is obtained by calculation. Pixels to be pasted on the dividing plane 9a are obtained by referring to pixel information of the same area 9c (part surrounded by a two-dot chain line) as the dividing plane inside the outline of the texture image A. Since the pixels are arranged in the region 9c so that the blue band gradually becomes thinner toward the outside, from this information, the blue band gradually increases toward the outside in the same manner as this. An operation is performed in which the band supplement pixel 9b is arranged so that the pixel of the portion in contact with the region 9c becomes the same as the shade of the color of the texture image of the portion so as to be thin. By processing in this way, a band connected to the band 9 with the same color and gradation is formed.

図6は他の3D画像処理の流れを説明するためのフローチャートである。
図4のフローチャートでは、テクスチャ画像の輪郭を検出(S006),エッジによって面を分割(S007)の処理工程はテスクチャの範囲外を参照した後に行われているが、この実施の形態ではテクスチャ画像の輪郭を検出(S103),エッジによって面を分割(S104)の処理工程を、頂点処理(S105)より先に行っている点で画像処理方法の手順が異なっている。他の処理工程の内容は図4のフローチャートのそれぞれに対応する処理工程の内容と同じである。
FIG. 6 is a flowchart for explaining the flow of another 3D image processing.
In the flowchart of FIG. 4, the processing steps of detecting the contour of the texture image (S006) and dividing the surface by the edge (S007) are performed after referring to the outside of the texture range. The procedure of the image processing method is different in that the processing steps of detecting the contour (S103) and dividing the surface by the edge (S104) are performed before the vertex processing (S105). The contents of the other process steps are the same as the contents of the process steps corresponding to each of the flowcharts of FIG.

図7はさらに他の3D画像処理の流れを説明するためのフローチャートである。
この実施の形態は、図4に比較し、ピクセル処理において分岐という複雑な処理を行わない点で異なっている。
描画処理はグラフック処理の一連の流れであり(S201)、RAM17から例えばある絵に関する頂点,テクスチャなどの情報が読み出され、CPU12でグラフィック処理するための準備がなされる(S202)。
つぎにテクスチャ画像の輪郭検出の処理を行い(S203)、この輪郭で面を分割する(S204)。
FIG. 7 is a flowchart for explaining the flow of still another 3D image processing.
This embodiment is different from FIG. 4 in that a complicated process of branching is not performed in pixel processing.
The drawing process is a series of graphic processes (S201). Information such as vertices and textures related to a certain picture is read from the RAM 17 and the CPU 12 prepares for graphic processing (S202).
Next, the contour detection processing of the texture image is performed (S203), and the surface is divided by this contour (S204).

この後テクスチャ画像の外側一回りを最初に事前計算で求めておく。これはテクスチャ画像の範囲を参照する毎にテクスチャ画像を探すという図4のように処理するのではなく、テクスチャ画像の外周4辺すべてに対し、エッジの延長と、ピクセル補間の処理の計算をすべて済ませる。これにより図4に示すピクセル処理する場合の分岐の処理は行わない。このように計算することによりピクセル処理の中で参照しそうなデータは事前計算で算出されて情報があることから、この情報を使用することとなる。
S204に続いてテクスチャ画像範囲外のピクセルの事前計算を開始し(S205)、計算中のピクセルが含まれる分割面を計算する(S206)。そしてテクスチャ内部の画素情報から計算中のピクセルの画素情報を算出する(S207)。
このようにしてテクスチャ画像範囲外のすべてのピクセルの事前計算が終了したか否かを判断する(208)。
Thereafter, the outer round of the texture image is first obtained by pre-calculation. This does not process as shown in Fig. 4 in which the texture image is searched every time the range of the texture image is referenced, but all the calculation of the edge extension and pixel interpolation processing is performed for all four sides of the texture image. I'll do it. As a result, the branch processing in the case of pixel processing shown in FIG. 4 is not performed. By calculating in this way, the data that is likely to be referred to in the pixel processing is calculated in advance and has information, so this information is used.
Subsequent to S204, pre-calculation of pixels outside the texture image range is started (S205), and a divided plane including the pixel being calculated is calculated (S206). Then, pixel information of the pixel being calculated is calculated from the pixel information inside the texture (S207).
In this way, it is determined whether or not the pre-calculation of all pixels outside the texture image range has been completed (208).

テクスチャ画像範囲外のすべてのピクセルの事前計算が終了していない場合にはS206に戻り、S206,S207の処理を続行する。事前計算が終了した場合には、頂点処理を行って描画する場所を決め、ピクセル処理を開始する(S209,S210)。すなわち、画面を描画する処理に移行する。
ピクセル処理では事前計算して算出された画素情報によりポリゴン面上のピクセル情報の更新が行われる。ついですべてのピクセルについて更新の処理が行われたか否かを判断し(S212)、更新の処理が終了していない場合は、S211に戻ってピクセル情報の更新の処理が続行される。更新の処理が終了した場合にはディスプレイ2上に画像を表示するための描画処理に移行する(S213)。
If the pre-calculation of all pixels outside the texture image range has not been completed, the process returns to S206, and the processes of S206 and S207 are continued. When the pre-calculation is completed, the vertex processing is performed to determine the place to draw and the pixel processing is started (S209, S210). That is, the process proceeds to a process of drawing a screen.
In the pixel processing, the pixel information on the polygon surface is updated with the pixel information calculated in advance. Next, it is determined whether or not the update process has been performed for all pixels (S212). If the update process has not ended, the process returns to S211 and the pixel information update process is continued. When the update process is completed, the process proceeds to a drawing process for displaying an image on the display 2 (S213).

画像処理装置や3Dゲームを行うゲーム装置などに用いられる。   It is used for an image processing device, a game device for playing a 3D game, and the like.

本発明による画像処理方法により構成した描画処理回路の実施の形態を示すブロック図である。It is a block diagram which shows embodiment of the drawing processing circuit comprised by the image processing method by this invention. 本発明による画像処理方法の工程を説明するための図である。It is a figure for demonstrating the process of the image processing method by this invention. 本発明による画像処理方法で処理した画像の例を示す図である。It is a figure which shows the example of the image processed with the image processing method by this invention. 本発明による画像処理方法を適用した3Dゲーム装置の回路の実施の形態を示すブロック図である。It is a block diagram which shows embodiment of the circuit of the 3D game device to which the image processing method by this invention is applied. 図3の3D画像処理の流れを説明するためのフローチャートである。4 is a flowchart for explaining a flow of 3D image processing in FIG. 3. 本発明による3D描画処理の過程について具体的な画像例を説明するための図である。It is a figure for demonstrating the example of a specific image about the process of 3D drawing process by this invention. 他の3D画像処理の流れを説明するためのフローチャートである。It is a flowchart for demonstrating the flow of another 3D image process. さらに他の3D画像処理の流れを説明するためのフローチャートである。It is a flowchart for demonstrating the flow of another 3D image process. 従来の画像処理方法により処理した画像例を示す図である。It is a figure which shows the example of an image processed with the conventional image processing method.

符号の説明Explanation of symbols

1 元画像
2 メモリ部
2a 元画像データ
3 描画処理回路
5,6 帯の画像
10 入力操作装置
12 CPU
13 グラフィック回路
14 ディスプレイ
15 サウンド回路
16 ゲーム装置
17 RAM
18 HDD
DESCRIPTION OF SYMBOLS 1 Original image 2 Memory part 2a Original image data 3 Drawing processing circuit 5, 6 band image 10 Input operation apparatus
12 CPU
13 Graphic circuit 14 Display
15 sound circuit 16 game device 17 RAM
18 HDD

Claims (3)

所定の範囲を表示するための元画像データを有し、前記所定の範囲の外側の領域に対し前記元画像データに基づき画素を補充するための画像処理方法であって、
エッジ検出手段により前記元画像データにより形成される絵のエッジを検出し、
エッジ延長手段により前記検出した絵のエッジを前記所定の範囲の外側の領域まで延長し、
画素補充面算出手段により前記所定の範囲の外側の領域であって前記延長した絵のエッジにより囲まれる面を算出し、
画素情報演算手段により前記囲まれる面に対し、同じ面となる元画像データの画素情報より、補充すべき画素情報を求め、
前記所定の範囲の外側の領域を補充すべき画素情報で描画することを特徴とする画像処理方法。
An image processing method for replenishing pixels based on the original image data for an area outside the predetermined range, having original image data for displaying a predetermined range,
Detecting an edge of a picture formed by the original image data by an edge detection means;
The edge of the detected picture is extended to an area outside the predetermined range by an edge extension means,
Calculating a surface that is outside the predetermined range and surrounded by the extended edge of the picture by means of a pixel supplement surface calculation means;
Obtain pixel information to be replenished from the pixel information of the original image data that is the same surface with respect to the surface surrounded by the pixel information calculation means,
An image processing method, wherein a region outside the predetermined range is drawn with pixel information to be supplemented.
テクスチャ画像をポリゴン面に貼り付ける際、前記ポリゴン面を分ける境界付近にテクスチャ画像が欠損する領域が発生するときに画素を補充するための3D描画回路であって、
テクスチャ画像の輪郭を検出するテクスチャ画像輪郭検出部と、
前記テクスチャ画像輪郭検出部により検出したテクスチャ画像のエッジを前記欠損する領域まで延長し、延長したエッジによって形成される分割面を算出する分割面算出部と、
前記分割面と同じ面となるテクスチャ画像の画素情報を参照することにより、前記分割面の補充すべき画素情報を算出する分割面画素情報算出部と、
前記分割面の画素情報を前記元画像データに加えて画素情報を更新する更新部と、
を備えたことを特徴とする3D描画回路。
A 3D drawing circuit for replenishing pixels when an area in which a texture image is lost occurs near a boundary that divides the polygon surface when the texture image is pasted on the polygon surface;
A texture image contour detector for detecting the contour of the texture image;
A split surface calculation unit that extends the edge of the texture image detected by the texture image contour detection unit to the area to be lost and calculates a split surface formed by the extended edge;
A division plane pixel information calculation unit that calculates pixel information to be supplemented to the division plane by referring to pixel information of a texture image that is the same plane as the division plane;
An update unit that updates pixel information by adding pixel information of the dividing plane to the original image data;
A 3D drawing circuit comprising:
前記画素情報は、面座標データおよび色データを含むことを特徴とする請求項2記載の3D描画回路。   3. The 3D drawing circuit according to claim 2, wherein the pixel information includes plane coordinate data and color data.
JP2007037526A 2007-02-19 2007-02-19 Image processing method and 3D drawing circuit using the processing method Active JP4808167B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2007037526A JP4808167B2 (en) 2007-02-19 2007-02-19 Image processing method and 3D drawing circuit using the processing method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2007037526A JP4808167B2 (en) 2007-02-19 2007-02-19 Image processing method and 3D drawing circuit using the processing method

Publications (2)

Publication Number Publication Date
JP2008204035A JP2008204035A (en) 2008-09-04
JP4808167B2 true JP4808167B2 (en) 2011-11-02

Family

ID=39781505

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2007037526A Active JP4808167B2 (en) 2007-02-19 2007-02-19 Image processing method and 3D drawing circuit using the processing method

Country Status (1)

Country Link
JP (1) JP4808167B2 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011023886A (en) * 2009-07-14 2011-02-03 Panasonic Corp Teleconferencing device and image display processing method
CN113034348A (en) * 2021-03-24 2021-06-25 北京字节跳动网络技术有限公司 Image processing method, image processing apparatus, storage medium, and device

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0935082A (en) * 1995-07-19 1997-02-07 Hitachi Ltd Image processing method and image processor

Also Published As

Publication number Publication date
JP2008204035A (en) 2008-09-04

Similar Documents

Publication Publication Date Title
JP2007066064A (en) Image generating device and image generating program
CN113826144A (en) Facial texture map generation using a single color image and depth information
JP2004005452A (en) Image processor, image processing method, semiconductor device, computer program and record medium
JP2003051025A (en) Method and device for plotting processing, recording medium with recorded plotting processing program, and plotting processing program
JP4808167B2 (en) Image processing method and 3D drawing circuit using the processing method
JP3985321B2 (en) Arithmetic apparatus and image processing apparatus
JP4794811B2 (en) Image processing program and image processing apparatus
JP2007286669A (en) Image processor, method, and program
KR20120118462A (en) Concave surface modeling in image-based visual hull
JP3052839B2 (en) Image processing apparatus and processing method thereof
JP4009289B2 (en) Method for determining a weighting factor for color-calculating a texel color value associated with a footprint
JP2010231347A (en) Method and apparatus for image generation
JP4684749B2 (en) Graphic equipment
JP4078926B2 (en) Image generation method and apparatus
JP4325812B2 (en) Vector image drawing circuit and vector image drawing method
KR20080064523A (en) 3-dimension graphic processing apparatus and operating method thereof
JP2001283254A (en) Three-dimensional graphic plotting device and its method
CN110264393B (en) Information processing method, terminal and storage medium
JP2001222722A (en) Image display device, image correcting method and recording medium stored with image correction program
JP4515877B2 (en) Outline enhancement drawing device
JP2004054635A (en) Picture processor and its method
JP2006133940A (en) Real-time image generation device using detail level
JP2002319033A (en) Shading method in computer graphics
WO2021245875A1 (en) Image compositing device and image compositing method
CN110728738B (en) Image stream animation rendering method and system based on local self-adaption

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20091006

A711 Notification of change in applicant

Free format text: JAPANESE INTERMEDIATE CODE: A712

Effective date: 20100305

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20100408

RD03 Notification of appointment of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7423

Effective date: 20100415

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20110808

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: 20110816

A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20110816

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

Free format text: PAYMENT UNTIL: 20140826

Year of fee payment: 3

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

Ref document number: 4808167

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

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

Free format text: PAYMENT UNTIL: 20140826

Year of fee payment: 3

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

Free format text: PAYMENT UNTIL: 20150826

Year of fee payment: 4

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

Free format text: PAYMENT UNTIL: 20150826

Year of fee payment: 4

S531 Written request for registration of change of domicile

Free format text: JAPANESE INTERMEDIATE CODE: R313531

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

Free format text: PAYMENT UNTIL: 20150826

Year of fee payment: 4

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350