JPH04139589A - Graphic processor - Google Patents

Graphic processor

Info

Publication number
JPH04139589A
JPH04139589A JP2263408A JP26340890A JPH04139589A JP H04139589 A JPH04139589 A JP H04139589A JP 2263408 A JP2263408 A JP 2263408A JP 26340890 A JP26340890 A JP 26340890A JP H04139589 A JPH04139589 A JP H04139589A
Authority
JP
Japan
Prior art keywords
line width
line
straight line
dot
processing
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
JP2263408A
Other languages
Japanese (ja)
Inventor
Hitomi Kumazaki
熊崎 ひとみ
Hiroshi Tomita
寛 冨田
Yoshiaki Haniyu
羽生 嘉昭
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.)
Ricoh Co Ltd
Original Assignee
Ricoh 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 Ricoh Co Ltd filed Critical Ricoh Co Ltd
Priority to JP2263408A priority Critical patent/JPH04139589A/en
Publication of JPH04139589A publication Critical patent/JPH04139589A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To recognize, smoothly and easily, a straight line which is not wider than 1 dot by deciding as well as storing the width of the line formed by vector data and changing the gradation value found by area rate calculation under anti-aliasing processing on the basis of the stored information of the line width. CONSTITUTION:If the targeted vector data from a straight line or not is decided and in case they do, if the line is not wider than one dot is decided. For a scanned line paint-out processing, one picture element is divided into 4*4 subpixel in the paint-out processing and the area to be painted out of every subpixel is calculated. Then in a density deciding processing, the picture elements of the scanned line is filtrated from the first element in order in the prescribed anti-aliasing method and the area rate of each picture element is counted to calculate the gradation value. Thus, a straight line which is not wider than 1 dot is expressed to be recognized smoothly and easily.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は出力画像のエツジ部のギザギザを除去するアン
チエイリアシング処理を実行する図形処理装置に関し、
より詳細には、1ドツト以下の細い直線を認識し易く出
力できるようにした図形処理装置に関する。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a graphic processing device that performs anti-aliasing processing to remove jagged edges of an output image.
More specifically, the present invention relates to a graphic processing device capable of outputting thin straight lines of one dot or less in an easily recognizable manner.

〔従来の技術〕[Conventional technology]

コンピュータ・グラフィクスの分野では、その出力媒体
であるCRTに画像を表示する際、その表示画像をより
美しくするためにアンチエイリアシング処理という手法
が用いられている。この処理は、第7図(a)に示すよ
うな階段上のギザギザ部分(エイリアスと呼ばれる)に
輝度変調をかけ、視覚的に表示画像を第7図(5)に示
すように滑ら;にするものである。
In the field of computer graphics, when displaying an image on a CRT, which is an output medium, a technique called anti-aliasing processing is used to make the displayed image more beautiful. This process applies brightness modulation to the jagged parts (called aliases) on the stairs as shown in Figure 7(a), visually making the displayed image smooth as shown in Figure 7(5). It is something.

従来の図形処理装置では、■均一平均化法、(重み付は
平均化法、■畳み込み積分法等がアン・エイリアシング
処理の方法として一般的に適用2れている。
In conventional graphic processing devices, (1) uniform averaging method, (2) averaging method for weighting, (2) convolution integral method, etc. are generally applied2 as methods for unaliasing processing.

■均一平均化法は、各ビクセル(iii!素)をNmM
(N、Mは自然数)のサブビクセルに分解し、高解像度
でラスク計夏を行った後、各ビクセル0輝度をN*Mサ
ブピクセルの平均をとって求め2ものであるや第8図(
a)、 (b)を参照して、均−平文化法によるアンチ
エイリアシング処理を具体的に説明する。あるビクセル
に画像の端がかかってしる場合(ここでは斜めの線の右
下に画像がっな力っているものとする)、アンチエイリ
アシング文理を行わないときは、同図(a)に示すよう
に、こCピクセルの輝度kidには表示できる階調の最
高胸度(例えば、256階調ではkid・255)が割
り当てられる。このピクセルにN=M=7の均一平均化
法によるアンチエイリアシング処理を実施する場合、同
図ら)に示すように、ビクセルを7*7のサブピクセル
に分解し、画像に覆われているサブピクセル数をカウン
トする。そのカウント数(28)を1ピクセル中の全サ
ブピクセル数(この場合、49)で割って規格化(平均
化)したものを最高輝度(255)に掛け、そのビクセ
ルの輝度を算出する。このように均一平均化法では、各
ビクセルに画像がどのようにかかっているかを考慮にい
れてそのピクセルの輝度を決める。
■In the uniform averaging method, each pixel (iii! element) is NmM
After decomposing it into sub-pixels (N and M are natural numbers) and performing Rask calculation at high resolution, the 0 luminance of each pixel is calculated by taking the average of N*M sub-pixels and is 2.
Referring to a) and (b), anti-aliasing processing using the average cultural method will be specifically explained. If the edge of the image overlaps a certain pixel (here, it is assumed that the image is strongly located at the bottom right of the diagonal line), if anti-aliasing is not performed, As shown, the brightness kid of this C pixel is assigned the maximum brightness of the displayable gradations (for example, kid·255 for 256 gradations). When performing antialiasing processing on this pixel using the uniform averaging method with N=M=7, the pixel is decomposed into 7*7 subpixels, and the subpixels covered by the image are Count the numbers. The count number (28) is divided by the total number of sub-pixels in one pixel (49 in this case), normalized (averaged), and multiplied by the maximum brightness (255) to calculate the brightness of that pixel. In this way, in the uniform averaging method, the brightness of each pixel is determined by taking into consideration how the image covers each pixel.

