JP2774573B2 - Image processing method - Google Patents
Image processing methodInfo
- Publication number
- JP2774573B2 JP2774573B2 JP1134369A JP13436989A JP2774573B2 JP 2774573 B2 JP2774573 B2 JP 2774573B2 JP 1134369 A JP1134369 A JP 1134369A JP 13436989 A JP13436989 A JP 13436989A JP 2774573 B2 JP2774573 B2 JP 2774573B2
- Authority
- JP
- Japan
- Prior art keywords
- vector
- axis direction
- pixel candidate
- outline
- candidate 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
Links
Landscapes
- Image Generation (AREA)
- Controls And Circuits For Display Device (AREA)
Description
【発明の詳細な説明】 <産業上の利用分野> この発明は、画像処理方法に関する。Description: TECHNICAL FIELD The present invention relates to an image processing method.
<従来の技術> 従来、画像処理方法としては、図形の輪郭をアウトラ
インベクトルで表し、このアウトラインベクトルからラ
スター変換によりアウトラインを作成し、スイッチング
描画法(奇遇法)により上記アウトラインの内部を塗り
つぶすようにした方法がある。<Prior Art> Conventionally, as an image processing method, an outline of a figure is represented by an outline vector, an outline is created from this outline vector by raster conversion, and the inside of the outline is painted out by a switching drawing method (unexpected method). There is a way.
上記奇遇法は、第2図に示すように、X軸方向ヘスキ
ャニングして、アウトラインと水平走査線との奇数回目
の交差で塗りつぶしを開始し、偶数回目の交差を塗りつ
ぶしを中止するようにした方法である。As shown in FIG. 2, the odd detection method scans in the X-axis direction, starts filling at odd-numbered intersections between outlines and horizontal scanning lines, and stops filling at even-numbered intersections. Is the way.
また、アウトラインベクトルからラスター変換により
アウトラインを作成する方法としては、周知のブレーゼ
ンハムのアルゴリズムを用いた方法がある。Further, as a method of creating an outline by raster conversion from an outline vector, there is a method using a well-known Bresenham algorithm.
第3図はアウトラインベクトルの一例を示す図、第4
図は上記第3図のベクトルCについて、ブレーゼンハム
のアルゴリズムを用いた方法により作成したアウトライ
ンを示す図、第7図はブレーゼンハムのアルゴリズムを
用いた方法を示すフローチャートである。FIG. 3 is a diagram showing an example of an outline vector, and FIG.
The figure shows an outline created by the method using the Bresenham algorithm for the vector C in FIG. 3, and FIG. 7 is a flowchart showing the method using the Bresenham algorithm.
以下、第7図のフローチャートに基づき、第3図のベ
クトルCから第4図のアウトラインを作成する手順につ
いて説明する。Hereinafter, a procedure for creating the outline of FIG. 4 from the vector C of FIG. 3 will be described with reference to the flowchart of FIG.
まず、ステップS71で、ベクトルCの始点(xc1,yc1)
と終点(xc2,yc2)のX座標の差の絶対値を“deltax"と
おき、Y座標の差の絶対値を“deltay"とおく。そし
て、ステップS72で、“deltax"が“deltay"より大きけ
ればX軸をメジャー軸としてステップS73にすすみ、小
さければY軸がメジャー軸のフローへ進む。ステップS7
3では、eの初期値と定数(cons1,cons2)の設定を行
う。このeは例えば次にステップS83に進んだときにe
=cons2−deltaxとなるが、このe=cons2−deltaxはe
=deltay/deltax−0.5を整数化するために両辺に2*de
ltaxをかけて2*deltax*eを新たにeとしたものであ
る。すなわち、e>0ということは画素の表示点のX座
標を通るY軸と平行な直線とベクトルとの交点のY座標
が、その表示点のY座標よりも、Yをひとつインクリメ
ント(またはデクリメント)した表示点のY座標に近い
ことを表している。次に、ステップS74からステップS78
またはステップS79に進み、ベクトルの方向、傾きに応
じてインクリメント(inc=1)するかデクリメント(i
nc=−1)するかを決める。そして、ステップS80でベ
クトルの始点を画素の最初の表示点とする。つぎに、ス
テップS81でe>0かどうかの判定を行ない、e>0で
なければ、ステップS83でe=e+cons2としたのち、ス
テップS84でその表示点に画素(ビクセル)を表示する
一方、e>0であれば、ステップS82でYを一つインク
リメント(デクリメント)すると共にe=e+cons1と
したのち、ステップS84で上記Yをインクリメント(デ
クリメント)した表示点に画素を表示する。そして、ス
テップS85でXを一つインクリメント(デクリメント)
したのちステップS86からステップS81に戻り、以下同様
の処理をベクトルの終点まで行う。First, in step S71, the starting point of the vector C (xc1, yc1)
The absolute value of the difference between the X-coordinates of the point and the end point (xc2, yc2) is set to “deltax”, and the absolute value of the difference between the Y-coordinates is set to “deltay”. Then, in step S72, if "deltax" is larger than "deltay", the process proceeds to step S73 with the X axis as the major axis, and if smaller, the Y axis proceeds to the major axis flow. Step S7
In step 3, an initial value of e and constants (cons1, cons2) are set. This e is, for example, the next time the process proceeds to step S83.
= Cons2-deltax, where e = cons2-deltax is e
= 2 * de on both sides to convert deltay / deltax-0.5 to an integer
2 * deltax * e is newly set to e by multiplying ltax. That is, e> 0 means that the Y coordinate of the intersection of the vector and a straight line parallel to the Y axis passing through the X coordinate of the display point of the pixel is one more increment (or decrement) of Y than the Y coordinate of the display point. It is close to the Y coordinate of the indicated display point. Next, from step S74 to step S78
Alternatively, the process proceeds to step S79, where the value is incremented (inc = 1) or decremented (i
nc = -1). Then, in step S80, the start point of the vector is set as the first display point of the pixel. Next, in step S81, it is determined whether or not e> 0. If not e> 0, e = e + cons2 is set in step S83. Then, in step S84, a pixel (vicel) is displayed at the display point. If> 0, Y is incremented (decremented) by one in step S82 and e = e + cons1, and then in step S84, a pixel is displayed at the display point where Y is incremented (decremented). Then, in step S85, X is incremented by one (decrement).
Then, the process returns from step S86 to step S81, and the same processing is performed up to the end point of the vector.
以上の処理により、第3図に示すベクトルCから第4
図に示すアウトラインが作成される。By the above processing, the vector C shown in FIG.
The outline shown in the figure is created.
ところが、このアウトラインに基づいて、第2図に示
す奇遇法により描画をおこなっても○で示す画素のとこ
ろでスキャニングが停止して、アウトラインの内部の塗
りつぶしができない。そこで、従来は、3×3のメッシ
ュのフィルタをその中央部が第4図に示す各画素の上に
くるようにX軸の+方向にスキャンさせていき、そのマ
トリクスのパターンが第5図に示すパターンのいずれか
のパターンと同じになったときに、その中央の画素を描
画し、第5図に示すパターンと異なるパターンになった
時にはその中央の画素を描画しないようにして、上記不
要な画素を取り除くようにしている。例えば、第4図の
一番左端の画素に上記フィルタをあてると、そのパター
ンは第5図の下段左端のパターンと等しくなるので、そ
の画素を描画する。そして、その右の画素については第
5図に示すパターンにならないため、その画素は描画し
ない。このようにして、○に×印を付した画素を描画
し、○印の画素を描画しないようにしている。第5図の
パターンはベクトルCのようにYが減少する方向に向か
うベクトルに用いられ、第6図のパターンはYが増加す
る方向に向かうベクトルに用いられる。なお、Y軸がメ
ジャー軸の場合は第4図に示すようなアウトラインには
ならないため、上記フィルタを使う必要はない。However, even if drawing is performed based on this outline by the odd method shown in FIG. 2, scanning stops at the pixel indicated by ○, and the inside of the outline cannot be painted. Therefore, conventionally, a 3 × 3 mesh filter is scanned in the + direction of the X axis so that the center of the filter is located above each pixel shown in FIG. 4, and the pattern of the matrix is shown in FIG. When the pattern becomes the same as any of the patterns shown, the center pixel is drawn, and when the pattern becomes different from the pattern shown in FIG. Pixels are removed. For example, if the above filter is applied to the leftmost pixel in FIG. 4, the pattern is equal to the lower left pattern in FIG. 5, so that pixel is drawn. Since the pattern on the right pixel does not have the pattern shown in FIG. 5, the pixel is not drawn. In this way, pixels marked with a cross in the circle are drawn and pixels in the circle are not drawn. The pattern in FIG. 5 is used for a vector in the direction in which Y decreases like the vector C, and the pattern in FIG. 6 is used for a vector in the direction in which Y increases. When the Y-axis is the major axis, the outline does not become as shown in FIG. 4, so that it is not necessary to use the filter.
<発明が解決しようとする課題> このように、上記従来の画像処理方法では、X軸がメ
ジャー軸の場合はブレーゼンハムのアルゴリズムによる
処理を行ったのちに上記3×3のメッシュのフィルタを
使った処理を行わなければならず、処理に時間がかかる
という問題があった。<Problem to be Solved by the Invention> As described above, in the above-described conventional image processing method, when the X axis is the major axis, the processing by the Bresenham algorithm is performed, and then the 3 × 3 mesh filter is used. There is a problem that the processing has to be performed and the processing takes time.
そこで、この発明の目的は、上記従来のようなフィル
タ処理を行わずに、第4図に示すような不要な画素を含
まないアウトラインを描画するようにして、処理の高速
化を図った画像処理方法を提供することにある。Accordingly, it is an object of the present invention to provide an image processing device which draws an outline which does not include unnecessary pixels as shown in FIG. It is to provide a method.
<課題を解決するための手段> 上記目的を達成するため、この発明は、図形の輪郭を
アウトラインベクトルで表し、該アウトラインベクトル
からアウトラインを作成する画像処理方法において、上
記アウトラインベクトルからブレーゼンハムのアルゴリ
ズムに基づいて画素候補点を求め、上記アウトラインベ
クトルがX軸方向に増加しかつY軸方向に増加するベク
トルであるか、あるいは、X軸方向に減少しかつY軸方
向に減少するベクトルであり、かつ、X軸方向の変化量
の絶対値がY軸方向の変化量の絶対値よりも大きいベク
トルである場合には、上記画素候補点がその一つ前の画
素候補点に対してY座標が変化した場合はその一つ前の
画素候補点を描画する一方、上記画素候補点がその一つ
前の画素候補点に対してY座標が変化しなかった場合は
その一つ前の画素候補点を描画せず、上記アウトライン
ベクトルがX軸方向に増加しかつY軸方向に減少するベ
クトルであるか、あるいは、X軸方向に減少しかつY軸
方向に増加するベクトルであり、かつ、X軸方向の変化
量の絶対値がY軸方向の変化量の絶対値よりも大きいベ
クトルである場合には、上記画素候補点がその一つ前の
画素候補点に対してY座標が変化した場合はその画素候
補点を描画する一方、上記画素候補点がその一つ前の画
素候補点に対してY座標が変化しなかった場合はその画
素候補点を描画せず、上記アウトラインベクトルが、X
軸方向の変化量の絶対値がY軸方向の変化量の絶対値よ
りも大きくないベクトルである場合には、上記求めた画
素候補点を全て描画するようにして、逐次画素候補点の
描画、非描画を識別してアウトラインを作成するように
したことを特徴としている。<Means for Solving the Problems> In order to achieve the above object, the present invention relates to an image processing method for representing an outline of a figure by an outline vector and creating an outline from the outline vector. A pixel candidate point is determined based on the vector, and the outline vector is a vector that increases in the X-axis direction and increases in the Y-axis direction, or is a vector that decreases in the X-axis direction and decreases in the Y-axis direction, and If the absolute value of the change amount in the X-axis direction is a vector larger than the absolute value of the change amount in the Y-axis direction, the pixel candidate point changes its Y coordinate with respect to the immediately preceding pixel candidate point. In this case, the previous pixel candidate point is drawn while the pixel candidate point does not change its Y coordinate with respect to the immediately preceding pixel candidate point. In this case, the previous pixel candidate point is not drawn, and the outline vector is a vector that increases in the X-axis direction and decreases in the Y-axis direction, or decreases in the X-axis direction and If the pixel candidate point is a vector that increases in the direction and the absolute value of the amount of change in the X-axis direction is larger than the absolute value of the amount of change in the Y-axis direction, If the Y coordinate changes with respect to the candidate point, the pixel candidate point is drawn. If the Y coordinate does not change with respect to the immediately preceding pixel candidate point, the pixel candidate point is drawn. Is not drawn, and the outline vector is X
If the absolute value of the amount of change in the axial direction is a vector that is not greater than the absolute value of the amount of change in the Y-axis direction, all the pixel candidate points obtained above are drawn, and successive pixel candidate points are drawn. An outline is created by identifying a non-drawing.
<作用> 図形の輪郭をアウトラインベクトルで表されたものに
おいて、そのアウトラインベクトルからアウトラインを
作成するために、まず各アウトラインベクトルについて
X軸方向の変化量の絶対値がY軸方向の変化量の絶対値
よりも大きいか否かを判定する。そして、X軸方向の変
化量の絶対値がY軸方向の変化量の絶対値よりも大きく
ない場合にはY軸をメジャー軸としてブレーゼンハムの
アルゴリズムに基づいてアウトラインを作成する。一
方、X軸方向の変化量の絶対値がY軸方向の変化量の絶
対値よりも大きい場合にはX軸をメジャー軸として以下
の処理を行う。すなわち、上記アウトラインベクトルが
X軸方向に増加しかつY軸方向に増加するベクトルであ
るか、あるいは、X軸方向に減少しかつY軸方向に減少
するベクトルである場合には、ブレーゼンハムのアルゴ
リズムに基づいて画素候補点を求め、新しく求めた画素
候補点がその一つ前の画素候補点に対してY座標が変化
した場合はその一つ前の画素候補点を描画する一方、新
しく求めた画素候補点がその一つ前の画素候補点に対し
てY座標が変化しなかった場合はその一つ前の画素候補
点を描画しない。一方、上記アウトラインベクトルがX
軸方向に増加しかつY軸方向に減少するベクトルである
か、あるいは、X軸方向に減少しかつY軸方向に増加す
るベクトルである場合には、ブレーゼンハムのアルゴリ
ズムに基づいて画素候補点を求め、新しく求めた画素候
補点がその一つ前の画素候補点に対してY座標が変化し
た場合はその画素候補点を描画する一方、新しく求めた
画素候補点がその一つ前の画素候補点に対してY座標が
変化しなかった場合はその画素候補点を描画しない。こ
のようにして、逐次画素候補点の描画、非描画を識別し
てアウトラインが順次作成されていく。<Operation> In the case where the outline of a figure is represented by an outline vector, in order to create an outline from the outline vector, first, for each outline vector, the absolute value of the amount of change in the X-axis direction is the absolute value of the amount of change in the Y-axis direction. It is determined whether it is larger than the value. If the absolute value of the change amount in the X-axis direction is not greater than the absolute value of the change amount in the Y-axis direction, an outline is created based on the Bresenham algorithm using the Y axis as the major axis. On the other hand, when the absolute value of the change amount in the X-axis direction is larger than the absolute value of the change amount in the Y-axis direction, the following processing is performed using the X axis as the major axis. That is, if the outline vector is a vector that increases in the X-axis direction and increases in the Y-axis direction, or is a vector that decreases in the X-axis direction and decreases in the Y-axis direction, the Bresenham algorithm is used. A pixel candidate point is calculated based on the newly calculated pixel candidate point, and if the Y coordinate changes with respect to the immediately preceding pixel candidate point, the immediately preceding pixel candidate point is drawn. If the Y coordinate of the candidate point has not changed with respect to the immediately preceding pixel candidate point, the immediately preceding pixel candidate point is not drawn. On the other hand, if the outline vector is X
If the vector is a vector increasing in the axial direction and decreasing in the Y-axis direction, or a vector decreasing in the X-axis direction and increasing in the Y-axis direction, a pixel candidate point is calculated based on the Bresenham algorithm. If the Y coordinate of the newly obtained pixel candidate point has changed with respect to the immediately preceding pixel candidate point, the pixel candidate point is drawn, while the newly obtained pixel candidate point is changed to the immediately preceding pixel candidate point. If the Y coordinate does not change, the pixel candidate point is not drawn. In this manner, outlines are sequentially created by sequentially identifying drawing and non-drawing of pixel candidate points.
このように、従来例におけるようなフィルタ処理を行
わずにアウトラインを作成することができるので、処理
時間が短くなる。As described above, since the outline can be created without performing the filter processing as in the conventional example, the processing time is shortened.
<実施例> 以下、この発明を図示の実施例により詳細に説明す
る。<Example> Hereinafter, the present invention will be described in detail with reference to an illustrated example.
第1図はマイクロコンピュータを使用した本実施例の
処理内容を示すフローチャートである。FIG. 1 is a flowchart showing the processing contents of this embodiment using a microcomputer.
第1図において、ステップS1からステップS10までの
処理内容は第7図のステップS71からステップS80までの
処理内容と同一であるため説明を省略する。なお、Y軸
をメジャー軸とした場合は通常のブレーゼンハムのアル
ゴリズムに基づいてアウトラインを作成する。In FIG. 1, the processing contents from step S1 to step S10 are the same as the processing contents from step S71 to step S80 in FIG. When the Y axis is the major axis, an outline is created based on the usual Bresenham algorithm.
上記ステップS1からステップS10までの処理が終了す
ると、ステップS11に進む。ステップS11では、inc=1
であり、かつincx=1の場合、すなわち、ベクトルがX
軸方向に増加し、かつ、Y軸方向に増加する場合(右上
がりの場合)、あるいは、inc=1であり、かつincx=
−1の場合、すなわち、ベクトルがX軸方向に減少し、
かつ、Y軸方向に減少する場合(左下がりの場合)に
は、ステップS12に進み、そうでない場合にはステップS
19に進む。When the processes from step S1 to step S10 are completed, the process proceeds to step S11. In step S11, inc = 1
And incx = 1, that is, the vector is X
When increasing in the axial direction and increasing in the Y-axis direction (in the case of rising to the right), or when inc = 1 and incx =
-1, ie, the vector decreases in the X-axis direction,
If it decreases in the Y-axis direction (downward to the left), the process proceeds to step S12; otherwise, the process proceeds to step S12.
Go to 19.
ステップS12では、e>0かどうかの判断を行う。そ
して、e>0、すなわち、画素の表示点のX座標におけ
るベクトルのY座標が、その表示点のY座標よりも、Y
をひとつインクリメント(またはデクリメント)した表
示点のY座標に近い場合には、ステップS13に進みX座
標が一つ前の表示点に画素を描画する。そして、ステッ
プS14に進み、Yを一つインクリメント(デクリメン
ト)すると共にe=e+cons1としたのち、ステップS16
に進み、Xを一つインクリメント(デクリメント)す
る。一方、ステップS12で、e>0でなければ、その表
示点に画素を描画せず、ステップS15でe=e+cons2と
したのち、ステップS16でXを一つインクリメント(デ
クリメント)する。そして、ステップS17からステップS
12に戻り、以下同様の処理をベクトルの終点まで行う。
ベクトルの終点はこのままでは画素が描画されないた
め、ステップS18で必ず描画するようにしている。In step S12, it is determined whether or not e> 0. Then, e> 0, that is, the Y coordinate of the vector at the X coordinate of the display point of the pixel is larger than the Y coordinate of the display point by Y.
If it is close to the Y coordinate of the display point that has been incremented (or decremented) by one, the process proceeds to step S13, and the pixel is drawn at the display point whose X coordinate is immediately before. Then, the process proceeds to step S14, where Y is incremented (decremented) by one and e = e + cons1.
And X is incremented (decremented) by one. On the other hand, if e> 0 is not satisfied in step S12, no pixel is drawn at that display point, e = e + cons2 is set in step S15, and then X is incremented (decremented) by one in step S16. Then, from step S17 to step S
Returning to 12, the same processing is performed up to the end point of the vector.
Since the pixel is not drawn at the end point of the vector as it is, drawing is always performed in step S18.
一方、ステップS19では、最初の画素を描画したの
ち、ステップS20に進み、e>0かどうかの判断を行
う。そして、e>0の場合には、ステップS21に進み、
Yを一つインクリメント(デクリメント)すると共にe
=e+cons1としたのち、Yを一つインクリメント(デ
クリメント)した表示点に画素を描画する。そして、ス
テップS24に進み、Xを一つインクリメント(デクリメ
ント)する。一方、ステップS20で、e>0でなけれ
ば、その表示点に画素を描画せず、ステップS23でe=
e+cons2としたのち、ステップS24でXを一つインクリ
メント(デクリメント)する。そして、ステップS25か
らステップS20に戻り、以下同様の処理をベクトルの終
点まで行う。On the other hand, in step S19, after drawing the first pixel, the process proceeds to step S20 to determine whether e> 0. When e> 0, the process proceeds to step S21,
Increment Y by one (decrement) and e
= E + cons1, and then the pixel is drawn at the display point where Y is incremented (decremented) by one. Then, the process proceeds to step S24, where X is incremented (decremented) by one. On the other hand, if e> 0 is not satisfied in step S20, no pixel is drawn at that display point, and in step S23, e =
After e + cons2, X is incremented (decremented) by one in step S24. Then, the process returns from step S25 to step S20, and the same processing is performed until the end point of the vector.
このように、上記処理を行うことにより、従来例にお
ける3×3のメッシュのフィルタを用いた場合と同様の
アウトラインを作成することができる。従って、上記の
ようなフィルタを用いた場合におけるような処理時間を
必要とせず、処理の高速化が図れる。As described above, by performing the above-described processing, it is possible to create an outline similar to the case of using a 3 × 3 mesh filter in the conventional example. Therefore, processing time is not required as in the case where the above-described filter is used, and the processing can be speeded up.
<発明の効果> 以上より明らかなように、この発明の画像処理方法に
よれば、従来例におけるようなフィルタ処理を行わずに
アウトラインを作成することができるので、処理時間が
短くなり、処理の高速化が図れる。<Effects of the Invention> As is clear from the above, according to the image processing method of the present invention, an outline can be created without performing the filter processing as in the conventional example, so that the processing time is shortened and the processing time is reduced. Higher speed can be achieved.
【図面の簡単な説明】 第1図はこの発明の一実施例におけるベクトルからアウ
トラインを作成する場合の処理内容を示すフローチャー
ト、第2図はスイッチング描画法(奇遇法)を説明する
図、第3図は図形の輪郭をベクトルで表示した場合の一
例を示す図、第4図は第3図のベクトルCについて従来
のブレーゼンハムのアルゴリズムに基づいて作成したア
ウトラインを示す図、第5図および第6図は従来例にお
けるフィルタ処理に用いられるマトリクスのパターンを
示す図、第7図は従来例におけるベクトルからアウトラ
インを作成する場合の処理内容を示すフローチャートで
ある。BRIEF DESCRIPTION OF THE DRAWINGS FIG. 1 is a flowchart showing the processing contents when an outline is created from a vector in one embodiment of the present invention; FIG. 2 is a diagram for explaining a switching drawing method (odd occurrence method); FIG. 4 is a diagram showing an example in which the outline of a figure is displayed by a vector, FIG. 4 is a diagram showing an outline created based on the conventional Bresenham algorithm for the vector C in FIG. 3, FIG. 5 and FIG. FIG. 7 is a diagram showing a matrix pattern used for filter processing in the conventional example, and FIG. 7 is a flowchart showing the processing contents when an outline is created from a vector in the conventional example.
Claims (1)
し、該アウトラインベクトルからアウトライを作成する
画像処理方法において、 上記アウトラインベクトルからブレーゼンハムのアルゴ
リズムに基づいて画素候補点を求め、 上記アウトラインベクトルがX軸方向に増加しかつY軸
方向に増加するベクトルであるか、あるいは、X軸方向
に減少しかつY軸方向に減少するベクトルであり、か
つ、X軸方向の変化量の絶対値がY軸方向の変化量の絶
対値よりも大きいベルトルである場合には、上記画素候
補点がその一つ前の画素候補点に対してY座標が変化し
た場合はその一つ前の画素候補点を描画する一方、上記
画素候補点がその一つ前の画素候補点に対してY座標が
変化しなかった場合はその一つ前の画素候補点を描画せ
ず、 上記アウトラインベクトルがX軸方向に増加しかつY軸
方向に減少するベクトルであるか、あるいは、X軸方向
に減少しかつY軸方向に増加するベクトルであり、か
つ、X軸方向の変化量の絶対値がY軸方向の変化量の絶
対値よりも大きいベクトルである場合には、上記画素候
補点がその一つ前の画素候補点に対してY座標が変化し
た場合はその画素候補点を描画する一方、上記画素候補
点がその一つ前の画素候補点に対してY座標が変化しな
かった場合はその画素候補点を描画せず、 上記アウトラインベクトルが、X軸方向の変化量の絶対
値がY軸方向の変化量の絶対値よりも大きくないベクト
ルである場合には、上記求めた画素候補点を全て描画す
るようにして、逐次画素候補点の描画、非描画を識別し
てアウトラインを作成するようにしたことを特徴とす画
像処理方法。1. An image processing method for expressing a contour of a figure by an outline vector and generating an outline from the outline vector, wherein pixel candidate points are obtained from the outline vector based on Bresenham's algorithm. Or a vector that increases in the Y-axis direction, or a vector that decreases in the X-axis direction and decreases in the Y-axis direction, and the absolute value of the amount of change in the X-axis direction is In a case where the pixel candidate point is larger than the absolute value of the amount of change, the pixel candidate point draws the immediately preceding pixel candidate point when the Y coordinate changes with respect to the immediately preceding pixel candidate point. If the pixel candidate point does not change its Y coordinate with respect to the immediately preceding pixel candidate point, the preceding pixel candidate point is not drawn, The line vector is a vector that increases in the X-axis direction and decreases in the Y-axis direction, or a vector that decreases in the X-axis direction and increases in the Y-axis direction, and the absolute amount of change in the X-axis direction is If the value is a vector larger than the absolute value of the amount of change in the Y-axis direction, the pixel candidate point is drawn if the Y coordinate changes with respect to the immediately preceding pixel candidate point. On the other hand, if the pixel candidate point does not change its Y coordinate with respect to the immediately preceding pixel candidate point, the pixel candidate point is not drawn, and the outline vector indicates the absolute amount of change in the X-axis direction. If the value is a vector that is not larger than the absolute value of the change amount in the Y-axis direction, all the pixel candidate points determined above are drawn, and the drawing and non-drawing of the pixel candidate points are sequentially identified and the outline is drawn. To create It features and to an image processing method.
Priority Applications (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP1134369A JP2774573B2 (en) | 1989-05-26 | 1989-05-26 | Image processing method |
| US07/524,428 US5073960A (en) | 1989-05-18 | 1990-05-17 | Image processing method using improved Bresenham algorithm in creating an outline of a figure to be painted and apparatus adopting the method |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP1134369A JP2774573B2 (en) | 1989-05-26 | 1989-05-26 | Image processing method |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPH02311969A JPH02311969A (en) | 1990-12-27 |
| JP2774573B2 true JP2774573B2 (en) | 1998-07-09 |
Family
ID=15126770
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP1134369A Expired - Fee Related JP2774573B2 (en) | 1989-05-18 | 1989-05-26 | Image processing method |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP2774573B2 (en) |
Families Citing this family (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP3068442B2 (en) * | 1995-06-27 | 2000-07-24 | 日本電気マイコンテクノロジー株式会社 | Filling method for winding rule |
-
1989
- 1989-05-26 JP JP1134369A patent/JP2774573B2/en not_active Expired - Fee Related
Also Published As
| Publication number | Publication date |
|---|---|
| JPH02311969A (en) | 1990-12-27 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JP3223617B2 (en) | Drawing apparatus and drawing method | |
| JP2774573B2 (en) | Image processing method | |
| JP2634851B2 (en) | Image processing device | |
| JPH0322186A (en) | Image output method | |
| US20060119897A1 (en) | Output apparatus and program thereof | |
| JP3452049B2 (en) | Drawing apparatus and drawing method | |
| JPH0520467A (en) | Image processing method and apparatus thereof | |
| JP3139805B2 (en) | Image processing method and apparatus | |
| JP3338484B2 (en) | Outline font transformation device | |
| JP3485055B2 (en) | Trapezoidal drawing method and trapezoidal drawing device | |
| JPH0668271A (en) | Image processor | |
| JP3089906B2 (en) | Drawing equipment | |
| JPH0760464B2 (en) | Image processing method | |
| JP3085396B2 (en) | Vector font development method and device | |
| JP2634906B2 (en) | Image processing method | |
| JP3055327B2 (en) | Data converter | |
| JPS59195759A (en) | Enlarging and contracting method of picture | |
| JP2613653B2 (en) | Image processing device | |
| JPH10254417A (en) | Liquid crystal display display system | |
| JP2881863B2 (en) | Data converter | |
| JPH087794B2 (en) | Image processing method | |
| JPH0560598B2 (en) | ||
| JPS6117189A (en) | Graphic processor | |
| JPH0627929A (en) | Outline font coordinate transforming method | |
| JPH0877372A (en) | Outline painting-out device |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20080424 Year of fee payment: 10 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20090424 Year of fee payment: 11 |
|
| LAPS | Cancellation because of no payment of annual fees |