JP2854179B2 - Optical printer - Google Patents

Optical printer

Info

Publication number
JP2854179B2
JP2854179B2 JP3331802A JP33180291A JP2854179B2 JP 2854179 B2 JP2854179 B2 JP 2854179B2 JP 3331802 A JP3331802 A JP 3331802A JP 33180291 A JP33180291 A JP 33180291A JP 2854179 B2 JP2854179 B2 JP 2854179B2
Authority
JP
Japan
Prior art keywords
pattern
character
printed
pixels
pattern matching
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
JP3331802A
Other languages
Japanese (ja)
Other versions
JPH05167850A (en
Inventor
智博 及川
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Consejo Superior de Investigaciones Cientificas CSIC
Original Assignee
Consejo Superior de Investigaciones Cientificas CSIC
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 Consejo Superior de Investigaciones Cientificas CSIC filed Critical Consejo Superior de Investigaciones Cientificas CSIC
Priority to JP3331802A priority Critical patent/JP2854179B2/en
Publication of JPH05167850A publication Critical patent/JPH05167850A/en
Application granted granted Critical
Publication of JP2854179B2 publication Critical patent/JP2854179B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Dot-Matrix Printers And Others (AREA)
  • Facsimile Image Signal Circuits (AREA)

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、例えば、コンピュータ
装置に備えられ、複数の画素で構成される文字または図
形を印字する走査式の光プリンタに関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a scanning optical printer which is provided in a computer device and prints a character or a graphic composed of a plurality of pixels.

【0002】[0002]

【従来の技術】従来、例えば、コンピュータ装置に備え
られる光プリンタでは、記録紙等に文字または図形を印
字する際に、光プリンタ内で印字する文字または図形の
曲線部や斜線部を識別、検出する、いわゆるパターンマ
ッチングと称する作業を行い、その結果を基にして、上
記曲線部や斜線部に当たる画素を、例えば、パルス幅変
調して適宜変形し、文字または図形の曲線部や斜線部が
滑らかに見えるように処理して印字する。
2. Description of the Related Art Conventionally, for example, in an optical printer provided in a computer device, when printing a character or a figure on a recording paper or the like, a curved portion or a hatched portion of the character or a figure to be printed in the optical printer is identified and detected. A so-called pattern matching operation is performed, and based on the result, the pixels corresponding to the curved portion or the hatched portion are appropriately deformed by, for example, pulse width modulation, so that the curved portion or the hatched portion of the character or graphic is smoothed. Process and print so that it looks like

【0003】この、文字または図形の曲線部や斜線部を
識別、検出する作業(以下、パターンマッチングと称す
る)は、印字する文字または図形の画像信号(ドットマ
トリックスパターン)と光プリンタ内に予め記憶(メモ
リ)されているパターンマッチング用パターンとを比
較、検討することにより行われる。
The task of identifying and detecting the curved or diagonal portions of a character or figure (hereinafter referred to as pattern matching) is performed by storing an image signal (dot matrix pattern) of the character or figure to be printed and an optical printer in advance. This is performed by comparing and examining the (memory) pattern matching pattern.

【0004】このパターンマッチングは、印字する文字
または図形の画像信号(以下、図形パターンと称する)
を、光プリンタ内に予め記憶されている複数の画素で構
成された複雑なパターンマッチング用パターン(以下、
メモリパターンと称する)と比較、検討するために、メ
モリパターンを図形パターンに重ね合わせ、この重ね合
わせたメモリパターンを図形パターン上で、光を走査す
る主走査方向に1画素ずつ移動(スキャン)させなが
ら、その都度、このメモリパターンが重ね合わされた部
分の図形パターンが、光プリンタ内に予め記憶されてい
るメモリパターンと合致しているかどうかを判断するこ
とにより行われる。
[0004] This pattern matching is based on a character or graphic image signal to be printed (hereinafter referred to as a graphic pattern).
Is a complex pattern matching pattern composed of a plurality of pixels stored in the optical printer in advance (hereinafter, referred to as
In order to compare and study, the memory pattern is superimposed on the graphic pattern, and the superimposed memory pattern is moved (scanned) by one pixel in the main scanning direction of scanning light on the graphic pattern. However, each time, it is performed by determining whether or not the graphic pattern in the portion where the memory pattern is superimposed matches a memory pattern stored in the optical printer in advance.

【0005】そして、光プリンタ内に予め記憶されてい
るメモリパターンと、このメモリパターンが重ね合わさ
れた部分の図形パターンが合致すれば、光プリンタ内に
予め記憶されているメモリパターンに従って、そのメモ
リパターンが重ね合わされた部分の図形パターンの曲線
部や斜線部に当たる画素を、例えば、パルス幅変調して
適宜変形し、上記曲線部や斜線部が滑らかに見えるよう
に処理する。そして、このようにして図形パターンの全
領域を処理した後、光プリンタは、例えば、記録紙に文
字および図形を印字する。
If the memory pattern previously stored in the optical printer matches the graphic pattern in a portion where the memory pattern is superimposed, the memory pattern is stored in accordance with the memory pattern previously stored in the optical printer. The pixel corresponding to the curved portion or the hatched portion of the graphic pattern in the portion where is overlapped is appropriately deformed by, for example, pulse width modulation, and processed so that the curved portion or the hatched portion looks smooth. After processing the entire area of the graphic pattern in this manner, the optical printer prints, for example, characters and graphics on recording paper.

【0006】[0006]

【発明が解決しようとする課題】しかしながら、このよ
うなパターンマッチングでは、光プリンタ内に予め記憶
すべきメモリパターンは膨大な数となり、また、それぞ
れのメモリパターンも複数の画素で複雑に構成されてい
るため、メモリパターンを全て記憶するためには、光プ
リンタ内に膨大な記憶領域を必要とする。
However, in such pattern matching, the number of memory patterns to be stored in the optical printer in advance becomes enormous, and each memory pattern is complicatedly constituted by a plurality of pixels. Therefore, storing an entire memory pattern requires an enormous storage area in the optical printer.

【0007】さらに、上記パターンマッチングでは、メ
モリパターンを図形パターンに重ね合わせ、この重ね合
わせたメモリパターンを図形パターン上で、光を走査す
る主走査方向に1画素ずつ移動(スキャン)させなが
ら、その都度、このメモリパターンが重ね合わされた部
分の図形パターンが、光プリンタ内に予め記憶されてい
る膨大な数のメモリパターンと合致しているかどうかを
判断しなければならないため、文字および図形の曲線部
や斜線部の処理に非常に時間がかかる。
Further, in the pattern matching, the memory pattern is superimposed on the graphic pattern, and the superimposed memory pattern is moved (scanned) one pixel at a time in the main scanning direction for scanning light on the graphic pattern. Each time it is necessary to judge whether the graphic pattern of the portion where the memory pattern is superimposed matches a huge number of memory patterns stored in the optical printer in advance, the curved portion of the character and the graphic are required. It takes a very long time to process a shaded area.

【0008】[0008]

【課題を解決するための手段】本発明の光プリンタは、
印字する文字または図形を複数の画素で構成して印字す
る光プリンタにおいて、印字する文字または図形の曲線
部や斜線部を識別、検出するパターンマッチングに用い
る複数の画素で構成されるパターンマッチング用パター
ンを記憶する記憶領域と、印字する文字または図形の曲
線部や斜線部を識別、検出するパターンマッチング回路
と、該パターンマッチング回路から入力された情報に基
づいて、上記曲線部や斜線部に当たる画素を変形して、
印字する文字または図形の曲線部や斜線部を滑らかに形
成するパルス幅変調回路とを備え、上記パターンマッチ
ング回路が、該パターンマッチング用パターンを、印字
する文字または図形の画像信号の全領域で、光を走査す
る主走査方向に1画素ずつ移動させ、その移動の前後に
おける上記領域に対応するパターンマッチング用パター
ンを構成する画素のドット配列の変化から、印字する文
字または図形の曲線部や斜線部を識別、検出するように
なっていることを特徴としている。
An optical printer according to the present invention comprises:
In an optical printer that prints a character or figure to be printed by using a plurality of pixels, a pattern matching pattern including a plurality of pixels used for pattern matching for identifying and detecting a curved portion or a hatched portion of the character or figure to be printed.
A storage area for storing down, identifying the curved portion and the hatched portion of the character or graphics to be printed, the detection pattern matching circuit
Based on the information input from the pattern matching circuit.
Zui and, by modifying the pixel which corresponds to the curved portion and the hatched portion,
A pulse width modulation circuit for smoothly forming curved or diagonal lines of characters or figures to be printed,
Circuit prints the pattern matching pattern.
The light is scanned over the entire area of the character or graphic image signal
Move one pixel at a time in the main scanning direction
Pattern matching pattern corresponding to the above area
The text to be printed is determined from the change in the dot arrangement of the pixels that
Identify and detect curved or diagonal lines of characters or figures
It is characterized by becoming.

【0009】また、上記記憶領域が、十字型に配置され
た5つの画素で構成されているパターンマッチング用パ
ターンを記憶していることを特徴としている。
Further, the storage area, Pas for pattern matching which consists of five pixels arranged in a cross shape
It is characterized by memorizing turns .

【0010】[0010]

【作用】上記構成においては、印字する文字または図形
の曲線部や斜線部を識別、検出するパターンマッチング
に用いる複数の画素で構成されるパターンマッチング用
パターンを、印字する文字または図形の画像信号の全領
域で、光を走査する主走査方向に1画素ずつ移動させ、
その移動の前後における上記領域に対応するパターンマ
ッチング用パターンを構成する画素のドット配列の変化
から、印字する文字または図形の曲線部や斜線部を識
別、検出し、上記曲線部や斜線部に当たる画素を変形し
て、印字する文字または図形の曲線部や斜線部を滑らか
に形成し、また、上記パターンマッチングに用いる複数
の画素で構成されるパターンマッチング用パターンが、
十字型に配置された5つの画素で構成されているため、
光プリンタ内に予め記憶すべきメモリパターンは僅かな
数となり、また、それぞれのメモリパターンも数個の画
素で簡単に構成されているため、メモリパターンを全て
記憶しても、光プリンタ内に僅かな記憶領域しか必要と
せず、しかも、文字および図形の曲線部や斜線部の処理
に時間がかからない。
In the above arrangement, a pattern matching pattern composed of a plurality of pixels used for pattern matching for identifying and detecting a curved portion or a diagonal portion of a character or figure to be printed is converted into an image signal of the character or figure to be printed. In the entire area, the pixel is moved one pixel at a time in the main scanning direction for scanning light,
From the change in the dot arrangement of the pixels constituting the pattern matching pattern corresponding to the above-mentioned area before and after the movement, the curved or diagonal part of the character or figure to be printed is identified and detected, and the pixels corresponding to the curved or diagonal part are detected. Is deformed to smoothly form curved portions and diagonal portions of characters or figures to be printed, and a pattern matching pattern including a plurality of pixels used for the pattern matching is
Because it is composed of five pixels arranged in a cross shape,
The number of memory patterns to be stored in advance in the optical printer is small, and each memory pattern is simply composed of a few pixels. It requires only a small storage area, and does not require much time to process curved and diagonal lines of characters and figures.

【0011】[0011]

【実施例】本発明の一実施例について図1ないし図8に
基づいて、これら図1ないし図8を参照して説明すれ
ば、以下の通りである。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS One embodiment of the present invention will be described below with reference to FIGS. 1 to 8 based on FIGS.

【0012】本発明の光プリンタでは、文字または図形
の曲線部や斜線部を識別、検出する作業(以下、パター
ンマッチングと称する)に用いられる、光プリンタ内に
予め記憶されているパターンマッチング用パターン(以
下、メモリパターンと称する)は、図1に示すように、
5つの画素で構成された十字型をしている。
In the optical printer of the present invention, a pattern matching pattern stored in advance in the optical printer, which is used for an operation of identifying and detecting a curved portion or a diagonal portion of a character or a figure (hereinafter referred to as pattern matching). (Hereinafter referred to as a memory pattern), as shown in FIG.
It has a cross shape composed of five pixels.

【0013】このメモリパターンは、5つの画素がそれ
ぞれドットを形成する(印字する画素、図1で黒丸)
か、ドットを形成しない(印字しない画素、図1で白
丸)かによって、全部で32種類(図1のア〜ミ)とな
る。
In this memory pattern, five pixels form dots (pixels to be printed, black circles in FIG. 1).
Depending on whether dots are not formed (pixels not printed, white circles in FIG. 1), there are a total of 32 types (A to M in FIG. 1).

【0014】この十字型を構成する5つの画素に対し
て、図1に示すように、光を走査する主走査方向(図1
で右側方向)に順にA、BおよびC、主走査方向と直角
方向(図1で下側方向)に順に1、2および3というア
ドレスを付し、また、アドレスA1にある画素がドット
を形成する時はA1、ドットを形成しない時は(A1)
と表現して、これらメモリパターンを文字式で表すと、
例えば、5つの画素全てがドットを形成している(図1
のア)場合は、A2B1B2B3C2となり、5つの画
素全てがドットを形成していない(図1のイ)場合は、
(A2)(B1)(B2)(B3)(C2)となる。
As shown in FIG. 1, the five pixels constituting the cross shape are scanned in the main scanning direction (light scanning) as shown in FIG.
A, B, and C are sequentially assigned in the right direction), and 1, 2, and 3 are sequentially assigned in the direction perpendicular to the main scanning direction (the lower direction in FIG. 1), and a pixel at address A1 forms a dot. A1 when performing dot formation, (A1) when not forming dots
When these memory patterns are represented by character expressions,
For example, all five pixels form a dot (see FIG. 1).
In case a), A2B1B2B3C2 results, and all five pixels do not form dots (a in FIG. 1).
(A2) (B1) (B2) (B3) (C2).