■重み付は平均化法 重み付は平均化法は、均一平均化法を一部変更したもの
であり、均一平均化法が1ビクセル中のサブピクセルを
全て同じ重み(即ち、画像のかかっているサブピクセル
を単純にカウントする)で取り扱ったのに対して、重み
付は平均化法は各サブピクセルに重みをもたせ、画像が
どのサブピクセルにかかっているかでそのサブピクセル
の輝度kidへの影響が異なるようにしている。尚、こ
の際の重みはフィルターを用いて付与する。
■Weighting is an averaging method The weighting and averaging method is a partial modification of the uniform averaging method. In contrast, the weighted averaging method assigns a weight to each subpixel, and the brightness of that subpixel (kid) is determined depending on which subpixel the image covers. The effects are different. Note that the weight at this time is given using a filter.

第9図(a)、 (b)”を参照して、第8図(a)と
同じ画像データに、同じ分割法(N=M=7)で重み付
は平均化法を実施した例を示す。
Referring to Figures 9(a) and 9(b), an example is shown in which the same image data as in Figure 8(a) is weighted using the same dividing method (N=M=7) and the averaging method. show.

第9図(a)は、フィルター(ここでは、conef 
i ] ter )の特性を示し、対応するサブピクセ
ルにこの特性と同じ重みが与えられる。例えば、右上角
のサブピクセルの重みは2である。各サブピクセルに画
像がかかっていた場合、フィルター特性より与えられた
重みの値がそのサブピクセルのカウント値となる。同図
ら)には、サブピクセルの重みの違いによってかかった
画像の表示パターンを変えて示しである。この場合、重
みを付けて画像のかかったサブピクセルをカウントする
と、199となる。この値を、均一平均化のときに対応
してフィルターの値の合計(この場合、336]で割っ
て平均化し、最高輝度に掛けて、このピクセルの輝度を
算出する。尚、フィルターとしては、第10図(a)、
■)、 (C)、 (Φに示すフィルターが知られてい
る。
FIG. 9(a) shows a filter (here, conef
i ] ter ), and the corresponding sub-pixel is given the same weight as this property. For example, the weight of the upper right corner subpixel is 2. When an image is applied to each subpixel, the weight value given by the filter characteristics becomes the count value of that subpixel. Figures 1 and 2) show different display patterns of images depending on the weights of sub-pixels. In this case, the number of weighted subpixels in the image is 199. This value is divided by the sum of the filter values (in this case, 336) corresponding to uniform averaging, averaged, and multiplied by the maximum brightness to calculate the brightness of this pixel.As a filter, Figure 10(a),
The filters shown in ■), (C), and (Φ) are known.

■畳み込み積分法 畳み込み積分法は、1つのピクセルの輝度を決定するに
あたり、その周りのピクセルの様子も参照する方法であ
る。即ち、輝度を決定しようとする1ビクセルの周りN
’ XN’ ピクセルを、均−平均化法或いは重み付は
平均化法のピクセルに対応させたものと考える。第11
図は3×3ピクセル参照の畳み込み積分法を示す。この
図で、輝度を決定しようとしているビクセルを1101
で示す。画像は斜めの線の右下に続いており、黒く塗っ
たサブピクセルがカウントされるサブピクセルである。
■Convolution integral method The convolution integral method is a method that refers to the appearance of surrounding pixels when determining the brightness of one pixel. That is, the area around one pixel whose brightness is to be determined is N
It is assumed that the 'XN' pixels correspond to pixels of the equal-averaging method or the weighted averaging method. 11th
The figure shows a convolution method with 3x3 pixel references. In this figure, the pixel whose brightness is to be determined is 1101
Indicated by The image continues below and to the right of the diagonal line, and the subpixels painted black are the subpixels that are counted.

各ビクセルは、4*4に分割されている。従って、この
場合はフィルターとして12*工2のものを用いること
になる。この方法はベクトル画像に含まれる高周波成分
を除去する効果がある。
Each pixel is divided into 4*4. Therefore, in this case, a filter of 12 * engineering 2 will be used. This method has the effect of removing high frequency components contained in a vector image.

一方、パーソナルコンピュータを用いた出版システム、
所謂、DTP (デスク・トップ・パブリッシング)の
普及に伴い、コンピュータ・グラフィクスで扱うような
ベクトル画像を印字するシステムが広く使われるように
なっている。その代表的なものとして、例えば、アドビ
社のポスト・スクリプトを用いたシステムがある。ポス
ト・スクリプトは、ページ記述言語(Page Des
criptionLanguage  :以下、PDL
と記述する)と呼ばれる言語ジャンルに属し、1枚のド
キュメントを構成する内容について、その中に入るテキ
スト(文字部分)や、グラフィックス、或いは、それら
の配置や体裁までを含めたフオームを記述するためのプ
ログラミング言語であり、このようなシステムでは、文
字フォントとしてベクトルフォントを採用している。従
って、文字の変倍を行っても、ビットマツプフォントを
使用したシステム(例えば、従来のワードプロセッサ等
)と比べて、格段に印字品質を向上させることができ、
また、文字フォントとグラフィックとイメージを混在さ
せて印字することができるという利点がある。
On the other hand, a publishing system using a personal computer,
With the spread of so-called DTP (desk top publishing), systems for printing vector images, such as those used in computer graphics, have become widely used. A typical example is a system using Adobe's Post Script. PostScript is a page description language (Page Des
criptionLanguage: Hereafter, PDL
It belongs to a language genre called ``Japanese language'', and describes the form of the contents of a single document, including the text (letter part), graphics, and their arrangement and appearance. It is a programming language for systems such as this, and vector fonts are used as character fonts in such systems. Therefore, even if the characters are scaled, the print quality can be significantly improved compared to systems using bitmap fonts (for example, conventional word processors).
Another advantage is that character fonts, graphics, and images can be mixed and printed.

ところが、これらのシステムで使用されるレーザープリ
ンタの解像度は、せいぜい240dp i〜400dp
 iのものが多く、コンピュータ・グラフィックスのC
