JPH11205596A - Image formation device and method - Google Patents

Image formation device and method

Info

Publication number
JPH11205596A
JPH11205596A JP10011973A JP1197398A JPH11205596A JP H11205596 A JPH11205596 A JP H11205596A JP 10011973 A JP10011973 A JP 10011973A JP 1197398 A JP1197398 A JP 1197398A JP H11205596 A JPH11205596 A JP H11205596A
Authority
JP
Japan
Prior art keywords
print density
degree
blocks
image forming
image data
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
JP10011973A
Other languages
Japanese (ja)
Inventor
Yuzo Kiyono
友蔵 清野
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.)
Canon Inc
Original Assignee
Canon Inc
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 Canon Inc filed Critical Canon Inc
Priority to JP10011973A priority Critical patent/JPH11205596A/en
Publication of JPH11205596A publication Critical patent/JPH11205596A/en
Pending legal-status Critical Current

Links

Landscapes

  • Record Information Processing For Printing (AREA)
  • Facsimile Image Signal Circuits (AREA)

Abstract

PROBLEM TO BE SOLVED: To avoid changes in contrast due to character attribute settings includ ing a type face, a character size, a stroke number and character modification, by converting binary image data to multi-valued image data depending on an inferred printing density. SOLUTION: The number of black or white picture elements present inside divided plural blocks into which generated raster image data are divided is detected, and the number of the picture elements and a threshold value are compared for the respective blocks so that the number of blocks provided with the number of the black or white picture elements equal to or more than the threshold value is calculated. Then, the block number and the printing density are related as a qualitative rule, degree of belonging to a set of the printing density is led out from a degree that the block number belongs to a prescribed set based on the above rule and the printing density is inferred based on the led-out degree. Then, depending on the inferred printing density, the binary image data are converted to multi-valued image data. In this device, an image generation processing program is stored in a ROM 213 and executed by a CPU 212.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、濃淡印刷可能なプ
リンタ、複写機、ファクシミリなどの画像形成装置およ
び方法に関する。
[0001] 1. Field of the Invention [0002] The present invention relates to an image forming apparatus such as a printer, a copying machine, a facsimile, and the like capable of printing light and shade.

【0002】[0002]

【従来の技術】図23は従来の画像形成装置の構成を示
すブロック図である。図24はホストコンピュータによ
って実行される画像形成処理手順を示すフローチャート
である。
2. Description of the Related Art FIG. 23 is a block diagram showing a configuration of a conventional image forming apparatus. FIG. 24 is a flowchart showing an image forming processing procedure executed by the host computer.

【0003】画像形成装置およびホストコンピュータ1
aは、RS−232Cやセントロニクスなどのプロトコ
ル手段を用いて接続されており、制御信号、画像データ
などの信号の転送を行う。
Image forming apparatus and host computer 1
a is connected using a protocol such as RS-232C or Centronics, and transfers signals such as control signals and image data.

【0004】ホストコンピュータ1aが画像形成装置に
新しいジョブを開始させる場合、その時点での画像形成
装置の動作モードが不確定であり、画像形成装置は特定
の動作モードによって画像形成を行わせるジョブ開始命
令を受け付けない場合がある。
When the host computer 1a causes the image forming apparatus to start a new job, the operation mode of the image forming apparatus at that time is uncertain, and the image forming apparatus starts a job for forming an image in a specific operation mode. There are cases where the order is not accepted.

【0005】そこで、ホストコンピュータ1aは、画像
形成装置のジョブを確実に開始できる状態とするため、
動作モードを設定するためのテキストモード開始命令を
発行する(ステップS1001)。
Therefore, the host computer 1a is in a state where the job of the image forming apparatus can be reliably started.
A text mode start command for setting an operation mode is issued (step S1001).

【0006】動作モードが確定した画像形成装置に対
し、ホストコンピュータ1aはジョブ開始命令を宣言
し、画像形成装置で使用する解像度および文字コード体
系を指定し(ステップS1002)、ジョブを実行する
ために必要な印字環境を初期化するため、ソフトリセッ
ト命令を発行する(ステップS1003)。
The host computer 1a declares a job start command for the image forming apparatus in which the operation mode is determined, specifies a resolution and a character code system used in the image forming apparatus (step S1002), and executes the job. A software reset command is issued to initialize a necessary printing environment (step S1003).

【0007】そして、印字環境の設定、制御命令、文字
データなどの画像形成に必要なページ記述を行う(ステ
ップS1004)。画像形成のためのページ記述が終了
すると、ホストコンピュータ1aはジョブ終了命令を宣
言し、次のジョブのために印字環境を初期化し、装置を
開放する(ステップS1005)。
[0007] Then, a page description necessary for image formation, such as setting of a printing environment, control commands, and character data, is made (step S1004). When the page description for image formation is completed, the host computer 1a declares a job end command, initializes a printing environment for the next job, and releases the apparatus (step S1005).

【0008】図25はステップS1004におけるペー
ジ記述処理手順を示すフローチャートである。始めに、
用紙サイズ、ページオリエンテーションなどのページフ
ォーマットの設定、プリント部数などの印字環境設定を
行う(ステップS1101)。
FIG. 25 is a flowchart showing a page description processing procedure in step S1004. At the beginning,
A page format such as a paper size and a page orientation is set, and a printing environment such as the number of copies is set (step S1101).

【0009】このページフォーマット情報により、画像
形成装置はラスタイメージデータの印字ロケーションを
(m×n)×kドットのフォーマット構成とし、定数
n,kの値を設定する。図26は印字ロケーションのフ
ォーマット構成を示す図である。
Based on the page format information, the image forming apparatus sets the print location of the raster image data in a format of (m × n) × k dots and sets values of constants n and k. FIG. 26 is a diagram showing a format configuration of a print location.

【0010】画像データを格納するための画像メモリ4
00aは、mビットのデータからなる1ページ相当分の
情報容量を有している。図27は画像メモリ内のmビッ
トデータの配置を示す図である。これにより、画像メモ
リ400aのアドレス番地と印字ロケーションとの相対
位置関係が決定される。
Image memory 4 for storing image data
00a has an information capacity corresponding to one page composed of m-bit data. FIG. 27 is a diagram showing the arrangement of m-bit data in the image memory. Thus, the relative positional relationship between the address and the print location in the image memory 400a is determined.

【0011】つぎに、印字に使用する文字セットを選択
し、文字セットを割り当てテーブルに準備する(ステッ
プS1102)。この文字セットの選択により、画像形
成装置はオンボードROMなどに格納されているキャラ
クタフォントROM205aと、使用するスケーラブル
フォントもしくはビットマップの割り当てテーブルをセ
ットする。尚、フォントROM205aとしては、カー
トリッジ、ICカードなどの外部記憶装置であってもよ
い。
Next, a character set to be used for printing is selected, and the character set is prepared in an assignment table (step S1102). By selecting this character set, the image forming apparatus sets a character font ROM 205a stored in an on-board ROM or the like, and a scalable font or bitmap allocation table to be used. Note that the font ROM 205a may be an external storage device such as a cartridge or an IC card.

【0012】使用する文字セットを設定した後、印字位
置を指定する(ステップS1103)。この印字位置指
定により、画像形成装置は、上述した画像メモリ400
aのアドレス番地と印字ロケーションとの相対位置関係
からアドレス番地の設定を行う。
After setting the character set to be used, a print position is designated (step S1103). By the designation of the print position, the image forming apparatus operates the image memory 400 described above.
The address is set based on the relative positional relationship between the address a and the print location.

【0013】そして、文字データを記述しながら、文字
セットの切り換え、文字修飾などを行い、画像形成のた
めのデータを記述する(ステップS1104)。
Then, while describing the character data, switching of character sets, character modification, and the like are performed, and data for image formation is described (step S1104).

【0014】画像形成装置は、指定された文字セットの
割り当てテーブルに従って、与えられた文字コードの文
字パターンデータを参照し、画像メモリ400aにラス
タイメージデータを生成する。1ページ分の印字データ
の記述を終了すると、記録材を画像形成装置から排出さ
せるための排紙命令を発行する(ステップS110
5)。
The image forming apparatus generates raster image data in the image memory 400a by referring to the character pattern data of the given character code according to the specified character set assignment table. When the description of the print data for one page is completed, a discharge command for discharging the recording material from the image forming apparatus is issued (step S110).
5).

【0015】ラスタイメージデータの生成が終了した画
像形成装置は、エンジンコントローラに配設されている
MPU12aへ、画像形成の開始を指示するプリント信
号を出力する。エンジン部の画像形成準備が整うと、垂
直走査の同期をとるための垂直同期信号の出力を要求す
る垂直同期要求信号が返信され、画像メモリ400aの
制御権をCPU202aよりメモリコントローラ300
aへ解放し、垂直同期信号を出力する。
The image forming apparatus that has completed the generation of the raster image data outputs a print signal for instructing the start of image formation to the MPU 12a provided in the engine controller. When the engine unit is ready for image formation, a vertical synchronization request signal requesting the output of a vertical synchronization signal for synchronizing vertical scanning is returned, and the control right of the image memory 400a is transferred from the CPU 202a to the memory controller 300.
a, and outputs a vertical synchronization signal.

【0016】メモリコントローラ300aは、水平走査
の同期をとるための水平同期信号のタイミングに応じ
て、画像メモリ400aの1水平走査線相当分のデータ
をFIFOメモリ500aへ転送し、FIFOメモリ5
00aのデータをシフトレジスタ600aでパラレルシ
リアル変換するアドレス制御およびタイミング制御を行
う。
The memory controller 300a transfers data corresponding to one horizontal scanning line of the image memory 400a to the FIFO memory 500a in accordance with the timing of a horizontal synchronizing signal for synchronizing horizontal scanning.
Address control and timing control for parallel-to-serial conversion of the data of 00a by the shift register 600a are performed.

【0017】シフトレジスタ600aの出力は光源ユニ
ット8aに配設されている半導体レーザを変調させるた
めのレーザ変調信号であり、レーザ駆動回路7aに転送
される。
The output of the shift register 600a is a laser modulation signal for modulating the semiconductor laser provided in the light source unit 8a, and is transmitted to the laser drive circuit 7a.

【0018】図28はレーザ駆動回路7aの構成を示す
ブロック図である。レーザ駆動回路7aは、レーザ変調
信号によって半導体レーザ801aをオン/オフ制御す
るスイッチング回路706aと、半導体レーザ801a
の光出力をモニタするフォトダイオード802aからの
光出力電流を検出するための光量検出回路701aと、
半導体レーザ801aが点灯している場合にサンプリン
グし、消灯している場合にホールド制御されるサンプリ
ング回路702aと、サンプリング回路702aの出力
と基準電圧Vrefとの減算演算を行う減算器703a
と、減算器703aの出力に基づいて操作量を決定する
調整器704aと、調整器704aの操作量に基づいて
半導体レーザ801aのレーザ駆動電流を制御する電流
制御トランジスタ705aとからなるAPC(Auto Pow
er Control)回路を構成する。これにより、常に静電潜
像形成のために最適なレーザ光出力が得られる。
FIG. 28 is a block diagram showing the structure of the laser drive circuit 7a. The laser drive circuit 7a includes a switching circuit 706a for controlling on / off of the semiconductor laser 801a by a laser modulation signal, and a semiconductor laser 801a.
A light amount detection circuit 701a for detecting a light output current from a photodiode 802a for monitoring the light output of
A sampling circuit 702a that performs sampling when the semiconductor laser 801a is turned on and that is held when the semiconductor laser 801a is turned off, and a subtractor 703a that performs a subtraction operation between the output of the sampling circuit 702a and the reference voltage Vref.
APC (Auto Pow) comprising an adjuster 704a for determining an operation amount based on the output of the subtractor 703a, and a current control transistor 705a for controlling a laser drive current of the semiconductor laser 801a based on the operation amount of the adjuster 704a.
er Control) circuit. As a result, an optimum laser beam output for forming an electrostatic latent image is always obtained.

【0019】図29は画像形成装置の光学的構成を示す
図である。光源ユニット8aに配設された半導体レーザ
801aから出射されるレーザ光は、コリメータレンズ
1301aおよびシリンドリカルレンズ1302aを通
過した後、回転多面鏡1303aの偏向ミラーに到達す
る。
FIG. 29 is a diagram showing an optical configuration of the image forming apparatus. Laser light emitted from the semiconductor laser 801a provided in the light source unit 8a passes through a collimator lens 1301a and a cylindrical lens 1302a, and then reaches a deflection mirror of a rotary polygon mirror 1303a.

【0020】回転多面鏡1303aの偏向ミラー面で反
射したレーザ光は、球面レンズ1304aやトーリック
レンズ1305aから構成されるアナモフィック走査レ
ンズ系によって感光体14aの表面上に結像され、静電
潜像を形成する。
The laser light reflected by the deflecting mirror surface of the rotary polygon mirror 1303a is imaged on the surface of the photosensitive member 14a by an anamorphic scanning lens system including a spherical lens 1304a and a toric lens 1305a, and forms an electrostatic latent image. Form.

【0021】さらに、走査ラインの先端部に反射ミラー
1306aが配設されており、レーザ光をビーム検出器
9aに導いている。
Further, a reflection mirror 1306a is provided at the tip of the scanning line, and guides laser light to the beam detector 9a.

【0022】ビーム検出器9aの光出力検出信号は、水
平同期検出回路10aによりアナログ信号からパルス信
号に変換され、レーザ光が所定の位置に到来したことを
示す水平同期信号を出力する。
The light output detection signal of the beam detector 9a is converted from an analog signal to a pulse signal by a horizontal synchronization detection circuit 10a, and outputs a horizontal synchronization signal indicating that the laser beam has reached a predetermined position.

【0023】そして、上述したように水平同期信号に同
期してラスタイメージデータが転送され、1ページ相当
分の画像形成が行われる。
Then, as described above, the raster image data is transferred in synchronization with the horizontal synchronizing signal, and an image corresponding to one page is formed.

【0024】[0024]