【0015】次に、図示しないコンピュータ装置から入
力される印字する文字または図形の画像信号(以下、図
形パターンと称する)を、上記メモリパターンと比較、
検討するために、図2に示すように、メモリパターンと
同じ十字型を図形パターンに当てはめる。この十字型を
当てはめた部分の図形パターンの、5つの画素のドット
配列を調べると、それら5つの画素のドット配列は、必
ず上記のメモリパターン32種類のいずれかに合致す
る。
Next, a character or graphic image signal to be printed (hereinafter referred to as a graphic pattern) input from a computer device (not shown) is compared with the memory pattern.
For consideration, as shown in FIG. 2, the same cross as the memory pattern is applied to the graphic pattern. When examining the dot arrangement of the five pixels in the figure pattern of the portion to which the cross is applied, the dot arrangement of the five pixels always matches any of the 32 types of the memory patterns.

【0016】この時、図形パターンに上記メモリパター
ンと同じ十字型を当てはめる方法は、先ず、図形パター
ンの光を走査する始点(図2で左上隅)から、光を走査
する主走査方向(図2で右側方向)に1画素ずつ移動し
ながら当てはめていき、次に、主走査方向と直角方向
(図2で下側方向)に1画素移動した後、同様に、光を
走査する主走査方向(図2で右側方向)に1画素ずつ移
動しながら当てはめていき、最後に、光を走査する終点
(図2で右下隅)に向かって1画素ずつ移動しながら当
てはめる。
At this time, the method of applying the same cross shape as the above memory pattern to the graphic pattern is as follows. First, from the starting point (upper left corner in FIG. 2) of scanning the light of the graphic pattern, the main scanning direction (FIG. After moving one pixel at a time in the right direction (in the right direction in FIG. 2), and then moving one pixel in the direction perpendicular to the main scanning direction (downward in FIG. 2), similarly, in the main scanning direction (light scanning) The fitting is performed while moving one pixel at a time in the rightward direction in FIG. 2, and finally, the fitting is performed while moving one pixel at a time toward the end point of scanning light (the lower right corner in FIG. 2).

【0017】そして、このようにして十字型を当てはめ
た部分の図形パターンについて、各々の十字型を当ては
めた部分の図形パターンに合致するメモリパターンと、
光を走査する主走査方向に1画素移動させた直後の十字
型を当てはめた部分の図形パターンに合致するメモリパ
ターンを比較する。
Then, for the graphic pattern of the portion to which the cross is applied in this manner, a memory pattern that matches the graphic pattern of the portion to which the cross is applied,
A memory pattern that matches the figure pattern of the portion where the cross shape has been applied immediately after moving by one pixel in the main scanning direction of scanning light is compared.

【0018】即ち、図2に示すような、十字型を当ては
めた部分の図形パターン(図2のa、b、c、d)に合
致するメモリパターンと、図3に示すような、光を走査
する主走査方向に1画素移動させた直後の十字型を当て
はめた部分の図形パターン(図3のa’、b’、c’、
d’)に合致するメモリパターンを比較し、5つの画素
のドット配列の変化を識別することで、印字する文字ま
たは図形の曲線部や斜線部と印字する文字または図形が
ない空白部との境目を検出する。
That is, as shown in FIG. 2, a memory pattern matching the figure pattern (a, b, c, d in FIG. 2) of the portion to which the cross is applied, and light scanning as shown in FIG. The graphic pattern (a ′, b ′, c ′, and c ′ in FIG. 3) of the portion to which the cross shape is applied immediately after being moved by one pixel in the main scanning direction.
By comparing the memory pattern matching d ') and identifying a change in the dot arrangement of the five pixels, the boundary between the curved or shaded portion of the character or figure to be printed and the blank part without the character or figure to be printed is obtained. Is detected.

【0019】ところで、印字する文字または図形の曲線
部や斜線部と、その曲線部や斜線部が接する印字する文
字または図形がない周辺の空白部との関係を考えると、
次の4つに分類される。
By the way, considering the relationship between a curved portion or a hatched portion of a character or figure to be printed and a peripheral blank portion where the curved portion or the hatched portion is not in contact with the printed character or figure.
It is classified into the following four.

【0020】(1)境目が右上がりで下側に文字または
図形がある(例えば図2のa)。 (2)境目が右上がりで上側に文字または図形がある
(例えば図2のb)。 (3)境目が右下がりで下側に文字または図形がある
(例えば図2のc)。 (4)境目が右下がりで上側に文字または図形がある
(例えば図2のd)。
(1) There is a character or a figure on the lower side with the boundary rising upward (for example, FIG. 2A). (2) There is a character or a figure on the upper side with the boundary rising upward (for example, FIG. 2B). (3) There is a character or a figure below the boundary at the lower right (for example, c in FIG. 2). (4) There is a character or a figure on the upper side with the boundary falling to the right (for example, d in FIG. 2).

【0021】これら4つの場合について、図2に示すよ
うな、十字型を当てはめた部分の図形パターン(図2の
a、b、c、d)に合致するメモリパターンと、図3に
示すような、光を走査する主走査方向に1画素移動させ
た直後の十字型を当てはめた部分の図形パターン(図3
のa’、b’、c’、d’)に合致するメモリパターン
を比較すると、5つの画素のドット配列の変化は先述し
た文字式で、(1)は、(A2)(B1)(B2)(B
3)C2から(A2)(B1)B2B3C2へ変化す
る。即ち、5つの画素のドット配列は図1の(エ)から
(ノ)に変化する。
In these four cases, as shown in FIG. 2, a memory pattern matching the figure pattern (a, b, c, d in FIG. 2) of the portion to which the cross is applied, and a memory pattern as shown in FIG. FIG. 3 shows a graphic pattern of a portion to which a cross is applied immediately after moving by one pixel in the main scanning direction of scanning light (FIG.
Comparing memory patterns matching a ′, b ′, c ′, d ′), the change in the dot arrangement of the five pixels is the character expression described above, and (1) is (A2) (B1) (B2 ) (B
3) Change from C2 to (A2) (B1) B2B3C2. That is, the dot arrangement of the five pixels changes from (d) to (no) in FIG.

【0022】(2)は、A2B1B2(B3)(C2)
からA2(B1)(B2)(B3)(C2)へ変化す
る。即ち、5つの画素のドット配列は図1の(エ)から
(ト)に変化する。
(2) A2B1B2 (B3) (C2)
To A2 (B1) (B2) (B3) (C2). That is, the dot arrangement of the five pixels changes from (D) to (G) in FIG.

【0023】(3)は、A2(B1)B2B3(C2)
からA2(B1)(B2)(B3)(C2)へ変化す
る。即ち、5つの画素のドット配列は図1の(ヌ)から
(カ)に変化する。
(3) is A2 (B1) B2 B3 (C2)
To A2 (B1) (B2) (B3) (C2). That is, the dot arrangement of the five pixels changes from (nu) to (f) in FIG.

【0024】(4)は、(A2)(B1)(B2)(B
3)C2から(A2)B1B2(B3)C2へ変化す
る。即ち、5つの画素のドット配列は図1の(ヒ)から
(カ)に変化する。
[0024] (4) corresponds to (A2) (B1) (B2) (B
3) Change from C2 to (A2) B1B2 (B3) C2. That is, the dot arrangement of the five pixels changes from (h) to (f) in FIG.

【0025】従って、印字する文字および図形の曲線部
や斜線部を検出するには、図4に示すように、上記4種
類の、5つの画素のドット配列の変化を識別すれば良
い。
Therefore, in order to detect a curved portion or a hatched portion of a character or figure to be printed, it is sufficient to identify a change in the dot arrangement of the four types of five pixels as shown in FIG.

【0026】そして、上記(1)および(4)で表され
る5つの画素のドット配列の変化の場合は、上記十字型
を当てはめた部分の図形パターン(図2のa、d)内の
画素のC2、即ち、光を走査する主走査方向に1画素移
動させた直後の十字型を当てはめた部分の図形パターン
(図3のa’、d’)内の画素のB2に、例えば、後述
するパルス幅変調により光プリンタの光ビーム制御を行
い、図8に示すように、左側を絞ったドットを印字す
る。
In the case of a change in the dot arrangement of the five pixels represented by the above (1) and (4), the pixels in the graphic pattern (a, d in FIG. 2) of the cross-shaped part are applied. C2, that is, B2 of the pixel in the figure pattern (a ′, d ′ in FIG. 3) of the portion where the cross shape is applied immediately after moving by one pixel in the main scanning direction for scanning light, for example, which will be described later. The light beam of the optical printer is controlled by the pulse width modulation, and as shown in FIG.

【0027】同様に、上記(2)および(3)で表され
る5つの画素のドット配列の変化の場合は、上記十字型
を当てはめた部分の図形パターン(図2のb、c)内の
画素のB2、即ち、光を走査する主走査方向に1画素移
動させた直後の十字型を当てはめた部分の図形パターン
(図3のb’、c’)内の画素のC2に、例えば、後述
するパルス幅変調により光プリンタの光ビーム制御を行
い、図8に示すように、右側を絞ったドットを印字す
る。
Similarly, in the case of a change in the dot arrangement of the five pixels represented by the above (2) and (3), the figure pattern (b, c in FIG. 2) of the cross-shaped portion is applied. B2 of the pixel, that is, C2 of the pixel in the graphic pattern (b ′, c ′ in FIG. 3) of the portion where the cross shape is applied immediately after moving by one pixel in the main scanning direction for scanning light, for example, The light beam of the optical printer is controlled by the pulse width modulation to be performed, and as shown in FIG.

【0028】上記のパターンマッチングにより識別、検
出された、図5に白丸で示すような、文字および図形の
曲線部や斜線部に当たる画素を、後述するパルス幅変調
により、右側もしくは左側を絞ったドットを形成するよ
うに変調する。その後、光プリンタで、例えば、記録紙
に文字および図形を印字すると、図6に示すように、文
字および図形の曲線部や斜線部のジャギーが改善され
た、滑らかな文字および図形が印字される。
Pixels which are identified and detected by the above-described pattern matching and which correspond to curved or hatched portions of characters and figures as indicated by white circles in FIG. Are modulated to form Thereafter, when characters and figures are printed on a recording paper by an optical printer, for example, as shown in FIG. 6, smooth characters and figures with improved jaggies at the curved portions and hatched portions of the characters and figures are printed. .

【0029】次に、光プリンタの光ビーム制御を行い、
文字および図形の曲線部や斜線部のジャギーを改善する
ように画素を変形する方法として、例えば、パルス幅変
調について、以下に説明する。
Next, the light beam of the optical printer is controlled.
For example, pulse width modulation will be described below as a method of deforming a pixel so as to improve jaggies in a curved portion or a hatched portion of a character or a figure.

【0030】画素を変形するパルス幅変調を行うための
回路としては、例えば、図7に示すように、先ず、図示
しないコンピュータ装置から送られる文字および図形の
画像信号を、LSI等で構成されたパターンマッチング
回路1に入力し、パターンマッチング回路1で上記のパ
ターンマッチングを行う。パターンマッチング回路1
は、識別、検出した文字および図形の曲線部や斜線部の
情報をパルス幅変調回路2に出力し、パルス幅変調回路
2は周波数クロックのパルス幅をパターンマッチング回
路1から入力された情報で変調し、図8に示すような、
クロック水平同期信号(図8のCLKH1〜3)とし
て、後述するアンドゲート5に出力する。
As a circuit for performing pulse width modulation for deforming pixels, for example, as shown in FIG. 7, first, a character and graphic image signal sent from a computer device (not shown) is constituted by an LSI or the like. The signal is input to the pattern matching circuit 1 and the pattern matching circuit 1 performs the above pattern matching. Pattern matching circuit 1
Outputs to the pulse width modulation circuit 2 the information on the curved and diagonal lines of the identified and detected characters and figures, and the pulse width modulation circuit 2 modulates the pulse width of the frequency clock with the information input from the pattern matching circuit 1. And as shown in FIG.
The clock horizontal synchronizing signal (CLKH1 to CLKH1 in FIG. 8) is output to the AND gate 5 described later.

【0031】尚、上記パルス幅変調回路2は、先述した
文字および図形の曲線部や斜線部を示す5つの画素のド
ット配列の変化の分類4種類のうち、図4に示すよう
な、(1)および(4)で表される5つの画素のドット
配列の変化の場合は、パルス幅が徐々に広くなるクロッ
ク水平同期信号(図8のCLKH1)を出力し、(2)
および(3)で表される5つの画素のドット配列の変化
の場合は、パルス幅が徐々に狭くなるクロック水平同期
信号(図8のCLKH2)を出力し、その他の場合は、
パルス幅が変わらないクロック水平同期信号(図8のC
LKH3)を出力する。
The pulse width modulation circuit 2 has four types of dot arrangement changes of five pixels indicating a curved portion or a hatched portion of a character or a figure as described above, as shown in FIG. In the case of the change in the dot arrangement of the five pixels represented by () and (4), a clock horizontal synchronization signal (CLKH1 in FIG. 8) whose pulse width gradually increases is output, and (2)
In the case of the change in the dot arrangement of the five pixels represented by (3) and (3), a clock horizontal synchronizing signal (CLKH2 in FIG. 8) whose pulse width gradually decreases is output. In other cases,
The clock horizontal synchronization signal whose pulse width does not change (C in FIG. 8)
LKH3) is output.

