JPH01216865A - Minification of pixel data - Google Patents

Minification of pixel data

Info

Publication number
JPH01216865A
JPH01216865A JP63043586A JP4358688A JPH01216865A JP H01216865 A JPH01216865 A JP H01216865A JP 63043586 A JP63043586 A JP 63043586A JP 4358688 A JP4358688 A JP 4358688A JP H01216865 A JPH01216865 A JP H01216865A
Authority
JP
Japan
Prior art keywords
line
pixels
pixel data
lines
block
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP63043586A
Other languages
Japanese (ja)
Inventor
Osamu Higuchi
理 樋口
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.)
Sony Corp
Original Assignee
Sony Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Sony Corp filed Critical Sony Corp
Priority to JP63043586A priority Critical patent/JPH01216865A/en
Publication of JPH01216865A publication Critical patent/JPH01216865A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To perform minification processing which does not permit required pixels to be lost, using an extremely simple logic operation by extracting a string of pixels connected obliquely with pixels in a single line before or after (n) pieces of line and including the extracted pixels into the minification results. CONSTITUTION:If n equals 3, pixel data is subdivided into each three blocks in a row direction, and a spacer line L3 is left by thinning out lines L1, L2 of (m)th block. This processing enables the obtaining of a logic sum of all pixel data in lines (n)-1 from (mXn)th line to((m+1)Xn-2)th line as spacer lines of (m)th block. A logic product of the logic sum and the logic negative of pixel data in (mXn-1)th line before a single line of (m)th block is obtained in a row direction. These extracted pixels are independent points which are serially connected obliquely with pixels in a preceding line. In order to leave the extracted independent points P intact in the minified results without spacing, if a logic product of data in((m+1)Xn-1)th line, which is not thinned out and data of the independent point is sought, some minification results are obtained. The above procedures are to be taken in the sequential order of blocks m(1, 2, 3...) to obtain the whole minified image.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は画素データの縮小方法に関し、特にワードプロ
セッサ等における文字、図形の表示又は印字1;用いて
最適なものである。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a method for reducing pixel data, and is particularly suitable for use in displaying or printing characters and graphics in a word processor or the like.

〔発明の概要〕[Summary of the invention]

ドツト画素構成の行又は列のn本ラインを1ラインに縮
小する際に、n本ラインの1ライン前又は後の画素に斜
め方向に連続する画素を抽出し、これを縮小結果に含め
ることにより、縮小によって途切れる斜め線を補関し、
パターン品位の低下を軽減した画素データの縮小方法で
ある。
When reducing n lines of dot pixel configuration rows or columns to one line, by extracting pixels that are diagonally continuous to the pixels one line before or after the n lines and including them in the reduction result. , complement the diagonal lines that are interrupted by reduction,
This is a pixel data reduction method that reduces deterioration in pattern quality.

〔従来の技術〕[Conventional technology]

ワードプロセッサ等でいわゆる「半角」文字など、小さ
い文字パターンが必要なときに、大きい文字パターンを
縮小して使用することがある。この際、cpuの演算処
理能力の限界などの制約があるため、論理演算などのよ
うに比較的簡単な処理のみによる方法が良く用いられる
When small character patterns, such as so-called "half-width" characters, are needed in word processors, large character patterns are sometimes used after being reduced. At this time, since there are constraints such as the limit of the CPU's arithmetic processing capacity, methods using only relatively simple processing such as logical operations are often used.

一般に用いられているのは、「間引き」による方法と、
「論理和」による方法の”2つである。
The commonly used methods are “thinning” and
There are two methods using "logical sum".

〔発明が解決しようとする課題〕[Problem to be solved by the invention]

