JPH0696222A - Picture processor - Google Patents

Picture processor

Info

Publication number
JPH0696222A
JPH0696222A JP24622992A JP24622992A JPH0696222A JP H0696222 A JPH0696222 A JP H0696222A JP 24622992 A JP24622992 A JP 24622992A JP 24622992 A JP24622992 A JP 24622992A JP H0696222 A JPH0696222 A JP H0696222A
Authority
JP
Japan
Prior art keywords
density
pixel
target pixel
read
modify
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
JP24622992A
Other languages
Japanese (ja)
Inventor
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 JP24622992A priority Critical patent/JPH0696222A/en
Publication of JPH0696222A publication Critical patent/JPH0696222A/en
Pending legal-status Critical Current

Links

Landscapes

  • Image Processing (AREA)
  • Image Generation (AREA)

Abstract

PURPOSE:To decide the density of picture elements for processing time similar to conventional RMW(read/modify/write) processing without lowering picture quality. CONSTITUTION:An LUT circuit 42 calculates successively the picture element density from density data, area rate K and density Dm by using RMW processing, buffers 43a-43c output the density of respective left, objective, and right picture elements as outputs A, B and C, and an arithmetic part 44 compares the output B with the other picture element, decides density Dn of the objective picture element and outputs it to a frame memory. Namely, the density is compared with the right and left picture elements or five picture elements including three picture elements in read adjacent lines and when the density is lower than the other density, the density of any one of adjacent picture elements or the average value of outputs A and C is defined as Dn. When the density is out of the range of outputs A and C, the intermediate value is defined as Dn. In the other case, the output B is defined as Dn. Thus, the picture quality is not lowered by running out of the density of an edge part from the area density on both of sides.

Description

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

【0001】[0001]

【産業上の利用分野】この発明は、ベクトルで表示され
たエッジにより形成された画像のエッジに囲まれた領域
をそれぞれ指定された濃度に形成するためにアンチ・エ
イリアシング処理した濃度をリード・モディファイ・ラ
イト処理してフレームメモリに書込む画像処理装置に関
する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to read-modify the density which is anti-aliased in order to form areas surrounded by edges of an image formed by edges displayed in vectors at specified density. The present invention relates to an image processing device that performs write processing and writes in a frame memory.

【0002】[0002]

【従来の技術】コンピュータ等のホストマシンから入力
する例えばポスト・スクリプト等のようなPDL言語
(フレーム・ディスクリプション・ランゲージ)で記述
された画像を、レーザプリンタ等のプリンタで印刷ある
いはCRT等のディスプレイで表示するために、その中
間で画像処理を行なう画像処理装置がある。
2. Description of the Related Art An image input in from a host machine such as a computer and described in a PDL language (frame description language) such as post script 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, a character cell formed by an edge displayed in a vector (enclosed by the edge Area)
It is indispensable to paint the inside of the black solid.

【0005】また、写真のような連続階調からなる画像
も、デジタル処理を行なうために多階調からなる画像に
変換し、それぞれ同一階調の領域を囲むベクトル画像と
して画像処理が行なわれる。
An image having continuous gradation 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 areas of the same gradation.

【0006】このように処理された画像をレーザプリン
タやCRTで出力した場合、いかに高画素密度,高解像
度であっても次のラインに移る所が不連続になることは
避けられないから、特に水平に近い斜線部分で極めて細
かいギザギザ(ジャギー又はエイリアシングという)が
現れる。そのため、アンチ・エイリアシング処理により
エッジの濃度を修整して視覚的なスムーシングを行なっ
ていた。
When an image processed in this way is output by a laser printer or a CRT, discontinuity at the next line is inevitable, 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 adjusting the edge density by anti-aliasing processing.

【0007】アンチ・エイリアシング処理は大別してサ
ンプルレートを高める方法と、1つの画素(ピクセル)
をサブピクセルに分割して平均化する平均化手法との2
種類がある。さらに、平均化手法には各サブピクセルを
等価値として扱う均一平均化法と、それぞれに異なる重
みをつけて扱う重み付け平均化法とがある。
The anti-aliasing process is roughly classified into a method 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.

【0008】また、濃度が連続的に変化する連続階調画
像(デジタル処理のために変換された多階調画像)に対
しては、アンチ・エイリアシング処理した濃度をリード
・モディファイ・ライト処理してメモリに書込むことが
行なわれる。即ち、多値データを記憶するフレームメモ
リ上の或る画素の濃度を決定する場合に、当該画素の属
する領域の濃度データだけでなく、当該画素のフレーム
メモリ上の濃度データを読出(リード)して、参照(モ
ディファイ)しながら新しい濃度データを決定し、フレ
ームメモリ上に書込(ライト)む。
Further, for a continuous tone image whose density changes continuously (multi-tone image converted for digital processing), the anti-aliased density is subjected to read-modify-write processing. Writing to memory is performed. That is, when determining the density of a pixel on the frame 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 frame memory is read out. Then, new density data is determined while referencing (modifying) and writing (writing) on the frame memory.

【0009】このリード・モディファイ・ライト処理
は、特に2つの領域の境界であるエッジ部にかかる画素
の濃度を、一方の領域の濃度に当該画素の領域内の部分
の面積率K(0≦K≦1)を乗じ、フレームメモリ上の
濃度に(1−K)を乗じた値との和をとって決定するも
ので、階調の連続性を保ちながらエッジのエイリアシン
グが目立たないようにするために有効な方法であり、広
く用いられている。
In this read-modify-write process, the density of a pixel at 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 frame memory and the value multiplied by (1-K) is taken to determine the value, in order to keep the gradation continuity and to make the aliasing of edges inconspicuous. It is an effective method and is widely used.

【0010】[0010]

【発明が解決しようとする課題】しかしながら、図6に
示すような、それぞれ濃度D=64,50,35,15
の領域A,B,C,Dが並んでいる場合について従来の
リード・モディファイ・ライト処理を行なうと、各領域
A,B,C,Dをそれぞれ分けるエッジ部にかかる画素
PX1,PX2,PX3の濃度が、それぞれD=61,
41,33であることが望ましいのに、後に詳しく述べ
る理由によって図7の(C)に示すように、それぞれD=
51,29,30になってしまう。
However, as shown in FIG. 6, the density D = 64, 50, 35, 15 respectively.
When the conventional read-modify-write process is performed on the case where the areas A, B, C, and D are arranged side by side, the pixels PX1, PX2, and PX3 applied to the edge part that divides the areas A, B, C, and D, respectively. The concentration is D = 61,
Although it is desirable that the values are 41 and 33, as shown in FIG.
It becomes 51, 29, 30.

【0011】D=51の画素PX1及びD=30の画素
PX3は、それでも領域A,Bの各濃度64,50及び
領域C,Dの各濃度35,15の間にあるので目立たな
いが、D=29の画素PX2は領域B,Cの各濃度5
0,35のいずれよりも低い濃度になるから、領域Cの
濃度との差が僅かであっても明るい細線として目立つた
め、画像全体の画質を損なうという問題があった。
The pixel PX1 with D = 51 and the pixel PX3 with D = 30 are not conspicuous because they are still between the densities 64 and 50 of the areas A and B and the densities 35 and 15 of the areas C and D, respectively. = 29, the pixel PX2 has a density of 5 in each of the areas B and C.
Since the density is lower than 0 or 35, even if the difference between the density of the area C and the density of the area C is small, it is conspicuous as a bright thin line, and there is a problem that the image quality of the entire image is deteriorated.

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

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

【0014】この発明は上記の点に鑑みてなされたもの
であり、従来のアンチ・エイリアシング処理,リード・
モディファイ・ライト処理と同等の処理時間で画質の低
下を招くことなく画素の濃度を決定することを目的とす
る。
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.

【0015】[0015]

【課題を解決するための手段】この発明は上記の目的を
達成するため、ベクトルで表示されたエッジにより形成
された画像のエッジに囲まれた領域を塗りつぶすため、
対象画素のアンチ・エイリアシング処理した濃度をリー
ド・モディファイ・ライト処理することによりフレーム
メモリ上に書込む対象画素の濃度を決定する画像処理装
置において、それぞれ下記のようにしたものである。
In order to achieve the above object, the present invention fills a region surrounded by edges of an image formed by edges displayed by vectors,
An image processing apparatus for determining the density of the target pixel to be written in the frame memory by performing the read-modify-write processing on the density of the target pixel subjected to the anti-aliasing processing is as follows.

【0016】第1の発明は、リード・モディファイ・ラ
イト処理された対象画素の面積率が1未満であって、そ
の濃度がフレームメモリ上の対象画素の左右に隣接する
2個及び既にリード・モディファイ・ライト処理された
スキャンライン上の対象画素に隣接する3個の各画素の
うちのいずれの濃度よりも低い場合は、隣接する5個の
画素のうちのいずれかの濃度を対象画素のフレームメモ
リに書込む濃度とする濃度決定手段を設けたものであ
る。
According to a first aspect of the present invention, the area ratio of the target pixel subjected to the read-modify-write process is less than 1, and the density of the target pixel on the left and right of the target pixel on the frame memory is already read-modify. If the density is lower than any of the three pixels adjacent to the target pixel on the scan line subjected to the light processing, the density of any of the five adjacent pixels is set to the frame memory of the target pixel. A means for determining the concentration to be written in is provided.