【0032】従って、5つの画素のドット配列の変化の
分類4種類のうち、上記(1)および(4)で表される
5つの画素のドット配列の変化の場合は、図8に示すよ
うに、印字したとき左側を絞ったドットとなり、上記
(2)および(3)で表される5つの画素のドット配列
の変化の場合は、図8に示すように、印字したとき右側
を絞ったドットとなり、その他の場合は、印字したとき
通常のドットとなる。
Accordingly, of the four types of change in the dot arrangement of the five pixels, the change in the dot arrangement of the five pixels represented by the above (1) and (4) is as shown in FIG. When printing, the left dot is narrowed. When the dot arrangement of the five pixels represented by (2) and (3) is changed, as shown in FIG. In other cases, normal dots are printed when printed.

【0033】一方、コンピュータ装置から送られる文字
および図形の画像信号を、デコーダ3にも入力し、デコ
ーダ3でコンピュータ装置から送られる文字および図形
の画像信号のビット数を光プリンタ用に変換してラッチ
回路4に出力する。ラッチ回路4はデコーダ3から入力
された文字および図形の画像信号を、転送クロックにデ
ィレイラインを入れる等してラッチし、このラッチされ
た文字および図形の画像信号をアンドゲート5に出力す
る。
On the other hand, the character and graphic image signals sent from the computer are also input to the decoder 3, and the decoder 3 converts the number of bits of the character and graphic image signals sent from the computer into an optical printer. Output to the latch circuit 4. The latch circuit 4 latches the character and graphic image signals input from the decoder 3 by inserting a delay line into a transfer clock or the like, and outputs the latched character and graphic image signals to the AND gate 5.

