JP2990671B2 - Image smoothing method - Google Patents

Image smoothing method

Info

Publication number
JP2990671B2
JP2990671B2 JP4163991A JP16399192A JP2990671B2 JP 2990671 B2 JP2990671 B2 JP 2990671B2 JP 4163991 A JP4163991 A JP 4163991A JP 16399192 A JP16399192 A JP 16399192A JP 2990671 B2 JP2990671 B2 JP 2990671B2
Authority
JP
Japan
Prior art keywords
dot
vector information
vector
correction
image
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
JP4163991A
Other languages
Japanese (ja)
Other versions
JPH05330145A (en
Inventor
佳香 鈴木
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.)
Kyocera Corp
Original Assignee
Kyocera Corp
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 Kyocera Corp filed Critical Kyocera Corp
Priority to JP4163991A priority Critical patent/JP2990671B2/en
Priority to US08/067,212 priority patent/US5579451A/en
Priority to EP93108710A priority patent/EP0572956B1/en
Priority to DE69323446T priority patent/DE69323446T2/en
Publication of JPH05330145A publication Critical patent/JPH05330145A/en
Application granted granted Critical
Publication of JP2990671B2 publication Critical patent/JP2990671B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【産業上の利用分野】本発明は、レーザプリンタやLE
Dプリンタその他のページプリンタ若しくはCRTディ
スプレイのように、マトリックス状のドット画像を形成
する画像出力装置における画像平滑化処理方法に関す
る。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to laser printers and LEs.
The present invention relates to an image smoothing processing method in an image output device that forms a matrix dot image, such as a D printer or other page printer or a CRT display.

【0002】[0002]

【従来の技術】従来より画像コントローラよりシリアル
に出力されるビデオデータに基づいて変調されたレーザ
ビームを感光体ドラムの母線上に沿って繰返し主走査方
向に光走査しながらドットマトリックス状の画素パター
ンを形成するレーザプリンタは公知である。又LEDプ
リンタの様に、主走査方向に1列状に配列したアレイ状
の画素形成手段を、ビデオデータに基づいて1ライン同
時に若しくはブロック単位で駆動(点灯)制御しながら
副走査方向に相対移動する記録材(感光体ドラム等)上
にマトリックス状の画素パターンを形成するドットプリ
ンタも公知である。
2. Description of the Related Art Conventionally, a laser beam modulated on the basis of video data serially output from an image controller is repeatedly scanned in a main scanning direction along a generatrix of a photosensitive drum in a main scanning direction. Laser printers for forming are known. Also, like an LED printer, an array of pixel forming means arranged in one line in the main scanning direction is relatively moved in the sub-scanning direction while driving (lighting) one line at a time or in block units based on video data. A dot printer that forms a pixel pattern in a matrix on a recording material (photosensitive drum or the like) to be printed is also known.

【0003】この種のプリンタにおいてはいずれもn×
mのマトリックス状に画素パターンを配列して任意の文
字若しくは図形を形成する方式を取るために、Vや〇の
様に曲線若しくは斜線を形成する場合、その印字境界部
分が段差状に形成されてしまい、又Xの様に交差する部
分においては複数の画素が近接配置されているためにそ
の部分が肉太となり、必然的に印字品質が低下する。か
かる欠点を解消する為に、実際に表示すべき位置に比べ
て右方向に移動すべきであると考えて、この移動量が隣
接するドット間距離の1/2だと擬制し、中心画素と隣
接する画素との間で論理和/積を取りながらその移動の
有無を論理和/積で求めるようにしている。しかしなが
ら確かに前記移動量は、その最大値(傾き45°の場
合)がドット間距離の1/2であるが、前記傾きが垂直
(水平)方向に近付くほど前記移動量と原画像との間で
ギャップが発生し、言い換えれば傾きが急峻若しくは水
平に近い段差部等の場合には例え論理和を取っても円滑
なスムージング処理を図るのが中々困難である。
[0003] In this type of printer, nx
In order to adopt a method of forming an arbitrary character or figure by arranging pixel patterns in a matrix of m, when forming a curve or oblique line like V or 〇, the printing boundary portion is formed in a step shape. In addition, since a plurality of pixels are arranged close to each other at an intersecting portion like X, the portion becomes thick, and the printing quality inevitably deteriorates. In order to eliminate such a drawback, it is necessary to
Suppose that it should be moved to the right, and suppose that this movement amount is 移動 of the distance between adjacent dots, and calculate the logical sum / product between the center pixel and the adjacent pixel. Is determined by logical sum / product. However, although the maximum value (in the case of an inclination of 45 °) of the movement amount is half of the distance between dots, the distance between the movement amount and the original image increases as the inclination approaches the vertical (horizontal) direction. In other words, in the case of a step portion having a steep or nearly horizontal slope, it is extremely difficult to achieve smooth smoothing processing even if a logical sum is taken.

【0004】又例えば日本国特開昭60ー251761
号に示すように、基準画素に(主走査方向に)隣接する
白ドットをエネルギ密度の小さい画素(黒ドット)に置
換させて平滑化を図る技術も存在するが、かかる技術に
おいては単に基準画素に隣接するドット区域に小径のド
ットを単に付加するのみであるから、特に細線状の斜線
や曲線の場合その部分が肉厚となり、必ずしも画像品質
の向上につながらないのみならず、該技術が主走査方向
を対象としたドット付加である為に、例えば斜線や曲線
の傾きが緩やかになればなるほど円滑な平滑化処理が困
難になる。
[0004] For example, Japanese Patent Laid-Open No. 60-251761
As shown in the figure, there is a technique for smoothing by replacing a white dot (in the main scanning direction) adjacent to a reference pixel with a pixel (black dot) having a low energy density. Since only small-diameter dots are simply added to the dot area adjacent to the area, especially in the case of thin line-shaped diagonal lines or curves, the portion becomes thicker, which not only does not necessarily lead to an improvement in image quality, but also the main scanning Since the dot is added in the direction, for example, as the inclination of the oblique line or the curve becomes gentler, the smoother smoothing becomes more difficult.

【0005】かかる欠点を解消する為に、基準画素に隣
接するドット区域に小径のドットを単に付加するのみな
らず、前記ドット付加に対応させて該注目ドット自体を
狭小化(偏平化)して疑似的にドット自体を片側にずら
すように構成すると共に、前記小径ドット付加と基準画
素の偏平化を主走査(水平)方向のみならず、副走査
(垂直)方向にも、言換えれば左右上下の二軸方向を行
なうように構成した技術手段をUSP4,847,64
1(以下USP641という)にて提案している。
In order to solve such a drawback, not only a small-diameter dot is simply added to a dot area adjacent to a reference pixel, but the target dot itself is reduced (flattened) in accordance with the dot addition. The dot itself is simulated so as to be shifted to one side, and the addition of the small diameter dot and the flattening of the reference pixel are performed not only in the main scanning (horizontal) direction but also in the sub-scanning (vertical) direction, in other words, right, left, up and down. US Pat. No. 4,847,64.
1 (hereinafter referred to as USP641).

【0006】次に本従来技術の構成を簡単に説明する
に、本技術は図6に示すように、主走査方向にドットを
狭小化させる四枚の補償サブセル51a…と、副走査方
向にドットを狭小化させる四枚の補償サブセル52a…
とを用意し、先ず画像情報に対応するビットデータを複
数ライン単位で格納可能なFIFOバッファ53に、順
次シリアルに格納しながら、注目ビットに隣接する上下
左右の複数ビットデータをサンプルウインドウ54から
抽出してマッチングネットワーク55を通すことによ
り、該ネットワーク55内に格納されている多数のテン
プレート56と前記ウインドウ54に位置するビットマ
ップデータを比較し、一致した場合に、基準画素の偏平
化を行なう補償サブセル51a、52a…と該基準画素
に隣接する上下若しくは左右の1画素(一般には該画素
は白データであるために)について偏平化した小ドット
を付加する補償サブセル51a、52a…をサブセル発
生器57より選択し、一方一致しない場合には前記基準
画素をそのまま選択し、以下これらの選択されたビデオ
データをシリアルにプリントエンジン側58に出力させ
ることにより、所定のレーザプリント動作を行なうこと
が出来るものである。
Next, to briefly explain the configuration of the prior art, as shown in FIG. 6, the present technology employs four compensating sub-cells 51a for narrowing the dots in the main scanning direction and dots in the sub-scanning direction. .. Are reduced to four compensating subcells 52a.
First, bit data corresponding to image information is sequentially and serially stored in a FIFO buffer 53 capable of storing a plurality of lines, and a plurality of upper, lower, left, and right bit data adjacent to a target bit is extracted from a sample window 54. By passing through a matching network 55, a large number of templates 56 stored in the network 55 are compared with bitmap data located in the window 54, and when they match, compensation for flattening a reference pixel is performed. The sub-cell generator 51 includes sub-cells 51a, 52a... And compensation sub-cells 51a, 52a... Which add flattened small dots for upper, lower, left and right pixels adjacent to the reference pixel (in general, the pixel is white data). Select from 57, if not coincident, select the reference pixel as it is By outputting these selected video data to the print engine side 58 serial or less, which can perform a predetermined laser printing operation.

