JPH077256B2 - How to generate a gray scale pattern - Google Patents

How to generate a gray scale pattern

Info

Publication number
JPH077256B2
JPH077256B2 JP2195101A JP19510190A JPH077256B2 JP H077256 B2 JPH077256 B2 JP H077256B2 JP 2195101 A JP2195101 A JP 2195101A JP 19510190 A JP19510190 A JP 19510190A JP H077256 B2 JPH077256 B2 JP H077256B2
Authority
JP
Japan
Prior art keywords
black pels
pattern
row
sampling
black
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Lifetime
Application number
JP2195101A
Other languages
Japanese (ja)
Other versions
JPH0484194A (en
Inventor
善隆 小桧山
Original Assignee
インターナシヨナル・ビジネス・マシーンズ・コーポレーシヨン
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 インターナシヨナル・ビジネス・マシーンズ・コーポレーシヨン filed Critical インターナシヨナル・ビジネス・マシーンズ・コーポレーシヨン
Priority to JP2195101A priority Critical patent/JPH077256B2/en
Priority to EP91306033A priority patent/EP0468652B1/en
Priority to DE69109952T priority patent/DE69109952D1/en
Priority to US07/734,655 priority patent/US5202936A/en
Publication of JPH0484194A publication Critical patent/JPH0484194A/en
Publication of JPH077256B2 publication Critical patent/JPH077256B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G5/00Control arrangements or circuits for visual indicators common to cathode-ray tube indicators and other visual indicators
    • G09G5/22Control arrangements or circuits for visual indicators common to cathode-ray tube indicators and other visual indicators characterised by the display of characters or indicia using display control signals derived from coded signals representing the characters or indicia, e.g. with a character-code memory
    • G09G5/24Generation of individual character patterns
    • G09G5/28Generation of individual character patterns for enhancement of character form, e.g. smoothing

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Computer Hardware Design (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Controls And Circuits For Display Device (AREA)
  • Image Generation (AREA)

Description

【発明の詳細な説明】 A.産業上の利用分野 本発明は、高解像度のオリジナル文字イメージを表わす
低解像度のグレイ・スケール・パターンを発生する方法
に関する。
DETAILED DESCRIPTION OF THE INVENTION A. Field of Industrial Application The present invention relates to a method of generating a low resolution gray scale pattern that represents a high resolution original character image.

B.従来技術及び問題点 文字のドット・マトリクス・パターンを表示若しくは印
刷するために2レベル表示若しくはオン−オフ表示が、
CRT表示装置、プラズマ表示装置、液晶表示装置若しく
は種々なプリンタで使用されてきた。2レベル表示にお
いては、2進値が各画素(ペル)に割当てられる。かく
して、マトリクスの各ペルは黒又は白を表わす。しかし
ながら、マトリクスで2レベル表示を行なうと、垂直で
ないライン若しくは水平でないラインに沿って階段状の
表示が生じる。表示若しくは印刷されたイメージの解像
度の低下につれて、この段づけされたエッジは大きくな
りそして視覚者に不快感を与える。
B. Prior Art and Problems Two-level display or on-off display for displaying or printing a dot matrix pattern of characters,
It has been used in CRT displays, plasma displays, liquid crystal displays or various printers. In a two level display, a binary value is assigned to each pixel (pel). Thus, each pel in the matrix represents black or white. However, when two-level display is performed in a matrix, a staircase display is generated along a non-vertical line or a non-horizontal line. As the resolution of the displayed or printed image decreases, this stepped edge grows and is discomforting to the viewer.

更に自然な文字表示を与えるために、複数のグレイ・ス
ケール・レベルを用いる表示システムが開発されてき
た。Communication of the ACMの1980年、第14巻、第3
号の第302−307頁のJohn E.Wamockによる論文“The Dis
play of Characters Using Gray Level Sampling Array
s"及び米国特許第4158200号、Charles L.Seitz等、バロ
ーズ社は、複数の異なるグレイ・スケール・レベル若し
くは輝度を用いる上述のシステムを示している。
Display systems using multiple gray scale levels have been developed to provide a more natural text display. Communication of the ACM, 1980, Volume 14, Volume 3
Issue 302-307, John E. Wamock, "The Dis
play of Characters Using Gray Level Sampling Array
S. "and U.S. Pat. No. 4,158,200, Charles L. Seitz et al., Burroughs, Inc., describe the above-described system using a plurality of different gray scale levels or intensities.

第7図は、異なるグレイス・スケール・レベルを用いる
表示の概念を示す。例えば88×88ドット/1文字ボックス
の如き高解像度の文字パターンがフォント・メモリに記
憶される。11×11ドット文字の解像度の表示装置に文字
パターンが表示されるとする。この場合には、8×8の
サンプリング・ウィンドウを有するサンプリング・パタ
ーン21が用いられる。88×88ドットのオリジナル文字パ
ターンを8×8ドットの文字イメージに変換するため
に、1つのサンプリング・ウィンドウにより囲まれたオ
リジナル文字イメージの一部分の黒ペルの数が計数さ
れ、そしてこのサンプリング・ウィンドウ内の黒ペルの
数に従って8つのグレイ・スケール・レベルの1つが割
当てられ、その結果グレイ・スケール・パターン29が発
生される。これは、表示装置の輝度レベルを制御するた
めに用いられる。
FIG. 7 illustrates the concept of display using different Grace Scale levels. High resolution character patterns, such as 88x88 dots / character box, are stored in the font memory. Suppose a character pattern is displayed on a display device with a resolution of 11 × 11 dots. In this case, the sampling pattern 21 having an 8 × 8 sampling window is used. To convert an 88x88-dot original character pattern into an 8x8-dot character image, the number of black pels in a portion of the original character image surrounded by one sampling window is counted, and this sampling window One of eight gray scale levels is assigned according to the number of black pels in the resulting gray scale pattern 29. This is used to control the brightness level of the display device.

グレイ・スケール・レベルを用いる表示は階段状エッジ
の問題を解決するけれども、これは例えば数多くの水平
及び垂直ラインを含む漢字の如き比較的複雑な文字が表
示される場合には新たな問題を生じる。第14図を参照す
ると、フォント・メモリに記憶されている高解像の漢字
51が示されている。この場合には、16×16のサンプリン
グ・ウィンドウを有するサンプリング・パターンが用い
られる。第7図で説明したように、各サンプリング・ウ
ィンドウで計数された黒ペルの数にグレイ・スケール値
が割当てられて、オリジナル漢字51を表わすグレイ・ス
ケール・パターン52を発生する。そして、グレイ・スケ
ール・パターン52は表示装置に送られる。このグレイ・
スケール・パターン52を用いて表示されたパターン53は
同じグレイ・レベルの互いに接触した水平線を有し、そ
して読取りにくいことが明らかである。
Although displaying with gray scale levels solves the problem of staircase edges, this creates new problems when relatively complex characters are displayed, such as Chinese characters containing many horizontal and vertical lines. . Referring to FIG. 14, high resolution kanji stored in the font memory
51 is shown. In this case, a sampling pattern with a 16 × 16 sampling window is used. As described in FIG. 7, the number of black pels counted in each sampling window is assigned a gray scale value to produce a gray scale pattern 52 representing the original Chinese character 51. The gray scale pattern 52 is then sent to the display device. This gray
It is clear that the pattern 53 displayed using the scale pattern 52 has horizontal lines touching each other of the same gray level and is difficult to read.

C.問題点を解決するための手段 本発明に従う高解像度のオリジナル文字イメージを表わ
す低解像度のグレイ・スケール・パターンを発生する方
法は、 上記低解像度及び高解像度の比により決定される数の行
及び列に配列された複数個のサンプリング・ウィンドウ
を有するサンプリング・パターンを発生し、 上記オリジナル文字イメージ上の列方向に沿って予定距
離だけ離された複数位置に上記サンプリング・パターン
を逐次的に位置決めし、上記位置の夫々における上記サ
ンプリング・パターンの各行の所定部分の黒ペル数を加
えて全行の黒ペルの総数を計数し、 上記位置の夫々における上記黒ペルの総数を比較して最
大黒ペル数が検出された位置を検出し、 上記オリジナル文字イメージ上で上記検出位置に上記サ
ンプリング・パターンを位置決めし、 上記サンプリング・パターンの各サンプリング・ウィン
ドウ内の黒ペルの数を計数し、各サンプリング・ウィン
ドウに異なるグレイ・スケール値の1つを割当てること
を含む。
C. Means for Solving the Problems A method of generating a low resolution gray scale pattern representing a high resolution original character image according to the present invention comprises a number of lines determined by the ratio of the low resolution and the high resolution. And generating a sampling pattern having a plurality of sampling windows arranged in columns, and sequentially positioning the sampling patterns at a plurality of positions separated by a predetermined distance along the column direction on the original character image. Then, the total number of black pels in all rows is counted by adding the number of black pels in a predetermined portion of each row of the sampling pattern at each of the above positions, and the maximum black is calculated by comparing the total number of black pels at each of the above positions. The position where the pel number is detected is detected, and the sampling pattern is placed at the detected position on the original character image. Positioning, counting the number of black pels in each sampling window of the sampling pattern, and assigning each sampling window one of a different gray scale value.

本発明の方法においては、上記サンプリング・ウィンド
ウの中心部分に位置づけられた一群のペル・ラインが、
上記行の黒ペルの数を計数するのに用いられる。
In the method of the invention, a group of pel lines located in the central portion of the sampling window is
Used to count the number of black pels in the row.

本発明の方法においては、上記サンプリング・パターン
は、1ペル・ラインだけ離された複数の位置に逐次的に
位置決めされる。
In the method of the present invention, the sampling patterns are sequentially positioned at a plurality of positions separated by one pel line.

本発明に従う高解像度のオリジナル文字イメージを表わ
す低解像度のグレイ・スケール・パターンを発生する方
法は、 上記低解像度及び高解像度の比により決定される数の行
及び列に配列された複数個のサンプリング・ウィンドウ
を有するサンプリング・パターンを発生し、 上記オリジナル文字イメージ上の行方向及び列方向に沿
って予定距離だけ離された複数位置に上記サンプリング
・パターンを逐次的に位置決めし、上記位置の夫々にお
ける、上記サンプリング・パターンの各行の所定部分の
黒ペル数を加えて全行の黒ペルの総数、及び各列の所定
部分の黒ペルの数を加えて全列の黒ペルの総数を計数
し、 上記位置の夫々における上記黒ペルの総数を比較して、
上記全行の黒ペルの総数が最大である上記列方向の位置
及び上記全列の黒ペルの総数が最大である上記行方向の
位置を検出し、 上記オリジナル文字パターン上で上記検出位置に上記サ
ンプリング・パターンを位置決めし、 上記サンプリング・パターンの各サンプリング・ウィン
ドウの黒ペルの数を計数し上記各サンプリング・ウィン
ドウに異なるグレイ・スケール値の1つを割当てること
を含む。
A method of generating a low resolution gray scale pattern representing a high resolution original character image in accordance with the present invention comprises a plurality of samplings arranged in a number of rows and columns determined by the ratio of the low resolution and the high resolution. Generating a sampling pattern having a window and sequentially positioning the sampling pattern at a plurality of positions separated by a predetermined distance along the row direction and the column direction on the original character image, and at each of the positions, Counting the total number of black pels in all rows by adding the number of black pels in each row of the above sampling pattern, and the total number of black pels in all columns by adding the number of black pels in each row. Comparing the total number of black pels in each of the positions,
The position in the column direction in which the total number of black pels in all the rows is the maximum and the position in the row direction in which the total number of black pels in the all columns is the maximum are detected, and the position is detected at the detection position on the original character pattern. Positioning the sampling pattern, counting the number of black pels in each sampling window of the sampling pattern and assigning each sampling window one of a different gray scale value.

本発明に従う高解像度のオリジナル文字イメージを表わ
す低解像度のグレイ・スケール・パターンを発生する方
法は、 上記低解像度及び高解像度の比により決定される数の行
及び列に配列された複数個のサンプリング・ウィンドウ
を有するサンプリング・パターンを発生し、 上記オリジナル文字イメージ上の行方向及び列方向に沿
って予定距離だけ離された複数位置に上記サンプリング
・パターンを逐次的に位置決めし、上記位置の夫々にお
ける、上記サンプリング・パターンの各行の所定部分の
黒ペル数を加えて全行の黒ペルの総数、及び各列の所定
部分の黒ペルの数を加えて全列の黒ペルの総数を計数
し、 上記位置の夫々における上記黒ペルの総数を比較して、
上記全行の黒ペルの総数が最大である上記列方向の位置
及び上記全列の黒ペルの総数が最大である上記行方向の
位置を検出し、 上記オリジナル文字パターン上で上記検出位置に上記サ
ンプリング・パターンを位置決めし、 上記サンプリング・パターンの各行及び列毎の黒ペルの
数を計数し、 各行の黒ペルの数を比較して隣接行よりも多い黒ペルを
有する行を選択し、各列の黒ペルの数を比較して隣接列
よりも多い黒ペルを有する列を選択し、 上記オリジナル文字イメージ上の上記行方向及び上記列
方向に沿って予定距離だけ離された複数位置に、上記選
択された行及び列を逐次的に位置決めし、各位置におけ
る上記行の黒ペルの数及び上記列の黒ペルの数を計数
し、 上記各位置における上記選択された行の黒ペルの数を比
較して黒ペルの数が最大となる列方向の位置を検出し、
上記各位置における上記選択された列の黒ペルの数を比
較して黒ペルの数が最大となる行方向の位置を検出し、 上記選択された行及び列の位置を上記検出された位置に
夫々シフトし、 上記サンプリング・パターンの各サンプリング・ウィン
ドウ内の黒ペルの数を計数して各サンプリング・ウィン
ドウに異なるグレイ・スケール値の1つを割当てること
を含む。
A method of generating a low resolution gray scale pattern representing a high resolution original character image in accordance with the present invention comprises a plurality of samplings arranged in a number of rows and columns determined by the ratio of the low resolution and the high resolution. Generating a sampling pattern having a window and sequentially positioning the sampling pattern at a plurality of positions separated by a predetermined distance along the row direction and the column direction on the original character image, and at each of the positions, Counting the total number of black pels in all rows by adding the number of black pels in each row of the above sampling pattern, and the total number of black pels in all columns by adding the number of black pels in each row. Comparing the total number of black pels in each of the positions,
The position in the column direction in which the total number of black pels in all the rows is the maximum and the position in the row direction in which the total number of black pels in the all columns is the maximum are detected, and the position is detected at the detection position on the original character pattern. Position the sampling pattern, count the number of black pels in each row and column of the sampling pattern, compare the number of black pels in each row, and select the row with more black pels than the adjacent row. Selecting columns having more black pels than adjacent columns by comparing the number of black pels in the columns, and at a plurality of positions separated by a predetermined distance along the row direction and the column direction on the original character image, Positioning the selected rows and columns sequentially, counting the number of black pels in the row at each position and the number of black pels in the column, and counting the number of black pels in the selected row at each position. Compare the black pel's There detecting the position of the column having the maximum
The number of black pels in the selected column at each position is compared to detect the position in the row direction where the number of black pels is maximum, and the position of the selected row and column is set to the detected position. Shifting each and counting the number of black pels in each sampling window of the sampling pattern and assigning each sampling window one of a different gray scale value.

D.実施例の説明 第1図を参照するに本発明に従う動作を行なうパターン
発生システムのブロック図が示されている。
D. Description of Embodiments Referring to FIG. 1, there is shown a block diagram of a pattern generation system which operates in accordance with the present invention.

フォント・メモリ1は、高解像度の一組のオリジナル文
字イメージ即ちパターンを記憶している。オリジナル文
字イメージの解像度は88×88ドット/文字ボックスであ
り、そしてオリジナル文字イメージは8×8ドット/文
字ボックス即ち8×8ペル/文字ボックスのグレイ・ス
ケール・パターンに変換されるものとする このパターン発生システムはプリンタ又は表示装置に組
込まれ、そしてオリジナル文字パターンはプロセッサか
らフォント・メモリ1にロードされる。
The font memory 1 stores a set of high resolution original character images or patterns. The resolution of the original character image shall be 88x88 dots / character box, and the original character image shall be converted to a gray scale pattern of 8x8 dots / character box or 8x8 pels / character box. The pattern generation system is built into the printer or display and the original character pattern is loaded into the font memory 1 from the processor.

88×88ドットの解像度のオリジナル文字パターンの1つ
例えば文字Bのイメージが、第2図に示す如くマイクロ
プロセッサ3の制御のもとにフォント・メモリ1からバ
ッファ・メモリ2へとり出される。
An image of one of the original character patterns with a resolution of 88.times.88 dots, for example the character B, is fetched from the font memory 1 to the buffer memory 2 under the control of the microprocessor 3 as shown in FIG.

第1図に示すバッファ・メモリ2の寸法は1つのオリジ
ナル文字のボックスの寸法と同じである。
The size of the buffer memory 2 shown in FIG. 1 is the same as the size of the box of one original character.

オリジナル文字パターンの解像度即ち88×88ドット及び
表示スクリーン上に表示されるべきグレイ・スケール・
パターンの解像度即ち8×8ドットに基づき、マイクロ
・プロセッサ3は、第2図に示すような8×8ウィンド
ウの格子状のサンプリング・パターン21を発生する。サ
ンプリング・パターン21の寸法は、1文字ボックスの寸
法に等しい。
The resolution of the original character pattern, i.e. 88 x 88 dots and the gray scale to be displayed on the display screen.
Based on the resolution of the pattern, i.e. 8x8 dots, the microprocessor 3 produces a grid-like sampling pattern 21 of 8x8 window as shown in FIG. The size of the sampling pattern 21 is equal to the size of the one character box.

マイクロプロセッサ3は、第3図に示すアルゴリズムの
イメージ変換プロセスを行なう。
The microprocessor 3 performs the image conversion process of the algorithm shown in FIG.

第3図のステップ31において、マイクロプロセッサ3
は、オリジナル文字イメージのX及びY方向の全ペル・
ラインの黒ペルの数を計数し、第2図に示すX方向のヒ
ストグラム26及びY方向のヒストグラム27を発生し、そ
してこれらのヒストグラム26及び27を第1図のヒストグ
ラム・バッファ・メモリ4に記憶する。
In step 31 of FIG. 3, the microprocessor 3
Is all the pels in the X and Y directions of the original character image.
The number of black pels in the line is counted and a histogram 26 in the X direction and a histogram 27 in the Y direction shown in FIG. 2 are generated, and these histograms 26 and 27 are stored in the histogram buffer memory 4 in FIG. To do.

動作は第3図のブロック32へ進み、ここでマイクロプロ
セッサ3は、サンプリング・パターン21を初期位置に位
置決めする。この初期位置においては、サンプリング・
パターン21の左上角22は、オリジナル文字パターンのド
ット・マトリクス即ち文字ボックスの左上角23に位置決
めされる。
Operation proceeds to block 32 of FIG. 3 where microprocessor 3 positions sampling pattern 21 in an initial position. In this initial position, sampling
The upper left corner 22 of the pattern 21 is positioned at the upper left corner 23 of the dot matrix or character box of the original character pattern.

第2図の部分24の拡大図である第4A図を参照して行即ち
X方向のサンプリング動作を説明すると、ペル・ライン
1乃至11はオリジナル文字イメージのペル・ラインを表
わす。マイクロプロセッサ3は、サンプリング・パター
ン21の各行毎に一群のペル・ライン4、5、6、7及び
8を選択する。ペル・ライン6は、第4図に示す如く行
の巾の中心に位置づけられている。マイクロプロセッサ
3は、ヒストグラム・バッファ・メモリ4のヒストグラ
ム26を参照して行1乃至8のオリジナル文字イメージの
一群のペル・ライン4、5、6、7、及び8上の黒ペル
の数を計数する。そして、マイクロプロセッサ3は、各
行の黒ペルの数を合計して、初期位置のサンプリング・
パターン21の水平方向の黒ペルの総数を発生し、そして
この総数をレジスタ5のY方向の記憶装置0に記憶す
る。
Explaining the sampling operation in the row or X direction with reference to FIG. 4A, which is an enlarged view of portion 24 of FIG. 2, pel lines 1-11 represent pel lines of the original character image. The microprocessor 3 selects a group of pel lines 4, 5, 6, 7 and 8 for each row of the sampling pattern 21. The pel line 6 is located at the center of the width of the row as shown in FIG. Microprocessor 3 counts the number of black pels on a group of pel lines 4, 5, 6, 7, and 8 in rows 1-8 of the original character image with reference to histogram 26 in histogram buffer memory 4. To do. Then, the microprocessor 3 sums the numbers of black pels in each row to sample the initial position.
The total number of horizontal black pels of the pattern 21 is generated, and this total number is stored in the memory device 0 of the register 5 in the Y direction.

上と同じ方法で、マイクロプロセッサ3は初期位置のサ
ンプリング・パターン21の垂直方向の黒ペルの総数を発
生する。更に具体的に言うならば、第5A図は第2図の部
分28の拡大図である。ペル・ライン1乃至11はオリジナ
ル文字イメージのペル・ラインを表わす。マイクロプロ
セッサ3は、サンプリング・パターン21の各列毎に一群
のペル・ライン4、5、6、7及び8を選択する。ペル
・ライン6は、第5A図で示す如く、列の巾の中心に位置
づけられている。マイクロプロセッサ3は、ヒストグラ
ム・バッファ・メモリ4のヒストグラム27を参照するこ
とにより、列1乃至8のオリジナル文字イメージの一群
のペル・ライン4、5、6、7、及び8上の黒ペルの数
を計数する。そして、マイクロプロセッサ3は、各列の
黒ペルの数を合計して、初期位置のサンプリング・パタ
ーン21の垂直方向の黒ペルの総数を発生し、そしてこの
総数をレジスタ5のX方向の記憶装置0に記憶する。
In the same way as above, the microprocessor 3 generates the total number of vertical black pels of the initial position sampling pattern 21. More specifically, FIG. 5A is an enlarged view of portion 28 of FIG. Pell lines 1-11 represent the pel lines of the original character image. The microprocessor 3 selects a group of pel lines 4, 5, 6, 7 and 8 for each column of the sampling pattern 21. The pel line 6 is located at the center of the width of the row, as shown in Figure 5A. The microprocessor 3 refers to the histogram 27 of the histogram buffer memory 4 to determine the number of black pels on the group of pel lines 4, 5, 6, 7, and 8 of the original character image in columns 1-8. Is counted. The microprocessor 3 then sums the number of black pels in each column to generate the total number of vertical black pels in the sampling pattern 21 at the initial position, and stores this total in the register 5 storage in the X direction. Store at 0.

動作は第3図のブロック33に進み、ここでマイクロプロ
セッサ3は、初期位置からサンプリング・パターン21を
X及びY方向で±1ペル・ライン、±2ペル・ライン及
び±3ペル・ラインだけ夫々逐次的にシフトし、そして
初期位置で述べたと同様にして、各位置における黒ペル
の総数を計数する。第4B図を参照して行即ち水平方向で
のサンプリング動作を説明すると、サンプリング・パタ
ーン21は上方に1ペル・ライン分だけシフトされる。第
4B図のサンプリング・ウィンドウ25Aは、1ペル・ライ
ン分だけのサンプリング・パターン21のシフトを示す。
マイクロ・プロセッサ3は、サンプリング・パターン21
の各行毎にオリジナル文字イメージの一群のペル・ライ
ン3、4、5、6及び7を選択する。マイクロ・プロセ
ッサ3は、+1位置におけるサンプリング・パターン21
の水平方向の黒ペルの総数を発生し、そしてこの総数を
レジスタ5のY方向の記憶装置+1に記憶する。
Operation proceeds to block 33 of FIG. 3 where the microprocessor 3 sets the sampling pattern 21 from the initial position in the X and Y directions by ± 1 pel line, ± 2 pel line and ± 3 pel line respectively. Sequentially shift and count the total number of black pels at each position, as described for the initial position. Explaining the row or horizontal sampling operation with reference to FIG. 4B, the sampling pattern 21 is shifted upward by one pel line. First
Sampling window 25A in FIG. 4B shows a shift of sampling pattern 21 by one pel line.
The microprocessor 3 has a sampling pattern 21
Select a group of pel lines 3, 4, 5, 6 and 7 for each row of the original character image. The microprocessor 3 has the sampling pattern 21 at the +1 position.
Generate the total number of horizontal black pels in the horizontal direction, and store this total number in the Y direction memory +1 of register 5.

サンプリング・パターン21を+2、+3、−1、−2及
び−3位置にシフトするために、マイクロプロセッサ3
は、+2位置に対してペル・ライン2、3、4、5及び
6を、+3位置に対してペル・ライン1、2、3、4及
び5を、−1位置に対してペル・ライン5、6、7、8
及び9を、−2位置に対してペル・ライン6、7、8、
9及び10を、そして−3位置に対してペル・ライン7、
8、9、10及び11を夫々選択する。そしてマイクロプロ
セッサ3は、各位置におけるサンプリング・パターン21
の水平方向の黒ペルの総数を発生し、そしてこれらをレ
ジスタ5のY方向の各記憶装置に記憶する。
To shift the sampling pattern 21 to the +2, +3, -1, -2 and -3 positions, the microprocessor 3
Has pel lines 2, 3, 4, 5 and 6 for the +2 position, pel lines 1, 2, 3, 4 and 5 for the +3 position and pel line 5 for the -1 position. , 6, 7, 8
And 9 to the Pell lines 6, 7, 8, for the -2 position.
9 and 10, and the pel line 7 for the -3 position,
Select 8, 9, 10 and 11 respectively. The microprocessor 3 then selects the sampling pattern 21 at each position.
Of the horizontal black pels in the horizontal direction, and store these in each memory unit in the Y direction of register 5.

次にマイクロプロセッサ3は、第5図に示すように、初
期位置からサンプリング・パターン21をY方向に±1、
±2、±3ペル・ライン分だけ逐次的にシフトする。サ
ンプリング・パターン21を上記装置にシフトするため
に、マイクロプロセッサ3は、+1位置に対してペル・
ライン5、6、7、8及び9を、+2位置に対してペル
・ライン6、7、8、9及び10を、+3位置に対してペ
ル・ライン7、8、9、10及び11を、−1位置に対して
ペル・ライン3、4、5、6及び7を、−2位置に対し
てペル・ライン2、3、4、5及び6を、そして−3位
置に対してペル・ライン1、2、3、4及び5を夫々選
択する。そしてマイクロプロセッサ3は、各位置におけ
るサンプリング・パターン21の垂直方向の黒ペルの総数
を発生し、そしてこれらをレジスタ5のX方向の各記憶
位置に記憶する。
Next, as shown in FIG. 5, the microprocessor 3 sets the sampling pattern 21 from the initial position to ± 1 in the Y direction,
Shifts by ± 2 and ± 3 pel lines sequentially. In order to shift the sampling pattern 21 to the device, the microprocessor 3
Lines 5, 6, 7, 8 and 9 for the +2 position and pel lines 6, 7, 8, 9 and 10 for the +3 position and pel lines 7, 8, 9, 10 and 11 for the +3 position, Pell lines 3, 4, 5, 6, and 7 for the -1 position, Pell lines 2, 3, 4, 5, and 6 for the -2 position, and Pell lines for the -3 position. 1, 2, 3, 4 and 5 are selected respectively. The microprocessor 3 then generates the total number of vertical black pels of the sampling pattern 21 at each position and stores them in the register 5 at each memory location in the X direction.

各位置における黒ペルの総数Tsは次式により表わされ
る。
The total number Ts of black pels at each position is expressed by the following equation.

P=S+B/t×i−B/2t+j ここで P:オリジナル文字イメージの1ペル・ラインの位置 f(P):オリジナル文字イメージの1ペル・ライン上
の黒ペルの数 W:サンプリング・パターンの行若しくは列の中心部分に
位置づけられた1群内のペル・ラインの数 t:グレイ・スケール・パターンのX若しくはY方向のド
ット即ちペルの数 B:1つのオリジナル文字マトリクス即ちボックスのX若
しくはY方向のドット即ちペルの数 S:シフトの位置 正の方向若しくは負の方向におけるシフト位置の範囲
は、次式により表わされる。
P = S + B / t × i−B / 2t + j where P: the position of one pel line of the original character image f (P): the number of black pels on one pel line of the original character image W: of the sampling pattern Number of pel lines in a group located in the center of a row or column t: Number of dots or pels in the X or Y direction of the gray scale pattern B: One original character matrix or box X or Y Number of dots or pels in a direction S: Position of shift The range of shift positions in the positive or negative direction is represented by the following equation.

S<B/3t 説明中の例では、B=88そしてt=8であり、 S<3.66 かくして、正の方向では+1、+2及び+3のシフト位
置が選択され、そして負の方向では−1、−2及び−3
のシフト位置が選択される。
S <B / 3t In the example being described, B = 88 and t = 8, S <3.66 thus selecting shift positions of +1, +2 and +3 in the positive direction and −1 in the negative direction. -2 and -3
Shift position is selected.

次に、マイクロ・プロセッサ3は、第3図のブロック34
において、レジスタ5のY方向の記憶位置+3、+2、
+1、0、−1、−2及び−3の夫々に記憶された総数
を比較し、最大の値が記憶されている1つの位置を識別
し、そしてこの識別された位置を、Y方向におけるサン
プリング・パターン21の較正位置として選択する。Y方
向におけるサンプリング・パターン21の初期位置及び較
正位置の間の距離は第6図の示す如くSyである。
Microprocessor 3 then proceeds to block 34 of FIG.
At the storage positions of the register 5 in the Y direction +3, +2,
Compare the totals stored in each of +1, 0, -1, -2 and -3 to identify the one position where the largest value is stored, and sample this identified position in the Y direction. -Select as the calibration position for pattern 21. The distance between the initial position and the calibration position of the sampling pattern 21 in the Y direction is Sy as shown in FIG.

又、マイクロプロセッサ3は、レジスタ5のX方向の記
憶装置+3、+2、+1、0、−1、−2、及び−3の
夫々に記憶されている総数を比較し、最大の値が記憶さ
れている1つの位置を識別し、そしてこの識別された位
置を、X方向のサンプリング・パターン21の較正位置と
して選択する。X方向におけるサンプリング・パターン
21の初期位置及び較正位置の間の距離が第6図に示すよ
うにSxとする。
Further, the microprocessor 3 compares the total numbers stored in the storage devices +3, +2, +1, 0, -1, -2, and -3 of the register 5 in the X direction, and the maximum value is stored. One position that is present, and selects this identified position as the calibration position for the sampling pattern 21 in the X direction. Sampling pattern in X direction
The distance between the initial position and the calibration position of 21 is Sx as shown in FIG.

第7図は、較正動作なしの第6図の初期位置に位置づけ
られたサンプリング・パターン21を用いる従来技術によ
り発生されたグレイ・スケール・パターン29を示す。
FIG. 7 shows a gray scale pattern 29 generated by the prior art using the sampling pattern 21 located in the initial position of FIG. 6 without a calibration operation.

第8図は、本発明に従い第6図の較正位置Sx、Syに位置
づけられたサンプリング・パターン21を用いて発生され
たグレイ・スケール・パターン30を示す。
FIG. 8 shows a gray scale pattern 30 generated using the sampling pattern 21 located at the calibration positions Sx, Sy of FIG. 6 in accordance with the present invention.

グレイ・スケール・パターン29とグレイ・スケール・パ
ターン30を文字Bの2つの部分71及び72を観察すること
により比較すると、グレイ・スケール・パターン29にお
いて部分71は、列2のグレイ・スケール値2と列3のグ
レイ・スケール値5及び6とにより表わされ、一方グレ
イ・スケール・パターン30において部分71は、列3のグ
レイ・スケール値7により表わされる。そして部分72は
グレイ・スケール・パターン29においては、列4のグレ
イ・スケール値2及び1と列5のグレイ・スケール値4
及び2とにより表わされ、一方グレイ・スケール・パタ
ーン30において部分71は、行4のグレイ・スケール値3
及び4により表わされる。本発明に従って発生されたグ
レイ・スケール・パターン30が、従来のグレイ・スケー
ル・パターン29に比べて秀れた読取り易さを呈すること
が明らかである。
Comparing the gray scale pattern 29 and the gray scale pattern 30 by observing the two portions 71 and 72 of the letter B, the portion 71 in the gray scale pattern 29 shows that the gray scale value 2 in column 2 is 2. And column 3 gray scale values 5 and 6 while portion 71 in gray scale pattern 30 is represented by column 3 gray scale value 7. And part 72 is, in the gray scale pattern 29, the gray scale values 2 and 1 in column 4 and the gray scale value 4 in column 5.
, And 2 while the portion 71 in the gray scale pattern 30 has a gray scale value of 3 in row 4
And 4 are represented. It is clear that the gray scale pattern 30 generated according to the present invention exhibits superior readability as compared to the conventional gray scale pattern 29.

第3図のブロック31、32、33及び34により行なわれる動
作の目的は、高解像度のオリジナル文字イメージ上でサ
ンプリング・パターン21を全体的にシフト即ち動かすこ
とである。サンプリング・パターン21の全体的なシフト
においては、初期位置で文字の黒い線内を通るサンプリ
ング・ウィンドウの境界線は、文字の黒い線の主要部分
をサンプリング・ウィンドウの境界線相互間に位置づけ
るようにシフトされる。第7図及び第8図を参照する
に、第7図のようにサンプリング・パターン21の全体的
なシフトの前には境界線73は文字Bの垂直線である部分
71内を通過しており、これにより部分71はグレイ・スケ
ール・パターン29により示される如く、読取りにくい。
The purpose of the operations performed by blocks 31, 32, 33 and 34 of FIG. 3 is to shift the sampling pattern 21 entirely on the high resolution original character image. In the overall shift of sampling pattern 21, the boundaries of the sampling windows that pass through the black lines of the characters in the initial position are such that the major part of the black lines of the characters are located between the boundaries of the sampling windows. Be shifted. Referring to FIGS. 7 and 8, the boundary 73 is the vertical line of the letter B before the overall shift of the sampling pattern 21 as shown in FIG.
It passes through 71, which makes portion 71 difficult to read, as shown by gray scale pattern 29.

本発明に従うサンプリング・パターン21の全体的なシフ
ト後では、文字Bの部分71は、第8図に示す如くサンプ
リング・パターン21の境界線73及び74の間に位置決めさ
れ、その結果部分71は、グレイ・スケール・パターン30
により示される如く読取り易くなる。
After the overall shifting of the sampling pattern 21 according to the invention, the portion 71 of the letter B is positioned between the boundaries 73 and 74 of the sampling pattern 21 as shown in FIG. 8, so that the portion 71 is Gray scale pattern 30
Makes it easier to read.

第3図のブロック31乃至34の動作においては、全行若し
くは全列の中心部分の一群のペル・ライン上の黒ペルの
総数が最大値であるX若しくはY方向の最適即ち較正位
置を検出するために全体のサンプリング・パターンがオ
リジナル文字イメージ上でシフトされる。
In the operation of blocks 31-34 of FIG. 3, the optimum or calibrated position in the X or Y direction is detected in which the total number of black pels on a group of pel lines in the central portion of all rows or columns is maximum. Therefore, the entire sampling pattern is shifted on the original character image.

文字は、例えば英数字のように水平及び垂直方向の線が
少ない第1群の文字と、例えば漢字のように水平及び垂
直方向の線が多い第2群の文字とに大きく分類されるこ
とができる。
Characters are roughly classified into a first group of characters, such as alphanumeric characters, which has few horizontal and vertical lines, and a second group of characters, such as Chinese characters, which have many horizontal and vertical lines. it can.

第3図のブロック31乃至34の動作により達成されるサン
プリン・パターン21の全体的なシフトは第1群の文字の
読取り性を改善し、そして例えば漢字のような第2群の
文字の読取り性は、ブロック31及び34の動作に加えて、
次に第9図乃至第13図を参考して説明する動作により更
に改善される。
The overall shift of the sample pattern 21 achieved by the operations of blocks 31-34 in FIG. 3 improves the readability of the first group of characters and the readability of the second group of characters, eg, Kanji. In addition to the operations of blocks 31 and 34,
Next, the operation will be further improved by the operation described with reference to FIGS. 9 to 13.

このため、第3図のブロック35は、処理されつつある文
字が第2グループの文字例えば漢字であるか否かを調べ
る。前述の英数字Bの場合にはブロック35の答はノーで
あり、そして動作はブロック36に進み、ここでマイクロ
プロセッサ3は第6図に示すようにオリジナル文字イメ
ージ上の較正位置Sx、Syにサンプリング・パターン21を
位置決めし、そしてサンプリング・パターン21の各サン
プリング・ウィンドウにより囲まれる黒ペルの数を計数
し、そして各サンプリング・ウィンドウの黒ペルの数
に、異なるグレイ・スケール値即ちレベル0−7のうち
の1つを割当て、これによりオリジナル文字イメージB
を表わす第8図のグレイ・スケール・パターン30が発生
される。そしてこのグレイ・スケール・パターン30は第
1図のバッファ・メモリ6に記憶され、そして表示装置
若しくはプリンタに供給される。
Thus, block 35 of FIG. 3 checks to see if the character being processed is a second group of characters, such as Kanji. In the case of the aforementioned alphanumeric character B, the answer to block 35 is no, and the operation proceeds to block 36, where the microprocessor 3 moves to the calibration position Sx, Sy on the original character image as shown in FIG. Positioning the sampling pattern 21 and counting the number of black pels surrounded by each sampling window of the sampling pattern 21, and varying the number of black pels in each sampling window to a different gray scale value or level 0- Assign one of the seven, so that the original character image B
The gray scale pattern 30 of FIG. The gray scale pattern 30 is then stored in the buffer memory 6 of FIG. 1 and supplied to the display device or printer.

第9図乃至第13図に示す動作は、第6図の較正位置Sx、
Syに位置づけられているサンプリング・ウィンドウ21の
うちの特定な選択された行又は列の位置をシフトする。
The operation shown in FIGS. 9 to 13 is the same as the calibration position Sx of FIG.
Shift the position of the particular selected row or column of the sampling window 21 located at Sy.

第10図に示す如く漢字に対するサンプリング・パターン
21の全体的なシフトが、第3図のブロック31乃至34の動
作により終了され、そして第10図のサンプリング・パタ
ーン21が較正位置Sx、Syに位置決めされ終えているとす
る。この場合、第3図のブロック35の答はイエスであ
り、そして動作は第9図のブロック91に進み、ここでマ
イクロプロセッサ3は、第6図のサンプリング・パター
ン21の較正位置Sx、Syを選択する。
Sampling pattern for Kanji as shown in Figure 10.
It is assumed that the overall shift of 21 has been completed by the operation of blocks 31-34 of FIG. 3 and that the sampling pattern 21 of FIG. 10 has been positioned at the calibration positions Sx, Sy. In this case, the answer to block 35 in FIG. 3 is yes, and operation proceeds to block 91 in FIG. 9 where the microprocessor 3 determines the calibration positions Sx, Sy of the sampling pattern 21 in FIG. select.

動作はブロック92に進み、ここでマイクロプロセッサ3
は、サンプリング・パターン21の各行及び列毎の中心部
分を通る一群のペル・ラインを選択し、そして較正位置
Sx、Syにあるサンプリング・パターン21の行及び列毎の
5本のペル・ライン上の黒ペルの数を計数する。各行及
び列で検出された黒ペルの数が第10図に示されている。
次に、マイクロプロセッサ3は、N行の黒ペルの数をN
−1行の黒ペルの数及びN+1行の黒ペルの数と夫々比
較し、そしてN列の黒ペルの数をN−1列の黒ペルの数
及びN+1列の黒ペルの数と夫々比較し、隣り合うもの
の黒ペルの数より大きい黒ペルの数を有する列又は行を
検出する。
Operation proceeds to block 92, where microprocessor 3
Selects a group of pel lines through the central portion of each row and column of sampling pattern 21, and
Count the number of black pels on the 5 pel lines per row and column of sampling pattern 21 in Sx, Sy. The number of black pels detected in each row and column is shown in FIG.
Next, the microprocessor 3 sets the number of black pels in N rows to N
-Compare the number of black pels in row -1 and the number of black pels in row N + 1 respectively, and compare the number of black pels in row N with the number of black pels in row N-1 and the number of black pels in row N + 1 respectively Then, it detects a column or row having a number of black pels that is greater than the number of black pels of its neighbors.

サンプリング・パターン21の外側の黒ペルの数を零とす
る。第10図に示す例では、マイクロプロセッサ3は、第
10図の矢印で示す如く、行1、4及び7と列2及び7と
を検出する。行1は、サンプリング・パターン21の外側
にある隣接行の値0そして行2の値60よりも大きな値15
0、即ち黒ペルの数を有する。行4は、行3の値60及び
行5の値60よりも大きな値100を有する。行7は、行6
の値60及び、行8の値30よりも大きな値110を有する。
列2は、列1の値0及び列3の値70よりも大きな値260
を有する。そして列7は、列6の値70及び列8の値0よ
りも大きな値240を有する。従って、マイクロプロセッ
サ3は、シフトされるべき候補として列2及び7と行
1、4及び7を選択する。
The number of black pels outside the sampling pattern 21 is zero. In the example shown in FIG. 10, the microprocessor 3 is
Detect rows 1, 4 and 7 and columns 2 and 7 as indicated by the arrows in FIG. Row 1 has a value 15 greater than the value 0 of the adjacent row and the value 60 of row 2 outside the sampling pattern 21.
It has 0, ie the number of black pels. Row 4 has a value 100 which is greater than the value 60 in row 3 and the value 60 in row 5. Line 7 is line 6
Value 60 and a value 110 greater than the value 30 in row 8.
Column 2 has a value greater than the value 0 in column 1 and the value 70 in column 3 260
Have. And column 7 has a value 240 which is greater than the value 70 in column 6 and the value 0 in column 8. Therefore, microprocessor 3 selects columns 2 and 7 and rows 1, 4 and 7 as candidates to be shifted.

動作は第9図のブロック93に進み、ここでマイクロプロ
セッサ3は、ブロック92で選択された行1、4及び7と
列2及び7の位置をシフトする。このシフト動作をマイ
クロプロセッサ3は、5本のペル・ラインの位置をオリ
ジナル文字イメージ上で、行若しくは列の中心を通過す
る位置0から位置+1、+2、−1及び−2にシフトす
ることによって行ない、そして各シフト位置における5
本のペル・ライン上の黒ペルの数を計数する。第11図
は、第10図に示すサンプリグ・パターン21の行1の列2
及び3のサンプリング・ウィンドウを示す。この第11図
の列2を参照するに、一群即ち5本のペル・ラインは、
最初位置0に位置決めされ、そして位置+1、+2、−
1及び−2へ夫々シフトされ、そして位置+2、+1、
0、−1及び−2の夫々における5本のペル・ライン上
の黒ペルの数が計数され、そして第1図のレジスタ7に
記憶される。列2に対する最大値はシフト位置+1及び
+2で得られることが第11図から明らかである。最大値
を生じる位置+1及び+2のうち、元の位置0に最も近
い位置+1が選択され、そしてレジスタ7に記憶され
る。これと同じ動作が列7について行なわれ、そしてマ
イクロプロセッサ3は、シフト位置−2が最大値を発生
することを見い出しそして列7及び位置−2をレジスタ
7に記憶する。行1については第11図を再び参照して説
明する。第11図において、シフト位置−2が行1に対し
て最大値を発生することが明らかである。そして行1に
対する位置−2がレジスタ7に記憶される。
Operation proceeds to block 93 of FIG. 9 where microprocessor 3 shifts the positions of rows 1, 4 and 7 and columns 2 and 7 selected in block 92. This shift operation is performed by the microprocessor 3 by shifting the positions of the five pel lines from the position 0, which passes through the center of the row or column, to the positions +1, +2, -1, and -2 on the original character image. Done and 5 at each shift position
Count the number of black pels on the pel line of the book. FIG. 11 shows row 1 column 2 of the sampling pattern 21 shown in FIG.
And 3 sampling windows are shown. Referring to column 2 of this FIG. 11, a group or five pel lines are
Initially located at position 0 and then positions +1, +2,-
Shifted to 1 and -2 respectively, and position +2, +1,
The number of black pels on the 5 pel lines at each of 0, -1 and -2 is counted and stored in register 7 of FIG. It is clear from FIG. 11 that the maximum values for column 2 are obtained at shift positions +1 and +2. Of the positions +1 and +2 that produce the maximum value, the position +1 closest to the original position 0 is selected and stored in register 7. The same operation is performed for column 7, and microprocessor 3 finds that shift position-2 produces the maximum value and stores column 7 and position-2 in register 7. Row 1 will be described with reference to FIG. 11 again. In FIG. 11 it is clear that shift position -2 produces the maximum value for row 1. Then position-2 for row 1 is stored in register 7.

同様にしてマイクロプロセッサ3は、行4に対しては位
置0及び−1において最大値を見い出し、そして行7に
対しては位置−1、0及び+1で最大値を見い出す。元
の位置0が最大値を発生する場合には、この元の位置0
が選択され、従ってマイクロプロセッサ3は、第1図に
示す如くレジスタ7の行4及び行7のシフトの位置に位
置0を記憶する。
Similarly, microprocessor 3 finds the maximum at position 0 and -1 for row 4 and the maximum at position -1, 0 and +1 for row 7. If the original position 0 produces the maximum value, this original position 0
Is selected, so that the microprocessor 3 stores the position 0 in the shift positions of row 4 and row 7 of register 7, as shown in FIG.

このようにして、マイクロプロセッサ3は、サンプリン
グ・パターン21のうちブロック92で選択された行又は列
内の一群のペル・ラインをシフトし、各位置の黒ペルの
数を計数して、行若しくは列のシフト量を決定する。
In this way, the microprocessor 3 shifts the group of pel lines in the row or column selected in block 92 of the sampling pattern 21 and counts the number of black pels at each position to determine the row or column. Determines the amount of column shift.

行4及び行7のシフト量0は、これらの行がシフトされ
ないことを表わす。
A shift amount of 0 for rows 4 and 7 indicates that these rows are not shifted.

動作はブロック94に進み、ここでマイクロプロセッサ3
は、第1図のレジスタ7のシフト値に従って行1、列2
及び列7をシフトする。更に具体的に言うと、マイクロ
プロセッサ3は、第12図に示す如く、サンプリング・パ
ターン21の行1を下方に2ペル・ライン分だけシフト
し、そして隣りの行2を1ペル・ラインだけ下方にシフ
トする。マイクロプロセッサ3は、第12図に示すように
列2を1ペル・ラインだけ右方向にシフトする。又、マ
イクロプロセッサ3は、第12図に示すように、列7を左
方向に2ペル・ラインだけシフトし、そして隣接する列
6及び8を左方向に1ペル・ラインだけシフトする。隣
接する行又は列を同方向にシフトする目的は、文字イメ
ージの歪みを少なくするためである。
Operation proceeds to block 94 where microprocessor 3
Is in row 1, column 2 according to the shift value of register 7 in FIG.
And column 7 are shifted. More specifically, the microprocessor 3 shifts row 1 of the sampling pattern 21 downward by 2 pel lines, and the adjacent row 2 downward by 1 pel line, as shown in FIG. Shift to. Microprocessor 3 shifts column 2 to the right by one pel line as shown in FIG. Microprocessor 3 also shifts column 7 leftward by 2 pel lines and adjacent columns 6 and 8 leftward by 1 pel line, as shown in FIG. The purpose of shifting adjacent rows or columns in the same direction is to reduce the distortion of the character image.

動作は第9図のブロック95に進み、ここでマイクロプロ
セッサ3は、サンプリング・パターン21をオリジナル文
字イメージ上で、第3図のブロック34で決定された較正
位置Sx、Syに位置決めし、第12図に示すように行及び列
をシフトし、各サンプリング・ウィンドウにより囲まれ
た黒ペルの数を計数し、そして各サンプリング・ウィン
ドウの黒ペルの数に異なるグレイ・スケール値即ちレベ
ル0−7のうちの1つを割り当て、それにより第12図に
示す如き、オリジナルの漢字イメージを表わすグレイ・
スケール・パターン41が発生される。そして、このグレ
イ・スケール・パターン41は第1図のバッファ・メモリ
6に記憶され、そして表示装置若しくはプリンタに供給
される。
Operation proceeds to block 95 in FIG. 9 where microprocessor 3 positions sampling pattern 21 on the original character image at the calibration positions Sx, Sy determined in block 34 in FIG. Shift the rows and columns as shown, count the number of black pels surrounded by each sampling window, and change the number of black pels in each sampling window to different gray scale values, levels 0-7. One of them is assigned so that the gray image representing the original Kanji image, as shown in FIG.
A scale pattern 41 is generated. The gray scale pattern 41 is stored in the buffer memory 6 shown in FIG. 1 and supplied to the display device or printer.

第13図は、第3図のブロック34で検出された較正位置S
x、Syに位置づけされ、但し第12図に示す特定な行及び
列のシフトを伴なわないサンプリング・パターン21を用
いることにより発生されたグレイ・スケール・パターン
42を示す。
FIG. 13 shows the calibration position S detected in block 34 of FIG.
Gray scale pattern generated by using the sampling pattern 21 located in x, Sy, but without the specific row and column shifts shown in FIG.
42 is shown.

グレイ・スケール・パターン41とグレイ・スケール・パ
ターン42を比較すると、漢字の一番上の水平線、左の垂
直線及び右の垂直線の読み取り易さが著しく改善されて
いることが明らかである。
Comparing the gray scale pattern 41 and the gray scale pattern 42, it is clear that the readability of the top horizontal line, the left vertical line and the right vertical line of the Chinese character is significantly improved.

第9図の動作においては、較正位置にあるサンプリング
・パターンの選択された行若しくは列の位置は、この選
択された行若しくは列の黒ペルの数が最大値である位置
にシフトされる。
In the operation of FIG. 9, the position of the selected row or column of the sampling pattern in the calibration position is shifted to the position where the number of black pels in this selected row or column is maximum.

E.発明の効果 本発明は、高解像度のオリジナル文字イメージから発生
されるグレイ・スケール・パターンの品質及び低い読取
性を改善する。
E. Effect of the Invention The present invention improves the quality and poor readability of gray scale patterns generated from high resolution original character images.

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

第1図は本発明に従う動作を行なうブロック図、第2図
はバッファ・メモリに記憶されたオリジナル文字イメー
ジを示す図、第3図は本発明に従うサンプリング・パタ
ーン全体を動かす動作のフローチャート、第4A図、第4B
図、第5A図及び第5B図は本発明に従うサンプリング・パ
ターンのシフトを示す図、第6図はサンプリング・パタ
ーンの初期位置及び本発明に従う較正位置を示す図、第
7図は従来技術のサンプリング・パターンの位置及びグ
レイ・スケール・パターンを示す図、第8図は本発明に
従う較正位置に位置決めされたサンプリング・パターン
及びグレイ・スケール・パターンを示す図、第9図は本
発明に従いサンプリング・パターンの特定な行若しくは
列を動かす動作のフローチャート、第10図及び第11図は
本発明に従う特定な行若しくは列を選択的に動かす動作
を示す図、第12図及び第13図は本発明に従うサンプリン
グ・パターン及びグレイ・スケール・パターンを示す
図、第14図は従来技術の漢字パターン及びグレイ・スケ
ール・パターンを示す図。 1……フォント・メモリ、2……バッファ・メモリ、3
……マイクロプロセッサ、4……ヒストグラム、5……
レジスタ、6……バッファ・メモリ、7……レジスタ。
FIG. 1 is a block diagram for performing an operation according to the present invention, FIG. 2 is a view showing an original character image stored in a buffer memory, and FIG. 3 is a flow chart of an operation for moving an entire sampling pattern according to the present invention, 4A. Figure, 4B
FIGS. 5A and 5B show the shift of the sampling pattern according to the invention, FIG. 6 shows the initial position of the sampling pattern and the calibration position according to the invention, and FIG. 7 shows the sampling of the prior art. Pattern position and gray scale pattern, FIG. 8 shows sampling pattern and gray scale pattern positioned in a calibration position according to the invention, FIG. 9 shows sampling pattern according to the invention 10 and 11 are flowcharts showing the operation of moving a specific row or column of the present invention, FIGS. 10 and 11 are diagrams showing the operation of selectively moving a specific row or column according to the present invention, and FIGS. 12 and 13 are samplings according to the present invention.・ Pattern and gray scale pattern are shown. Fig. 14 is a diagram showing a conventional kanji pattern and gray scale pattern. 1 ... Font memory, 2 ... Buffer memory, 3
...... Microprocessor, 4 ...... Histogram, 5 ……
Register, 6 ... Buffer memory, 7 ... Register.

Claims (9)

【特許請求の範囲】[Claims] 【請求項1】高解像度のオリジナル文字イメージを表わ
す低解像度のグレイ・スケール・パターンを発生する方
法において、 上記低解像度及び高解像度の比により決定される数の行
及び列に配列された複数個のサンプリング・ウィンドウ
を有するサンプリング・パターンを発生し、 上記オリジナル文字イメージ上の列方向に沿って予定距
離だけ離された複数位置に上記サンプリング・パターン
を逐次的に位置決めし、上記位置の夫々における上記サ
ンプリング・パターンの各行の所定部分の黒ペル数を加
えて全行の黒ペルの総数を計数し、 上記位置の夫々における上記黒ペルの総数を比較して最
大黒ペル数が検出された位置を検出し、 上記オリジナル文字イメージ上で上記検出位置に上記サ
ンプリング・パターンを位置決めし、 上記サンプリング・パターンの各サンプリング・ウィン
ドウ内の黒ペルの数を計数し、各サンプリング・ウィン
ドウに異なるグレイ・スケール値の1つを割当てること
より成る上記グレイ・スケール・パターンを発生する方
法。
1. A method of generating a low resolution gray scale pattern representing a high resolution original character image, comprising a plurality of rows and columns arranged in a number determined by the ratio of the low resolution and the high resolution. Generating a sampling pattern having a sampling window of, and sequentially positioning the sampling pattern at a plurality of positions separated by a predetermined distance along the column direction on the original character image, and the sampling pattern at each of the positions. The total number of black pels in all the rows is counted by adding the number of black pels in a predetermined part of each row of the sampling pattern, and the total number of black pels in each of the above positions is compared to determine the position where the maximum number of black pels is detected. The sampling pattern is detected, and the sampling pattern is positioned at the detection position on the original character image. How to generate the gray scale pattern consists in counting the number of black pels in each sampling window of the ring pattern, assign one of different gray scale values to each sampling window.
【請求項2】上記サンプリング・ウィンドウの中心部分
に位置づけられた一群のペル・ラインが上記行の黒ペル
の数を計数するのに用いられて成る特許請求の範囲第
(1)項記載の方法。
2. A method according to claim 1 wherein a group of pel lines located in the central portion of said sampling window is used to count the number of black pels in said row. .
【請求項3】上記サンプリング・パターンは、1ペル・
ラインだけ離された複数の位置に逐次的に位置決めされ
て成る特許請求の範囲第(1)項記載の方法。
3. The sampling pattern is one pel
A method according to claim (1), wherein the method is performed by sequentially positioning at a plurality of positions separated by a line.
【請求項4】高解像度のオリジナル文字イメージを表わ
す低解像度のグレイ・スケール・パターンを発生する方
法において、 上記低解像度及び高解像度の比により決定される数の行
及び列に配列された複数個のサンプリング・ウィンドウ
を有するサンプリング・パターンを発生し、 上記オリジナル文字イメージ上の行方向及び列方向に沿
って予定距離だけ離された複数位置に上記サンプリング
・パターンを逐次的に位置決めし、上記位置の夫々にお
ける、上記サンプリング・パターンの各行の所定部分の
黒ペル数を加えて全行の黒ペルの総数、及び各列の所定
部分の黒ペルの数を加えて全列の黒ペルの総数を計数
し、 上記位置の夫々における上記黒ペルの総数を比較して、
上記全行の黒ペルの総数が最大である上記列方向の位置
及び上記全列の黒ペルの総数が最大である上記行方向の
位置を検出し、 上記オリジナル文字パターン上で上記検出位置に上記サ
ンプリング・パターンを位置決めし、 上記サンプリング・パターンの各サンプリング・ウィン
ドウの黒ペルの数を計数し上記各サンプリング・ウィン
ドウに異なるグレイ・スケール値の1つを割当てること
より成る上記グレイ・スケール・パターンを発生する方
法。
4. A method of generating a low resolution gray scale pattern representing a high resolution original character image, wherein a plurality of rows and columns are arranged in a number determined by the ratio of the low resolution and the high resolution. Generating a sampling pattern having a sampling window of, and sequentially positioning the sampling pattern at a plurality of positions separated by a predetermined distance along a row direction and a column direction on the original character image, Counting the total number of black pels in all rows by adding the number of black pels in each row of the sampling pattern, and the total number of black pels in all columns in each row, and the number of black pels in each row Then, compare the total number of black pels in each of the above positions,
The position in the column direction in which the total number of black pels in all the rows is the maximum and the position in the row direction in which the total number of black pels in the all columns is the maximum are detected, and the position is detected at the detection position on the original character pattern. Locating the sampling pattern, counting the number of black pels in each sampling window of the sampling pattern and assigning each of the sampling windows one of a different gray scale value How it happens.
【請求項5】上記サンプリング・ウィンドウの中心部分
に位置づけられた一群のペル・ラインが、上記行及び列
の黒ペルの数を計数するのに用いられるのに用いられて
成る特許請求の範囲第(4)項記載の方法。
5. A group of pel lines located in the central portion of the sampling window is used to count the number of black pels in the rows and columns. The method according to item (4).
【請求項6】上記サンプリング・パターンは、1ペル・
ラインだけ離された複数の位置に逐次的に位置決めされ
て成る特許請求の範囲第(4)項記載の方法。
6. The sampling pattern is one pel
A method according to claim (4), wherein the method is sequentially positioned at a plurality of positions separated by a line.
【請求項7】高解像度のオリジナル文字イメージを表わ
す低解像度のグレイ・スケール・パターンを発生する方
法において、 上記低解像度及び高解像度の比により決定される数の行
及び列に配列された複数個のサンプリング・ウィンドウ
を有するサンプリング・パターンを発生し、 上記オリジナル文字イメージ上の行方向及び列方向に沿
って予定距離だけ離された複数位置に上記サンプリング
・パターンを逐次的に位置決めし、上記位置の夫々にお
ける、上記サンプリング・パターンの各行の所定部分の
黒ペル数を加えて全行の黒ペルの総数、及び各列の所定
部分の黒ペルの数を加えて全列の黒ペルの総数を計数
し、 上記位置の夫々における上記黒ペルの総数を比較して、
上記全行の黒ペルの総数が最大である上記列方向の位置
及び上記全列の黒ペルの総数が最大である上記行方向の
位置を検出し、 上記オリジナル文字パターン上で上記検出位置に上記サ
ンプリング・パターンを位置決めし、 上記サンプリング・パターンの各行及び列毎の黒ペルの
数を計数し、 各行の黒ペルの数を比較して隣接行よりも多い黒ペルを
有する行を選択し、各列の黒ペルの数を比較して隣接列
よりも多い黒ペルを有する列を選択し、 上記オリジナル文字イメージ上の上記行方向及び上記列
方向に沿って予定距離だけ離された複数位置に、上記選
択された行及び列を逐次的に位置決めし、各位置におけ
る上記行の黒ペルの数及び上記列の黒ペルの数を計数
し、 上記各位置における上記選択された行の黒ペルの数を比
較して黒ペルの数が最大となる列方向の位置を検出し、
上記各位置における上記選択された列の黒ペルの数を比
較して黒ペルの数が最大となる行方向の位置を検出し、 上記選択された行及び列の位置を上記検出された位置に
夫々シフトし、 上記サンプリング・パターンの各サンプリング・ウィン
ドウ内の黒ペルの数を計数して各サンプリング・ウィン
ドウに異なるグレイ・スケール値の1つを割当てること
より成る上記グレイ・スケール・パターンを発生する方
法。
7. A method of generating a low resolution gray scale pattern representing a high resolution original character image, wherein a plurality of rows and columns are arranged in a number determined by the ratio of the low resolution and the high resolution. Generating a sampling pattern having a sampling window of, and sequentially positioning the sampling pattern at a plurality of positions separated by a predetermined distance along a row direction and a column direction on the original character image, Counting the total number of black pels in all rows by adding the number of black pels in each row of the sampling pattern, and the total number of black pels in all columns in each row, and the number of black pels in each row Then, compare the total number of black pels in each of the above positions,
The position in the column direction in which the total number of black pels in all the rows is the maximum and the position in the row direction in which the total number of black pels in the all columns is the maximum are detected, and the position is detected at the detection position on the original character pattern. Position the sampling pattern, count the number of black pels in each row and column of the sampling pattern, compare the number of black pels in each row, and select the row with more black pels than the adjacent row. Selecting columns having more black pels than adjacent columns by comparing the number of black pels in the columns, and at a plurality of positions separated by a predetermined distance along the row direction and the column direction on the original character image, Positioning the selected rows and columns sequentially, counting the number of black pels in the row at each position and the number of black pels in the column, and counting the number of black pels in the selected row at each position. Compare the black pel's There detecting the position of the column having the maximum
The number of black pels in the selected column at each position is compared to detect the position in the row direction where the number of black pels is maximum, and the position of the selected row and column is set to the detected position. Generating the gray scale pattern comprising shifting each and counting the number of black pels in each sampling window of the sampling pattern and assigning each sampling window one of a different gray scale value. Method.
【請求項8】上記サンプリング・ウィンドウの中心部分
に位置づけられた一群のペル・ラインが上記行及び列の
黒ペルの数を計数するのに用いられて成る特許請求の範
囲第(7)項記載の方法。
8. A method according to claim 7 wherein a group of pel lines located in the central portion of the sampling window is used to count the number of black pels in the rows and columns. the method of.
【請求項9】上記サンプリング・パターンは1ペル・ラ
インだけ離された複数の位置に逐次的に位置づけられて
成る特許請求の範囲第(7)項記載の方法。
9. The method of claim 7 wherein the sampling patterns are sequentially positioned at a plurality of positions separated by one pel line.
JP2195101A 1990-07-25 1990-07-25 How to generate a gray scale pattern Expired - Lifetime JPH077256B2 (en)

Priority Applications (4)

Application Number Priority Date Filing Date Title
JP2195101A JPH077256B2 (en) 1990-07-25 1990-07-25 How to generate a gray scale pattern
EP91306033A EP0468652B1 (en) 1990-07-25 1991-07-03 Image processing apparatus and method
DE69109952T DE69109952D1 (en) 1990-07-25 1991-07-03 Process and device for image processing.
US07/734,655 US5202936A (en) 1990-07-25 1991-07-23 Method for generating a gray-scale pattern

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2195101A JPH077256B2 (en) 1990-07-25 1990-07-25 How to generate a gray scale pattern

Publications (2)

Publication Number Publication Date
JPH0484194A JPH0484194A (en) 1992-03-17
JPH077256B2 true JPH077256B2 (en) 1995-01-30

Family

ID=16335539

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2195101A Expired - Lifetime JPH077256B2 (en) 1990-07-25 1990-07-25 How to generate a gray scale pattern

Country Status (4)

Country Link
US (1) US5202936A (en)
EP (1) EP0468652B1 (en)
JP (1) JPH077256B2 (en)
DE (1) DE69109952D1 (en)

Families Citing this family (18)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CA2034617C (en) * 1990-01-19 1996-12-31 Masayuki Kimura Data processing system
US5506917A (en) * 1990-07-13 1996-04-09 Nippon Telegraph And Telephone Corporation Thresholding method for segmenting gray scale image, method for determining background concentration distribution, and image displacement detection method
US5459587A (en) * 1991-05-02 1995-10-17 Minolta Camera Kabushiki Kaisha Processing apparatus capable of discriminating between pseudo half-tone/non-half-tone image data based upon the number of adjacencies of similar type of pixels within a block
US5592572A (en) * 1993-11-05 1997-01-07 The United States Of America As Represented By The Department Of Health And Human Services Automated portrait/landscape mode detection on a binary image
DE59307951D1 (en) * 1993-11-18 1998-02-12 Adobe Systems Inc Process for displaying text on screen devices
US6023535A (en) * 1995-08-31 2000-02-08 Ricoh Company, Ltd. Methods and systems for reproducing a high resolution image from sample data
US5929866A (en) * 1996-01-25 1999-07-27 Adobe Systems, Inc Adjusting contrast in anti-aliasing
US6563502B1 (en) 1999-08-19 2003-05-13 Adobe Systems Incorporated Device dependent rendering
US7006107B2 (en) 2003-05-16 2006-02-28 Adobe Systems Incorporated Anisotropic anti-aliasing
US7002597B2 (en) 2003-05-16 2006-02-21 Adobe Systems Incorporated Dynamic selection of anti-aliasing procedures
US7333110B2 (en) 2004-03-31 2008-02-19 Adobe Systems Incorporated Adjusted stroke rendering
US7639258B1 (en) 2004-03-31 2009-12-29 Adobe Systems Incorporated Winding order test for digital fonts
US7719536B2 (en) 2004-03-31 2010-05-18 Adobe Systems Incorporated Glyph adjustment in high resolution raster while rendering
US7580039B2 (en) 2004-03-31 2009-08-25 Adobe Systems Incorporated Glyph outline adjustment while rendering
US7602390B2 (en) 2004-03-31 2009-10-13 Adobe Systems Incorporated Edge detection based stroke adjustment
JP4208200B2 (en) * 2004-09-28 2009-01-14 シャープ株式会社 pointing device
JP2007028362A (en) * 2005-07-20 2007-02-01 Seiko Epson Corp Apparatus and method for processing image data with mixed background image and target image
US8132036B2 (en) * 2008-04-25 2012-03-06 International Business Machines Corporation Reducing latency in data transfer between asynchronous clock domains

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US4490851A (en) * 1982-04-16 1984-12-25 The United States Of America As Represented By The Secretary Of The Army Two-dimensional image data reducer and classifier
US4688088A (en) * 1984-04-20 1987-08-18 Canon Kabushiki Kaisha Position detecting device and method
US4829587A (en) * 1987-03-02 1989-05-09 Digital Equipment Corporation Fast bitonal to gray scale image scaling
US4945351A (en) * 1988-05-23 1990-07-31 Hewlett-Packard Company Technique for optimizing grayscale character displays

Also Published As

Publication number Publication date
JPH0484194A (en) 1992-03-17
US5202936A (en) 1993-04-13
EP0468652A2 (en) 1992-01-29
EP0468652B1 (en) 1995-05-24
DE69109952D1 (en) 1995-06-29
EP0468652A3 (en) 1992-09-30

Similar Documents

Publication Publication Date Title
JPH077256B2 (en) How to generate a gray scale pattern
EP1174854B1 (en) Display equipment, display method, and storage medium storing a display control program using sub-pixels
US5526476A (en) Method and apparatus for generating character patterns expressed by coordinates of a coordinate system
EP0549351A2 (en) Image processing method and apparatus
US6496191B2 (en) Method and apparatus for character font generation within limitation of character output media and computer readable storage medium storing character font generation program
JPH087784B2 (en) How to improve the pixel image quality of text
TW200306524A (en) Character display apparatus and character display method, control program for controlling the character display method and recording medium recording the control program
JPH0683356B2 (en) Image information recording device
US5105471A (en) Apparatus for converting character outline data into dot data, having means for correcting reproduction width of strokes of rotated or italicized characters
CN1083605A (en) Graphic character grating method in conjunction with non-overlapping technology and grid apolegamy technology
JPS6156665B2 (en)
US7532216B2 (en) Method of scaling a graphic character
EP0415742A2 (en) Image processing apparatus
US5671295A (en) Apparatus for converting image outline data into dot data representative of dots to be formed
JP2856420B2 (en) Character pattern data generation method
GB1558676A (en) Symbol recognition enhancing apparatus
EP0810549B1 (en) Method and apparatus for halftoning process
CN106886777A (en) A kind of character boundary determines method and device
US5644335A (en) Method for the graphic reproduction of a symbol with an adjustable scale and position
JPS6359272A (en) Picture processor
CN112672073B (en) Method, system and equipment for amplifying sub-pixel characters in video image transmission
CN116012246A (en) Multi-gray-scale dithering algorithm for improving EPD gray scale
US20050219633A1 (en) Image processing method for reducing jaggy effect
JP3248264B2 (en) Image output device
JP4122533B2 (en) Image forming apparatus