【0034】アンドゲート5は、上記のクロック水平同
期信号とラッチされた文字および図形の画像信号を掛け
合わせて、パルス幅変調した文字および図形の画像信号
をオアゲート6を通してトランジスタ7に出力し、トラ
ンジスタ7は半導体レーザ8に上記信号を出力する。こ
うして光プリンタの光ビーム制御は行われ、パルス幅変
調された文字および図形の画像信号は、半導体レーザ8
で光ビームとなり、例えば、記録紙に印字されて文字や
図形となる。
The AND gate 5 multiplies the clock horizontal synchronizing signal by the latched character and graphic image signals, and outputs pulse width modulated character and graphic image signals to the transistor 7 through the OR gate 6. 7 outputs the above signal to the semiconductor laser 8. In this manner, the light beam control of the optical printer is performed, and the pulse width modulated character and graphic image signals are transmitted to the semiconductor laser 8.
To form a light beam, for example, printed on a recording paper to form characters and figures.

【0035】以上の構成により、文字または図形の曲線
部や斜線部を識別、検出するパターンマッチングに時間
をかけずに、図6に示すように、文字および図形の曲線
部や斜線部のジャギーが改善された、滑らかな文字およ
び図形を印字することが可能となる。
With the above arrangement, as shown in FIG. 6, the jaggies of the curved portions and the diagonal lines of the characters and figures can be reduced without spending time on pattern matching for identifying and detecting the curved parts and the diagonal lines of the characters or figures. It is possible to print improved characters and graphics smoothly.