【0017】第1の発明において、対象画素及び隣接す
る5個の画素のうち、次に処理すべき画素に隣接する画
素のうちの最低濃度の画素の位置を記憶する位置記憶手
段を設け、濃度決定手段が次に処理すべき画素を処理す
る時に位置記憶手段に記憶された位置の画素から濃度の
比較を開始するようにするとよい。
In the first invention, among the target pixel and the five adjacent pixels, a position storage means for storing the position of the lowest density pixel of the pixels adjacent to the pixel to be processed next is provided, When the determining means processes the pixel to be processed next, the density comparison may be started from the pixel at the position stored in the position storing means.

【0018】第2の発明は、リード・モディファイ・ラ
イト処理された対象画素の面積率が1未満であって、そ
の濃度がフレームメモリ上の対象画素の左右に隣接する
画素のいずれの濃度よりも低い場合は、左右に隣接する
画素のいずれか又は両方の濃度に応じて対象画素のフレ
ームメモリに書込む濃度を決定する濃度決定手段を設け
たものである。
According to a second aspect of the present invention, the area ratio of the read-modify-write processed target pixel is less than 1, and its density is higher than that of any of the pixels adjacent to the left and right of the target pixel on the frame memory. If it is low, the density determining means is provided for determining the density to be written in the frame memory of the target pixel according to the density of one or both of the pixels adjacent to each other on the left and right.

【0019】第3の発明は、リード・モディファイ・ラ
イト処理された画素の濃度を一時的に格納するバッファ
メモリと、リード・モディファイ・ライト処理された対
象画素の面積率が1未満であり且つ該対象画素のフレー
ムメモリから読出した濃度が0でない時に、リード・モ
ディファイ・ライト処理された対象画素の濃度がフレー
ムメモリ上の対象画素の左右に隣接する画素のうちのい
ずれのリード・モディファイ・ライト処理された濃度よ
りも低い場合は、左右に隣接する画素の濃度の中間値を
対象画素のフレームメモリに書込む濃度とする濃度決定
手段とを設けたものである。
According to a third aspect of the present invention, the buffer memory for temporarily storing the density of the read-modify-write processed pixel and the area ratio of the read-modify-write processed target pixel are less than 1. When the density of the target pixel read out from the frame memory is not 0, the read-modify-write processing of the density of the read-modify-write processed target pixel on the left and right sides of the target pixel on the frame memory When the density is lower than the specified density, density determining means is provided for setting the intermediate value of the densities of the pixels adjacent to the left and right as the density to be written in the frame memory of the target pixel.

【0020】[0020]

【作用】第1の発明による画像処理装置は、面積率K<
1すなわちエッジ部にかかる対象画素のリード・モディ
ファイ・ライト処理された濃度が、対象画素に隣接する
リード・モディファイ・ライト処理された5個の画素の
うちのいずれの濃度よりも低い場合に、濃度決定手段は
対象画素に隣接する5個の画素のうちのいずれかの濃度
を対象画素の濃度とするから、エッジ部の画質を低下さ
せる明るい細線を生じることがない。
The image processing apparatus according to the first aspect of the invention has an area ratio K <
1, that is, if the density of the target pixel subjected to the read-modify-write processing on the edge portion is lower than the density of any of the five pixels subjected to the read-modify-write processing adjacent to the target pixel, Since the determining means sets the density of any of the five pixels adjacent to the target pixel as the density of the target pixel, bright thin lines that deteriorate the image quality of the edge portion are not generated.

【0021】さらに、濃度決定手段が次の画素を処理す
る時に、位置記憶手段に記憶された位置の最低濃度の画
素から濃度の比較を開始すれば、無駄な濃度比較をしな
いで済むから、全体の処理時間を短縮することが出来
る。
Further, when the density determination means processes the next pixel, if the density comparison is started from the pixel having the lowest density at the position stored in the position storage means, unnecessary density comparison can be avoided. Processing time can be shortened.

【0022】第2の発明による画像処理装置は、面積率
K<1すなわちエッジ部にかかる対象画素のリード・モ
ディファイ・ライト処理された濃度が、対象画素の左右
に隣接するリード・モディファイ・ライト処理された画
素のいずれの濃度よりも低い場合に、濃度決定手段は左
右に隣接する画素のいずれか又は両方の濃度に応じて対
象画素の濃度を決定するから、エッジ部の画質を低下さ
せる明るい細線を生じることがない。
In the image processing apparatus according to the second aspect of the present invention, the area ratio K <1, that is, the read-modify-write process is performed so that the read-modify-write processed density of the target pixel on the edge portion is adjacent to the left and right of the target pixel. When the density is lower than the density of any of the pixels that have been selected, the density determining unit determines the density of the target pixel according to the density of one or both of the pixels adjacent to each other on the left and right, so that a bright thin line that deteriorates the image quality of the edge portion Does not occur.

【0023】第3の発明による画像処理装置は、面積率
K<1であってフレームメモリから読出した濃度が0で
ない、即ちエッジ部にかかり既に濃度が書込まれている
対象画素のリード・モディファイ・ライト処理された濃
度が、対象画素の左右に隣接するリード・モディファイ
・ライト処理された画素のうちのいずれの濃度よりも低
い場合に、濃度決定手段は左右に隣接する画素の濃度の
中間値を対象画素の濃度とするから、エッジ部の画質を
低下させる明るい細線を生じることがない。
In the image processing apparatus according to the third aspect of the present invention, the area ratio K <1 and the density read from the frame memory is not 0, that is, the read modification of the target pixel in which the density has already been written to the edge portion. When the density subjected to the write processing is lower than the density of any of the read-modify-write processed pixels adjacent to the left and right of the target pixel, the density determination means determines the intermediate value of the densities of the pixels adjacent to the left and right. Since is the density of the target pixel, a bright thin line that deteriorates the image quality of the edge portion does not occur.

【0024】[0024]

【実施例】図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 frame.

【0025】プリンタ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 frame 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.

【0026】図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 frame 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.

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

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

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

【0030】送信装置27は、指定された画素密度に応
じCPU22の指令に従って、フレームメモリ26に展
開された1頁分の多値レベルのイメージデータを、1ラ
イン毎に画像クロックに同期したビデオ信号に変換して
エンジン30に出力することにより、エンジン30に形
成された画像を用紙上に印刷させる。
In accordance with a command from the CPU 22 in accordance with the designated pixel density, the transmitter 27 sends the multi-level image data for one page developed in the frame memory 26 to a video signal synchronized line by line with the 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.

【0031】図4は、図3に示した直線描画装置28の
構成の一例を示す回路図であり、図4の(A)は直線描
画装置28の全体構成を、図4の(B)はその一構成要
素でありリード・モディファイ・ライト処理を実行する
リード・モディファイ・ライト制御部(以下「RMW制
御部」という)34の構成をそれぞれ示す。
FIG. 4 is a circuit diagram showing an example of the configuration of the straight line drawing device 28 shown in FIG. 3. FIG. 4A shows the entire configuration 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.

【0032】図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.

【0033】図4の(B)に示したRMW制御部34
は、LUT(ルックアップ・テーブル)回路42と、3
個のバッファメモリ(以下単に「バッファ」という)4
3a〜43cからなるラッチ部43と、ラッチ部43に
保持された濃度データを比較して対象画素の新しい濃度
データを決定する濃度決定手段である演算部44と、バ
ッファ45とにより構成されている。
The RMW control section 34 shown in FIG. 4B.
Is a LUT (look-up table) circuit 42 and 3
Number of buffer memories (hereinafter simply referred to as "buffer") 4
It is composed of a latch unit 43 composed of 3a to 43c, a calculation unit 44 which is a density determining unit for comparing the density data held in the latch unit 43 to determine new density data of the target pixel, and a buffer 45. .

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

【0035】FIFOメモリ部32は、メモリ同期制御
部33から読出信号RDが入力すると、各FIFOメモ
リ32a〜32eに記憶されているデータのうち、濃度
値DATA,面積率K,縦座標Yはそのままメモリ同期
制御部33に出力し、メモリ同期制御部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 DATA, 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 in the memory synchronization control unit 33. The start position X1 is loaded into the X counter 36,
The X counter 36 outputs its contents to the memory synchronization control unit 33 and the comparator 37.

【0036】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 the 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.

【0037】メモリ同期制御部33は、Xカウンタ36
の内容がX1からX2までカウントアップしている期
間、濃度値DATA及び面積率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 DATA and the area ratio K are output to the RMW control unit 34, and the content of the X counter 36 is sent to the frame memory 26 as an address signal ADR. It outputs a signal MWR for instructing writing and reading of the memory.

【0038】RMW制御部34は、フレームメモリ26
上の処理すべき座標Y,Xの画素に対応する画素の濃度
値Dm(読出データ)を読出してバッファ45によりラ
ッチし、LUT回路42はラッチされた(フレームメモ
リ上の)濃度値Dmとメモリ同期制御部33から入力す
る(CPUから指示された)濃度値DATA及び面積率
Kとを入力し、それらのデータからリード・モディファ
イ・ライト処理を行なった演算結果である新しい濃度値
をラッチ部43の初段のバッファ43cに出力する。
The RMW control unit 34 uses the frame memory 26.
The density value Dm (readout data) of the pixel corresponding to the pixel having the coordinates Y and X to be processed is read and latched by the buffer 45, and the LUT circuit 42 latches the density value Dm (on the frame memory) and the memory. The density value DATA and the area ratio K input from the synchronization control unit 33 (instructed by the CPU) are input, and a new density value, which is the calculation result of the read-modify-write process, is latched from the data. To the buffer 43c in the first stage.

