JPH0542708B2 - - Google Patents

Info

Publication number
JPH0542708B2
JPH0542708B2 JP59067985A JP6798584A JPH0542708B2 JP H0542708 B2 JPH0542708 B2 JP H0542708B2 JP 59067985 A JP59067985 A JP 59067985A JP 6798584 A JP6798584 A JP 6798584A JP H0542708 B2 JPH0542708 B2 JP H0542708B2
Authority
JP
Japan
Prior art keywords
line segment
projection
adjacency
curve
point
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.)
Expired - Fee Related
Application number
JP59067985A
Other languages
Japanese (ja)
Other versions
JPS60211575A (en
Inventor
Jusuke Yasukawa
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.)
Fujitsu Ltd
Original Assignee
Fujitsu 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 Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP59067985A priority Critical patent/JPS60211575A/en
Publication of JPS60211575A publication Critical patent/JPS60211575A/en
Publication of JPH0542708B2 publication Critical patent/JPH0542708B2/ja
Granted legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T3/00Geometric image transformations in the plane of the image
    • G06T3/06Topological mapping of higher dimensional structures onto lower dimensional surfaces
    • G06T3/067Reshaping or unfolding 3D tree structures onto 2D planes

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Image Generation (AREA)
  • Controls And Circuits For Display Device (AREA)

Description

【発明の詳細な説明】 〔発明の技術分野〕 本発明は、量子化された座標平面に連続関数曲
線を投影するための当該座標面上での曲線の座標
を発生する量子化投影法に関し、特に座標面での
投影後のデータをもとに中間投影の必要性を判断
して曲線上の座標を発生する量子化投影法に関す
る。
Detailed Description of the Invention [Technical Field of the Invention] The present invention relates to a quantization projection method for projecting a continuous function curve onto a quantized coordinate plane and generating coordinates of the curve on the coordinate plane. In particular, it relates to a quantized projection method that determines the necessity of intermediate projection based on data after projection on a coordinate plane and generates coordinates on a curve.

〔従来の背景〕[Traditional background]

画像処理のシユミレーシヨンや曲線の画面表示
等においては、第1図の如く連続関数曲線FCを
量子化された座標平面(例えばメモリにX−Y平
面)PLNに投影することが必要である。一般に
この投影に際しては、連続な曲線とその座標平面
上への射影関数とが与えられ、曲線上の全点に射
影関数を適用し、座標平面上で量子化すれば、座
標平面での曲線が得られる。
In image processing simulations, curve display on screen, etc., it is necessary to project the continuous function curve FC onto a quantized coordinate plane (for example, an X-Y plane in memory) PLN as shown in FIG. Generally, when performing this projection, a continuous curve and its projection function onto the coordinate plane are given, and if the projection function is applied to all points on the curve and quantized on the coordinate plane, the curve on the coordinate plane is can get.

〔従来技術と問題点〕[Conventional technology and problems]

従来、この曲線の発生のため第2図に示す如き
方法が用いられていた。即ち、第2図Aの連続関
数曲線FCをメモリ等の量子化座標平面PLNに投
影するには、第2図Aの曲線FCを第2図Bの如
く点列化して、曲線を細かい点列で表わし、これ
を第2図Cの如く量子化座標平面PLNに投影し
量子化していた。換言すれば、先づ連続曲線FC
の関数(x=g(t)、f=h(t))に基いて曲線FC
の各点の座標を算出し、この座標に基いて量子化
座標平面PLNの単位画素に“1”(マーク)を書
込んで該連続曲線を得ていた。
Conventionally, a method as shown in FIG. 2 has been used to generate this curve. That is, in order to project the continuous function curve FC in Figure 2A onto the quantized coordinate plane PLN of a memory, etc., the curve FC in Figure 2A is converted into a series of points as shown in Figure 2B, and the curve is converted into a fine point series. This was then projected onto the quantization coordinate plane PLN and quantized as shown in FIG. 2C. In other words, first the continuous curve FC
curve FC based on the function (x=g(t), f=h(t))
The continuous curve was obtained by calculating the coordinates of each point and writing "1" (mark) in the unit pixel of the quantized coordinate plane PLN based on the coordinates.

この様な従来の方法では、第2図Dの第2図C
の部分拡大図に示す如く、画素NPには曲線FCが
通過しているにもかかわらず、点列の間にあると
“1”(マーク)が付されないため、精度の良い投
影が行なえないという問題があつた。これを解決
するには、点列の点間隔、即ち関数の変数tを細
かくする必要があり、このため曲線発生、即ち投
影に長時間を要するという問題が生じていた。
In such a conventional method, FIG. 2C of FIG. 2D
As shown in the partially enlarged view of pixel NP, even though the curve FC passes through the pixel NP, "1" (mark) is not placed between the points, so accurate projection cannot be performed. There was a problem. In order to solve this problem, it is necessary to make the point interval of the point sequence, ie, the variable t of the function, finer, which causes the problem that curve generation, ie, projection, takes a long time.

