JPH06103382A - Image processor - Google Patents

Image processor

Info

Publication number
JPH06103382A
JPH06103382A JP4253069A JP25306992A JPH06103382A JP H06103382 A JPH06103382 A JP H06103382A JP 4253069 A JP4253069 A JP 4253069A JP 25306992 A JP25306992 A JP 25306992A JP H06103382 A JPH06103382 A JP H06103382A
Authority
JP
Japan
Prior art keywords
density
pixel
image
page memory
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
JP4253069A
Other languages
Japanese (ja)
Inventor
Yoshiaki Haniyu
嘉昭 羽生
Hitomi Kumazaki
ひとみ 熊崎
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 JP4253069A priority Critical patent/JPH06103382A/en
Publication of JPH06103382A publication Critical patent/JPH06103382A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To smoothly vary density of each picture element, and to prevent deterioration of a picture quality by deciding the propriety basing on density of an object picture element and the right picture elements thereof in accordance with a deciding condition set in advance, and determining the density of the object picture element. CONSTITUTION:In accordance with a program stored in advance in a ROM 25, respectively, while referring to a vector font stored in a font ROM 23 concerning a character code and decomposing image data stored in a RAM 24 into a linear component in the horizontal direction, a CPU 22 performs an anti-area thing processing and outputs it to a linear plotting device 28. The linear plotting device 28 plots an image of a linear component on a memory 26 by determining new density and writing in order in the page memory 26, from density of each picture element in the X axis direction inputted in order from a CPU 22, and density of a picture element read out of the page memory 26 in accordance with each picture element thereof.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】この発明は、ベクトルで表示され
たエッジにより形成された画像のエッジに囲まれた領域
をそれぞれ指定された濃度に形成するためにアンチ・エ
イリアシング処理を行なう画像処理装置に関し、特にア
ンチ・エイリアシング処理のリード・モディファイ・ラ
イト処理を行なう画像処理装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an image processing apparatus for performing anti-aliasing processing in order to form regions surrounded by edges of an image formed by edges displayed as vectors at specified densities. In particular, the present invention relates to an image processing apparatus that performs read-modify-write processing of anti-aliasing processing.

【0002】[0002]

【従来の技術】コンピュータ等のホストマシンから入力
する例えばポスト・スクリプト等のようなPDL言語
(ページ・ディスクリプション・ランゲージ)で記述さ
れた画像を、レーザプリンタ等のプリンタで印刷あるい
はCRT等のディスプレイで表示するために、その中間
で画像処理を行なう画像処理装置がある。
2. Description of the Related Art An image described in a PDL language (page description language) such as Postscript which is input from a host machine such as a computer is printed by a printer such as a laser printer or a display such as a CRT. There is an image processing device that performs image processing in the middle of the image display for displaying.

【0003】特に多階調からなる画像を処理する場合に
おいては、ベクトルで表示されたエッジにより形成され
た画像(以下「ベクトル画像」という)のエッジに囲ま
れた領域を、それぞれ指定された濃度で塗りつぶす処理
が頻繁に行なわれる。
In particular, when processing an image consisting of multiple gradations, areas surrounded by edges of an image formed by edges displayed as vectors (hereinafter referred to as "vector image") are respectively assigned with specified density. The filling process is frequently performed.

【0004】例えば、文字を印刷する場合にベクトルフ
ォントを用いれば、サイズの大小に関係なく美しい文字
を形成することが出来るが、ベクトルで表示されたエッ
ジにより形成され文字のセルの内部を黒くベタに塗りつ
ぶす処理が不可欠である。また、写真のような連続階調
からなる画像も、デジタル処理を行なうために多階調か
らなる画像に変換し、それぞれ同一階調の領域を囲むベ
クトル画像として画像処理が行なわれる。
For example, when a character is printed, if a vector font is used, a beautiful character can be formed regardless of the size. However, the inside of the character cell formed by the edge displayed in vector is solidly black. The process of filling in is essential. An image having continuous gradations such as a photograph is also converted into an image having multiple gradations in order to perform digital processing, and image processing is performed as a vector image surrounding each area of the same gradation.

【0005】このように処理された画像をレーザプリン
タやCRTで出力した場合、いかに高画素密度,高解像
度であっても次のラインに移る所が不連続になることは
避けられないから、特に水平に近い斜線部分で極めて細
かいギザギザ(ジャギー又はエイリアシングという)が
現れる。そのため、アンチ・エイリアシング処理による
視覚的なスムーシングを行なっていた。
When an image processed in this way is output by a laser printer or a CRT, discontinuity at the next line is unavoidable no matter how high the pixel density or the resolution is. Very fine jaggedness (called jaggies or aliasing) appears in the shaded area near the horizontal. Therefore, visual smoothing is performed by anti-aliasing processing.

【0006】アンチ・エイリアシング処理は大別してサ
ンプルレートを高める方法と、1つの画素(ピクセル)
をサブピクセルに分割して平均化する平均化手法との2
種類がある。さらに、平均化手法には各サブピクセルを
等価値として扱う均一平均化法と、それぞれに異なる重
みをつけて扱う重み付け平均化法とがある。
Anti-aliasing processing is roughly divided into methods for increasing the sample rate and one pixel.
With an averaging method that divides a pixel into sub-pixels and averages
There are types. Further, the averaging method includes a uniform averaging method in which each sub-pixel is treated as an equivalent value, and a weighted averaging method in which each sub-pixel is treated with a different weight.

【0007】また、濃度が連続的に変化する連続階調画
像(デジタル処理のために変換された多階調画像)に対
しては、アンチ・エイリアシング処理のうちリード・モ
ディファイ・ライト処理が行なわれる。即ち、多値デー
タを記憶するページメモリ上の或る画素の濃度を決定す
る場合に、当該画素の属する領域の濃度データだけでな
く、当該画素のページメモリ上の濃度データを読出(リ
ード)して参照(モディファイ)しながら新しい濃度デ
ータを決定し、ページメモリ上に書込(ライト)む。
Further, the read-modify-write processing of the anti-aliasing processing is performed on the continuous-tone image whose density changes continuously (multi-tone image converted for digital processing). . That is, when determining the density of a pixel on a page memory that stores multi-valued data, not only the density data of the area to which the pixel belongs, but also the density data of the pixel on the page memory is read out. The new density data is determined while referring to (modify) and written (write) on the page memory.

【0008】このリード・モディファイ・ライト処理
は、特に2つの領域の境界であるエッジ部にかかる画素
の濃度を、一方の領域の濃度に当該画素の領域内の部分
の面積率K(0≦K≦1)を乗じ、ページメモリ上の濃
度に(1−K)を乗じた値との和をとって決定するもの
で、階調の連続性を保ちながらエッジのエイリアシング
が目立たないようにするために有効な方法であり、広く
用いられている。
In this read-modify-write process, the density of a pixel on the edge portion, which is the boundary between two regions, is set to the density of one region by the area ratio K (0≤K) of the pixel in the region. ≤1) and the sum of the density on the page memory and (1-K) to determine the sum. To keep edge continuity and conspicuous edge aliasing, It is an effective method and is widely used.

【0009】[0009]

【発明が解決しようとする課題】しかしながら、図6に
示すような、それぞれ濃度D=64,50,35の領域
A,B,Cが並んでいる場合について従来のリード・モ
ディファイ・ライト処理を行なうと、領域A,B及び領
域B,Cをそれぞれ分けるエッジ部X1,X2にかかる
画素PX1,PX2の濃度が、図7の(D)に示すよう
にそれぞれD=61及びD=41であることが望ましい
のに、後に詳しく述べる理由によって、図7の(C)に
示すようにそれぞれD=51及びD=29になってしま
う。
However, the conventional read-modify-write processing is performed in the case where the areas A, B, and C having the densities D = 64, 50, and 35 are arranged as shown in FIG. And the densities of the pixels PX1 and PX2 in the edge portions X1 and X2 that respectively divide the areas A and B and the areas B and C are D = 61 and D = 41 as shown in FIG. 7D. Is desirable, but D = 51 and D = 29, respectively, as shown in FIG.

【0010】D=51の画素PX1は、それでも領域
A,Bの各濃度D=64,50の間にあるので目立たな
いが、D=29の画素PX2は領域B,Cの各濃度D=
50,35のいずれよりも低い濃度になるから、領域C
の濃度との差が僅かであっても明るい細線として目立つ
ため、画像全体の画質を損なうという問題があった。
The pixel PX1 of D = 51 is still inconspicuous because it is still between the densities D = 64, 50 of the areas A and B, but the pixel PX2 of D = 29 is each density D = of the areas B and C.
Since the concentration is lower than either 50 or 35, the area C
There is a problem that the image quality of the entire image is impaired because it is noticeable as a bright thin line even if the difference from the density is small.

【0011】さらに、図9の(A)に示すような白バッ
ク(D=0)の図形(D=64)を処理すると、エッジ
部にかかる各画素の濃度は、それぞれの面積率に応じて
図9の(B)に示すような濃度としてページメモリ上に
記憶される。この図形を消去するために、同じ図形を白
塗り(D=0)にして従来のリード・モディファイ・ラ
イト処理を行なうと、図10の(B)に示すように、淡
い輪郭が残ってしまうため、画質を著るしく損なうとい
う問題もあった。
Further, when a white background (D = 0) figure (D = 64) as shown in FIG. 9A is processed, the density of each pixel on the edge portion depends on each area ratio. The density as shown in FIG. 9B is stored in the page memory. In order to erase this figure, if the same figure is painted white (D = 0) and the conventional read-modify-write process is performed, a light outline remains, as shown in FIG. 10B. However, there was also a problem that the image quality was significantly impaired.