【発明が解決しようとする課題】しかしながら、従来の
画像形成装置では以下に掲げる問題があり、その改善が
要望されていた。すなわち、画像形成装置において様々
な文字を印刷してみると、文字の書体やサイズ、画数、
文字修飾などの違いにより、コントラストが異なって見
える。これは、人間の視覚の積分効果に起因するもので
避けることができない。このため、従来の画像形成装置
では、太いラインを用いる書体や大きなサイズの文字な
どでは、コントラストがきつくなってしまう。
However, the conventional image forming apparatus has the following problems, and improvement thereof has been demanded. In other words, when printing various characters on the image forming apparatus, the typeface, size, number of strokes,
The contrast looks different due to differences such as character modification. This is due to the integral effect of human vision and cannot be avoided. For this reason, in the conventional image forming apparatus, the contrast is sharp in a typeface using a thick line or a large-sized character.

【0025】また、逆に細いラインを用いる書体および
小さなサイズの文字では、文字がかすみコントラストが
低下するトレード・オフの関係があり、このため、最適
なコントラストが得られない場合、目の疲労感が増大す
るという問題があった。
On the other hand, in a typeface using thin lines and small-sized characters, there is a trade-off relationship in which the characters are blurred and the contrast is reduced. However, there is a problem that the number increases.

【0026】そこで、本発明は、書体、文字サイズ、画
数、文字修飾などの文字属性設定値によりコントラスト
が変化することを回避できる画像形成装置および方法を
提供することを目的とする。
SUMMARY OF THE INVENTION It is an object of the present invention to provide an image forming apparatus and method capable of avoiding a change in contrast due to a set of character attributes such as a font, a character size, the number of strokes, and character modification.

【0027】[0027]

【課題を解決するための手段】上記目的を達成するため
に、本発明の請求項1に記載の画像形成装置は、画素毎
に濃淡印刷を行える画像形成装置において、パターンデ
ータを記憶する記憶手段と、該記憶されたパターンデー
タの2値ラスタイメージデータを生成する画像データ生
成手段と、該生成されたラスタイメージデータを複数の
ブロックに分割する分割手段と、該分割されたブロック
内に存在する黒または白の画素数を検出する画素数検出
手段と、該検出された黒または白の画素数としきい値と
を前記各ブロック毎に比較する比較手段と、該比較の結
果、前記しきい値以上の黒または白の画素数を有する前
記ブロックの数を算出するブロック数算出手段と、該算
出されたブロック数と印字濃度とを定性的な規則として
関係付けを行う規則手段と、該規則にしたがって、前記
ブロック数が所定の集合に属する度合いから、前記印字
濃度の集合に属する度合いを導出する度合導出手段と、
該導出された前記印字濃度の集合に属する度合いに基づ
いて前記印字濃度を推論する推論手段とを備え、該推論
された印字濃度により2値画像データを多値画像データ
に変換することを特徴とする。
To achieve the above object, an image forming apparatus according to a first aspect of the present invention is an image forming apparatus capable of performing density printing for each pixel. Image data generating means for generating binary raster image data of the stored pattern data; dividing means for dividing the generated raster image data into a plurality of blocks; and data existing in the divided blocks. Pixel number detecting means for detecting the number of black or white pixels; comparing means for comparing the detected number of black or white pixels with a threshold value for each of the blocks; as a result of the comparison, the threshold value A block number calculating means for calculating the number of blocks having the number of black or white pixels, and a rule for associating the calculated number of blocks with the print density as a qualitative rule. And means, in accordance with the rules, the degree to which the number of blocks belonging to a predetermined set, the degree derivation means for deriving a degree of belonging to the set of the printing density,
Inference means for inferring the print density based on the degree of belonging to the set of the derived print densities, and converting the binary image data into multi-valued image data by the inferred print density. I do.

【0028】請求項2に記載の画像形成装置では、請求
項1に係る画像形成装置において前記度合導出手段は、
前記ブロック数が複数の所定の集合に属する度合いか
ら、前記印字濃度の集合に属する度合いをそれぞれ導出
し、前記推論手段は、前記導出されたそれぞれの前記印
字濃度の集合に属する度合いを合成する合成手段と、該
合成された前記印字濃度の集合に属する度合いに基づい
て、前記推論される印字濃度を決定する演算手段とを備
えたことを特徴とする。
According to a second aspect of the present invention, in the image forming apparatus according to the first aspect, the degree deriving means includes:
The degree of belonging to the set of print densities is derived from the degree to which the number of blocks belongs to a plurality of predetermined sets, and the inference means combines the derived degrees of belonging to the set of print densities. Means for calculating the inferred print density based on the degree of belonging to the synthesized print density set.

【0029】請求項3に記載の画像形成装置では、請求
項1または請求項2に係る画像形成装置において前記規
則手段は、前記ブロック数と前記印字濃度との定性的な
規則をファジィ命題の形で表現して記憶する規則記憶手
段を備えたことを特徴とする。
According to a third aspect of the present invention, in the image forming apparatus according to the first or second aspect, the ruler determines a qualitative rule between the number of blocks and the print density in the form of a fuzzy proposition. Characterized in that it is provided with a rule storage means for expressing and storing the same.

【0030】請求項4に記載の画像形成装置では、請求
項1、請求項2または請求項3に係る画像形成装置にお
いて前記度合導出手段は、前記ブロック数および前記印
字濃度をそれぞれファジィ集合で表現したメンバーシッ
プ関数を記憶するメンバーシップ関数記憶手段を備えた
ことを特徴とする。
According to a fourth aspect of the present invention, in the image forming apparatus according to the first, second, or third aspect, the degree deriving means expresses the number of blocks and the print density by fuzzy sets. A membership function storing means for storing the membership function.

【0031】請求項5に記載の画像形成装置では、請求
項4に係る画像形成装置において前記度合導出手段は、
前記メンバーシップ関数記憶手段に記憶されたメンバー
シップ関数に基づいて、前記ブロック数の適合度を算出
する適合度算出手段を備えたことを特徴とする。
In the image forming apparatus according to a fifth aspect, in the image forming apparatus according to the fourth aspect, the degree deriving means includes:
A fitness calculation unit is provided for calculating the fitness of the number of blocks based on the membership function stored in the membership function storage unit.

【0032】請求項6に記載の画像形成装置では、請求
項5に係る画像形成装置において前記度合導出手段は、
前記算出されたブロック数の適合度から、前記規則記憶
手段にファジィ命題の形で記憶された規則にしたがっ
て、前記印字濃度の推論結果を求めることを特徴とす
る。
In the image forming apparatus according to a sixth aspect, in the image forming apparatus according to the fifth aspect, the degree deriving means includes:
The inference result of the print density is obtained from the calculated conformity of the number of blocks in accordance with the rule stored in the rule storage means in the form of a fuzzy proposition.

【0033】請求項7に記載の画像形成装置では、請求
項6に係る画像形成装置において前記度合算出手段は、
前記ブロック数の適合度と前記印字濃度のメンバーシッ
プ関数との最小値演算または乗算演算により前記推論結
果を求めることを特徴とする。
In the image forming apparatus according to a seventh aspect, in the image forming apparatus according to the sixth aspect, the degree calculating means includes:
The inference result is obtained by a minimum value operation or a multiplication operation of the degree of conformity of the number of blocks and the membership function of the print density.

【0034】請求項8に記載の画像形成装置では、請求
項7に係る画像形成装置において前記推論手段は、各規
則における前記推論結果を最大値演算、最小値演算ある
いは加算演算により合成することを特徴とする。
According to an eighth aspect of the present invention, in the image forming apparatus according to the seventh aspect, the inference means combines the inference result in each rule by a maximum value operation, a minimum value operation, or an addition operation. Features.

【0035】請求項9に記載の画像形成装置では、請求
項8に係る画像形成装置において前記演算手段は、前記
合成された結果の重心を求めることにより前記印字濃度
を決定することを特徴とする。
According to a ninth aspect of the present invention, in the image forming apparatus according to the eighth aspect, the calculating means determines the print density by obtaining a center of gravity of the synthesized result. .

【0036】請求項10に記載の画像形成方法は、画素
毎に濃淡印刷を行う画像形成方法において、パターンデ
ータを記憶しておき、該記憶されたパターンデータの2
値ラスタイメージデータを生成し、該生成されたラスタ
イメージデータを複数のブロックに分割し、該分割され
たブロック内に存在する黒または白の画素数を検出し、
該検出された黒または白の画素数としきい値とを前記各
ブロック毎に比較し、該比較の結果、前記しきい値以上
の黒または白の画素数を有する前記ブロックの数を算出
し、該算出されたブロック数と印字濃度とを定性的な規
則として関係付けを行い、該規則にしたがって、前記ブ
ロックの数が所定の集合に属する度合いから、前記印字
濃度の集合に属する度合いを導出し、該導出された前記
印字濃度の集合に属する度合いに基づいて前記印字濃度
を推論し、該推論された印字濃度により2値画像データ
を多値画像データに変換することを特徴とする。
According to a tenth aspect of the present invention, in the image forming method of performing grayscale printing for each pixel, pattern data is stored, and the stored pattern data is stored in the image data.
Generate value raster image data, divide the generated raster image data into a plurality of blocks, detect the number of black or white pixels present in the divided blocks,
The detected number of black or white pixels and a threshold value are compared for each of the blocks, and as a result of the comparison, the number of blocks having the number of black or white pixels equal to or greater than the threshold value is calculated. The calculated number of blocks and the print density are related as a qualitative rule, and according to the rule, the degree of belonging to the set of print densities is derived from the degree of the number of blocks belonging to a predetermined set. The print density is inferred based on the derived degree of belonging to the set of print densities, and the binary image data is converted into multi-valued image data based on the inferred print density.

【0037】[0037]

【発明の実施の形態】本発明の画像形成装置および方法
の実施形態について説明する。本実施形態における画像
形成装置では、1画素当たり16階調数に設定されてい
る。
DESCRIPTION OF THE PREFERRED EMBODIMENTS An embodiment of the image forming apparatus and method of the present invention will be described. In the image forming apparatus according to the present embodiment, the number of gradations is set to 16 per pixel.

【0038】[第1の実施形態]図1は第1の実施形態
における画像形成装置の構成を示すブロック図である。
画像形成装置はホストコンピュータ1に接続されてお
り、ホストインターフェース回路201、CPU21
2、ROM213、RAM214、フォントROM20
5、画像メモリ401〜404、FIFOメモリ501
〜504、シフトレジスタ601〜604、レーザ駆動
回路7、光源ユニット8、メモリコントローラ301、
水平同期検出器10、ビーム検出器9などを有する。
[First Embodiment] FIG. 1 is a block diagram showing the configuration of an image forming apparatus according to the first embodiment.
The image forming apparatus is connected to the host computer 1, and includes a host interface circuit 201, a CPU 21
2, ROM 213, RAM 214, font ROM 20
5, image memories 401 to 404, FIFO memory 501
, 504, shift registers 601-604, laser drive circuit 7, light source unit 8, memory controller 301,
It has a horizontal synchronization detector 10, a beam detector 9, and the like.

【0039】図2は画像形成処理手順を示すフローチャ
ートである。この処理プログラムはROM213に格納
されており、CPU212によって実行される。
FIG. 2 is a flowchart showing an image forming processing procedure. This processing program is stored in the ROM 213 and is executed by the CPU 212.

【0040】CPU212は、ホストインターフェース
(Host I/F)回路201を介してホストコンピ
ュータ1から画像形成のためのシーケンシャルデータを
ホストインタフェース回路201に配設されているバッ
ファ200に転送する(ステップS101)。この後、
CPU212は転送データをバッファ200から読み出
す(ステップS102)。
The CPU 212 transfers the sequential data for image formation from the host computer 1 via the host interface (Host I / F) circuit 201 to the buffer 200 provided in the host interface circuit 201 (step S101). . After this,
The CPU 212 reads the transfer data from the buffer 200 (Step S102).

【0041】このとき、画像形成のためのシーケンシャ
ルデータとして、画像形成を開始させるためのジョブ開
始処理データが転送され、これに続いて印字環境設定デ
ータが転送される。
At this time, job start processing data for starting image formation is transferred as sequential data for image formation, followed by print environment setting data.

【0042】そして、転送データが文字コードであるか
否かを判別し(ステップS103)、文字コードでない
場合、ジョブ終了命令であるか否かを判別し(ステップ
S104)、ジョブ終了命令である場合、処理を終了
し、ジョブ終了命令でない場合、文字セット選択命令で
あるか否かを判別する(ステップS105)。文字セッ
ト選択命令でない場合、その他の処理を実行する(ステ
ップS106)。そして、その他の処理を終了すると、
転送データを全て処理したか否かを判別し(ステップS
116)、全て処理していない場合、ステップS102
における転送データの読み出しを繰り返し、全て処理す
ると、ステップS101におけるホストコンピュータ1
からのデータ転送処理に戻る。
Then, it is determined whether or not the transfer data is a character code (step S103). If it is not a character code, it is determined whether or not it is a job end command (step S104). If the command is not a job end command, it is determined whether or not the command is a character set selection command (step S105). If it is not a character set selection command, other processing is executed (step S106). And when other processing is completed,
It is determined whether or not all the transfer data has been processed (step S
116) If not all have been processed, step S102
When the reading of the transfer data in step S101 is repeated and all the processing is performed, the host computer 1 in step S101
Return to the data transfer process from.

【0043】ホストコンピュータ1からのページフォー
マット選択命令を受信したCPU212は、従来と同様
に画像メモリ401〜404のメモリ空間と記録材への
印字ロケーションとの相関設定を行う(S102→S1
03→S104→S105→S106)。画像メモリ4
01〜404は16階調濃度を表現する4ビット画像濃
度データのラスタイメージデータを格納するためのメモ
リであり、画像メモリ401に画像濃度データの最下位
ビット(ビット0)、画像メモリ402に画像濃度デー
タのビット1、画像メモリ403に画像濃度データのビ
ット2、画像メモリ404に画像濃度データのビット3
が対応する。
The CPU 212, which has received the page format selection command from the host computer 1, sets the correlation between the memory space of the image memories 401 to 404 and the print location on the recording material in the same manner as in the prior art (S102 → S1).
03 → S104 → S105 → S106). Image memory 4
Reference numerals 01 to 404 denote memories for storing raster image data of 4-bit image density data expressing 16 gradation densities. The least significant bit (bit 0) of the image density data is stored in the image memory 401, and the image memory 402 is stored in the image memory 402. Bit 1 of density data, bit 2 of image density data in image memory 403, bit 3 of image density data in image memory 404
Corresponds.