〔発明の目的〕[Purpose of the invention]

本発明の目的は、精度の良い量子化投影を短時
間で行いうる量子化投影法を提供するにある。
An object of the present invention is to provide a quantization projection method that can perform highly accurate quantization projection in a short time.

〔発明の構成〕[Structure of the invention]

上述の目的の達成のため、本発明は、データ処
理部が連続線分を表す任意関数から該線分の投影
点を演算し、該投影点をビツトマツプメモリに展
開することによつて、該線分を該ビツトマツプメ
モリに投影する量子化投影法において、該データ
処理部により、該線分の該ビツトマツプメモリ上
での両端点の隣接性を検査する第1のステツプ
と、該第1のステツプで該両端点に隣接性がない
場合に、該線分を分割し、該分割された線分の端
点を該任意関数により該投影点として演算する第
2のステツプとを有し、該第2のステツプで、該
分割された線分の各々に対し、該第1のステツプ
を実行し、該第1のステツプで、各分割された線
分の両端点が隣接性を有するまで、該第2のステ
ツプの該投影点の演算を行い、該演算した端点を
該ビツトマツプメモリに書き込むことを特徴とし
ている。
In order to achieve the above-mentioned object, the present invention calculates a projection point of a continuous line segment from an arbitrary function representing the continuous line segment, and develops the projection point in a bitmap memory. In the quantization projection method of projecting a line segment onto the bitmap memory, a first step of inspecting the adjacency of both end points of the line segment on the bitmap memory by the data processing unit; a second step of dividing the line segment and calculating the end points of the divided line segment as the projection point by the arbitrary function if the two end points have no adjacency in the step; In a second step, the first step is performed on each of the divided line segments, and in the first step, the first step is performed on each of the divided line segments until both end points of each divided line segment have adjacency. The method is characterized in that the projection point in the second step is calculated, and the calculated end point is written in the bitmap memory.

〔発明の実施例〕[Embodiments of the invention]

以下、本発明の実施例により詳細に説明する。 Hereinafter, the present invention will be explained in detail using examples.

第3図は本発明の原理説明図である。 FIG. 3 is a diagram explaining the principle of the present invention.

先づ、第3図Aの如くの連続関数曲線l1の両端
点P1,P2を求め、これを投影点として第3図B
の如く座標平面PLNに書込む。
First, find both end points P 1 and P 2 of the continuous function curve l 1 as shown in Figure 3A, and use these as the projection points as shown in Figure 3B.
Write in the coordinate plane PLN as follows.

次に、座標平面PLNにおける両端点P1,P2
隣接性、即ち、両端点P1,P2の画素が隣接して
いるか否かを調べる。
Next, the adjacency of both end points P 1 and P 2 on the coordinate plane PLN, that is, whether or not the pixels of both end points P 1 and P 2 are adjacent to each other is checked.

隣接していなければ、第3図Cの如く第3図A
の曲線l1を曲線l2,l3に分割し、曲線l2,l3の端点
P3を演算により求める。そして端点P3を第3図
Dの如く投影点として座標平面PLNに書込む。
If they are not adjacent, the image shown in Fig. 3 A as shown in Fig. 3 C.
Divide the curve l 1 into curves l 2 and l 3 , and find the end points of curves l 2 and l 3 .
Find P 3 by calculation. Then, the end point P3 is written on the coordinate plane PLN as a projection point as shown in FIG. 3D.

同様にして座標平面PLNの曲線l2の両端点P1
P3及び曲線l3の両端点P2,P3の隣接性を調べる。
Similarly, both end points P 1 of curve l 2 on coordinate plane PLN,
Examine the adjacency of P 3 and both end points P 2 and P 3 of curve l 3 .

これら両端点が隣接していなければ、第3図E
の如く、曲線l2を曲線l4,l5に、曲線l3を曲線l6
l7に分割し、これらの端点P4,P5を演算によつて
求め、端点P4,P5を第3図Fの如く投影点とし
て座標平面PLNに書込む。
If these end points are not adjacent, then
As in, curve l 2 becomes curve l 4 , l 5 , curve l 3 becomes curve l 6 ,
The end points P 4 and P 5 are obtained by calculation, and the end points P 4 and P 5 are written on the coordinate plane PLN as projection points as shown in FIG. 3F.

同様な処理を繰返し、最終的には第3図Gの如
く全ての分割された曲線の端点が隣接性を有する
と、第3図Hの如く座標平面PLNに射影曲線が
得られる。
Similar processing is repeated, and finally, when the end points of all the divided curves have adjacency as shown in FIG. 3G, a projected curve is obtained on the coordinate plane PLN as shown in FIG. 3H.