【0012】従来も、このような画質低下を招かないよ
うに、エッジ部にかかる各画素の濃度を正確に処理する
方法がなかった訳ではないが、いずれも処理が複雑にな
るため処理時間が長くなるという欠点をもっていた。
Conventionally, there is no way to accurately process the density of each pixel on the edge portion so as not to cause such a deterioration in image quality, but the processing time becomes complicated because of the complicated processing. It had the drawback of being long.

【0013】この発明は上記の点に鑑みてなされたもの
であり、従来のアンチ・エイリアシング処理,リード・
モディファイ・ライト処理と同等の処理時間で画質の低
下を招くことなく画素の濃度を決定することを目的とす
る。
The present invention has been made in view of the above points, and has been achieved by the conventional anti-aliasing processing and read
An object of the present invention is to determine the pixel density without deteriorating the image quality in the processing time equivalent to the modification write processing.

【0014】[0014]

【課題を解決するための手段】この発明は上記の目的を
達成するため、ベクトルで表示されたエッジによって形
成された画像にアンチ・エイリアシング処理を施す画像
処理装置であって、画素毎にその濃度を示す多値データ
を記憶するページメモリと、入力する画像のデータに応
じて該画像をページメモリ上に描画するために各ライン
毎に画像の位置情報と該画像を構成する画素の面積率と
を計算し濃度データと共に画像情報として出力するデー
タ処理手段と、該データ処理手段が出力する画像情報と
予めページメモリ上の濃度とから新しい濃度を決定して
ページメモリ上にラインを描画する直線描画手段とを備
えた画像処理装置において、予め画素の濃度に基づいて
可又は否とする判定条件を設定し、ページメモリ上の処
理の対象とする対象画素とその左右の画素の各濃度の判
定条件による可否を判定する可否判定手段と、該可否判
定手段の判定結果に応じて対象画素の新しい濃度を決定
するデータ決定手段とを設けたものである。
In order to achieve the above-mentioned object, the present invention is an image processing apparatus for performing anti-aliasing processing on an image formed by edges displayed by vectors, the density of each pixel A page memory for storing multi-valued data indicating, and image position information for each line and an area ratio of pixels forming the image for drawing the image on the page memory according to the input image data. And a straight line drawing for drawing a line on the page memory by determining a new density from the image information output by the data processing means and the density on the page memory beforehand. In the image processing apparatus including the means, a pair of target conditions for processing on the page memory is set in advance based on the density of the pixel, and a determination condition for enabling or disabling is set. An availability determination unit that determines availability of a pixel and respective densities of pixels on the left and right of the pixel based on a determination condition of the density, and a data determination unit that determines a new density of a target pixel according to a determination result of the availability determination unit are provided. .

【0015】上記の画像処理装置において、可否判定手
段が対象画素を判定して、否であれば次に該対象画素の
左又は右隣りの画素を判定し、その結果が否であれば更
に対称画素の右又は左隣りの画素を判定する手段である
としてもよい。
In the above image processing apparatus, the propriety determination means determines the target pixel, and if not, the pixel next to the left or right side of the target pixel is determined. It may be a means for determining a pixel on the right or left of the pixel.

【0016】さらに、予め外部から指定されたアンチ・
エイリアシング処理の処理モードに応じて判定条件を変
更する条件変更手段を設けるとよい。
In addition, an anti
It is preferable to provide condition changing means for changing the judgment condition according to the processing mode of the aliasing processing.

【0017】[0017]

【作用】上記のように構成した画像処理装置は、可否判
定手段が予め設定された判定条件に応じ、対象画素とそ
の左右の画素の濃度に基づいて可否を判定し、該判定結
果に応じてデータ決定手段が対象画素の濃度を決定す
る。したがって、各画素の濃度が滑らかに変化し、画質
の低下を招くことがない。
In the image processing apparatus configured as described above, the propriety determination means determines propriety based on the densities of the target pixel and the pixels on the left and right of the target pixel according to preset determination conditions, and according to the determination result. The data determination means determines the density of the target pixel. Therefore, the density of each pixel changes smoothly and the image quality is not deteriorated.

【0018】可否判定手段が対象画素を判定して否であ
れば、次にその左又は右隣りの画素を判定し、その結果
が否であれば更に右又は左隣りの画素を判定する。この
ように予め設定した順に判定して行けば、全体的に判定
する回数が減少して処理時間を短縮することが出来る。
If the acceptability determination unit determines that the target pixel is negative, the pixel next to the left or right is next determined, and if the result is negative, the pixel to the right or left is further determined. If the determination is performed in the preset order in this way, the number of determinations as a whole can be reduced and the processing time can be shortened.

【0019】さらに、条件変更手段が外部から指定され
た処理モードに応じて判定条件を変更すれば、目的に合
せて最適な画像処理を行なうことが出来る。
Further, if the condition changing means changes the judgment condition in accordance with the processing mode designated from the outside, the optimum image processing can be performed according to the purpose.

【0020】[0020]

【実施例】図2は、ホストマシン10とプリンタ15と
の関係を示すブロック図である。コンピュータ等のホス
トマシン10は、入力装置であるキーボード11と表示
装置であるCRTディスプレイ12とを備え、キーボー
ド11から入力するPDL言語で記述された画像情報を
CRTディスプレイ12に表示すると共に、編集してペ
ージ毎にプリンタ15に出力する。
FIG. 2 is a block diagram showing the relationship between the host machine 10 and the printer 15. A host machine 10 such as a computer is provided with a keyboard 11 which is an input device and a CRT display 12 which is a display device. The image information described in the PDL language input from the keyboard 11 is displayed on the CRT display 12 and edited. Output to the printer 15 for each page.

【0021】プリンタ15は、コントローラ20とエン
ジン30とから構成され、コントローラ20はホストマ
シン10から入力するPDL言語で記述された画像情報
をアンチ・エイリアシング処理して1頁分ずつ多値のイ
メージデータに展開し、一度ページメモリに格納した
後、ビデオ信号としてエンジン30に出力する。出力装
置であるエンジン30は、入力するビデオ信号に応じて
1ラインずつ画像に変換し、形成された1頁分の画像を
用紙に印刷して出力する。
The printer 15 is composed of a controller 20 and an engine 30. The controller 20 performs anti-aliasing processing on image information written in the PDL language input from the host machine 10 and multivalued image data for each page. , And once stored in the page memory, it is output to the engine 30 as a video signal. The engine 30, which is an output device, converts each line into an image in accordance with an input video signal, prints the formed image of one page on a sheet, and outputs the image.

【0022】図3は、図2に示したこの発明による画像
処理装置の一実施例であるコントローラ20の構成を示
す回路図である。コントローラ20は、受信装置21,
CPU22,フォントROM23,RAM24,ROM
25,ページメモリ26,送信装置27及び直線描画装
置28から構成され、互いにデータバス,アドレスバ
ス,コントロールバス等のバスラインで接続されてい
る。
FIG. 3 is a circuit diagram showing the configuration of the controller 20 which is an embodiment of the image processing apparatus according to the present invention shown in FIG. The controller 20 includes a receiving device 21,
CPU 22, font ROM 23, RAM 24, ROM
25, a page memory 26, a transmission device 27 and a straight line drawing device 28, which are connected to each other by bus lines such as a data bus, an address bus, a control bus and the like.

【0023】受信装置21を介してホストマシン10か
らそれぞれ入力するPDL言語で記述された画像データ
と画素密度,(画素濃度を示す)多値レベル,頁のサイ
ズ,出力画像の拡大又は縮小率等からなる1頁分の画像
情報は、一度RAM24に記憶される。
The image data and the pixel density described in the PDL language which are respectively input from the host machine 10 via the receiving device 21, the multi-value level (indicating the pixel density), the page size, the enlargement or reduction ratio of the output image, etc. The image information for one page consisting of is temporarily stored in the RAM 24.

【0024】次に、データ処理手段であるCPU(中央
処理ユニット)22は、予めそれぞれROM25に格納
されているプログラムに従って、文字コードはフォント
ROM23に格納されているベクトルフォントを参照し
ながら、RAM24に記憶された画像データを水平方向
(X軸方向)の直線成分に分解しながら、アンチ・エイ
リアシング処理を施して直線描画手段である直線描画装
置28に出力する。
Next, the CPU (central processing unit) 22 which is the data processing means stores the character code in the RAM 24 while referring to the vector font stored in the font ROM 23 according to the program stored in the ROM 25 in advance. The stored image data is decomposed into straight line components in the horizontal direction (X-axis direction), subjected to anti-aliasing processing, and output to a straight line drawing device 28 which is a straight line drawing means.