「間引き」による方法とは、文字パターンを構成するド
ツト画素の列から等間隔で列を抜き出して並べる方法で
、いらない列を間引く操作に当たるためこの呼び名があ
る。この方法では間引いて捨てた列に独立の点や線があ
ると、それが縮小結果のパターンには抜けとなって現わ
れ、文字としての品位を落とす。
The ``thinning'' method is a method of extracting rows of dot pixels that make up a character pattern and arranging them at equal intervals, and is called this because it involves thinning out unnecessary rows. In this method, if there are independent points or lines in the thinned out and discarded columns, they will appear as omissions in the reduced pattern, degrading the quality of the characters.

「論理和」による方法は、この抜けを防ぐために隣接す
る複数列の論理和をとってそれを並べる方法で、これに
よって点や線の抜けは防ぐことができるが、そのかわり
に点や線の間の白地がつぶれてしまうため、これも文字
としての品位が落ちてしまう。
The "logical sum" method is a method that takes the logical sum of multiple adjacent columns and arranges them in order to prevent missing points and lines.This method can prevent missing points and lines, but instead This also reduces the quality of the text because the white space between the lines is crushed.

本発明はこの問題にかんがみ、必要な画素が欠落しない
ような縮小処理を、極めて簡単な論理演算によって行う
ことを目的とする。
In view of this problem, it is an object of the present invention to perform a reduction process using extremely simple logical operations so that necessary pixels are not missing.

〔課題を解決するための手段〕[Means to solve the problem]

ドツト画素構成の文字又は図形を縮小することは、その
行又は列を構成する1本(n=2.3・・−・−・・・
・−・−)のラインを1本にまとめることである。
Reducing a character or figure with a dot pixel configuration means that one pixel (n=2.3...
・-・-) lines are combined into one line.

なおn本ラインから成る1ブロツクと次のブロックとの
間に縮小処理に関与しない1本又は複数本のラインが介
在されていてもよい。
Note that one or more lines that are not involved in the reduction process may be interposed between one block consisting of n lines and the next block.

本発明の縮小方法では、上記n本ラインの1ライン前又
は後のデータを参照し、上記1ライン前又は後のライン
を構成する画素に斜め方向に連続する画素をn本ライン
内で抽出する。少なくともこの抽出された画素は縮小処
理において除去されることなく、縮小結果に利用される
In the reduction method of the present invention, data of one line before or after the above n lines is referred to, and pixels that are diagonally continuous to pixels constituting the line before or after the above n lines are extracted within the n lines. . At least these extracted pixels are used in the reduction result without being removed in the reduction process.

なお縮小処理は基本的には1本のライン中のn−1本を
間引く処理であってよい。間引くラインに上記のような
保存すべき特定の画素があれば、これを抽出して間引か
ないラインの画素として加える。
Note that the reduction process may basically be a process of thinning out n-1 lines in one line. If the line to be thinned out has a specific pixel to be saved as described above, it is extracted and added as a pixel to the line that is not to be thinned out.

n本ラインの1ライン前又は後のラインは、縮小処理さ
れる前の画素データによるラインであってよいが、縮小
方向に順次処理を行っている場合、縮小結果の画素デー
タによるラインを参照してもよい。
The line one line before or after the n lines may be a line based on pixel data before being subjected to reduction processing, but if processing is performed sequentially in the reduction direction, the line based on pixel data resulting from reduction may be referred to. You can.

〔作 用〕[For production]

1ライン前又は後を構成する画素に対し斜め方向に連続
した画素は、「独立点」と称すことができ、ドツト構成
の文字又は図形を視認する上で重要度の高いものである
。この独立点が間引き処理によって欠落すると、文字、
図形を構成する斜め線が途切れるため、画像イメージの
品位が低下する。独立点を保存すれば、斜め線が連続し
、品質劣化が軽減される。
Pixels that are diagonally continuous with respect to pixels forming one line before or after one line can be called "independent points," and are highly important when visually recognizing dot-structured characters or figures. If this independent point is lost due to thinning, the character,
Since the diagonal lines that make up the figure are cut off, the quality of the image deteriorates. If independent points are preserved, the diagonal lines will be continuous and quality deterioration will be reduced.

〔実施例〕〔Example〕