【0044】つづいて、印字環境設定を完了したホスト
コンピュータ1は、次に印字記述データを転送する。ホ
ストコンピュータ1は印字に使用する文字セットを設定
するため、制御命令として文字セット選択命令を発行す
る。文字セット選択命令は、文字コードと文字パターン
の対応を規定するグラフィックセット、文字のピッチを
規定する文字ピッチ、文字の大きさを規定する文字サイ
ズ、直立体/斜体などの字体を規定する文字スタイル、
文字の太さを規定するストロークウェイト、文字のデザ
インを規定する書体などの文字セット属性に基づいて、
印字する文字セットの設定を行うものである。また、文
字セット属性との相関を定義するLUT(Look Up Tabl
e)を備えることにより、特定の名称を定義した文字セ
ット名称や特定の番号を定義した文字セットアサイン番
号などの特定コマンドによる文字セットの設定も可能で
ある。
Subsequently, the host computer 1 which has completed the print environment setting transfers the print description data. The host computer 1 issues a character set selection command as a control command in order to set a character set used for printing. The character set selection command is a graphic set that specifies the correspondence between character codes and character patterns, a character pitch that specifies the character pitch, a character size that specifies the character size, and a character style that specifies a character style such as straight / italic. ,
Based on character set attributes such as stroke weight that regulates character thickness and typeface that regulates character design,
This sets the character set to be printed. An LUT (Look Up Tabl) that defines the correlation with the character set attribute
By providing e), it is also possible to set a character set by a specific command such as a character set name defining a specific name or a character set assign number defining a specific number.

【0045】文字セット選択命令を受信したCPU21
2は、ステップS105で文字セット選択命令であると
判別した場合、文字セット属性により指定された文字セ
ットとその文字コードとがフォントROM205に格納
されている文字パターンデータと1体1に対応させるた
めのフォント割り当てテーブル設定する(ステップS1
07)。そして、CPU212はフォントROM205
に格納されている文字セット情報を読み込む(ステップ
S108)。
CPU 21 receiving character set selection command
In step S105, when it is determined that the command is a character set selection command in step S105, the character set specified by the character set attribute and its character code correspond to one character pattern data stored in the font ROM 205. (Step S1)
07). Then, the CPU 212 executes the font ROM 205
Is read (step S108).

【0046】図3は文字パターンデータが画素マトリク
スでデザインされているビットマップフォントの文字セ
ット情報の概要を示す図である。
FIG. 3 is a diagram showing an outline of character set information of a bitmap font in which character pattern data is designed in a pixel matrix.

【0047】文字セット情報は大きく3つのパラメータ
から構成される。その1つ目は文字パターンデータの外
枠の大きさを示すセルであり、幅と高さ方向の画素数の
セル幅/セル高でその値が示される。2つ目は文字を横
書きにする際に文字を揃える基準線を示すベースライン
であり、セルの下側からベースラインまでの画素数(ベ
ースラインを数に含む)で値が示される。3つ目はアン
ダーラインを引く際のデフォルトの基準位置を示すアン
ダーライン位置であり、ベースラインからアンダーライ
ンまでの画素数(ベースラインを数に含まず、アンダー
ラインを数に含む)で値が示される。
The character set information is roughly composed of three parameters. The first is a cell indicating the size of the outer frame of the character pattern data, and its value is indicated by the cell width / cell height of the number of pixels in the width and height directions. The second is a baseline indicating a reference line for aligning characters when writing characters horizontally, and the value is indicated by the number of pixels (including the baseline) from the lower side of the cell to the baseline. The third is an underline position indicating a default reference position when underlining is performed. The value is represented by the number of pixels from the baseline to the underline (not including the baseline but including the underline in the number). Is shown.

【0048】CPU212は、文字セット属性と文字セ
ット情報の少なくとも文字サイズおよびセル幅/セル高
のパラメータより、印字する2値のラスタイメージデー
タを生成するメモリ領域をRAM214上に確保し(ス
テップS109)、メモリ領域を示すパラメータをRA
M214のレジスタに格納する(ステップS110)。
The CPU 212 secures a memory area in the RAM 214 for generating binary raster image data to be printed, based on at least the character size and cell width / cell height parameters of the character set attribute and character set information (step S109). And the parameter indicating the memory area is RA
It is stored in the register of M214 (step S110).

【0049】例えば、文字セット選択命令はISOのグ
ラフィックセット、文字ピッチは10cpi(Characte
r Per Inch)に固定、文字サイズは12ポイント、文
字スタイルは直立体、ストロークウェイトは標準の文字
セット属性で、300dpi(Dot Per Inch)の解像度
でデザインされているビットマップ・フォントが指定さ
れた場合、図3に示したように、文字セット情報のセル
幅は、30画素,セル高は48画素である。図4はセル
幅が30画素、セル高が48画素で指定されたビットマ
ップフォントを示す図である。ここで、CPU212が
文字セット情報より2値のラスタイメージデータを作成
するためにRAM214上に確保するメモリ容量は、図
4に示すように、バイトバウンダリングを含むイメージ
の幅32画素、イメージの高さ48画素に相当する。
For example, the character set selection command is an ISO graphic set, and the character pitch is 10 cpi (Characte
r Per Inch), character size is 12 points, character style is 3D, stroke weight is a standard character set attribute, and a bitmap font designed with a resolution of 300 dpi (Dot Per Inch) is specified. In this case, as shown in FIG. 3, the cell width of the character set information is 30 pixels, and the cell height is 48 pixels. FIG. 4 is a diagram showing a bitmap font designated with a cell width of 30 pixels and a cell height of 48 pixels. Here, as shown in FIG. 4, the memory capacity reserved in the RAM 214 for the CPU 212 to generate binary raster image data from the character set information is 32 pixels in width of the image including byte bounding and the height of the image. Corresponds to 48 pixels.

【0050】図5はRAM214のメモリマップを示す
図である。図6はRAM214上のラスタイメージデー
タの印字ロケーションを示す図である。
FIG. 5 is a diagram showing a memory map of the RAM 214. FIG. 6 is a diagram showing a print location of raster image data on the RAM 214.

【0051】CPU212がバイトアクセスを行い、R
AM214のデータ幅が8ビットの場合、RAM214
上の印字ロケーションのバラメータとしては、m=8,
n=4,k=48からなる192バイトのメモリ容量を
確保する。
The CPU 212 performs byte access, and
When the data width of the AM 214 is 8 bits, the RAM 214
The parameters of the print location above are m = 8,
A memory capacity of 192 bytes consisting of n = 4 and k = 48 is secured.

【0052】ただし、mはRAM214のデータビット
幅、nは画素マトリクスのm画素単位の列数、kは画素
マトリクスの行数を示す。そして、CPU212はRA
M214上に確保された文字のラスタイメージデータ生
成領域のパラメータをRAM214のレジスタにストア
する。
Here, m is the data bit width of the RAM 214, n is the number of columns of the pixel matrix in m pixels, and k is the number of rows of the pixel matrix. Then, the CPU 212
The parameters of the character raster image data generation area secured on M214 are stored in the register of the RAM 214.

【0053】つづいて、CPU212はRAM214上
のラスタイメージデータ領域のブロック分割パラメータ
の設定処理を行う(ステップS111)。図7はステッ
プS111におけるブロック分割パラメータ設定処理手
順を示すフローチャートである。
Subsequently, the CPU 212 performs a setting process of a block division parameter of the raster image data area on the RAM 214 (step S111). FIG. 7 is a flowchart showing the procedure of the block division parameter setting process in step S111.

【0054】まず、RAM214のラスタイメージデー
タ領域を分割する最小単位である主走査方向ブロック分
割単位および副走査方向ブロック分割単位を、主走査方
向ブロック分割単位と副走査方向ブロック分割単位とが
等しく、d×d画素マトリクスを構成するように設定す
る(ステップS401、S402)。分割単位として
は、RAM214のアクセス効率がよくなるように、4
倍数を用いることが多い。
First, the main scanning direction block division unit and the sub-scanning direction block division unit, which are the minimum units for dividing the raster image data area of the RAM 214, are equal in the main scanning direction block division unit and the sub-scanning direction block division unit. The settings are made so as to form a d × d pixel matrix (steps S401 and S402). The unit of division is 4 so that the access efficiency of the RAM 214 is improved.
Multiples are often used.

【0055】そして、CPU212は分割単位に基づい
て各分割ブロック数を求める。主走査方向のブロック数
Nwは、(m×n)画素のパターンデータ幅を主走査方
向分割単位dで除算し、その演算結果である商として求
められる(ステップS403)。
Then, the CPU 212 obtains the number of each divided block based on the division unit. The number of blocks Nw in the main scanning direction is obtained by dividing the pattern data width of (m × n) pixels by the main scanning direction division unit d, and obtaining the quotient as the operation result (step S403).

【0056】また、副走査方向のブロック数Nhはパタ
ーンバイト幅の行数kを副走査方向分割単位dで除算
し、その演算結果である商として求められる(ステップ
S404)。
The number Nh of blocks in the sub-scanning direction is obtained as a quotient as a result of the division of the number k of rows of the pattern byte width by the sub-scanning direction division unit d (step S404).

【0057】前述した文字セット属性のビットマップフ
ォントを再び用いて、正方ブロック分割単位dを4画素
とすると、最小ブロック単位は4×4画素マトリクスを
構成し、主走査方向のブロック数Nwは8、副走査方向
のブロック数Nhは12となる。
If the square block division unit d is assumed to be 4 pixels again using the character set attribute bitmap font described above, the minimum block unit forms a 4 × 4 pixel matrix, and the number of blocks Nw in the main scanning direction is 8 , The number of blocks Nh in the sub-scanning direction is 12.

【0058】ホストコンピュータ1は文字セットを割り
当て後、記録材に印字を行う印字位置指定を行うため
に、印字位置指定命令処理を送信する。印字位置指定命
令を読み出したCPU212は、その位置情報よりRA
M214のロケーションと画像メモリ401〜404と
の相対位置を決定する。
After allocating the character set, the host computer 1 transmits a print position designation command process in order to designate a print position for printing on a recording material. The CPU 212 that has read the print position designation command,
The relative position between the location of M214 and the image memories 401 to 404 is determined.

【0059】ホストコンピュータ1が印字環境設定,文
字セットの割り当て,印字位置の指定などの処理を行っ
た後、印字する文字の文字コードを送信すると、CPU
212は文字コードを読み込む。そして、読み込んだ文
字コードを文字セット割り当てテーブルにしたがって、
フォントROM205に格納されている画素マトリクス
の文字パターンデータを参照し、RAM214上に2値
のラスタイメージデータを生成する(ステップS11
2)。図8は文字コードとして「A」が指定されていた
場合のラスタイメージデータのブロック分割状態を示す
図である。
After the host computer 1 performs processing such as setting of a printing environment, assignment of a character set, and designation of a printing position, the host computer 1 transmits a character code of a character to be printed.
212 reads the character code. Then, read the character code according to the character set assignment table.
Referring to the character pattern data of the pixel matrix stored in the font ROM 205, binary raster image data is generated on the RAM 214 (step S11).
2). FIG. 8 is a diagram showing a block division state of raster image data when “A” is specified as a character code.

【0060】RAM214上に2値のラスタイメージデ
ータを生成したCPU212は、各ブロックに対するオ
ン画像(記録材に黒を記録する画素)の画素数を検出す
る処理を行う(ステップS113)。
The CPU 212, which has generated the binary raster image data on the RAM 214, performs a process of detecting the number of pixels of the ON image (the pixel for recording black on the recording material) for each block (step S113).

【0061】図9および図10はステップS113にお
けるオン画素数検出処理手順を示すフローチャートであ
る。まず、初期設定を行う(ステップS201〜S20
4)。初期設定では、ブロック内のオン画素数がしきい
値以上であるブロック数をカウントするブロック累積レ
ジスタNBと、副走査方向の繰り返し回数を示す変数K
hと、主走査方向の繰り返し回数を示す変数Kwと、ブ
ロック内の繰り返し回数を示す変数Krをリセットし、
ブロック内のオン画素数の検出数を格納するための2つ
の演算レジスタY0,Y1をリセットする。
FIGS. 9 and 10 are flowcharts showing the procedure for detecting the number of ON pixels in step S113. First, initialization is performed (steps S201 to S20).
4). In the initial setting, a block accumulation register NB that counts the number of blocks in which the number of ON pixels in the block is equal to or larger than a threshold value, and a variable K that indicates the number of repetitions in the sub-scanning direction
h, a variable Kw indicating the number of repetitions in the main scanning direction, and a variable Kr indicating the number of repetitions in the block,
The two operation registers Y0 and Y1 for storing the number of detected ON pixels in the block are reset.

【0062】ここで、2つのレジスタを用いるのは、C
PU212がバイトアクセスを行い、ブロック分割単位
が4画素に設定されているので、1回のアクセスにより
8画素、つまり2ブロック分の画像データをアクセスす
るためである。したがって、データの上位4ビットと下
位4ビットがそれぞれのブロックの画像データとして区
別される。
Here, two registers are used because C
This is because the PU 212 performs byte access and the block division unit is set to four pixels, so that one access accesses image data of eight pixels, that is, two blocks. Therefore, upper 4 bits and lower 4 bits of data are distinguished as image data of each block.

【0063】初期設定を終了したCPU212は、RA
M214のデータを読み出すためにアドレス番地ADの
設定を行う(ステップS205)。アドレスADの設定
は、主走査ブロック数Nw、ブロック内繰り返し変数K
r、ブロック分割単位d,副走査繰り返し変数Kh,主
走査方向繰り返し変数Kwにより数式(1)で求められ
る。
The CPU 212, which has completed the initial setting, sets the RA
The address address AD is set to read the data of M214 (step S205). The setting of the address AD is performed by setting the number of main scanning blocks Nw and the intra-block repetition variable K
r, the block division unit d, the sub-scanning repetition variable Kh, and the main scanning direction repetition variable Kw are obtained by Expression (1).

【0064】AD=Nw÷2×(Kr+d×Kh)+K
w ……… (1)CPU212は設定されたアドレス
ADのデータを読み出し(ステップS206)、読み出
したデータの上位4ビットのオン画素数X0と下位4ビ
ットのオン画素数X1を算出する(ステップS207,
S208)。そして、算出したオン画素数X0,X1を
それぞれ演算レジスタY0,Y1と加算演算し、その結
果を再び演算レジスタY0,Y1に格納する(ステップ
S209)。
AD = Nw ÷ 2 × (Kr + d × Kh) + K
w (1) The CPU 212 reads the data at the set address AD (step S206), and calculates the number of ON pixels X0 of the upper 4 bits and the number of ON pixels X1 of the lower 4 bits of the read data (step S207). ,
S208). Then, the calculated numbers of ON pixels X0 and X1 are added to the operation registers Y0 and Y1, respectively, and the result is stored in the operation registers Y0 and Y1 again (step S209).

