Nothing Special   »   [go: up one dir, main page]

JPS6138981A - Pattern multiplication - Google Patents

Pattern multiplication

Info

Publication number
JPS6138981A
JPS6138981A JP15868684A JP15868684A JPS6138981A JP S6138981 A JPS6138981 A JP S6138981A JP 15868684 A JP15868684 A JP 15868684A JP 15868684 A JP15868684 A JP 15868684A JP S6138981 A JPS6138981 A JP S6138981A
Authority
JP
Japan
Prior art keywords
pattern
pixel
pixels
data
converted pixel
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
JP15868684A
Other languages
Japanese (ja)
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.)
Canon Inc
Original Assignee
Canon Inc
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Canon Inc filed Critical Canon Inc
Priority to JP15868684A priority Critical patent/JPS6138981A/en
Publication of JPS6138981A publication Critical patent/JPS6138981A/en
Pending legal-status Critical Current

Links

Landscapes

  • Controls And Circuits For Display Device (AREA)
  • Image Processing (AREA)
  • Digital Computer Display Output (AREA)
  • Editing Of Facsimile Originals (AREA)

Abstract

(57)【要約】本公報は電子出願前の出願データであるた
め要約のデータは記録されません。
(57) [Summary] This bulletin contains application data before electronic filing, so abstract data is not recorded.

Description

【発明の詳細な説明】 [技術分野] 本発明は、ドツトの集合で形成されるパターンを拡大、
縮小して出力する方法に関するものである。
[Detailed Description of the Invention] [Technical Field] The present invention relates to enlarging a pattern formed by a set of dots,
This relates to a method of reducing and outputting.

[従来技術] 従来、文字フォントや画像等のパターンの拡大縮小法と
しては、間引き挿入法、SPC法、9分割法、投影法等
が知られているが、これらの方法による変換画像は縮小
時に「ヌケJが生じたり、平行な2木線の1本のみが消
失したり、又拡大時には斜線部分が階段状になり、不自
然さを生じていた。
[Prior Art] Conventionally, methods for enlarging and reducing patterns such as character fonts and images include the thinning and insertion method, the SPC method, the 9-division method, and the projection method. ``A missing J appeared, only one of the two parallel tree lines disappeared, and when enlarged, the diagonal line became step-like, creating an unnatural appearance.

[目的] 本発明はパターンの縮小時には「ヌケ」を減少し、拡大
時には平滑化により斜線部の不自然さを減少することで
、高品位の拡大又は縮小パターンを得ることが出来るパ
ターン変倍方法を提供するものである。
[Objective] The present invention provides a pattern scaling method that can obtain a high-quality enlarged or reduced pattern by reducing "missing parts" when reducing the pattern, and reducing unnaturalness of diagonal areas by smoothing when enlarging the pattern. It provides:

[実施例] 第1図はLXLを一画素とする原フォントの総画素(図
では16画素)とL′×L′を一画素とする変換後の総
画素(図では9画素)が大略等面積を有する様に縦方向
、横方向共に374倍に縮小した場合の原画素の中心(
@1点で示す)と変換画素の中心(×印で示す)の位置
関係を示した図である。又実線が原画素の境界で、破線
が変換後の画素の境界である。黒画素を黒丸゛・゛、白
画素を白丸“O°′で表わす時、本実施例においては任
意の変換画素Pを囲むに、L、M、N及びこれらの原画
素に、L、M、Nで形成した矩形の外側の原画素の状態
が第2図に示すようなパターンの場合に、フォントの輪
郭が破線で表わされるとみなす。そして変換画素Pが輪
郭の内側(第2図の斜線部分)に存在するなら、該当変
換画素を黒画素とし、輪郭の外側に存在するなら白画素
とする。第2図に示したような平滑化パターンを第3図
と第4図に示すように44通り設定する。更に、上記パ
ターンのいずれにも相当しない場合は、第5図に示す1
2通りのパターンについて同様の処置を行なう。ここで
、第3図(g)から(X)のパターンは直交部分である
とみなし平滑化しない場合である。漢字の場合、直交部
分と斜線部分とが混在しているため、斜線部分のみに平
滑化を図ることは文字品位の劣化を防ぐ点で有効である
。また、複数の傾きの輪郭線に対して平滑化を図れるよ
うにしたことによる文字品位の劣化防止に対する効果は
大きい。
[Example] Figure 1 shows that the total pixels of the original font (16 pixels in the figure) where LXL is one pixel and the total pixels after conversion (9 pixels in the figure) where L'×L' is one pixel are approximately equal. The center of the original pixel when it is reduced by 374 times both vertically and horizontally to have the same area
2 is a diagram showing the positional relationship between the center of the converted pixel (indicated by an x mark) and the center of the converted pixel (indicated by an x mark). Also, the solid line is the boundary of the original pixel, and the broken line is the boundary of the converted pixel. When a black pixel is represented by a black circle ゛・゛ and a white pixel is represented by a white circle "O°', in this embodiment, surrounding any converted pixel P are L, M, N, and these original pixels are L, M, If the state of the original pixels outside the rectangle formed by If the pixel exists outside the contour, the corresponding converted pixel is set as a black pixel, and if it exists outside the contour, the corresponding converted pixel is set as a white pixel. 44 patterns are set.Furthermore, if it does not correspond to any of the above patterns, set 1 as shown in Figure 5.
Similar treatment is performed for the two patterns. Here, the patterns shown in FIGS. 3(g) to (X) are considered to be orthogonal portions and are not smoothed. In the case of kanji, since orthogonal portions and diagonal portions coexist, smoothing only the diagonal portions is effective in preventing deterioration of character quality. Moreover, the ability to smooth contour lines having a plurality of inclinations has a great effect on preventing deterioration of character quality.