【0036】[0036]

【発明の効果】本発明の光プリンタは、以上のように、
印字する文字または図形の曲線部や斜線部を識別、検出
するパターンマッチングに用いる複数の画素で構成され
パターンマッチング用パターンを記憶する記憶領域
と、印字する文字または図形の曲線部や斜線部を識別、
検出するパターンマッチング回路と、該パターンマッチ
ング回路から入力された情報に基づいて、上記曲線部や
斜線部に当たる画素を変形して、印字する文字または図
形の曲線部や斜線部を滑らかに形成するパルス幅変調回
路とを備え、上記パターンマッチング回路が、該パター
ンマッチング用パターンを、印字する文字または図形の
画像信号の全領域で、光を走査する主走査方向に1画素
ずつ移動させ、その移動の前後における上記領域に対応
するパターンマッチング用パターンを構成する画素のド
ット配列の変化から、印字する文字または図形の曲線部
や斜線部を識別、検出するようになっている構成であ
、また、上記記憶領域が、十字型に配置された5つの
画素で構成されているパターンマッチング用パターンを
記憶している構成である。
As described above, the optical printer of the present invention has the following features.
A storage area for storing a pattern matching pattern composed of a plurality of pixels used for pattern matching for identifying and detecting a curved portion or a hatched portion of a character or figure to be printed.
And the curved or diagonal part of the character or figure to be printed,
A pattern matching circuit to be detected and the pattern match
A pulse width modulation circuit that deforms the pixels corresponding to the above-mentioned curved portions and diagonal lines based on the information input from the printing circuit to form the curved lines and diagonal lines of the character or graphic to be printed smoothly.
And the pattern matching circuit includes
Pattern for character or figure to be printed
One pixel in the main scanning direction for scanning light over the entire area of the image signal
And move it to the area before and after the movement.
Of the pixels that make up the pattern matching pattern
From the change in the bit arrangement, the curved part of the character or figure to be printed
And shaded parts are identified and detected.
In addition, the storage area includes a pattern matching pattern composed of five pixels arranged in a cross shape.
This is the configuration that has been stored .