【0065】上記処理をブロック分割単位であるd画素
行分を繰り返しているか否かを判別し(ステップS21
0)、繰り返していない場合、ブロック内繰り返し変数
Krをインクリメントし(ステップS211)、ステッ
プS205に戻ってアドレスADの設定から再び上記処
理を繰り返し、ブロック内のオン画素数を算出する。
It is determined whether or not the above processing is repeated for d pixel rows as a block division unit (step S21).
0), if not repeated, increment the in-block repetition variable Kr (step S211), return to step S205, repeat the above processing from the setting of address AD, and calculate the number of ON pixels in the block.

【0066】一方、上記処理をブロック分割単位である
d画素行分繰り返している場合、2つの演算レジスタY
0,Y1の値としきい値Vthとの大小比較を行う(ス
テップS212)。演算レジスタY0,Y1が2つとも
しきい値以上の値である場合、ブロック累積レジスタN
Bの値に値2を加算した後、再びブロック累積レジスタ
NBに格納し(ステップS213)、演算レジスタY
0,Y1のいずれか1つがしきい値以上の値である場
合、ブロック累積レジスタNBの値に値1を加算した
後、再びブロック累積レジスタNBに格納する(ステッ
プS214)。さらに、演算レジスタY0,Y1のいず
れもしきい値より小さな値であった場合、ブロック累積
レジスタNBをそのまま保留してステップS215の処
理に移行する。
On the other hand, if the above processing is repeated for d pixel rows, which is a unit of block division, two operation registers Y
A comparison is made between the values of 0 and Y1 and the threshold value Vth (step S212). If both of the operation registers Y0 and Y1 are equal to or larger than the threshold value, the block accumulation register N
After adding the value 2 to the value of B, it is stored again in the block accumulation register NB (step S213), and the operation register Y
If any one of 0 and Y1 is equal to or greater than the threshold value, the value of the block accumulation register NB is added with the value 1 and then stored in the block accumulation register NB again (step S214). Further, when both of the operation registers Y0 and Y1 are smaller than the threshold value, the block accumulation register NB is held as it is, and the process proceeds to step S215.

【0067】上記演算レジスタY0、Y1の比較処理を
終了した後、主走査方向繰り返し変数Kwが主走査方向
ブロック数Nwの半値を1デクリメントした値に達して
いるか否かを判別する(ステップS215)。主走査方
向繰り返し変数Kwが主走査方向ブロック数Nwの半値
を1デクリメントした値に達していない場合、主走査方
向において、オン画素数の算出、比較、カウントを行っ
ていないブロックが存在するので、主走査方向繰り返し
変数Kwをインクリメントし(ステップS216)、上
述した処理(S203〜S215)を繰り返す。
After the comparison of the operation registers Y0 and Y1 is completed, it is determined whether or not the main scanning direction repetition variable Kw has reached a value obtained by decrementing the half value of the number Nw of blocks in the main scanning direction by 1 (step S215). . If the main scanning direction repetition variable Kw does not reach a value obtained by decrementing the half value of the number Nw of blocks in the main scanning direction by one, there are blocks in the main scanning direction for which the number of ON pixels has not been calculated, compared, or counted. The main scanning direction repetition variable Kw is incremented (step S216), and the above-described processing (S203 to S215) is repeated.

【0068】そして、主走査方向繰り返し変数Kwが主
走査方向ブロック数Nwの半値を1デクリメントした値
に達した場合、主走査方向のブロックにおいて、オン画
素数の算出、比較、カウントを実行したと判断し、副走
査方向のブロック検索を行う。
When the main scanning direction repetition variable Kw reaches a value obtained by decrementing the half value of the number Nw of blocks in the main scanning direction by 1, the calculation, comparison, and counting of the number of ON pixels are performed in the blocks in the main scanning direction. Judgment is made and block search in the sub-scanning direction is performed.

【0069】副走査方向のブロック検索では、副走査方
向繰り返し変数Khが副走査方向のブロック数Nhを1
デクリメントした値に達しているか否かを判別する(ス
テップS217)。副走査方向繰り返し変数Khが副走
査方向のブロック数Nhを1デクリメントした値に達し
ていない場合、副走査方向において、オン画素の算出、
比較、カウントを行っていないブロックが存在するの
で、副走査方向繰り返し変数Khをインクリメントし
(ステップS218)、上述した処理(S202〜S2
17)を繰り返す。
In the block search in the sub-scanning direction, the number of blocks Nh in the sub-scanning direction is set to 1
It is determined whether the value has reached the decremented value (step S217). If the sub-scanning direction repetition variable Kh does not reach a value obtained by decrementing the number of blocks Nh in the sub-scanning direction by 1, calculation of ON pixels in the sub-scanning direction;
Since there is a block that has not been compared and counted, the variable Kh in the sub-scanning direction is incremented (step S218), and the above-described processing (S202 to S2) is performed.
Repeat 17).

【0070】そして、副走査方向繰り返し変数Khが副
走査方向のブロック数Nhを1デクリメントした値に達
した場合、副走査方向のすべてのブロックにおいて、オ
ン画素数の算出、比較、ブロックのカウントを実行し、
RAM212上の全てのラスタイメージデータについ
て、分割したブロック内でしきい値以上のオン画素数を
有する累積ブロック数NBを算出したと判断して処理を
終了し、印字濃度データを設定するステップS114の
印字濃度判定処理に復帰する。
When the sub-scanning direction repetition variable Kh reaches a value obtained by decrementing the number of blocks Nh in the sub-scanning direction by one, the calculation, comparison, and counting of the number of ON pixels are performed for all the blocks in the sub-scanning direction. Run,
For all the raster image data in the RAM 212, it is determined that the cumulative block number NB having the number of ON pixels equal to or larger than the threshold value in the divided blocks has been calculated, and the processing is terminated. In step S114, the print density data is set. The process returns to the print density determination processing.

【0071】印字濃度データの設定に際し、本実施形態
の画像形成装置では、ファジイ理論が用いられる。図1
1は前件部メンバーシップ関数としてROM213に記
憶されているブロック累積レジスタNBのメンバーシッ
プ関数を示すグラフである。
In setting the print density data, the image forming apparatus of the present embodiment uses fuzzy logic. FIG.
1 is a graph showing a membership function of the block accumulation register NB stored in the ROM 213 as the antecedent part membership function.

【0072】ブロック累積レジスタNBのメンバーシッ
プ関数では、ブロック累積レジスタNBの値に対して3
つのファジィ集合が定義されている。それぞれをファジ
ィラベルS,M,Lで示すファジイ集合はつぎの通りで
あり、各ファジィ集合に属する度合いは0から1までの
任意の値をとる。
In the membership function of the block accumulation register NB, 3
Two fuzzy sets are defined. The fuzzy sets indicated by fuzzy labels S, M, and L are as follows, and the degree of belonging to each fuzzy set takes an arbitrary value from 0 to 1.

【0073】 S(Small):ブロック累積レジスタの値が少ない
ことを表すファジィ集合 M(Middle):ブロック累積レジスタの値が中位
であることを表すファジィ集合 L(Large):ブロック累積レジスタの値が多いこ
とを表すファジィ集合 図12は後件部メンバーシップ関数としてROM213
に記憶されている印字濃度のメンバーシップ関数を示す
グラフである。印字濃度のメンバーシップ関数では、印
字濃度に対して3つのファジィ集合が定義されている。
それぞれをファジィラベルL,M,Dで示すファジイ集
合はつぎの通りである。
S (Small): Fuzzy set indicating that the value of the block accumulation register is small M (Middle): Fuzzy set indicating that the value of the block accumulation register is medium L (Large): Value of the block accumulation register Fuzzy set showing that there are many ROM213 as a consequent part membership function
5 is a graph showing a membership function of print density stored in the printer. In the print density membership function, three fuzzy sets are defined for the print density.
The fuzzy sets indicated by fuzzy labels L, M, and D are as follows.

【0074】 L(Light):印字濃度が淡いことを表すファジィ
集合 M(Middle):印字濃度が中くらいであることを
表すファジィ集合 D(Dark):印字濃度が濃いことを表すファジィ集
合 また、ブロック累積レジスタNBと印字濃度との相関を
規則付けるファジィ規則R1、R2、R3はつぎのよう
に定義されており、ROM213に記憶されている。
L (Light): Fuzzy set indicating that print density is light M (Middle): Fuzzy set indicating that print density is medium D (Dark): Fuzzy set indicating that print density is high Fuzzy rules R1, R2, and R3 for regulating the correlation between the block accumulation register NB and the print density are defined as follows, and are stored in the ROM 213.

【0075】 R1: IF (X=S) then (Y=D) R2: IF (X=M) then (Y=M) R3: IF (X=L) then (Y=L) ファジィ規則の規則1(R1)はブロック累積レジスタ
NBの値が少なければ、印字濃度を濃くする。規則2
(R2)はブロック累積レジスタNBの値が中くらいで
あれば、印字濃度を中くらいの濃度とする。規則3(R
3)はブロック累積レジスタNBの値が大きければ、印
字濃度を淡くすると規定したものである。
R1: IF (X = S) then (Y = D) R2: IF (X = M) then (Y = M) R3: IF (X = L) then (Y = L) Rule 1 of fuzzy rule In (R1), if the value of the block accumulation register NB is small, the print density is increased. Rule 2
In (R2), if the value of the block accumulation register NB is medium, the print density is set to medium. Rule 3 (R
3) specifies that if the value of the block accumulation register NB is large, the print density is reduced.

【0076】図13はファジィ推論により印字濃度を判
定する演算処理の概要を示す図である。図14はステッ
プS114においてファジイ推論により印字濃度データ
を設定する印字濃度判定処理手順を示すフローチャート
である。
FIG. 13 is a diagram showing an outline of a calculation process for determining a print density by fuzzy inference. FIG. 14 is a flowchart showing a print density determination processing procedure for setting print density data by fuzzy inference in step S114.

【0077】CPU212はオン画素数がしきい値以上
であるブロックの数を示すブロック累積レジスタNBを
読み出し(ステップS301)、ブロック累積レジスタ
NBの値により前述したブロック累積レジスタのメンバ
ーシップ関数における各ファジィ集合の適合度ωを算出
する(ステップS302)。
The CPU 212 reads out the block accumulation register NB indicating the number of blocks in which the number of ON pixels is equal to or larger than the threshold value (step S301), and based on the value of the block accumulation register NB, each fuzzy in the membership function of the block accumulation register described above. The fitness ω of the set is calculated (step S302).

【0078】例えば、ブロック累積レジスタNBの値が
X1で、各ファジイ集合の適合度ωが図13(a)、
(b)、(c)に示した値をとると仮定すると、ファジ
ィ集合Sへの適合度ωは値0.5であり(図13
(a))、ファジィ集合Mへの適合度ωは値0.5であ
り(図13(b))、ファジィ集合Lへの適合度ωは値
0(図13(c))となる。
For example, the value of the block accumulation register NB is X1, and the fitness ω of each fuzzy set is shown in FIG.
Assuming that the values shown in (b) and (c) are taken, the degree of conformity ω to the fuzzy set S is 0.5 (see FIG. 13).
(A)), the fitness ω to the fuzzy set M has a value of 0.5 (FIG. 13B), and the fitness ω to the fuzzy set L has a value of 0 (FIG. 13C).

【0079】前件部メンバーシップ関数の適合度を算出
したCPU212は、上述したファジィ規則に従い印字
濃度の推論を行う(ステップS304)。ここで、印字
濃度を推定する手段として、ブロック累積レジスタの適
合度ωと印字濃度のファジィ集合との共通集合を求める
論理積演算、すなわちMIN(最小値)演算を用いる。
The CPU 212, which has calculated the degree of conformity of the membership function of the antecedent part, infers the print density according to the fuzzy rules described above (step S304). Here, as means for estimating the print density, an AND operation for finding a common set of the fitness ω of the block accumulation register and the fuzzy set of the print density, that is, a MIN (minimum value) operation is used.

【0080】ファジィ規則1における印字濃度の推論で
は、ファジィ集合Sの適合度ωと印字濃度Dのファジィ
集合とのMIN演算を行い、図13(d)の台形斜線部
に示す結果を得る。また、ファジィ規則2における印字
濃度の推論結果として、ファジィ集合Mの適合度ωと印
字濃度Mのファジィ集合とのMIN演算を行い、図13
(e)の台形斜線部に示す結果を得る。さらに、ファジ
ィ規則3における印字濃度の推論結果として、ファジィ
集合Lの適合度ωが値0であるため、印字濃度Dのファ
ジィ集合とのMIN演算を行うと、値0(図13(f)
参照)を得る。このように、印字濃度の推論は全てのフ
ァジィ規則を実行するまで繰り返される(ステップS3
03、S304)。
In the inference of the print density in the fuzzy rule 1, the MIN operation of the fitness ω of the fuzzy set S and the fuzzy set of the print density D is performed, and the result shown by the trapezoidal hatched portion in FIG. As a result of inferring the print density in the fuzzy rule 2, the MIN operation of the fitness ω of the fuzzy set M and the fuzzy set of the print density M is performed.
The result shown by the trapezoidal hatched portion (e) is obtained. Further, as a result of the inference of the print density in the fuzzy rule 3, since the fitness ω of the fuzzy set L is a value of 0, when the MIN operation is performed with the fuzzy set of the print density D, the value 0 (FIG. 13F)
See). In this way, the inference of the print density is repeated until all the fuzzy rules are executed (step S3).
03, S304).

【0081】全てのファジイ規則における印字濃度の推
論が終了すると、CPU212は各規則に対する印字濃
度の推論結果の合成を行うが、この際、各規則に対する
印字濃度の推論結果を合成するための合成則として、各
推論結果を加算する(ステップS305)。つまり、図
13(d)、(e)、(f)の推論結果を加算演算し、
図13(g)に示す推論合成結果を得る。
When the print density inference for all fuzzy rules is completed, the CPU 212 synthesizes the print density inference result for each rule. At this time, the synthesis rule for synthesizing the print density inference result for each rule is used. Are added to each inference result (step S305). That is, the inference results of FIGS. 13 (d), (e), and (f) are added, and
The inference synthesis result shown in FIG.

