JPH03100780A - Picture generating device - Google Patents

Picture generating device

Info

Publication number
JPH03100780A
JPH03100780A JP23778889A JP23778889A JPH03100780A JP H03100780 A JPH03100780 A JP H03100780A JP 23778889 A JP23778889 A JP 23778889A JP 23778889 A JP23778889 A JP 23778889A JP H03100780 A JPH03100780 A JP H03100780A
Authority
JP
Japan
Prior art keywords
raster
texture element
coordinates
end point
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.)
Pending
Application number
JP23778889A
Other languages
Japanese (ja)
Inventor
Hiroyuki Iida
博之 飯田
Norihiko Okazaki
紀彦 岡崎
Hiroki Kurebayashi
紅林 浩樹
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Panasonic Holdings Corp
Original Assignee
Matsushita Electric Industrial Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Matsushita Electric Industrial Co Ltd filed Critical Matsushita Electric Industrial Co Ltd
Priority to JP23778889A priority Critical patent/JPH03100780A/en
Publication of JPH03100780A publication Critical patent/JPH03100780A/en
Pending legal-status Critical Current

Links

Landscapes

  • Image Generation (AREA)

Abstract

PURPOSE:To shorten the processing time at the time of generating a smooth curve by changing coordinates of the start point of the raster of a texture element to those of the end point of the raster of the preceding texture element in the case of overlap of the raster of the texture element with that of the preceding texture element. CONSTITUTION:A form modeling arithmetic unit (MC part) 11, a run length data eliminating device (ROC part) 12, and a run length data converting device (RD part) 13 are provided, and coordinates of the start point of each raster of a texture element and those of the end point of each raster of the preceding texture element are compared with each other. It is discriminated whether the raster of the texture element overlaps the raster of the preceding texture element or not; and if it overlaps, coordinates of the start point of the raster are changed to those of the end point of the raster of the preceding texture element. Thus, the painting-out time is shortened because rasters of preceding and succeeding texture elements are double pained out, and the processing time for generation of a smooth curve is shortened.

Description

【発明の詳細な説明】 産業上の利用分野 本発明は、ラン長データにより曲線画像等を生成する画
像生成装置に関する。
DETAILED DESCRIPTION OF THE INVENTION Field of the Invention The present invention relates to an image generation device that generates curved images and the like based on run length data.

従来の技術 第2図は、フレームメモリ等により実現される仮想的な
2次元、3次元空間を含む2次元子面・3次元空間の論
理平面P上にベクトルストローク法により近似して生成
された曲線画像を示している。
Conventional technology Fig. 2 shows an image generated by approximating using the vector stroke method on a logical plane P of a two-dimensional child surface/three-dimensional space including virtual two-dimensional and three-dimensional spaces realized by a frame memory, etc. A curved image is shown.

第2図において、曲線画像は標本化データにより生成さ
れ、この標本化データは、曲線の太さや端点の形状を決
定するための各テクスチャエレメントの形状(球、円、
正方形等)とその大きさの情報knと、曲線の始点と終
点の座標や曲線の勾配を決定するための各テクスチャエ
レメントのベクトルデータxnと、各テクスチャエレメ
ント間の標本化データitsより構成される。
In Fig. 2, the curve image is generated by sampling data, and this sampling data is used to determine the thickness of the curve and the shape of the end points.
(square, etc.) and its size kn, vector data xn of each texture element for determining the coordinates of the start and end points of the curve and the slope of the curve, and sampling data its between each texture element. .

第3図は、従来の画像生成装置の構成を示している。FIG. 3 shows the configuration of a conventional image generation device.

一般に、各テクスチャエレメントの形状とその大きさの
情報knは、全ての形状を一定の形状で近似するか又は
始点と終点以外の形状を一定の形状で近似し、ベクトル
データxnは、全ての各テクスチャ・エレメントについ
ては使用せず、始点と中間点と終点又は始点と終点につ
いて使用し、使用しな(°)ベクトルデータは次段の形
状モデリング用演算装置(MC部)1により補間する。
Generally, information kn about the shape and size of each texture element is obtained by approximating all shapes with a fixed shape or by approximating shapes other than the starting point and end point with a fixed shape, and vector data The texture element is not used, but the start point, intermediate point, and end point or the start point and end point are used, and the unused (°) vector data is interpolated by the shape modeling arithmetic unit (MC unit) 1 at the next stage.