この様に、本発明では、曲線の端点を投影点と
して座標平面に格納することを基本とし、曲線を
座標平面上で分割して、分割された曲線の端点を
投影点として求めて座標平面に格納していく。そ
して分割された曲線の端点が座標平面上で隣接性
を有することによつて目的とする射影曲線を完成
する。
In this way, the present invention basically stores the end points of a curve as projected points on a coordinate plane, divides the curve on the coordinate plane, finds the end points of the divided curves as projected points, and stores them in the coordinate plane. I will store it. Then, the end points of the divided curves have adjacency on the coordinate plane, thereby completing the target projection curve.

換言すれば、被投影曲線の両端の点を座標平面
上に投影量子化し、座標平面上の投影点に基いて
曲線の中間投影の必要性を判断し、原曲線にフイ
ードバツクして原曲線の分割端点を演算する様に
している。
In other words, the points at both ends of the projected curve are projected and quantized onto the coordinate plane, the necessity of intermediate projection of the curve is determined based on the projected points on the coordinate plane, and the original curve is divided by feeding back to the original curve. The end points are calculated.

従つて、本発明方法は、従来の如く座標平面を
考慮せずに投影点を演算する方法と異なり、座標
平面上の投影点を基に原曲線の新たな投影点を演
算する方法であり、逐次的な方法でもあるから、
座標平面における射影曲線の精度は向上し、しか
も高速な射影が可能となる。
Therefore, the method of the present invention is a method of calculating a new projection point of the original curve based on the projection point on the coordinate plane, unlike the conventional method of calculating a projection point without considering the coordinate plane. Since it is also a sequential method,
The accuracy of the projection curve on the coordinate plane is improved, and high-speed projection becomes possible.

第4図は本発明方法の一実施例処理フロー図で
ある。
FIG. 4 is a processing flow diagram of one embodiment of the method of the present invention.

ここで、曲線の関数をX=g(t)、Y=h(t)と
し、即ちtという変数(例ええば回転角θ)によ
つて曲線上の2次元の座標(X、Y)が決定され
るものとする。
Here, the functions of the curve are set as X=g(t) and Y=h(t), that is, the two-dimensional coordinates (X, Y) on the curve are determined by the variable t (for example, rotation angle θ). shall be carried out.

第4図の左側がメインルーチンであり、右側が
メインルーチンにより呼出されたサブルーチンで
ある。
The left side of FIG. 4 is the main routine, and the right side is the subroutine called by the main routine.

第4図左側のメインルーチンではDRAWf(tn、
tm)というサブルーチンを呼出してこれを実行
して終了することを示している。第4図右側のサ
ブルーチンでは、呼出されると、先づ端点の座標
を演算する。
In the main routine on the left side of Figure 4, DRAWf(tn,
tm) is called, the subroutine is executed, and the process ends. When the subroutine on the right side of FIG. 4 is called, it first calculates the coordinates of the end point.

第3図Aの端点P1,P2の座標P1X,P1Y,
P2Yをn=1,m=2として次式より演算す
る。
Coordinates P 1 X , P 1 Y of end points P 1 , P 2 of Fig. 3A,
Calculate P 2 Y from the following equation with n=1 and m=2.

PnX=g(tn) ……(1) PnY=h(tn) ……(2) PmX=g(tm) ……(3) PmY=h(tm) ……(4) そして、第3図Bの如く、この座標に対応す
る座標平面PLNの画素に“1”(マーク、図で
は白丸で示す)を書込む。
PnX=g(tn)...(1) PnY=h(tn)...(2) PmX=g(tm)...(3) PmY=h(tm)...(4) And, Figure 3B Write "1" (mark, shown as a white circle in the figure) in the pixel of the coordinate plane PLN corresponding to this coordinate, as shown in FIG.

次に、端点P1,P2の隣接性を検査する。こ
の例では、隣接性の検査として第5図に示す様
に、点Piの画素の周囲の内x印のある画素に他
の点Pjがある場合に点PiとPjとは隣接性有(隣
接している)と判定している。これを演算によ
つて行うには、点Piの座標を(PiX、PiY)、
点Pjの座標を(PjX、PjY)として、次式を満
足するかをチエツクすればよい。
Next, the adjacency of end points P 1 and P 2 is checked. In this example, as shown in Figure 5 as a test for adjacency, if there is another point Pj in the pixel with the x mark around the pixel of point Pi, the points Pi and Pj have adjacency (adjacent). It has been determined that To do this by calculation, the coordinates of point Pi are (PiX, PiY),
If the coordinates of point Pj are (PjX, PjY), check whether the following equation is satisfied.