【0037】それゆえ、光プリンタ内に予め記憶すべき
メモリパターンは僅かな数となり、また、それぞれのメ
モリパターンも数個の画素で簡単に構成されているた
め、メモリパターンを全て記憶しても、光プリンタ内に
僅かな記憶領域しか必要とせず、しかも、文字および図
形の曲線部や斜線部を滑らかに処理する時間を短縮でき
るという効果を奏する。
Therefore, the number of memory patterns to be stored in the optical printer in advance is small, and each memory pattern is simply composed of several pixels. In addition, only a small storage area is required in the optical printer, and the time required to smoothly process curved and diagonal portions of characters and figures can be reduced.

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

【図1】本発明の一実施例におけるパターンマッチング
に用いる5つの画素で構成されるメモリパターン32種
類を示す説明図である。
FIG. 1 is an explanatory diagram showing 32 types of memory patterns composed of five pixels used for pattern matching according to an embodiment of the present invention.

【図2】上記パターンマッチングを行うためにメモリパ
ターンと同じ十字型を図形パターンに当てはめている状
態を示す説明図である。
FIG. 2 is an explanatory diagram showing a state in which the same cross shape as a memory pattern is applied to a graphic pattern in order to perform the pattern matching.

【図3】上記パターンマッチングを行うためにメモリパ
ターンと同じ十字型を図形パターンに当てはめている状
態を示す説明図である。
FIG. 3 is an explanatory diagram showing a state in which the same cross pattern as a memory pattern is applied to a graphic pattern in order to perform the pattern matching.