また、標本化間隔Δinは一般に一定値として使用する
Further, the sampling interval Δin is generally used as a constant value.

形状モデリング用演算装置1は、上記標本化データによ
り、各テクスチャエレメントを多数のラスタデータの集
合に分解し、各ラスタの始点の座標xnj7sと終点の
座標xnI!e、すなわちラン長データを演算する。
The shape modeling arithmetic unit 1 decomposes each texture element into a large number of raster data sets using the sampled data, and calculates the coordinates xnj7s of the start point and the coordinates xnI! of the end point of each raster. e, that is, run length data, is calculated.

ラン長データ変換装置(RD部)2は、各ラスタの始点
の座標xnlsと終点の座標xn1eにより、論理平面
P上に始点と終点の間を塗り潰し、各テクスチャエレメ
ントTを生成する。
The run length data conversion device (RD unit) 2 fills the space between the start point and the end point on the logical plane P using the coordinates xnls of the start point and the coordinates xn1e of the end point of each raster, and generates each texture element T.

したがって、上記従来例によれば、一定の形状の複数の
テクスチャエレメントを曲線の軌跡上に連結するように
連続して描画することにより、曲線を生成する。
Therefore, according to the above-mentioned conventional example, a curved line is generated by continuously drawing a plurality of texture elements having a fixed shape so as to connect them on the locus of the curved line.

発明が解決しようとする課題 しかしながら、上記従来の画像生成装置では、一定の形
状の複数のテクスチャエレメントを曲線の軌跡上に連結
するように連続して描画するので、第4図(a)に示す
ように、正方形のテクスチャエレメントにより直線を生
成する場合を除き、第4図(b)(C)に示すように、
円滑な曲線を生成する場合にはテクスチャエレメントの
数を増加して重複させる必要がある。
Problems to be Solved by the Invention However, in the above-mentioned conventional image generation device, a plurality of texture elements of a fixed shape are drawn continuously so as to be connected on a curved locus. As shown in FIGS. 4(b) and (C), except when straight lines are generated using square texture elements,
In order to generate smooth curves, it is necessary to increase the number of texture elements and overlap them.

したがって、形状モデリング用演算装置1がスキャンす
るラスタの束により構成される面積や体積がテクスチャ
エレメントの数に比例して増大し、ラン長データ変換装
置2の処理時間が長くなるという問題点がある。
Therefore, there is a problem that the area and volume constituted by the bundle of rasters scanned by the shape modeling calculation device 1 increases in proportion to the number of texture elements, and the processing time of the run length data conversion device 2 increases. .

本発明は上記従来の問題点に鑑み、円滑な曲線を生成す
る場合の処理時間を短縮することができる画像生成装置
を提供することを目的とする。
SUMMARY OF THE INVENTION In view of the above conventional problems, it is an object of the present invention to provide an image generation device that can shorten the processing time when generating a smooth curve.

課題を解決するための手段 本発明は上記目的を達成するために、当該テクスチャエ
レメントの各ラスタの始点の座標と前のテクスチャエレ
メントの各ラスタの終点の座標を比較することにより、
当該テクスチャエレメントのラスタが前のテクスチャエ
レメントのラスタに重複するか否かを判定し、重複する
場合にラスタの始点の座標を前のテクスチャエレメント
のラスタの終点の座標に変更するようにしたものである
Means for Solving the Problems The present invention achieves the above object by comparing the coordinates of the starting point of each raster of the relevant texture element with the coordinates of the ending point of each raster of the previous texture element.
It determines whether the raster of the relevant texture element overlaps with the raster of the previous texture element, and if so, changes the coordinates of the start point of the raster to the coordinates of the end point of the raster of the previous texture element. be.

作用 本発明は上記構成により、前後のテクスチャエレメント
のラスタを重複して塗り潰さないので、塗り潰し時間を
短縮することができ、したがって、円滑な曲線を生成す
る場合の処理時間を短縮することができる。
Effect: With the above configuration, the present invention does not redundantly fill in the rasters of the preceding and following texture elements, so it is possible to shorten the filling time, and therefore, the processing time when generating a smooth curve can be shortened.