RT表示と同様に、解像度が低いためにエイリアスが発
生するという問題点かある。このため、レーザープリン
タを用いた印字においても、アンチエイリアシング処理
を行い、印字画像の品質を向上させることができるよう
に、ベクトル画像にアンチエイリアシング処理を施して
面積率から各画素の階調値(CRTの場合は輝度値、レ
ーザープリンタでは濃度値を示す)を求め、該階調値を
レーザープリンタのビームレベル値(換言すれば、レー
ザープリンタの描画するドツトの大きさを指定する値)
に変換して、レーザープリンタに出力する図形処理装置
等が使用されるようになっている。
However, the resolution of the laser printers used in these systems is at most 240dpi to 400dp.
There are many i, computer graphics C
Similar to RT display, there is a problem in that aliasing occurs due to the low resolution. Therefore, even when printing using a laser printer, anti-aliasing processing is performed to improve the quality of the printed image. Anti-aliasing processing is applied to the vector image and the gradation value of each pixel ( In the case of a CRT, it indicates the brightness value, and in the case of a laser printer, it indicates the density value), and then calculates the gradation value as the beam level value of the laser printer (in other words, the value that specifies the size of the dot drawn by the laser printer).
Nowadays, graphic processing devices and the like are used that convert the data into images and output them to laser printers.

〔発明が解決しようとする課題〕[Problem to be solved by the invention]

しかしながら、従来のアンチエイリアシング処理を適用
した図形処理装置によれば、アンチエイリアシング処理
によって出力画像のエツジ部のギザギザを一様に除去す
るため、1ド・ント以下の細い線幅の直線が低濃度とな
り、認志しにくくなるという問題点があった。
However, according to a graphic processing device that applies conventional anti-aliasing processing, since the anti-aliasing processing uniformly removes the jagged edges of the output image, straight lines with a thin line width of 1 dot or less have a low density. Therefore, there was a problem that it became difficult to obtain certification.

具体的には、例えば、第12図(a)に示すような1ド
ツト以下の線幅の直線の場合、アンチエイリアシング処
理を行わないときには、第12図(b)に示すように、
直線が画素に一部でもかかつていれば、その画素が最高
の階調値(全濃度)で出力されるため、エイリアスが生
じる一方で線幅が太くなり、容易に認識が可能であった
Specifically, for example, in the case of a straight line with a line width of one dot or less as shown in FIG. 12(a), when anti-aliasing processing is not performed, as shown in FIG. 12(b),
If a straight line even partially overlaps a pixel, that pixel is output at the highest gradation value (total density), which causes aliasing and thicker line width, making it easier to recognize.

ところが、従来の図形処理装置では、1ドツト以下の細
線も同様にアンチエイリアシング処理によって、視覚的
に滑らかになるように処理しているため、第12図(C
)に示すように、エイリアスはなくなるものの、階調値
が小さくなり、量けて認識が困難となる(換言すれば、
薄く濃度変調されるので量けて認識が困難となる)とい
う問題点があった。
However, in conventional graphic processing devices, thin lines of one dot or less are similarly processed using anti-aliasing processing to make them visually smooth.
), although the alias is eliminated, the gradation value becomes smaller and becomes difficult to recognize (in other words,
There was a problem that it was difficult to measure and recognize because the density was modulated thinly.

本発明は上記に鑑みてなされたものであって、1ドツト
以下の線幅の直線を、滑らかに、且つ、容易に認識でき
るように表現できることを目的とする。
The present invention has been made in view of the above, and it is an object of the present invention to be able to express straight lines with a line width of one dot or less in a smooth and easily recognizable manner.

〔課題を解決するための手段〕[Means to solve the problem]

本発明は上記の目的を達成するため、塗りつぶすべき面
積率に基づいて、ベクトルデータのエツジ部の画素の出
力を調整し、出力画像のエツジ部のギザギザ(エイリア
ス)を滑らかに表現するアンチエイリアシング処理を実
行する図形処理装置において、ベクトルデータによって
形成される直線の線幅が1ドツト以下であるかどうか判
定する線幅判定手段と、直線の線幅を線幅情報として記
憶する線幅情報記憶手段と、線幅情報記憶手段に記憶さ
れている線幅情報に基づいて、アンチエイリアシング処
理の面積率計算によって求めた階調値を変更する階調値
補正手段とを備えた図形処理装置を提供するものである
In order to achieve the above object, the present invention adjusts the output of pixels at the edges of vector data based on the area ratio to be filled, and performs anti-aliasing processing to smoothly express jaggedness (alias) at the edges of the output image. In a graphic processing device that executes the above, the line width determining means determines whether the line width of a straight line formed by vector data is one dot or less, and the line width information storage means stores the line width of the straight line as line width information. and a gradation value correction means for changing the gradation value obtained by calculating the area ratio of anti-aliasing processing based on the line width information stored in the line width information storage means. It is something.

また、線幅情報記憶手段は、直線の線幅が1ドツトより
大きい場合、直線の線幅情報を「1」として記憶し、直
線の線幅が1ドツト以下の場合、直線の線幅を線幅情報
として記憶することが望ましい。
Further, the line width information storage means stores the line width information of the straight line as "1" when the line width of the straight line is larger than 1 dot, and stores the line width information of the straight line as "1" when the line width of the straight line is 1 dot or less. It is desirable to store it as width information.

〔作用〕[Effect]

本発明の図形処理装置において、線幅情報記憶手段は、
線幅判定手段の判定に基づいて、直線の線幅が1ドツト
より大きい場合、直線の線幅情報を「1」として記憶し
、直線の線幅が1ドツト以下の場合、直線の線幅を線幅
情報として記憶する。
In the graphic processing device of the present invention, the line width information storage means includes:
Based on the judgment of the line width determining means, if the line width of the straight line is larger than 1 dot, the line width information of the straight line is stored as "1", and if the line width of the straight line is 1 dot or less, the line width of the straight line is stored. Stored as line width information.

階調値補正手段は、線幅情報記憶手段に記憶されている
線幅情報に基づいて、アンチエイリアシング処理の面積
率計算によって求めた階調値を変更する。
The gradation value correction means changes the gradation value obtained by calculating the area ratio of the anti-aliasing process based on the line width information stored in the line width information storage means.

〔実施例〕〔Example〕

以下、本発明の図形処理装置をPDLコントローラとし
て組み込んだ画像形成システムを実施例として、■画像
形成システムのブロック図、■PDLコントローラ(本
発明の図形処理装置)の構成、■PDLコントローラの
動作の順で詳細に説明する。
Hereinafter, an image forming system incorporating the graphic processing device of the present invention as a PDL controller will be described as an example. ■A block diagram of the image forming system, ■Configuration of the PDL controller (graphic processing device of the present invention), and ■Operation of the PDL controller. A detailed explanation will be given in order.

■画像形成システムのブロック図 第1図は本発明にかかる図形処理装置をPDLコントロ
ーラ200として組み込んだ画像形成システム(デスク
・トップ・パブリッシング・システム)を示すブロック
図である。
(2) Block diagram of image forming system FIG. 1 is a block diagram showing an image forming system (desk top publishing system) incorporating the graphic processing apparatus according to the present invention as a PDL controller 200.

本実施例の画像形成システムは、DTP (デスク・ト
ップ・パブリッシング)から出力されるページ記述言語
(Page Description Languag
e :以下、PDL言語と記す)で記述されたベクトル
データと、画像読取り装置によって読み取られたイメー
ジ画像との両方の画像情報の画像形成を行える構成であ
る。
The image forming system of this embodiment uses a page description language output from DTP (desk top publishing).
e: hereinafter referred to as PDL language)) and image information read by an image reading device.