【0025】直線描画装置28は、CPU22から順に
入力するX軸方向の各画素の濃度と、それらの各画素に
対応してページメモリ26から読出した画素の濃度とか
ら、新しい濃度を決定しページメモリ26に順に書込む
ことにより、ページメモリ26上に直線成分の画像を描
画する。すなわち、リード・モディファイ・ライト処理
を実行して多階調のイメージデータをページメモリ26
上に展開する。
The line drawing device 28 determines a new density from the density of each pixel in the X-axis direction which is sequentially input from the CPU 22 and the density of the pixel read from the page memory 26 corresponding to each pixel. By writing in the memory 26 in order, the image of the linear component is drawn on the page memory 26. That is, the read / modify / write processing is executed to obtain multi-gradation image data in the page memory 26.
Expand to the top.

【0026】送信装置27は、指定された画素密度に応
じCPU22の指令に従って、ページメモリ26に展開
された1頁分の多値レベルのイメージデータを、1ライ
ン毎に画像クロックに同期したビデオ信号に変換してエ
ンジン30に出力することにより、エンジン30に形成
された画像を用紙上に印刷させる。
In accordance with a command from the CPU 22 according to the designated pixel density, the transmitting device 27 sends multi-level image data for one page developed in the page memory 26 to a video signal synchronized line by line with an image clock. The image formed by the engine 30 is printed on a sheet by converting the image into a sheet and outputting it to the engine 30.

【0027】図4は、図3に示した直線描画装置28の
構成の一例を示す回路図であり、図4の(A)は直線描
画装置28の全体構成を、図4の(B)はその一構成要
素でありリード・モディファイ・ライト処理を実行する
リード・モディファイ・ライト制御部(以下「RMW制
御部」という)34の構成をそれぞれ示す。
FIG. 4 is a circuit diagram showing an example of the structure of the straight line drawing device 28 shown in FIG. 3. FIG. 4A shows the entire structure of the straight line drawing device 28, and FIG. The configuration of a read-modify-write control unit (hereinafter referred to as "RMW control unit") 34, which is one of the constituent elements and executes read-modify-write processing, is shown.

【0028】図4の(A)に示した直線描画装置28
は、5個のFIFOメモリ32a〜32eからなるFI
FOメモリ部32と、各メモリの動作タイミングを制御
する信号を出力するメモリ同期制御部33と、RMW制
御部34と、同期の基準となるクロックCLKを出力す
る発振回路(OSC)35と、クロックCLKをカウン
トしてX軸方向の座標を出力するXカウンタ36と、X
カウンタ36の内容とデータX2との一致を検出する比
較器37とによって構成されている。
The straight line drawing device 28 shown in FIG.
Is an FI including five FIFO memories 32a to 32e.
An FO memory unit 32, a memory synchronization control unit 33 that outputs a signal that controls the operation timing of each memory, an RMW control unit 34, an oscillation circuit (OSC) 35 that outputs a clock CLK that serves as a synchronization reference, and a clock. An X counter 36 that counts CLK and outputs coordinates in the X-axis direction;
It is composed of a comparator 37 which detects the match between the contents of the counter 36 and the data X2.

【0029】図4の(B)に示したRMW制御部34
は、LUT(ルックアップ・テーブル)回路42と、3
個のラッチ回路43a〜43cと、ラッチ回路43a〜
43cに保持された濃度の可否を判定する可否判定手段
であり条件変更手段でもあるコンパレータ44と、その
判定結果に応じて対象画素の濃度を決定するデータ決定
手段であるセレクタ45とにより構成されている。
The RMW control section 34 shown in FIG.
Is a LUT (look-up table) circuit 42 and 3
Latch circuits 43a to 43c and latch circuits 43a to 43c
Comprising a comparator 44, which is an adequacy determining unit and a condition changing unit for determining the admissibility of the density held in the reference numeral 43c, and a selector 45 which is a data determining unit for determining the density of the target pixel in accordance with the result of the determination. There is.

【0030】CPU22から書込信号WRと共にFIF
Oメモリ部32の各FIFOメモリ32a〜32eに対
して、それぞれ各画素の濃度値ZC,面積率K,描画ラ
インの縦座標Y,描画開始位置X1,同終了位置X2が
入力して各FIFOメモリ32a〜32eに記憶される
と、FIFOメモリ部32からメモリ同期制御部33に
出力されていたメモリエンプティを示す信号EMがネゲ
ートされて、データが入力したことを知らせる。
The CPU 22 sends the write signal WR together with the FIF
The density value ZC of each pixel, the area ratio K, the ordinate Y of the drawing line, the drawing start position X1, and the drawing end position X2 are input to the respective FIFO memories 32a to 32e of the O memory unit 32, and the respective FIFO memories are input. When stored in 32a to 32e, the signal EM indicating the memory empty output from the FIFO memory unit 32 to the memory synchronization control unit 33 is negated to notify that the data is input.

【0031】FIFOメモリ部32は、メモリ同期制御
部33から読出信号RDが入力すると、各FIFOメモ
リ32a〜32eに記憶されているデータのうち、濃度
値ZC,面積率K,縦座標Yはそのままメモリ同期制御
部33に出力してラッチされる。開始位置X1はXカウ
ンタ36にロードされ、Xカウンタ36はその内容をメ
モリ同期制御部33と比較器37に出力する。
When the read signal RD is input from the memory synchronization control unit 33, the FIFO memory unit 32 retains the density value ZC, the area ratio K, and the ordinate Y of the data stored in each of the FIFO memories 32a to 32e. It is output to the memory synchronization control unit 33 and latched. The start position X1 is loaded into the X counter 36, and the X counter 36 outputs the contents to the memory synchronization control unit 33 and the comparator 37.

【0032】Xカンウタ36は、ロードされたX1をス
タート値として発振回路35から入力するクロックCL
Kをカウントアップする。比較器37はXカウンタ36
の内容とFIFOメモリ32eから入力する終了位置X
2とを比較して、等しくなった時に終了信号をメモリ同
期制御部33に出力する。
The X counter 36 uses the loaded X1 as a start value to input a clock CL from the oscillation circuit 35.
Count up K. The comparator 37 is an X counter 36.
Contents and end position X input from the FIFO memory 32e
2 is compared, and when they are equal, an end signal is output to the memory synchronization control unit 33.

【0033】メモリ同期制御部33は、Xカウンタ36
の内容がX1からX2までカウントアップしている間、
濃度値ZC及び面積率KをRMW制御部34に出力する
と共に、ページメモリ26に対して、Xカウンタ36の
内容をアドレス信号ADRとして、またメモリの書込
み,読出しを指示する信号MWRをそれぞれ出力する。
The memory synchronization control unit 33 includes an X counter 36.
While the content of is counting up from X1 to X2,
The density value ZC and the area ratio K are output to the RMW control unit 34, the contents of the X counter 36 are output to the page memory 26 as an address signal ADR, and a signal MWR for instructing writing and reading of the memory is output. .

【0034】RMW制御部34は、ページメモリ26上
の処理すべき座標Y,Xの画素に対応する画素の濃度値
MD(読出データ)を読出してラッチ回路43a〜43
cによりラッチし、LUT回路42はラッチ回路43c
にラッチされた対象画素の濃度値MDすなわち濃度MC
及びメモリ同期制御部33から入力する濃度値ZC,面
積率Kを入力し、それらのデータからリード・モディフ
ァイ・ライト処理を行なった演算結果である濃度値RM
WCをセレクタ45に出力する。
The RMW control unit 34 reads the density value MD (readout data) of the pixel corresponding to the pixel of the coordinates Y and X to be processed on the page memory 26 and latches the circuits 43a to 43.
The LUT circuit 42 is latched by the latch circuit 43c.
Density value MD of the target pixel latched in, that is, density MC
And the density value ZC and the area ratio K that are input from the memory synchronization control unit 33, and the density value RM that is the calculation result of the read-modify-write processing from those data.
The WC is output to the selector 45.

【0035】互に並列に接続された3個のラッチ回路4
3a乃至43cは、ページメモリ26から読出した濃度
MDのうち、左隣りの画素,右隣りの画素,対象画素の
それぞれの濃度ML,MR,MCをラッチし、出力A,
B,Cとしてコンパレータ44に出力する。ラッチ回路
43cは出力C(濃度MC)をLUT回路42にも出力
している。
Three latch circuits 4 connected in parallel with each other
Of the densities MD read from the page memory 26, 3a to 43c latch the densities ML, MR, and MC of the pixel on the left side, the pixel on the right side, and the target pixel, and output A,
It outputs to B and C to the comparator 44. The latch circuit 43c also outputs the output C (density MC) to the LUT circuit 42.

【0036】コンパレータ44は、出力A,B,Cとメ
モリ同期制御部33から入力する濃度ZCとを入力し、
予め外部から指定されたリード・モディファイ・ライト
処理の処理モードに応じて条件変更手段であるCPU2
2が指令した判定条件に応じて、入力する各濃度の可否
を判定し、判定結果を示す信号SELをセレクタ45に
出力する。
The comparator 44 inputs the outputs A, B and C and the density ZC input from the memory synchronization control unit 33,
The CPU 2 which is a condition changing means according to the processing mode of the read / modify / write processing designated from the outside in advance.
According to the determination condition instructed by the instruction 2, whether or not each concentration to be inputted is determined, and the signal SEL indicating the determination result is output to the selector 45.