実施例 以下、図面を参照して本発明の詳細な説明する。第1図
は、本発明に係る画像生成装置の一実施例を示すブロッ
ク図である。
EXAMPLES Hereinafter, the present invention will be described in detail with reference to the drawings. FIG. 1 is a block diagram showing an embodiment of an image generation device according to the present invention.

第1図において、曲線画像を生成するための標本化デー
タは、曲線の太さや端点の形状を決定するための各テク
スチャエレメントの形状(球、円、正方形等)とその大
きさの情報knと、曲線の始点と終点の座標や曲線の勾
配を決定するための各テクスチャエレメントのベクトル
データxnと、各テクスチャエレメント間の標本化間隔
ΔImより構成される。
In Figure 1, the sampling data for generating the curve image includes information kn on the shape (sphere, circle, square, etc.) of each texture element and its size to determine the thickness of the curve and the shape of the end points. , vector data xn of each texture element for determining the coordinates of the start and end points of the curve and the slope of the curve, and a sampling interval ΔIm between each texture element.

そして、一般に、各テクスチャエレメントの形状とその
大きさの情報knは、全ての形状を一定の形状で近似す
るか又は始点と終点以外の形状を一定の形状で近似し、
ベクトルデータxnは、全ての各テクスチャエレメント
については使用せず、始点と中間点と終点又は始点と終
点について使用し、使用しないベクトルデータは次段の
形状モデリング用演算装置(MC部)11により補間す
る。また、標本化間隔ΔImは一般に一定値として使用
する。
In general, information kn on the shape and size of each texture element is obtained by approximating all shapes with a fixed shape, or approximating shapes other than the starting point and end point with a fixed shape,
The vector data xn is not used for each texture element, but is used for the start point, intermediate point, and end point, or the start point and end point, and the vector data that is not used is interpolated by the shape modeling arithmetic unit (MC section) 11 in the next stage. do. Further, the sampling interval ΔIm is generally used as a constant value.

形状モデリング用演算装置(MC部)11は、例えば第
1のテクスチャエレメントの形状と大きさの情報kl 
、ベクトルデータx1、標本化間隔Allにより、第1
のテクスチャエレメントを多数のラスタデータの集合に
分解し、各ラスタの始点の座標x11!s(1=1.2
.3−)と終点の座標xlle、すなわちラン長データ
を演算する。
The shape modeling arithmetic unit (MC section) 11 stores, for example, information kl on the shape and size of the first texture element.
, vector data x1, sampling interval All, the first
The texture elements are decomposed into a large number of raster data sets, and the coordinates of the starting point of each raster x11! s(1=1.2
.. 3-) and the coordinate xlle of the end point, that is, the run length data.

同様に、形状モデリング用演算装置(MC部)11は、
第2のテクスチャエレメントの形状と大きさの情報に2
、ベクトルデータX2、標本化間隔ΔI2により、第2
のテクスチャエレメントを多数のラスタデータの集合に
分解し、各ラスタの始点の座標x21sと終点の座標x
211eを演算し、以下、各テクスチャエレメントの各
ラスタのラン長データを演算する。
Similarly, the shape modeling arithmetic unit (MC section) 11 is
2 for the shape and size information of the second texture element.
, vector data X2, sampling interval ΔI2, the second
The texture element is decomposed into a large number of raster data sets, and the start point coordinate x21s and end point coordinate x21s of each raster are
211e is calculated, and then the run length data of each raster of each texture element is calculated.

ラン長データ除去装置(R2O部)12は、第2のテク
スチャエレメントの各ラスタの始点の座標x、1sと第
1のテクスチャエレメントの各ラスタの終点の座標x1
1eを比較することにより、ラスタが重複するか否かを
判定し、第2のテクスチャエレメントの重複するラスタ
の始点の座標X21Sを第1のテクスチャエレメントの
重複するラスタの終点の座標xlj7eに変更する。
The run length data removal device (R2O section) 12 extracts the coordinates x, 1s of the start point of each raster of the second texture element and the coordinates x1 of the end point of each raster of the first texture element.
1e, it is determined whether the rasters overlap, and the coordinates X21S of the start point of the overlapping raster of the second texture element are changed to the coordinates xlj7e of the end point of the overlapping raster of the first texture element. .