第6図に領域の分割を示す、ここで、領域45は領域7
と21、及び11と12の境界であり、46は18と3
2.22と33の境界、47は29と43.33と44
の境界、48は40と10.44と11の境界、及び4
9は11と22.33と44の境界である。各領域に対
する論理式は第3図、第4図、第5図の関係を満たすよ
うに決める。境界上は隣接する領域における値の論理和
とする。
FIG. 6 shows the area division, where area 45 is area 7.
and 21, and 11 and 12, and 46 is the boundary between 18 and 3.
2. The boundary between 22 and 33, 47 is 29 and 43. 33 and 44
boundary, 48 is 40 and 10.44 and 11 boundary, and 4
9 is the boundary between 11 and 22, 33 and 44. The logical expressions for each region are determined so as to satisfy the relationships shown in FIGS. 3, 4, and 5. On the boundary, the values in adjacent areas are logically summed.

上述した変換画素の周囲原画素が前記第3図〜第5図の
いずれのパターンに該当するかによって変換画素の黒白
値を決める処理を全ての変換画素について行う事により
、拡大、縮小処理を終える。
The process of determining the black and white values of the converted pixel according to which of the patterns shown in FIGS. 3 to 5 the surrounding original pixels of the converted pixel correspond to as described above is performed for all converted pixels, thereby completing the enlargement and reduction processing. .

上記処理を実際に回路で実現する場合の実施例を第7図
、第8図に示す、キーボードVlにより文字コードを指
定するとキャラクタジェネレータv2から拡大縮小部v
7ヘマトリクス状のフォントデータが移動し、拡大縮小
処理の後、プリンタV6より出力される。ROMV3に
格納されているプログラム及びRAMV4、マイクロプ
ロセッサv5を用いて上述の制御を行っている。拡大縮
小部v7を第8図に示す。キャラクタジェネレータv2
からのフォントのパラレルデータをインタフェース部V
IOでシリアルデータに変換する。
An example in which the above processing is actually realized by a circuit is shown in FIGS. 7 and 8. When a character code is specified using the keyboard Vl, the scaling section v
The font data in a 7-heta matrix is moved, and after being enlarged and reduced, it is output from the printer V6. The above control is performed using a program stored in ROMV3, RAMV4, and microprocessor v5. The enlarging/reducing section v7 is shown in FIG. character generator v2
Parallel data of fonts from interface section V
Convert to serial data using IO.

ラインバッファ部Vllでは4ライン分のデータを保持
し、変換画素の周囲16原画素のデータを取り出す。パ
ターン判定部V12において、第3図、第4図、第5図
に示したパターンのどれに該当するかを判定し、パター
ン信号S4を出力する。データ確定部V13では変換画
素が第6図に示すどの領域に属しているかを示す慴域信
号とパターン信号S4との論理演算により、変換画素の
黒白値を決定する。制御部V15の中には変倍率に応じ
た領域信号のテーブルが格納されており、クロックSl
に同期してこれを読み出してデータ確定部V13に送り
込む。インタフェース部V14でシリアルデータなパラ
レルデータに変換し、データバスv9へ出力する。
The line buffer section Vll holds data for 4 lines and extracts data of 16 original pixels surrounding the converted pixel. The pattern determining section V12 determines which of the patterns shown in FIGS. 3, 4, and 5 corresponds to the pattern signal S4, and outputs the pattern signal S4. The data determination unit V13 determines the black and white value of the converted pixel by a logical operation of the pattern signal S4 and the gray area signal indicating which area the converted pixel belongs to shown in FIG. A table of area signals corresponding to the magnification ratio is stored in the control unit V15.
This is read out in synchronization with the data determining section V13. The interface unit V14 converts the serial data into parallel data and outputs it to the data bus v9.

第9図に上記実施例の制御フローチャートを示す。FIG. 9 shows a control flowchart of the above embodiment.