【0007】[0007]

【発明が解決しようとする課題】しかしながら前記従来
技術においても基準画素の判定を行なう場合に、常に隣
接する他のドットと共に2つのドットのサブセルの選択
を行なわなければならず、而も前記サブセルは水平方向
と垂直方向に夫々4枚づつ必要なために、少なくとも又
前記ウインドウに位置するビットマップデータを比較す
る為に必要なテンプレート数は、水平方向(2ドット×
4枚)×垂直方向(2ドット×4枚)の計256枚の基
本テンプレートの種類が必要であり、而も更に平滑化を
円滑化するためにアプリケーションテンプレートを用意
するとなるとそのテンプレート数は無用に広がり、この
様な多数のテンプレートを用意するためのメモリも又比
較動作を行なうための回路構成いずれも煩雑化し、結果
として回路構成が大規模化せざるを得ない。
However, even in the prior art, when determining a reference pixel, it is necessary to always select a sub-cell of two dots together with other adjacent dots. Since four sheets are required in each of the horizontal direction and the vertical direction, at least the number of templates necessary for comparing the bitmap data located in the window is determined in the horizontal direction (2 dots × 2).
A total of 256 basic template types (4 sheets) × vertical direction (2 dots × 4 sheets) are required, and if an application template is prepared to further smooth the smoothing, the number of templates becomes unnecessary. As a result, the memory for preparing such a large number of templates and the circuit configuration for performing the comparison operation are both complicated, and as a result, the circuit configuration must be enlarged.

【0008】本発明はかかる従来技術の欠点に鑑み、回
路構成を煩雑化させることなく、而も簡単な判定動作で
容易に且つ精度よく平滑化処理を行なう事の出来るドッ
トプリンタにおける画像平滑化処理方法を提供すること
を目的とする。本発明の他の目的は画像平滑化と共にド
ット自体の高品質化を図り、平滑化処理後のデータの拡
大に十分耐え得る高品質画像を得ることの出来るドット
プリンタにおける画像平滑化処理方法を提供することを
目的とする。
In view of the drawbacks of the prior art, the present invention provides an image smoothing process for a dot printer which can easily and accurately perform a smoothing process with a simple determination operation without complicating the circuit configuration. The aim is to provide a method . Another object of the present invention is to provide an image smoothing method in a dot printer capable of improving the quality of dots themselves together with image smoothing and obtaining a high quality image that can sufficiently withstand data expansion after the smoothing processing. The purpose is to do.

【0009】[0009]

【課題を解決する為の手段】本発明は、マトリックス状
のドット画像を形成する、M×N又は/及びN×M(N
≧M、N及びMは3以上の奇数)座標のドットマップに
基づいて該マップ内の注目ドット及び該注目ドット周囲
のドットからなる分布を、前記ドットマップを形成する
Nの少ない数から順次ベクトル化して得られたベクトル
情報を基に画像平滑化処理を行う画像出力装置における
画像平滑化処理方法において、 前記ドットマップ内の注
目ドット及び該注目ドットに隣接する第1周囲ドット群
からなる第1のドット分布をベクトル化して得られた第
1のベクトル情報と、 前記注目ドット及び前記第1の周
囲ドット群にX軸若しくはY軸方向に隣接する第2のド
ット群のドット分布をベクトル化して得られた次位のベ
クトル情報と、 以下順次{(N−1)/2}位までの前
記注目ドットとのベクトル情報とを得るとともに、
{(N−1)/2}位までのベクトル情報をさらに重み
付けし、この重み付けして得られたベクトル情報の総和
を前記注目ドットに対する位置誤差補正用のベクトル情
報として採用する事を特徴とする。 すなわち、M×N又
は/及びN×M(N≧M、N及びMは3以上の奇数)座
標、より具体的には3×3、又は3×5と5×3、若し
くは3×7と7×3のドットマップに基づいて該マップ
内の注目ドット周囲のドット分布をベクトル化し、該ベ
クトル情報と注目ドットのドット種類(黒若しくは白)
に基づいて前記注目ドットに対する位置誤差を補正しな
がら画像平滑化を行なう事を特徴とする画像平滑化処理
方法である
SUMMARY OF THE INVENTION The present invention provides a matrix
M × N or / and N × M (N
≧ M, N and M are odd numbers of 3 or more)
Based on the target dot in the map and the target dot
Forming the dot map with the distribution of dots
Vectors obtained by vectorizing sequentially from a small number of N
In an image output device that performs image smoothing processing based on information
In the image smoothing processing method, a note in the dot map
Eye dot and first surrounding dot group adjacent to the noted dot
Obtained by vectorizing the first dot distribution consisting of
1 vector information, the noted dot, and the first
A second dot adjacent to the surrounding dot group in the X-axis or Y-axis direction
The second-order vector obtained by vectorizing the dot distribution of the
Vector information and before the {(N-1) / 2} order
With obtaining the vector information of the serial target dot, the
Weight vector information up to {(N-1) / 2}
And sum of vector information obtained by weighting
Is the vector information for correcting the position error with respect to the noted dot.
It is characterized by being adopted as information. That is, M × N or / and N × M (N ≧ M, N and M are odd numbers of 3 or more ) coordinates, more specifically, 3 × 3, or 3 × 5 and 5 × 3, or 3 × 7 Based on the 7 × 3 dot map, the dot distribution around the target dot in the map is vectorized, and the vector information and the dot type of the target dot (black or white)
Image smoothing while correcting a position error with respect to the noted dot based on the image
Is the way .

【0010】かかる発明において3×3のドットマップ
の場合は前記ベクトル情報は一のみで足りるがこれのみ
ではドットピッチの1/2の位置誤差補正しかできず、
緻密さに欠ける。この様な場合は、又は3×5と5×
3、更には3×7と7×3のドットマップに基づいてベ
クトル情報を得る事により緻密な位置誤差制御が可能と
なる。
In this invention, in the case of a 3 × 3 dot map, only one vector information is required, but this alone can only correct a position error of ド ッ ト of the dot pitch.
Lack of precision. In such a case, or 3 × 5 and 5 ×
3. Further, by obtaining vector information based on dot maps of 3 × 7 and 7 × 3, precise position error control becomes possible.

【0011】又例えば、3×7と7×3のドットマップ
の場合は、前記3×3のドットマップに基づく第1のベ
クトル情報、該3×3のドットマップにX軸若しくはY
軸方向に隣接する第2のドット群に基づく次位のベクト
ル情報、そして更に3×5と5×3にX軸若しくはY軸
方向に隣接する第3のドット群に基づく次々位のベクト
ル情報と、3つのベクトル情報が得られるが、注目ドッ
トに隣接するドットの方が、位置誤差の影響は大きい。
そこで前記3つのベクトル情報について注目ドットに近
い方より順次重み付けしてベクトル情報の総和を求め、
該総和ベクトル情報を3×7と7×3のベクトル情報と
して採用する事により、より緻密な注目画素の位置誤差
に対応する平滑化処理が可能である。
For example, in the case of 3 × 7 and 7 × 3 dot maps, first vector information based on the 3 × 3 dot map, the X axis or Y axis
Next-order vector information based on the second dot group adjacent in the axial direction, and further next-order vector information based on the third dot group adjacent in the X-axis or Y-axis direction at 3 × 5 and 5 × 3. Although three pieces of vector information can be obtained, a dot adjacent to the dot of interest is more affected by the position error.
Therefore, the three vector information are sequentially weighted from the one closer to the dot of interest to obtain the sum of the vector information,
By adopting the sum vector information as 3 × 7 and 7 × 3 vector information, it is possible to perform a more precise smoothing process corresponding to the position error of the target pixel.

【0012】尚後記実施例においてはM×N座標とN×
M座標の方向成分、言い換えれば±X成分と、±Y成分
の両者について補正ベクトル情報を求めているが、例え
ば3×3座標より先ず注目ドットの注目方向成分が垂直
方向に近いか水平方向に近いかを判定した後、垂直方向
が近い場合は3×5と3×7のみをベクトル情報に基づ
いて±Y軸方向の総和ベクトル情報を求めればよく、
又、水平方向が近い場合は5×3と7×3のみをベクト
ル情報に基づいて±X軸方向の総和ベクトル情報を求め
るだけで足りる。
In the embodiment described later, M × N coordinates and N × N coordinates are used.
Correction vector information is obtained for the directional component of the M coordinate, in other words, for both the ± X component and the ± Y component. For example, first from the 3 × 3 coordinates, the target direction component of the target dot is closer to the vertical direction or to the horizontal direction. After judging whether they are close to each other, if the vertical direction is close, only 3 × 5 and 3 × 7 may be obtained as the sum vector information in the ± Y-axis direction based on the vector information.
If the horizontal direction is close, it is sufficient to obtain only the sum vector information in the ± X-axis direction based on the vector information for only 5 × 3 and 7 × 3.