第1図においては、第2のテクスチャエレメントの始点
の座標X 22Ss X !asSX 24gよりスタ
ートするラスタが第1のテクスチャエレメントの終点の
座標X 1tes X 、xes X tseで終了す
るラスタに重複するので、第2のテクスチャエレメント
の始点の座標X 22Ss X 2B8s X 24B
を第1のテクスチャエレメントの終点の座標X1les
 X1xe、、xlleに変更する。
In FIG. 1, the coordinates of the starting point of the second texture element X 22Ss X ! The raster starting at asSX 24g overlaps the raster ending at the coordinates X 1tes X of the end point of the first texture element, xes X tse, so the coordinates of the start point of the second texture element
is the coordinate of the end point of the first texture element
Change to X1xe,,xlle.

以下同様に、ラン長データ除去装置(R2O部)12は
、第1のテクスチャエレメントを除き、各テクスチャエ
レメントの各ラスタの始点の座標xni’sと前のテク
スチャエレメントの各ラスタの終点の座標x (n−1
) 1 eを比較することにより、ラスタが重複するか
否かを判定し、重複するラスタの始点の座標xnlsを
前のテクスチャエレメントの重複するラスタの終点の座
標x (n−1)に変更する。
Similarly, the run length data removal device (R2O section) 12 extracts the coordinates xni's of the starting point of each raster of each texture element, excluding the first texture element, and the coordinates xni's of the end point of each raster of the previous texture element. (n-1
) 1 Determine whether the rasters overlap by comparing .

ラン長データ変換装置(RD部)13は、各ラスタの始
点の座標xnIlsと終点の座標xn1eにより、論理
平面P上に始点と終点の間を塗り潰し、各テクスチャエ
レメントTを生成する。
The run length data conversion device (RD unit) 13 fills the area between the start point and the end point on the logical plane P using the coordinate xnIls of the start point and the coordinate xn1e of the end point of each raster, and generates each texture element T.

したがって、ラン長データ変換装置(RD部)13は、
ラスタを重複して換り潰さないのでその処理時間を短縮
することができ、特に円滑な曲線を生成する場合の処理
時間を短縮することができる。
Therefore, the run length data conversion device (RD section) 13:
Since rasters are not redundantly replaced, the processing time can be shortened, and in particular, the processing time when generating a smooth curve can be shortened.

発明の詳細 な説明したように、本発明は、当該テクスチャエレメン
トの各ラスタの始点の座標と前のテクスチャエレメント
の各ラスタの終点の座標を比較することにより、当該テ
クスチャエレメントのラスタが前のテクスチャエレメン
トのラスタに重複するか否かを判定し、重複する場合に
ラスタの始点の座標を前のテクスチャエレメントのラス
タの終点に変更するようにしたので、前後のテクスチャ
エレメントのラスタを重複して筐り潰さなくなり、した
がって、円滑な曲線を生成する場合の処理時間を短縮す
ることができる。
DETAILED DESCRIPTION OF THE INVENTION As described above, the present invention provides a means for determining whether a raster of a given texture element corresponds to a previous texture by comparing the coordinates of the start point of each raster of the given texture element with the coordinates of the end point of each raster of the previous texture element. It is determined whether or not the raster of an element overlaps, and if it is, the coordinates of the start point of the raster are changed to the end point of the raster of the previous texture element, so the rasters of the previous and next texture elements are overlapped and placed in the box. Therefore, the processing time when generating a smooth curve can be shortened.

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

第1図は、本発明に係る画像生成装置の一実施例を示す
ブロック図、第2図は、画像生成の基本動作を示す説明
図、第3図は、従来の画像生成装置を示すブロック図、
第4図は、各種曲線生成の基本動作を示す説明図である
。 11・・・形状モデリング用演算装置(MC部)、12
・・・ラン長データ除去装置(R2O部)、13・・・
ラン長データ変換装置(RD部)。
FIG. 1 is a block diagram showing an embodiment of an image generation device according to the present invention, FIG. 2 is an explanatory diagram showing the basic operation of image generation, and FIG. 3 is a block diagram showing a conventional image generation device. ,
FIG. 4 is an explanatory diagram showing the basic operation of generating various curves. 11... Shape modeling calculation device (MC section), 12
...Run length data removal device (R2O section), 13...
Run length data conversion device (RD section).