【0037】セレクタ45は、コンパレータ44から入
力する信号SELに応じて、LUT回路42から入力す
るリード・モディファイ・ライト処理された濃度RMW
Cか、メモリ同期制御部33から入力する濃度ZCかの
いずれかを選択し、ページメモリ26に書込む対象画素
の濃度MDとして出力する。
The selector 45 receives the read-modify-write processed density RMW input from the LUT circuit 42 according to the signal SEL input from the comparator 44.
Either C or the density ZC input from the memory synchronization control unit 33 is selected and output as the density MD of the target pixel to be written in the page memory 26.

【0038】図5は、図3に示したCPU22がPDL
言語で記述された1頁分のベクトル画像情報を入力し、
図形要素を水平方向の直線成分に分解して直線描画装置
28にアクセスするルーチンの一例を示すフロー図であ
る。なお、以下の説明において例えば「ステップ3」は
「S3」と略記する。
In FIG. 5, the CPU 22 shown in FIG.
Input vector image information for one page described in the language,
FIG. 9 is a flowchart showing an example of a routine for decomposing a graphic element into horizontal line components and accessing the line drawing device 28. In the following description, for example, “step 3” is abbreviated as “S3”.

【0039】図5に示したルーチンがスタートすると、
S1でPDL言語で記述された図形要素を読込んでエッ
ジを示すベクトルに変換し、S2で変換したベクトルが
曲線であるか否かを判定し、否すなわち直線であればそ
のままS4にジャンプし、曲線であればS3に進んで複
数の近似直線に分解する直線近似を実行してからS4に
進む。
When the routine shown in FIG. 5 starts,
In S1, the graphic element described in the PDL language is read and converted into a vector indicating an edge, and in S2 it is determined whether or not the converted vector is a curve. If so, the process proceeds to S3, the linear approximation is performed to decompose into a plurality of approximate straight lines, and then the process proceeds to S4.

【0040】S4で各直線ベクトルの始点,終点(の各
座標値)等を示すデータをエッジテーブル(以下「E
T」という)に登録する。ベクトル登録は直線ベクトル
の両端のうちY座標値の小さい方を始点とし、もしY座
標値が等しい場合はX座標値の小さい方を始点とする。
S5で1頁分のすべての登録を終了したら、S6で始点
のY座標値の小さい順にベクトルのソーティングを実行
し、ET内のデータを整理する。
In S4, data indicating the starting point, the ending point (each coordinate value) of each straight line vector, etc. is converted into an edge table (hereinafter referred to as "E").
(T)). For vector registration, one of the both ends of the straight line vector having the smaller Y coordinate value is the starting point, and if the Y coordinate values are the same, the one having the smaller X coordinate value is the starting point.
When all the registrations for one page are completed in S5, vector sorting is executed in order of increasing Y coordinate value of the starting point in S6, and the data in ET is sorted.

【0041】次に、1ライン毎にアンチ・エイリアシン
グ処理を行なって直線描画装置28に出力するために、
S7でラインのアドレスYをクリアしておく。S8で処
理すべきライン毎に1ライン分のデータをETからアク
ティブ・エッジテーブル(以下「AET」という)に登
録し、S9でAET内のデータをX座標値の小さい順に
ソーティングを実行し、データを整理する。
Next, in order to perform the anti-aliasing process for each line and output it to the line drawing device 28,
The address Y of the line is cleared in S7. Data for one line for each line to be processed in S8 is registered from the ET to the active edge table (hereinafter referred to as "AET"), and in S9, the data in the AET is sorted in ascending order of the X coordinate value to obtain the data. To organize.

【0042】次に、エッジ部の画素の面積率Kを計算す
るために、S10で画素(ピクセル)を縦横に細分した
サブピクセルに分解してエッジの領域内にあるサブピク
セルを塗りつぶし、S11で塗りつぶしたサブピクセル
の数を画素内の全サブピクセルの数で割って面積率Kを
算出する。
Next, in order to calculate the area ratio K of the pixels of the edge portion, the pixels (pixels) are decomposed into subpixels vertically and horizontally subdivided in S10 to fill the subpixels in the edge region, and in S11. The area ratio K is calculated by dividing the number of filled subpixels by the number of all subpixels in the pixel.

【0043】面積率Kが算出されたら、S12で当該領
域の開始位置X1(左端),終了位置X2(右端),ラ
イン番地(座標値)Y,面積率K,濃度値ZCを直線描
画装置28に転送した後、S13で処理済みの情報をA
ETから除去し、1ライン分のすべての情報を処理し終
ればS14で座標値Yをインクリメントする。S15で
すべてのラインが終了したか否かを判定し、否ならばS
8に戻り、終了ならばエンドになる。
When the area ratio K is calculated, in S12, the line drawing device 28 calculates the start position X1 (left end), end position X2 (right end), line address (coordinate value) Y, area ratio K, and density value ZC of the area. Information that has been processed in S13 after being transferred to
When it is removed from ET and all the information for one line is processed, the coordinate value Y is incremented in S14. In S15, it is determined whether or not all the lines are finished, and if not, S
Return to 8 and end when finished.

【0044】図6は濃度が連続的に変化する画像の一例
を示す説明図であり、図7は図6に示した画像が各画素
の濃度値としてページメモリ26に展開された状態をそ
れぞれ示す説明図である。以下、図6及び図7を用い
て、図4に示した直線描画装置28によるリード・モデ
ィファイ・ライト処理について説明する。
FIG. 6 is an explanatory view showing an example of an image in which the density continuously changes, and FIG. 7 shows a state in which the image shown in FIG. 6 is expanded in the page memory 26 as the density value of each pixel. FIG. The read / modify / write processing by the straight line drawing device 28 shown in FIG. 4 will be described below with reference to FIGS. 6 and 7.

【0045】図6に示したように、互に濃度の異なる領
域A,B,Cは、それぞれX座標値X1,X2の2個の
エッジX1,X2により境界を接し、その濃度はそれぞ
れDa=64,Db=50,Dc=35である。説明に
便なるためエッジは共に垂直になっているから、それぞ
れのエッジX1,X2にかかる画素PX1,PX2は各
ラインに共通であり、画素PX1における領域Aの面積
率はKa=80%、領域Bの面積率はKb=(1−K
a)=20%であり、画素PX2における領域Bの面積
率はKb=40%、領域Cの面積率はKc=(1−K
b)=60%であるとする。
As shown in FIG. 6, the areas A, B, and C having different densities are bounded by two edges X1 and X2 having X coordinate values X1 and X2, respectively, and the density is Da = 64, Db = 50, and Dc = 35. Since the edges are both vertical for convenience of explanation, the pixels PX1 and PX2 associated with the respective edges X1 and X2 are common to each line, and the area ratio of the area A in the pixel PX1 is Ka = 80%, The area ratio of B is Kb = (1-K
a) = 20%, the area ratio of the region B in the pixel PX2 is Kb = 40%, and the area ratio of the region C is Kc = (1-K
b) = 60%.

【0046】各画素の濃度は、本来は図7の(A)に示
したように、画素PX1より左側の画素の濃度はD=D
a=64、画素PX1,PX2に挾まれた画素の濃度は
D=Db=50、画素PX2より右側の画素の濃度はD
=Dc=35であって、画素PX1,PX2の濃度D
1,D2はそれぞれ両側の濃度とその面積率との積の和
として求められるから、数1に示すようにD1=61,
D2=41であることが望ましい。
Originally, as shown in FIG. 7A, the density of each pixel is D = D for the pixel on the left side of the pixel PX1.
a = 64, the density of the pixel sandwiched between the pixels PX1 and PX2 is D = Db = 50, and the density of the pixel on the right side of the pixel PX2 is D
= Dc = 35 and the density D of the pixels PX1 and PX2
1, D2 is obtained as the sum of the products of the concentrations on both sides and the area ratio, so that D1 = 61,
It is desirable that D2 = 41.

【0047】[0047]

【数1】 D1=Da*Ka+Db*Kb =64×0.8+50×0.2=61.2 ≒61 D2=Db*Kb+Dc*Kc =50×0.4+35×0.6=41## EQU1 ## D1 = Da * Ka + Db * Kb = 64 × 0.8 + 50 × 0.2 = 61.2≈61 D2 = Db * Kb + Dc * Kc = 50 × 0.4 + 35 × 0.6 = 41

【0048】しかしながら、エッジの両側の領域の濃度
から計算するためには、CPU22から処理中の領域の
濃度ZCの他にその両側の領域の濃度ZCも入力する必
要があり、処理が複雑になるため、従来のリード・モデ
ィファイ・ライト処理はページメモリ26上の対応する
画素の濃度データMDを読出して、処理中の領域外の濃
度として処理している。
However, in order to calculate from the densities of the regions on both sides of the edge, it is necessary to input the densities ZC of the regions on both sides in addition to the densities ZC of the regions being processed from the CPU 22, which complicates the process. Therefore, in the conventional read-modify-write processing, the density data MD of the corresponding pixel on the page memory 26 is read and processed as the density outside the area being processed.