画像形成システムは、第1図に示すように、PDL言語
(本実施例ではボストスクリプト言語を使用)で記述さ
れた文書を作成するホストコンピュータ100と、ホス
トコンピュータ100からページ単位で送られてきたP
DL言語をアンチエイリアシング処理を施しながら、赤
(R)、緑(G)、青(B)の3色のイメージ画像に展
開するPDLコントローラ(本発明の図形処理装置)2
00と、光学系ユニットを介して画像情報を読み取る画
像読取り装置300と、PDLコントローラ200.或
いは1画像読取り装置300から出力されるイメージ画
像を入力して画像処理を施す画像処理装置400と、画
像処理装置400の出力する多値イメージデータを印字
する多値カラー・レーザー・プリンタ500と、PDL
コントローラ200.iii像読取り装置300.ii
i像処理装置400.及び、多値カラー・レーザー・プ
リンタ500を制御するシステム制御部600とから構
成される。尚、制御部600は画像処理装置4000Å
力を切り替え、画像形成システムをデジタル複写機とし
て使用するか、プリンタとして使用するか等の処理を行
う。
As shown in FIG. 1, the image forming system includes a host computer 100 that creates a document written in the PDL language (Bost script language is used in this embodiment), and a document that is sent page by page from the host computer 100. P
A PDL controller (graphic processing device of the present invention) 2 that develops the DL language into three-color images of red (R), green (G), and blue (B) while performing anti-aliasing processing.
00, an image reading device 300 that reads image information via an optical system unit, and a PDL controller 200. Alternatively, an image processing device 400 that inputs the image output from the image reading device 300 and performs image processing, and a multi-value color laser printer 500 that prints the multi-value image data output from the image processing device 400. PDL
Controller 200. iii image reading device 300. ii
i image processing device 400. and a system control section 600 that controls the multivalued color laser printer 500. Note that the control unit 600 is connected to the image processing device 4000 Å.
It performs processing such as whether to use the image forming system as a digital copying machine or a printer.

■PDLコントローラの構成 第2図は、PDLコントローラ200の構成を示し、ホ
ストコンピュータ100から送られてきたPDL言語を
受信する受信装置201と、受信装置201で受信した
PDL言語の格納制御及びアンチエイリアシング処理の
実行を行うCPU202と、内部システムバス203と
、内部システムバス203を介して受信装置201から
転送させるPDL言語を格納するRAM204と、アン
チエイリアシングプログラム等の所定の制御プログラム
を格納したROM205と、アンチエイリアシング処理
を施した多値のROBイメージデータを格納するページ
メモリ206と、ページメモリ206に格納した。RG
Bイメージデータを画像処理装置400に転送する送信
装置207と、システム制御部600との送受信を行う
I10装置20Bとから構成される。
■Configuration of PDL Controller FIG. 2 shows the configuration of the PDL controller 200, which includes a receiving device 201 that receives the PDL language sent from the host computer 100, and storage control and anti-aliasing of the PDL language received by the receiving device 201. A CPU 202 that executes processing, an internal system bus 203, a RAM 204 that stores PDL language to be transferred from the receiving device 201 via the internal system bus 203, and a ROM 205 that stores a predetermined control program such as an anti-aliasing program. The page memory 206 stores multivalued ROB image data that has been subjected to anti-aliasing processing. RG
It is composed of a transmitting device 207 that transfers B image data to the image processing device 400, and an I10 device 20B that performs transmission and reception with the system control unit 600.

ここで、CPU202は、受信装置201で受信したP
DL言語をROM205に格納されていプログラムに従
って、内部システムバス203を通して、RAM204
に格納する。その後、1ペ一ジ分のPDL言語を受信し
、RAM204へ格納すると、後述するフローチャート
に基づいて、RAM204内の図形要素にアンチエイリ
アシング処理を施し、多値のRGBイメージデータに展
開し、ページメモリ206のプレーンメモリ部に格納す
る(詳細は省略するが、ページメモリ206はR,G、
Bのブレーンメモリ部と、特徴情報メモリ部とを備えて
いる)。
Here, the CPU 202 receives the P received by the receiving device 201.
The DL language is transferred to the RAM 204 through the internal system bus 203 according to the program stored in the ROM 205.
Store in. After that, when the PDL language for one page is received and stored in the RAM 204, the graphic elements in the RAM 204 are subjected to anti-aliasing processing based on the flowchart described later, expanded into multivalued RGB image data, and then stored in the page memory. 206 (Details are omitted, but the page memory 206 stores R, G,
B brain memory section and feature information memory section).