|PiX−PjX|+|PiY−PjY|≦1 ……(5) (5)式を満足すれば、隣接性あり、満足しなけれ
ば隣接性なしと判定する。
|PiX−PjX|+|PiY−PjY|≦1 (5) If formula (5) is satisfied, it is determined that there is adjacency, and if it is not satisfied, it is determined that there is no adjacency.

この検査によつて隣接性ありと判定される
と、線分は完成したので、メインルーチンへ戻
り(RETURN)終了する。
If it is determined that there is adjacency through this inspection, the line segment is completed, and the process returns to the main routine (RETURN) and ends.

一方、隣接性がないと判定されると、前述の
第3図で示した如く中間投影要と判断し、中間
点P3の座標の演算を行なう。即ち、第3図C
の如く分割された線分l2、l3の中間点P3の座標
を得るため、その変数t3を次式により求める。
On the other hand, if it is determined that there is no adjacency, it is determined that intermediate projection is required as shown in FIG. 3, and the coordinates of the intermediate point P3 are calculated. That is, Figure 3C
In order to obtain the coordinates of the midpoint P 3 of the line segments l 2 and l 3 divided as shown, the variable t 3 is determined by the following equation.

tl=(tn+tm)/2 ……(6) l=3、n=1、m=2であるので、t3は t3=(t1+t2)/2 となる。 tl=(tn+tm)/2...(6) Since l=3, n=1, and m=2, t3 becomes t3 =( t1 + t2 )/2.