【0049】すなわち、従来のリード・モディファイ・
ライト処理では処理中の領域の濃度をZC、エッジにか
かる対象画素における面積率をK、読出された対応する
画素の濃度をMCとすれば、書込まれる新しい濃度MD
nは数2よって計算し、決定していた。
That is, the conventional read modify
In the write processing, if the density of the area being processed is ZC, the area ratio of the target pixel on the edge is K, and the density of the corresponding read pixel is MC, the new density MD to be written.
n was calculated and determined by the equation 2.

【0050】[0050]

【数2】MDn=ZC×K+MC×(1−K)(2) MDn = ZC × K + MC × (1-K)

【0051】数2によれば、当初ページメモリ26はす
べてクリアされてDm=0であり、領域A(Da=6
4)の処理中は画素PX1より左側の画素の面積率はK
=1であり、画素PX1の面積率KはKa=0.8であ
るから、それぞれの濃度MDa,MD1は数3に示すよ
うに64,51.2としてそれぞれページメモリ26に
書込まれる。
According to the equation (2), the page memory 26 is initially cleared to Dm = 0, and the area A (Da = 6).
During the process of 4), the area ratio of the pixel on the left side of the pixel PX1 is K
= 1 and the area ratio K of the pixel PX1 is Ka = 0.8. Therefore, the respective densities MDa and MD1 are written in the page memory 26 as 64 and 51.2 as shown in Expression 3.

【0052】[0052]

【数3】MDa=64×1+0×0=64 MD1=64×0.8+0×0.2=51.2## EQU00003 ## MDa = 64 × 1 + 0 × 0 = 64 MD1 = 64 × 0.8 + 0 × 0.2 = 51.2

【0053】次に、領域B(Db=50)の処理を行な
うと、画素PX1については面積率はKb=0.2 で読
出される濃度MD=51.2 であり、画素PX1より右
側の画素の面積率はK=1でDm=0であり、さらに画
素PX2は面積率はKb=0.4 でDm=0であるか
ら、それぞれの濃度MD1,MDb,MD2は数4に示
すように51,50,20になる。
Next, when the region B (Db = 50) is processed, the area ratio of the pixel PX1 is Kb = 0.2, the density MD is 51.2, and the pixel on the right side of the pixel PX1. Has an area ratio of K = 1 and Dm = 0, and the pixel PX2 has an area ratio of Kb = 0.4 and Dm = 0. Therefore, the respective densities MD1, MDb, MD2 are 51 as shown in Equation 4. , 50,20.

【0054】[0054]

【数4】 MD1=50×0.2+51.2×0.8 =50.96≒51=D1 MDb=50×1+0×0=50 MD2=50×0.4+0×0.6=20MD1 = 50 × 0.2 + 51.2 × 0.8 = 50.96≈51 = D1 MDb = 50 × 1 + 0 × 0 = 50 MD2 = 50 × 0.4 + 0 × 0.6 = 20

【0055】さらに、領域C(Dc=35)の処理を行
なうと、画素PX2の面積率はKc=0.6 で読出され
る濃度MD=20であり、画素PX2より右側の画素の
面積率はK=1でDm=0であるから、それぞれの濃度
MD2,MDcは数5に示すように29,35になっ
て、図7の(C)に示したようになる。
When the area C (Dc = 35) is further processed, the area ratio of the pixel PX2 is Kc = 0.6 and the density MD = 20, and the area ratio of the pixel on the right side of the pixel PX2 is Since K = 1 and Dm = 0, the respective densities MD2 and MDc are 29 and 35 as shown in Expression 5, and are as shown in FIG. 7C.

【0056】[0056]

【数5】 MD2=35×0.6+20×0.4=29=D2 MDc=35×1+0×0=35MD2 = 35 × 0.6 + 20 × 0.4 = 29 = D2 MDc = 35 × 1 + 0 × 0 = 35

【0057】以上説明したように、図7の(C)に示し
た従来処理の例は、図7の(A)に示した例に比べてエ
ッジにかかる画素PX1,PX2の濃度MD1,MD2
の値が共に低くなっている。それでも、画素PX1の濃
度MD1=51は、MDa>MD1>MDbの関係にあ
り濃度誤差が10あっても目立たないから、画質低下と
感じられる恐れはない。
As described above, in the example of the conventional processing shown in FIG. 7C, the densities MD1 and MD2 of the pixels PX1 and PX2 applied to the edge are compared with the example shown in FIG. 7A.
Both values are low. Even so, since the density MD1 = 51 of the pixel PX1 is in the relationship of MDa>MD1> MDb and even if there is a density error of 10, it is not noticeable, so there is no fear that the image quality will be degraded.

【0058】しかしながら、画素PX2の濃度MD2=
29は、MDb>MD2<MDcの関係になるから、濃
度誤差が12であることではなく、MDcより濃度差が
僅かに6低いだけでも、そこに在るべきでない明るい細
線として目立つから、画質を著しく損なう。
However, the density MD2 of the pixel PX2 =
Since 29 has a relationship of MDb> MD2 <MDc, the density error is not 12, and even if the density difference is only 6 lower than MDc, it stands out as a bright thin line that should not be there, so the image quality is improved. Remarkably damages.

【0059】この実施例においても、以上説明したリー
ド・モディファイ・ライト処理は、図4の(B)に示し
たRMW制御部34のLUT回路42により行なわれ
る。LUT回路42は予め計算した結果を格納したLU
T(ルックアップ・テーブル)を用いて、濃度ZC,面
積率K,読出した濃度MCを入力して瞬時にリード・モ
ディファイ・ライト処理後の濃度RMWCをセレクタ4
5に出力する。
Also in this embodiment, the read-modify-write processing described above is performed by the LUT circuit 42 of the RMW control section 34 shown in FIG. 4B. The LUT circuit 42 is an LU that stores the results calculated in advance.
Using the T (look-up table), the density ZC, the area ratio K, and the read density MC are input and the density RMWC after the read-modify-write processing is instantly selected by the selector 4
Output to 5.

【0060】濃度RMWCは数2における計算結果のM
Dnであるから、K=1の時はCPU22から入力した
濃度ZCが、K=0の時は読出した濃度MCが、それぞ
れリード・モディファイ・ライト処理された濃度RMW
Cとして出力されることは以上の説明から明らかであ
る。
The concentration RMWC is M of the calculation result in Equation 2.
Since it is Dn, the density ZC input from the CPU 22 when K = 1 and the density MC read out when K = 0 are the density RMW subjected to the read-modify-write processing.
It is apparent from the above description that the data is output as C.

【0061】この発明による実施例が従来例と異なる所
は、図4の(B)に示したように、ラッチ回路43a〜
43c,コンパレータ44,セレクタ45を設けたこと
である。LUT回路42が対象画素の濃度RMWCを計
算する前に、ラッチ回路43a,43b,43cはペー
ジメモリ26から読出された左隣りの画素,右隣りの画
素,対象画素の各濃度ML,MR,MCをラッチし、そ
れぞれ出力A,B,Cとしてコンパレータ44とLUT
回路42に出力している。
The difference between the embodiment according to the present invention and the prior art is that the latch circuits 43a to 43a, as shown in FIG.
43c, the comparator 44, and the selector 45 are provided. Before the LUT circuit 42 calculates the density RMWC of the target pixel, the latch circuits 43a, 43b, 43c read the densities ML, MR, MC of the left adjacent pixel, the right adjacent pixel, and the target pixel read from the page memory 26. Of the comparator 44 and the LUT as outputs A, B and C, respectively.
It is output to the circuit 42.

【0062】画像処理を行なう場合に、先ずオペレータ
はホストマシン10のキーボード11又はプリンタ15
の図示しない操作パネルから、アンチ・エイリアシング
処理の処理モードのうち、ノーマルモード(従来の処
理),特殊モードA,特殊モードBのいずれかを指定す
る。
When performing image processing, the operator first operates the keyboard 11 or printer 15 of the host machine 10.
From the operation panel (not shown), one of the normal mode (conventional process), the special mode A, and the special mode B among the anti-aliasing process modes is designated.

【0063】図1は、RMW制御部34の指定モードに
応じた処理アルゴリズムの第1実施例を示すフロー図で
ある。図1に示したフローがスタートすると、S20で
入力した面積率Kが1であるか否かを判定して、K=1
であればS29にジャンプし、否すなわちK<1であれ
ばS21に進んで、ページメモリ26から濃度MC,M
L,MRを読出し、RMWCを計算する。
FIG. 1 is a flow chart showing the first embodiment of the processing algorithm according to the designated mode of the RMW control unit 34. When the flow shown in FIG. 1 starts, it is determined whether the area ratio K input in S20 is 1, and K = 1.
If so, the process jumps to S29, and if no, that is, if K <1, the process proceeds to S21, and the densities MC and M are read from the page memory 26.
Read L and MR and calculate RMWC.

【0064】次に、S22で指定モードがノーマルモー
ドか否かを判定して、ノーマルモードであればS28に
ジャンプし、否すなわち特殊モードであればS23に進
み、読出した濃度MCが0であるか否か(条件)、即
ち始めて書込むのか既に書込んであるのかを判定して、
MC=0であればS28にジャンプし、MC>0であれ
ばS24に進む。
Next, in S22, it is determined whether or not the designated mode is the normal mode. If the designated mode is the normal mode, the process jumps to S28. If not, that is, the special mode, the process proceeds to S23, and the read density MC is 0. Whether or not (condition), that is, whether to write for the first time or already written,
If MC = 0, jump to S28, and if MC> 0, proceed to S24.