ページメモリ206内のデータは、その後、送信装置2
07を介して画像処理装置400へ送られる。
The data in the page memory 206 is then transferred to the transmitter 2
07 to the image processing device 400.

■PDLコントローラの動作 以上の構成において、第3図(a)、(b)を参照して
(2) Operation of PDL Controller Regarding the above configuration, refer to FIGS. 3(a) and (b).

PDLコントローラ200の動作を説明する。The operation of the PDL controller 200 will be explained.

第3図(a)は、CPL1202が行う処理のフローチ
ャートを示す、PDLコントローラ200は、前述した
ようにホストコンピュータ100からページ単位で送ら
れたきたPDL言語をアンチエイリアシング処理を施し
ながら、赤(R)。
FIG. 3(a) shows a flowchart of the processing performed by the CPL 1202.As mentioned above, the PDL controller 200 performs anti-aliasing processing on the PDL language sent page by page from the host computer 100. ).

緑(G)、青(B)の3色のイメージ画像に展開する。It is developed into three-color images: green (G) and blue (B).

PDL言語では、グラフィックスも文字も全てベクトル
データで記述されており、また、ページ記述言語という
呼び名が示す通り、画像情報の処理単位はページ単位で
扱うものである。更に、1ページは、1つ或いは複数の
要素(図形要素及び文字要素)から構成されるパスを単
位として、少なくとも1個以上のパスで構成される。
In the PDL language, graphics and characters are all described using vector data, and as the name "page description language" indicates, image information is processed in units of pages. Furthermore, one page is made up of at least one path, with each path being made up of one or more elements (graphic elements and text elements).

先ず、PDL言語を入力すると、その要素が曲線ベクト
ルか否か判定し、曲線ベクトルの場合はこれを直線ベク
トルに近似して、直線要素(ライン)として作業エリア
に登録する。これを1つのパス内の全ての図形及び文字
要素について行い、パス単位で作業エリアへ直線要素の
登録を実施する(処理1)。
First, when PDL language is input, it is determined whether the element is a curved vector, and if it is a curved vector, it is approximated to a straight line vector and registered as a straight line element (line) in the work area. This is performed for all graphic and character elements within one path, and linear elements are registered in the work area for each path (processing 1).

そして、このバス単位に登録した作業エリアの直線要素
を直線の開始X座標によりソーティングする(処理2)
Then, the linear elements of the work area registered in this bus unit are sorted by the starting X coordinate of the straight line (processing 2)
.

次に、処理3により、X座標を1つずつ更新しながら、
走査線による塗りつぶし処理を行う。
Next, in process 3, while updating the X coordinate one by one,
Performs filling processing using scanning lines.