【0082】そして、この推論合成結果(図13
(g))の重心を計算し(ステップS306)、その計
算結果として最適な印字濃度を得る。
The result of the inference synthesis (FIG. 13)
(G)) is calculated (step S306), and an optimum print density is obtained as a result of the calculation.

【0083】このとき、視覚特性を考慮した十分な量子
化数が得られる画像形成装置であれば、ステップS30
3に得られる最適な印字濃度をそのまま画像濃度として
利用することも可能であるが、画像メモリ容量などによ
り制限を受ける場合(16階調数)、最適な印字濃度と
完全に等しくなるとは限らない。そこで、CPU212
は最適な印字濃度に最も近い印字濃度データを設定し、
印字濃度レジスタに格納する(ステップS307)。
At this time, if the image forming apparatus can obtain a sufficient number of quantizations in consideration of the visual characteristics, step S30
Although it is possible to use the optimum print density obtained in No. 3 as it is as the image density, when it is limited by the image memory capacity or the like (16 gradations), the print density is not always completely equal to the optimum print density. . Therefore, the CPU 212
Sets the print density data closest to the optimum print density,
The data is stored in the print density register (step S307).

【0084】印字濃度レジスタに印字濃度データを設定
したCPU212は、RAM212のラスタイメージデ
ータでマスキング処理を行い、画像メモリ401〜40
4に印字濃度データを記憶し、多値画像濃度データを生
成する(ステップS115)。
The CPU 212 having set the print density data in the print density register performs a masking process with the raster image data in the RAM 212, and
4 stores print density data and generates multi-valued image density data (step S115).

【0085】そして、CPU212はバッファ200が
空(エンプティ)で転送データを全て処理したか否かを
判別し(ステップS116)、全てを処理していなけれ
ば、バッファ200より転送データを読み出し、上記処
理を繰り返す。また、バッファ200がエンプティで全
てのデータを処理している場合、ホストコンピュータ1
に対して再びデータ転送を要求し、ジョブ終了命令を受
信するまで上記処理を繰り返す。
Then, the CPU 212 determines whether or not the buffer 200 is empty (empty) and has processed all of the transfer data (step S116). If not, the CPU 212 reads the transfer data from the buffer 200 and executes the above processing. repeat. When the buffer 200 is empty and processes all data, the host computer 1
, Requesting data transfer again, and repeating the above processing until a job end command is received.

【0086】ラスタイメージデータの生成処理が終了し
た画像形成装置は、エンジンインターフェース(図示せ
ず)を介して、エンジンコントローラに配設されている
MPU(図示せず)に画像形成の開始を指示するプリン
ト信号を出力する。エンジン部の画像形成準備が整う
と、垂直走査の同期をとるための垂直同期信号の出力を
要求する垂直同期要求信号が返信され、画像メモリ40
1〜404の制御権をCPU212よりメモリコントロ
ーラ301へ開放し、垂直同期信号を出力する。
The image forming apparatus which has completed the raster image data generation processing instructs an MPU (not shown) provided in the engine controller to start image formation via an engine interface (not shown). Output print signal. When the engine unit is ready for image formation, a vertical synchronization request signal requesting the output of a vertical synchronization signal for synchronizing vertical scanning is returned, and the image memory 40
The control right of 1 to 404 is released from the CPU 212 to the memory controller 301, and a vertical synchronization signal is output.

【0087】メモリコントローラ301は、水平走査の
同期をとるための水平同期信号のタイミングに応じて、
画像メモリ401〜404の一水平走査線相当分のデー
タをFIFOメモリ501〜504に転送し、FIFO
メモリ501〜504のデータをシフトレジスタ601
〜604でパラレルシリアル変換を行うためのアドレス
制御およびタイミング制御を行う。シフトレジスタ60
1〜602の出力である画像濃度データはレーザ駆動回
路7に転送される。
The memory controller 301 responds to the timing of a horizontal synchronizing signal for synchronizing horizontal scanning.
The data corresponding to one horizontal scanning line of the image memories 401 to 404 is transferred to the FIFO memories 501 to 504,
The data in the memories 501 to 504 is stored in the shift register 601.
At steps 604 to 604, address control and timing control for performing parallel-serial conversion are performed. Shift register 60
The image density data, which is the output of 1 to 602, is transferred to the laser drive circuit 7.

【0088】図15はレーザ駆動回路の構成を示すブロ
ック図である。レーザ駆動回路7は、シフトレジスタ6
01〜604より出力される画像濃度データb0〜b3
を論理和演算を行う論理和回路707に入力し、レーザ
のON/OFF制御を行うためのレーザ変調信号を生成
する。また、画像濃度データを基準電圧制御回路708
に入力し、画像濃度データに基づいた基準電圧Vref
の電圧切換を行う。
FIG. 15 is a block diagram showing the configuration of the laser drive circuit. The laser drive circuit 7 includes a shift register 6
Image density data b0 to b3 output from 01 to 604
Is input to a logical sum circuit 707 that performs a logical sum operation to generate a laser modulation signal for performing laser on / off control. Further, the image density data is stored in a reference voltage control circuit 708.
And a reference voltage Vref based on the image density data.
Voltage switching.

【0089】また、レーザ駆動回路7は、半導体レーザ
801の光出力をモニタするフォトダイオード802か
らの光出力電流を検出する光量検出回路701と、半導
体レーザ801が点灯している場合にサンプリングし、
消灯している場合にホールド制御するサンプリング/ホ
ールド(S/H)回路702と、サンプリング/ホール
ド回路702と基準電圧制御回路708の出力電圧との
減算演算を行う減算器703と、減算器703の出力に
基づいて操作量を決定する調整器704と、調整器70
4の操作量に基づいて半導体レーザ801のレーザ駆動
電流を制御する電流制御トランジスタ705よりAPC
回路を構成し、画像濃度データに応じた静電潜像を形成
するための最適なレーザ光を出力する。
Further, the laser drive circuit 7 detects a light output current from the photodiode 802 for monitoring the light output of the semiconductor laser 801 and a light amount detection circuit 701 for sampling when the semiconductor laser 801 is turned on.
A sampling / hold (S / H) circuit 702 that performs hold control when the light is off, a subtractor 703 that performs a subtraction operation between the sampling / hold circuit 702 and the output voltage of the reference voltage control circuit 708, and a subtractor 703. An adjuster 704 for determining an operation amount based on the output;
APC from the current control transistor 705 for controlling the laser drive current of the semiconductor laser 801 based on the operation amount of the APC
A circuit is configured to output an optimal laser beam for forming an electrostatic latent image according to the image density data.

【0090】このように、画像形成装置は、文字パター
ンデータより印字濃度データを生成し、多値画像濃度デ
ータに基づいてレーザ強度変調を行うことにより印字濃
度補正を行うので、あらゆる文字において均一なコント
ラストを得ることができる。
As described above, the image forming apparatus generates print density data from character pattern data, and performs print density correction by performing laser intensity modulation based on multi-valued image density data. Contrast can be obtained.

【0091】尚、上記レーザ強度変調の他に、レーザ光
出力を一定とし、画像濃度データに基づいてレーザのパ
ルス幅変調を行う場合においても本発明は有効である。
また、電子写真方式以外の画像形成装置として、例えば
インクジェット方式の画像形成装置などにも有効であ
る。
In addition to the above laser intensity modulation, the present invention is also effective in the case where the laser light output is fixed and the pulse width modulation of the laser is performed based on the image density data.
The present invention is also effective for an image forming apparatus other than the electrophotographic type, for example, an image forming apparatus of an ink jet type.

【0092】[第2の実施形態]第2の実施形態におけ
る画像形成装置では、前記第1の実施形態と比べ、ステ
ップS114における印字濃度判定処理が異なるだけで
その他の構成は同じである。前記第1の実施形態と同一
の構成要素については同一の符号を使用して説明する。
[Second Embodiment] The image forming apparatus according to the second embodiment has the same configuration as that of the first embodiment except for the print density determination process in step S114. The same components as those in the first embodiment will be described using the same reference numerals.

【0093】図16は第2の実施形態における印字濃度
判定処理手順を示すフローチャートである。図17はフ
ァジィ推論により印字濃度を判定する演算処理の概要を
示す図である。
FIG. 16 is a flowchart showing a print density determination processing procedure in the second embodiment. FIG. 17 is a diagram showing an outline of a calculation process for determining a print density by fuzzy inference.

【0094】CPU212は、オン画素数がしきい値以
上であるブロックの数を示すブロック累積レジスタNB
を読み出し、(ステップS301)、ブロック累積レジ
スタNBの値によりブロック累積レジスタのメンバーシ
ップ関数における各ファジィ集合の適合度ωを求める
(ステップS302)。
The CPU 212 sets a block accumulation register NB indicating the number of blocks in which the number of ON pixels is equal to or larger than the threshold value.
Is read (step S301), and the fitness ω of each fuzzy set in the membership function of the block accumulation register is obtained from the value of the block accumulation register NB (step S302).

【0095】例えば、ブロック累積レジスタNBの値が
X1で、図17(a)、(b)、(c)に示した値をと
ると仮定すると、ファジィ集合Sへの適合度ωは値0.
5(図17(a))、ファジィ集合Mへの適合度ωは値
0.5(図17(b))、ファジィ集合Lへの適合度ω
は値0(図17(c))となる。
For example, assuming that the value of the block accumulation register NB is X1 and takes the values shown in FIGS. 17A, 17B and 17C, the degree of conformity ω to the fuzzy set S is 0.
5 (FIG. 17A), the fitness ω to the fuzzy set M is 0.5 (FIG. 17B), and the fitness ω to the fuzzy set L
Is 0 (FIG. 17C).

【0096】前件部メンバーシップ関数の適合度を算出
したCPU212は、前記第1の実施形態と同一のファ
ジィ規則R1、R2、R3にしたがって、印字濃度の推
論を行う(ステップS303、S304)。ここで、印
字濃度を推定する手段として、ブロック累積レジスタの
適合度ωと印字濃度のファジィ集合との共通集合を求め
る論理積演算、すなわちMIN(最小値)演算を用い
る。
The CPU 212, which has calculated the degree of conformity of the membership function of the antecedent part, infers the print density according to the same fuzzy rules R1, R2, R3 as in the first embodiment (steps S303, S304). Here, as means for estimating the print density, an AND operation for finding a common set of the fitness ω of the block accumulation register and the fuzzy set of the print density, that is, a MIN (minimum value) operation is used.

【0097】ファジィ規則1(R1)における印字濃度
の推論結果として、ファジイ集合Sの適合度ωと印字濃
度Dのファジィ集合とのMIN演算を行い、図17
(d)の台形斜線部に示す結果を得る。また、ファジィ
規則2(R2)における印字濃度の推論結果として、フ
ァジィ集合Mの適合度ωと印字濃度Mのファジィ集合と
のMIN演算を行い、図17(e)の台形斜線部に示す
結果を得る。さらに、ファジィ規則3(R3)における
印字濃度の推論結果として、ファジィ集合Lの適合度ω
が値0であるため、印字濃度Dのファジイ集合とのMI
N演算を結果として値0(図17(f))を得る。この
印字濃度の推論は、全てのファジィ規則を実行するまで
繰り返される(ステップS303、S304)。
As a result of inferring the print density in the fuzzy rule 1 (R1), the MIN operation of the fitness ω of the fuzzy set S and the fuzzy set of the print density D is performed, and FIG.
The result shown by the trapezoidal hatched portion in (d) is obtained. Further, as a result of inferring the print density in the fuzzy rule 2 (R2), the MIN calculation of the fitness ω of the fuzzy set M and the fuzzy set of the print density M is performed, and the result indicated by the trapezoidal hatched portion in FIG. obtain. Further, as an inference result of the print density in the fuzzy rule 3 (R3), the fitness ω of the fuzzy set L
Is the value 0, the MI with the fuzzy set of print density D
As a result of the N operation, a value 0 (FIG. 17F) is obtained. This inference of the print density is repeated until all the fuzzy rules are executed (steps S303 and S304).

【0098】全てのファジィ規則における印字濃度の推
論を終了した後、CPU212は各規則に対する印字濃
度の推論結果の合成を行うが、各規則に対する印字濃度
の推論結果を合成するための合成則として、各推論結果
の和集合を求める論理和演算、すなわちMAX(最大
値)演算を行う(ステップS305A)。つまり、図1
7(d)、(e)、(f)の推論結果をMAX演算し、
図17(g)に示す推論合成結果を得る。
After completing the inference of the print density in all the fuzzy rules, the CPU 212 synthesizes the inference result of the print density for each rule. As a synthesis rule for synthesizing the inference result of the print density for each rule, A logical sum operation for obtaining a union set of the inference results, that is, a MAX (maximum value) operation is performed (step S305A). That is, FIG.
MAX calculation of the inference results of 7 (d), (e) and (f),
The inference synthesis result shown in FIG.

【0099】そして、推論合成結果(図17(g))の
重心を計算し(ステップS306)、その計算結果とし
て最適な印字濃度を求める。
Then, the center of gravity of the inference synthesis result (FIG. 17 (g)) is calculated (step S306), and the optimum print density is obtained as the calculation result.

【0100】したがって、CPU212は最適な印字濃
度に最も近い印字濃度データを設定し、印字濃度レジス
タに格納する(ステップS307)。
Therefore, the CPU 212 sets print density data closest to the optimum print density and stores it in the print density register (step S307).

【0101】[第3の実施形態]第3の実施形態におけ
る画像形成装置では、前記第1の実施形態と比べ、ステ
ップS114における印字濃度判定処理が異なるだけで
その他の構成は同じである。前記第1の実施形態と同一
の構成要素については同一の符号を使用して説明する。
[Third Embodiment] The image forming apparatus according to the third embodiment is the same as the first embodiment except that the print density determination process in step S114 is different. The same components as those in the first embodiment will be described using the same reference numerals.

【0102】図18は第3の実施形態における印字濃度
判定処理手順を示すフローチャートである。図19はフ
ァジィ推論により印字濃度を判定する演算処理の概要を
示す図である。
FIG. 18 is a flowchart showing a print density determination processing procedure in the third embodiment. FIG. 19 is a diagram showing an outline of a calculation process for determining a print density by fuzzy inference.