第1図に本発明の画素データの縮小方法の原理を示す。 FIG. 1 shows the principle of the pixel data reduction method of the present invention.

(A)は与えられた画素データの一部を示し、この場合
にはn=3で、列方向(縦方向)に1/3に縮小する0
列方向に3ライン(行)ずつのブロックに分け、第mブ
ロックに関しては、mxn行(第1ライン)目から次の
ブロックの直前のラインである(m+1)Xn−1行ま
でを1ライン(行)にまとめるのが、縮小処理である。
(A) shows a part of the given pixel data; in this case, n=3, and 0 is reduced to 1/3 in the column direction (vertical direction).
Divided into blocks of 3 lines (rows) each in the column direction, for the m-th block, one line ( The reduction process is to summarize the data into rows).

この例では、「まとめる」とは「間引き」のことであり
、第1図(A)の例では第mブロックのラインLl、L
2を間引き、ラインL3を残す。
In this example, "combining" means "thinning", and in the example of FIG. 1(A), lines Ll and L of the m-th block
2 is thinned out, leaving line L3.

独立点を抽出して補間処理を行った結果を第1図(B)
に示す。この処理は次のようにして行われる。
Figure 1 (B) shows the results of extracting independent points and performing interpolation processing.
Shown below. This process is performed as follows.

まず第1図(C)に示すように、第mブロック中の間引
くラインであるmxn行目から(m+1)Xn−2行目
までのn−1行(この例ではラインL1、L2)のすべ
ての画素データの論理和を列方向にとる(LIUL2)
。次にこの論理和と、第mブロックの1ライン前にある
m X n −1行目の画素データの論理否定(1丁)
との論理積を列方向にとる。その結果は第1 (D)の
画素データテアル(τOn (LIUL2))、 これ
らの抽出された画素は1ライン前の画素に対し斜め方向
に連続した「独立点」である。この抽出された独立点P
を縮小結果に間引かずに残すために、間引かないライン
である(m+1)Xn−1行目(ラインL3)のデータ
と独立点のデータとの論理和をとると、第1図(B)に
示す縮小結果が得られる。
First, as shown in FIG. 1(C), all of the n-1 lines (lines L1 and L2 in this example) from the mxn line to the (m+1)Xn-2 line (lines L1 and L2 in this example), which are the lines to be thinned out in the m-th block. Take the logical sum of the pixel data in the column direction (LIUL2)
. Next, logically negate this logical sum and the pixel data of the m X n -1 row, which is one line before the m-th block (1 block)
Performs a logical AND with the column direction. The result is the first (D) pixel data (τOn (LIUL2)), and these extracted pixels are "independent points" that are diagonally continuous with respect to the pixel one line before. This extracted independent point P
In order to leave the data in the reduction result without thinning out, we take the logical OR of the data on the (m+1) ) is obtained.

なお独立点の補間処理を行わない単純な間引き処理を行
うと、第1図(B)の独立点Pが欠落し、斜め方向のド
ツト連続性が失われる。
Note that if a simple thinning process is performed without interpolating independent points, the independent points P in FIG. 1(B) will be missing, and the continuity of dots in the diagonal direction will be lost.

以上の処理をブロックm (1,2,3−・・−・・・
・−)の順序で行い、全体の縮小画像を得る。なおmの
増加方向にシリアルプリンタの印字が行われる。
The above processing is performed in block m (1, 2, 3-...
-) to obtain the entire reduced image. Note that printing by the serial printer is performed in the increasing direction of m.

ここでm=Oの場合、つまり第1ブロツクの1本のライ
ンについては一1行目というラインが存在しないので、
−1行目として空白行を仮想する。
Here, if m=O, that is, for one line of the first block, there is no line called the 11th line, so
- Assume a blank line as the first line.

この場合は結果的には最初のn行目までのすべての論理
和をとるのと同じことになる。
In this case, the result is the same as calculating the logical OR of all up to the first n rows.