例えば、第3図山)に示すパスの塗りつぶし処理を実施
する場合、処理する走査線ycの横切る辺の要素と、そ
の走査線ycを横切ったX座標の実数値(同図に示すχ
、X□X5X4)とをAET(Active Edge
 Table :走査線上に現れるエツジ部のX座標を
記録するテーブル)に登録する。ここで、作業エリアに
登録されている要素の順番は、処理1で登録した順番に
なっているため、必ずしも走査線ycを横切るX座標が
小さい順に登録されているとは限らない。例えば、処理
1において、第3図(b)の走査線ycとX、とを通過
する直線要素が最初に処理された場合には、走査線yc
上に現れるエツジ部のX座標としてx3がAETに最初
に登録される。そこで、AETの登録後、AET内の各
辺の要素をX座標の小さい順にソーティングする。そし
て、AETの最初の要素から2つをペアにして、その間
を塗りつぶす、アンチエイリアシング処理はこの塗りつ
ぶし処理において、エツジ部のピクセルの濃度及び輝度
を面積率に応じて調整することで実現する。その後、処
理済みの辺をAETから除去し、走査線を更新(X座標
を更新)し、AET内の辺を全て処理するまで、換言す
れば、1つのバス内の要素を全て処理するまで同様の処
理を繰り返す。
For example, when performing the filling process of the path shown in Figure 3 (see Figure 3), the element on the side that the scanning line yc to be processed crosses, and the real value of the X coordinate across the scanning line yc (χ shown in the same figure)
, X□X5X4) and AET (Active Edge
Table: registers the X coordinate of the edge portion appearing on the scanning line). Here, the order of the elements registered in the work area is the order in which they were registered in process 1, so they are not necessarily registered in order of decreasing X coordinate across the scanning line yc. For example, in process 1, if a straight line element passing through scanning lines yc and X in FIG. 3(b) is processed first, scanning line yc
x3 is first registered in AET as the X coordinate of the edge portion appearing above. Therefore, after the AET is registered, the elements on each side within the AET are sorted in descending order of X coordinate. Anti-aliasing processing, which pairs the first two elements of AET and fills in the space between them, is achieved by adjusting the density and brightness of pixels in the edge portion according to the area ratio in this filling process. Then, remove the processed edge from the AET, update the scanline (update the Repeat the process.

上記処理1.処理2.処理3の作業をバス単位に実行し
、1ペ一ジ分の全バスが終了するまで繰り返す。
Above processing 1. Processing 2. The work in process 3 is executed for each bus, and is repeated until all buses for one page are completed.

次に、第4図及び第5図を参照して、本発明の要部であ
るベクトルデータによって形成される直線の線幅(線幅
情報)の記憶、及び、線幅情報に基づいて、アンチエイ
リアシング処理の面積率計算によって求めた階調値を変
更する方法を具体的に説明する。
Next, with reference to FIGS. 4 and 5, the storage of the line width (line width information) of a straight line formed by vector data, which is the main part of the present invention, and the anti- A method of changing the gradation value obtained by calculating the area ratio of aliasing processing will be specifically explained.

本実施例では、線幅情報の記憶を前述した処理3のAE
Tの登録で行い、線幅情報に基づ(、アンチエイリアシ
ング処理の面積率計算によって求めた階調値の補正を、
同様に処理3のスキャンラインによる塗りつぶし処理で
実行する。
In this embodiment, the line width information is stored in the AE of process 3 described above.
T registration, and based on the line width information (and the correction of the gradation value obtained by calculating the area ratio of anti-aliasing processing,
Similarly, processing 3 is executed using scan line filling processing.

第4図はAET登録の処理を示す、先ず、対象となるベ
クトルデータが直線を形成するか否か判定し、直線を形
成しない場合(即ち、直線以外の図形要素の場合)は、
線幅情報を「1」として設定する(5401,5402
) 、直線を形成する場合には、直線の線幅mが1ドツ
ト以下かどうか判定し、1ドツト以下の場合には直線の
線幅mを線幅情報として設定する(S403,5404
) 、一方、1ドツト以下でない場合には5402へ進
み、線幅情報をrl」として設定する。その後、ベクト
ルデータの始点・終点情報、傾き情報、エツジ情報(そ
のベクトルデータが図形に対して右端にあるか、左端に
あるかを示す情報)等と共に、線幅情報をARTに登録
する(3405)、ここで、全ベクトルデータが終了し
ていなければ5401へ戻り、終了していれば夕煙をす
る(5406)。
FIG. 4 shows the AET registration process. First, it is determined whether or not the target vector data forms a straight line. If it does not form a straight line (that is, in the case of a graphic element other than a straight line),
Set line width information as "1" (5401, 5402
), when forming a straight line, it is determined whether the line width m of the straight line is 1 dot or less, and if it is 1 dot or less, the line width m of the straight line is set as line width information (S403, 5404).
), on the other hand, if it is not 1 dot or less, the process advances to 5402 and the line width information is set as "rl". After that, line width information is registered in the ART along with vector data start point/end point information, slope information, edge information (information indicating whether the vector data is at the right end or left end of the figure), etc. (3405 ), here, if all vector data has not been completed, the process returns to 5401, and if it has been completed, evening smoke is performed (5406).

スキャンラインの塗りつぶし処理は、第5図Qフローチ
ャートに示すように、先ず、サブビク(ル塗りつぶし処
理において、IN素を4*4のカブピクセルに分割して
、サブピクセル毎の塗りてぶし領域の算出を行う(S5
01)。この処理を走査朝を横切る全てのベクトルに対
して繰り返す(sso2+次に、濃度決定処理(アンチ
エイリアシング列理)において、その走査線の最初の画
素から順番に、所定のアンチエイリアシング手法のフィ
ルター(本実施例では均一平均化法のフィルターを使用
)をかけ、各画素の面積率を計算して階調値(即ち、濃
度)を算出する(S503)。
As shown in the Q flowchart in Figure 5, the scanning line filling process first divides the IN element into 4*4 cube pixels and calculates the filling area for each subpixel. (S5
01). This process is repeated for all vectors that cross the scanning line (sso2+Next, in the density determination process (anti-aliasing process), the filter of the predetermined anti-aliasing method (main In the embodiment, a uniform averaging filter is used), and the area ratio of each pixel is calculated to calculate the gradation value (that is, the density) (S503).

続いて、5504において本発明の要部である1ドツト
以下の直線の階調値補正を行う。具体的にはAETに登
録されている線幅情報mを入力して、全ての階調値(i
1度)を1/m倍する。前述したように1ドツト以下の
直線以外は線幅情報がm=1に設定されているので、階
調値を1/m倍することにより、1ドツト以下の線幅の
直線(illち、m≦1)が1ドツト幅の直線の階調値
を持つように補正される。
Subsequently, in step 5504, straight line gradation value correction of one dot or less, which is the essential part of the present invention, is performed. Specifically, input the line width information m registered in AET, and calculate all the gradation values (i
1 degree) is multiplied by 1/m. As mentioned above, line width information is set to m = 1 for lines other than straight lines with a line width of 1 dot or less, so by multiplying the gradation value by 1/m, straight lines with a line width of 1 dot or less (ill, m ≦1) is corrected so that it has a gradation value of a straight line with a width of one dot.

その後、詳細は省略するが重ね書き処理で図形の各色(
BK、R,G、Bの4色)の階#値(21度)を計算し
く5505) 、ページメモリ描画処理で各色の階調値
をページメモリに書き込む(S506)。
After that, the details are omitted, but each color of the shape (
The gradation # value (21 degrees) of the four colors (BK, R, G, and B) is calculated (5505), and the gradation value of each color is written to the page memory in the page memory drawing process (S506).

更に、上記の5503から5506の処理を1ライン分
の全ての画素に対して繰り返し実行する(S507)。
Furthermore, the processes from 5503 to 5506 described above are repeatedly executed for all pixels of one line (S507).

CPU202は、上記の処理を走査線(y座標)の最後
の画素まで繰り返す。
The CPU 202 repeats the above process up to the last pixel of the scanning line (y coordinate).

第6図(イ)はこのようにしてFin値を補正した0、
6ドツト線1’!(即ち、1ドツト以下の線幅)の直線
の出力例を示す。
Figure 6 (a) shows 0, the Fin value corrected in this way,
6 dot line 1'! An example of outputting a straight line (that is, a line width of 1 dot or less) is shown below.

同図(a)の直線に対してアンチエイリアシング処理を
実施しない場合には、同図(blに示すように、直線が
量けることはないがギザギザが発生している。一方、ア
ンチエイリアシング処理を施した場合には、同図(C)
に示すように、ギザギザは目立たなくなるが直線が薄く
なり量けてしまう。
If anti-aliasing processing is not performed on the straight line in figure (a), as shown in figure (bl), the straight line will not be sharp but jagged.On the other hand, if anti-aliasing processing is not performed If applied, the same figure (C)
As shown in , the jagged edges become less noticeable, but the straight lines become thinner and cut off.

これに比較して、本発明によって階調値補正を行った場
合には、同図(d)に示すように、ギザギザが目立たな
く、且つ、認識し易い濃度で出方されている。換言すれ
ば、アンチエイリアシング処理を行ったために薄く濃度
変調され認識が困難になる■ドツト以下の線幅をもつ直
線を、認識可能な濃度で出力することができる。
In comparison, when the gradation value correction is performed according to the present invention, the jagged edges are less noticeable and appear at a density that is easy to recognize, as shown in FIG. 2(d). In other words, it is possible to output a straight line with a line width smaller than a dot, which is difficult to recognize due to thin density modulation due to anti-aliasing processing, with a recognizable density.

(発明の効果〕 以上説明したように、本発明の図形処理装置は、塗りつ
ぶすべき面積率に基づいて、ベクトルデータのエツジ部
の画素の出力を調整し、出力画像のエツジ部のギザギザ
(エイリアス)を滑らかに表現するアンチエイリアシン
グ処理を実行する図形処理装置において、ベクトルデー
タによって形成される直線の線幅が1ドツト以下である
がどうが判定する線幅判定手段と、直線の線幅を線幅情
報として記憶する線幅情報記憶手段と、線幅情報記憶手
段に記憶されている線幅情報に基づいて、アンチエイリ
アシング処理の面積率計算によって求めた階調値を変更
する階調値補正手段とを備えたため、1ドツト以下の線
幅の直線を、滑らかに、且つ、容易に認識できるように
表現することができる。
(Effects of the Invention) As described above, the graphic processing device of the present invention adjusts the output of pixels at the edge portion of vector data based on the area ratio to be filled, and eliminates jaggedness (aliasing) at the edge portion of the output image. In a graphic processing device that performs anti-aliasing processing to smoothly express a line, there is a line width determination means for determining whether the line width of a straight line formed by vector data is one dot or less, and a line width determination means for determining whether the line width of a straight line formed by vector data is one dot or less. A line width information storage means for storing information as information; and a gradation value correction means for changing the gradation value obtained by calculating the area ratio of anti-aliasing processing based on the line width information stored in the line width information storage means. As a result, a straight line with a line width of one dot or less can be expressed smoothly and easily recognizable.

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

第1図は本実施例の画像形成システムの構成を示す説明
図、第2図はPDLコントローラ(本発明の図形処理装
置)の構成を示す説明図、第3図ハP D Lコントロ
ーラの動作を示すフローチャート、第4図はAET登録
の処理を示すフローチャート、第5図はスキャンライン
の塗りつぶし処理を示すフローチャート、第6図は0.
6ドツト線幅(即ち、1ドツト以下の線幅)の直線の出
力例を示す説明図、第7図(a)、 (b)は従来のア
ンチエイリアシング処理を示す説明図、第8図(a)、
 (b)は均一平均化法によるアンチエイリアシング処
理を示す説明図、第9図(a)、 (b)は重み付は平
均化法によるアンチエイリアシング処理を示す説明図、
第10図(a)、(ロ)、 (C)、 (d)は重み付
は平均化法に使用するフィルター例を示す説明図、第1
1図は3×3ビクセル参照の畳み込み積分法を示す説明
図、第12図は従来の1ドツト以下の線幅を持つ直線の
問題点を示す説明図である。 符号の説明 100−−−・−ホストコンピュータ 200−・−・−P D Lコントローラ201−・−
・−受信装!202−・−CP U203−−−−−・
・−内部システムバス204−−−−−RAM  20
5−−−−−−ROM2O6−・−・−ページメモリ 
207−−−−−−−−送信装置208−・・・・・・
−I10装置 300−−−−一画像読取り装置 400−−−−−・−画像処理装置 500−・・−多情レーザー・プリンタ60(1−m−
・・−システム制御部
FIG. 1 is an explanatory diagram showing the configuration of the image forming system of this embodiment, FIG. 2 is an explanatory diagram showing the configuration of the PDL controller (graphic processing device of the present invention), and FIG. 3 is an explanatory diagram showing the operation of the PDL controller. 4 is a flowchart showing AET registration processing, FIG. 5 is a flowchart showing scan line filling processing, and FIG. 6 is a flowchart showing 0.
An explanatory diagram showing an example of outputting a straight line with a line width of 6 dots (i.e., a line width of 1 dot or less); FIGS. 7(a) and 7(b) are explanatory diagrams showing conventional anti-aliasing processing; FIG. 8(a) ),
(b) is an explanatory diagram showing anti-aliasing processing using the uniform averaging method, FIG. 9(a), (b) is an explanatory diagram showing anti-aliasing processing using the weighting averaging method,
Figures 10 (a), (b), (C), and (d) are explanatory diagrams showing examples of filters used in the weighted averaging method;
FIG. 1 is an explanatory diagram showing a convolution integral method with reference to 3×3 pixels, and FIG. 12 is an explanatory diagram showing problems with a conventional straight line having a line width of one dot or less. Explanation of symbols 100 --- Host computer 200 --- PDL controller 201 ---
・-Receiver! 202-・-CP U203-------・
・-Internal system bus 204---RAM 20
5------ROM2O6----Page memory
207--------- Transmitting device 208------
-I10 device 300--Image reading device 400--Image processing device 500--Multiple laser printer 60 (1-m-
...-System control section

Claims (2)

【特許請求の範囲】[Claims] (1)塗りつぶすべき面積率に基づいて、ベクトルデー
タのエッジ部の画素の出力を調整し、出力画像のエッジ
部のギザギザ(エイリアス)を滑らかに表現するアンチ
エイリアシング処理を実行する図形処理装置において、 前記ベクトルデータによって形成される直線の線幅が1
ドット以下であるかどうか判定する線幅判定手段と、 前記直線の線幅を線幅情報として記憶する線幅情報記憶
手段と、 前記線幅情報記憶手段に記憶されている線幅情報に基づ
いて、前記アンチエイリアシング処理の面積率計算によ
って求めた階調値を変更する階調値補正手段とを備えた
ことを特徴とする図形処理装置。
(1) In a graphic processing device that adjusts the output of pixels at the edge of vector data based on the area ratio to be filled, and executes anti-aliasing processing to smoothly express jaggedness (alias) at the edge of the output image, The line width of the straight line formed by the vector data is 1
line width determination means for determining whether the line width is equal to or smaller than a dot; line width information storage means for storing the line width of the straight line as line width information; A graphic processing apparatus comprising: gradation value correction means for changing the gradation value obtained by calculating the area ratio of the anti-aliasing process.
(2)前記請求項1において、 前記線幅情報記憶手段は、前記直線の線幅が1ドットよ
り大きい場合、直線の線幅情報を「1」として記憶し、
前記直線の線幅が1ドット以下の場合、直線の線幅を線
幅情報として記憶することを特徴とする図形処理装置。
(2) In claim 1, the line width information storage means stores the line width information of the straight line as "1" when the line width of the straight line is larger than 1 dot;
A graphic processing apparatus characterized in that when the line width of the straight line is one dot or less, the line width of the straight line is stored as line width information.
JP2263408A 1990-10-01 1990-10-01 Graphic processor Pending JPH04139589A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2263408A JPH04139589A (en) 1990-10-01 1990-10-01 Graphic processor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2263408A JPH04139589A (en) 1990-10-01 1990-10-01 Graphic processor

Publications (1)

Publication Number Publication Date
JPH04139589A true JPH04139589A (en) 1992-05-13

Family

ID=17389088

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2263408A Pending JPH04139589A (en) 1990-10-01 1990-10-01 Graphic processor

Country Status (1)

Country Link
JP (1) JPH04139589A (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6166717A (en) * 1997-06-04 2000-12-26 Nec Corporation Image processing apparatus
WO2001029817A1 (en) * 1999-10-19 2001-04-26 Intensys Corporation Improving image display quality by adaptive subpixel rendering
WO2006080115A1 (en) * 2005-01-25 2006-08-03 Sony Computer Entertainment Inc. Drawing method, image generating device, and electronic information apparatus
JP2009134773A (en) * 2009-03-25 2009-06-18 Sony Computer Entertainment Inc Drawing method, image generation device and electronic information apparatus
WO2010053102A1 (en) 2008-11-07 2010-05-14 Necシステムテクノロジー株式会社 Figure drawing device, anti-aliasing method, and storage medium
JP2012185697A (en) * 2011-03-07 2012-09-27 Canon Inc Image processing system, image processing method, and program
US10136026B2 (en) 2016-02-17 2018-11-20 Canon Kabushiki Kaisha Image forming apparatus, method, and storage medium storing a program

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6166717A (en) * 1997-06-04 2000-12-26 Nec Corporation Image processing apparatus
WO2001029817A1 (en) * 1999-10-19 2001-04-26 Intensys Corporation Improving image display quality by adaptive subpixel rendering
WO2006080115A1 (en) * 2005-01-25 2006-08-03 Sony Computer Entertainment Inc. Drawing method, image generating device, and electronic information apparatus
US7884825B2 (en) 2005-01-25 2011-02-08 Sony Computer Entertainment Inc. Drawing method, image generating device, and electronic information apparatus
WO2010053102A1 (en) 2008-11-07 2010-05-14 Necシステムテクノロジー株式会社 Figure drawing device, anti-aliasing method, and storage medium
US8736635B2 (en) 2008-11-07 2014-05-27 Nec System Technologies, Ltd. Figure drawing device, anti-aliasing method, and storage medium
JP2009134773A (en) * 2009-03-25 2009-06-18 Sony Computer Entertainment Inc Drawing method, image generation device and electronic information apparatus
JP2012185697A (en) * 2011-03-07 2012-09-27 Canon Inc Image processing system, image processing method, and program
US10136026B2 (en) 2016-02-17 2018-11-20 Canon Kabushiki Kaisha Image forming apparatus, method, and storage medium storing a program

Similar Documents

Publication Publication Date Title
EP1077445B1 (en) Device dependent rendering of characters
EP1174854B1 (en) Display equipment, display method, and storage medium storing a display control program using sub-pixels
EP0369719B1 (en) Image processing apparatus and method
US7502144B2 (en) Method of preparing bit map
US5659407A (en) Method and system for rendering achromatic image data for image output devices
JPH08235367A (en) Antialiasing method by gray masking technique
JPH04246690A (en) Method of displaying image having high quality by normal resolution
JPH11272252A (en) Process for removing half-tone from digital image
US20020093502A1 (en) Character display apparatus, character display method, and recording medium
US5559530A (en) Image data processing apparatus
JP3142550B2 (en) Graphic processing unit
US5930385A (en) Apparatus and method for image conversion
JP3689607B2 (en) Image processing method, apparatus, and storage medium
JPH05143742A (en) Vector image drawing device
JPH04139589A (en) Graphic processor
EP0477904B1 (en) Method and apparatus for generating images of reduced size
US6046748A (en) Cooperative filter and raster operation evaluation model
US6498868B1 (en) Image scaling using pattern matching to select among scaling algorithms
JP2004040499A (en) Image processor, image processing system, image processing method, and program for executing by computer
JP4164215B2 (en) Image processing method, apparatus, and recording medium
US20060119897A1 (en) Output apparatus and program thereof
US20010035967A1 (en) Image processing method and apparatus, and recording medium
JP2005235238A (en) Method and apparatus of image processing and storage medium
JP7328730B1 (en) Image conversion method and image conversion device
JP3112316B2 (en) Image conversion method