【0103】CPU212は、オン画素数がしきい値以
上であるブロックの数を示すブロック累積レジスタNB
を読み出し、(ステップS301)、ブロック累積レジ
スタNBの値によりブロック累積レジスタのメンバーシ
ップ関数における各ファジィ集合の適合度ωを求める
(ステップS302)。
The CPU 212 sets a block accumulation register NB indicating the number of blocks in which the number of ON pixels is equal to or larger than the threshold value.
Is read (step S301), and the fitness ω of each fuzzy set in the membership function of the block accumulation register is obtained from the value of the block accumulation register NB (step S302).

【0104】例えば、ブロック累積レジスタNBの値が
X1で、図19(a)、(b)、(c)に示した値をと
ると仮定すると、ファジィ集合Sへの適合度ωは値0.
5(図19(a))、ファジィ集合Mへの適合度ωは値
0.5(図19(b))、ファジィ集合Lへの適合度ω
は値0(図19(c))となる。
For example, assuming that the value of the block accumulation register NB is X1 and takes the values shown in FIGS. 19A, 19B, and 19C, the degree of conformity ω to the fuzzy set S is 0.
5 (FIG. 19A), the fitness ω to the fuzzy set M is a value 0.5 (FIG. 19B), and the fitness ω to the fuzzy set L
Is a value 0 (FIG. 19C).

【0105】前件部メンバーシップ関数の適合度を算出
したCPU212は、前記第1の実施形態と同一のファ
ジィ規則R1、R2、R3にしたがって、印字濃度の推
論を行う(ステップS303、S304)。ここで、印
字濃度を推定する手段として、ブロック累積レジスタの
適合度ωと印字濃度のファジィ集合との共通集合を求め
る論理積演算、すなわちMIN演算を用いる。
The CPU 212, which has calculated the degree of conformity of the membership function of the antecedent part, infers the print density according to the same fuzzy rules R1, R2, R3 as in the first embodiment (steps S303, S304). Here, as means for estimating the print density, an AND operation for finding a common set of the fitness ω of the block accumulation register and the fuzzy set of the print density, that is, a MIN operation is used.

【0106】ファジィ規則1(R1)における印字濃度
の推論結果として、ファジイ集合Sの適合度ωと印字濃
度Dのファジィ集合とのMIN演算を行い、図19
(d)の台形斜線部に示す結果を得る。また、ファジィ
規則2(R2)における印字濃度の推論結果として、フ
ァジィ集合Mの適合度ωと印字濃度Mのファジィ集合と
のMIN演算を行い、図19(e)の台形斜線部に示す
結果を得る。さらに、ファジィ規則3(R3)における
印字濃度の推論結果として、ファジィ集合Lの適合度ω
が値0であるため、印字濃度Dのファジイ集合とのMI
N演算を結果として値0(図19(f))を得る。この
印字濃度の推論は、全てのファジィ規則を実行するまで
繰り返される(ステップS303、S304)。
As a result of inferring the print density in the fuzzy rule 1 (R1), the MIN operation of the fitness ω of the fuzzy set S and the fuzzy set of the print density D is performed, and FIG.
The result shown by the trapezoidal hatched portion in (d) is obtained. Further, as a result of inferring the print density in the fuzzy rule 2 (R2), the MIN operation of the fitness ω of the fuzzy set M and the fuzzy set of the print density M is performed. obtain. Further, as an inference result of the print density in the fuzzy rule 3 (R3), the fitness ω of the fuzzy set L
Is the value 0, the MI with the fuzzy set of print density D
As a result of the N operation, a value 0 (FIG. 19 (f)) is obtained. This inference of the print density is repeated until all the fuzzy rules are executed (steps S303 and S304).

【0107】全てのファジィ規則における印字濃度の推
論を終了した後、CPU212は各規則に対する印字濃
度の推論結果の合成を行うが、各規則に対する印字濃度
の推論結果を合成するための合成則として、各推論結果
の共通集合を求める論理積演算、すなわちMIN演算を
行う(ステップS305B)。つまり、図19(d)、
(e)、(f)の推論結果をMIN演算し、図19
(g)に示す推論合成結果を得る。
After finishing the inference of the print density in all the fuzzy rules, the CPU 212 synthesizes the inference result of the print density for each rule. As a synthesis rule for synthesizing the inference result of the print density for each rule, An AND operation for finding a common set of the inference results, that is, a MIN operation is performed (step S305B). That is, FIG.
The MIN operation is performed on the inference results of (e) and (f), and FIG.
An inference synthesis result shown in (g) is obtained.

【0108】そして、推論合成結果(図19(g))の
重心を計算し(ステップS306)、その計算結果とし
て最適な印字濃度を求める。
Then, the center of gravity of the inference synthesis result (FIG. 19 (g)) is calculated (step S306), and the optimum print density is obtained as the calculation result.

【0109】したがって、CPU212は最適な印字濃
度に最も近い印字濃度データを設定し、印字濃度レジス
タに格納する(ステップS307)。
Therefore, the CPU 212 sets print density data closest to the optimum print density and stores it in the print density register (step S307).

【0110】[第4の実施形態]第4の実施形態におけ
る画像形成装置では、前記第1の実施形態と比べ、ステ
ップS114における印字濃度判定処理において印字濃
度を推定する手段が異なるだけで印字濃度を判定する処
理手順については前記第1の実施形態と同じである。し
たがって、前記第1の実施形態と同一の構成要素につい
ては同一の符号を使用して説明する。
[Fourth Embodiment] The image forming apparatus according to the fourth embodiment differs from the first embodiment only in the means for estimating the print density in the print density determination processing in step S114, except for the print density. Is the same as that in the first embodiment. Therefore, the same components as those in the first embodiment will be described using the same reference numerals.

【0111】図20は第4の実施形態におけるファジィ
推論により印字濃度を判定する演算処理の概要を示す図
である。
FIG. 20 is a diagram showing an outline of a calculation process for determining a print density by fuzzy inference in the fourth embodiment.

【0112】CPU212はオン画素数がしきい値以上
であるブロックの数を示すブロック累積レジスタNBを
読み出し(ステップS301)、ブロック累積レジスタ
NBの値により前述したブロック累積レジスタのメンバ
ーシップ関数における各ファジィ集合の適合度ωを算出
する(ステップS302)。
The CPU 212 reads out the block accumulation register NB indicating the number of blocks in which the number of ON pixels is equal to or larger than the threshold value (step S301), and based on the value of the block accumulation register NB, each fuzzy in the membership function of the block accumulation register described above. The fitness ω of the set is calculated (step S302).

【0113】例えば、ブロック累積レジスタNBの値が
X1で、各ファジイ集合の適合度ωが図20(a)、
(b)、(c)に示した値をとると仮定すると、ファジ
ィ集合Sへの適合度ωは値0.5であり(図20
(a))、ファジィ集合Mへの適合度ωは値0.5であ
り(図20(b))、ファジィ集合Lへの適合度ωは値
0(図20(c))となる。
For example, the value of the block accumulation register NB is X1, and the fitness ω of each fuzzy set is shown in FIG.
Assuming that the values shown in (b) and (c) take values, the degree of conformity ω to the fuzzy set S is 0.5 (see FIG. 20).
(A)), the degree of conformity ω to the fuzzy set M is 0.5 (FIG. 20B), and the degree of conformity ω to the fuzzy set L is 0 (FIG. 20C).

【0114】前件部メンバーシップ関数の適合度を算出
したCPU212は、上述したファジィ規則に従い印字
濃度の推論を行う(ステップS304)。ここで、印字
濃度を推定する手段として、ブロック累積レジスタの適
合度ωと印字濃度のファジィ集合との乗算演算を用い
る。
The CPU 212 that has calculated the degree of conformity of the membership function of the antecedent part performs inference of the print density in accordance with the fuzzy rules described above (step S304). Here, as means for estimating the print density, a multiplication operation of the fitness ω of the block accumulation register and the fuzzy set of the print density is used.

【0115】ファジィ規則1における印字濃度の推論で
は、ファジィ集合Sの適合度ωと印字濃度Dのファジィ
集合との乗算演算を行い、図20(d)の三角形斜線部
に示す結果を得る。また、ファジィ規則2における印字
濃度の推論結果として、ファジィ集合Mの適合度ωと印
字濃度Mのファジィ集合との乗算演算を行い、図20
(e)の三角形斜線部に示す結果を得る。さらに、ファ
ジィ規則3における印字濃度の推論結果として、ファジ
ィ集合Lの適合度ωが値0であるため、印字濃度Dのフ
ァジィ集合との乗算演算を行うと、値0(図20(f)
参照)を得る。このように、印字濃度の推論は全てのフ
ァジィ規則を実行するまで繰り返される(ステップS3
03、S304)。
In the inference of the print density in the fuzzy rule 1, a multiplication operation of the fitness ω of the fuzzy set S and the fuzzy set of the print density D is performed, and a result indicated by a hatched portion in FIG. 20D is obtained. As a result of inferring the print density in the fuzzy rule 2, a multiplication operation of the fitness ω of the fuzzy set M and the fuzzy set of the print density M is performed.
The result shown by the hatched triangle in (e) is obtained. Further, as a result of the inference of the print density in the fuzzy rule 3, since the fitness ω of the fuzzy set L is a value of 0, when the multiplication operation with the fuzzy set of the print density D is performed, the value 0 (FIG. 20 (f))
See). In this way, the inference of the print density is repeated until all the fuzzy rules are executed (step S3).
03, S304).

【0116】全てのファジイ規則における印字濃度の推
論が終了すると、CPU212は各規則に対する印字濃
度の推論結果の合成を行うが、この際、各規則に対する
印字濃度の推論結果を合成するための合成則として、各
推論結果の加算演算を行う(ステップS305)。つま
り、図20(d)、(e)、(f)の推論結果を加算演
算し、図20(g)に示す推論合成結果を得る。
When the printing density inference for all the fuzzy rules is completed, the CPU 212 synthesizes the printing density inference result for each rule. At this time, the synthesis rule for synthesizing the printing density inference result for each rule is used. Then, an addition operation of each inference result is performed (step S305). That is, the inference results of FIGS. 20 (d), (e), and (f) are added to obtain the inference synthesis result shown in FIG. 20 (g).

【0117】そして、この推論合成結果(図20
(g))の重心を計算し(ステップS306)、その計
算結果として最適な印字濃度を得る。CPU212は最
適な印字濃度に最も近い印字濃度データを設定し、印字
濃度レジスタに格納する(ステップS307)。
The result of the inference synthesis (FIG. 20)
(G)) is calculated (step S306), and an optimum print density is obtained as a result of the calculation. The CPU 212 sets the print density data closest to the optimum print density and stores it in the print density register (step S307).

【0118】[第5の実施形態]第5の実施形態におけ
る画像形成装置では、前記第2の実施形態と比べ、ステ
ップS114における印字濃度判定処理において印字濃
度を推定する手段が異なるだけで印字濃度を判定する処
理手順については前記第2の実施形態と同じである。ま
た、前記第1の実施形態と同一の構成要素については同
一の符号を使用して説明する。
[Fifth Embodiment] The image forming apparatus according to the fifth embodiment differs from the second embodiment only in the means for estimating the print density in the print density determination processing in step S114, except for the print density. Is the same as that of the second embodiment. Also, the same components as those in the first embodiment will be described using the same reference numerals.

【0119】図21は第5の実施形態におけるファジィ
推論により印字濃度を判定する演算処理の概要を示す図
である。
FIG. 21 is a diagram showing an outline of a calculation process for determining a print density by fuzzy inference in the fifth embodiment.

【0120】CPU212はオン画素数がしきい値以上
であるブロックの数を示すブロック累積レジスタNBを
読み出し(ステップS301)、ブロック累積レジスタ
NBの値により前述したブロック累積レジスタのメンバ
ーシップ関数における各ファジィ集合の適合度ωを算出
する(ステップS302)。
The CPU 212 reads out the block accumulation register NB indicating the number of blocks in which the number of ON pixels is equal to or larger than the threshold value (step S301), and uses each value of the block accumulation register NB to determine the fuzzy function in the membership function of the block accumulation register. The fitness ω of the set is calculated (step S302).

【0121】例えば、ブロック累積レジスタNBの値が
X1で、各ファジイ集合の適合度ωが図21(a)、
(b)、(c)に示した値をとると仮定すると、ファジ
ィ集合Sへの適合度ωは値0.5であり(図21
(a))、ファジィ集合Mへの適合度ωは値0.5であ
り(図21(b))、ファジィ集合Lへの適合度ωは値
0(図21(c))となる。
For example, the value of the block accumulation register NB is X1, and the fitness ω of each fuzzy set is shown in FIG.
Assuming the values shown in (b) and (c), the degree of conformity ω to the fuzzy set S is 0.5 (see FIG. 21).
(A)), the fitness ω to the fuzzy set M has a value of 0.5 (FIG. 21B), and the fitness ω to the fuzzy set L has a value of 0 (FIG. 21C).

【0122】前件部メンバーシップ関数の適合度を算出
したCPU212は、上述したファジィ規則に従い印字
濃度の推論を行う(ステップS304)。ここで、印字
濃度を推定する手段として、ブロック累積レジスタの適
合度ωと印字濃度のファジィ集合との乗算演算を用い
る。
The CPU 212, which has calculated the degree of conformity of the antecedent membership function, infers the print density according to the fuzzy rules described above (step S304). Here, as means for estimating the print density, a multiplication operation of the fitness ω of the block accumulation register and the fuzzy set of the print density is used.

【0123】ファジィ規則1における印字濃度の推論で
は、ファジィ集合Sの適合度ωと印字濃度Dのファジィ
集合との乗算演算を行い、図21(d)の三角形斜線部
に示す結果を得る。また、ファジィ規則2における印字
濃度の推論結果として、ファジィ集合Mの適合度ωと印
字濃度Mのファジィ集合との乗算演算を行い、図21
(e)の三角形斜線部に示す結果を得る。さらに、ファ
ジィ規則3における印字濃度の推論結果として、ファジ
ィ集合Lの適合度ωが値0であるため、印字濃度Dのフ
ァジィ集合との乗算演算を行うと、値0(図21(f)
参照)を得る。このように、印字濃度の推論は全てのフ
ァジィ規則を実行するまで繰り返される(ステップS3
03、S304)。
In the inference of the print density in the fuzzy rule 1, a multiplication operation of the fitness ω of the fuzzy set S and the fuzzy set of the print density D is performed, and the result indicated by the hatched triangle in FIG. 21D is obtained. As a result of inference of the print density in the fuzzy rule 2, a multiplication operation of the fitness ω of the fuzzy set M and the fuzzy set of the print density M is performed, and FIG.
The result shown by the hatched triangle in (e) is obtained. Furthermore, as a result of the inference of the print density in the fuzzy rule 3, the fitness ω of the fuzzy set L is a value of 0.
See). In this way, the inference of the print density is repeated until all the fuzzy rules are executed (step S3).
03, S304).