【0065】S24では、濃度MCがメモリ同期制御部
33から入力した濃度ZC以上であるか否か(条件)
を判定して、否すなわちMC<ZCであればS26にジ
ャンプし、MC≧ZCであればS25に進んで、指定さ
れた特殊モードがモードAであるか否かを判定し、モー
ドAであればS29に、否すなわちモードBであればS
28にそれぞれジャンプする。
At S24, it is determined whether the density MC is equal to or higher than the density ZC input from the memory synchronization control unit 33 (condition).
If NO, that is, if MC <ZC, the process jumps to S26, and if MC ≧ ZC, the process proceeds to S25 to determine whether the specified special mode is the mode A. If it is S29, that is, if it is mode B, then S
Jump to 28 respectively.

【0066】S24からS26にジャンプすると、左隣
り画素の濃度MLがLUT回路42の出力RMWC以下
で且つ0より大きいか否か(条件)を判定し、可すな
わちRMWC≧ML>0であればS28にジャンプし、
否すなわちMLがRMWCより大きいか0であればS2
7に進んで、右隣りの画素の濃度MRについて同様な判
定(条件)を行ない、RMWC≧MR>0であればS
28に、否であればS29にそれぞれジャンプする。
When jumping from S24 to S26, it is determined whether or not the density ML of the left adjacent pixel is less than or equal to the output RMWC of the LUT circuit 42 and greater than 0 (condition). If yes, that is, RMWC ≧ ML> 0, S28 Jump to
If not, that is, if ML is larger than RMWC or 0, S2
7, the same determination (condition) is made for the density MR of the pixel on the right, and if RMWC ≧ MR> 0, then S
28, and if not, jump to S29.

【0067】予め指定された処理モードは、CPU22
を介してコンパレータ44に伝えられ、コンパレータ4
4は処理モードの指定に応じて条件〜を含むS22
乃至S27の判定を実行して、セレクタ45に出力する
信号をオン/オフする。セレクタ45は信号SELがオ
フの時はRMWCを、オンの時はZCを選択し、濃度M
Dとしてページメモリ26に出力する。
The processing mode designated in advance is the CPU 22.
Is transmitted to the comparator 44 via
4 includes a condition S in accordance with the designation of the processing mode S22
Through the determinations of S27 to S27, the signal output to the selector 45 is turned on / off. The selector 45 selects RMWC when the signal SEL is off and ZC when the signal SEL is on.
It is output to the page memory 26 as D.

【0068】すなわち、S28ではコンパレータ44は
出力信号SELをオフにするから、リード・モディファ
イ・ライト処理された濃度RMWCがページメモリ26
に書込まれ、S29では信号SELをオンにするからメ
モリ同期制御部33から入力した濃度ZCがページメモ
リ26に書込まれて、1つの対象画素の処理がエンドに
なる。
That is, in S28, the comparator 44 turns off the output signal SEL, so that the read-modify-write processed density RMWC is stored in the page memory 26.
Since the signal SEL is turned on in S29, the density ZC input from the memory synchronization control unit 33 is written in the page memory 26, and the processing of one target pixel ends.

【0069】図8は、RMW制御部34の処理アルゴリ
ズムの第2実施例を示すフロー図であり、図1に示した
第1実施例と同一部分には同一ステップ番号を付して説
明を省略する。図8に示したフロー図は、図4の(B)
に示した3個のラッチ回路43a〜43cを除いて、濃
度MC,ML,MRは必要の都度読出してコンパレータ
44又はLUT回路42に入力するようにしたRMW制
御部に適用するものである。
FIG. 8 is a flow chart showing a second embodiment of the processing algorithm of the RMW control section 34. The same parts as those of the first embodiment shown in FIG. To do. The flow chart shown in FIG. 8 is shown in FIG.
Except for the three latch circuits 43a to 43c shown in FIG. 3, the densities MC, ML, and MR are applied to the RMW control unit which is read out whenever necessary and input to the comparator 44 or the LUT circuit 42.

【0070】図8に示した第2実施例が第1実施例と異
なる所は、S21に代えてS31乃至S33を設けたこ
とである。即ち、第1実施例のS21ではラッチ回路4
3a〜43cがあるからMC,ML,MRをまとめて読
出しているが、第2実施例ではS21に対応するS31
ではMCだけを読出し、S26,S27の直前にS3
2,S33を設けて、それぞれ必要とするML,MRを
読出している。その他の部分は変わっていないから、作
用は全く同一である。
The second embodiment shown in FIG. 8 differs from the first embodiment in that S31 to S33 are provided instead of S21. That is, in S21 of the first embodiment, the latch circuit 4
Since there are 3a to 43c, MC, ML, and MR are read collectively, but in the second embodiment, S31 corresponding to S21.
Then, only MC is read, and S3 is performed immediately before S26 and S27.
2, S33 are provided to read out the required ML and MR respectively. The other parts are the same, so the operation is exactly the same.

【0071】第2実施例は第1実施例に比べて、3個の
ラッチ回路が不要であるから、RMW処理部の構成が簡
単になりコストも低下する。また、S22乃至S25の
判定でS28又はS29にジャンプすればML,MRを
読出す必要はなく、S26の判定まで進んでも、可であ
ればMRを読出さないで済むから、S21でMC,M
L,MRを読出すよりも、全体の処理時間を短縮するこ
とが出来る。
Compared with the first embodiment, the second embodiment does not require three latch circuits, so that the structure of the RMW processing section is simple and the cost is reduced. Further, if it jumps to S28 or S29 in the determination of S22 to S25, it is not necessary to read ML and MR, and even if the process proceeds to the determination of S26, it is not necessary to read MR if possible, so MC and M in S21.
The entire processing time can be shortened as compared with reading L and MR.

【0072】しかしながら、ラッチ回路43a〜43c
が設けられでいれば、第3実施例として特に図示はしな
いが、図4の(B)において1個の画素の処理の最後で
セレクタ45が濃度MDを出力した時に、MDを次の画
素のMLとしてラッチ回路43aにラッチし、ラッチ回
路43bのMRを次の画素のMCとしてラッチ回路43
cにシフトすれば、S21において次の画素のMRをペ
ージメモリ26から読出すだけでよいから、処理時間は
更に短縮出来る。
However, the latch circuits 43a to 43c
If not provided, as a third embodiment, although not shown in the figure, when the selector 45 outputs the density MD at the end of the processing of one pixel in FIG. It is latched in the latch circuit 43a as ML, and the MR of the latch circuit 43b is used as MC of the next pixel.
By shifting to c, the MR of the next pixel need only be read from the page memory 26 in S21, so the processing time can be further shortened.

【0073】第1及び第2実施例において、S26,S
27で判定する条件,は、処理する画素濃度がM
L,MRと異なるだけで、判定条件及び最終的なジャン
プ先S28,S29は同じであるから、内容を交換して
S26で条件、S27で条件の判定を行なっても差
支えない。ただし、第2実施例の場合はS32とS33
の内容も交換しなければならない。
In the first and second embodiments, S26, S
The condition determined in step 27 is that the pixel density to be processed is M
Since the judgment conditions and the final jump destinations S28 and S29 are the same except for L and MR, the contents may be exchanged to judge the condition in S26 and the condition in S27. However, in the case of the second embodiment, S32 and S33
The contents of must also be exchanged.

【0074】図1及び図8に示したフローは1画素の処
理毎に繰返されるから、1頁分の画像処理では膨大な回
数になる。従って、少しでも時間を節約出来れば全処理
時間は大幅に短縮される。指定された処理モードは処理
実行中に変更されることはないから、条件変更手段であ
るコンパレータ44(CPU22でもよい)は、入力し
た処理モードに応じて、画像処理実行前に、コンパレー
タ44のハードウェア(が望ましいが、ソフトウェアで
もよい)を例えば次のように切換える。
Since the flow shown in FIGS. 1 and 8 is repeated for each pixel process, the number of image processes for one page is enormous. Therefore, if you can save even a little time, the total processing time will be greatly reduced. Since the designated processing mode is not changed during the execution of the processing, the comparator 44 (or the CPU 22), which is the condition changing means, may change the hardware of the comparator 44 before executing the image processing according to the input processing mode. Wear (preferably, but software may be used) is switched as follows, for example.

【0075】ノーマルモードの場合、フロー図のS22
をS28への無条件ジャンプに変更する。特殊モードの
場合は、S22をNOP(ノー・オペレーション)に代
え、S25を廃してS24のYのジャンプ先をモードA
かモードBかに応じてS29かS28に設定する。この
ようにすれば、ノーマルモードならS22の判定時間
を、特殊モードならS22とS25の判定時間をそれぞ
れ節約出来る。
In the case of the normal mode, S22 of the flow chart
To an unconditional jump to S28. In the special mode, S22 is replaced with NOP (no operation), S25 is abolished, and the jump destination of Y in S24 is mode A.
It is set to S29 or S28 depending on whether the mode is mode B or not. By doing so, the determination time of S22 can be saved in the normal mode, and the determination times of S22 and S25 can be saved in the special mode.