ステップS1では先ず送られてきた命令が変倍命令か否
かを判別し、変倍命令のときはステップS2により変倍
率をRAMV4に格納する。次いでステップS3により
変倍命令と共に送られてきた文字コードでCG 、V2
をアクセスし、CG。
In step S1, it is first determined whether or not the received instruction is a variable magnification instruction, and if it is a variable magnification instruction, the variable magnification is stored in RAMV4 in step S2. Next, in step S3, the character code sent with the scaling command is CG, V2.
Access CG.

V2より読み出したフォントデータを拡大縮小部v7に
送り込む。ステップS5によりRAMV4に格納した変
倍率を読み出して、変倍率に応じて制御部V15の中の
テーブルをアクセスする。ステップS6でラインバッフ
ァVllに4ライン分のデータを保持し、この内16画
素のデータを取り出してパターン判定部V12へ送り、
予め格納しである第3図〜第5図に示す様なパターンと
比較してパターンの種類を判定し、パターンの種類を示
すパターン信号を送出する。データ確定部V13におい
ては送られてきたパターン信号と制御部V15から送出
された領域信号とにより変換画素を白とすべきか黒とす
べきかを決定する(ステップS8)。ステップS9によ
り全ての変換画素の白黒を決定したか否かを判別し、全
てが終っていないときはステップS5に戻り、終ってい
るときは変換画素をプリンタ■6に出力し、不図示のプ
リントバッファに格納してプリントを実行する。
The font data read from V2 is sent to the enlargement/reduction section v7. The variable magnification stored in RAMV4 in step S5 is read out, and the table in the control unit V15 is accessed according to the variable magnification. In step S6, data for 4 lines is held in the line buffer Vll, and 16 pixel data from this is extracted and sent to the pattern determination section V12.
The type of pattern is determined by comparing it with previously stored patterns as shown in FIGS. 3 to 5, and a pattern signal indicating the type of pattern is sent out. The data determining unit V13 determines whether the converted pixel should be white or black based on the sent pattern signal and the area signal sent from the control unit V15 (step S8). In step S9, it is determined whether or not all converted pixels have been determined to be black or white. If not all have been determined, the process returns to step S5. If all have been determined, the converted pixels are output to the printer 6 and printed (not shown). Store in buffer and print.

上述した変換処理を行なう際、変換画素の周囲W、一画
素囲まれる平面を部分債城に分割し、各領域に対して周
囲原画素の黒白値による論理演算式を設定しておく方法
も考えられる。前記方法では、各変換画素が存在する領
域と周囲原画素の黒白値を与えれば、領域に対応する論
理演算で変換画素の黒白値が決定され、拡大縮小を行う
ことができる。
When performing the above-mentioned conversion process, it is also possible to divide the surrounding W of the converted pixel, a plane surrounded by one pixel, into partial bonds, and set a logical operation formula based on the black and white values of the surrounding original pixels for each area. It will be done. In the above method, if the area in which each converted pixel exists and the black-and-white values of surrounding original pixels are given, the black-and-white values of the converted pixel are determined by logical operations corresponding to the area, and scaling can be performed.

[効果] 以上述べた方法により、拡大縮小等の変倍を行なうと縮
小時の「ヌケJが殆ど見当らない。また拡大時、黒画素
が直行している部分は、直交したまま拡大され、斜線部
分は滑らかな斜線となって拡大され不自然が解消される
効果がある。特に漢字フォントに関して高品位の拡大縮
小文字を得る車が可能である。
[Effect] If you perform scaling such as scaling using the method described above, you will hardly see any missing J when scaling down.Also, when enlarging, areas where black pixels are orthogonal will be enlarged while remaining orthogonal, and diagonal lines will appear. This has the effect of eliminating unnaturalness by enlarging the part as a smooth diagonal line.In particular, it is possible to obtain high-quality enlarged/reduced characters for Kanji fonts.

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