なお第1図(B)の縮小処理済のラインを参照して、次
の間引きブロックm+lの独立点を抽出する処理を行っ
てもほぼ同様の結果が得られる。
Note that almost the same result can be obtained by referring to the reduced line in FIG. 1(B) and extracting the independent points of the next thinned block m+l.

縮小対象のイメージデータがシーケンシャルファイルに
入っている場合には、この方が都合良い。
This is more convenient if the image data to be reduced is contained in a sequential file.

また第1図(A)においてL2、L3が間引かれるライ
ンであれば、第mブロックの1ライン後のラインL4を
参照して独立点を抽出する。この場合には第mブロック
の各ラインとその後の1ラインとを記憶するメモリを必
要とする。
In addition, if L2 and L3 are lines to be thinned out in FIG. 1(A), an independent point is extracted with reference to line L4 one line after the m-th block. In this case, a memory is required to store each line of the m-th block and one line thereafter.

第2図は漢字の「激」について半角(1/2の割合)で
種々の縮小処理を行った文字パターン図であり、(A)
は元のパターン、(B)は間引き処理を行ったパターン
、(C)は本発明の方法を適用した独立点の補間処理に
よるパターン、(D)は論理和処理によるパターンであ
る。この図から明らかなように、(B)ではドツト抜け
が著しく、(D)ではつぶれが生じて見にくくなってい
る。(C)の処理では、(B)(D)の欠点が改善され
、品質が向上している。
Figure 2 is a character pattern diagram of the kanji ``geki'' that has been reduced in various ways to half-width (1/2 ratio); (A)
is the original pattern, (B) is a pattern after thinning processing, (C) is a pattern obtained by interpolation processing of independent points to which the method of the present invention is applied, and (D) is a pattern obtained by logical sum processing. As is clear from this figure, in (B) the dots are significantly missing, and in (D) the dots are crushed and difficult to see. In the process of (C), the defects of (B) and (D) are improved and the quality is improved.

第3図に縮小回路の具体例を示す。この回路は1列分(
1ビツト)の処理を行うもので、実際には列数骨だけ並
列に設けられる。入力の画素データは直列3段のラッチ
回路1a〜1cに画素クロックCKのタイミングで順次
取込まれる。ラッチ回路1a、111Cの順に列方向に
連続する画素データがラインLO1L1、L2のように
入り、入力ライン2には現在のラインL3の画素データ
が現われている。ラッチ回路tb、ICの出力を人力と
するオア回路3の出力と、ラッチ回路1aの出力(1ラ
イン前)を反転する否定回路4の出力とのアンドをアン
ド回路5とでとることにより、独立点の画素データが抽
出される。
FIG. 3 shows a concrete example of the reduction circuit. This circuit is for one column (
1 bit), and are actually provided in parallel as many as the number of columns. Input pixel data is sequentially taken in to three stages of series latch circuits 1a to 1c at the timing of the pixel clock CK. Continuous pixel data in the column direction enters the latch circuits 1a and 111C in the order of lines LO1L1 and L2, and the pixel data of the current line L3 appears on the input line 2. The latch circuit tb is made independent by ANDing the output of the OR circuit 3, which uses the output of the IC, and the output of the NOT circuit 4, which inverts the output (one line before) of the latch circuit 1a, using the AND circuit 5. Pixel data of a point is extracted.

このアンド回路5の出力と現在の入力とのオアをオア回
路6でとることにより、補間処理が行われる。オア回路
6の出力をラッチ回路7に1/3分周器8で分周したク
ロックで取込むことにより、縮小結果の画素データQが
得られる。なお前回の縮小結果でもって独立点の抽出を
行うには、第3図の点線で示すようにラッチ回路7の出
力を否定回路4に供給すればよい。
Interpolation processing is performed by ORing the output of the AND circuit 5 and the current input in the OR circuit 6. By inputting the output of the OR circuit 6 into the latch circuit 7 using a clock frequency divided by the 1/3 frequency divider 8, pixel data Q as a result of reduction is obtained. Note that in order to extract independent points using the previous reduction result, the output of the latch circuit 7 may be supplied to the NOT circuit 4 as shown by the dotted line in FIG.