【0076】以下、第1実施例(第2実施例も同様であ
る)によって図6に示した画像を処理する例について説
明する。指定された処理モードがノーマルモードであれ
ば、S23乃至S27を通ることはないから従来例と同
様に、図7の(C)に示した濃度の画像がページメモリ
26上に描画される。
An example of processing the image shown in FIG. 6 according to the first embodiment (the same applies to the second embodiment) will be described below. If the designated processing mode is the normal mode, it does not pass through S23 to S27, so that the image of the density shown in FIG. 7C is drawn on the page memory 26 as in the conventional example.

【0077】特殊モードが指定されていれば、領域A内
の画素はK=1でZC=Da=64であるからS20,
S29を通ってMD=ZC=64であり、領域Aの描画
終了すなわち対象画素PX1の処理(S20〜S23,
S28)が終った時に、数3に示したようにML=MD
a=64,MC=MD1=51,MR=0になってい
る。
If the special mode is designated, the pixels in the area A are K = 1 and ZC = Da = 64, so S20,
MD = ZC = 64 through S29, the drawing of the area A is completed, that is, the processing of the target pixel PX1 (S20 to S23,
When S28) is completed, ML = MD as shown in Equation 3.
a = 64, MC = MD1 = 51, and MR = 0.

【0078】次に、濃度ZC=Db=50の領域Bの描
画を行うと、先ず対象画素PX1の面積率K=0.2<
1でMC=51>0 であるからS20〜S24に進
み、MC(51)>ZC(50)であるからS25に進ん
で、指定モードが特殊モードAであるか否かを判定し、
モードAであればS29にジャンプしてZC=50を、
モードBであればS28にジャンプしてRMWC=51
(数4のMD1)をそれぞれMDとしてページメモリ2
6に書込む。
Next, when the area B having the density ZC = Db = 50 is drawn, the area ratio K of the target pixel PX1 is K = 0.2 <
When 1 = MC = 51> 0, the process proceeds to S20 to S24. Since MC (51)> ZC (50), the process proceeds to S25, and it is determined whether the designated mode is the special mode A.
If it is mode A, jump to S29 and set ZC = 50,
If it is mode B, jump to S28 and RMWC = 51
Page memory 2 with (MD1 of equation 4) as MD
Write to 6.

【0079】領域B内の画素は、領域A内の画素と同様
にK=1であるから、MD=Db=50であり、対象画
素PX2の処理が終った時に、数4に示したようにML
=MDb=50,MC=MD2=20,MR=0になっ
ている。次に濃度ZC=Dc=35の領域Cの描画を行
うと、対象画素PX2は画素PX1と同様に K=0.6
<1でMC=20であるからS20〜S24に進み、今
度はMC(20)<ZC(35)であるからS26にジャン
プする。
Since the pixels in the area B are K = 1 like the pixels in the area A, MD = Db = 50, and when the processing of the target pixel PX2 is completed, as shown in the equation (4). ML
= MDb = 50, MC = MD2 = 20, MR = 0. Next, when the area C having the density ZC = Dc = 35 is drawn, the target pixel PX2 is K = 0.6 similarly to the pixel PX1.
Since <1 and MC = 20, the process proceeds to S20 to S24. Since MC (20) <ZC (35) this time, the process jumps to S26.

【0080】S26ではRMWC=29(数5のMD
2)でありML=50であるから、RMWC<MLとな
ってS27に進み、MR=0であるからS29にジャン
プして、モードA,Bに関係なくZC=35をMDとし
てページメモリ26に書込む。従つて、指定処理モード
が特殊モードA,特殊モードB,ノーマルモードであれ
ば、ページメモリ26上には図7の(A),(B),
(C)にそれぞれ示したように描画されることになる。
At S26, RMWC = 29 (MD of equation 5)
2) and ML = 50, RMWC <ML and the process proceeds to S27. Since MR = 0, the process jumps to S29, and ZC = 35 is set as MD in the page memory 26 regardless of modes A and B. Write. Therefore, if the designated processing mode is the special mode A, the special mode B, or the normal mode, (A), (B) of FIG.
It is drawn as shown in FIG.

【0081】以上説明したように、ノーマルモード(従
来の処理)ではエッジを形成する画素PX2の縦列(D
=29)が濃度の低い領域C(D=35)より明るい細
線として目立つが、この発明による特殊モードA又はB
を指定すれば、いずれの場合でもエッジを形成する画素
の濃度は、エッジを挾む両側の領域の濃度の範囲内に収
まるから、画質低下を生じる恐れがない。
As described above, in the normal mode (conventional processing), the column (D) of the pixels PX2 forming an edge is formed.
= 29) is conspicuous as a thin line brighter than the low density region C (D = 35), the special mode A or B according to the present invention.
In any case, since the density of pixels forming an edge falls within the density range of the regions on both sides of the edge, there is no risk of image quality deterioration.

【0082】図9及び図10は、一度ページメモリ26
上に描画した図形を消去する場合の一例を示す説明図で
あり、図9の(A)はオリジナルの図形と画素との関
係、図9の(B)は濃度D=64の図形がページメモリ
26に描画された時の各画素の濃度をそれぞれ示し、図
10の(A),(B)はその図形を実施例及び従来例に
より消去した場合の各画素の濃度を示す。
9 and 10 show the page memory 26 once.
FIG. 10 is an explanatory diagram showing an example of erasing a figure drawn above. FIG. 9A shows a relationship between an original figure and a pixel, and FIG. 9B shows a figure having a density D = 64 as a page memory. 26 shows the densities of the respective pixels when drawn, and FIGS. 10A and 10B show the densities of the respective pixels when the figure is erased by the embodiment and the conventional example.

【0083】図9の(A)に示した濃度D=64の図形
をページメモリ上に描画すると、各画素毎の面積率Kは
繁雑になるので省略するが、白地(D=0)以外に異な
る濃度の領域と接する部分がないから、従来例でも実施
例でも同様に、各画素はその面積率に応じて図9の
(B)に示した濃度で描画される。一度描画された図形
を取消すには、図形の濃度をD=0に修正したものを重
複して描画する。
When the figure with the density D = 64 shown in FIG. 9A is drawn on the page memory, the area ratio K of each pixel becomes complicated, so the description thereof is omitted. However, except for the white background (D = 0). Since there is no portion in contact with regions of different densities, each pixel is drawn with the densities shown in FIG. 9B in accordance with its area ratio in both the conventional example and the example. In order to cancel the figure once drawn, the figure whose density is corrected to D = 0 is drawn again.

【0084】このような場合に従来例及びノーマルモー
ドでは、リード・モディファイ・ライト処理により、面
積率K=1の画素はMD=0になるが、面積率K<1の
画素は図10の(B)に示したようにMD=0になら
ず、図形の中心部は消去されても輪郭線が淡い濃度で残
るという問題があった。
In such a case, in the conventional example and the normal mode, the read-modify-write processing causes MD = 0 for the pixel having the area ratio K = 1, but the pixel having the area ratio K <1 is shown in FIG. As shown in B), MD = 0 does not hold, and there is a problem that the contour line remains with a light density even if the central portion of the figure is erased.

【0085】第1及び第2実施例によれば、特殊モード
を指定すれば、図形内部の画素は面積率K=1,ZC=
0であるから、S20,S29を通ってMD=0にな
る。エッジ部にかかる画素(輪郭線)はK<1,ZC=
0でMC≠0であり、S20〜S23を通ってS24で
はMC>ZC(条件)であるからS25に進む。モー
ドAが指定されていればS29でMD=0になるが、モ
ードBが指定されていればS28に進むからノーマルモ
ードと同じになる。
According to the first and second embodiments, if the special mode is designated, the pixels in the figure have area ratios K = 1, ZC =
Since it is 0, MD = 0 through S20 and S29. Pixels (outline) on the edge part are K <1, ZC =
At 0, MC ≠ 0, and at S24 through S20 to S23, MC> ZC (condition), so the routine proceeds to S25. If mode A is specified, MD = 0 in S29, but if mode B is specified, the process proceeds to S28 and becomes the same as the normal mode.

【0086】したがって、白地に形成された図形を消去
する時には特殊モードAを指定すれば、図10の(A)
に示したように、輪郭線を残さずに完全に消去すること
が出来る。しかしながら、特殊モードBを指定すると、
従来例と同様に輪郭線が残って了う。
Therefore, if the special mode A is designated when erasing a figure formed on a white background, (A) in FIG.
As shown in, it can be completely erased without leaving a contour line. However, if special mode B is specified,
The contour line remains as in the conventional example.

【0087】図11は、黒地(D=64)に図9と同様
な図形を白抜き(D=0)で書込む場合の例を示し、図
11の(A)はオリジナルの図形を、図11の(B)及
び(C)は特殊モードB及びAで描画された時の各画素
の濃度をそれぞれ示している。
FIG. 11 shows an example in which the same figure as in FIG. 9 is written on a black background (D = 64) with a white outline (D = 0), and FIG. 11A shows the original figure. 11B and 11C show the densities of the respective pixels when drawn in the special modes B and A, respectively.