【0039】ラッチ部43の互に直列に接続された3個
のバッファ43a〜43cは多値データのシフトレジス
タとして作用するから、クロックCLKによってバッフ
ァ43cにラッチされたデータは、次のクロックCLK
でバッファ43bに移り、さらに次のクロックCLKで
バッファ43aに移ってそれぞれ保持されると共に、演
算部44に出力される。
Since the three buffers 43a to 43c of the latch section 43 connected in series with each other act as a shift register for multi-valued data, the data latched in the buffer 43c by the clock CLK is transferred to the next clock CLK.
To the buffer 43b, and then to the buffer 43a at the next clock CLK to be held respectively and output to the arithmetic unit 44.

【0040】したがって、バッファ43bが出力する出
力Bが濃度値である対象画素を基準に考えれば、バッフ
ァ43aが出力する出力Aはその1つ前(左隣り)の画
素の濃度値であり、バッファ43cが出力する出力Cは
その1つ後(右隣り)の画素である。演算部44は3個
の出力A,B,Cを比較して、その結果に応じて、バッ
ファ43bに保持された濃度値が出力Bである対象画素
の新しい濃度値を決定し、濃度値Dn(描画データ)と
してフレームメモリ26に出力することにより、ライン
Y上の各画素の描画が行なわれる。
Therefore, considering the target pixel whose output B output from the buffer 43b is the density value as a reference, the output A output from the buffer 43a is the density value of the pixel immediately before (left adjacent), The output C output from 43c is the pixel immediately after that (on the right side). The calculation unit 44 compares the three outputs A, B, and C, and determines the new density value of the target pixel whose output value is the output B as the density value held in the buffer 43b according to the result, and outputs the density value Dn. By outputting the (drawing data) to the frame memory 26, each pixel on the line Y is drawn.

【0041】図5は、対象画素とそれに隣接する画素の
位置関係を示す説明図である。太い枠で示す対象画素P
がスキャンライン(Y)の座標(X)の位置にあるとす
れば、一般に処理はスキャンラインを上から下へ、同一
スキャンライン上の画素は左から右へ進められるから、
スキャンライン(Y−1)はリード・モディファイ・ラ
イト処理済でフレームメモリ26に描画されており、斜
線を施した下側に含まれるスキャンライン(Y+1)は
未処理である。
FIG. 5 is an explanatory diagram showing the positional relationship between the target pixel and pixels adjacent thereto. Target pixel P indicated by a thick frame
Is at the position of the coordinate (X) of the scan line (Y), the process generally advances the scan line from top to bottom, and pixels on the same scan line are advanced from left to right.
The scan line (Y-1) has been subjected to the read-modify-write processing and is drawn in the frame memory 26, and the scan line (Y + 1) included on the lower side with hatching is unprocessed.

【0042】スキャンライン上の左隣りの画素L,対象
画素P,右隣りの画素Rはそれぞれリード・モディファ
イ・ライト処理されて、その濃度は図4の(B)に示し
た出力A,B,Cになっている。したがって、対象画素
Pの濃度(出力B)を隣接する画素の濃度と比較する場
合に、下側の3個の画素LL,L,RLと比較すること
は無意味であり、左右2個の画素L,R(出力A,
C)、或いは更にフレームメモリ26から読出可能な上
側の3個の画素LU,U,RUを加えた5個の画素が比
較されることになる。
The pixel L on the left side of the scan line, the target pixel P, and the pixel R on the right side are subjected to read-modify-write processing, and their densities are outputs A, B shown in FIG. It is C. Therefore, when comparing the density of the target pixel P (output B) with the density of the adjacent pixels, it is meaningless to compare with the lower three pixels LL, L, RL, and there are two pixels on the left and right. L, R (output A,
C), or five pixels obtained by adding the upper three pixels LU, U, and RU that can be read from the frame memory 26 are compared.

【0043】この発明による実施例のルーチンを説明す
る前に、この発明の主要部を明らかにするために、図1
2に示す従来例のルーチンのフロー図について説明す
る。なお、以下各フローの説明において例えば「ステッ
プ3」は「S3」と略記する。
Before explaining the routine of the embodiment according to the present invention, in order to clarify the main part of the present invention, FIG.
A flow chart of the routine of the conventional example shown in 2 will be described. In the following description of each flow, for example, “step 3” is abbreviated as “S3”.

【0044】図12に示した従来例のルーチンがスター
トすると、S1で画像を構成するエッジを表示する多数
のベクトルをそれぞれ入力し、S2で入力したベクトル
が曲線であるか否かを判定し、否すなわち直線であれば
そのままS4にジャンプし、曲線であればS3に進んで
複数の近似直線に分解する直線近似を実行してからS4
に進む。
When the routine of the conventional example shown in FIG. 12 is started, a large number of vectors for displaying edges forming an image are input in S1, and it is determined in S2 whether or not the input vector is a curve. If not, that is, if it is a straight line, it jumps to S4 as it is, and if it is a curve, it proceeds to S3 and executes linear approximation to decompose it into a plurality of approximate straight lines, and then S4.
Proceed to.