第4図は本発明を適用するとかできる日本語ワードプロ
セッサのブロック図である。周知のように、キーボード
10の単語入力はCPUI 1で処理され、RAM12
に記憶される。またRAMI2に形成さた文書がディス
ク13に保存される。
FIG. 4 is a block diagram of a Japanese word processor to which the present invention can be applied. As is well known, word input from the keyboard 10 is processed by the CPU 1, and is processed by the RAM 12.
is memorized. Further, the document formed in the RAMI2 is stored on the disk 13.

RAM12のデータをROM構成のキャラクタジェネレ
ータ14によってドツト画素データに変換し、デイスプ
レィ15に表示する。またドツト画素データをラインプ
リンタ16に導出して文書を印刷する。キャラクタジェ
ネレータ14から得られるドツトパターンを縮小して例
えば半角文字としてデイスプレィ15又はプリンタ16
で表示(印刷)することができる。既述の縮小処理はc
pUll及びRAM12を用いたソフトウェア処理でも
可能である。上述のように処理プロセスは極めて簡単な
論理演算で実効されるから、CPU11の処理能力が低
くてもそれほど負担にならない。
Data in the RAM 12 is converted into dot pixel data by a character generator 14 having a ROM configuration, and displayed on the display 15. The dot pixel data is also sent to the line printer 16 to print the document. The dot pattern obtained from the character generator 14 is reduced and displayed, for example, as half-width characters on the display 15 or printer 16.
It can be displayed (printed) with . The reduction process described above is c
Software processing using pUll and RAM 12 is also possible. As described above, the processing process is executed by extremely simple logical operations, so even if the processing capacity of the CPU 11 is low, it does not place much burden on the CPU 11.

〔発明の効果〕〔Effect of the invention〕

本発明は上述のように、縮小によって失われる斜め方向
に連続するドツト画素を抽出して、縮小結果に残すよう
にしたので、文字、図形を構成する斜め線が縮小によっ
て途切れるのを補間することができ、従って縮小パター
ンの品位低下を軽減し、見やすい縮小表示又は印字を得
ることができる。しかも簡単な論理演算により補間処理
を実行できるので、回路が大規模になったり、プロセッ
サの処理ステップの負担が増えることもない。
As described above, the present invention extracts diagonally continuous dot pixels that are lost due to reduction and retains them in the reduction result, so that it is possible to interpolate the diagonal lines that make up characters and figures that are interrupted due to reduction. Therefore, deterioration in the quality of the reduced pattern can be reduced, and easy-to-read reduced display or printing can be obtained. Moreover, since the interpolation process can be performed by simple logical operations, the circuit does not become large-scale and the burden of processing steps on the processor does not increase.

【図面の簡単な説明】[Brief explanation of the drawing]

第1図は本発明の縮小処理を示す画素データのドツトパ
ターン図、第2図は漢字の半角縮小に適用した場合のド
ツトパターン図、第3図は縮小回路の一実施例を示す回
路図、第4図は本発明が適用されるワードプロセッサの
ブロック図である。 なお図面に用いた符号において、 10・−−−−−−一・−・・・・・・・キーボード1
1・−・−・−・−・・−・CPU 12・−・・−・・−・・−RAM 13・−・・・−・−・・−・・ディスク14・・・−
・−−−−一−−−−−・−・キャラクタジェネレータ
15・−・−・・・・−・・−デイスプレィ1fy−一
−−・・−・−・・・・−・・・−7” IJ 7 タ
である。 @3図 第4図
FIG. 1 is a dot pattern diagram of pixel data showing the reduction process of the present invention, FIG. 2 is a dot pattern diagram when applied to half-width reduction of Chinese characters, and FIG. 3 is a circuit diagram showing an embodiment of the reduction circuit. FIG. 4 is a block diagram of a word processor to which the present invention is applied. In addition, in the symbols used in the drawings, 10.-----1.--Keyboard 1
1・−・−・−・−・・−・CPU 12・−・・−・・−・・−RAM 13・−・−・−・・−・・Disk 14・・・−
・−−−−1−−−−−・−・Character generator 15・−・−・・・・−・・−Display 1fy−1−−・・−・−・・・・−・−7 ” IJ 7 ta. @Figure 3 Figure 4