Claims (1)

【特許請求の範囲】[Claims] 各テクスチャエレメントの標本化データにより各テクス
チャエレメントの各ラスタの始点の座標と終点の座標を
演算する第1の演算手段と、前記第1の演算手段により
演算された当該テクスチャエレメントの各ラスタの始点
の座標と前のテクスチャエレメントの各ラスタの終点の
座標を比較することにより、当該テクスチャエレメント
のラスタが前のテクスチャエレメントのラスタに重複す
るか否かを判定し、重複する場合にラスタの始点の座標
を前のテクスチャエレメントのラスタの終点の座標に変
更する第2の演算手段と、前記第1、第2の演算手段に
より演算された各ラスタの始点の座標と終点の座標の間
を塗り潰す手段とを有する画像生成装置。
a first calculation means for calculating the coordinates of the start point and the coordinate of the end point of each raster of each texture element based on the sampling data of each texture element; and the start point of each raster of the texture element calculated by the first calculation means; By comparing the coordinates of the end point of each raster of the previous texture element with the coordinates of the end point of each raster of the previous texture element, it is determined whether the raster of the texture element in question overlaps with the raster of the previous texture element. a second calculation means for changing the coordinates to the coordinates of the end point of the raster of the previous texture element; and filling the space between the coordinates of the start point and the coordinate of the end point of each raster calculated by the first and second calculation means. An image generation device having means.
JP23778889A 1989-09-13 1989-09-13 Picture generating device Pending JPH03100780A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP23778889A JPH03100780A (en) 1989-09-13 1989-09-13 Picture generating device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP23778889A JPH03100780A (en) 1989-09-13 1989-09-13 Picture generating device

Publications (1)

Publication Number Publication Date
JPH03100780A true JPH03100780A (en) 1991-04-25

Family

ID=17020441

Family Applications (1)

Application Number Title Priority Date Filing Date
JP23778889A Pending JPH03100780A (en) 1989-09-13 1989-09-13 Picture generating device

Country Status (1)

Country Link
JP (1) JPH03100780A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5942196A (en) * 1996-07-10 1999-08-24 Mitsubishi Denki Kabushiki Kaisha Ozone generating apparatus

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5942196A (en) * 1996-07-10 1999-08-24 Mitsubishi Denki Kabushiki Kaisha Ozone generating apparatus

Similar Documents

Publication Publication Date Title
Leu Computing a shape's moments from its boundary
Boissonnat et al. Three-dimensional reconstruction of complex shapes based on the Delaunay triangulation
US6907140B2 (en) Image recognition/reproduction method and apparatus
US6236403B1 (en) Modeling and deformation of 3-dimensional objects
JP2790815B2 (en) Image data compression method
EP0633550B1 (en) Image processing method and apparatus thereof
JP2591984B2 (en) Pattern recognition device
Wada et al. Homography based parallel volume intersection: Toward real-time volume reconstruction using active cameras
CN101901503A (en) Use the mesh parameterization of the stretching, extension driving of spectral analysis
Archirapatkave et al. GPGPU acceleration algorithm for medical image reconstruction
US5027304A (en) Character multifont compression and restoration device
Tanaka Accuracy-based sampling and reconstruction with adaptive meshes for parallel hierarchical triangulation
US7388584B2 (en) Method and program for determining insides and outsides of boundaries
JP2837584B2 (en) How to create terrain data
JPH03100780A (en) Picture generating device
Ablameyko et al. Vectorization and representation of large-size 2-D line-drawing images
JPH06176107A (en) Method and device for processing distance picture
Waltz et al. Computer vision systems
Rose et al. Interactive visualization of large finite element models.
Tzionas et al. A parallel skeletonization algorithm based on two-dimensional cellular automata and its VLSI implementation
JP2657301B2 (en) Meshing method and apparatus
JP2796900B2 (en) Image interpolation device
JP2656707B2 (en) Reconstruction method of 3D image by density interpolation
JPH0758509B2 (en) Figure filling device
JP2707605B2 (en) Image data conversion method