【0045】S4で各直線ベクトルの始点,終点(の各
座標値)等を示すデータをエッジテーブル(以下「E
T」という)に登録する。ベクトル登録は直線ベクトル
の両端のうちY座標値の小さい方を始点とし、もしY座
標値が等しい場合はX座標値の小さい方を始点とする。
すべてのベクトルの登録を終了したら、S5で始点のY
座標値の小さい順にベクトルのソーティングを実行し、
ET内のデータを整理する。
In S4, data indicating the starting point, the ending point (each coordinate value) of each straight line vector, etc.
(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 vectors have been registered, start point Y
Perform vector sorting in ascending order of coordinates,
Organize the data in ET.

【0046】次に、1ライン毎に(例えばラインYにつ
いて)ピクセルの濃度決定を行なうために、ライン及び
画素(ピクセル)を細分してサブライン及びサプピクセ
ルに分割する。S6で塗りつぶしを行なうサブライン毎
にアクティブ・エッジテーブル(以下「AET」とい
う)を更新する。
Next, in order to determine the pixel density for each line (eg, for line Y), the lines and pixels (pixels) are subdivided and divided into sub-lines and sub-pixels. In S6, the active edge table (hereinafter referred to as "AET") is updated for each subline to be filled.

【0047】S7でサブライン上のすべてのベクトル
(V1,V2)との交点を求め、そのX座標値の小さい
方から順に配列して2個ずつエッジペアとし、その間の
サブピクセルを塗りつぶしてゆく。1本のサブライン上
の塗りつぶしを終れば、1本のラインが終了するまで繰
返す。
At S7, the intersections with all the vectors (V1, V2) on the sub-line are obtained, arranged in order from the one having the smallest X-coordinate value to form two edge pairs, and the sub-pixels between them are filled. When the filling on one sub-line is completed, the process is repeated until one line is completed.

【0048】S8では、各画素毎に塗りつぶされている
サブピクセルの数をカウントして画素の面積率Kを決定
する。例えば、25個のうちW個のサブピクセルが塗り
つぶされていれば、ピクセルの面積率はK=W/25で
ある。
In step S8, the area ratio K of pixels is determined by counting the number of sub-pixels filled in for each pixel. For example, if W subpixels out of 25 are filled, the pixel area ratio is K = W / 25.

【0049】S9で面積率K=1であるか否かを判定
し、K=1であればS10に進んで入力された濃度DA
TAを対象画素の新しい濃度Dnと決定してS12にジ
ャンプする。否(K<1)であればS11に進んでリー
ド・モディファイ・ライト処理した濃度を新しい濃度D
nと決定する。
In S9, it is determined whether or not the area ratio K = 1. If K = 1, the process proceeds to S10 and the input density DA
TA is determined as the new density Dn of the target pixel and the process jumps to S12. If not (K <1), the process proceeds to S11, where the read / modify / write processed density is changed to a new density D.
n.

【0050】S12で決定された新しい濃度Dnをフレ
ームメモリ26に書込む。1ライン分の書込みが終了し
たらS13に進んで、すべてのスキャンラインの書込み
即ち1頁分の画像の書込みが終了したか否かを判定し、
否ならばS6に戻り、終了ならばエンドになる。
The new density Dn determined in S12 is written in the frame memory 26. When the writing of one line is completed, the process proceeds to S13, and it is determined whether the writing of all the scan lines, that is, the writing of the image of one page is finished,
If not, the process returns to S6, and if finished, the process ends.

【0051】図1は、第1の発明による画像処理装置
(コントローラ20)の第1実施例のルーチンを示すフ
ロー図であり、図9に示した従来例と同一部分には同一
ステップ番号を付して説明を省略する。図1に示した第
1実施例のフロー図が従来例と異なる所は、S11の代
りにS21乃至S26が加えられたことである。
FIG. 1 is a flow chart showing the routine of the first embodiment of the image processing apparatus (controller 20) according to the first invention, and the same parts as those in the conventional example shown in FIG. And the description is omitted. The flow chart of the first embodiment shown in FIG. 1 is different from the conventional example in that S21 to S26 are added instead of S11.

【0052】S9で面接率K<1と判定されると、S2
1に進んでリード・モディファイ・ライト処理した濃度
を計算するが、従来例のS11と異なり直ちに新しい濃
度Dnと決定しないで、S22に進んで計算された対象
画素Pの処理後の濃度が隣接画素(図5に示した画素
L,R,LU,U,RU)のうちの1個の濃度より小さ
いか否かの濃度比較を行なう。
If it is determined in S9 that the interview rate K <1, S2
The process proceeds to step 1 to calculate the read-modify-write processed density, but unlike S11 of the conventional example, the new density Dn is not immediately determined, and the process proceeds to step S22 where the processed density of the target pixel P is the adjacent pixel. Density comparison is performed to determine whether or not the density is lower than one of the pixels (pixels L, R, LU, U, and RU shown in FIG. 5).

【0053】対象画素Pの濃度が小さければ、S23に
進んで5個の隣接画素との比較がすべて終了するまでS
22を繰返し、すべて終了すなわちいずれの隣接画素の
濃度よりも小さければ、S24に進んで隣接画素のうち
のいずれかの画素の濃度を対象画素Pの新しい濃度Dn
と決定し、S12ジャンプする。
If the density of the target pixel P is low, the process proceeds to S23 and S is performed until the comparison with the five adjacent pixels is completed.
22 is repeated, and if all are completed, that is, if it is lower than the density of any of the adjacent pixels, the process proceeds to S24 and the density of any of the adjacent pixels is changed to the new density Dn of the target pixel P.
Then, S12 jump is performed.

【0054】もし、S22で対象画素Pの濃度が小さく
ない、即ち隣接画素のうち1個でも対象画素Pの濃度と
同じか小さい画素があれば、S25に進んで対象画素P
の処理後の濃度を新しい濃度Dnと決定する。次にS2
6に進んで、隣接画素のうち次に処理すべき画素Rにも
隣接する画素U,RUと対象画素Pとのうち最低濃度の
画素の位置を位置記憶手段、例えばRAM24に記憶さ
せてS12に進む。
If the density of the target pixel P is not small in S22, that is, if even one of the adjacent pixels has a pixel density equal to or smaller than the density of the target pixel P, the process proceeds to S25.
The density after the treatment of is determined as a new density Dn. Then S2
In step S6, the position of the pixel having the lowest density among the pixels U and RU adjacent to the pixel R to be processed next among the adjacent pixels and the target pixel P is stored in the position storage means, for example, the RAM 24, and then in step S12. move on.

【0055】このようにすれば、隣接画素のうちの最低
濃度をMIN,最高濃度をMAXとして、S24で最低
濃度を選択しても新しい濃度はDn=MINであり、最
高濃度を選択してもMAXである。また、S25で決定
された濃度はDn≧MINであり、リード・モディファ
イ・ライト処理された濃度はエッジで接する2個の領域
のうち高い方の濃度を超えることはない。従って、決定
された対象画素の新しい濃度Dnは2個の領域の濃度の
範囲内に収まり、それより明るい又は暗いエッジが発生
することはない。
In this way, if the minimum density of the adjacent pixels is MIN and the maximum density is MAX, the new density is Dn = MIN even if the minimum density is selected in S24, and the maximum density is selected. It is MAX. Further, the density determined in S25 is Dn ≧ MIN, and the density subjected to the read-modify-write processing does not exceed the higher density of the two regions which are in contact with each other at the edge. Therefore, the new density Dn of the determined target pixel falls within the density range of the two regions, and no brighter or darker edge occurs.

【0056】また、S26で次に処理すべき画素Rに隣
接する画素U,RU,Pのうち最低濃度の画素の位置を
記憶することにより、画素Rを対象画素として処理する
時に、他の2個の画素と濃度比較をすることなく、記憶
した位置の画素と画素Rの右及び右上の画素とのみ比較
すればよいから、処理速度が速くなる。
Further, by storing the position of the pixel having the lowest density among the pixels U, RU and P adjacent to the pixel R to be processed next in S26, when the pixel R is processed as the target pixel, the other two pixels are processed. Since it is only necessary to compare the pixel at the stored position with the pixels on the right and upper right of the pixel R without comparing the density with each pixel, the processing speed is increased.

【0057】図6は濃度が連続的に変化する画像の一例
を示す説明図であり、図7は図6に示した画像の各エッ
ジ部近傍の各画素が濃度値としてフレームメモリ26に
展開された状態をそれぞれ示す説明図である。以下、図
6及び図7を用いて、実際のリード・モディファイ・ラ
イト処理について説明する。
FIG. 6 is an explanatory diagram showing an example of an image in which the density continuously changes, and FIG. 7 shows each pixel in the vicinity of each edge portion of the image shown in FIG. 6 expanded in the frame memory 26 as a density value. It is explanatory drawing which shows each state. The actual read-modify-write processing will be described below with reference to FIGS. 6 and 7.

【0058】図6に示したように、互に濃度の異なる領
域A,B,C,Dは、それぞれX座標値X1,X2,X
3の3個のエッジX1,X2,X3により境界を接し、
それらの濃度はそれぞれDa=64,Db=50,Dc
=35,Dd=15である。説明に便なるためエッジは
共に垂直になっているから、それぞれのエッジX1,X
2,X3にかかる画素PX1,PX2,PX3は各ライ
ンに共通である。
As shown in FIG. 6, the regions A, B, C, and D having different densities have X coordinate values X1, X2, and X, respectively.
Boundary is bounded by three edges X1, X2, X3 of 3,
Their concentrations are Da = 64, Db = 50, Dc, respectively.
= 35 and Dd = 15. For convenience of explanation, the edges are both vertical, so that each edge X1, X
Pixels PX1, PX2 and PX3 related to 2 and X3 are common to each line.

【0059】この例では、画素PX1における領域Aの
面積率Ka=80%、領域Bの面積率Kb=(1−K
a)=20%であり、画素PX2における領域Bの面積
率Kb=40%、領域Cの面積率Kc=(1−Kb)=
60%であり、画素PX3における領域Cの面積率Kc
=90%、領域Dの面積率Kd=(1−Kc)=10%
であるとする。
In this example, the area ratio Ka of the region A in the pixel PX1 is 80%, and the area ratio Kb of the region B is Kb = (1-K
a) = 20%, the area ratio Kb of the region B in the pixel PX2 = 40%, and the area ratio Kc of the region C = (1-Kb) =
60%, and the area ratio Kc of the region C in the pixel PX3
= 90%, area ratio of region D Kd = (1-Kc) = 10%
Suppose

【0060】エッジ部にかかる各画素PX1,PX2,
PX3の濃度D1,D2,D3は本来は図7の(A)に
示したように、それぞれ両側の濃度とその面積率との積
の和として求められるから、次の数1に示すようにD1
=61,D2=41,D3=33であることが望まし
い。
Each pixel PX1, PX2, which is related to the edge part
The concentrations D1, D2 and D3 of PX3 are originally obtained as the sum of the products of the concentrations on both sides and their area ratios, as shown in FIG.
It is desirable that = 61, D2 = 41, and D3 = 33.

【0061】[0061]

【数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 D3=Dc*Kc+Dd*Kd =35×0.9+15×0.1=33## 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 D3 = Dc * Kc + Dd * Kd = 35 × 0.9 + 15 × 0.1 = 33

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

【0063】すなわち、従来のリード・モディファイ・
ライト処理では処理中の領域の濃度をD、エッジにかか
る当該画素における面積率をK、読出された対応する画
素の濃度をDmとすれば、書込まれる新しい濃度Dn
は、数2に示すように計算し、決定していた。
That is, the conventional read modify
In the write processing, if the density of the region being processed is D, the area ratio of the pixel at the edge is K, and the density of the corresponding read pixel is Dm, the new density Dn to be written.
Was calculated and determined as shown in Formula 2.

【0064】[0064]

【数2】Dn=D×K+Dm×(1−K)(2) Dn = D × K + Dm × (1-K)

【0065】したがって、当初フレームメモリ26はす
べてクリアされてDm=0であり、領域A(Da=6
4)の処理中は画素PX1より左側の画素の面積率はK
=1であり、画素PX1の面積率はKa=0. 8である
から、数3に示すように、画素PX1より左側の画素の
濃度Dn=64、画素PX1の濃度Dn1=51. 2と
してそれぞれフレームメモリ26に書込まれる。
Therefore, the frame memory 26 is initially cleared to Dm = 0, and the area A (Da = 6) is set.
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 of the pixel PX1 is Ka = 0.8. Therefore, as shown in Equation 3, the density Dn of the pixel on the left side of the pixel PX1 is 64, and the density Dn1 of the pixel PX1 is 51.2. It is written in the frame memory 26.

【0066】[0066]

【数3】Dn=64×1+0×0=64 Dn1=64×0.8+0×0.2=51.2## EQU3 ## Dn = 64 × 1 + 0 × 0 = 64 Dn1 = 64 × 0.8 + 0 × 0.2 = 51.2

【0067】次に、領域B(Db=50)の処理を行な
うと、画素PX1については面積率はKb=0.2、読
出される濃度Dm1=51.2であり、画素PX1,P
X2に挾まれた画素の面積率はK=1でDm=0であ
り、さらに、画素PX2については面積率はKb=0.
4、Dm=0であるから、数4に示すように、画素PX
1の修正された濃度D1=Dn1=51、画素PX1,
PX2に挾まれた画素の濃度Dn=50、及び画素PX
2の濃度Dn2=20になる。
Next, when the area B (Db = 50) is processed, the area ratio of the pixel PX1 is Kb = 0.2 and the density Dm1 = 51.2 to be read out, and the pixels PX1 and Px1.
The area ratio of the pixels sandwiched by X2 is K = 1 and Dm = 0, and for the pixel PX2, the area ratio is Kb = 0.
4 and Dm = 0, the pixel PX is
1 modified density D1 = Dn1 = 51, pixel PX1,
The density Dn of the pixel sandwiched by PX2 = 50, and the pixel PX
The density of 2 becomes Dn2 = 20.

【0068】[0068]

【数4】Dn1=50×0.2+51.2×0.8 =50.96≒51=D1 Dn=50×1+0×0=50 Dn2=50×0.4+0×0.6=20Dn1 = 50 × 0.2 + 51.2 × 0.8 = 50.96≈51 = D1 Dn = 50 × 1 + 0 × 0 = 50 Dn2 = 50 × 0.4 + 0 × 0.6 = 20

【0069】領域C(Dc=35)についても同様に、
画素PX2の面積率はKc=0.6でDm2=20であ
り、画素PX2,PX3に挾まれた画素の面積率はK=
1でDm=0であり、画素PX3の面積率はKc=0.
9でDm=0であるから、数5に示すように、画素PX
2の修正された濃度D2=Dn2=29、画素PX2,
PX3に挾まれた画素の濃度Dn=35、及び画素PX
3の濃度Dn3=31.5になる。
Similarly for the area C (Dc = 35),
The area ratio of the pixel PX2 is Kc = 0.6 and Dm2 = 20, and the area ratio of the pixel sandwiched between the pixels PX2 and PX3 is K =
1, Dm = 0, and the area ratio of the pixel PX3 is Kc = 0.
Since Dm = 0 at 9, the pixel PX is
2 modified densities D2 = Dn2 = 29, pixels PX2,
The density Dn of the pixel sandwiched by PX3 = 35, and the pixel PX
The density of 3 becomes Dn3 = 31.5.

【0070】[0070]

【数5】 Dn2=35×0.6+20×0.4=29=D2 Dn=35×1+0×0=35 Dn3=35×0.9+0×0.1=31.5Dn2 = 35 × 0.6 + 20 × 0.4 = 29 = D2 Dn = 35 × 1 + 0 × 0 = 35 Dn3 = 35 × 0.9 + 0 × 0.1 = 31.5

【0071】最後に、領域D(Dd=15)の処理を行
なうと、画素PX3の面積率はKd=0.1でDm3=
31.5であり、画素PX3より右側の画素の面積率は
K=1でDm=0であるから、数6に示すように、画素
PX3の修正された濃度D3=Dn3=30、画素PX
3より右側の画素の濃度Dn=15になる。
Finally, when the area D (Dd = 15) is processed, the area ratio of the pixel PX3 is Kd = 0.1 and Dm3 =
Since the area ratio of the pixel on the right side of the pixel PX3 is K = 1 and Dm = 0, the corrected density D3 = Dn3 = 30 of the pixel PX3 and the pixel PX are obtained as shown in Expression 6.
The density of the pixel on the right side of 3 is Dn = 15.

【0072】[0072]

【数6】Dn3=15×0.1+31.5×0.9 =29.85≒30=D3 Dn=15×1+0×0=15## EQU6 ## Dn3 = 15 × 0.1 + 31.5 × 0.9 = 29.85≈30 = D3 Dn = 15 × 1 + 0 × 0 = 15

【0073】上記のように処理され、フレームメモリ2
6に書込まれた濃度データを図7の(B)に示す。図7
の(C)に示した従来処理の例は、図7の(A)に示し
た例に比べてエッジにかかる画素PX1,PX2,PX
3の濃度D1,D2,D3の値が共に低くなっている。
それでも、画素PX1の濃度D1=51はDa>D1>
Dbの関係にあり、画素PX3の濃度D3=30もDc
>D3>Ddにあるから、濃度誤差がそれぞれ10及び
3であっても目立たず、画質低下と感じられる恐れはな
い。
The frame memory 2 is processed as described above.
The density data written in No. 6 is shown in FIG. Figure 7
In the example of the conventional processing shown in FIG. 7C, the pixels PX1, PX2 and PX which are related to the edge are compared with the example shown in FIG.
The values of the densities D1, D2 and D3 of No. 3 are both low.
Nevertheless, the density D1 = 51 of the pixel PX1 is Da>D1>
There is a relationship of Db, and the density D3 = 30 of the pixel PX3 is also Dc.
Since>D3> Dd, even if the density errors are 10 and 3, they are not conspicuous and there is no fear that the image quality will be deteriorated.

【0074】しかしながら、画素PX2の濃度D2=2
9は、濃度誤差が12あるということではなく、Db>
D2<Dcの関係にあるために、Dcより濃度差が僅か
に6低いだけでも、そこに在るべきでない明るい細線と
して目立つから、画質を著しく損なう。一般に、濃度の
高い方の領域の面積率が(低い濃度/高い濃度)未満で
あれば、明るい細線が現れる。
However, the density D2 of the pixel PX2 = 2
9 does not mean that the density error is 12, but Db>
Due to the relationship of D2 <Dc, even if the density difference is only 6 lower than Dc, it is conspicuous as a bright thin line that should not be there, and the image quality is significantly impaired. In general, if the area ratio of the higher density region is less than (low density / high density), bright thin lines appear.

【0075】この実施例においても、以上説明したリー
ド・モディファイ・ライト処理は、図4の(B)に示し
たRMW制御部34のLUT回路42により行なわれ
る。LUT回路42は予め計算した結果を格納したLU
T(ルックアップ・テーブル)を用いて、濃度DATA
(D),面積率K,読出した濃度Dmを入力して直ちに
新しい濃度Dnをラッチ部43に出力するから、処理は
瞬時に行なわれている。
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.
Concentration DATA using T (look-up table)
(D), the area ratio K, and the read density Dm are input and a new density Dn is immediately output to the latch section 43, so that the processing is instantaneously performed.

【0076】K=1の時はCPU22から入力した濃度
Dが、K=0の時は読出した濃度Dmが、それぞれ新し
い濃度Dnとして出力されることは以上の説明から明ら
かである。
It is apparent from the above description that the density D input from the CPU 22 is output when K = 1, and the read density Dm is output as a new density Dn when K = 0.

【0077】この発明による実施例が従来例と異なる所
は、バッファ43a〜43cからなるラッチ部43と、
濃度決定手段である演算部44とを設けたことである。
例えば、LUT回路42から出力された画素PX1の濃
度Dnが、ラッチ部43のバッファ43cを経てバッフ
ァ43bに格納された時、バッファ43a,43b,4
3cが演算部44に出力する出力A,B,Cはそれぞれ
画素PX1を中心として連続した前後の画素すなわち左
隣りから右隣りの画素までのリード・モディファイ・ラ
イト処理した濃度である。
The embodiment according to the present invention is different from the prior art in that a latch section 43 including buffers 43a to 43c,
That is, the calculation unit 44, which is a concentration determination unit, is provided.
For example, when the density Dn of the pixel PX1 output from the LUT circuit 42 is stored in the buffer 43b via the buffer 43c of the latch unit 43, the buffers 43a, 43b, 4
The outputs A, B, and C output from the 3c to the calculation unit 44 are the densities obtained by the read-modify-write process from the pixels preceding and succeeding the pixel PX1 that are continuous, that is, from the left adjacent pixel to the right adjacent pixel.

【0078】すなわち、図6及び図7に示した例では、
画素PX1,PX2,PX3の各両隣り及びその上のラ
インの画素(図5に示した画素L,LU,R,RU)は
エッジ部にかからないから面積率K=1であり、従って
出力A,Cはそれぞれ領域A,B又は領域B,C又は領
域C,Dの濃度である。
That is, in the example shown in FIGS. 6 and 7,
The pixels adjacent to each of the pixels PX1, PX2, and PX3 and the pixels on the line above them (pixels L, LU, R, and RU shown in FIG. 5) do not cover the edge portion, and thus the area ratio K = 1. Therefore, the output A, C is the density of the regions A and B or the regions B and C or the regions C and D, respectively.

【0079】図1にフロー図を示した第1実施例の演算
部44は、対象画素(図5における画素P)のリード・
モディファイ・ライト処理された濃度(出力B)を、左
右に隣接する2個の画素(L,R)及び既に処理された
ライン(Y−1)上の(フレームメモリ26からDmと
して読出す)隣接する3個の画素(LU,U,RU)と
比較して、いずれの濃度よりも低い場合は隣接画素のう
ちのいずれかの濃度をフレームメモリ26に書込む濃度
Dnとし、それ以外は出力Bを濃度Dnとする。
The operation unit 44 of the first embodiment, whose flow chart is shown in FIG. 1, reads the target pixel (pixel P in FIG. 5).
The density (output B) subjected to the modify write processing is adjacent (read as Dm from the frame memory 26) on two pixels (L, R) adjacent to the left and right and a line (Y-1) already processed. If the density is lower than any of the three pixels (LU, U, RU), the density of one of the adjacent pixels is set as the density Dn to be written in the frame memory 26, and the other is output B. Is the concentration Dn.

【0080】前者のいずれの濃度よりも低い場合に、隣
接画素のうちのいずれの画素の濃度をDnとするかを予
め決めておけばよく、いずれをとっても、そのエッジ部
で隣接する2個の領域のうち高濃度の領域よりも暗いエ
ッジや、低濃度の領域よりも明るいエッジが現れること
はないから、画質の低下を招くことがない。ここでは、
最も簡単に左隣りの画素Lの濃度(出力A)をDnとす
る例で説明する。
When the density is lower than any of the former ones, it is sufficient to determine in advance which pixel of the adjacent pixels has the density of Dn. Since no darker edge than the high-density area or brighter edge than the low-density area does not appear in the area, the image quality is not deteriorated. here,
The simplest example will be described in which the density (output A) of the pixel L on the left is Dn.

【0081】図6及び図7に示した例において、画素P
X1(D=51)及び画素PX3(D=30)は、いず
れも右隣りの画素濃度D=50及びD=15よりも大き
いから、出力Bが新しい濃度Dnとしてフレームメモリ
26に書込まれる。
In the example shown in FIGS. 6 and 7, the pixel P
Since X1 (D = 51) and pixel PX3 (D = 30) are both larger than the pixel densities D = 50 and D = 15 on the right side, the output B is written in the frame memory 26 as a new density Dn.

【0082】画素PX2(D=29)の場合は、画素
L,LU(D=50)や画素R,RU(D=35)、及
び次に述べる処理により既にD=50になっている画素
Uのいずれよりも低いから、図7の(B)に示したよう
に、左隣りの画素Lの濃度D=50(出力A)を新しい
濃度Dnとしてフレームメモリ26に書込む。画素Uの
濃度D=50は、ライン(Y−1)を処理した時に同じ
ように決められたものである。
In the case of the pixel PX2 (D = 29), the pixels L and LU (D = 50), the pixels R and RU (D = 35), and the pixel U which has already become D = 50 by the processing described below. 7B, the density D = 50 (output A) of the pixel L on the left is written as a new density Dn in the frame memory 26, as shown in FIG. 7B. The density D = 50 of the pixel U is similarly determined when the line (Y-1) is processed.

【0083】もし、予め右隣りの画素Rの濃度(出力
C)をDnとすると決めていた場合でも、画素Uの濃度
はD=35になっているから、画素PX2の濃度D=2
9がすべての隣接画素の濃度よりも低い関係は変ること
がない。
Even if it has been decided in advance that the density (output C) of the pixel R on the right side is Dn, since the density of the pixel U is D = 35, the density D of the pixel PX2 is D = 2.
The relationship in which 9 is lower than the densities of all adjacent pixels remains unchanged.

【0084】図1に示したフロー図のS26における処
理は、例えば画素PX1又はPX3の場合、比較した隣
接画素のうち次に処理すべき画素Rにも隣接する画素
U,RU及び対象画素Pのうちの最低濃度(D=50又
は15)の画素RUの位置をRAM24に記憶させてお
けば、次に画素Rが対象画素となった時に、画素P,U
との比較を行なう必要がなく、処理時間を短縮出来るこ
とは既に説明した通りである。
For example, in the case of the pixel PX1 or PX3, the processing in S26 of the flow chart shown in FIG. 1 is performed for the pixels U, RU and the target pixel P which are also adjacent to the pixel R to be processed next among the compared adjacent pixels. If the position of the pixel RU having the lowest density (D = 50 or 15) among them is stored in the RAM 24, the pixel P and the pixel P when the pixel R becomes the target pixel next time.
As described above, the processing time can be shortened without the need to compare with.

【0085】図8は、第2の発明による画像処理装置の
第2実施例のルーチンを示すフロー図であり、図1に示
した第1実施例と同一部分には同一ステップ番号を付し
て説明を省略する。図8に示した第2実施例が第1実施
例と異なる所は、S22乃至S26の代りにS32乃至
S35を設けたことである。
FIG. 8 is a flow chart showing a routine of the second embodiment of the image processing apparatus according to the second invention. The same parts as those of the first embodiment shown in FIG. 1 are designated by the same step numbers. The description is omitted. The second embodiment shown in FIG. 8 is different from the first embodiment in that S32 to S35 are provided instead of S22 to S26.

【0086】S21で計算された対象画素Pの濃度すな
わち出力Bを、S32とS33とで順に左右の画素L,
Rの各濃度すなわち出力A,Cと比較して、出力Bが出
力A,Cのいずれよりも小さくなければS35に進み、
出力Bを対象画素Pの新しい濃度Dnと決定してS12
に進む。もし、出力Bが出力A,Cのいずれよりも小さ
ければS34に進んで、左右に隣接する画素L,Rのい
ずれか又は両方の濃度に応じて新しい濃度Dnを決定し
てS12に進む。
The densities of the target pixel P calculated in S21, that is, the output B, are compared in S32 and S33 with the left and right pixels L,
If the output B is smaller than either the output A or C as compared with each concentration of R, that is, the output A or C, the process proceeds to S35.
The output B is determined as the new density Dn of the target pixel P and S12 is determined.
Proceed to. If the output B is smaller than the outputs A and C, the process proceeds to S34, a new density Dn is determined according to the densities of one or both of the left and right pixels L and R, and the process proceeds to S12.

【0087】S34における対象画素Pの新しい濃度D
nの決定は、(1)左側の画素Lの濃度すなわち出力
A、(2)右側の画素Rの濃度すなわち出力C、(3)
出力A,Cの大きい方の濃度、(4)出力A,Cのうち小
さい方の濃度、(5)出力A,Cの平均値のいずれを採
用してもよく、予め(1)乃至(5)のいずれかを決定して
おけばよい。
New density D of the target pixel P in S34
n is determined by (1) the density of the left pixel L, that is, the output A, and (2) the density of the right pixel R, that is the output C, (3).
Any one of the larger density of the outputs A and C, (4) the smaller density of the outputs A and C, and (5) the average value of the outputs A and C may be adopted. ) Either of them should be decided.