次に、DRAWf(tn、tl)の命令によつて、こ
のサブルーチンの先頭(即ちステツプ)に戻
り、tn=t1、tl=t3としてステツプを実行し、
第(1)式〜第(4)式により線分l2の端点P1,P3の座
標(P1X、P1Y)、(P3X、P3Y)を求め、第3
図Dの如く、中間点P3を書込む。
Next, the command DRAWf (tn, tl) returns to the beginning of this subroutine (i.e. step) and executes the step with tn=t 1 and tl=t 3 .
The coordinates (P 1 X, P 1 Y) and ( P 3
Write the intermediate point P3 as shown in Figure D.

同様にしてステツプによつてP1,P3の隣
接性を求め、隣接性があればステツプの線分
l3の処理に移る。逆に隣接性がなければ、ステ
ツプと同様に線分l2を2分割した線分l4,l5
(第3図E)の中間点P4を得るため、変数t4
(6)式により求め、次にDRAWf(tn、tl)の命令
によつてtn=t1、tl=t4、即ち線分l4の端点P1
P4の座標を求め、同様に第3図Fの如く点P4
を書込んだ後、P1,P4の隣接性を調べ、隣接
性がなければ、線分l4を更に2分割して同様の
処理を行ない隣接性を有するまで行なう。この
様にして線分l4について全ての端点が隣接性を
持つに到ると、次にPRAWf(tl、tm)を命令
で線分l5についても同様に隣接性を有するま
で、処理を繰返し各端点を求める。
Similarly, the adjacency of P 1 and P 3 is determined by the step, and if there is adjacency, the line segment of the step is
l Move on to step 3 . On the other hand, if there is no adjacency, the line segments l 4 , l 5 which divide the line segment l 2 into two as in the step
In order to obtain the intermediate point P 4 of (Fig. 3 E), the variable t 4 is
(6), and then use the command DRAWf (tn, tl) to find tn=t 1 , tl=t 4 , that is, the end point P 1 of line segment l 4 ,
Find the coordinates of P 4 and similarly find the point P 4 as shown in Figure 3 F.
After writing, the adjacency of P 1 and P 4 is checked, and if there is no adjacency, the line segment l 4 is further divided into two and the same process is performed until they have adjacency. In this way, when all the end points of line segment l 4 have contiguity, the process is repeated using the command PRAWf (tl, tm) until line segment l 5 has contiguity. Find each endpoint.

次に、DRAWf(tl、tm)、即ちDRAWf(t3
t2)の命令で同様に線分l3についても隣接性を
有するまで線分の分割、端点の演算、隣接性の
検査を繰返す。例えば、第3図Eの如く線分
l4,l5,l6,l7で座標平面PLN上の全端点が隣
接している時には、前述の一連の処理は、先づ
線分l1→線分l2→線分l4→線分l5→線分l3→線分
l6−線分l7と云う順で行なわれ、座標平面PLN
上に曲線l1が格納されることになる。
Next, DRAWf(tl, tm), i.e. DRAWf(t 3 ,
t 2 ) instruction, division of the line segment, calculation of end points, and inspection of adjacency are repeated for the line segment l 3 in the same way until the line segment l 3 has adjacency. For example, as shown in Figure 3 E, the line segment
When all end points on the coordinate plane PLN are adjacent at l 4 , l 5 , l 6 , and l 7 , the above series of processing is performed as follows: first, line segment l 1 → line segment l 2 → line segment l 4 → Line segment l 5 → line segment l 3 → line segment
l 6 − line segment l 7 , and the coordinate plane PLN
The curve l 1 will be stored above.

この様に同一の処理手順を隣接性の有無によつ
て繰返せばよいので、プログラム自体は簡単とな
りしかも処理時間も短かくてよい。
In this way, the same processing procedure can be repeated depending on the presence or absence of adjacency, so the program itself can be simple and the processing time can be shortened.

第6図は本発明方法を実現するための一実施例
ブロツク図であり、図中、1は演算部であり、前
述の一連の処理を実行するもの、2は投影量子化
部であり、外部からセツトされる曲線の関数g
(t)、h(S)を与えられた変数tn等に応じて演算し、
端点Pnの量子化された座標を出力するもの、3
は隣接検査部であり、投影量子化部2からの端点
Pnの座標に基いて前述の第(5)式を実行し、隣接
性の有無を判定するもの、4は中間点生成部であ
り、隣接検査部3からの隣接性検査結果に基き前
述の第(6)式を実行して中間点の変数tlを算出する
もの、5はスタツクメモリ各線分の端点の変数を
格納するもの、6はメモリであり、前述の量子化
座標平面PLNに相当し、投影量子化部2からの
端点Pnが書込まれるものである。
FIG. 6 is a block diagram of an embodiment for realizing the method of the present invention. In the figure, 1 is an arithmetic unit that executes the series of processes described above, 2 is a projection quantization unit, and The function g of the curve set from
(t) and h(S) are calculated according to the given variables tn, etc.,
One that outputs the quantized coordinates of the end point Pn, 3
is the adjacent inspection part, and the end point from the projection quantization part 2
4 is an intermediate point generation unit that executes the above-mentioned equation (5) based on the coordinates of Pn and determines the presence or absence of adjacency. (6) is executed to calculate the variable tl at the intermediate point, 5 is a stack memory that stores the variables at the end points of each line segment, and 6 is a memory, which corresponds to the quantized coordinate plane PLN mentioned above, and which is projected The end point Pn from the quantization unit 2 is written.

次に、第6図実施例構成の動作について第7図
スタツクメモリの動作図に基いて説明する。
Next, the operation of the embodiment shown in FIG. 6 will be explained based on the operation diagram of the stack memory shown in FIG. 7.

先づスタツクメモリ5には第7図Aの線分l1
端点P1、P2の変数t1、t2が初期セツトされてい
る。
First, the variables t 1 and t 2 of the end points P 1 and P 2 of the line segment l 1 in FIG. 7A are initially set in the stack memory 5.

スタツクメモリ5の変数t1、t2は投影量子化部
2へ与えられ、前述の如く線分l1の端点P1,P2
量子化座標(P1X、P1Y)、(P2X、P2Y)が算出
され、メモリ6へ第3図Bの如く書込まれる。
The variables t 1 and t 2 of the stack memory 5 are given to the projection quantization unit 2 , and as mentioned above, the quantized coordinates (P 1 X, P 1 Y ), ( P 2 X, P 2 Y) are calculated and written into the memory 6 as shown in FIG. 3B.

これとともに座標(P1X、P1Y)、(P2X、
P2Y)は隣接検査部3に送られ、前述の第(5)式に
よつて隣接性の有無が判定される。隣接性無しと
判定されると、中間点生成部4はスタツクメモリ
5の出力変数t1、t2によつて中間点t3を前述の第
(6)式より発生し、スタツクメモリ5に線分l1を分
割した線分l2及びl3の変数(t3、t1)、(t3、t2)を
第7図Bの如く書込む。スタツクメモリ5は先頭
(即ち第7図の上方)の内容から出力する様にな
つているので、次に変数t3、t1が投影量子化部2
へ与えられ、前述の如く線分l2の端点P1,P3の座
標が算出され、メモリ6へ第3図Dの如く書込ま
れる。
Along with this, the coordinates (P 1 X, P 1 Y), (P 2 X,
P 2 Y) is sent to the adjacency checking section 3, and the presence or absence of adjacency is determined by the above-mentioned equation (5). If it is determined that there is no adjacency, the intermediate point generation unit 4 converts the intermediate point t 3 to the above-mentioned number using the output variables t 1 and t 2 of the stack memory 5.
Generated from equation (6), variables (t 3 , t 1 ) and (t 3 , t 2 ) of line segments l 2 and l 3 obtained by dividing line segment l 1 are written in the stack memory 5 as shown in FIG. 7B. It's crowded. Since the stack memory 5 is designed to output the contents from the beginning (that is, the upper part of FIG. 7), the variables t 3 and t 1 are then output to the projection quantizer 2.
The coordinates of the end points P 1 and P 3 of the line segment l 2 are calculated as described above and written into the memory 6 as shown in FIG. 3D.

同様に、隣接性検査部3は端点P1、P3の隣接
性検査を行ない、隣接性がない場合は中間点生成
部4がスタツクメモリ5の出力変数t1,t3によつ
て中間点t4を前述の第(6)式より発生し、スタツク
メモリ5に線分l2を分割した線分l4,l5の変数
(t4、t1)、(t4,t3)を処理されていない線分l3
変数(t3、t2)の上に第7図Cの如く積上げて書
込む。
Similarly, the adjacency check unit 3 checks the adjacency of the end points P 1 and P 3 , and if there is no adjacency, the intermediate point generation unit 4 uses the output variables t 1 and t 3 of the stack memory 5 to determine the intermediate point t. 4 is generated from equation (6) above, and the variables (t 4 , t 1 ) and (t 4 , t 3 ) of line segments l 4 and l 5 , which are obtained by dividing line segment l 2 , are processed in the stack memory 5. As shown in FIG. 7C, the variables (t 3 , t 2 ) of the line segment l 3 that have not been written are stacked and written.

同様にして線分l4の変数t4、t1が投影量子化部
2へ送られ、線分l4の端点P1,P4の座標を発生せ
しめ、メモリ6に第3図Fの如く書込み、同様に
隣接検査部3で隣接性の検査を行ない、隣接性の
有無によつて中間点生成部4を動作せしめ、中間
点を生成し、分割された線分の変数をスタツクメ
モリ5に書込む。例えば、線分l4の端点P1,P4
隣接性有ると判定されると、第7図Cのスタツク
メモリ5には変数の積上げが行なわれず、先頭が
線分l5の変数(t4、t3)となるから、スタツクメ
モリ5の出力変数はt4、t3となり線分l5の処理が
行なわれ、以下同様にして線分l2についても同様
に行なわれる。
Similarly, the variables t 4 and t 1 of the line segment l 4 are sent to the projection quantization unit 2, which generates the coordinates of the end points P 1 and P 4 of the line segment l 4 , and stores them in the memory 6 as shown in FIG. 3F. Similarly, the adjacency test section 3 performs an adjacency test, operates the intermediate point generation section 4 depending on whether there is adjacency, generates an intermediate point, and writes the variables of the divided line segment to the stack memory 5. It's crowded. For example, if it is determined that end points P 1 and P 4 of line segment l 4 are adjacent, variables are not stacked in the stack memory 5 of FIG. , t 3 ), the output variables of the stack memory 5 are t 4 and t 3 and the processing for the line segment l 5 is performed, and the same process is subsequently performed for the line segment l 2 as well.

この様に、スタツクメモリ5を用いれば、処理
の必要なデータ(変数)を処理順に出力する様に
積上げているので、前述の一連の線分の分割処理
をスタツクメモリ5の読出しによつて順次実行す
ることができる。
In this way, if the stack memory 5 is used, the data (variables) that need to be processed are stacked up so as to be output in the order of processing, so the above-mentioned series of line segment division processes can be executed sequentially by reading out the stack memory 5. be able to.

上述の例では演算部1を各ブロツク化して説明
しているが、マイクロコンピユータ等を用いれば
共通化することもできる。
In the above example, the arithmetic unit 1 is divided into blocks, but it can also be made common by using a microcomputer or the like.

上述の如く量子化投影によつて得られた線分を
用いた応用例について次に説明する。
An application example using line segments obtained by quantized projection as described above will be described next.

第8図、第9図は球面カメラを用いた三次元計
測の説明図である。第8図Aに示す如く、魚眼レ
ンズ等の球面レンズ10bを有するカメラ10に
よつて対象物lを第8図Bの如く撮像面10aに
撮像すると対象物lは球面投影された像として得
られる。即ち、第9図A、Bの如く対象物たる直
線l1,l2,l3は球面BPに投影された像l1′,l2′,
l3′となり、撮像面10aでは第9図Cの如くの直
線の投影像l1′,l2′,l3′が得られる。
FIGS. 8 and 9 are explanatory diagrams of three-dimensional measurement using a spherical camera. As shown in FIG. 8A, when an object l is imaged on an imaging surface 10a as shown in FIG. 8B by a camera 10 having a spherical lens 10b such as a fisheye lens, the object l is obtained as a spherically projected image. That is, as shown in FIGS. 9A and 9B, the straight lines l 1 , l 2 , l 3 that are objects are images l 1 ′, l 2 ′,
l 3 ', and straight line projected images l 1 ', l 2 ', l 3 ' as shown in FIG. 9C are obtained on the imaging surface 10a.

このように球面投影を行なうと、第9図Cの如
く直線でも曲線となるので、従つて平行線であつ
ても無限遠での交点が計測できる。勿論、平面に
おいて交わる直線も球面上で交点が得られるか
ら、この球面上の交点を求めれば、直線の3次元
の位置が計測できる。
When spherical projection is performed in this manner, even a straight line becomes a curve as shown in FIG. 9C, so even if the lines are parallel, the intersection point at infinity can be measured. Of course, straight lines that intersect on a plane also have points of intersection on the spherical surface, so by finding the points of intersection on the spherical surface, the three-dimensional position of the straight lines can be measured.

この様な場合において、3次元計測を行う処理
装置のシユミレーシヨンを行なう場合に本発明に
よる量子化投影法によつて第9図Cの如くの球面
投影像を発生させている。従つて、係る球面投影
像を発生させるのが容易で短時間に行なえるの
で、係るシユミレーシヨンを効率良く正確に行い
うる。
In such a case, when simulating a processing device that performs three-dimensional measurement, a spherical projection image as shown in FIG. 9C is generated by the quantization projection method according to the present invention. Therefore, such a spherical projection image can be generated easily and in a short time, so that such simulation can be performed efficiently and accurately.

その他に、球面レンズの歪の検出にも用いるこ
とができる。即ち、本発明によつて第9図Cの投
影像を発生しておいて、カメラ10が撮像した基
準直線の撮像と比較し、球面レンズの歪を検出出
来る。また、係る歪をデータとして測定してお
き、カメラ10に撮像された投影像を補正して歪
を除去するのにも利用できる。
In addition, it can also be used to detect distortion of a spherical lens. That is, according to the present invention, the projection image shown in FIG. 9C is generated and compared with the image of the reference straight line taken by the camera 10 to detect the distortion of the spherical lens. Further, such distortion can be measured as data and used to correct the projected image captured by the camera 10 to remove the distortion.

以上の実施例では、線分を2分割する例で説明
したが3分割等のn分割であつてもい。
In the above embodiments, an example in which a line segment is divided into two was explained, but the line segment may be divided into n, such as three.

以上本発明を一実施例により説明したが、本発
明は本発明の主旨に従い種々の変形が可能であ
り、本発明からこれらを排除するものではない。
Although the present invention has been described above using one embodiment, the present invention can be modified in various ways according to the gist of the present invention, and these are not excluded from the present invention.

〔発明の効果〕〔Effect of the invention〕

以上説明した様に、本発明によれば、次の効果
を奏する。
As explained above, according to the present invention, the following effects are achieved.

座標平面に投影された端点をもとに原線分に
フイードバツクして投影点を求めているから、
正確な量子化投影像が得られる。
Since the projected point is calculated by feeding back to the original line segment based on the end point projected on the coordinate plane,
Accurate quantized projection images can be obtained.

原線分の分割数は投影点の隣接性に基づいて
定められるから、不必要な投影点を求める必要
がなく、高速に投影像の演算処理を行うことも
でき、特に複雑な形状の曲線の量子化投影像を
正確にかつ速みやかに得られるから、画像処理
に用いて好適である。
The number of divisions of the original line segment is determined based on the adjacency of the projection points, so there is no need to find unnecessary projection points, and the projection image can be processed at high speed, especially for curves with complex shapes. Since a quantized projection image can be obtained accurately and quickly, it is suitable for use in image processing.

処理方法が逐次的(即ち、再帰的)なため、
容易に実現でき、プログラム等の簡易化も達成
しうる。
Since the processing method is sequential (i.e. recursive),
This can be easily realized and the program etc. can be simplified.

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

第1図は量子化投影の説明図、第2図は従来の
量子化投影法の説明図、第3図は本発明の原理説
明図、第4図は本発明方法の一実施例処理フロー
図、第5図は第4図フローにおける隣接性検査説
明図、第6図は本発明方法の実現のための一実施
例ブロツク図、第7図は第6図ブロツクにおける
スタツクメモリの動作説明図、第8図、第9図は
本発明方法を用いた応用例の説明図である。 図中、l1〜l7…線分、P1〜P5…端点、PLN…量
子化座標平面、1…演算部、2…投影量子化部、
3…隣接検査部、4…中間点生成部、5…スタツ
クメモリ、6…メモリ。
Fig. 1 is an explanatory diagram of quantization projection, Fig. 2 is an explanatory diagram of the conventional quantization projection method, Fig. 3 is an explanatory diagram of the principle of the present invention, and Fig. 4 is a processing flow diagram of an embodiment of the method of the present invention. , FIG. 5 is an explanatory diagram of the adjacency test in the flow of FIG. 4, FIG. 6 is a block diagram of an embodiment for realizing the method of the present invention, FIG. FIGS. 8 and 9 are explanatory diagrams of application examples using the method of the present invention. In the figure, l1 to l7 ... line segment, P1 to P5 ... end point, PLN... quantization coordinate plane, 1... calculation section, 2... projection quantization section,
3...Adjacent inspection unit, 4...Intermediate point generation unit, 5...Stack memory, 6...Memory.

Claims (1)

【特許請求の範囲】 1 データ処理部が連続線分を表す任意関数から
該線分の投影点を演算し、該投影点をビツトマツ
プメモリに展開することによつて、該線分を該ビ
ツトマツプメモリに投影する量子化投影法におい
て、 該データ処理部により、該線分の該ビツトマツ
プメモリ上での両端点の隣接性を検査する第1の
ステツプと、 該第1のステツプで該両端点に隣接性がない場
合に、該線分を分割し、該分割された線分の端点
を該任意関数により該投影点として演算する第2
のステツプとを有し、 該第2のステツプで、該分割された線分の各々
に対し、該第1のステツプを実行し、該第1のス
テツプで、各分割された線分の両端点が隣接性を
有するまで、該第2のステツプの該投影点の演算
を行い、該演算した端点を該ビツトマツプメモリ
に書き込むことを特徴とする量子化投影法。
[Scope of Claims] 1. A data processing unit calculates a projection point of a continuous line segment from an arbitrary function representing the continuous line segment, and develops the projection point in a bitmap memory, thereby converting the line segment into a bitmap memory. In the quantization projection method for projecting onto a map memory, a first step in which the data processing unit checks the adjacency of both end points of the line segment on the bit map memory; A second method that divides the line segment when the points have no adjacency and calculates the end point of the divided line segment as the projection point using the arbitrary function.
In the second step, the first step is executed for each of the divided line segments, and in the first step, both end points of each divided line segment are A quantization projection method characterized in that the projection points of the second step are calculated until the projection points have adjacency, and the calculated end points are written in the bitmap memory.
JP59067985A 1984-04-05 1984-04-05 Quantized projecting method Granted JPS60211575A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP59067985A JPS60211575A (en) 1984-04-05 1984-04-05 Quantized projecting method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP59067985A JPS60211575A (en) 1984-04-05 1984-04-05 Quantized projecting method

Publications (2)

Publication Number Publication Date
JPS60211575A JPS60211575A (en) 1985-10-23
JPH0542708B2 true JPH0542708B2 (en) 1993-06-29

Family

ID=13360780

Family Applications (1)

Application Number Title Priority Date Filing Date
JP59067985A Granted JPS60211575A (en) 1984-04-05 1984-04-05 Quantized projecting method

Country Status (1)

Country Link
JP (1) JPS60211575A (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2580759B2 (en) * 1989-02-28 1997-02-12 ブラザー工業株式会社 Data conversion method
JP2742619B2 (en) * 1989-11-30 1998-04-22 京セラ株式会社 Silicon nitride sintered body

Also Published As

Publication number Publication date
JPS60211575A (en) 1985-10-23

Similar Documents

Publication Publication Date Title
US6128405A (en) System for processing three-dimensional shape data
Ikeuchi et al. The Great Buddha Project: Modeling Cultural Heritage for VR Systems through Observation.
US11450057B2 (en) Hardware acceleration for ray tracing primitives that share vertices
US20020082800A1 (en) Method of composing three-dimensional multi-viewpoints data
WO2011145285A1 (en) Image processing device, image processing method and program
CN103366360A (en) Information processing apparatus and information processing method
US3943344A (en) Apparatus for measuring the elevation of a three-dimensional foreground subject
KR102109814B1 (en) Apparatus and method for registering images
JPH05266146A (en) Representing device for body shape
CN115421509B (en) Unmanned aerial vehicle flight shooting planning method, unmanned aerial vehicle flight shooting planning device and storage medium
JP3950376B2 (en) Shape model generation method and apparatus from three-dimensional point group, shape model generation program from three-dimensional point group, and recording medium recording the program
US20050162418A1 (en) Boundary data inside/outside judgment method and program thereof
CN116958233A (en) Skin burn area calculation method based on multiband infrared structured light system
JPH0542708B2 (en)
CN115127481A (en) Stripe projection 3D measuring method, terminal device and computer readable storage medium
Knyaz et al. Approach to Accurate Photorealistic Model Generation for Complex 3D Objects
CN111462199A (en) Rapid speckle image matching method based on GPU
Chen et al. Precise 6dof localization of robot end effectors using 3D vision and registration without referencing targets
JPH09305791A (en) Device and method for generating three-dimensional image
Chou et al. Fast octree construction endowed with an error bound controlled subdivision scheme
JP3572252B2 (en) Method and apparatus for aligning photographed image and range data, and recording medium recording program for executing the method
JPH06129833A (en) Three dimensional restoration method
WO2024117090A1 (en) Information processing device, information processing method, and program
JP2003021510A (en) Method for detecting local deformation of surface to be measured
JP3543741B2 (en) Object shape estimation method and object shape estimation device

Legal Events

Date Code Title Description
LAPS Cancellation because of no payment of annual fees