【0013】そして該ベクトル情報を用いた平滑化処理
の具体策として、前記位置誤差補正用の平滑化処理デー
タが格納されたレジスタを複数用意し、前記ベクトル情
報と注目ドットのドット種類に基づいて対応するレジス
タを選択し、該レジスタ内の補正データにより前記注目
ドットに対する位置誤差補正用パルスを生成しながら画
像平滑化を行なうのがよい。
As a specific measure of the smoothing process using the vector information, a plurality of registers storing the smoothing process data for correcting the position error are prepared, and based on the vector information and the dot type of the dot of interest. It is preferable to select a corresponding register and perform image smoothing while generating a position error correction pulse for the dot of interest based on the correction data in the register.

【0014】[0014]

【作用】前記したようにUSP641によれば、(3×
7)*(7×3)合計33ドットのウインドウ54に位
置するビットマップをネットワーク55内に格納されて
いる多数のテンプレート56とランダムに比較しながら
セル発生器57より選択対応するテンプレートと比較す
るものであるために、言い換えれば33ドットのビット
マップを二次元的にランダムに比較を行なうものである
為に、前記したように平滑な処理を行なうためにテンプ
レート数は無用に広がり(最大233枚)、この様な多数
のテンプレートを用意するためのメモリも又比較動作を
行なうための回路構成いずれも煩雑化し、結果として回
路構成が大規模化せざるを得ず且つ比較動作も遅延化
し、高速化に対応し得ないという問題がある事は前記し
た通りである。
As described above, according to USP641, (3 ×
7) The cell generator 57 selects a bitmap located in the window 54 of a total of 33 dots * (7 × 3) in a total of 33 dots and compares it with a corresponding template selected at random from the cell generator 57. In other words, since the 33-dot bitmap is compared two-dimensionally at random, the number of templates is unnecessarily widened (up to 2 33) to perform smooth processing as described above. ), The memory for preparing such a large number of templates and the circuit configuration for performing the comparison operation are both complicated, and as a result, the circuit configuration has to be enlarged and the comparison operation is delayed, As described above, there is a problem that high-speed operation cannot be performed.

【0015】一方本技術手段は、前記従来技術と同様に
(3×7)*(7×3)のドットマップとしてのウイン
ドウは用いる点は共通するが、本技術手段は二次元的に
ランダムにテンプレートと比較を行なうのではなく、前
記ウインドウ内の注目画素に対するドット分布について
ベクトル情報、言い換えれば位置誤差が発生している
(-X方向、+X方向、-Y方向、+Y方向)のいずれかの一次
元方向のベクトル情報を先ず求め、該ベクトル情報に基
づいて例えば補償サブセルに対応するレジスタを選択し
て平滑化処理を行なうものである為に、一次元的な、よ
り具体的には一次の処理はハードで行なってまず関数的
なソフト処理で足り、結果として多数のテンプレートも
又比較動作を行なうための回路構成いずれも不用であ
り、回路構成が大規模化、比較動作が遅延化し、高速化
に対応し得ないという前記従来技術のいずれの問題も解
消し得る。又レジスタの選択についてもベクトル情報に
基づく例えば最大(-X方向、+X方向、-Y方向、+Y方向)
×N個の整数値4Nと注目ドットの種類(黒OR白)に
もとづいて自動的に選択でき、言い換えれば各方向成分
毎に2Nのレジスタを用意するだけで極めて緻密な制御
が可能である。
On the other hand, the present technical means has a common point that a window as a (3 × 7) * (7 × 3) dot map is used similarly to the above-mentioned prior art, but the present technical means is two-dimensionally random. Instead of performing comparison with the template, any of vector information on the dot distribution for the pixel of interest in the window, in other words, any position error has occurred (-X direction, + X direction, -Y direction, + Y direction) First, the vector information in the one-dimensional direction is obtained, and for example, a register corresponding to the compensation subcell is selected and smoothing processing is performed based on the vector information. The primary processing is performed by hardware, and functional software processing is sufficient. As a result, a large number of templates and a circuit configuration for performing the comparison operation are unnecessary.較動 operation is slowing, may also eliminate the one problem of the prior art that it can not correspond to the speed. Also, register selection is based on vector information, for example, maximum (-X direction, + X direction, -Y direction, + Y direction)
The selection can be made automatically based on the × N integer values 4N and the type of the dot of interest (black or white). In other words, extremely precise control is possible only by preparing 2N registers for each direction component.

【0016】[0016]

【実施例】以下、図面に基づいて本発明の実施例を例示
的に詳しく説明する。但しこの実施例に記載されている
構成部品の寸法、材質、形状、その相対配置などは特に
特定的な記載がない限りは、この発明の範囲をそれのみ
に限定する趣旨ではなく単なる説明例に過ぎない。先ず
本発明に至った経過を順を追って説明しながら本発明の
平滑化処理方式を説明する。例えば斜めの傾斜線や曲線
を含んだ原画像の場合、これをマトリックス状の座標に
展開しようとすると、段差部分を含んだΧ軸若しくはY
軸方向に延在する垂直若しくは水平ドットの組合せとな
る事は前記した通りである。そして前記マトリックス状
に座標展開された画像データは、例えば図1(A)に示
すように段差部分にある座標(0、0)のドットは、例
えば斜めの傾斜線を解像度に合わせた座標上に乗せる為
に実際に表示されるべき位置に較べ、右方向に誤差を含
んだドットであると考えられる。
BRIEF DESCRIPTION OF THE DRAWINGS FIG. 1 is a block diagram showing an embodiment of the present invention; However, unless otherwise specified, the dimensions, materials, shapes, relative arrangements, and the like of the components described in this embodiment are not intended to limit the scope of the present invention, but are merely illustrative examples. Not just. First, the smoothing processing method of the present invention will be described while sequentially explaining the process leading to the present invention. For example, in the case of an original image containing oblique lines and curves, if this is to be developed into matrix coordinates, the Χ axis or Y including a step portion
The combination of vertical or horizontal dots extending in the axial direction is as described above. The image data that has been coordinate-developed in a matrix form is, for example, as shown in FIG. 1A, a dot of coordinates (0, 0) in a step portion is, for example, on a coordinate obtained by matching a diagonal inclined line to the resolution. It is considered that the dot includes an error in the right direction as compared with the position to be actually displayed for placing.

【0017】従って座標(0、0)のドット(以下中心
ドットという)を右方向に所定距離移動させると全体の
画像は原画像の傾斜線により近似する。そして一般的な
従来技術においては前記所定距離の移動量が隣接するド
ット間距離の1/2だと擬制し、その移動の有無を論理
和/積で求めるように構成している。しかしながら確か
に前記移動量は、その最大値(傾き45°の場合)がド
ット間距離の1/2であるが、前記傾きが垂直(水平)
方向に近付くほど前記移動量を小さくする事が原画像に
合致する。
Therefore, when the dot at the coordinates (0, 0) (hereinafter referred to as the center dot) is moved to the right by a predetermined distance, the entire image is approximated by the inclined line of the original image. In a general prior art, it is assumed that the movement amount of the predetermined distance is 1/2 of the distance between adjacent dots, and the presence or absence of the movement is obtained by a logical sum / product. However, although the maximum value (in the case of the inclination of 45 °) of the movement amount is の of the distance between the dots, the inclination is vertical (horizontal).
The smaller the movement amount is, the closer to the direction is, the better the original image matches.

【0018】そして前記中心ドットからの移動量は、 {座標(0、0)→(1、0)}:合成ベクトルA1は、 {座標(0、0)→(1、−1)}:ベクトルA2、 {座標(0、0)→(0、1)}:ベクトルA3、で表
される場合は、A1=(A2+A3)で表され、2種類の
ベクトルの合成力として求める事が出来る。即ち、前記
ベクトルの和により中心ドットからの移動量を求める事
が出来る。しかしながら3×3のドットマップの場合は
前記したようにドットピッチの1/2の1段階の位置誤
差補正しかできず、原画像の傾きが45°よりかい離
(水平若しくは垂直方向に近付けば近付くほど)すれば
するほ中心ドットが位置的な誤差を含んでいる可能性
が高い。例えば論理和/積で平滑化処理した場合に中心
ドットが位置的な誤差を多く含んでいる可能性は、水平
に近い斜め線や、垂直に近い斜め線を構成するドットで
ある時、高くなる。これはY方向の変化に対するX方向
の変化の割合、または、X方向の変化に対するY方向の
変化の割合が小さいためである。
The amount of movement from the center dot is as follows: {coordinate (0, 0) → (1, 0)}: composite vector A1 is : {coordinate (0, 0) → (1, −1)}: vector A2, {coordinates (0,0) → (0,1)} : vector A3 in Table,
In this case, A1 = (A2 + A3), which can be obtained as a composite force of two types of vectors. That is, the movement amount from the center dot can be obtained from the sum of the vectors. However, in the case of a 3 × 3 dot map, as described above, only one-stage position error correction of ド ッ ト of the dot pitch can be performed. ) Ho to be etc. center dot is likely to contain a positional error. For example, when the smoothing process is performed by the logical sum / product, the possibility that the center dot includes many positional errors increases when the dot forms a horizontal diagonal line or a vertical diagonal line. . This is because the ratio of the change in the X direction to the change in the Y direction or the ratio of the change in the Y direction to the change in the X direction is small.