【0088】以上説明したように、第2実施例において
は対象画素の濃度を左右2個の画素と比較するだけであ
るから、第1実施例のように5個の隣接画素と比較する
場合よりも処理時間が短縮される。また、図4の(B)に
示したように3個のバッファ43a〜43cを設けたこ
とにより、比較する度にフレームメモリ26から読出す
必要がないから、処理時間を更に短縮することが出来
る。
As described above, in the second embodiment, since the density of the target pixel is only compared with the two left and right pixels, it is more than the case of comparing with the five adjacent pixels as in the first embodiment. Also reduces processing time. Further, by providing the three buffers 43a to 43c as shown in FIG. 4B, it is not necessary to read from the frame memory 26 each time a comparison is made, so that the processing time can be further shortened. .

【0089】3個のバッファ43a〜43cは、その数
を減らしても同様な効果を得ることが出来る。即ち、図
4の(B)においてバッファ43cを排し、LUT回路4
2から直接にバッファ43bに出力すると共に出力Cと
して演算部44に入力させても作用は変らない。さら
に、バッファ43aも排して、バッファ43bのみと
し、左側の画素Lの濃度である出力Aをフレームメモリ
26から読出して演算部44内にラッチさせれば、バッ
ファは1個で済む。
The same effect can be obtained by reducing the number of the three buffers 43a to 43c. That is, in FIG. 4B, the buffer 43c is removed and the LUT circuit 4
Even if the data is directly output from the buffer 2 to the buffer 43b and is also input as the output C to the arithmetic unit 44, the operation does not change. Further, if the buffer 43a is also eliminated and only the buffer 43b is provided and the output A, which is the density of the pixel L on the left side, is read from the frame memory 26 and latched in the arithmetic unit 44, only one buffer is required.