【図4】上記パターンマッチングを行い、文字および図
形の曲線部や斜線部を識別、検出する方法を示す説明図
である。
FIG. 4 is an explanatory diagram showing a method of performing the above-described pattern matching to identify and detect curved portions and hatched portions of characters and figures.

【図5】上記パターンマッチングにより、文字および図
形の曲線部や斜線部が識別、検出された状態を示す説明
図である。
FIG. 5 is an explanatory diagram showing a state in which a curved portion and a hatched portion of characters and figures are identified and detected by the pattern matching.

【図6】本発明の光プリンタを適用して印字された文字
および図形を示す説明図である。
FIG. 6 is an explanatory diagram showing characters and figures printed by applying the optical printer of the present invention.

【図7】上記文字または図形の曲線部や斜線部を滑らか
に形成するためのパルス幅変調を行う方法を示すブロッ
ク図である。
FIG. 7 is a block diagram showing a method of performing pulse width modulation for smoothly forming a curved portion or a hatched portion of the character or figure.

【図8】上記パルス幅変調を行うクロック水平同期信号
を示すタイムチャートである。
FIG. 8 is a time chart showing a clock horizontal synchronization signal for performing the pulse width modulation.

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

1 パターンマッチング回路 2 パルス幅変調回路 3 デコーダ 4 ラッチ回路 7 トランジスタ 8 半導体レーザ DESCRIPTION OF SYMBOLS 1 Pattern matching circuit 2 Pulse width modulation circuit 3 Decoder 4 Latch circuit 7 Transistor 8 Semiconductor laser

───────────────────────────────────────────────────── フロントページの続き (58)調査した分野(Int.Cl.6,DB名) H04N 1/40 - 1/409 H04N 1/46 H04N 1/60──────────────────────────────────────────────────続 き Continued on the front page (58) Field surveyed (Int.Cl. 6 , DB name) H04N 1/40-1/409 H04N 1/46 H04N 1/60