【0019】従って、水平に近い斜め線を構成するドッ
トのなかでは、この中心ドットに対する補正ベクトルを
3×3のマトリックスのラスタライズドデータからの情
報では、大きな効果を得ることは困難である。即ち当然
に、情報量は多い方がより精度の高い制御が可能とな
る。そこで参照するラスタライズドデータを水平方向、
垂直方向にそれぞれ7×3、3×7の大きさのマトリッ
クスに拡張し、中心ドットに対する補正ベクトルを求め
て制御する。理論上は、N×3、3×Nのマトリックス
のデータを用いて補正ベクトルを求め、平滑化処理を行
なうことも可能であるが、現状のプリントエンジンの性
能などから後記に詳説するように7×3、3×7の大き
さで実現することが適当であると判断できるためであ
る。
Therefore, among the dots forming the oblique line which is nearly horizontal, it is difficult to obtain a great effect by using the correction vector for the center dot as information from rasterized data of a 3 × 3 matrix. That is, as a matter of course, the larger the amount of information, the more accurate the control. The rasterized data to be referred to in the horizontal direction,
The matrix is extended in the vertical direction to a matrix of 7 × 3 and 3 × 7, and a control is performed by obtaining a correction vector for the center dot. Theoretically, it is also possible to obtain a correction vector using data of an N × 3, 3 × N matrix, and to perform a smoothing process. However, as will be described later in detail, based on the performance of the current print engine, etc. This is because it can be determined that it is appropriate to realize the size of × 3, 3 × 7.

【0020】そこで図1(B)に示すように7×3、3
×7のマトリックスを座標で定義し、座標(X,Y)の
ドットの値をD(X,Y)で示す。例えば、中心ドット
が黒である時、D(0,0)=1のように表す。次に補
正ベクトルの求め方について図1に基づいて説明する。
3×3のマトリックス、3×5のマトリックス、3×7
のマトリックスの、夫々について図1(C)の太線の矢
印の様に3種類のベクトルを求める。尚、破線の斜線で
示したのは、実際の画像データの傾きである。そして3
つのベクトルはそれぞれ、ディジタル処理を容易にする
ため4、2、1と重み付けを行なう。そしてある入力さ
れたパターンの補正されるべきドットに対する補正量を
3つのベクトルの和として求める。従って最も補正量が
多くなるのは、図1(A)の中心画素(以下中心ドット
という)D(0,0)の例のように、ドット間距離の1
/2に対応する大きさの補正ベクトルが生じた場合であ
る。
Therefore, as shown in FIG.
A × 7 matrix is defined by coordinates, and the value of the dot at coordinates (X, Y) is indicated by D (X, Y). For example, when the center dot is black, it is represented as D (0,0) = 1. Next, a method of obtaining a correction vector will be described with reference to FIG .
3x3 matrix, 3x5 matrix, 3x7
For each of the above matrices, three types of vectors are obtained as indicated by the thick arrows in FIG. It is to be noted that the shaded broken lines indicate the actual inclination of the image data. And 3
Each of the two vectors is weighted as 4, 2, 1 to facilitate digital processing. Then, a correction amount for a dot to be corrected in a certain input pattern is obtained as a sum of three vectors. Most correction amount of increases, therefore, as in the example of the center pixel (hereinafter referred to as center dot) D (0,0) in FIG. 1 (A), the distance between dots 1
In this case, a correction vector having a magnitude corresponding to / 2 is generated.

【0021】そして前記補正ベクトルを求める方法につ
いてより詳細に説明するに、 1)先ず3×3のマトリックスより第1の補正ベクトル
を求める。各方向成分(-X方向、+X方向、-Y方向、+Y方
向)の補正ベクトルを発生させるドットは、-X方向で
は、D(-1,-1)とD(0,1)のペア、D(-1,1)とD(0,-1)のペア
の2組、+X方向では、D(1,1)とD(0,-1)のペア、D(1,-1)
とD(0,1)のペアの2組、-Y方向では、D(-1,-1)とD(1,0)
のペア、D(1,-1)D(-1,0)のペアの2組、+Y方向では、D
(1,1)とD(-1,0)のペア、D(-1,1)とD(1,0)のペアの2
組、である。また、前述の誤差の含まれているドットの
条件を補正ベクトルの有効条件に加え、一般的な3×3
のマトリックスより与えられる補正ベクトルを求める。
ここで、大きさが1で、X成分またはY成分しか持たない
ベクトルを単位ベクトル(X,Y)として定義すると、 (X,Y)={(-1,0),(1,0),(0,-1),(0,1)} である。CR3(X,Y)をD(0,0)に対して、単位ベクトル
(X,Y)方向に働く補正ベクトルとすると、 CR3(X,Y)={D(0,0)+D(X,Y)}/D(-X,-Y)}{D(Y,X)D
(X-Y,Y-X)+D(-Y,-X)D(X+Y,Y+X)} となる。D(0,0)+D(X,Y)は、境界線の連続性の条件を参
照するための項でありD(0,0)は、中心成分、D(X,Y)は、
中心成分が白のときの補正方向成分である。D(-Y,-X)
は、(X,Y)方向のベクトル成分に対し反対の成分を持つ
抑制ベクトルである。この場合論理否定は"/"、論理和
は"+"、論理積の演算子は省略する。
The method for obtaining the correction vector will now be described in more detail. 1) First, a first correction vector is obtained from a 3 × 3 matrix. Dots that generate correction vectors for each direction component (-X direction, + X direction, -Y direction, + Y direction) are D (-1, -1) and D (0,1) in the -X direction. Pair, two pairs of D (-1,1) and D (0, -1), in the + X direction, a pair of D (1,1) and D (0, -1), D (1,- 1)
And D (0,1) in the -Y direction, D (-1, -1) and D (1,0)
, Two pairs of D (1, -1) D (-1,0), and in the + Y direction, D
A pair of (1,1) and D (-1,0), a pair of D (-1,1) and D (1,0)
Pair. Further, the above-described condition of the dot including the error is added to the effective condition of the correction vector, and a general 3 × 3
Find the correction vector given from the matrix of
Here, if a vector having a size of 1 and having only an X component or a Y component is defined as a unit vector (X, Y), (X, Y) = {(-1,0), (1,0), (0, -1), (0,1)}. CR 3 (X, Y) to D (0,0), unit vector
Assuming that the correction vector works in the (X, Y) direction, CR 3 (X, Y) = {D (0,0) + D (X, Y)} / D (-X, -Y)} {D (Y , X) D
(XY, YX) + D (-Y, -X) D (X + Y, Y + X)} D (0,0) + D (X, Y) is a term for referring to the condition of boundary line continuity, where D (0,0) is a central component, and D (X, Y) is
This is a correction direction component when the center component is white. D (-Y, -X)
Is a suppression vector having a component opposite to the vector component in the (X, Y) direction. In this case, the logical negation is "/", the logical sum is "+", and the logical multiplication operator is omitted.