【0090】図9は、第3の発明による画像処理装置の
第3実施例のルーチンを示すフロー図であり、図1及び
図8に示した第1及び第2実施例と同一部分である「ス
タート」乃至S8及びS13と「エンド」を省略してい
る。また、同一部分であり同一ステップ番号を付したS
9,S10,S12,S21は詳しい説明を省略する。
この第3実施例は、バッファが2個又は3個の場合も実
施出来ることはいうまでもないが、図9に示したフロー
図はバッファが1個の場合の例である。
FIG. 9 is a flow chart showing the routine of the third embodiment of the image processing apparatus according to the third invention, which is the same part as the first and second embodiments shown in FIGS. 1 and 8. “Start” through S8 and S13 and “end” are omitted. In addition, S that is the same part and has the same step number
Detailed description of 9, S10, S12, and S21 is omitted.
Needless to say, the third embodiment can be implemented when there are two or three buffers, but the flow chart shown in FIG. 9 is an example when there is one buffer.

【0091】対象画素Pの面積率Kを決定したS8から
S9に入ると、面接率Kを判定してK=1であれば、S
10で入力した濃度DATAを画素濃度DnとしてS1
2にジャンプする。S9でK≠0(K<1)と判定され
ると、S21に進んでリード・モディファイ・ライト処
理による濃度を計算した後、S41に進む。
When the area ratio K of the target pixel P is determined and the process goes from S8 to S9, the interview ratio K is determined, and if K = 1, S
The density DATA input in 10 is set as the pixel density Dn, and S1 is set.
Jump to 2. If it is determined in step S9 that K ≠ 0 (K <1), the process proceeds to step S21, the density by the read-modify-write process is calculated, and then the process proceeds to step S41.