【0124】全てのファジイ規則における印字濃度の推
論が終了すると、CPU212は各規則に対する印字濃
度の推論結果の合成を行うが、この際、各規則に対する
印字濃度の推論結果を合成するための合成則として、各
推論結果の和集合を求める論理和演算、すなわちMAX
演算を行う(ステップS305A)。つまり、図21
(d)、(e)、(f)の推論結果をMAX演算し、図
21(g)に示す推論合成結果を得る。
When print density inference for all fuzzy rules is completed, the CPU 212 synthesizes print density inference results for each rule. At this time, a synthesis rule for synthesizing print density inference results for each rule is used. As a logical OR operation for finding the union of the inference results, ie, MAX
An operation is performed (step S305A). That is, FIG.
MAX calculation is performed on the inference results of (d), (e), and (f) to obtain the inference synthesis result shown in FIG.

【0125】そして、この推論合成結果(図21
(g))の重心を計算し(ステップS306)、その計
算結果として最適な印字濃度を得る。CPU212は最
適な印字濃度に最も近い印字濃度データを設定し、印字
濃度レジスタに格納する(ステップS307)。
The result of the inference synthesis (FIG. 21)
(G)) is calculated (step S306), and an optimum print density is obtained as a result of the calculation. The CPU 212 sets the print density data closest to the optimum print density and stores it in the print density register (step S307).

【0126】[第6の実施形態]第6の実施形態におけ
る画像形成装置では、前記第3の実施形態と比べ、ステ
ップS114における印字濃度判定処理において印字濃
度を推定する手段が異なるだけで印字濃度を判定する処
理手順については前記第3の実施形態と同じである。ま
た、前記第1の実施形態と同一の構成要素については同
一の符号を使用して説明する。
[Sixth Embodiment] The image forming apparatus according to the sixth embodiment differs from the third embodiment only in the means for estimating the print density in the print density determination processing in step S114, except that the print density is different. Is the same as that of the third embodiment. Also, the same components as those in the first embodiment will be described using the same reference numerals.

【0127】図22は第6の実施形態におけるファジィ
推論により印字濃度を判定する演算処理の概要を示す図
である。
FIG. 22 is a diagram showing an outline of an arithmetic processing for judging print density by fuzzy inference in the sixth embodiment.

【0128】CPU212はオン画素数がしきい値以上
であるブロックの数を示すブロック累積レジスタNBを
読み出し(ステップS301)、ブロック累積レジスタ
NBの値により前述したブロック累積レジスタのメンバ
ーシップ関数における各ファジィ集合の適合度ωを算出
する(ステップS302)。
The CPU 212 reads out the block accumulation register NB indicating the number of blocks in which the number of ON pixels is equal to or larger than the threshold value (step S301), and uses each value of the block accumulation register NB in the fuzzy membership function of the block accumulation register. The fitness ω of the set is calculated (step S302).

【0129】例えば、ブロック累積レジスタNBの値が
X1で、各ファジイ集合の適合度ωが図22(a)、
(b)、(c)に示した値をとると仮定すると、ファジ
ィ集合Sへの適合度ωは値0.5であり(図22
(a))、ファジィ集合Mへの適合度ωは値0.5であ
り(図22(b))、ファジィ集合Lへの適合度ωは値
0(図22(c))となる。
For example, the value of the block accumulation register NB is X1, and the fitness ω of each fuzzy set is shown in FIG.
Assuming that the values shown in (b) and (c) take values, the degree of conformity ω to the fuzzy set S is 0.5 (see FIG. 22).
(A)), the degree of conformity ω to the fuzzy set M is 0.5 (FIG. 22B), and the degree of conformity ω to the fuzzy set L is 0 (FIG. 22C).

【0130】前件部メンバーシップ関数の適合度を算出
したCPU212は、上述したファジィ規則に従い印字
濃度の推論を行う(ステップS304)。ここで、印字
濃度を推定する手段として、ブロック累積レジスタの適
合度ωと印字濃度のファジィ集合との乗算演算を用い
る。
The CPU 212, which has calculated the degree of conformity of the antecedent membership function, infers the print density in accordance with the fuzzy rules described above (step S304). Here, as means for estimating the print density, a multiplication operation of the fitness ω of the block accumulation register and the fuzzy set of the print density is used.

【0131】ファジィ規則1における印字濃度の推論で
は、ファジィ集合Sの適合度ωと印字濃度Dのファジィ
集合との乗算演算を行い、図22(d)の三角形斜線部
に示す結果を得る。また、ファジィ規則2における印字
濃度の推論結果として、ファジィ集合Mの適合度ωと印
字濃度Mのファジィ集合との乗算演算を行い、図22
(e)の三角形斜線部に示す結果を得る。さらに、ファ
ジィ規則3における印字濃度の推論結果として、ファジ
ィ集合Lの適合度ωが値0であるため、印字濃度Dのフ
ァジィ集合との乗算演算を行うと、値0(図22(f)
参照)を得る。このように、印字濃度の推論は全てのフ
ァジィ規則を実行するまで繰り返される(ステップS3
03、S304)。
In the inference of the print density in the fuzzy rule 1, a multiplication operation of the fitness ω of the fuzzy set S and the fuzzy set of the print density D is performed, and a result indicated by a hatched portion in FIG. 22D is obtained. As a result of inferring the print density in the fuzzy rule 2, a multiplication operation of the fitness ω of the fuzzy set M and the fuzzy set of the print density M is performed.
The result shown by the hatched triangle in (e) is obtained. Further, as a result of inferring the print density in the fuzzy rule 3, since the degree of conformity ω of the fuzzy set L is 0, when the multiplication operation with the fuzzy set of the print density D is performed, the value 0 (FIG. 22F)
See). In this way, the inference of the print density is repeated until all the fuzzy rules are executed (step S3).
03, S304).

【0132】全てのファジイ規則における印字濃度の推
論が終了すると、CPU212は各規則に対する印字濃
度の推論結果の合成を行うが、この際、各規則に対する
印字濃度の推論結果を合成するための合成則として、各
推論結果の共通集合を求める論理積演算、すなわちMI
N演算を行う(ステップS305B)。つまり、図22
(d)、(e)、(f)の推論結果をMIN演算し、図
22(g)に示す推論合成結果を得る。
When the print density inference for all fuzzy rules is completed, the CPU 212 synthesizes the print density inference result for each rule. At this time, the synthesis rule for synthesizing the print density inference result for each rule is used. AND operation for finding a common set of the inference results, that is, MI
An N operation is performed (step S305B). That is, FIG.
MIN operation is performed on the inference results of (d), (e), and (f) to obtain an inference synthesis result shown in FIG.

【0133】そして、この推論合成結果(図22
(g))の重心を計算し(ステップS306)、その計
算結果として最適な印字濃度を得る。CPU212は最
適な印字濃度に最も近い印字濃度データを設定し、印字
濃度レジスタに格納する(ステップS307)。
The result of the inference synthesis (FIG. 22)
(G)) is calculated (step S306), and an optimum print density is obtained as a result of the calculation. The CPU 212 sets the print density data closest to the optimum print density and stores it in the print density register (step S307).

【0134】尚、本発明は複数の機器から構成されるシ
ステムに適用してもよいし、1つの機器からなる装置に
適用してもよい。また、本発明はシステムあるいは装置
にプログラムを供給することによって達成される場合に
も適用できることはいうまでもない。この場合、本発明
を達成するためのソフトウェアによって表されるプログ
ラムを格納した記憶媒体をシステムあるいは装置に読み
出すことによってそのシステムあるいは装置が本発明の
効果を享受することが可能となる。
Note that the present invention may be applied to a system including a plurality of devices, or may be applied to an apparatus including a single device. Needless to say, the present invention can be applied to a case where the present invention is achieved by supplying a program to a system or an apparatus. In this case, by reading out a storage medium storing a program represented by software for achieving the present invention into a system or an apparatus, the system or the apparatus can enjoy the effects of the present invention.

【0135】記憶媒体としては、例えばROMに限ら
ず、フロッピーディスク、ハードディスク、光ディス
ク、光磁気ディスク、CD−ROM、CD−R、DV
D、磁気テープ、不揮発性のメモリカードなどを用いる
ことができる。
The storage medium is not limited to ROM, for example, but may be a floppy disk, hard disk, optical disk, magneto-optical disk, CD-ROM, CD-R, DV, or the like.
D, a magnetic tape, a nonvolatile memory card, or the like can be used.

【0136】[0136]

【発明の効果】本発明の請求項1に記載の画像形成装置
によれば、画素毎に濃淡印刷を行う際、記憶手段により
パターンデータを記憶し、画像データ生成手段により該
記憶されたパターンデータの2値ラスタイメージデータ
を生成し、分割手段により該生成されたラスタイメージ
データを複数のブロックに分割し、画素数検出手段によ
り該分割されたブロック内に存在する黒または白の画素
数を検出し、比較手段により該検出された黒または白の
画素数としきい値とを前記各ブロック毎に比較し、該比
較の結果、ブロック数算出手段により前記しきい値以上
の黒または白の画素数を有する前記ブロックの数を算出
し、規則手段により該算出されたブロック数と印字濃度
とを定性的な規則として関係付けを行い、度合導出手段
により該規則にしたがって、前記ブロック数が所定の集
合に属する度合いから、前記印字濃度の集合に属する度
合いを導出し、推論手段により該導出された前記印字濃
度の集合に属する度合いに基づいて前記印字濃度を推論
し、該推論された印字濃度により2値画像データを多値
画像データに変換するので、書体、文字サイズ、画数、
文字修飾などの文字属性設定値によりコントラストが変
化することを回避できる。
According to the image forming apparatus of the first aspect of the present invention, when grayscale printing is performed for each pixel, the pattern data is stored in the storage means, and the stored pattern data is stored in the image data generating means. , And divides the generated raster image data into a plurality of blocks by a dividing unit, and detects the number of black or white pixels present in the divided block by a pixel number detecting unit. The number of black or white pixels detected by the comparing means is compared with a threshold value for each of the blocks. As a result of the comparison, the number of black or white pixels equal to or greater than the threshold value is calculated by the block number calculating means. Is calculated by the rule means, and the calculated number of blocks and the print density are related as a qualitative rule, and the degree is derived by the degree deriving means. Therefore, the degree of belonging to the set of print densities is derived from the degree to which the number of blocks belongs to the predetermined set, and the print density is determined based on the degree of belonging to the set of print densities derived by the inference means. The binary image data is converted to the multi-valued image data based on the inferred print density, so that the typeface, character size, number of strokes,
It is possible to avoid a change in contrast due to a character attribute setting value such as character modification.

【0137】したがって、あるゆる文字の印字濃度制御
を行うことができ、視認上、常に最適なコントラストが
得られ、目の疲れを軽減することができ、その結果、顧
客満足度(CS(Customers Satisfactions))を向上
させることができる。
Therefore, it is possible to control the print density of any character, to always obtain the optimum contrast in view, and to reduce eye fatigue, and as a result, to obtain customer satisfaction (CS). )) Can be improved.

【0138】また、トナーやインクの濃度をより高くす
ることができ、大きな文字のコントラストを強くせずに
小さな文字の印字品質をより向上させることができる。
In addition, the density of toner and ink can be further increased, and the printing quality of small characters can be further improved without increasing the contrast of large characters.

【0139】さらに、トナーによる光沢の発生を軽減す
ることができ、装置の印字品質を向上させることができ
る。尚、請求項10に記載の画像形成方法においても同
様の効果を得ることができる。
Further, the occurrence of gloss due to toner can be reduced, and the printing quality of the apparatus can be improved. The same effect can be obtained in the image forming method according to the tenth aspect.

【0140】請求項2に記載の画像形成装置によれは、
前記度合導出手段は、前記ブロック数が複数の所定の集
合に属する度合いから、前記印字濃度の集合に属する度
合いをそれぞれ導出し、合成手段により前記導出された
それぞれの前記印字濃度の集合に属する度合いを合成
し、演算手段により該合成された前記印字濃度の集合に
属する度合いに基づいて、前記推論される印字濃度を決
定するので、印字濃度をより正確に推論することができ
る。
According to the image forming apparatus of the present invention,
The degree deriving unit derives the degree of belonging to the set of print densities from the degree that the number of blocks belongs to a plurality of predetermined sets, and the degree of belonging to the set of print densities derived by the combining unit. Are synthesized, and the inferred print density is determined based on the degree of belonging to the set of print densities synthesized by the arithmetic means, so that the print density can be inferred more accurately.

【0141】請求項3〜請求項9に記載の画像形成装置
によれば、ファジィ推論により印字濃度を推論すること
ができ、あらゆる文字の印字濃度制御を簡単に行うこと
ができる。
According to the image forming apparatus of the present invention, the print density can be inferred by fuzzy inference, and the print density of any character can be easily controlled.

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

【図1】第1の実施形態における画像形成装置の構成を
示すブロック図である。
FIG. 1 is a block diagram illustrating a configuration of an image forming apparatus according to a first embodiment.

【図2】画像形成処理手順を示すフローチャートであ
る。
FIG. 2 is a flowchart illustrating an image forming processing procedure.

【図3】文字パターンデータが画素マトリクスでデザイ
ンされているビットマップフォントの文字セット情報の
概要を示す図である。
FIG. 3 is a diagram showing an outline of character set information of a bitmap font in which character pattern data is designed in a pixel matrix.

【図4】セル幅が30画素、セル高が48画素で指定さ
れたビットマップフォントを示す図である。
FIG. 4 is a diagram showing a bitmap font designated with a cell width of 30 pixels and a cell height of 48 pixels.

【図5】RAM214のメモリマップを示す図である。FIG. 5 is a diagram showing a memory map of a RAM 214.