【0022】2)次に3×5、5×3のマトリックスより補
正ベクトルを求める。各方向成分(-X方向、+X方向、-Y
方向、+Y方向)の補正ベクトルを発生させるドットは、-
X方向では、D(-1,-2)とD(0,2)のペア、D(-1,2)とD(0,-
2)のペアの2組、+X方向では、D(1,2)とD(0,-2)のペ
ア、D(1,-2)とD(0,2)のペアの2組、-Y方向では、D(-2,
-1)とD(2,0)のペア、D(2,-1)とD(-2,0)のペアの2組、+
Y方向では、D(2,1)とD(-2,0)のペア、D(-2,1)とD(2,0)
のペアの2組、である。また、前述の誤差の含まれてい
るドットの条件を補正ベクトルの有効条件に加え、一般
的な3×5、5×3のマトリックスより与えられる補正ベク
トルは、C3(X,Y)を中心成分、S3(X,Y)を補正方向成分
とすると C3(X,Y)=D(0,0)D(Y,X)D(-Y,-X) S3(X,Y)=D(X-Y,Y-X)D(X,Y)D(X+Y,Y+X)D(0,0) と表せる。CR5(X,Y)をD(0,0)に対して、単位ベクトル
(X,Y)方向に働く補正ベクトルとすると CR5(X,Y)={CR3(X,Y)+C3(X,Y)S3(X,Y)}/D(-X,
-Y){D(2Y,2X)D(X-2Y,Y-2X)+D(X+2Y,Y+2X)} となる。CR3(X,Y)は、3×3のマトリックスで補正ベク
トルが存在するとき、3×5、5×3のマトリックスの補正
ベクトルは有効であることを表している。CR3(X,Y)+
3(X,Y)は、境界線の連続性の条件を参照するための項
であり、CR3(X,Y)は、中心成分、S3(X,Y)は、中心成
分が白のときの補正方向成分である。D(-X,-Y)は、(X,
Y)方向のベクトル成分に対し反対の成分を持つ抑制ベク
トルである。
2) Next, a correction vector is obtained from a 3 × 5, 5 × 3 matrix. Each direction component (-X direction, + X direction, -Y
(+, Y direction)
In the X direction, a pair of D (-1, -2) and D (0,2), D (-1,2) and D (0,-
2), two pairs of D (1,2) and D (0, -2), two pairs of D (1, -2) and D (0,2) in the + X direction, In the -Y direction, D (-2,
-1) and D (2,0) pair, D (2, -1) and D (-2,0) pair, +
In the Y direction, a pair of D (2,1) and D (-2,0), D (-2,1) and D (2,0)
, Two pairs. In addition, the above-described condition of the dot including the error is added to the effective condition of the correction vector, and the correction vector given from a general 3 × 5, 5 × 3 matrix is centered on C 3 (X, Y). If the component, S 3 (X, Y), is the correction direction component, C 3 (X, Y) = D (0,0) D (Y, X) D (−Y, −X) S 3 (X, Y) = D (XY, YX) D (X, Y) D (X + Y, Y + X) D (0,0). CR 5 (X, Y) to D (0,0), unit vector
Assuming that the correction vector acts in the (X, Y) direction, CR 5 (X, Y) = {CR 3 (X, Y) + C 3 (X, Y) S 3 (X, Y)} / D (−X, Y
-Y) {D (2Y, 2X) D (X-2Y, Y-2X) + D (X + 2Y, Y + 2X)}. CR 3 (X, Y) indicates that when a correction vector exists in a 3 × 3 matrix, the correction vector in a 3 × 5 or 5 × 3 matrix is valid. CR 3 (X, Y) +
S 3 (X, Y) is a term for referring to the condition of boundary line continuity, CR 3 (X, Y) is a central component, and S 3 (X, Y) is a central component This is the correction direction component at the time of. D (-X, -Y) is (X,
The suppression vector has a component opposite to the vector component in the Y) direction.

【0023】3)3×7、7×3のマトリックスより補正ベ
クトルを求める。各方向成分(-X方向、+X方向、-Y方
向、+Y方向)の補正ベクトルを発生させるドットは、-X
方向では、D(-1,-3)とD(0,3)のペア、D(-1,3)とD(0,-3)
のペアの2組、+X方向では、D(1,3)とD(0,-3)のペア、D
(1,-3)とD(0,3)のペアの2組、-Y方向では、D(-3,-1)と
D(3,0)のペア、D(3,-1)とD(-3,0)のペアの2組、+Y方向
では、D(3,1)とD(-3,0)のペア、D(-3,1)とD(3,0)のペア
の2組、である。また、前述の誤差の含まれているドッ
トの条件を補正ベクトルの有効条件に加え、一般的な3
×7、7×3のマトリックスより与えられる補正ベクトル
は、C5(X,Y)を中心成分、S5(X,Y)を補正方向成分とす
ると C5(X,Y)=C3(X,Y)D(2Y,2X)D(-2Y,-2X) S5(X,Y)=S3(X,Y)D(X-2Y,Y-2X)D(X+2Y,Y+2X) と表せる。CR7(X,Y)をD(0,0)に対して、単位ベクトル
(X,Y)方向に働く補正ベクトルとすると CR7(X,Y)={CR5(X,Y)+C5(X,Y)+S5(X,Y)}/D(-
X,-Y){D(3Y,3X)D(X-3Y,Y-3X)+D(-3Y,-3X)D(X+3Y,Y+3
X)} となる。CR5(X,Y)は、3×5、5×3のマトリックスで補
正ベクトルが存在するとき、3×7、7×3のマトリックス
の補正ベクトルは有効であることを表している。CR
5(X,Y)+S5(X,Y)は、境界線の連続性の条件を参照する
ための項であり、CR5(X,Y)は、中心成分、S5(X,Y)
は、中心成分が白のときの補正方向成分である。D(-X,-
Y)は、(X,Y)方向のベクトル成分に対し反対の成分を持
つ抑制ベクトルである。
3) A correction vector is obtained from a 3 × 7, 7 × 3 matrix. Dots that generate correction vectors for each direction component (-X direction, + X direction, -Y direction, + Y direction) are -X
In the direction, a pair of D (-1, -3) and D (0,3), D (-1,3) and D (0, -3)
In the + X direction, a pair of D (1,3) and D (0, -3), D
Two pairs of (1, -3) and D (0,3), in the -Y direction, D (-3, -1)
D (3,0) pair, D (3, -1) and D (-3,0) pair, and in the + Y direction, D (3,1) and D (-3,0) Pairs, two pairs of D (-3,1) and D (3,0). In addition, the above-described condition of the dot including the error is added to the effective condition of the correction vector, and the general 3
A correction vector given by a matrix of × 7 and 7 × 3 is represented by C 5 (X, Y) = C 3 (C 5 (X, Y) as a central component and S 5 (X, Y) as a correction direction component. X, Y) D (2Y, 2X) D (-2Y, -2X) S 5 (X, Y) = S 3 (X, Y) D (X-2Y, Y-2X) D (X + 2Y, Y + 2X). CR7 (X, Y) is converted to D (0,0) by unit vector
(X, Y) When correction vector acting in the direction CR7 (X, Y) = { CR 5 (X, Y) + C 5 (X, Y) + S 5 (X, Y)} / D (-
X, -Y) {D (3Y, 3X) D (X-3Y, Y-3X) + D (-3Y, -3X) D (X + 3Y, Y + 3
X)}. CR 5 (X, Y) indicates that when a correction vector exists in a 3 × 5, 5 × 3 matrix, a correction vector in a 3 × 7, 7 × 3 matrix is valid. CR
5 (X, Y) + S 5 (X, Y) is a term for referring to the boundary line continuity condition, and CR 5 (X, Y) is a central component, S 5 (X, Y) )
Is a correction direction component when the center component is white. D (-X,-
(Y) is a suppression vector having a component opposite to the vector component in the (X, Y) direction.

【0024】4)中心ドットに働く補正ベクトルの算出 従ってCR(X,Y)を3×3、3×5,5×3、3×7,7×3の全ての
マトリックスの状態から求めた中心ドットの補正ベクト
ルをCR5(X,Y)とすると、 CR(X,Y)=K3CR3(X,Y)+K5CR5(X,Y)+K7CR7(X,Y)……1) で表す事が出来る。ここでK3、K5、K7は重み付けを
考慮した係数で、中心ドットより遠くなるほど中心ドッ
トに対する影響が少なくなる為に、たとえば4、2、1
のように設定する。そして前記1)式に例えば(-1,0)
(1,0)(0,-1)(0,1)の座標を代入する事により各方向成分
CR(-1,0)(-X方向)、CR(1,0)(+X方向)、CR(0,-1)
(-Y方向)、CR(0,1)(+Y方向)の夫々の補正ベクトル情
報を得る事が出来る。尚K3、K5、K7の重み付けを
4、2、1と設定した場合、CR3(X,Y)、CR5(X,Y)、
CR7(X,Y)のベクトル情報はmax「1」(絶対値)の
為に前記CR(-1,0)、CR(1,0)、CR(0,-1)、CR(0,
1)は夫々最大7となる。
4) Calculation of correction vector acting on center dot Accordingly, CR (X, Y) is calculated from the center of all 3 × 3, 3 × 5, 5 × 3, 3 × 7, 7 × 3 matrix states. Assuming that the dot correction vector is CR 5 (X, Y), CR (X, Y) = K 3 CR 3 (X, Y) + K 5 CR 5 (X, Y) + K 7 CR 7 (X, Y) ... ... 1) can be expressed as Here, K 3 , K 5 , and K 7 are coefficients in consideration of the weighting. The influence on the center dot decreases as the distance from the center dot increases.
Set as follows. Then, for example, (-1,0)
By substituting the coordinates of (1,0) (0, -1) (0,1), each direction component CR (-1,0) (-X direction), CR (1,0) (+ X direction) , CR (0, -1)
Correction vector information of each of (-Y direction) and CR (0,1) (+ Y direction) can be obtained. When the weights of K 3 , K 5 , and K 7 are set to 4, 2, and 1, CR 3 (X, Y), CR 5 (X, Y),
The vector information of CR 7 (X, Y) is max (1) (absolute value) because of the above-mentioned CR (-1,0), CR (1,0), CR (0, -1), CR (0, -1).
1) is a maximum of 7 each.