【0092】S41では、リード・モディファイ・ライ
ト処理のためにフレームメモリ26から読出した対象画
素Pの濃度(リード値)が0か否かを判定して、0であ
ればS45にジャンプし、否すなわち0でなければS4
2に進んで計算された対象画素Pの濃度をバッファ(例
えば43b)に格納し、S43でLUT回路42に次に
画素Rのリード・モディファイ・ライト処理を実行させ
る。これにより出力B,Cはそれぞれ対象画素P及び次
の画素Rの濃度を示すから、画素Lの濃度をフレームメ
モリ26から読出せば、左右の画素との比較が可能にな
る。
In S41, it is determined whether or not the density (read value) of the target pixel P read from the frame memory 26 for the read / modify / write processing is 0. If it is 0, the process jumps to S45. That is, if not 0, S4
In step S43, the calculated density of the target pixel P is stored in the buffer (for example, 43b), and the LUT circuit 42 is caused to execute the read-modify-write process for the pixel R in S43. As a result, the outputs B and C indicate the densities of the target pixel P and the next pixel R, respectively. Therefore, if the densities of the pixel L are read from the frame memory 26, comparison with the left and right pixels becomes possible.

【0093】S44(図8のS32とS33に対応)で
対象画素Pの濃度が左右の画素L,Rの濃度の範囲内す
なわち中間値であるか否かを判定し、左右の画素濃度の
中間値であればS45に進んで対象画素Pのリード・モ
ディファイ・ライト処理した濃度すなわち出力Bを新し
い濃度DnとしてS12に進む。
In S44 (corresponding to S32 and S33 in FIG. 8), it is determined whether or not the density of the target pixel P is within the range of the density of the left and right pixels L and R, that is, an intermediate value. If it is a value, the process proceeds to S45, and the read / modify / write processed density of the target pixel P, that is, the output B is set as a new density Dn, and the process proceeds to S12.

【0094】否すなわち対象画素Pの濃度が左右の画素
L,Rのいずれの濃度よりも大きいか又は小さければS
46に進んで、左右の画素濃度の中間値のうちいずれか
の値を新しい濃度DnとしてS12に進む。濃度の中間
値は、左右の画素のいずれか高濃度の画素の濃度以下で
低濃度の画素の濃度以上の濃度値であり、採用する中間
値としては高濃度の値でも低濃度の値でもよいが、一般
的には両者の平均値を採用すれば、濃度の変化がよりス
ムースになる。
No, that is, if the density of the target pixel P is higher or lower than the density of any of the left and right pixels L and R, S
In step S46, one of the intermediate values of the left and right pixel densities is set as the new density Dn, and the process proceeds to step S12. The intermediate value of the densities is a density value that is less than or equal to the density of the high-density pixel of either of the left and right pixels and is greater than or equal to the density of the low-density pixel, and the intermediate value to be adopted may be a high-density value or a low-density value. However, in general, if the average value of both is adopted, the change in density becomes smoother.

【0095】S12で決定された濃度Dnをフレームメ
モリ26に書込むと、S47に進んで次の画素Rの濃度
を計算してあるか否か、即ちS43を経由して来たか否
かを判定し、前者すなわちLUT回路42の出力が画素
Rの濃度になっていればその濃度値をバッファに格納さ
せるためにS42に戻り、否であればS13に行き、全
てのスキャンラインが終了するまで繰返す。
When the density Dn determined in S12 is written in the frame memory 26, it is determined in S47 whether or not the density of the next pixel R has been calculated, that is, whether or not the density has passed through S43. If the former, that is, the output of the LUT circuit 42 has the density of the pixel R, the process returns to S42 to store the density value in the buffer, and if not, the process goes to S13 and repeats until all scan lines are completed. .

【0096】図9に示した第3実施例のフロー図によっ
て図形を処理する例について説明する。図10の(A)
はハッチングを施して示したベクトル図形と各画素との
相対位置を、図10の(B)はそのベクトル図形が書込
まれたフレームメモリ26の一部の各画素の濃度値をそ
れぞれ示す説明図であり、図示した部分は3本のライン
Y−1,Y,Y+1の各7個の画素P0乃至P6からな
っている。
An example of processing a graphic according to the flow chart of the third embodiment shown in FIG. 9 will be described. FIG. 10 (A)
Is an illustration showing the relative positions of the hatched vector graphic and each pixel, and FIG. 10B is an explanatory diagram showing the density values of some of the pixels of the frame memory 26 in which the vector graphic is written. The illustrated portion is composed of seven pixels P0 to P6 in each of three lines Y-1, Y, Y + 1.

【0097】始めにクリアされて全画素が0になってい
たフレームメモリ26に、図10の(A)に示した濃度
D=64の図形が書込まれると、各画素の濃度値は図1
0の(B)に示した値になる。例えばラインYについて
説明すると、図形外の画素P0,P6の濃度は0のまま
であり、エッジ部にかかる画素P1,P5は面積率K=
50%,47%で、図形内の画素P2〜P4は面積率K
=1であり、入力する濃度DATAはそれぞれD=64
である。
When the figure with the density D = 64 shown in FIG. 10A is written in the frame memory 26 which was initially cleared so that all the pixels are 0, the density value of each pixel is as shown in FIG.
The value becomes 0 (B). For example, in the case of the line Y, the densities of the pixels P0 and P6 outside the figure remain 0, and the area ratio K of the pixels P1 and P5 on the edge portion is
50% and 47%, the pixels P2 to P4 in the figure have an area ratio K
= 1 and the input concentration DATA is D = 64, respectively.
Is.

【0098】したがって、画素P1,P5はそれぞれK
=0.5,0.47即ちK≠1であるから、S9からS2
1に進む。数2に示した計算式において、Dm=0であ
るから、画素P1,P5の濃度としてそれぞれ32,3
0が得られる。次に、リード値(Dm)=0であるから
S41からS45に進んで、得られた濃度をDnとした
後、S12に進む。
Therefore, the pixels P1 and P5 are K
= 0.5, 0.47, that is, K ≠ 1, so S9 to S2
Go to 1. Since Dm = 0 in the calculation formula shown in Equation 2, the densities of the pixels P1 and P5 are 32 and 3 respectively.
0 is obtained. Next, since the read value (Dm) = 0, the process proceeds from S41 to S45, sets the obtained concentration to Dn, and then proceeds to S12.

【0099】画素P2〜P4はそれぞれK=1であるか
ら、S9からS10に進んでDn=64として、S12
に進む。S12でそれぞれのDnをフレームメモリ26
に書込むから、図10の(B)に示したように、ライン
YにはP1〜P5の濃度値32,64,64,64,3
0が形成される。他のラインY−1,Y+1も同様であ
る。
Since the pixels P2 to P4 have K = 1 respectively, the process proceeds from S9 to S10, sets Dn = 64, and sets S12.
Proceed to. In S12, each Dn is set to the frame memory 26
Therefore, as shown in FIG. 10B, the density values 32, 64, 64, 64, 3 of P1 to P5 are recorded in the line Y.
0 is formed. The same applies to the other lines Y-1 and Y + 1.

【0100】この様に形成された図形を消去する場合
に、図10の(A)に示した図形の濃度を0としたもの
をオーバーライトする方法が行われるが、数2に示した
計算式のみによる従来例では、K=1であるラインYの
画素P2〜P4は0になるが、エッジ部にかかるK<1
の画素においては濃度が図10の(B)に示した各濃度
Dmと(1−K)との積であるから0にならず、図11
の(B)に示すように、枠が淡い濃度ではあるが残って
了う。
In the case of erasing the figure formed in this way, the method of overwriting the figure shown in FIG. 10A with the density of 0 is performed. In the conventional example based on only, the pixels P2 to P4 of the line Y with K = 1 are 0, but K <1 applied to the edge portion.
11 does not become zero because the density is the product of the respective densities Dm and (1-K) shown in FIG.
As shown in (B) of No. 3, although the frame has a light density, it remains.

【0101】第3実施例によれば、K=1である画素は
S9,S10,S12と進んでDn=DATA=0にな
る。また、エッジ部にかかるK<1の画素、例えばライ
ンYの画素P1は、S9からS21に進んでDATA=
0,K=0.5,Dm=32から従来例と同様に濃度値
16が得られる。次に、リード値Dm≠0であったか
ら、S41からS42に進んで画素P1の濃度16をバ
ッファに格納した後、S43で次の画素P2の濃度を計
算し、DATA=0,K=1からDm(=64)とは無
関係に濃度値0が得られる。
According to the third embodiment, the pixel having K = 1 advances to S9, S10 and S12 and becomes Dn = DATA = 0. Further, the pixel of K <1 applied to the edge portion, for example, the pixel P1 of the line Y proceeds from S9 to S21 and DATA =
From 0, K = 0.5 and Dm = 32, the density value 16 is obtained as in the conventional example. Next, since the read value Dm ≠ 0, the process proceeds from S41 to S42 to store the density 16 of the pixel P1 in the buffer, and then the density of the next pixel P2 is calculated in S43, and DATA = 0, K = 1 is calculated. A density value of 0 is obtained regardless of Dm (= 64).

【0102】S44で、画素P1濃度(16)を左右の
画素P0,P2の濃度(いずれも0)と比較すると、左
右いずれよりも大きい即ち中間値ではないから、S46
に進んで画素P0,P2の濃度の中間値をDnとする。
中間値として左右の画素P0,P2のいずれをとって
も、或いはその平均値をとっても0であるから、Dn=
0となる。画素P5についても同様である。
In S44, the density of the pixel P1 (16) is compared with the densities of the left and right pixels P0 and P2 (both are 0).
Then, the intermediate value of the densities of the pixels P0 and P2 is set to Dn.
Since either the right or left pixel P0 or P2 is taken as an intermediate value or the average value thereof is 0, Dn =
It becomes 0. The same applies to the pixel P5.