第1図は原画素と変換画素の位置関係を示した図、 第2図は平滑化パターンの一例を示した図、第3図、第
4図及び第5図は平滑化パターンを示す図、 第6図は平滑化パターンの輪郭線を同一図面上に示した
図、 第7図は本発明を適用したパターン変倍装置の実施例を
示した図、 第8図は第7図中の拡大縮小部をより詳細に示した因、 第9図は上記実施例の制御フローチャートである。 ここで、■1・・・キーボード入力装置、V2・・・キ
ャラクタジェネレータ、v3・・・ROM、V4・・・
RAM、V5・・・マイクロプロセッサ、v6・・・プ
リンタ、v7・・・拡大縮小部、v8・・・アドレスバ
ス、v9・・・データバス、VIO・・・インタフェー
ス部、Vll・・・ラインバッファ部、v12・・・パ
ターン判定部、V13・・・データ確定部、V14・・
・インタフェース部、V15・・・制御部である。 第1in 第2図 7/ ・Q 第3図 第4図 第5図 第6図
FIG. 1 is a diagram showing the positional relationship between original pixels and converted pixels, FIG. 2 is a diagram showing an example of a smoothing pattern, and FIGS. 3, 4, and 5 are diagrams showing smoothing patterns. Fig. 6 is a diagram showing the outline of a smoothing pattern on the same drawing, Fig. 7 is a diagram showing an embodiment of a pattern magnification device to which the present invention is applied, and Fig. 8 is an enlarged view of Fig. 7. FIG. 9 is a control flowchart of the above embodiment, showing the reduction section in more detail. Here, ■1...Keyboard input device, V2...Character generator, v3...ROM, V4...
RAM, V5...Microprocessor, v6...Printer, v7...Enlargement/reduction section, v8...Address bus, v9...Data bus, VIO...Interface section, Vll...Line buffer section, v12...pattern judgment section, V13...data confirmation section, V14...
-Interface section, V15...control section. 1 in Fig. 2 7/ ・Q Fig. 3 Fig. 4 Fig. 5 Fig. 6

Claims (1)

【特許請求の範囲】[Claims] ドットマトリクスで表わされる原フォントの総画素と変
換後の総画素が大略等面積を占有するようにして変換画
素の周囲原画素のパターンを調べ、記憶しておいたパタ
ーンと比較することで変換画素を決定することを特徴と
したパターン変倍方法。
The converted pixel is determined by checking the pattern of the original pixels around the converted pixel so that the total pixels of the original font represented by a dot matrix and the total pixels after conversion occupy approximately the same area, and comparing it with the memorized pattern. A pattern scaling method characterized by determining .
JP15868684A 1984-07-31 1984-07-31 Pattern multiplication Pending JPS6138981A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP15868684A JPS6138981A (en) 1984-07-31 1984-07-31 Pattern multiplication

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP15868684A JPS6138981A (en) 1984-07-31 1984-07-31 Pattern multiplication

Publications (1)

Publication Number Publication Date
JPS6138981A true JPS6138981A (en) 1986-02-25

Family

ID=15677137

Family Applications (1)

Application Number Title Priority Date Filing Date
JP15868684A Pending JPS6138981A (en) 1984-07-31 1984-07-31 Pattern multiplication

Country Status (1)

Country Link
JP (1) JPS6138981A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS61170871A (en) * 1985-01-25 1986-08-01 Yokogawa Electric Corp Expansion/reduction method of picture data
JPS62196976A (en) * 1986-02-25 1987-08-31 Nippon Telegr & Teleph Corp <Ntt> Reduction and conversion method for picture
JPH01256869A (en) * 1988-04-07 1989-10-13 Fujitsu Ltd Method and apparatus for magnifying picture
JPH0316377A (en) * 1989-06-14 1991-01-24 Kokusai Denshin Denwa Co Ltd <Kdd> Method and apparatus for reducing binary picture

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS61170871A (en) * 1985-01-25 1986-08-01 Yokogawa Electric Corp Expansion/reduction method of picture data
JPS62196976A (en) * 1986-02-25 1987-08-31 Nippon Telegr & Teleph Corp <Ntt> Reduction and conversion method for picture
JPH01256869A (en) * 1988-04-07 1989-10-13 Fujitsu Ltd Method and apparatus for magnifying picture
JPH0316377A (en) * 1989-06-14 1991-01-24 Kokusai Denshin Denwa Co Ltd <Kdd> Method and apparatus for reducing binary picture

Similar Documents

Publication Publication Date Title
US4680720A (en) Dot interpolation control system
JP2528376B2 (en) Image contour correction method
JPH07322057A (en) Increase of resolution of binary input picture and its increasing device together with improvement of appearance ofbinary input picture
JPS6138981A (en) Pattern multiplication
US5519412A (en) Pattern processing method
JPS6024584A (en) Bold character creation method
JPS6083852A (en) Character pattern emphasis control system
US5812743A (en) Image recording system
US5475807A (en) Character processing apparatus
JP2730399B2 (en) Image data reduction device
JPH0256874B2 (en)
JPH04122991A (en) Composing method for image and character
JPH0661960B2 (en) Dot interpolation control device
US5592570A (en) Image processing method
JPH08263041A (en) Edge fringing method and device for character and pattern
JPH0137748B2 (en)
JP3244411B2 (en) Character image data generation method and device, and character output method and device
JPS6157987A (en) Character pattern accentuation control system
JP2633566B2 (en) Image processing method
JPS60229766A (en) Output control system of interpolation dot pattern
JPS6138980A (en) Pattern multiplication
JPH0239361A (en) Document processor
JPH03103894A (en) Halftone font generation method
JPS6083851A (en) Character pattern emphasis control system
JPH09120280A (en) Character image data generation method and device and character output method and device