Claims (2)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】印字する文字または図形を複数の画素で構
成して印字する光プリンタにおいて、 印字する文字または図形の曲線部や斜線部を識別、検出
するパターンマッチングに用いる複数の画素で構成され
パターンマッチング用パターンを記憶する記憶領域
と、 印字する文字または図形の曲線部や斜線部を識別、検出
するパターンマッチング回路と、 該パターンマッチング回路から入力された情報に基づい
て、 上記曲線部や斜線部に当たる画素を変形して、印字
する文字または図形の曲線部や斜線部を滑らかに形成す
パルス幅変調回路とを備え、 上記パターンマッチング回路が、該パターンマッチング
用パターンを、印字する文字または図形の画像信号の全
領域で、光を走査する主走査方向に1画素ずつ移動さ
せ、その移動の前後における上記領域に対応するパター
ンマッチング用パターンを構成する画素のドット配列の
変化から、印字する文字または図形の曲線部や斜線部を
識別、検出するようになっている ことを特徴とする光プ
リンタ。
An optical printer which prints a character or figure to be printed by a plurality of pixels and comprises a plurality of pixels used for pattern matching for identifying and detecting a curved part or a hatched part of the character or figure to be printed. Storage area for storing pattern matching patterns
When identifying the curved portion and the hatched portion of the character or graphics to be printed, the detection
Pattern matching circuit, and based on information input from the pattern matching circuit.
Te, by modifying the pixel which corresponds to the curved portion and the hatched portion, and a pulse width modulation circuit to smoothly form a curved portion and the hatched portion of the character or graphics to be printed, the pattern matching circuit, the pattern matching
Pattern for all characters or graphics to be printed.
In the area, the pixel is moved one pixel at a time in the main scanning direction for scanning light.
The pattern corresponding to the above area before and after the movement.
Of the dot array of the pixels that
From the change, the curved or shaded part of the character or figure to be printed
An optical printer characterized by identifying and detecting .
【請求項2】上記記憶領域が、十字型に配置された5つ
の画素で構成されているパターンマッチング用パターン
を記憶していることを特徴とする請求項1記載の光プリ
ンタ。
2. A pattern matching pattern , wherein said storage area is composed of five pixels arranged in a cross shape.
2. The optical printer according to claim 1 , wherein the data is stored .
JP3331802A 1991-12-16 1991-12-16 Optical printer Expired - Fee Related JP2854179B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP3331802A JP2854179B2 (en) 1991-12-16 1991-12-16 Optical printer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP3331802A JP2854179B2 (en) 1991-12-16 1991-12-16 Optical printer

Publications (2)

Publication Number Publication Date
JPH05167850A JPH05167850A (en) 1993-07-02
JP2854179B2 true JP2854179B2 (en) 1999-02-03

Family

ID=18247807

Family Applications (1)

Application Number Title Priority Date Filing Date
JP3331802A Expired - Fee Related JP2854179B2 (en) 1991-12-16 1991-12-16 Optical printer

Country Status (1)

Country Link
JP (1) JP2854179B2 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7483167B2 (en) 2003-08-27 2009-01-27 Marvell International Ltd. Image forming apparatus for identifying undesirable toner placement
US7697169B2 (en) 2004-10-29 2010-04-13 Marvell International Technology Ltd. Laser print apparatus with toner explosion compensation

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8643661B1 (en) 2006-06-21 2014-02-04 Marvell International Ltd. Non raster row pixel processing

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH07105886B2 (en) * 1986-09-30 1995-11-13 株式会社東芝 Recording device
US4847641A (en) * 1988-08-16 1989-07-11 Hewlett-Packard Company Piece-wise print image enhancement for dot matrix printers
JPH0284356A (en) * 1988-09-21 1990-03-26 Hitachi Ltd Recorder
JPH0389776A (en) * 1989-09-01 1991-04-15 Canon Inc Picture forming device

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7483167B2 (en) 2003-08-27 2009-01-27 Marvell International Ltd. Image forming apparatus for identifying undesirable toner placement
US8194282B2 (en) 2003-08-27 2012-06-05 Marvell International Technology Ltd. Image forming apparatus for identifying undesirable toner placement
US7697169B2 (en) 2004-10-29 2010-04-13 Marvell International Technology Ltd. Laser print apparatus with toner explosion compensation

Also Published As

Publication number Publication date
JPH05167850A (en) 1993-07-02

Similar Documents

Publication Publication Date Title
GB2216362A (en) Designating a rectangular area on a document
US5697712A (en) Image processing method and apparatus
JP2854179B2 (en) Optical printer
JPH03199062A (en) Printer
JPH0385597A (en) Image processor
JP3186216B2 (en) Image supply device
US5933586A (en) Data conversion circuit and method in a computing and printing system
JP2935510B2 (en) Output device and output method
KR100208696B1 (en) Printer
JP3636891B2 (en) Color image output method
JPH10166660A (en) Device and method for saving toner in laser beam printer
JP3167147B2 (en) Control circuit of image forming apparatus
JP2871881B2 (en) Image processing device
JP2699386B2 (en) Image recording device
JPH08310057A (en) Method and device for recording image
JP2000138832A (en) Video data converter
JP2610987B2 (en) Output control device and image pattern generation method
JP2801466B2 (en) Image forming method and image forming apparatus
JP2844766B2 (en) Recording gradation processing method
JPH10202951A (en) Printer device
JPH03112671A (en) Printer
JPS58107591A (en) Overlapping character pattern generation system
JPS61116386A (en) Character pattern writing control system
JPH06238860A (en) Character pattern generating method
JPH07186447A (en) Printing device

Legal Events

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

Free format text: PAYMENT UNTIL: 20081120

Year of fee payment: 10

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

Free format text: PAYMENT UNTIL: 20091120

Year of fee payment: 11

LAPS Cancellation because of no payment of annual fees