【0103】したがって、第3実施例によれば、図11
の(A)に示すように、図形に関係するすべての画素の
濃度は0になって、図形は完全に消去される。すなわ
ち、図形の描画のみならず、その消去に際しても画質を
低下させることがない。
Therefore, according to the third embodiment, as shown in FIG.
(A), the density of all the pixels related to the figure becomes 0, and the figure is completely erased. That is, the image quality is not deteriorated not only when the figure is drawn but also when the figure is erased.

【0104】[0104]

【発明の効果】以上説明したように、この発明による画
像処理装置は、従来のアンチ・エイリアシング処理,リ
ード・モディファイ・ライト処理と同等の処理時間で画
質の低下を招くことなく画素の濃度を決定することが出
来る。
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】この発明による画像処理装置の第1実施例のル
ーチンを示すフロー図である。
FIG. 1 is a flowchart showing a routine of a first embodiment of an image processing apparatus 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】対象画素とそれに隣接する画素の位置関係を示
す説明図である。
FIG. 5 is an explanatory diagram showing a positional relationship between a target pixel and pixels adjacent thereto.

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

【図7】図6に示した画像がフレームメモリ上に展開さ
れた状態の濃度値の例を示す説明図である。
7 is an explanatory diagram showing an example of density values in a state where the image shown in FIG. 6 is expanded on a frame memory.

【図8】第2実施例のルーチンを示すフロー図である。FIG. 8 is a flowchart showing a routine of a second embodiment.

【図9】第3実施例のルーチンを示すフロー図である。FIG. 9 is a flowchart showing a routine of a third embodiment.

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

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

【図12】従来例のルーチンを示すフロー図である。FIG. 12 is a flowchart showing a routine of a conventional example.

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

10 ホストマシン 15 プリンタ 20 コントローラ(画像処理装置) 22 CPU 24 RAM(位置記憶手段) 43a〜43c
バッファメモリ 44 演算部(濃度決定手段)
10 Host Machine 15 Printer 20 Controller (Image Processing Device) 22 CPU 24 RAM (Position Storage Means) 43a to 43c
Buffer memory 44 Calculation unit (concentration determining means)

Claims (4)

【特許請求の範囲】[Claims] 【請求項1】 ベクトルで表示されたエッジにより形成
された画像の前記エッジに囲まれた領域を塗りつぶすた
め、対象画素のアンチ・エイリアシング処理した濃度を
リード・モディファイ・ライト処理することによりフレ
ームメモリ上に書込む対象画素の濃度を決定する画像処
理装置において、 リード・モディファイ・ライト処理された前記対象画素
の面積率が1未満であって、その濃度が前記フレームメ
モリ上の前記対象画素の左右に隣接する2個及び既にリ
ード・モディファイ・ライト処理されたスキャンライン
上の前記対象画素に隣接する3個の各画素のうちのいず
れの濃度よりも低い場合は、前記隣接する5個の画素の
うちのいずれかの濃度を前記対象画素のフレームメモリ
に書込む濃度とする濃度決定手段を設けたことを特徴と
する画像処理装置。
1. In order to fill a region surrounded by the edge of an image formed by edges displayed as a vector, an anti-aliased density of a target pixel is subjected to a read-modify-write process to thereby perform a read-modify-write process on a frame memory. In the image processing device for determining the density of the target pixel to be written in, the area ratio of the target pixel subjected to the read-modify-write processing is less than 1, and the density is on the left and right of the target pixel on the frame memory. If the density is lower than the density of any of the two adjacent pixels and the three pixels adjacent to the target pixel on the scan line that has already undergone the read-modify-write processing, then the density of the adjacent five pixels A density determining means for setting any of the densities as a density to be written in the frame memory of the target pixel. That image processing apparatus.
【請求項2】 請求項1記載の画像処理装置において、
前記対象画素及び前記隣接する5個の画素のうち、次に
処理すべき画素に隣接する画素のうちの最低濃度の画素
の位置を記憶する位置記憶手段を設け、前記濃度決定手
段が前記次に処理すべき画素を処理する時に前記位置記
憶手段に記憶された位置の画素から濃度の比較を開始す
るようにしたことを特徴とする画像処理装置。
2. The image processing apparatus according to claim 1,
Position storage means for storing the position of the lowest density pixel of the pixels adjacent to the pixel to be processed next among the target pixel and the five adjacent pixels is provided, and the density determination means is configured to An image processing apparatus, characterized in that when processing a pixel to be processed, the density comparison is started from the pixel at the position stored in the position storage means.
【請求項3】 ベクトルで表示されたエッジにより形成
された画像の前記エッジに囲まれた領域を塗りつぶすた
め、対象画素のアンチ・エイリアシング処理した濃度を
リード・モディファイ・ライト処理することによりフレ
ームメモリ上に書込む対象画素の濃度を決定する画像処
理装置において、 リード・モディファイ・ライト処理された前記対象画素
の面積率が1未満であって、その濃度が前記フレームメ
モリ上の前記対象画素の左右に隣接する画素のいずれの
濃度よりも低い場合は、前記左右に隣接する画素のいず
れか又は両方の濃度に応じて前記対象画素のフレームメ
モリに書込む濃度を決定する濃度決定手段を設けたこと
を特徴とする画像処理装置。
3. In order to fill an area surrounded by the edges of an image formed by the edges displayed as vectors, the anti-aliased density of the target pixel is subjected to read-modify-write processing so that it is stored in the frame memory. In the image processing device for determining the density of the target pixel to be written in, the area ratio of the target pixel subjected to the read-modify-write processing is less than 1, and the density is on the left and right of the target pixel on the frame memory. When the density is lower than that of any of the adjacent pixels, the density determining means for determining the density to be written in the frame memory of the target pixel according to the density of one or both of the pixels adjacent to the left and right is provided. A characteristic image processing device.
【請求項4】 ベクトルで表示されたエッジにより形成
された画像の前記エッジに囲まれた領域を塗りつぶすた
め、対象画素のアンチ・エイリアシング処理した濃度を
リード・モディファイ・ライト処理することによりフレ
ームメモリ上に書込む対象画素の濃度を決定する画像処
理装置において、 リード・モディファイ・ライト処理された画素の濃度を
一時的に格納するバッファメモリと、リード・モディフ
ァイ・ライト処理された前記対象画素の面積率が1未満
であり且つ該対象画素の前記フレームメモリから読出し
た濃度が0でない時に、前記リード・モディファイ・ラ
イト処理された対象画素の濃度が前記フレームメモリ上
の前記対象画素の左右に隣接する画素のうちのいずれの
リード・モディファイ・ライト処理された濃度よりも低
い場合は、前記左右に隣接する画素の濃度の中間値を前
記対象画素のフレームメモリに書込む濃度とする濃度決
定手段とを設けたことを特徴とする画像処理装置。
4. In order to fill a region surrounded by the edges of an image formed by the edges displayed as a vector, the anti-aliased density of the target pixel is subjected to a read-modify-write process so that it is stored in the frame memory. In an image processing apparatus for determining the density of a target pixel to be written in, a buffer memory for temporarily storing the density of a read-modify-write processed pixel, and an area ratio of the read-modify-write processed target pixel Is less than 1 and the density of the target pixel read from the frame memory is not 0, the density of the target pixel subjected to the read-modify-write processing is adjacent to the right and left of the target pixel on the frame memory. Lower than any of the read-modify-write processed densities of Case, the image processing apparatus characterized by intermediate values of the density of pixels adjacent to the right and left are provided and concentration determination means for the writing density in a frame memory of the target pixel.
JP24622992A 1992-09-16 1992-09-16 Picture processor Pending JPH0696222A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP24622992A JPH0696222A (en) 1992-09-16 1992-09-16 Picture processor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP24622992A JPH0696222A (en) 1992-09-16 1992-09-16 Picture processor

Publications (1)

Publication Number Publication Date
JPH0696222A true JPH0696222A (en) 1994-04-08

Family

ID=17145437

Family Applications (1)

Application Number Title Priority Date Filing Date
JP24622992A Pending JPH0696222A (en) 1992-09-16 1992-09-16 Picture processor

Country Status (1)

Country Link
JP (1) JPH0696222A (en)

Similar Documents

Publication Publication Date Title
US7945114B2 (en) Image transform method for obtaining expanded image data, image processing apparatus and image display device therefore
US4733230A (en) Method of displaying continuous tone picture using limited number of different colors or black-and-white levels, and display system therefor
US4992955A (en) Apparatus for representing continuous tone and high contrast images on a bilevel display
KR0173456B1 (en) Dither image processing method
US4720705A (en) Virtual resolution displays
US20050226538A1 (en) Video scaling
US4799105A (en) Modified technique for suppression of flicker in interlaced video images
JPH0126072B2 (en)
JP3142550B2 (en) Graphic processing unit
US4607340A (en) Line smoothing circuit for graphic display units
JPH05303375A (en) Character font data output device
US5559530A (en) Image data processing apparatus
JPH0589237A (en) Image reducing device and image display device
US6978045B1 (en) Image-processing apparatus
JPH0696222A (en) Picture processor
US11328691B2 (en) Method of displaying image on display panel, method of driving display panel including the same and display apparatus performing the same
JP3493745B2 (en) Drawing device
JPH0683968A (en) Picture processor
JPS6223353B2 (en)
JPH06103382A (en) Image processor
US20050110799A1 (en) Edge smoothing systems and methods
KR100339900B1 (en) Image display apparatus
JPH0256677B2 (en)
JP4215225B2 (en) Image processing apparatus and image processing method
JP3015075B2 (en) How to make a cutout mask