Claims (1)

【特許請求の範囲】 行方向及び列方向に配置された画素データを行方向或は
列方向に縮小する画素データの縮小方法において、 縮小する方向と直交する方向に連続するn本(n=2,
3…………)のラインを1本のラインに縮小する際に、
上記n本のラインの1ライン前又は後の画素データを参
照し、上記1ライン前又は後の画素に対し斜め方向に連
続する画素を上記n本のライン内で取り出す過程を備え
、 取り出された画素データを縮小結果に含めることを特徴
とする画素データの縮小方法。
[Claims] In a pixel data reduction method for reducing pixel data arranged in row and column directions in the row or column direction, ,
3. When reducing the line (…………) to one line,
Referring to pixel data one line before or after the n lines, the method includes a process of extracting pixels in the n lines that are continuous in a diagonal direction with respect to the pixels one line before or after the n lines; A pixel data reduction method characterized by including pixel data in a reduction result.
JP63043586A 1988-02-26 1988-02-26 Minification of pixel data Pending JPH01216865A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP63043586A JPH01216865A (en) 1988-02-26 1988-02-26 Minification of pixel data

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP63043586A JPH01216865A (en) 1988-02-26 1988-02-26 Minification of pixel data

Publications (1)

Publication Number Publication Date
JPH01216865A true JPH01216865A (en) 1989-08-30

Family

ID=12667886

Family Applications (1)

Application Number Title Priority Date Filing Date
JP63043586A Pending JPH01216865A (en) 1988-02-26 1988-02-26 Minification of pixel data

Country Status (1)

Country Link
JP (1) JPH01216865A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH03216359A (en) * 1990-01-23 1991-09-24 Oki Electric Ind Co Ltd Pattern reducing converter
EP0799708A1 (en) * 1996-04-05 1997-10-08 Seiko Epson Corporation High speed print method and ink jet recording apparatus using the same

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH03216359A (en) * 1990-01-23 1991-09-24 Oki Electric Ind Co Ltd Pattern reducing converter
EP0799708A1 (en) * 1996-04-05 1997-10-08 Seiko Epson Corporation High speed print method and ink jet recording apparatus using the same

Similar Documents

Publication Publication Date Title
JPH07111588A (en) Method for adjusting density of digital picture
EP0657838B1 (en) Image processing apparatus and method
JPH01216865A (en) Minification of pixel data
JP2655729B2 (en) Image processing apparatus and method
JPS59214893A (en) Character font reduction system
JPH08263041A (en) Edge fringing method and device for character and pattern
JPS6139672B2 (en)
JPH02217897A (en) Picture element density conversion system
JPH0560876B2 (en)
JP2591085B2 (en) Character reduction method
JPH01290449A (en) Dot font minification system
JPH0314066A (en) Japanese rendering character display and editing system
JPS61248756A (en) Fringing pattern forming apparatus of printing machine
JP2784059B2 (en) Method and apparatus for removing noise from binary image
JPH05298487A (en) Alphabet recognizing device
JPS60252945A (en) Reduction method of character pattern
JPH04342089A (en) Character input procedding method
JPS6188291A (en) Character font distortion correction system
JPS62116996A (en) Fine drawing of dot graphic
JPH05301378A (en) Printing system of dot matrix type printer
JPS626369A (en) Character string processing system
JPS60140293A (en) Display data drafting apparatus
JPH04328628A (en) Font data take-out system
JPH05113780A (en) Power varying method for charagter pattern
JPH05246075A (en) Bit map data-generator