【0088】モードAで描画すると、図11の(C)に
示したように、エッジ部にかかる画素もMD=ZC=0
になるためジャギーが残り、アンチ・エイリアシング処
理をしない場合と全く同じ結果になって了う。モードB
で描画すれば、これまでに説明したようにアンチ・エイ
リアシング処理,リード・モディファイ・ライト処理が
行なわれて、図11の(B)に示したように優れた画質
の画像が形成される。
When the drawing is performed in the mode A, as shown in FIG. 11C, the pixels on the edge portion also have MD = ZC = 0.
Therefore, jaggies remain and the result is exactly the same as when anti-aliasing processing is not performed. Mode B
If the drawing is carried out, the anti-aliasing process and the read-modify-write process are performed as described above, and an image of excellent image quality is formed as shown in FIG. 11B.

【0089】すなわち、同じように濃度D=0の図形を
描画する場合でも、白地に形成された図形を消去する時
は特殊モードAを指定し、黒地に白の図形を形成する時
は特殊モードBを指定すれば、それぞれ優れた画像を形
成することが出来る。
That is, even when a figure having a density D = 0 is similarly drawn, the special mode A is specified when erasing a figure formed on a white background, and the special mode is specified when a white figure is formed on a black background. If B is designated, excellent images can be formed respectively.

【0090】[0090]

【発明の効果】以上説明したように、この発明による画
像処理装置は、従来のアンチ・エイリアシング処理,リ
ード・モディファイ・ライト処理と同等の処理時間で画
質の低下を招くことなく画素の濃度を決定することが出
来る。
As described above, the image processing apparatus according to the present invention determines the pixel density without deteriorating the image quality in the same processing time as the conventional anti-aliasing processing and read-modify-write processing. You can do it.

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

【図1】この発明によるRMW制御部の処理アルゴリズ
ムの第1実施例を示すフロー図である。
FIG. 1 is a flowchart showing a first embodiment of a processing algorithm of an RMW control unit according to the present invention.

【図2】ホストマシンと画像処理装置を備えたプリンタ
との関係を示すブロック図である。
FIG. 2 is a block diagram showing a relationship between a host machine and a printer including an image processing apparatus.

【図3】図2に示した画像処理装置の一実施例であるコ
ントローラの構成を示す回路図である。
3 is a circuit diagram showing a configuration of a controller which is an embodiment of the image processing apparatus shown in FIG.

【図4】図3に示した直線描画装置の構成の一例を示す
回路図である。
4 is a circuit diagram showing an example of a configuration of the straight line drawing device shown in FIG.

【図5】図3に示したCPUのルーチンの一例を示すフ
ロー図である。
5 is a flowchart showing an example of a routine of the CPU shown in FIG.

【図6】濃度が連続的に変化する画像の一例を示す説明
図である。
FIG. 6 is an explanatory diagram showing an example of an image whose density continuously changes.

【図7】図6に示した画像がページメモリ上に描画され
た状態の一例を示す説明図である。
FIG. 7 is an explanatory diagram showing an example of a state in which the image shown in FIG. 6 is drawn on a page memory.

【図8】RMW制御部の処理アルゴリズムの第2実施例
を示すフロー図である。
FIG. 8 is a flowchart showing a second embodiment of the processing algorithm of the RMW control unit.

【図9】図形とその画像が描画された状態の一例を示す
説明図である。
FIG. 9 is an explanatory diagram showing an example of a state in which a figure and its image are drawn.

【図10】図8に示した画像を消去した状態の一例を示
す説明図である。
FIG. 10 is an explanatory diagram showing an example of a state in which the image shown in FIG. 8 is erased.

【図11】図形とその画像が描画された状態の他の例を
示す説明図である。
FIG. 11 is an explanatory diagram showing another example of a state in which a figure and its image are drawn.

【符号の説明】[Explanation of symbols]

10 ホストマシン 15 プリンタ 20 コントローラ(画像処理装置) 22 CPU(データ処理手段,条件変更手段) 26 ページメモリ 28 直線描画装
置(直線描画手段) 34 RMW(リード・モディファイ・ライト)制御部 44 コンパレータ(可否判定手段,条件変更手段) 45 セレクタ(データ決定手段)
10 host machine 15 printer 20 controller (image processing device) 22 CPU (data processing means, condition changing means) 26 page memory 28 straight line drawing device (straight line drawing means) 34 RMW (read-modify-write) control unit 44 comparator (possible / impossible) Judging means, condition changing means) 45 Selector (data deciding means)

Claims (3)

【特許請求の範囲】[Claims] 【請求項1】 ベクトルで表示されたエッジによって形
成された画像にアンチ・エイリアシング処理を施す画像
処理装置であって、画素毎にその濃度を示す多値データ
を記憶するページメモリと、入力する前記画像のデータ
に応じて該画像を前記ページメモリ上に描画するために
各ライン毎に前記画像の位置情報と該画像を構成する画
素の面積率とを計算し濃度データと共に画像情報として
出力するデータ処理手段と、該データ処理手段が出力す
る画像情報と予め前記ページメモリ上の濃度とから新し
い濃度を決定して前記ページメモリ上にラインを描画す
る直線描画手段とを備えた画像処理装置において、 予め画素の濃度に基づいて可又は否とする判定条件を設
定し、前記ページメモリ上の処理の対象とする対象画素
とその左右の画素の各濃度の前記判定条件による可否を
判定する可否判定手段と、該可否判定手段の判定結果に
応じて前記対象画素の新しい濃度を決定するデータ決定
手段とを設けたことを特徴とする画像処理装置。
1. An image processing apparatus for performing anti-aliasing processing on an image formed by edges displayed by vectors, comprising: a page memory for storing multi-valued data indicating the density of each pixel; Data for calculating the position information of the image and the area ratio of the pixels forming the image for each line in order to draw the image on the page memory according to the image data, and outputting it as the image information together with the density data. An image processing apparatus comprising: a processing unit; and a straight line drawing unit that draws a line on the page memory by determining a new density from the image information output by the data processing unit and the density on the page memory in advance, A determination condition is set in advance based on the density of the pixel to determine whether it is acceptable or not, and each of the target pixel to be processed on the page memory and the pixels to the left and right of the target pixel are set. Every said and determination means for determining whether by determination condition, the image processing apparatus characterized in that a data determining means for determining a new concentration of the target pixel in accordance with the determination result of the movable determination means.
【請求項2】 請求項1記載の画像処理装置において、
前記可否判定手段が前記対象画素を判定して、否であれ
ば次に該対象画素の左又は右隣りの画素を判定し、その
結果が否であれば更に前記対象画素の右又は左隣りの画
素を判定する手段であることを特徴とする画像処理装
置。
2. The image processing apparatus according to claim 1,
The availability determination unit determines the target pixel, and if not, then determines the pixel on the left or right side of the target pixel, and if the result is no, further on the right or left side of the target pixel. An image processing apparatus, which is a means for determining a pixel.
【請求項3】 請求項1又は2記載の画像処理装置にお
いて、予め外部から指定された前記アンチ・エイリアシ
ング処理の処理モードに応じて前記判定条件を変更する
条件変更手段を設けたことを特徴とする画像処理装置。
3. The image processing apparatus according to claim 1, further comprising condition changing means for changing the determination condition according to a processing mode of the anti-aliasing process designated from the outside in advance. Image processing device.
JP4253069A 1992-09-22 1992-09-22 Image processor Pending JPH06103382A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP4253069A JPH06103382A (en) 1992-09-22 1992-09-22 Image processor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP4253069A JPH06103382A (en) 1992-09-22 1992-09-22 Image processor

Publications (1)

Publication Number Publication Date
JPH06103382A true JPH06103382A (en) 1994-04-15

Family

ID=17246063

Family Applications (1)

Application Number Title Priority Date Filing Date
JP4253069A Pending JPH06103382A (en) 1992-09-22 1992-09-22 Image processor

Country Status (1)

Country Link
JP (1) JPH06103382A (en)

Similar Documents

Publication Publication Date Title
JP4087528B2 (en) Method of detecting pixels from which aliases are removed in rasterized image data
US7945114B2 (en) Image transform method for obtaining expanded image data, image processing apparatus and image display device therefore
US7425960B2 (en) Device dependent rendering
US4992955A (en) Apparatus for representing continuous tone and high contrast images on a bilevel display
JP3102805B2 (en) Graphic output device
JPH08235367A (en) Antialiasing method by gray masking technique
US20050226538A1 (en) Video scaling
JPH0126072B2 (en)
JP3142550B2 (en) Graphic processing unit
JPH06103382A (en) Image processor
JP2003158632A (en) Image processing method, and image processing apparatus and image processing system to execute the method
US6718072B1 (en) Image conversion method, image processing apparatus, and image display apparatus
US6504543B1 (en) Polygon drawing method and polygon drawing apparatus
JPH04139589A (en) Graphic processor
JP4858883B2 (en) Vector image drawing apparatus, vector image drawing method and program
JPH0683968A (en) Picture processor
JP3006732B2 (en) Character pattern generator
JPS6359272A (en) Picture processor
JPH04199975A (en) Image forming device
JP3493745B2 (en) Drawing device
JPH0696222A (en) Picture processor
JPH0668271A (en) Image processor
JP4215225B2 (en) Image processing apparatus and image processing method
JP3445462B2 (en) Dithering method and dithering device
JP3417753B2 (en) Method and apparatus for generating gradation character