JPH0261062B2 - - Google Patents
Info
- Publication number
- JPH0261062B2 JPH0261062B2 JP57113301A JP11330182A JPH0261062B2 JP H0261062 B2 JPH0261062 B2 JP H0261062B2 JP 57113301 A JP57113301 A JP 57113301A JP 11330182 A JP11330182 A JP 11330182A JP H0261062 B2 JPH0261062 B2 JP H0261062B2
- Authority
- JP
- Japan
- Prior art keywords
- pattern
- dots
- given
- dot
- matrix
- 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
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T3/00—Geometric image transformations in the plane of the image
- G06T3/40—Scaling of whole images or parts thereof, e.g. expanding or contracting
Landscapes
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Controls And Circuits For Display Device (AREA)
- Image Processing (AREA)
Description
【発明の詳細な説明】
(A) 発明の技術分野
本発明は、図形拡大・縮小処理システム、特
に、x軸方向についての変換を行つた上でy軸方
向についての変換を行いあわせて補正を行つた第
1ステツプ変換図形と、y軸方向についての変換
を行つた上でx軸方向についての変換を行いあわ
せて補正を行つた第2ステツプ変換図形とをドツ
ト対応に対比づけて最終的により良い変換図形を
得るようにした図形拡大・縮小処理システムに関
するものである。DETAILED DESCRIPTION OF THE INVENTION (A) Technical Field of the Invention The present invention relates to a figure enlargement/reduction processing system, and in particular, to a graphic enlargement/reduction processing system, in particular, a system that performs correction in the x-axis direction and then in the y-axis direction. The first step conversion figure that was performed and the second step conversion figure that was corrected by performing conversion in the y-axis direction and then in the x-axis direction are compared in terms of dot correspondence, and finally, The present invention relates to a figure enlargement/reduction processing system that obtains good converted figures.
(B) 技術の背景と問題点
従来からm×nドツトのマトリクスで与えられ
る原図形パターンからk×lドツトのマトリクス
で与えられる変換図形を得ることが行われてい
る。(B) Technical background and problems Conventionally, a converted figure given by a matrix of k×l dots is obtained from an original figure pattern given by a matrix of m×n dots.
このような図形の拡大または縮小処理に当つて
は、単純にx軸方向とy軸方向とに夫々拡大また
は縮小を行つただけでは、より良い変換図形を得
ることができない。 When enlarging or reducing such a figure, it is not possible to obtain a better converted figure by simply enlarging or reducing the figure in the x-axis direction and the y-axis direction, respectively.
(C) 発明の目的と構成
本発明は、上記の点を解決することを目的とし
ており、x軸方向の処理を行つた上でy軸方向の
処理を行つて補正を加えた図形と、y軸方向の処
理を行つた上でx軸方向の処理を行つて補正を加
えた図形とを対比して、最終的により良い変換図
形を得るようにすることを目的としている。そし
て、そのため本発明の図形拡大・縮小処理システ
ムは特許請求の範囲の欄記載の構成をもつことを
特徴としている。以下図面を参照しつつ説明す
る。(C) Object and Structure of the Invention The present invention aims to solve the above-mentioned points, and it is possible to create a figure that has been corrected by processing in the x-axis direction and then in the y-axis direction, and The purpose of this is to perform axial processing and then x-axis direction processing to compare a corrected figure to finally obtain a better converted figure. Therefore, the figure enlargement/reduction processing system of the present invention is characterized by having the structure described in the claims. This will be explained below with reference to the drawings.
(D) 発明の実施例
第1図は本発明に用いられる原図形パターンの
一例、第2図は本発明による処理の大要を説明す
る説明図、第3図は本発明の一実施例構成、第4
図および第5図は夫々本発明において行う補正処
理を説明する説明図を示す。(D) Embodiment of the invention FIG. 1 is an example of an original figure pattern used in the present invention, FIG. 2 is an explanatory diagram illustrating the outline of the processing according to the present invention, and FIG. 3 is a configuration of an embodiment of the present invention. , 4th
5 and 5 respectively show explanatory diagrams for explaining the correction processing performed in the present invention.
プリント出力などのために、従来から、例えば
第1図に示す如く30×30ドツトのマトリクスで与
えられる原図形パターン1を用意しておき、当該
原図形パターンを所望のk×lドツトのマトリク
スで与えられる図形に拡大または縮小してプリン
トすることが行われている。 For printing purposes, for example, an original figure pattern 1 given by a matrix of 30 x 30 dots is prepared as shown in Fig. 1, and the original figure pattern is converted into a desired matrix of k x l dots. A given figure is enlarged or reduced in size and printed.
今原図形がm×nドツトのマトリクスで与えら
れ、変換図形の大きさがk×lドツトのマトリク
スで与えられるべきものであるとすると、本発明
の場合、第2図A,Bに示す如き変換処理が行わ
れる。即ち、原図形パターンの例えば各横行のm
ドツト分が順次読出されてくる。仮に或る横行が
図示入力横行2として示す如きmドツトのもので
あり、当該横行上の座標Sとすると、第2図A図
示の如く、入力横行2上の各座標点について
S′=〔S×k/m〕 四捨五入
を行つて、入力横行をk/m倍したkドツトの途
中図形パターン用横行3を得る。 Assuming that the original figure is given by a matrix of m x n dots, and the size of the transformed figure is to be given by a matrix of k x l dots, in the case of the present invention, the size of the converted figure is given by a matrix of m × n dots. Conversion processing is performed. That is, for example, m of each row of the original figure pattern
The dots are sequentially read out. Suppose that a certain row has m dots as shown as input row 2, and if the coordinate on the row is S, then for each coordinate point on input row 2, as shown in FIG. 2A, S'=[S ×k/m] Rounding is performed to obtain k-dot middle figure pattern row 3, which is the input row multiplied by k/m.
このような処理がm×nドツトの原図形パター
ンについて行われると、k×nドツトの途中図形
パターン4が得られる。該途中図形パターン4に
ついて、nドツト分の各縦列が順に抽出される。
仮に或る縦列上の座標をLとすると、第2図B図
示の如く、当該縦列上の各座標点について
L′=〔L×l/n〕 四捨五入
を行つて、第2図B図示の如く、第1ステツプ変
換を行つた図形5が得られる。該図形5について
は後述する如く所定の補正が行われて第1ステツ
プ変換図形となると考えてよい。 When such processing is performed on the original figure pattern of m×n dots, an intermediate figure pattern 4 of k×n dots is obtained. Regarding the intermediate graphic pattern 4, each column of n dots is sequentially extracted.
If the coordinate on a certain column is L, then L'=[L×l/n] for each coordinate point on the column, as shown in FIG. 2B. After rounding off, , a figure 5 is obtained which has been subjected to the first step transformation. It may be considered that the figure 5 undergoes a predetermined correction as described later and becomes the first step converted figure.
本発明の場合、上記第2図に関連して述べた処
理と同様な処理が、最初にy軸方向にl/n倍さ
れた上で次いでx軸方向にk/m倍し、所定の補
正が行われる形で実行され、第2ステツプ変換図
形を得る。そして、第1ステツプ変換図形と第2
のステツプ変換図形とについて、ドツト対応に例
えばアンド論理をとるようにされて、所望の変換
図形を得るようにされる。 In the case of the present invention, a process similar to that described in connection with FIG. is executed in such a manner that a second step transformation figure is obtained. Then, the first step conversion figure and the second
With respect to the step conversion figure, for example, AND logic is applied to the dot correspondence to obtain a desired conversion figure.
第3図は本発明の一実施例構成を示している。
図中の符号1は原図形パターン、6は図形変換処
理プロセツサ、7は変換図形、8は第1軸変換部
であつて第2図図示の例で言えば第2図A図示の
変換を行うもの、9は補正処理部、10は第2軸
変換部であつて第2図図示の例で言えば第2図B
図示の変換を行うもの、11は補正処理部、12
は第1ステツプ変換図形が格納されるメモリ、1
3は第2ステツプ変換図形が格納されるメモリ、
14はアンド論理部を表わしている。 FIG. 3 shows the configuration of an embodiment of the present invention.
In the figure, reference numeral 1 is the original figure pattern, 6 is the figure conversion processor, 7 is the converted figure, and 8 is the first axis converter, which in the example shown in Fig. 2 performs the conversion shown in Fig. 2A. 9 is a correction processing section, 10 is a second axis conversion section, and in the example shown in FIG. 2, it is shown in FIG.
11 is a correction processing unit that performs the illustrated conversion; 12
is a memory in which the first step conversion figure is stored, 1
3 is a memory in which the second step conversion figure is stored;
14 represents an AND logic section.
図形変換処理プロセツサ6は、第1ステツプに
おいて、例えば第2図図示の場合の如く、x軸に
ついての変換を行つた上でy軸についての変換を
行い、得られた第1ステツプ変換図形をメモリ1
2に格納する。次いで第2ステツプにおいて、y
軸についての変換を行つた上でx軸についての変
換を行い、得られた第2ステツプ変換図形をメモ
リ13に格納する。 In the first step, the figure conversion processor 6 performs conversion on the x-axis and then on the y-axis, as shown in FIG. 2, and stores the obtained first step converted figure in the memory. 1
Store in 2. Then in the second step, y
After performing the transformation on the axis, the transformation on the x-axis is performed, and the obtained second step transformation figure is stored in the memory 13.
各ステツプにおける第1軸についての変換は、
図示第1軸変換部8において行われる。この処理
結果において、上述の
S′=〔S×k/m〕 四捨五入
の如く四捨五入が行われることのために、縮小処
理の際に、入力横行中に存在していた黒ドツトが
消滅してしまうことが生じる。このような場合、
第3図図示の補正処理部9が、この状態を検出し
て少なくとも1ドツト分の黒ドツトを附加するよ
うにする。 The transformation about the first axis at each step is
This is performed in the illustrated first axis conversion section 8. In this processing result, because rounding is performed as in the above-mentioned S' = [S x k/m] rounding, the black dots that existed in the input row disappear during the reduction process. Something happens. In such a case,
The correction processing unit 9 shown in FIG. 3 detects this state and adds at least one black dot.
このようにして得られた途中図形パターンは、
第3図図示の第2軸変換部10に導びかれ、第2
図B図示の如き処理が行われる。このとき、特に
縮小処理時に上述の如く縦列上の黒ドツトや白ド
ツトが消滅する場合について補正が行われるが、
図示補正処理部11は当該補正のみでなく、次の
如き補正を行う。 The intermediate figure pattern obtained in this way is
The second shaft is guided to the second axis converting section 10 shown in FIG.
Processing as shown in Figure B is performed. At this time, corrections are made especially when black dots or white dots on columns disappear as described above during the reduction process.
The illustrated correction processing unit 11 performs not only this correction but also the following corrections.
第2図B図示の如く、一旦第1軸の方向に拡大
された図形4について、第2軸の方向に拡大が行
われるとき、非所望に大きい階段状部分が生じる
ことがある。このような階段状部分について平滑
化を行うために、第4図A図示の4つの形状に注
目して補正を行うようにしている。即ち、第2図
B図示の如き途中図形パターン4について1つの
横行が複数個の横行に拡大されるとき、第4図A
図示の第1形状15、第4図B図示の第2形状1
6、第4図C図示の第3形状、第4図D図示の第
4形状に着目する。 As shown in FIG. 2B, when the graphic 4, which has been once enlarged in the first axis direction, is enlarged in the second axis direction, an undesirably large stepped portion may occur. In order to smooth out such a step-like portion, correction is performed by paying attention to the four shapes shown in FIG. 4A. That is, when one horizontal row is expanded into a plurality of horizontal rows for the midway figure pattern 4 as shown in FIG. 2B, FIG. 4A
First shape 15 shown, second shape 1 shown in FIG. 4B
6. Pay attention to the third shape shown in FIG. 4C and the fourth shape shown in FIG. 4D.
第1形状15の場合、上記途中図形パターンに
おいて図示DSおよび/またはDLが1ドツトに等
しい場合には左端および/または右端を補正す
る。即ち例えば第4図A右側に例示する如く、ド
ツト20を省略するようにして階段状部分を実質
上なくしてゆくようにする。 In the case of the first shape 15, if the illustrated DS and/or DL in the intermediate figure pattern is equal to one dot, the left end and/or right end is corrected. That is, for example, as illustrated on the right side of FIG. 4A, the dots 20 are omitted to substantially eliminate the stepped portion.
第2形状16の場合においても同様であり、図
示DSおよび/またはDLが1ドツトに等しい場合
には左端および/または右端にドツト19を付加
し補正する。この状態が第4図B右側に例示され
ている。 The same applies to the second shape 16, and when the illustrated DS and/or DL is equal to one dot, a dot 19 is added to the left end and/or right end for correction. This state is illustrated on the right side of FIG. 4B.
第3形状17の場合、上記途中図形パターンに
おいて図示DSおよびDLが共に1ドツト以上であ
る場合には、左端と右端とを一緒に補正する。補
正は大略第4図C右側に例示する如き形で行われ
る。 In the case of the third shape 17, if both the illustrated DS and DL in the intermediate figure pattern are one dot or more, the left end and right end are corrected together. The correction is performed approximately in the manner illustrated on the right side of FIG. 4C.
第4形状18の場合においても同様であり、図
示DSおよびDLが共に1ドツト以上である場合に
は、左端と右端とを一緒に補正する。 The same applies to the fourth shape 18, and if both DS and DL shown in the figure are one dot or more, the left end and right end are corrected together.
上記の如く4つの形状15ないし18を要補正
形状として注目したが、実際には上記要補正形状
が連結されて、第4図EないしG図示の如き形態
で現われることがあるが、これらは夫々の形態が
個別に存在するものとして取扱われる。 As mentioned above, we focused on the four shapes 15 to 18 as the shapes requiring correction, but in reality, the above-mentioned shapes requiring correction may be connected and appear in the form shown in FIG. The forms of are treated as existing individually.
また更に第5図AないしCに典型的に現われて
いる如く、斜め線をもつ原図形パターンを(k/
m)×(l/n)倍に拡大する場合にも、非所望な
形で階段状部分が生じることがある。この場合に
も、図示符号19の如く付加し、符号20の如く
削除する補正が行われる。 Furthermore, as typically shown in FIGS. 5A to 5C, the original figure pattern with diagonal lines (k/
Even when the image is enlarged by a factor of m)×(l/n), an undesired step-like portion may occur. In this case as well, corrections such as addition as indicated by reference numeral 19 and deletion as indicated by reference numeral 20 are performed.
第4図および第5図に示した如き補正は、第3
図図示の補正処理部11において行われるものと
考えてよく。上記要補正形状の検出は予め定めら
れたパターンが現われたときをもつて行われるも
のと考えてよい。 The corrections shown in FIGS. 4 and 5 are
It may be considered that the correction processing section 11 shown in the figure performs the correction. It may be considered that the detection of the shape requiring correction is performed when a predetermined pattern appears.
上述の如くして得られた第1ステツプ変換図形
と第2ステツプ変換図形とは、夫々メモリ12と
13とに格納され、アンド論理部14によつてド
ツト対応に比較され、一致したドツトを抽出して
変換図形7が得られる。 The first step conversion figure and second step conversion figure obtained as described above are stored in the memories 12 and 13, respectively, and are compared dot-wise by the AND logic section 14, and matching dots are extracted. A converted figure 7 is obtained.
(E) 発明の効果
以上説明した如く、本発明によれば、必要とす
る補正処理を附加することも可能であり、x→y
の順に行つた拡大または縮小処理による結果に生
じているかも知れない非所望な態様と、y→xの
順に行つた拡大または縮小処理による結果に生じ
ているかも知れない非所望な態様とを、例えばア
ンド論理によつて削除することなどが可能であ
り、より良い圧縮図形を得ることができる。(E) Effects of the invention As explained above, according to the present invention, it is possible to add necessary correction processing, and
Undesirable aspects that may occur as a result of enlargement or reduction processing performed in the order of y and undesired aspects that may occur as a result of enlargement or reduction processing performed in the order of y → x, For example, it is possible to delete it using AND logic, and a better compressed figure can be obtained.
第1図は本発明に用いられる原図形パターンの
一例、第2図は本発明による処理の大要を説明す
る説明図、第3図は本発明の一実施例構成、第4
図および第5図は夫々本発明において行う補正処
理を説明する説明図を示す。
図中、1は原図形パターン、4は途中図形パタ
ーン、6は図形変換処理プロセツサ、7は変換図
形、8は第1軸変換部、9,11は夫々補正処理
部、10は第2軸変換部、12,13は夫々メモ
リ、14はアンド論理部を表わす。
FIG. 1 is an example of the original figure pattern used in the present invention, FIG. 2 is an explanatory diagram explaining the outline of the processing according to the present invention, FIG. 3 is the configuration of an embodiment of the present invention, and FIG.
5 and 5 respectively show explanatory diagrams for explaining the correction processing performed in the present invention. In the figure, 1 is an original figure pattern, 4 is an intermediate figure pattern, 6 is a figure conversion processing processor, 7 is a converted figure, 8 is a first axis conversion section, 9 and 11 are respective correction processing sections, and 10 is a second axis conversion 12 and 13 are memories, respectively, and 14 is an AND logic section.
Claims (1)
形パターンを読出してk×lドツトのマトリクス
で与えられる変換図形に拡大または縮小を行う図
形拡大・縮小処理システムにおいて、上記原図形
パターンの各横行mドツトを読出して当該mドツ
ト上の座標S点のパターンを S′=〔S×k/m〕 四捨五入 で与えられる座標位置に投影し、その上で当該投
影処理によつて得られたk×nドツトのマトリク
スで与えられる途中図形パターンについて各縦列
nドツトを抽出し、当該nドツト上の座標L点の
パターンを L′=〔L×l/n〕 四捨五入 で与えられる座標位置に投影してk×lドツトの
マトリクスで与えられる第1ステツプ変換図形を
得る第1変換処理を実行すると共に、上記原図形
パターンの各縦列nドツトを読出して当該nドツ
ト上の座標L点のパターンを L′=〔L×l/n〕 四捨五入 で与えられる座標位置に投影し、その上で当該投
影処理によつて得られたm×lドツトのマトリク
スで与えられる途中図形パターンについて各横行
mドツトを抽出し、当該mドツト上の座標S点の
パターンを S′=〔S×k/m〕 四捨五入 で与えられる座標位置に投影してk×lドツトの
マトリクスで与えられる第2ステツプ変換図形を
得る第2変換処理を実行するよう構成されてな
り、上記第1ステツプ変換図形について行つた補
正結果と上記第2ステツプ変換図形について行つ
た補正結果とをドツト対応に対比せしめて最終補
正が行われた上記変換図形を得るようにしたこと
を特徴とする図形拡大・縮小処理システム。[Claims] 1. A figure enlargement/reduction processing system that reads out an original figure pattern given by a matrix of m×n dots and enlarges or reduces it to a converted figure given by a matrix of k×1 dots. Read each horizontal m dot of the pattern, project the pattern of the coordinate S point on the m dot into the coordinate position given by S' = [S x k/m] rounding off, and then calculate the result obtained by the projection process. Extract n dots in each column for the intermediate figure pattern given by the matrix of k × n dots, and calculate the pattern of the coordinate L point on the n dot by L' = [L × l / n] The coordinate position given by rounding off At the same time, a first step conversion process is executed to obtain a first step converted figure given by a matrix of k×l dots, and at the same time, each n dot in each column of the original figure pattern is read out and the coordinate L point on the n dot is calculated. Project the pattern to the coordinate position given by L'=[L×l/n] rounding off, and then calculate each horizontal line m for the intermediate figure pattern given by the matrix of m×l dots obtained by the projection process. A second step transformation figure is obtained by extracting the dots and projecting the pattern of the coordinates S points on the m dots onto the coordinate positions given by S' = [S x k/m] rounding off, and giving a matrix of k x l dots. The final correction is performed by comparing the correction results for the first step converted figure and the correction results for the second step converted figure in dot correspondence. A figure enlargement/reduction processing system characterized in that the converted figure is obtained.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP57113301A JPS593680A (en) | 1982-06-30 | 1982-06-30 | Figure enlargement and reduction processing system |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP57113301A JPS593680A (en) | 1982-06-30 | 1982-06-30 | Figure enlargement and reduction processing system |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPS593680A JPS593680A (en) | 1984-01-10 |
| JPH0261062B2 true JPH0261062B2 (en) | 1990-12-19 |
Family
ID=14608742
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP57113301A Granted JPS593680A (en) | 1982-06-30 | 1982-06-30 | Figure enlargement and reduction processing system |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPS593680A (en) |
Families Citing this family (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US4885786A (en) * | 1984-10-24 | 1989-12-05 | International Business Machines Corporation | Method for enlarging an image stored in run representation form |
| JPH0391799A (en) * | 1989-09-05 | 1991-04-17 | Canon Inc | Pattern generating device and printer using the same |
-
1982
- 1982-06-30 JP JP57113301A patent/JPS593680A/en active Granted
Also Published As
| Publication number | Publication date |
|---|---|
| JPS593680A (en) | 1984-01-10 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JP2964841B2 (en) | Data converter | |
| JPH01307878A (en) | Pattern recognizing device | |
| US5237624A (en) | Reproduction of image pattern data | |
| JPH0261062B2 (en) | ||
| JP2901856B2 (en) | White plate figure correction method | |
| JPH0351894A (en) | Information processing device equipped with a character pattern generation function using vector fonts | |
| JP2550418B2 (en) | Outline character correction method | |
| JPH06100906B2 (en) | Character processing method | |
| JP2569049B2 (en) | How to modify characters | |
| JPS6138981A (en) | Pattern scaling method | |
| JP3115701B2 (en) | Image processing device | |
| JP3024479B2 (en) | Data converter | |
| JP3029215B2 (en) | How to modify image data | |
| JP2797660B2 (en) | Pixel correction method | |
| JP3065855B2 (en) | Image processing device | |
| JP2841631B2 (en) | Data converter | |
| JPH0676035A (en) | Image data processing system | |
| JP3338484B2 (en) | Outline font transformation device | |
| JPS63188278A (en) | Contour extracting system | |
| JP3061542B2 (en) | Outline figure transformation device | |
| JPS63169171A (en) | Reduced picture forming method | |
| JPH09179542A (en) | Character image data output method and apparatus | |
| JPH087794B2 (en) | Image processing method | |
| JPH09282474A (en) | Gradational image generating method | |
| JPH0584520B2 (en) |