【0025】5)補正ベクトル情報の選択 そして前記各方向成分(-X方向、+X方向、-Y方向、+Y方
向)の補正ベクトルの内、任意の判定手段で最も大きい
補正ベクトル情報を採用し、該補正ベクトル情報に基づ
いて中心ドットを後記する方法で平滑化処理用の補正ド
ットに変換する。
5) Selection of correction vector information Of the correction vectors of the respective directional components (-X direction, + X direction, -Y direction, + Y direction), the largest correction vector information is adopted by an arbitrary determination means. Then, based on the correction vector information, the center dot is converted into a correction dot for smoothing processing by a method described later.

【0026】6)補正ドットの変換 従って前記方式によれば、例えば前記重み付けの設定に
より、CR(-1,0)、CR(1,0)、CR(0,-1)、CR(0,1)
の夫々のベクトル情報はは夫々最大7となり、7種類の
補正ベクトル情報が得られ、又中心ドットが1(黒)か0
(白)の場合黒側からみた補正情報は反転する為に結果と
して14種類の補正ベクトル情報が得られる事になる。
しかしながら実際には14種類の緻密な制御で例えばレ
ーザプリンタのレーザビームをON/OFF制御しても
印字される側では出力光度のバラツキ等により精度よい
階調性が得られない。そこで本実施例においては前記1
4種類の補正情報を6種類に振分け、補正されるドット
を6段階の補正ドットに置き換えるように構成してい
る。この場合前記補正ドットの生成は一般に補正情報に
対応するパルス幅変調により行なわれるが、レーザプリ
ンタではレーザビームのスキャンラインが水平方向であ
るために、水平方向のドット移動は容易であるが、垂直
方向のシフトは困難である。そこで垂直方向については
ドット位置を変えずにドットの大きさを変えることで処
理をしている。
6) Conversion of Correction Dot According to the above method, for example, by setting the weighting, CR (-1,0), CR (1,0), CR (0, -1), CR (0, -1) 1)
The maximum vector information of each is 7 each, and 7 types of correction vector information can be obtained, and the center dot is 1 (black) or 0
In the case of (white), the correction information viewed from the black side is inverted, so that 14 types of correction vector information are obtained as a result.
However, in practice, even if the laser beam of the laser printer is turned on / off by, for example, 14 types of precise control, accurate gradation cannot be obtained on the printing side due to variations in output light intensity. Therefore, in this embodiment,
The four types of correction information are sorted into six types, and the dots to be corrected are replaced with six-stage correction dots. In this case, the correction dots are generally generated by pulse width modulation corresponding to the correction information. However, in a laser printer, since the scan line of the laser beam is in the horizontal direction, the dot movement in the horizontal direction is easy, but the vertical movement is easy. Shifting directions is difficult. Therefore, in the vertical direction, the processing is performed by changing the dot size without changing the dot position.

【0027】図2は前記平滑化処理を行なうための本発
明の実施例に係るハードウエア構成を示す基本構成図
で、プリンタコントローラ1側では公知の様に300dp
i(1inch2当り300×300)にラスタライズ化された画像デ
ータを、ホストコンピュータ2側よりの画像信号に対応
させてフォントRAM1aより読み出しながらビデオメ
モリ内に順次書込み、該ビデオメモリ1b内に1ページ
若しくは1バンド幅に相当するビデオデータをドット展
開した後、ビデオクロックに同期したシリアルデータに
変換してプリントエンジン3側に出力し、該ビデオデー
タに基づいて例えばレーザビームをON/OFF制御し
ながら300dpiに相当するピッチ間隔で光走査しなが
らビデオデータに対応した印字を行なう。
FIG. 2 is a basic configuration diagram showing a hardware configuration according to an embodiment of the present invention for performing the above-mentioned smoothing process.
The image data rasterized to i (300 × 300 per inch 2 ) is sequentially written into the video memory while being read from the font RAM 1a in accordance with the image signal from the host computer 2 side, and one page is stored in the video memory 1b. Alternatively, after the video data corresponding to one band width is dot-developed, the video data is converted into serial data synchronized with the video clock and output to the print engine 3 side, for example, while the laser beam is controlled on / off based on the video data. Printing corresponding to video data is performed while performing optical scanning at a pitch interval equivalent to 300 dpi.

【0028】そして本実施例は前記プリンタコントロー
ラ1とプリントエンジン3間に図3に示す平滑化処理回
路10を介装して前記方式に基づく平滑化処理を実現し
ている。即ち、平滑化処理回路10は、SRAMからな
る7ラインメモリ11との間で書込み/読み込みを行な
いながら3×7と7×3のウインドウを形成するために、7
×7ドットデータのラッチを行なうラッチ回路12、中
心ドットの補正ベクトルの大きさを計算する為の演算回
路13、該演算回路13より出力された補正ベクトルに
より前記プリントコントローラ1側より出力された中心
ドットを補正ドットに変換するための変換回路14が介
在している。尚15は補正ベクトル情報に基づいて中心
ドットを補正ドットに変換する為のレジスタ収納部であ
る。
In this embodiment, a smoothing process based on the above system is realized by interposing a smoothing processing circuit 10 shown in FIG. 3 between the printer controller 1 and the print engine 3. That is, the smoothing processing circuit 10 performs writing / reading with the 7-line memory 11 composed of an SRAM while forming 3 × 7 and 7 × 3 windows.
A latch circuit 12 for latching × 7 dot data, an arithmetic circuit 13 for calculating the magnitude of the correction vector of the center dot, and a center output from the print controller 1 side by the correction vector output from the arithmetic circuit 13 A conversion circuit 14 for converting dots into correction dots is interposed. Reference numeral 15 denotes a register storage unit for converting a center dot into a correction dot based on correction vector information.

【0029】次に前記回路の動作について簡単に説明す
ると、前記7ラインメモリ11は7走査ライン+1走査ラ
イン、即ち8走査ラインのビデオデータが格納可能なS
RAMで構成され、前記プリントコントローラ1よりV
CLKに同期してシリアル出力されるビデオデータを、
7ラインメモリ11の第1バンクに順次格納し、1走査ラ
イン分のVDATAが該第1バンクに格納された後、以下
同様に、第2ラインのVDATAは第2バンクへ、第3ライン
のVDATAは第3バンクへと順次格納していく。そして7ラ
イン分のVDATAが第1〜7バンクに格納されると、第8ラ
インの対応するアドレスのデータがプリントコントロー
ラ1より出力されるまでの時間を利用して、第1〜7バ
ンクの対応アドレスに格納されているVDATAをラッチ信
号に基づいて順次読み出し、データラッチ回路12を構
成する7ラインシフトレジスタに順次ロードする。
Next, the operation of the above circuit will be briefly described. The 7-line memory 11 is a memory capable of storing video data of 7 scanning lines + 1 scanning line, that is, 8 scanning lines.
A RAM, and the print controller 1
The video data serially output in synchronization with CLK is
After the data is sequentially stored in the first bank of the 7-line memory 11 and VDATA for one scan line is stored in the first bank, the VDATA of the second line is similarly transferred to the second bank, and the VDATA of the third line is similarly stored. Are sequentially stored in the third bank. When VDATA for seven lines is stored in the first to seventh banks, the time until the data of the corresponding address of the eighth line is output from the print controller 1 is used to correspond to the first to seventh banks. The VDATA stored in the address is sequentially read out based on the latch signal, and is sequentially loaded into a seven-line shift register constituting the data latch circuit 12.

【0030】この結果ラッチ回路12を構成する7ライ
ンシフトレジスタには、7ラインメモリ11よりのデー
タ転送により順次その内容を更新しながら中心ドットの
前後各3ライン、左右3ドットのドットマップ(7×7)
が格納配列される事となり、該ドットマップを利用して
前記演算回路13内でのベクトル演算処理が可能とな
る。演算回路13では、図1(B)に示すように前記7
ラインシフトレジスタよりのドットマップ(7×7)より3
×7(X,Y)、7×3(X,Y)のウインドウデータを取り出し、
夫々前記1)に示す補正ベクトル計算式に基づいて±X
方向ベクトル情報、±Y方向ベクトル情報若しくは±4
5°ベクトル情報を得、該情報より中心ドットに対応す
るベクトル情報と、中心ドットの種類(黒若しくは白)
情報に基づいて後記変換回路14で前記中心ドットに対
応するビデオデータを前記補正ベクトル情報に対応する
補正ビデオデータに変換した後、該ビデオデータをプリ
ントエンジン3側に出力する。
As a result, in the 7-line shift register constituting the latch circuit 12, while sequentially updating the contents by transferring data from the 7-line memory 11, a dot map (3 lines before and after the center dot and 3 dots left and right) × 7)
Are stored and arranged, and the vector arithmetic processing in the arithmetic circuit 13 can be performed using the dot map. In the arithmetic circuit 13, as shown in FIG.
3 from dot map (7 × 7) from line shift register
Extract window data of × 7 (X, Y) and 7 × 3 (X, Y),
± X based on the correction vector calculation formula shown in 1) above, respectively.
Direction vector information, ± Y direction vector information or ± 4
5 ° vector information is obtained, and the vector information corresponding to the center dot and the type of the center dot (black or white) are obtained from the information.
After converting the video data corresponding to the central dot into corrected video data corresponding to the correction vector information by the conversion circuit 14 based on the information, the video data is output to the print engine 3 side.