【図6】RAM214上のラスタイメージデータの印字
ロケーションを示す図である。
FIG. 6 is a diagram showing a print location of raster image data on a RAM 214.

【図7】ステップS111におけるブロック分割パラメ
ータ設定処理手順を示すフローチャートである。
FIG. 7 is a flowchart illustrating a block division parameter setting processing procedure in step S111.

【図8】文字コードとして「A」が指定されていた場合
のラスタイメージデータのブロック分割状態を示す図で
ある。
FIG. 8 is a diagram illustrating a block division state of raster image data when “A” is specified as a character code.

【図9】ステップS113におけるオン画素数検出処理
手順を示すフローチャートである。
FIG. 9 is a flowchart showing a procedure for detecting the number of ON pixels in step S113.

【図10】図9につづくオン画素数検出処理手順を示す
フローチャートである。
FIG. 10 is a flowchart illustrating a procedure for detecting the number of ON pixels following FIG. 9;

【図11】前件部メンバーシップ関数としてROM21
3に記憶されているブロック累積レジスタNBのメンバ
ーシップ関数を示すグラフである。
FIG. 11: ROM 21 as antecedent membership function
4 is a graph showing a membership function of a block accumulation register NB stored in No. 3;

【図12】後件部メンバーシップ関数としてROM21
3に記憶されている印字濃度のメンバーシップ関数を示
すグラフである。
FIG. 12 shows ROM 21 as a membership function of the consequent part.
6 is a graph showing a print density membership function stored in No. 3;

【図13】ファジィ推論により印字濃度を判定する演算
処理の概要を示す図である。
FIG. 13 is a diagram illustrating an outline of a calculation process for determining a print density by fuzzy inference.

【図14】ステップS114においてファジイ推論によ
り印字濃度データを設定する印字濃度判定処理手順を示
すフローチャートである。
FIG. 14 is a flowchart showing a print density determination processing procedure for setting print density data by fuzzy inference in step S114.

【図15】レーザ駆動回路の構成を示すブロック図であ
る。
FIG. 15 is a block diagram illustrating a configuration of a laser driving circuit.

【図16】第2の実施形態における印字濃度判定処理手
順を示すフローチャートである。
FIG. 16 is a flowchart illustrating a print density determination processing procedure according to the second embodiment.

【図17】ファジィ推論により印字濃度を判定する演算
処理の概要を示す図である。
FIG. 17 is a diagram illustrating an outline of a calculation process for determining a print density by fuzzy inference.

【図18】第3の実施形態における印字濃度判定処理手
順を示すフローチャートである。
FIG. 18 is a flowchart illustrating a print density determination processing procedure according to the third embodiment.

【図19】ファジィ推論により印字濃度を判定する演算
処理の概要を示す図である。
FIG. 19 is a diagram illustrating an outline of a calculation process for determining a print density by fuzzy inference.

【図20】第4の実施形態におけるファジィ推論により
印字濃度を判定する演算処理の概要を示す図である。
FIG. 20 is a diagram illustrating an outline of a calculation process of determining a print density by fuzzy inference in the fourth embodiment.

【図21】第5の実施形態におけるファジィ推論により
印字濃度を判定する演算処理の概要を示す図である。
FIG. 21 is a diagram illustrating an outline of a calculation process for determining a print density by fuzzy inference in the fifth embodiment.

【図22】第6の実施形態におけるファジィ推論により
印字濃度を判定する演算処理の概要を示す図である。
FIG. 22 is a diagram illustrating an outline of a calculation process for determining a print density by fuzzy inference in the sixth embodiment.

【図23】従来の画像形成装置の構成を示すブロック図
である。
FIG. 23 is a block diagram illustrating a configuration of a conventional image forming apparatus.

【図24】ホストコンピュータによって実行される画像
形成処理手順を示すフローチャートである。
FIG. 24 is a flowchart illustrating an image forming processing procedure executed by a host computer.

【図25】ステップS1004におけるページ記述処理
手順を示すフローチャートである。
FIG. 25 is a flowchart showing a page description processing procedure in step S1004.

【図26】印字ロケーションのフォーマット構成を示す
図である。
FIG. 26 is a diagram illustrating a format configuration of a print location.

【図27】画像メモリ内のmビットデータの配置を示す
図である。
FIG. 27 is a diagram showing an arrangement of m-bit data in an image memory.

【図28】レーザ駆動回路7aの構成を示すブロック図
である。
FIG. 28 is a block diagram showing a configuration of a laser drive circuit 7a.

【図29】画像形成装置の光学的構成を示す図である。FIG. 29 is a diagram illustrating an optical configuration of an image forming apparatus.

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

205 フォントROM 212 CPU 213 ROM 214 RAM 401〜404 画像メモリ 205 Font ROM 212 CPU 213 ROM 214 RAM 401 to 404 Image memory

Claims (10)

【特許請求の範囲】[Claims] 【請求項1】 画素毎に濃淡印刷を行える画像形成装置
において、 パターンデータを記憶する記憶手段と、 該記憶されたパターンデータの2値ラスタイメージデー
タを生成する画像データ生成手段と、 該生成されたラスタイメージデータを複数のブロックに
分割する分割手段と、 該分割されたブロック内に存在する黒または白の画素数
を検出する画素数検出手段と、 該検出された黒または白の画素数としきい値とを前記各
ブロック毎に比較する比較手段と、 該比較の結果、前記しきい値以上の黒または白の画素数
を有する前記ブロックの数を算出するブロック数算出手
段と、 該算出されたブロック数と印字濃度とを定性的な規則と
して関係付けを行う規則手段と、 該規則にしたがって、前記ブロック数が所定の集合に属
する度合いから、前記印字濃度の集合に属する度合いを
導出する度合導出手段と、 該導出された前記印字濃度の集合に属する度合いに基づ
いて前記印字濃度を推論する推論手段とを備え、 該推論された印字濃度により2値画像データを多値画像
データに変換することを特徴とする画像形成装置。
1. An image forming apparatus capable of performing grayscale printing for each pixel, a storage unit for storing pattern data, an image data generation unit for generating binary raster image data of the stored pattern data, Dividing means for dividing the raster image data into a plurality of blocks, a pixel number detecting means for detecting the number of black or white pixels present in the divided blocks, and a pixel number detecting means for detecting the number of black or white pixels. Comparing means for comparing a threshold value with each of the blocks; and, as a result of the comparison, a block number calculating means for calculating the number of blocks having the number of black or white pixels equal to or larger than the threshold value; Means for relating the number of blocks and the print density as a qualitative rule, and according to the rule, the degree of the number of blocks belonging to a predetermined set, A degree deriving unit that derives a degree belonging to the set of print densities; and inference means that infers the print density based on the derived degree belonging to the set of print densities. An image forming apparatus for converting binary image data into multilevel image data.
【請求項2】 前記度合導出手段は、前記ブロック数が
複数の所定の集合に属する度合いから、前記印字濃度の
集合に属する度合いをそれぞれ導出し、 前記推論手段は、 前記導出されたそれぞれの前記印字濃度の集合に属する
度合いを合成する合成手段と、 該合成された前記印字濃度の集合に属する度合いに基づ
いて、前記推論される印字濃度を決定する演算手段とを
備えたことを特徴とする請求項1記載の画像形成装置。
2. The degree deriving means derives the degree of belonging to the set of print densities from the degree of the number of blocks belonging to a plurality of predetermined sets, and the inference means comprises: Combining means for combining the degree of belonging to the set of print densities; and calculating means for determining the inferred print density based on the combined degree of belonging to the set of print densities. The image forming apparatus according to claim 1.
【請求項3】 前記規則手段は、前記ブロック数と前記
印字濃度との定性的な規則をファジィ命題の形で表現し
て記憶する規則記憶手段を備えたことを特徴とする請求
項1または請求項2記載の画像形成装置。
3. A rule storing means for storing a qualitative rule between the number of blocks and the print density in the form of a fuzzy proposition. Item 3. The image forming apparatus according to Item 2.
【請求項4】 前記度合導出手段は、前記ブロック数お
よび前記印字濃度をそれぞれファジィ集合で表現したメ
ンバーシップ関数を記憶するメンバーシップ関数記憶手
段を備えたことを特徴とする請求項1、請求項2または
請求項3記載の画像形成装置。
4. The apparatus according to claim 1, wherein said degree deriving means includes membership function storing means for storing a membership function in which said number of blocks and said print density are respectively expressed by fuzzy sets. The image forming apparatus according to claim 2 or 3.
【請求項5】 前記度合導出手段は、前記メンバーシッ
プ関数記憶手段に記憶されたメンバーシップ関数に基づ
いて、前記ブロック数の適合度を算出する適合度算出手
段を備えたことを特徴とする請求項4記載の画像形成装
置。
5. The degree deriving means includes a degree of fitness calculating means for calculating the degree of fitness of the number of blocks based on a membership function stored in the membership function storing means. Item 5. The image forming apparatus according to Item 4.
【請求項6】 前記度合導出手段は、前記算出されたブ
ロック数の適合度から、前記規則記憶手段にファジィ命
題の形で記憶された規則にしたがって、前記印字濃度の
推論結果を求めることを特徴とする請求項5記載の画像
形成装置。
6. The degree deriving means obtains an inference result of the print density from the fitness of the calculated number of blocks in accordance with rules stored in the rule storage means in the form of fuzzy propositions. The image forming apparatus according to claim 5, wherein
【請求項7】 前記度合算出手段は、前記ブロック数の
適合度と前記印字濃度のメンバーシップ関数との最小値
演算または乗算演算により前記推論結果を求めることを
特徴とする請求項6記載の画像形成装置。
7. The image according to claim 6, wherein the degree calculating means obtains the inference result by a minimum value operation or a multiplication operation of the degree of conformity of the number of blocks and the membership function of the print density. Forming equipment.
【請求項8】 前記推論手段は、各規則における前記推
論結果を最大値演算、最小値演算あるいは加算演算によ
り合成することを特徴とする請求項7記載の画像形成装
置。
8. The image forming apparatus according to claim 7, wherein the inference unit combines the inference results in each rule by a maximum value operation, a minimum value operation, or an addition operation.
【請求項9】 前記演算手段は、前記合成された結果の
重心を求めることにより前記印字濃度を決定することを
特徴とする請求項8記載の画像形成装置。
9. The image forming apparatus according to claim 8, wherein the calculating unit determines the print density by obtaining a center of gravity of the synthesized result.
【請求項10】 画素毎に濃淡印刷を行う画像形成方法
において、 パターンデータを記憶しておき、 該記憶されたパターンデータの2値ラスタイメージデー
タを生成し、 該生成されたラスタイメージデータを複数のブロックに
分割し、 該分割されたブロック内に存在する黒または白の画素数
を検出し、 該検出された黒または白の画素数としきい値とを前記各
ブロック毎に比較し、 該比較の結果、前記しきい値以上の黒または白の画素数
を有する前記ブロックの数を算出し、 該算出されたブロック数と印字濃度とを定性的な規則と
して関係付けを行い、 該規則にしたがって、前記ブロックの数が所定の集合に
属する度合いから、前記印字濃度の集合に属する度合い
を導出し、 該導出された前記印字濃度の集合に属する度合いに基づ
いて前記印字濃度を推論し、 該推論された印字濃度により2値画像データを多値画像
データに変換することを特徴とする画像形成方法。
10. An image forming method for performing grayscale printing for each pixel, wherein pattern data is stored, binary raster image data of the stored pattern data is generated, and the generated raster image data is stored in a plurality. The number of black or white pixels present in the divided block is detected, and the detected number of black or white pixels is compared with a threshold value for each of the blocks. As a result, the number of the blocks having the number of black or white pixels equal to or larger than the threshold value is calculated, and the calculated number of blocks and the print density are related as a qualitative rule. Derives the degree of belonging to the set of print densities from the degree to which the number of blocks belongs to a predetermined set, and based on the derived degree of belonging to the set of print densities, An image forming method, comprising inferring a print density and converting binary image data into multi-valued image data based on the inferred print density.
JP10011973A 1998-01-07 1998-01-07 Image formation device and method Pending JPH11205596A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP10011973A JPH11205596A (en) 1998-01-07 1998-01-07 Image formation device and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP10011973A JPH11205596A (en) 1998-01-07 1998-01-07 Image formation device and method

Publications (1)

Publication Number Publication Date
JPH11205596A true JPH11205596A (en) 1999-07-30

Family

ID=11792557

Family Applications (1)

Application Number Title Priority Date Filing Date
JP10011973A Pending JPH11205596A (en) 1998-01-07 1998-01-07 Image formation device and method

Country Status (1)

Country Link
JP (1) JPH11205596A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2004089637A1 (en) * 2003-04-08 2004-10-21 Riso Kagaku Corporation Perfecting press device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2004089637A1 (en) * 2003-04-08 2004-10-21 Riso Kagaku Corporation Perfecting press device

Similar Documents

Publication Publication Date Title
US5555360A (en) Graphics processing apparatus for producing output data at edges of an output image defined by vector data
US6577314B1 (en) Character generation using data of plural types to which differing priorities are assigned
US6490055B1 (en) Printing apparatus with execution of software rendering and hardware rendering
US6332666B1 (en) Printing apparatus, resolution conversion printing method for printing apparatus, and storage medium storing computer-readable program
US20050237574A1 (en) Image processing apparatus and method
JP2004528644A (en) How to process information
US5565907A (en) Image forming apparatus capable of producing high quality halftone images
JPH10224603A (en) Image processing method
US5567061A (en) Output apparatus with detachable character storing cartridge
US5359432A (en) Printer page composition with color and text
EP1067763A2 (en) Systems and methods for generating high addressability images
US7027184B2 (en) Image processing apparatus and method, and image forming apparatus
US6172766B1 (en) Image processing method and apparatus and storage medium
EP0488118B1 (en) Image recording apparatus for high quality images
JP2006044169A (en) Printing device and method of controlling the same
JPH11205596A (en) Image formation device and method
JP3098664B2 (en) Printing equipment
JPH11205595A (en) Image formation device and method
JP2002103683A (en) Apparatus and method for forming image as well as storage medium
JP2752821B2 (en) Image recording device
JPH07250246A (en) Image forming device
JPH07240843A (en) Image forming device
JP2004106212A (en) Image forming apparatus
JP2001285662A (en) Image processing apparatus and its method
JP2007306432A (en) Image forming apparatus and method