【0031】即ち補正されるべきドットの位置誤差は最
大でも隣接するドットの距離の1/2であり、従って補
正ベクトルの情報が同じでも中心ドットが(黒)か(白)の
場合黒側からみた補正情報は反転する。(例えば白の70
%の位置誤差は30%に補正した黒ドットを打つ事により
達成される。)従って例えば7種類の補正ベクトル情報
が得られる場合は、中心ドットが(黒)か(白)の場合黒側
からみた補正情報は反転する為に14種類の情報が得ら
れる事になる。
That is, the position error of the dot to be corrected is at most 1/2 of the distance between adjacent dots. Therefore, even if the information of the correction vector is the same, if the center dot is (black) or (white), the position error from the black side The viewed correction information is inverted. (E.g. white 70
The% position error is achieved by hitting a black dot corrected to 30%. Therefore, for example, when seven types of correction vector information are obtained, when the center dot is (black) or (white), the correction information viewed from the black side is inverted, so that fourteen types of information are obtained.

【0032】しかしながら実際には14種類の緻密な制
御を行なっても構成が煩雑化するのみで、又緻密なパル
ス制御でレーザビームをON/OFF制御しても印字さ
れる側では出力光度のバラツキ等により精度よい階調性
が得られない。そこで本実施例においては前記14種類
の補正情報を6種類に振分け、補正されるドットを6段
階の補正ドットに置き換えるように構成している。この
場合本実施例においては変換レジスタの種類を各方向成
分毎に、CR(-1,0)(-X方向)用、CR(1,0)(+X方向)
用、CR(0,-1 0,1)(±Y方向)用の夫々6種類、計1
8種類の変換レジスタを用意する。尚、前記補正ドット
の生成は一般に中心ドットをパルス幅変調して行なわれ
るが、レーザプリンタではレーザビームのスキャンライ
ンが水平方向であるために、水平方向±X方向のドット
移動は容易であるが、垂直方向±Y方向のシフトは困難
である。 そこで垂直方向については本実施例において
はドット位置を変えずにドットの大きさを変えるような
パルス制御を行なう事で処理をしている。
However, in practice, even if the 14 types of fine control are performed, the configuration becomes complicated, and even if the laser beam is ON / OFF controlled by the fine pulse control, the output luminous intensity varies on the side where printing is performed. Thus, accurate gradation cannot be obtained. Therefore, in the present embodiment, the 14 types of correction information are sorted into 6 types, and the dots to be corrected are replaced with 6-stage correction dots. In this case, in this embodiment, the type of the conversion register is set to CR (-1,0) (-X direction) and CR (1,0) (+ X direction) for each direction component.
6 types for each of CR (0, -1 0,1) (± Y direction), total 1
Eight types of conversion registers are prepared. The correction dots are generally generated by pulse width modulation of the center dot. However, in a laser printer, since the scan line of the laser beam is in the horizontal direction, the dot movement in the horizontal direction ± X direction is easy. It is difficult to shift in the vertical direction ± Y direction. Therefore, in the present embodiment, processing is performed by performing pulse control such that the dot size is changed without changing the dot position in the present embodiment.

【0033】例えば図4(I)に示すように前記変換回
路14内で、先ず前記±45°ベクトル情報に基づいて
前記中心ドットを含む曲線(直線を含む)が45°以上の
垂直に近い曲線か若しくは水平方向の曲線かを判断し、
水平に近い曲線の場合は、中心ドット{黒:(D(0,0=
1))、 白:(D(0,0)=0)情報と、補正ベクトル情報(CR
(χ,y)=1〜7)に基づいて下記AからFのレジスタより選
択した補正データをパラレルに16ドットの変換回路1
4内のシフトレジスタに書込み、該シフトレジスタよ
り、300dpiの16倍の周期のクロックに基づいて該シ
リアル出力する事により図4に示すように補正されたビ
デオデータをプリントエンジン3側に出力させる事が出
来る。この結果図5(I)に示すようにプリントエンジ
ン3側で(A)のような印字列が平滑化処理を行う事に
より(B)のような印字列に置換させる事が出来る。 (変換レジスタA〜Fのデータ内容) A:1111111001111111 B:1111110000111111 C:1111100000011111 D:1111000000000111 E:1110000000000111 F:1100000000000011
For example, as shown in FIG. 4 (I), in the conversion circuit 14, a curve including the center dot (including a straight line) is a curve close to a vertical line of 45 ° or more based on the ± 45 ° vector information. Or a horizontal curve,
For a nearly horizontal curve, the center dot {black: (D (0,0 =
1)), white: (D (0,0) = 0) information and correction vector information (CR
The correction data selected from the following registers A to F based on (χ, y) = 1 to 7) is converted in parallel to a 16-dot conversion circuit 1.
4, the video data corrected as shown in FIG. 4 is output to the print engine 3 by outputting the serial data from the shift register based on a clock having a cycle of 16 times 300 dpi. Can be done. As a result, as shown in FIG. 5 (I), the print sequence as shown in FIG. 5A can be replaced with a print sequence as shown in FIG. (Data contents of conversion registers A to F) A: 1111111001111111 B: 1111110000111111 C: 1111100000011111 D: 1111000000000111 E: 1110000000000111 F: 1100000000000011

【0034】一方、垂直に近い曲線の場合は前記ベクト
ル情報CR(χ、y)か正の(+X方向)のベクトル情報CR
(1,0)か負の(-X方向)のベクトル情報CR(-1,0)か否か
を判定し、中心ドット{黒:(D(0,0=1))、 白:(D(0,0)
=0)情報と、補正ベクトル情報(CR(χ,y)=1〜7)に基づ
いて下記GからL及びMからRの対応レジスタより選択
した補正データをパラレルに16ドットの変換回路14
内のシフトレジスタに書込み、該シフトレジスタより、
300dpiの16倍の周期のクロックに基づいて該シリア
ル出力する事により図4(II)、(III)に示すように補
正されたビデオデータをプリントエンジン3側に出力さ
せる事が出来る。この結果図5(II)に示すようにプリ
ントエンジン3側で(A)のような印字列を(B)のよ
うな印字列に置換する事が出来る。 (変換レジスタG〜Rのデータ内容) G:1111111111111000 H:1111111111100000 I:1111111110000000 J:1111111000000000 K:1111100000000000 L:1110000000000000 M:0001111111111111 N:0000011111111111 O:0000000111111111 P:0000000001111111 Q:0000000000011111 R:0000000000000111
On the other hand, in the case of a curve that is nearly vertical, the vector information CR (χ, y) or the positive (+ X direction) vector information CR is used.
It is determined whether (1,0) or negative (-X direction) vector information CR (-1,0), and the center dot {black: (D (0,0 = 1)), white: (D (0,0)
= 0) and the correction data selected from the following G to L and M to R corresponding registers based on the correction vector information (CR (χ, y) = 1 to 7).
Write to the shift register inside, and from the shift register,
By performing the serial output based on a clock having a cycle of 16 times 300 dpi, the corrected video data can be output to the print engine 3 as shown in FIGS. 4 (II) and 4 (III). As a result, as shown in FIG. 5 (II), the print sequence as shown in FIG. 5A can be replaced by the print sequence as shown in FIG. (Data contents of conversion registers G to R) G: 1111111111111000 H: 1111111111100000 I: 1111111110000000 J: 1111110000000000 K: 1111100000000000 L: 1110000000000000 M: 0001111111111111 N: 0000011111111111 O: 0000000111111111 P: 0000000001111111 Q: 0000000000011111 R: 0000000000000111

【0035】[0035]

【効果】以上記載した如く本発明によれば、回路構成を
煩雑化させることなく、而も簡単な判定動作で容易に且
つ精度よく平滑化処理を行なう事出来る。又本発明は
画像平滑化と共にドット自体の高品質化を図り、平滑化
処理後のデータの拡大に十分耐え得る高品質画像を得る
こと出来る。等の種々の著効を有す。
According to the described as the present invention EFFECT above, without complicating the circuit configuration, Thus also easily and accurately smoothing process that can be performed by a simple determination operation. The present invention aims to quality of dot itself with image smoothing, it is possible to obtain a high-quality image which can withstand sufficiently the expansion of the data after the smoothing process. And so on.

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

【図1】本発明の原理を示す作用図で、(A)は基本構
成図、(B)は(C)の演算に必要な座標データ、
(C)は中心ドットに対する補正ベクトル情報を求める
為の演算手順を示す。
FIGS. 1A and 1B are operation diagrams showing the principle of the present invention, wherein FIG. 1A is a basic configuration diagram, FIG. 1B is coordinate data required for the calculation of FIG.
(C) shows a calculation procedure for obtaining correction vector information for the center dot.

【図2】本発明の実施例にかかる平滑化処理回路を組込
んだプリンタの基本構成図である。
FIG. 2 is a basic configuration diagram of a printer incorporating a smoothing processing circuit according to an embodiment of the present invention.

【図3】本発明の平滑化処理回路の全体構成図を示すブ
ロックダイヤグラムである。
FIG. 3 is a block diagram showing an entire configuration diagram of a smoothing processing circuit of the present invention.

【図4】前記平滑化処理回路で生成される平滑用ビデオ
データの種類を示すパルス波形図、(I)は水平に近い
分布線のパルス、(II),(III)は垂直に近い分布線の
パルス波形を示す。
FIG. 4 is a pulse waveform chart showing types of video data for smoothing generated by the smoothing processing circuit, (I) is a pulse of a nearly horizontal distribution line, and (II) and (III) are near vertical distribution lines. 2 shows a pulse waveform of the first embodiment.

【図5】図4のビデオデータに基づいて生成される印字
ドット分布を示し、(A)は平滑化処理前、(B)は平
滑化処理後を示す。
5A and 5B show print dot distributions generated based on the video data of FIG. 4, wherein FIG. 5A shows a state before smoothing processing and FIG. 5B shows a state after smoothing processing.

【図6】従来技術にかかる平滑化処理回路の全体構成図
を示すブロックダイヤグラムである。
FIG. 6 is a block diagram showing an entire configuration diagram of a smoothing processing circuit according to a conventional technique.

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

1 プリントコントローラ 10 平滑化処理回路 11 7ラインメモリ 12 ラッチ回路 13 演算回路 14 変換回路 DESCRIPTION OF SYMBOLS 1 Print controller 10 Smoothing processing circuit 11 7-line memory 12 Latch circuit 13 Operation circuit 14 Conversion circuit

───────────────────────────────────────────────────── フロントページの続き (51)Int.Cl.6 識別記号 FI H04N 1/409 G06F 15/62 325A (58)調査した分野(Int.Cl.6,DB名) B41J 2/485 G06F 3/12 G06T 11/60 G09G 5/28 610 H04N 1/387 H04N 1/409 ──────────────────────────────────────────────────続 き Continued on the front page (51) Int.Cl. 6 identification symbol FI H04N 1/409 G06F 15/62 325A (58) Investigated field (Int.Cl. 6 , DB name) B41J 2/485 G06F 3 / 12 G06T 11/60 G09G 5/28 610 H04N 1/387 H04N 1/409

Claims (2)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 マトリックス状のドット画像を形成す
る、M×N又は/及びN×M(N≧M、N及びMは3以
上の奇数)座標のドットマップに基づいて該マップ内の
注目ドット及び該注目ドット周囲のドットからなる分布
を、前記ドットマップを形成するNの少ない数から順次
ベクトル化して得られたベクトル情報を基に画像平滑化
処理を行う画像出力装置における画像平滑化処理方法
おいて、前記ドット マップ内の注目ドット及び該注目ドットに隣
接する第1周囲ドット群からなる第1のドット分布をベ
クトル化して得られた第1のベクトル情報と、 前記注目ドット及び前記第1の周囲ドット群にX軸若し
くはY軸方向に隣接する第2のドット群のドット分布を
ベクトル化して得られた次位のベクトル情報と、 以下順次{(N−1)/2}位までの前記注目ドットと
のベクトル情報とを得るとともに、 該{(N−1)/2}位までのベクトル情報をさらに重
み付けし、この重み付けして得られたベクトル情報の総
和を前記注目ドットに対する位置誤差補正用のベクトル
情報として採用する 事を特徴とする画像平滑化処理
法。
1. A method for forming a matrix dot image.
,M × N or / and N × M (N ≧ M, N and M are 3 or less
Based on the dot map of the (odd) coordinates above
Distribution of the target dot and the dots around the target dot
From the small number of N forming the dot map
Image smoothing based on vector information obtained by vectorization
Do the processingImage smoothing process in image output deviceMethodTo
AndThe dot In the mapAttention dot andThe attention dotNext to
A first dot consisting of a first group of surrounding dots in contactDistribution
Into a turtleFirst vector information obtained by The target dot and the first surrounding dot group have an X-axis
Or the dot distribution of the second dot group adjacent in the Y-axis direction
Second-order vector information obtained by vectorization, In the following, the dot of interest up to {(N-1) / 2}
And obtain the vector information of The vector information up to the {(N-1) / 2} order is further overlapped.
And the total of vector information obtained by this weighting
The sum is a vector for correcting the position error with respect to the noted dot.
Adopt as information Image smoothing processingOne
Law.
【請求項2】 前記注目画素の位置誤差補正を行なう平
滑化処理用のデータが格納されたレジスタを複数用意
し、前記ベクトル情報と注目ドットのドット種類に基づ
いて対応するレジスタを選択し、該レジスタ内の補正デ
ータにより前記注目ドットに対する位置誤差を補正用パ
ルスを生成しながら画像平滑化を行なう事を特徴とする
請求項1記載の画像平滑化処理方法。
2. A plurality of registers storing data for a smoothing process for correcting a position error of the target pixel are prepared, and a corresponding register is selected based on the vector information and a dot type of the target dot. Image smoothing is performed while generating a pulse for correcting a position error with respect to the noted dot by using correction data in a register.
The image smoothing method according to claim 1 .
JP4163991A 1992-05-30 1992-05-30 Image smoothing method Expired - Fee Related JP2990671B2 (en)

Priority Applications (4)

Application Number Priority Date Filing Date Title
JP4163991A JP2990671B2 (en) 1992-05-30 1992-05-30 Image smoothing method
US08/067,212 US5579451A (en) 1992-05-30 1993-05-26 Image output device and image control method for smoothing image or increasing image resolution by use of same
EP93108710A EP0572956B1 (en) 1992-05-30 1993-05-28 Image output device and image control method for smoothing image or increasing image resolution by use of same
DE69323446T DE69323446T2 (en) 1992-05-30 1993-05-28 Image generation device and image control method for image smoothing or image resolution increase by using the same

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP4163991A JP2990671B2 (en) 1992-05-30 1992-05-30 Image smoothing method

Publications (2)

Publication Number Publication Date
JPH05330145A JPH05330145A (en) 1993-12-14
JP2990671B2 true JP2990671B2 (en) 1999-12-13

Family

ID=15784687

Family Applications (1)

Application Number Title Priority Date Filing Date
JP4163991A Expired - Fee Related JP2990671B2 (en) 1992-05-30 1992-05-30 Image smoothing method

Country Status (1)

Country Link
JP (1) JP2990671B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3791259B2 (en) 1999-10-07 2006-06-28 セイコーエプソン株式会社 Outline smoothing processing method

Also Published As

Publication number Publication date
JPH05330145A (en) 1993-12-14

Similar Documents

Publication Publication Date Title
US5016001A (en) Pattern data generating system
JP3844791B2 (en) A method for adjusting the density of digital images.
EP0388833B1 (en) Optical recording system
US5204916A (en) Tile-oriented technique for collectively performing image rotation, scaling and digital halftone screening
US5526476A (en) Method and apparatus for generating character patterns expressed by coordinates of a coordinate system
JPH06225140A (en) Method and apparatus for smoothing edge of picture element image
US6016154A (en) Image forming apparatus
EP0527097A2 (en) Apparatus and method for collectively performing tile-based image rotation, scaling and digital halftone screening
US5684933A (en) Method and apparatus for forming images using a pre and post smoothing bit thinning down process
EP0572956B1 (en) Image output device and image control method for smoothing image or increasing image resolution by use of same
JP2990671B2 (en) Image smoothing method
AU647208B2 (en) Image recording apparatus for providing high quality image
US5790764A (en) Image output device and image control method for smoothing image or increasing image resolution by use of same
WO2001064448A1 (en) Image correction method and image correction device
JP2871195B2 (en) Image smoothing processing device in printer
JP2858443B2 (en) High density image forming method and its output device
JP2752821B2 (en) Image recording device
JP3285604B2 (en) Image quality improvement device in image forming apparatus
JPH0531958A (en) Image forming apparatus
JPH0522599A (en) Image forming device
JP2532177B2 (en) Image forming device
JP2994648B2 (en) Color image forming equipment
JP2841829B2 (en) Data converter
JPS60116284A (en) Method for processing colored half tone picture
JP2896097B2 (en) Method and apparatus for filling outline font in which characters are configured for each element

Legal Events

Date Code Title Description
FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20071015

Year of fee payment: 8

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20081015

Year of fee payment: 9

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20091015

Year of fee payment: 10

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20101015

Year of fee payment: 11

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20101015

Year of fee payment: 11

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20111015

Year of fee payment: 12

LAPS Cancellation because of no payment of annual fees