JPS6348064A - Variable power system for picture data - Google Patents

Variable power system for picture data

Info

Publication number
JPS6348064A
JPS6348064A JP19176086A JP19176086A JPS6348064A JP S6348064 A JPS6348064 A JP S6348064A JP 19176086 A JP19176086 A JP 19176086A JP 19176086 A JP19176086 A JP 19176086A JP S6348064 A JPS6348064 A JP S6348064A
Authority
JP
Japan
Prior art keywords
scaling
data
signal
memory
variable power
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
JP19176086A
Other languages
Japanese (ja)
Inventor
Yukio Sakano
坂野 幸男
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.)
Ricoh Co Ltd
Original Assignee
Ricoh Co Ltd
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 Ricoh Co Ltd filed Critical Ricoh Co Ltd
Priority to JP19176086A priority Critical patent/JPS6348064A/en
Publication of JPS6348064A publication Critical patent/JPS6348064A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To enable a variable power through a real-time processing by constituting a variable power control information by data which have been separated into the data to show the relation of the number of the sampling spots of the picture data and the data to show the relation of the positions of the sampling spots before and after the variable power. CONSTITUTION:The variable power control information is constituted by the data which have been separated into the data to show the relation of the number of the sampling spots of the picture data and the data so show the relation of the positions of the sampling spots before and after the variable power. An Xn, expressed by a formula against a variable power rate alpha(%), shows the position of the data after the variable power against the data before the variable power. For instance, the alphashows the number of the sampling spots after the variable power against 100 number of the sampling spots before the variable power, and the Xn has an information of the relation of the number and the relation of the positions of the sampling spots before and after the variable power within it, and for a part of more than 100 number of the sampling spots before the variable power, the consideration of the repeat by every 100 number is enough. Consequently, the variable power through the real-time processing can be executed.

Description

【発明の詳細な説明】 (技術分野) 本発明はWJaデータの変倍方式に関し、より詳細には
、デジタル化された画像データをデジタル論理処理によ
って変倍するデジタル複写機、ファクシミリ、イメージ
スキャナ、画像編集システム等に適用し得る画像データ
の変倍方式に関するものである。
DETAILED DESCRIPTION OF THE INVENTION (Technical Field) The present invention relates to a scaling method for WJa data, and more specifically, to a digital copying machine, facsimile, image scanner, etc. that scales digitized image data by digital logic processing. This invention relates to an image data scaling method that can be applied to image editing systems and the like.

(従来技術) デジタル画像処理装置等における画像データの変倍方式
には従来、光学的変倍法、2値画像の間引き、挿入によ
る変倍法、補間関数を用いた変倍法(テーブル方式によ
る演算)等が採用されている、しかしながら、これらの
変倍法のうち、光学的変倍法は機械的な構造上の理由、
すなわち装置の大きさ等および光学的な理由、すなわち
光源の明るさ、結像のボケ等のため広範囲の変倍率が困
難である。また、2値画像の間引き、挿入による変倍法
においては画像データの歪みが大きい、変倍の精度が良
くない等の欠点がある。さらに、補間関数を用いた変倍
法では、何種類かの固定変倍には対応できるが、任意倍
率で広範囲の変倍に対応するのは困難である。
(Prior art) Conventional scaling methods for image data in digital image processing devices, etc. include optical scaling, binary image thinning, insertion-based scaling, and scaling using an interpolation function (table method). However, among these magnification methods, the optical magnification method has mechanical structural reasons,
That is, it is difficult to vary the magnification over a wide range due to the size of the device and optical reasons, such as the brightness of the light source and the blur of the image. Further, scaling methods based on thinning and insertion of binary images have drawbacks such as large distortion of image data and poor scaling accuracy. Furthermore, although the scaling method using an interpolation function can handle several types of fixed scaling, it is difficult to handle a wide range of scaling with arbitrary scaling factors.

(目的) 本発明は上記従来技術の欠点に鑑みてなされたもので、
その口約とするところは、デジタル画像データの電気的
な変倍を簡単なハードウェア構成により任意の倍率で、
広範囲にかつ精度良くそして入力装置または出力装置に
同期したリアルタイム処理による変倍を可能とする画像
データの変倍方式を提供することにある。
(Objective) The present invention has been made in view of the drawbacks of the above-mentioned prior art.
The promise is that digital image data can be electrically scaled at any magnification using a simple hardware configuration.
It is an object of the present invention to provide a method for changing the magnification of image data that enables scaling over a wide range with high accuracy and by real-time processing synchronized with an input device or an output device.

(構成) 本発明は上記の目的を達成させるため、少なくとも1主
走査ライン分の容量を有するラインメモリ、変倍制御情
報が格納される変倍コントロールメモリおよび変倍動作
時にデータの補正を行うデータ補正部を備え、前記変倍
コントロールメモリからの変倍情報に基づいて前記ライ
ンメモリおよび前記データ補正部が動作して変倍動作を
行う画像データの変倍方式において、変倍制御情報を、
変倍前と変倍後の画像データのサンプリング点の個数関
係を表すデータと、前記サンプリング点の位置関係を表
すデータとに分離したデータにより構成することを特徴
としたものである。
(Configuration) In order to achieve the above object, the present invention provides a line memory having a capacity for at least one main scanning line, a scaling control memory in which scaling control information is stored, and data for correcting data during scaling operation. In the image data scaling method, which includes a correction section, and in which the line memory and the data correction section operate based on the scaling information from the scaling control memory to perform a scaling operation, the scaling control information is
The present invention is characterized in that it is composed of data separated into data representing the number relationship of sampling points of image data before and after scaling, and data representing the positional relationship of the sampling points.

以下、本発明の一実施例に基づいて具体的に説明する。Hereinafter, a detailed explanation will be given based on one embodiment of the present invention.

本発明はデジタル化された画像データをデジタル論理処
理によって2次元的に変倍する方式に関する。主走査方
向および副走査方向にそれぞれ画素単位に分割された画
像データが1主走査内では画素単位に時系列的に配置さ
れる。さらに副走査方向に対しては、第1の主走査デー
タ、第2の主走査データ、第3の主走査データという具
合に主走査ライン単位に時系列的に配置された画像デー
タとして入力され、主走査方向画素数に関して、所望の
倍率で変倍処理され、新たな画像データとして出力され
るものである。このとき、入力と出力とは一定の同期関
係を持ち、いわゆるリアルタイム処理である。
The present invention relates to a method for two-dimensionally scaling digitized image data by digital logic processing. Image data divided into pixel units in the main scanning direction and the sub-scanning direction are arranged in time series in pixel units within one main scan. Furthermore, in the sub-scanning direction, image data is input as first main-scanning data, second main-scanning data, third main-scanning data, etc. arranged in time series in units of main-scanning lines, The number of pixels in the main scanning direction is scaled at a desired magnification and output as new image data. At this time, the input and output have a certain synchronous relationship, and this is so-called real-time processing.

ここで、第1図および第2図によって画素、画像データ
、主走査、副走査等の概念について説明する。第1図に
おいて、1枚の画像が画素PiJ(i =0.1,2.
−・=−n、  j=0.1.2.−・−−=n)に分
割され、PO(1〜Pasの集合Po+P+a〜PII
Iの集合P+ +  Pzo”Pz+aの集合P 2 
+ ’−””−がそれぞれ1主走査内の画像データであ
る。以下、便宜上、副走査方向に順に各主走査ラインを
第1図に示すごと<0.1.2.−・−・−nと付し、
第0ライン、第1ライン、第2ラインーー−−−・−と
呼ぶことにする。
Here, concepts such as pixels, image data, main scanning, sub-scanning, etc. will be explained with reference to FIGS. 1 and 2. In FIG. 1, one image consists of pixels PiJ (i = 0.1, 2.
-・=-n, j=0.1.2. -・--=n), and PO (set of 1 to Pas Po+P+a to PII
Set of I P+ + Pzo”Pz+a set P 2
+'-""- are image data within one main scan, respectively. Hereinafter, for convenience, each main scanning line is shown in FIG. 1 in order in the sub-scanning direction. -・-・-n and
We will call them the 0th line, the 1st line, and the 2nd line.

第2図は第1図に対応する信号のタイムチャートであり
、LSYNCは主走査同3tI+信号(またはライン同
期信号または単に同期信号と呼ぶ)、Pは主走査ライン
が偶数番目のラインか奇数番目のラインかを示す信号(
偶数ラインでP−’L’)・aは第1図を読み取った画
像データ信号である。
Fig. 2 is a time chart of signals corresponding to Fig. 1, where LSYNC is the main scanning 3tI+ signal (or line synchronization signal or simply called synchronization signal), P is whether the main scanning line is an even numbered line or an odd numbered line. A signal indicating whether the line is
On even lines, P-'L')·a is an image data signal obtained by reading FIG.

画像データ信号a中のPI、PI、Plは第1図のP、
、P、、Plに対応し、さらに詳細には、信号aはPI
、Pl、Plのそれぞれの内部で画素単位に区切られた
信号である。
PI, PI, and Pl in the image data signal a are P in FIG.
, P, , Pl, and more specifically, the signal a corresponds to PI
, Pl, and Pl are signals divided into pixel units within each of them.

次に本発明による画像データの変倍方式の一実施例につ
いて第3図のブロック図を参照して説明する。図中1は
第1セレクタ、2はデータ補正部、3は第3セレクタ、
4は第2セレクタ、5は第1ラインメモリ、6は第2ラ
インメモリ、7は第4セレクタ、8は変倍コントロール
メモリ、9はメモリコントローラである。また、第3図
中の信号aは入力画像データで、6ビット−64階調の
濃度情報を有する。信号dは出力画像データであり、や
はり6ビット−64階調の濃度情報を有する。
Next, an embodiment of the image data scaling method according to the present invention will be described with reference to the block diagram of FIG. In the figure, 1 is a first selector, 2 is a data correction section, 3 is a third selector,
4 is a second selector, 5 is a first line memory, 6 is a second line memory, 7 is a fourth selector, 8 is a scaling control memory, and 9 is a memory controller. Further, signal a in FIG. 3 is input image data and has density information of 6 bits and 64 gradations. The signal d is output image data and also has density information of 6 bits and 64 gradations.

信号iは変倍が拡大か縮小かを示す信号で、拡大(含等
倍)時i=# H# 縮小時     i=“L′ である。
The signal i is a signal indicating whether the magnification is enlargement or reduction, and when it is enlarged (including the same size), i=#H#, and when it is reduced, i=“L′.

信号jは変倍処理を行うために必要な情報あり、図示し
ない中央処理ユニット(CP U)により変倍コントロ
ールメモリ8にセットされる。このCPUによる変倍情
報のセットは画像データの変倍動作に先立って予めセッ
トされる。
The signal j contains information necessary for performing the scaling process, and is set in the scaling control memory 8 by a central processing unit (CPU), not shown. This set of scaling information by the CPU is set in advance prior to the scaling operation of image data.

信号に、  !!はセットされた信号jに基づいて変倍
動作時にデータ補正部2、メモリコントローラ9に供給
される変倍制御用の信号である。
At the signal! ! is a signal for scaling control that is supplied to the data correction section 2 and the memory controller 9 during scaling operation based on the set signal j.

信号m、nはそれぞれ第1および第2ラインメモリ5.
6の制御信号であり、アドレス信号、読出し、書込み制
御信号である。
Signals m and n are respectively sent to the first and second line memories 5.
6 control signals, which are address signals, read, and write control signals.

信号Pは第2図と同じく主走査ラインが偶数番目か奇数
番目かを示す信号である。信号CLKは画素単位のクロ
ック信号である。
The signal P is a signal indicating whether the main scanning line is an even number or an odd number, as in FIG. Signal CLK is a clock signal for each pixel.

また、信号す、c、e、f、g、hはそれぞれ第1セレ
クタ1、データ補正部2、第2セレクタ4、第4セレク
タ7、第1ラインメモリ5、第2ラインメモリ6の出力
であり、かつそれらは画像データである。これらもすべ
て6ビット−64階調の濃度情報を有することは勿論で
ある。
Further, signals S, c, e, f, g, and h are the outputs of the first selector 1, data correction unit 2, second selector 4, fourth selector 7, first line memory 5, and second line memory 6, respectively. Yes, and they are image data. Of course, all of these also have density information of 6 bits and 64 gradations.

変倍コントロールメモリ8への予めの変倍情報のセット
については後述するが、ここで変倍動作時の第3図に示
した構成の動作の概要を第4図を参照して説明する。第
4図に示すごとく、この動作は拡大時の偶数ライン時と
奇数ライン時、また縮小時の偶数ライン時と奇数ライン
時との4つの動作モードに大別される。図中、第1、第
2ラインメモリ5.6の欄におけるRDモードおよびW
Tモードはそれぞれ読出しモードおよび凹込みモードを
表す。
Although the setting of magnification information in advance into the magnification control memory 8 will be described later, an outline of the operation of the configuration shown in FIG. 3 during the magnification change operation will be explained with reference to FIG. 4. As shown in FIG. 4, this operation is roughly divided into four operating modes: even-numbered lines and odd-numbered lines during enlargement, and even-numbered lines and odd-numbered lines during reduction. In the figure, the RD mode and W in the columns of the first and second line memories 5.6
T modes represent read mode and recess mode, respectively.

例えば、拡大時の偶数ライン時は、第1ラインメモリ5
がRDモード、第2ラインメモリ6がWTモードであり
、そして第3図への人力信号aは、a→第2セレクタ4
→f→第2ラインメモリ6の経路で第2ラインメモリ6
に書き込まれる。この動作と平行して第1ラインメモリ
5からの続出しデータは、第1ラインメモリ5→g−+
第4セレクタ7−第1セレクタ1−b−データ補正部2
−n C=第3セレクタ3−dの経路で出力される。
For example, for even-numbered lines during enlargement, the first line memory 5
is in the RD mode, the second line memory 6 is in the WT mode, and the human input signal a to FIG.
→ f → second line memory 6 on the path of second line memory 6
will be written to. In parallel with this operation, successive data from the first line memory 5 is transferred from the first line memory 5→g−+
Fourth selector 7-first selector 1-b-data correction section 2
-n C=output through the path of the third selector 3-d.

次の走査では、今度は奇数ラインになるので、第1およ
び第2ラインメモリ5.6のRDおよびWTモードが逆
転し、入力信号aは、a−第2セレクタ4→f→第1ラ
インメモリ5で書込まれ、一方、この動作と平行して、
第2ラインメモリ6の読出しデータは、第2ラインメモ
リ6−h−第4セレクタ7− e→第1セレクタ1→b
−データ補正部2−hC→第3セレクタ3→dの経路で
出力される。このとき、第2ラインメモリ6から読み出
されるデータは前回の偶数ライン時に第2ラインメモリ
6に書き込まれたデータである。同様にして、今回のラ
インで第1ラインメモリ5に書き込まれたデータは次の
偶数ライン時に読み出されて、各経路を通った後信号d
として出力される。
In the next scan, since it is an odd number line, the RD and WT modes of the first and second line memories 5.6 are reversed, and the input signal a is changed from a to second selector 4→f to first line memory. 5, while parallel to this operation,
The read data of the second line memory 6 is transferred from the second line memory 6-h to the fourth selector 7-e→first selector 1→b
-Data correction unit 2-hC→third selector 3→d is output. At this time, the data read from the second line memory 6 is the data written to the second line memory 6 during the previous even-numbered line. Similarly, the data written in the first line memory 5 in the current line is read out in the next even line, and after passing through each path, the data is written in the first line memory 5.
is output as

以上が拡大時の動作であるが、第3図および第4図によ
り縮小時の動作も当番者には同様に理解されよう。
The above is the operation during enlargement, but the person on duty will similarly understand the operation during reduction from FIGS. 3 and 4.

以上の動作を換言すれば以下のようにも表現できる。す
なわち、 (1)拡大時はラインメモリからの読出し時にデータ補
正し、縮小時はラインメモリへの書込み時にデータ補正
をする。
In other words, the above operation can be expressed as follows. That is, (1) When enlarging, data is corrected when reading from the line memory, and when reducing, data is corrected when writing to the line memory.

(2)第1および第2ラインメモリとは走査ライン毎に
交互に読出し、書込み動作を行い、一方が続出しモード
の時は他方が舎込みモードである。
(2) The first and second line memories perform read and write operations alternately for each scanning line, and when one is in continuous output mode, the other is in storage mode.

(3)拡大/1M小信号iおよび偶数/奇数ライン信号
pにより、前記(1)、 (21の制御をする。
(3) The above (1) and (21) are controlled by the enlarged/1M small signal i and the even/odd line signal p.

上記により画像データの流れを中心として第3図の構成
の動作の概要を説明した。上記説明には変倍がどこでど
のようにして行われるかについては殆ど触れてないので
、以下の説明は変倍を中心として第3図の各ブロックの
構成および動作について詳細に行う。
The outline of the operation of the configuration shown in FIG. 3 has been explained above, focusing on the flow of image data. Since the above description hardly mentions where and how the scaling is performed, the following explanation will focus on scaling and will focus on the configuration and operation of each block in FIG. 3 in detail.

第5図は成る主走査ライン上での成る位置付近に対応す
る第3図の入力信号aを模型的に示すタイムチャートで
ある。このチャートにおいてT。
FIG. 5 is a time chart schematically showing the input signal a of FIG. 3 corresponding to the vicinity of the position on the main scanning line. In this chart T.

は画素の単位を示し、第3図での信号CLKの1周期に
対応する。縦軸は6ビツ1−=6411!!調の濃度レ
ベルに対応する。
indicates a pixel unit, and corresponds to one cycle of the signal CLK in FIG. 3. The vertical axis is 6 bits 1-=6411! ! Corresponds to the density level of the tone.

今、入力画像データが第5図のように○印で示す画素ピ
ッチがT、で、濃度レベルがA、、A□、A1.・・−
・・−Ahであるとする。この第5図の画像を主走査方
向に拡大し、しかも画素ピッチはT1であるような拡大
を考える。簡単のため、例えば250%の拡大を例とす
ると、第6図のように表される。
Now, as shown in FIG. 5, the input image data has a pixel pitch indicated by ○ marks T, and density levels A, A□, A1.・・−
...-Ah. Consider enlarging the image shown in FIG. 5 in the main scanning direction, with a pixel pitch of T1. For the sake of simplicity, let us take, for example, 250% enlargement as shown in FIG.

すなわち、第6図で0印およびAx 、 A3 、 A
4−・・・・・・は第5図のA□、A3 、A4 ・−
・−゛であり、走査方向に2.5倍に引き伸ばされてい
る。
That is, in Fig. 6, mark 0 and Ax, A3, A
4-... are A□, A3, A4 ・- in Fig. 5
・−゛, and has been expanded by 2.5 times in the scanning direction.

一方、Δ印はピッチT1であり、Bz+、  Bz□。On the other hand, the Δ mark is the pitch T1, Bz+, Bz□.

B !i  B *+・−・−・−は各点での濃度レベ
ルである。このとき、B tl、  B zt、  B
 !3+  B s+−=−はAt、A1.A4−・−
一一一一に対する変倍画像データであり、AとB、すな
わち、O印とΔ印との位置関係およびAとBとの濃度レ
ベルはそれぞれ一定の関係がある。
B! i B *+・−・−・− is the density level at each point. At this time, B tl, B zt, B
! 3+ B s+-=- is At, A1. A4-・-
The positional relationship between A and B, that is, the O mark and the Δ mark, and the density level between A and B have a certain relationship.

例えば、第6図で、Aは2.5 T I周期、BはT1
周期で、かつA2とSZ+とが一敗していれば、以降の
A、Bの位置は一義的に決まる。
For example, in Figure 6, A is 2.5 T I period, B is T1
If A2 and SZ+ lose once in the cycle, the subsequent positions of A and B are uniquely determined.

また、Bの濃度レベルは、例えば前後に近接する2つの
AのレベルおよびAまでの距離によって決定する、いわ
ゆる「近接画素間距離線型配分法」等によって算出され
る。
Further, the density level of B is calculated, for example, by the so-called "neighboring pixel distance linear distribution method", which is determined based on the levels of two adjacent A's and the distance to A's.

第6図の例では、例えばBttは前後のAt、A3から
、 rl  +r。
In the example of FIG. 6, for example, Btt is rl + r from the preceding and following At and A3.

によって求められる。It is determined by

第7図は第5図の縮小例であり、変倍率が7094の例
を示す。第7図においてへのピッチはO印のごと<0.
7TIであり、変倍されたBのピッチはΔ印のごとく、
変倍前(第5図)のAと同じ(T+である。この場合も
、拡大の場合と同じく、0印とΔ印との位置関係および
AとBとの濃度レベルはそれぞれ一定の関係で決まる。
FIG. 7 is a reduced example of FIG. 5, and shows an example where the magnification ratio is 7094. In Fig. 7, the pitch to <0.
7TI, and the scaled pitch of B is as shown by the Δ mark.
Same as A before magnification (Figure 5) (T+). In this case as well, as in the case of enlargement, the positional relationship between the 0 mark and the Δ mark and the density level between A and B are constant. It's decided.

例えば、第7図でB2のレベルは rl  +rg によって求められる。For example, in Figure 7, the level of B2 is rl + rg It is determined by

以上のように、変倍率が与えられれば、変倍前のデータ
Aと変倍後のデータBとの位置関係を決めることが可能
であり、またその位置関係と変倍前のデータAとから変
倍後のデータBの濃度レベルを決めることが可能である
As described above, if the scaling factor is given, it is possible to determine the positional relationship between data A before scaling and data B after scaling, and from that positional relationship and data A before scaling. It is possible to determine the density level of data B after scaling.

このことを第3図と関連づけて説明すると、AとBとの
位置関係の情報が格納され、必要に応じてこの情報を送
出するのが変倍コントロールメモリ8であり、上式のB
22.およびB2のような演算によりBのレベルを決定
するのがデータ補正部2である。
To explain this in relation to FIG. 3, it is the magnification control memory 8 that stores information on the positional relationship between A and B, and sends out this information as necessary.
22. The data correction section 2 determines the level of B by calculations such as and B2.

さらに、第6図および第7図から明らかなように、変倍
率と画素位置によってO印と印との1ピツチの間にΔ印
が全くない場合、1個だけ有る場合、2個だけ有る場合
等のように各種の場合がある。勿論、この関係も位置関
係であり、変倍率が与えられれば決まるものである。こ
のようにΔ印が全くないか、或いは幾つ有るかは第3図
の動作上極めて重要な事項であり、信号βとしてメモリ
コントローラ9に与えられ、第1および第2のラインメ
モリ5.6のアドレス制御に利用される。
Furthermore, as is clear from Figures 6 and 7, depending on the magnification and pixel position, there are cases where there is no Δ mark at all, cases where there is only one Δ mark, and cases where there are only two Δ marks between 1 pitch between the O mark and the mark. There are various cases such as Of course, this relationship is also a positional relationship, and is determined by a given magnification ratio. Whether there are no Δ marks or how many Δ marks there are is an extremely important matter for the operation of FIG. Used for address control.

次に、変倍前と変倍後との位置関係の情報の具体例につ
いて説明する。
Next, a specific example of information on the positional relationship before and after scaling will be described.

変倍率α(%)に対し なるX7は変倍前のデータに対する変倍後のデータの位
置を示す。換言すれば、変倍前のデータサンプリングピ
ッチを1としたときの変倍のための新しいサンプリング
点を示す。ここで定数にはサンプリングの新旧の位相差
または初期値に対応し、簡単のために−0とする。すな
わち変倍前と変倍後とで最初のデータの位置を一致させ
るものとする。ここで、 α                        
αにより、変倍率αが与えられれば、計算または読出し
専用メモリ (ROM)テーブルによりCPUにおいて
面単に100/α、したがってX。が求められる。
X7 corresponding to the scaling factor α (%) indicates the position of the data after scaling relative to the data before scaling. In other words, it shows a new sampling point for scaling when the data sampling pitch before scaling is 1. Here, the constant corresponds to the phase difference between the old and new sampling or the initial value, and is set to -0 for simplicity. In other words, the position of the first data is made to match before and after scaling. Here, α
By α, given the scaling factor α, the surface is simply 100/α, thus X, in the CPU by calculation or by a read-only memory (ROM) table. is required.

さらに、変倍率α(%)が、例えば50%〜1000%
の範囲内で1%刻みで設定されるような場合においては
、 と表すことができる。
Furthermore, the magnification ratio α (%) is, for example, 50% to 1000%.
In the case where it is set in 1% increments within the range, it can be expressed as.

すなわち、αは変倍前サンプリング点100個に対する
変倍後のサンプリング点の個数を示し、K7はその中で
の変倍前後のサンプリング点の個数関係および位置関係
の情報を有し、変倍前サンプリング点100個以上の部
分については、100個毎に同様な繰り返しを考えれば
十分である。
That is, α indicates the number of sampling points after scaling with respect to 100 sampling points before scaling, K7 has information on the number relationship and positional relationship of the sampling points before and after scaling, and K7 has information on the number relationship and positional relationship of sampling points before and after scaling. For portions with 100 or more sampling points, it is sufficient to consider similar repetition for every 100 sampling points.

したがって上記の場合、nの数はα−1000シロのと
きが最も多く、n=1000である。
Therefore, in the above case, the number of n is most often α-1000, and n=1000.

次に、X、1の性質に付いてさらに詳細に説明する。K
7を整数部■7、小数部J7によって表すと、 X n = I n +J n ここでIfiは変倍前後のサンプリング点の個数情報を
、またJ7は変倍前後のサンプリング点の位置情報を示
す。
Next, the properties of X,1 will be explained in more detail. K
7 is expressed by the integer part ■7 and the decimal part J7, X n = I n + J n Here, Ifi indicates the number of sampling points before and after scaling, and J7 indicates the position information of the sampling points before and after scaling. .

例えば拡大時(α≧100%)において、△I−−1,
l−I、、−1(ただし、△t、−、=O)なる△■7
は変倍後サンプリング点n−1とnとの間に変倍前サン
プリング点が有るか無いかを示し、 △1.−0ならば無し 61.%−1ならば有り を示す。
For example, when expanding (α≧100%), △I−−1,
l-I,, -1 (however, △t, -, =O) becomes △■7
indicates whether there is a pre-scaling sampling point between sampling points n-1 and n after scaling, and △1. If it is -0, there is no 61. %-1 indicates presence.

例えば、第6図において、B2□とB’!3との間には
Aはないので△1.−0、またBt3とBfflとの間
にはA、が有るので△I、l=1に対応する。
For example, in Figure 6, B2□ and B'! There is no A between it and 3, so △1. -0, and since there is A between Bt3 and Bffl, it corresponds to ΔI, l=1.

一方、J7は第6図における、例えばB2.とA2、A
3との位置関係r+  (したがってrz)に関する情
報を有する。
On the other hand, J7 is, for example, B2. and A2, A
It has information regarding the positional relationship r+ (therefore rz) with respect to 3.

縮小時(α<100%)においても、 △I、−I、−1,1−1(但し、△I、1−、=t)
なる△I7は変倍前後でのサンプリング点の有無を表す
が、縮小の場合は、 1<100/α≦2(但し50%≦α〈100%)なる
100/αでXfiが増加するので、△■7の値も△■
7−1または2となり、変倍後サンプリング点n−1と
nとの間に変倍前サンプリング点が1個有するか、2個
有するかを示し、△1.=1ならば1個有り、 △1.=2ならば2個有り、 を示す。
Even during reduction (α<100%), △I, -I, -1, 1-1 (however, △I, 1-, = t)
△I7 represents the presence or absence of sampling points before and after scaling, but in the case of reduction, Xfi increases by 100/α, where 1<100/α≦2 (50%≦α<100%). The value of △■7 is also △■
7-1 or 2, indicating whether there is one or two sampling points before scaling between sampling points n-1 and n after scaling, and Δ1. If =1, there is one, △1. If = 2, there are two, which indicates.

例えば、第7図において、B2とB、との間にはA3が
1個有るので△工、=1に対応し、またB3とB、との
間にはA4とA、の2個のサンプリング点が有るので△
1.=2に対応する。
For example, in Figure 7, there is one A3 between B2 and B, so it corresponds to △ = 1, and there are two samplings, A4 and A, between B3 and B. There is a point, so △
1. =2.

一方、J、、については縮小時においても位置関係を示
し、例えば第7図においてr、 (したがってrz)に
関する情報を有する。
On the other hand, for J, , the positional relationship is shown even when reduced, and for example, in FIG. 7, there is information regarding r, (therefore rz).

A11は拡大、縮小時ともにサンプリング点の個数関係
の情報であるが、ハードウェアの簡略化のために、特に
縮小時においては、△Il、=2を2つに分解変形し、
△I、l、−0、△I、、=1とする。
A11 is information related to the number of sampling points during both enlargement and reduction, but in order to simplify the hardware, especially during reduction, △Il,=2 is decomposed into two and transformed.
Let ΔI, l, −0, ΔI, , = 1.

この変形により、拡大、縮小共通に、 △1.−0ならば無し、 611%−1ならば有り、 として扱える。Through this transformation, both enlargement and reduction are possible. △1. -0 means nothing; If it is 611%-1, then yes, It can be treated as

△I、l−0または1によって第3図の第1および第2
のラインメモリ5.6のアドレスの歩進を制御するため
、上記の変形がハードウェアの簡略化につながっている
1 and 2 in FIG. 3 by ΔI, l-0 or 1
The above modification leads to a simplification of the hardware in order to control the incrementing of the address in the line memory 5.6.

以上のことから、拡大の場合はn−α個、縮小の場合は
n=100個の△I、1 (−0または1)によって、
α−50%〜1000%に対する1%刻みの変倍に対す
るサンプリング点の個数データが得られる。
From the above, with n-α pieces for expansion and n=100 pieces of △I, 1 (-0 or 1) for reduction,
Data on the number of sampling points for scaling in 1% increments from α-50% to 1000% is obtained.

次に、X、l霧1tt+Jaの小数部J7について説明
する。J、lはその定義から、第6図および第7図にお
いて、 Jll−TI/ (rt +rz ) を意味する。
Next, the decimal part J7 of X, l fog 1tt+Ja will be explained. From their definitions, J and l mean Jll-TI/(rt+rz) in FIGS. 6 and 7.

ここで、ハードウェアの簡略化のために、J7をその値
によって4つのランクに分割し、その4つのランクをK
1.に!の2ビツトで区別し、さらに、各ランクに対応
させて変倍後のサンプリング点の濃度B、を、変倍前の
両隣りのサンプリング点Az 、A3と下表のように対
応させる。
Here, to simplify the hardware, J7 is divided into four ranks according to its value, and the four ranks are divided into K
1. To! Furthermore, in correspondence with each rank, the density B of the sampling point after scaling is made to correspond to the sampling points Az and A3 on both sides before scaling, as shown in the table below.

Jn    ランクに+Kt     B10 ≦J、
<0.25 1 0 0  At0.25≦J 、 <
 0.5 2 0 1  Ax(3/4)+As(1/
4)0.5≦J 、l< 0.75 3 1 0 1h
(1/2)+A3(1/2)0.75≦J、<1   
4 11  At(1/4)÷1h(3/4)以上によ
って、Xll =I、1 +J、なる変倍情報が△I、
、、に、、に2の3ビツトのデジタル論理データで表現
される。
Jn rank +Kt B10 ≦J,
<0.25 1 0 0 At0.25≦J, <
0.5 2 0 1 Ax (3/4) + As (1/
4) 0.5≦J, l<0.75 3 1 0 1h
(1/2)+A3(1/2)0.75≦J,<1
4 11 At (1/4) ÷ 1h (3/4) or more, the scaling information such that Xll = I, 1 + J, becomes △I,
, , , , and 2 are expressed as 3-bit digital logic data.

尚、上表でのBの値の計算は第3図のデータ補正部2に
よって行われるものである。
Note that the calculation of the value of B in the above table is performed by the data correction section 2 shown in FIG.

各ΔIfi毎にそれぞれK1.に!が付随して3ビツト
でα個(拡大時)または100個(縮小時)の変倍デー
タ列が得られるが、α個または100個毎に繰り返しデ
ータであるために、n−α+1またはn=100+1の
場合はn−1から再スタートさせる必要があり、これを
示すために1ビツトを割り当て、K4とする。すなわち
、K4はnwa l〜α−1(拡大時)またはn=1〜
99(IW小時)ではKa −0,n””α 1または
n−100の時のみに4−1である。
K1 for each ΔIfi. To! At the same time, a 3-bit variable data string of α (when enlarging) or 100 (when reducing) is obtained, but since the data is repeated every α or 100 pieces, n-α+1 or n= In the case of 100+1, it is necessary to restart from n-1, and to indicate this, 1 bit is allocated and designated as K4. That is, K4 is nwa l~α-1 (when expanded) or n=1~
In 99 (when IW is small), it is 4-1 only when Ka -0, n""α 1 or n-100.

以上の△1..Kl 、に、、に4の4ビツトが第3図
において外部から変倍コントロールメモリ8に付与され
る変倍データjの中身である。
Above △1. .. The four bits Kl, , .

これまでの説明により変倍の原理および変倍データの内
容が明らかにされたが、以下に第3図の構成の各ブロッ
クについて詳細に説明する。
Although the principle of scaling and the content of scaling data have been clarified through the explanations so far, each block of the configuration shown in FIG. 3 will be explained in detail below.

第8図は第3図の変倍コントロールメモリ8の内部ロジ
ックを示す回路図である。図中、10〜13はラッチ、
14はランダムアクセスメモリ(RAM) 、15〜1
7はゲート、18はセレクタ、19はアドレスカウンタ
、20〜25はゲートである。
FIG. 8 is a circuit diagram showing the internal logic of the variable magnification control memory 8 of FIG. In the figure, 10 to 13 are latches,
14 is random access memory (RAM), 15-1
7 is a gate, 18 is a selector, 19 is an address counter, and 20 to 25 are gates.

RAM14は外部から信号jとして与えられる変倍デー
タが格納されるメモリであり、データの個数はα−10
00%(n=α−1000)のときに最も多く、その容
量は4X1000ビツトである。したがって、4000
ビット以上のRAMなら50%〜1000%で1%刻み
の変倍データの格納に十分である。例えば、200%の
場合4×200ビツトだけが有効に使用される。
The RAM 14 is a memory in which scaling data given as a signal j from the outside is stored, and the number of pieces of data is α-10.
00% (n=α-1000), and its capacity is 4×1000 bits. Therefore, 4000
If it is a bit or more RAM, 50% to 1000% is sufficient to store data that is scaled in 1% increments. For example, in the case of 200%, only 4×200 bits are effectively used.

第8図において信号DLTは変倍データjを取り込むた
めのクロック信号であり、外部からの信号jの送出に同
期して信号DLTも送出される。
In FIG. 8, the signal DLT is a clock signal for taking in the variable magnification data j, and the signal DLT is also sent out in synchronization with the sending out of the signal j from the outside.

信号jには4ビツトの変形データとは別に、さらに1ビ
ツトのデータがある。これは変倍データの最初のデータ
、すなわちn=1のタイミングを示すデータであり、こ
の信号によりRAM14のアドレスを0番地に設定する
。より具体的には、このビットデータはn=1の時のみ
論理=#1#であり、他のnに対しては0である。そし
て#1“のときに、RAM14のためのアドレスカウン
タ19をリセットする。
In addition to the 4-bit modified data, the signal j also has 1-bit data. This is the first data of the variable magnification data, that is, data indicating the timing of n=1, and the address of the RAM 14 is set to address 0 by this signal. More specifically, this bit data is logic=#1# only when n=1, and is 0 for other n's. Then, at #1'', the address counter 19 for the RAM 14 is reset.

ラッチ10に取り込まれた変倍データjのうち、このス
タートビットは信号j2としてゲート20゜22を介し
てアドレスカウンタ19をクリアする。
Of the variable magnification data j taken into the latch 10, this start bit clears the address counter 19 via the gate 20.degree.22 as a signal j2.

信号DSTは変倍データjを受けてRAM14に格納す
るモード中であることを示す。格納が終終了すると、D
STはレベル“H#になる。
Signal DST indicates that the mode is in which magnification change data j is received and stored in the RAM 14. When the storage is finished, D
ST becomes level “H#”.

信号DWTはRAM14への書込み動作のための信号で
あり、そしてクロック信号CLKはRAM14から変倍
データを読み出す場合、すなわち実際に変倍動作を行う
場合のクロック信号である。
The signal DWT is a signal for writing into the RAM 14, and the clock signal CLK is a clock signal used when reading variable-magnification data from the RAM 14, that is, when actually performing a variable-magnification operation.

セレクタ18により信号DLTまたはクロック信号CL
Kが選択され、アドレスカウンタ19が歩進される。
Selector 18 selects signal DLT or clock signal CL.
K is selected and address counter 19 is incremented.

すなわち、信号jをRAM14に格納する場合は、信号
j!によりアドレスカウンタ19がクリヤされ、その後
信号DLTによりカウントアツプされる。アドレス歩進
に伴って信号jは信号jl。
That is, when storing the signal j in the RAM 14, the signal j! The address counter 19 is cleared by this, and then counted up by the signal DLT. As the address advances, the signal j becomes the signal jl.

j3としてラッチ10.11を介してRAM14に入力
されかつ書き込まれる。n=αまたはn=100に対応
する分だけ書き込まれると、信号DST=H“になり、
RAM14への書込みは終了する。この書込み動作は第
9図のタイムチャートによって説明される。また、第1
0図は変倍動作のためにRAM14から変倍データを読
み出すモードでの第8図の動作を説明するタイムチャ−
トである。
j3 is input and written into RAM 14 via latch 10.11. When the amount corresponding to n=α or n=100 is written, the signal DST becomes “H”,
Writing to RAM 14 is completed. This write operation will be explained using the time chart of FIG. Also, the first
FIG. 0 is a time chart explaining the operation of FIG. 8 in the mode of reading variable magnification data from the RAM 14 for variable magnification operation.
It is.

第10図において、読出し時、アドレスカウンタ19は
セレクタ18により信号CLKによって歩進される。信
号CLKは変倍される画像データの画素クロックでもあ
る。
In FIG. 10, during reading, address counter 19 is incremented by selector 18 in response to signal CLK. The signal CLK is also a pixel clock for image data to be scaled.

読出し時、DST−’H’でRAM14が読み出しモー
ドになる。また、DWT−’H’になり、ラッチ11の
出力はハイインピーダンス状態になる。したがって、信
号j3はRAM14からの出力信号が現れる。
At the time of reading, the RAM 14 enters the reading mode at DST-'H'. Further, DWT becomes 'H', and the output of the latch 11 becomes a high impedance state. Therefore, the output signal from the RAM 14 appears as the signal j3.

アドレスが次々と歩進し、信号ADH−α−1(n=α
に対応)に至り、再び信号ADH−0から歩進する近辺
のタイミングを第10図に示しである。信号j3の内容
(α−4)、 (α−3) −一・・はそれぞれアドレ
スα−4,α−3−・・・−・に対応する変倍データの
意味である。
The addresses advance one after another, and the signal ADH-α-1 (n=α
FIG. 10 shows the timing around when the signal ADH-0 is reached (corresponding to ADH-0) and the signal ADH-0 is stepped again. The contents of the signal j3 (α-4), (α-3) -1, . . . mean the scaled data corresponding to the addresses α-4, α-3, . . . , respectively.

特に、信号ADR=α−1においては信号j。In particular, signal j for signal ADR=α-1.

の中のj4w’l’になる。この信号j4は変倍データ
のエンドビットであり、この信号j4はゲート21.2
2を介してアドレスカウンタ19をクリヤする。このア
ドレスカウンタ19がクリヤされると、信号ADH−0
になり、再びADR−0,1,2−・−・と歩進される
It becomes j4w'l' in . This signal j4 is the end bit of the scaling data, and this signal j4 is the end bit of the variable magnification data.
The address counter 19 is cleared via 2. When this address counter 19 is cleared, the signal ADH-0
ADR-0, 1, 2, . . . are incremented again.

信号lは信号j、の中の1ビツトでラッチ12より出力
されるが、この信号lが変倍データjの中の△I、1の
ビットに対応する。△I、、は元来はサンプリング個数
情報であったが、信号lにおいてはむしろ変倍のための
カウント制御信号と考えた方が理解が容易である。すな
わち、この信号lに基づいて変倍のためのラインメモリ
のアドレスのカウントをオン、オフ制御するからである
The signal l is output from the latch 12 as one bit in the signal j, and this signal l corresponds to the bit ΔI, 1 in the scaled data j. .DELTA.I was originally sampling number information, but it is easier to understand the signal l if it is considered as a count control signal for scaling. That is, the counting of addresses in the line memory for scaling is controlled on/off based on this signal l.

ラッチ13の出力のうち、信号Kt、Ksは変倍データ
jの中のサンプリング位置データのランクを示す2ビツ
トのに+ 、に2にそれぞれ対応する。すなわち、書込
み時と読出し時の時間差や信号形態の差を無視して論理
のみを考えれば、である。
Among the outputs of the latch 13, the signals Kt and Ks correspond to 2 bits ``+'' and ``2'' indicating the rank of the sampling position data in the scaled data j, respectively. That is, if only the logic is considered, ignoring the time difference between writing and reading and the difference in signal form.

信号に、は信号!とCLKとから作成される信号で、カ
ウントオン、オフ制御信号lに同期してデータ補正部2
(第3図)でのデータの流れを制御するための信号であ
る。
A signal, a signal! This signal is generated from the count on/off control signal l, and is used by the data correction unit 2 in synchronization with the count on/off control signal
This is a signal for controlling the flow of data in (Fig. 3).

第11図は信号CLK、l、KI、Kz 、Ksのタイ
ミングを示すタイミングチャートである。
FIG. 11 is a timing chart showing the timing of signals CLK, 1, KI, Kz, and Ks.

第12図は第3図のデータ補正部2の内部ロジックの回
路図である。図中、26はラッチ、27はセレクタ、2
8,29.30はアダー、31はセレクタである。
FIG. 12 is a circuit diagram of the internal logic of the data correction section 2 of FIG. 3. In the figure, 26 is a latch, 27 is a selector, 2
8, 29, and 30 are adders, and 31 is a selector.

画像データbはラッチ26により信号に+のタイミング
でシフトされ、b1〜b、とす、〜b10に分離される
。例えばblが第6図のA、であり、b7がA3である
。ここでセレクタ27.31に入力される信号はそれぞ
れ す、=b、。
Image data b is shifted by the latch 26 to the signal at + timing, and is separated into b1-b, and -b10. For example, bl is A in FIG. 6, and b7 is A3. Here, the signals input to the selectors 27 and 31 are s, =b, respectively.

bz =1/2 b□1 b3−1/4 bfi−1 b6− b4 + bs =1/2 b +1/4 b
 −3/4 b、l−+また、 by  −1/2  b。
bz =1/2 b□1 b3-1/4 bfi-1 b6- b4 + bs =1/2 b +1/4 b
-3/4 b, l-+also by -1/2 b.

bs  ”1/4  bFl b++−bq  + b+a−1/2  b +1/4
  b =3/4  bfiである。
bs ”1/4 bFl b++-bq + b+a-1/2 b +1/4
b = 3/4 bfi.

さらに、セレクタ27.31の真理値表は第13図のよ
うになっているので、信号Kz、に3によって画像デー
タb1□+  bII  Cは以下のようになる。
Furthermore, since the truth table of the selectors 27 and 31 is as shown in FIG. 13, the image data b1□+bIIC becomes as follows based on the signals Kz and 3.

すなわち、入力データb、変倍デークK1.に2、に3
に対応して補正データCが得られる。
That is, input data b, scaling data K1. 2, 3
Corrected data C is obtained correspondingly.

尚、画像データb、したがってす、〜b11は信号に、
のタイミングで変化するが、選択条件に2+に3はクロ
ック信号CLKのタイミングで得られる。
In addition, image data b, therefore, ~b11 is a signal,
However, selection conditions of 2+ and 3 can be obtained at the timing of the clock signal CLK.

第14図は第3図の第1および第2ラインメモリ5.6
およびメモリコントローラ9の内部ロジックを示す回路
で、第15図は第14図の回路の動作を説明するタイム
チャートである。図において、32.33はゲート、5
.6は第1および第2ラインメモリ、34.35はラッ
チ、9はメモリコントローラ、36.37.38.42
はゲート、39.40はカウンタ、41はセレクタであ
る。
Figure 14 shows the first and second line memories 5.6 in Figure 3.
FIG. 15 is a time chart illustrating the operation of the circuit shown in FIG. 14. In the figure, 32.33 is the gate, 5
.. 6 is the first and second line memory, 34.35 is the latch, 9 is the memory controller, 36.37.38.42
is a gate, 39.40 is a counter, and 41 is a selector.

第14図および第15図を参照して、カウンタ39.4
0はそれぞれ第1および第2ラインメモリ5.6用のア
ドレスカウンタであり、カウントオン、オフ制御信号β
に基づいてセレクタ41により信号1..1!が発注し
、カウンタ39,40の進歩が制御される。セレクタ4
1はIl、 −1(j!、−’H”)また(1.=l 
(L =“H”)に選択するのに用いられるが、選択条
件は信号l。
With reference to FIGS. 14 and 15, counter 39.4
0 are address counters for the first and second line memories 5 and 6, respectively, and the count on and off control signals β
Based on the selector 41, the signal 1. .. 1! orders, and the progress of counters 39, 40 is controlled. selector 4
1 is Il, −1(j!, −'H”) and (1.=l
(L = “H”), but the selection condition is signal l.

p、したがって信号ilに依存する。すなわち、第4図
のように、変倍モード(i)や走査ラインの偶数/奇数
(p)により選択条件が異なる。
p, and therefore depends on the signal il. That is, as shown in FIG. 4, the selection conditions differ depending on the magnification mode (i) and the even/odd number (p) of the scanning line.

例えば拡大モードでは、読出しモードのラインメモリ側
のカウンタは信号lにより制御され、一方のラインメモ
リ側のカウンタは端子EN−’ H’で常にカウントア
ツプモードである。しかも、走査ライン毎に書込みと読
出しのモードが交互に逆転する。
For example, in the enlargement mode, the counter on the line memory side in the read mode is controlled by the signal 1, and the counter on the one line memory side is always in the count-up mode with the terminal EN-'H'. Furthermore, the write and read modes are alternately reversed for each scanning line.

また、縮小モードでは、読出しモードのラインメモリ側
のカウンタはEN−’ H’で常にカウントアツプであ
り、他方のラインメモリ側は書込みモードであって、信
号lによりカウントがオン、オフ制御される。
In addition, in the reduction mode, the counter on the line memory side in the read mode is always counting up at EN-'H', and the other line memory side is in the write mode, and the count is controlled on and off by the signal l. .

セレクタ41の周辺の真理値表は下表で示される。The truth table surrounding the selector 41 is shown in the table below.

また、信号W下はラインメモリ (実際はRAM)への
書込み制御信号で、信号Pにしたがって第1および第2
ラインメモリ5.6に交互に書込み動作を行う、すなわ
ち、p=“0#の偶数ラインでは第2ラインメモリ6が
書込みモード、p=“1′で第2ラインメモリ6が読出
しモードのときはその逆である。
Also, below the signal W is a write control signal to the line memory (actually RAM), and according to the signal P, the first and second
Write operations are performed alternately in the line memories 5 and 6, that is, when p = "0#" is an even number line, the second line memory 6 is in the write mode, and when p = "1', the second line memory 6 is in the read mode. The opposite is true.

第15図はiI−1“、特にi−’1’(−拡大モード
)、p=O(=偶数ライン)の場合の例である。
FIG. 15 is an example of iI-1'', especially i-'1' (-enlargement mode), and p=O (=even line).

信号lは変倍データjの中の△I7に対応する信号で、
i−’ 1 ’はへ17−“1“に対応し、このときア
ドレスカウンタ39.40はカウントオンである。逆に
、A−”Q″は△■7−“O“に対応し、このときアド
レスカウンタ39.40はカウントオフである。
Signal l is a signal corresponding to △I7 in scaling data j,
i-'1' corresponds to h-17-"1", and at this time the address counters 39 and 40 are counting on. Conversely, A-"Q" corresponds to Δ■7-"O", and at this time the address counters 39 and 40 are off.

したがって、カウンタ39.40の出力、すなわち第1
および第2ラインメモリ5.6のアドレス信号ml、n
、は第15図のように歩進する。
Therefore, the output of counter 39.40, i.e. the first
and address signals ml, n of the second line memory 5.6
, advances as shown in FIG.

そして第1ラインメモリ5からは信号f、が読み出され
る。信号f、の中の(m、、)、  (m、、)等はア
ドレスm 、 、 、 m l gに対応するデータの
意味である。信号f、はラッチ34により信号CLKの
タイミングで整形されて信号gとなる。
Then, the signal f is read out from the first line memory 5. (m, , ), (m, , ), etc. in the signal f mean data corresponding to the addresses m, , , mlg. The signal f is shaped by the latch 34 at the timing of the signal CLK and becomes the signal g.

一方、第2ラインメモリ6へは信号f2が書き込まれる
。この信号f2は入力画像データfであり、ゲート33
を介して第2ラインメモリ6に入力される。このとき、
ラッチ35の出力hにもh−f!−fが出力されるが、
このように書込みモード側のデータ信号りが出力されて
も、第3図のセレクタ7により6 s= g側に選択さ
れるので、この場合のhには意味がない。ただし、奇数
ライン時には逆にe−hになり、gの方が意味が無くな
る。
On the other hand, the signal f2 is written to the second line memory 6. This signal f2 is the input image data f, and the gate 33
The signal is inputted to the second line memory 6 via. At this time,
The output h of the latch 35 is also h-f! -f is output, but
Even if the data signal on the write mode side is output in this way, the selector 7 in FIG. 3 selects the 6s=g side, so h in this case has no meaning. However, when the line is an odd number, it becomes eh, and g becomes meaningless.

第16図は第14図および第15図によって第1ライン
メモリ5 (または第2ラインメモリ6)から読み出さ
れたデータg(またはh)がセレクタ7、セレクタ1に
より信号すとしてデータ補正部2へ送出された場合の、
データ補正部2での動作を説明するタイムチャートであ
る。特に第15図の例と対応させ、b−g−a−’とし
た。ここでa −1はセレクタ1でb=aは選択されず
、b−gが選択されるが、このgをさかのぼれば、1ラ
イン以前の信号aに帰着するのでa −1とシタ。
FIG. 16 shows that data g (or h) read from the first line memory 5 (or second line memory 6) in FIGS. If sent to
3 is a time chart illustrating the operation of the data correction section 2. FIG. In particular, it corresponds to the example in FIG. 15, and is designated as b-ga-a-'. Here, a -1 is selected by selector 1, and b=a is not selected, but b-g is selected, but if you trace g back, you will end up with the signal a from one line earlier, so a -1 is selected.

また− (mho) 、 (m++) 、 (mho)
 に対応させてAt 、As 、A4を添え書きした理
由は第6図のAt 、As 、A4付近の例がこの場合
に良く一致するからである。
Also - (mho), (m++), (mho)
The reason why At 2 , As 2 , and A4 have been appended in correspondence to is that the example near At 2 , As 2 , and A4 in FIG. 6 corresponds well to this case.

第15図の信号/、CL、Kに対応して信号KIは第1
6図のようになる(第8図のラッチ13、ゲー)24.
25により発生)。この信号に、により、ラッチ26 
(第12図)の出力す、(したがってB!、B3.B6
)は第16図のようになる。
Signal KI corresponds to signals /, CL, and K in FIG.
It will look like Figure 6 (latch 13, gate in Figure 8) 24.
25). This signal causes latch 26
The output of (Fig. 12), (therefore B!, B3.B6
) is shown in Figure 16.

一方、信号Kz 、Kyは、第16図のように、信号C
LKのタイミングで変化する。したがって、補正データ
出力c(−d)は、同図のように、信゛号CLKのタイ
ミングで変化し、ちょうど、B□。
On the other hand, the signals Kz and Ky are the signal C as shown in FIG.
Changes at the timing of LK. Therefore, as shown in the figure, the correction data output c(-d) changes at the timing of the signal CLK, and is exactly B□.

B !!+ B !3+  B ffl+ B x2と
記したように、第6図のAとBとの関係に対応するタイ
ミングおよび濃度レベルとなる。
B! ! +B! As noted as 3+B ffl+B x2, the timing and concentration level correspond to the relationship between A and B in FIG. 6.

第17図は上述の拡大時の原理および動作について例題
的に補足説明するための図で、例としてα−250%(
拡大)の場合である0図においてはn −1,2,−=
250に対応して、X、 =100/α×nの値と、さ
らにこのnに対応してRAM14 (第8図)のアドレ
ス(ADR)およびその他の信号の状態が示されている
FIG. 17 is a diagram for supplementary explanation of the principle and operation at the time of enlargement mentioned above.
n −1, 2, −=
250, the value X, =100/α×n, and further, corresponding to this n, the address (ADR) of the RAM 14 (FIG. 8) and the states of other signals are shown.

100/α−0,4であるので、100/αxnは図示
のごとく、0.4〜100までの250個の数列になる
。100/α×nの整数部からx’=△1.、−1.−
1fi−、は図示の通りである。また、小数部に!’*
に2  ′も図示のごとくであり、さらに、エンドビッ
トを示すj4はn−1〜249でj−10″、n−25
0でj−” 1 ’である。
Since 100/α-0,4, 100/αxn is a sequence of 250 numbers from 0.4 to 100, as shown. From the integer part of 100/α×n, x'=△1. , -1. −
1fi-, is as shown in the figure. Also, in the decimal part! '*
2' is also as shown in the figure, and furthermore, j4 indicating the end bit is n-1 to 249, j-10'', n-25
0 and j-"1'.

これらの情報が変倍データとしてRAM14に書き込ま
れる。
These pieces of information are written into the RAM 14 as scaling data.

一方、実際の変倍動作時にはRAM14の内容が読み出
される訳であるが、第17図のす、、b。
On the other hand, during the actual zooming operation, the contents of the RAM 14 are read out, as shown in FIG.

(−、Lはその読出し時の各部の状態をnxl〜250
に対応させて示したものである。特に、n−5〜12に
対応して示しであるす、、b、cの値は第6図、第16
図に対応させている。また、j2は第8図において説明
したように、n−1からの開示点を示す信号で、本実施
例ではj、はRAM14への書込み時のRAM14のア
ドレスクリヤ用の信号として扱っている。j2自体はR
AM14に書き込まれず、したがってこのj2は読出し
時には意味を持たない。
(-, L indicates the state of each part at the time of reading nxl~250
This is shown in correspondence with . In particular, the values of s, b, and c corresponding to n-5 to 12 are shown in Fig. 6 and 16.
It corresponds to the figure. Further, as explained in FIG. 8, j2 is a signal indicating the opening point from n-1, and in this embodiment, j is treated as a signal for clearing the address of the RAM 14 when writing to the RAM 14. j2 itself is R
It is not written to AM14, so this j2 has no meaning when read.

第18図および第19図は縮小時の原理および動作を補
足説明するための図で、例えとしてα−71%の場合を
示す。
FIG. 18 and FIG. 19 are diagrams for supplementary explanation of the principle and operation at the time of reduction, and show the case of α-71% as an example.

第18図ではn=5〜10タ応して100/α×nおよ
び△1.lを示し、第18図では△I7を変形(△I、
、=2−△I、、=Oと1に分解)した後に、z’=△
I、l (変形後)として、第17図に対比する形で各
部の状態を示している。
In FIG. 18, n=5 to 10, correspondingly 100/α×n and Δ1. In Fig. 18, △I7 is transformed (△I,
, =2-△I, ,=O and 1), then z'=△
I, l (after deformation) shows the state of each part in comparison with FIG. 17.

特に、n=5〜10に対応するす、、b、cの値は第7
図の例に対応させている。ここでcl’JのC= B 
o、 B 4. B ?等は第7図にも現れていないし
、実際の変倍動作時にもとくに意味のないものである。
In particular, the values of s, b, and c corresponding to n=5 to 10 are the 7th
This corresponds to the example in the figure. Here, C of cl'J = B
o, B 4. B? etc. do not appear in FIG. 7, and have no particular meaning during actual magnification changing operations.

すなわち、l’−’O’のときに発生するこれらのCの
値は、−旦は第1 (または第2)ラインメモリ5 (
または6)に書き込まれるが、A’=“O“のため第8
図において7−’Q’、したがって、第14図において
111(または12)−“0#になり、アドレスカウン
タ39 (または40)のアドレスは歩進しない。
That is, these C values that occur when l'-'O' are stored in the first (or second) line memory 5 (
or 6), but because A'="O", the 8th
7-'Q' in the figure, and therefore 111 (or 12)-'0# in FIG. 14, and the address of address counter 39 (or 40) does not increment.

すなわち、第19図に戻って、z’=’o“時のCの値
は第1 (または第2)ラインメモリ5(または6)に
書き込まれるが、次のβ′=″1”で同一のアドレスに
J’−’1’に対応するCの値が書き込まれる。このよ
うに、β′−“0“時のCはダミーデータであり、値そ
のものには意味がなく、第7図で明らかなように実現も
しないサンプリング点である。
That is, returning to FIG. 19, the value of C when z' = 'o'' is written to the first (or second) line memory 5 (or 6), but the same value is written in the next β' = '1''. The value of C corresponding to J'-'1' is written to the address of J'-'1'.In this way, C at β'-'0' is dummy data, and the value itself has no meaning. This is obviously a sampling point that will never be realized.

第20図は第19図のn=5〜10に対応する各部の状
態を示すタイムチャートである。図においてf、=f−
cには、図のように、BO+BI+−−−−−・−B、
が発生するが、読み出すときは第20図のgのようにB
o、Ba等のダミーデータは消滅し、B+ 、B2 、
B3 、Bs −・−・のようになる。
FIG. 20 is a time chart showing the states of each part corresponding to n=5 to 10 in FIG. 19. In the figure, f, = f-
In c, as shown in the figure, BO+BI+−−−−−・−B,
occurs, but when reading, B as in g in Figure 20.
Dummy data such as o and Ba disappear, and B+, B2,
B3, Bs ---.

以上、本発明による変倍の原理、動作および構成の実施
例について説明した0次に本発明の応用の典型的な1例
を第21図および第22図を参照して説明する。
The principle, operation, and configuration of the magnification change according to the present invention have been described above, and one typical example of the application of the present invention will be described with reference to FIGS. 21 and 22.

第21図は画像読取り装置の概略図で、43はコンタク
トガラス、44は原稿、45.46は光源、47,48
.49は反射ミラー、50は結像レンズ、51はCCD
 (電荷結合素子)ラインセンサを含む読取り部、52
は画像処理部である。
FIG. 21 is a schematic diagram of the image reading device, 43 is a contact glass, 44 is a document, 45.46 is a light source, 47, 48
.. 49 is a reflecting mirror, 50 is an imaging lens, 51 is a CCD
(charge-coupled device) reading section including a line sensor, 52
is an image processing section.

この画像読取り装置において、読取りの走査は、主走査
がCCDラインセンサにより図において紙面と垂直の方
向に電子的に走査され、副走査が光源45.46および
反射ミラー47.48.49が図の矢印方向に移動する
ことにより走査する。
In this image reading device, the main scan is electronically scanned by a CCD line sensor in the direction perpendicular to the plane of the paper in the figure, and the sub scan is carried out by a light source 45, 46 and a reflecting mirror 47, 48, 49 as shown in the figure. Scan by moving in the direction of the arrow.

読取り部51で読み取った画像データは画像処理部52
で画像処理された後外部に出力される。
The image data read by the reading unit 51 is processed by the image processing unit 52.
After the image is processed, it is output externally.

ここで変倍動作は主走査方向の変倍は上述した本発明に
よって行われ、副走査方向の変倍は副走tg反の制俳に
よって行うものである。
Here, the magnification changing operation in the main scanning direction is performed according to the above-described invention, and the magnification changing operation in the sub-scanning direction is performed by suppressing the sub-scanning tg.

第22図は第21図のうち、特に読取りデータに関する
部分の機能ブロック図である。図において44は原稿、
45.46は光源、51は読取り部、51aはCCDラ
インセンサ、51bは増幅器、51cはA/D変換器、
52は画像処理部、52aはシェーディング補正、52
bは変倍、52cはMTF(変調伝達関数)補正、52
dは2値化を示す。この構成において光g4s、46で
原稿44を照明する。原稿44の画像はCCDラインセ
ンサ51aにより読み取られ、増幅器51b、A/D変
換器51cを介して6ビツト64階調のデジタルデータ
に変換される。その後画像処理部52の内部でまずシェ
ーディング補正52aされ、次いで変倍52b動作が行
われる。さらにMTF補正52cされた後、2値化52
dされ、2値の画像データとして外部に出力される。
FIG. 22 is a functional block diagram of a portion of FIG. 21 that particularly relates to read data. In the figure, 44 is the manuscript;
45 and 46 are light sources, 51 is a reading unit, 51a is a CCD line sensor, 51b is an amplifier, 51c is an A/D converter,
52 is an image processing unit, 52a is a shading correction, 52
b is magnification, 52c is MTF (modulation transfer function) correction, 52
d indicates binarization. In this configuration, the original 44 is illuminated with light g4s, 46. The image of the original 44 is read by a CCD line sensor 51a and converted into 6-bit, 64-gradation digital data via an amplifier 51b and an A/D converter 51c. Thereafter, inside the image processing section 52, shading correction 52a is first performed, and then magnification changing operation 52b is performed. After further MTF correction 52c, binarization 52
d and output to the outside as binary image data.

第23図は本発明の他の応用例を示すブロック図で、5
3は画像メモリ、54は変倍81!!溝、55は出力装
置を示す。この応用例においては、画像メモリ53に格
納されている画像データを読み出し、例えばレーザビー
ムプリンタのような出力装置55により印刷する場合に
、画像メモリ53と出力装置55との中間に本発明によ
る変倍機構54を設けて出力装置のスピードに追従する
スピードでリアルタイム変倍を行うものである。
FIG. 23 is a block diagram showing another application example of the present invention.
3 is image memory, 54 is variable magnification 81! ! The groove 55 indicates an output device. In this application example, when the image data stored in the image memory 53 is read out and printed by the output device 55 such as a laser beam printer, the modification according to the present invention is installed between the image memory 53 and the output device 55. A magnification mechanism 54 is provided to perform real-time magnification change at a speed that follows the speed of the output device.

(効果) 叙上のごとく、本発明によれば、少なくとも1主走査ラ
イン分の容量を有するラインメモリ、変倍制御情報が格
納される変倍コントロールメモリおよび変倍動作時にデ
ータの補正を行うデータ補正部を備え、前記変倍コント
ロールメモリからの変倍情報に基づいて前記ラインメモ
リおよび前記データ補正部が動作して変倍動作を行う画
像データの変倍方式において、変倍制御情報を、変倍前
と変倍後の画像データのサンプリング点の@数関係を表
すデータと、前記サンプリング点の位置関係を表すデー
タとに分離したデータにより構成することを提案する。
(Effects) As described above, according to the present invention, a line memory having a capacity for at least one main scanning line, a scaling control memory in which scaling control information is stored, and data for correcting data during scaling operations are provided. In the image data scaling method, which includes a correction section, and in which the line memory and the data correction section operate based on the scaling information from the scaling control memory to perform a scaling operation, the scaling control information is changed. It is proposed that the image data be composed of data separated into data representing the number relationship between sampling points of image data before and after scaling, and data representing the positional relationship of the sampling points.

このようにしたことにより本発明はデジタル画像データ
の電気的な変倍を節草なハードウェア構成により、広範
囲の変倍率での変倍、任意倍率での変倍、精度の良い変
倍、また、入力装置または出力装置に同期したリアルタ
イム処理による変倍を可能とする画像データの変倍方式
を提供することができる。
By doing so, the present invention can electrically change the magnification of digital image data by using a simple hardware configuration, and can change the magnification in a wide range of magnification ratios, change the magnification at any magnification ratio, and change the magnification with high precision. , it is possible to provide a scaling method for image data that enables scaling by real-time processing synchronized with an input device or an output device.

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

第1図は画素、画像データ、主走査、副走査等を説明す
る概念図、第2図は第1図に対応する信号のタイムチャ
ート、第3図は本発明による画像データの変倍方式の一
実施例を示すブロック図、第4図は第3図の構成の動作
の概要を説明する説明図、第5図は第3図の入力信号a
を模型的に示すタイムチャート、第6図は第5図と同様
であるが拡大例を示すタイムチャート、第7図は第5図
の縮小例を示すタイムチャート、第8図は第3図の変倍
コントロールメモリの内部ロジックを示す回路図、第9
図は書込み動作を説明するタイムチャート、第10図は
RA Mから変倍データを読み出すモードにおいて第8
図の動作を説明するタイムチャート、第11図は信号C
LK、  !!、に、。 に、、に3のタイミングを示すタイミングチャート、第
12図は第3図のデータ補正部の内部ロジックを示す回
路図、第13図はセレクタの真理値表、第14図は第3
図の第1および第2ラインメモリおよびメモリコントロ
ーラの内部ロジックを示す回路図、第15図は第14図
の回路の動作を説明するタイムチャート、第16図はデ
ータ補正部での動作を説明するタイムチャート、第17
図は拡大時の原理および動作を補足説明する説明図、第
18図および第19図は縮小時の原理および動作を補足
説明するための説明図、第20図は第19図のn、 =
 5〜10に対応する各部の状態を示すタイムチャート
、第21図は本発明の応用例として画像読取り装置を示
す概略図、第22図は第21図の読取りデータに関する
部分の機能ブロック図、第23図は本発明の他の応用例
を示すブロック図である。 L  3,4.7・・・セレクタ、2・・・データ補正
部、5.6・・・ラインメモリ、8・・・変倍コントロ
ールメモリ、9・・・メモリコントローラ、14・・・
RAM。 第1図 第2図 第5図 第12図 第13図 第14図
FIG. 1 is a conceptual diagram explaining pixels, image data, main scanning, sub-scanning, etc., FIG. 2 is a time chart of signals corresponding to FIG. 1, and FIG. A block diagram showing one embodiment, FIG. 4 is an explanatory diagram explaining an overview of the operation of the configuration in FIG. 3, and FIG. 5 is an input signal a of FIG. 3.
Fig. 6 is a time chart similar to Fig. 5 but showing an enlarged example, Fig. 7 is a time chart showing a reduced example of Fig. 5, and Fig. 8 is a time chart showing a reduced example of Fig. 3. Circuit diagram showing the internal logic of the variable magnification control memory, No. 9
The figure is a time chart explaining the write operation, and Fig.
A time chart explaining the operation shown in the figure, Fig. 11 shows the signal C.
L.K.! ! , to. Figure 12 is a circuit diagram showing the internal logic of the data correction section in Figure 3, Figure 13 is the truth table of the selector, and Figure 14 is the timing chart for Figure 3.
A circuit diagram showing the internal logic of the first and second line memories and the memory controller in the figure, FIG. 15 is a time chart explaining the operation of the circuit in FIG. 14, and FIG. 16 is an explanation of the operation in the data correction section. Time chart, No. 17
The figure is an explanatory diagram to supplementally explain the principle and operation when enlarging. Figures 18 and 19 are explanatory diagrams to supplementary explain the principle and operation when reducing. Figure 20 is n of Figure 19. =
21 is a schematic diagram showing an image reading device as an application example of the present invention; FIG. 22 is a functional block diagram of the portion related to read data in FIG. 21; FIG. 23 is a block diagram showing another example of application of the present invention. L 3, 4.7...Selector, 2...Data correction unit, 5.6...Line memory, 8...Magnification control memory, 9...Memory controller, 14...
RAM. Figure 1 Figure 2 Figure 5 Figure 12 Figure 13 Figure 14

Claims (4)

【特許請求の範囲】[Claims] (1)少なくとも1主走査ライン分の容量を有するライ
ンメモリ、変倍制御情報が格納される変倍コントロール
メモリおよび変倍動作時にデータの補正を行うデータ補
正部を備え、前記変倍コントロールメモリからの変倍情
報に基づいて前記ラインメモリおよび前記データ補正部
が動作して変倍動作を行う画像データの変倍方式におい
て、変倍制御情報を、変倍前と変倍後の画像データのサ
ンプリング点の個数関係を表すデータと、前記サンプリ
ング点の位置関係を表すデータとに分離したデータによ
り構成することを特徴とする画像データの変倍方式。
(1) A line memory having a capacity for at least one main scanning line, a scaling control memory in which scaling control information is stored, and a data correction section that corrects data during scaling operation; In an image data scaling method in which the line memory and the data correction unit operate based on scaling information to perform a scaling operation, scaling control information is used to sample image data before scaling and after scaling. A scaling method for image data, characterized in that it is constituted by data separated into data representing the number relationship of points and data representing the positional relationship of the sampling points.
(2)前記変倍コントロールメモリは読出し専用メモリ
であることを特徴とする特許請求の範囲第(1)頂に記
載の画像データの変倍方式。
(2) The image data scaling method according to claim 1, wherein the scaling control memory is a read-only memory.
(3)前記変倍コントロールメモリはランダムアクセス
メモリであることを特徴とする特許請求の範囲第(1)
頂に記載の画像データの変倍方式。
(3) Claim (1) characterized in that the scaling control memory is a random access memory.
Image data scaling method listed at the top.
(4)変倍動作に先立つて、予め中央処理ユニット等に
より変倍制御情報を形成し、この変倍制御情報を前記ラ
ンダムアクセスメモリに格納することを特徴とする特許
請求の範囲第(3)項に記載の画像データの変倍方式。
(4) Prior to the scaling operation, scaling control information is formed in advance by a central processing unit or the like, and this scaling control information is stored in the random access memory. The image data scaling method described in .
JP19176086A 1986-08-18 1986-08-18 Variable power system for picture data Pending JPS6348064A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP19176086A JPS6348064A (en) 1986-08-18 1986-08-18 Variable power system for picture data

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP19176086A JPS6348064A (en) 1986-08-18 1986-08-18 Variable power system for picture data

Publications (1)

Publication Number Publication Date
JPS6348064A true JPS6348064A (en) 1988-02-29

Family

ID=16280053

Family Applications (1)

Application Number Title Priority Date Filing Date
JP19176086A Pending JPS6348064A (en) 1986-08-18 1986-08-18 Variable power system for picture data

Country Status (1)

Country Link
JP (1) JPS6348064A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7209260B1 (en) 1999-07-19 2007-04-24 Sharp Kabushiki Kaisha Image processing apparatus

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5961371A (en) * 1982-09-08 1984-04-07 ロ−ベルト・ボツシユ・ゲゼルシヤフト・ミツト・ベシユレンクテル・ハフツング Electric signal time compression and/or elongation device

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5961371A (en) * 1982-09-08 1984-04-07 ロ−ベルト・ボツシユ・ゲゼルシヤフト・ミツト・ベシユレンクテル・ハフツング Electric signal time compression and/or elongation device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7209260B1 (en) 1999-07-19 2007-04-24 Sharp Kabushiki Kaisha Image processing apparatus

Similar Documents

Publication Publication Date Title
US4686580A (en) Method and apparatus for changing image size
US6031638A (en) Image forming device
KR930022822A (en) Image magnification conversion method and apparatus
JPH0527297B2 (en)
JP3237616B2 (en) Image processing apparatus, image processing method, and recording medium
JPS6348064A (en) Variable power system for picture data
JPH0495463A (en) Method and device for image processing
JP2582058B2 (en) Image data scaling controller
US4860117A (en) Image processing method and system using multiple image sensors producing image data segments which are combined and subjected to optical processing
US4864413A (en) Image processing system having a selective magnification function
JPH03284054A (en) Picture density converter
JP2885999B2 (en) Image processing apparatus and method
US5262631A (en) Color image reading apparatus
JP2860985B2 (en) Document reading device
JP3211696B2 (en) Image processing device
JPS61227477A (en) Picture processor
JP2887840B2 (en) Image reading device
JP3788563B2 (en) Image data scaling device
JPS63220670A (en) Inter-line interprolating method for image signal line
JP3698196B2 (en) Image processing apparatus and image input apparatus
JPS61103368A (en) Optical reader
JPH08204952A (en) Image reader
JP2625423B2 (en) Image reading device
JPH01134577A (en) Image processor
JPS62252268A (en) Picture processor to expand reduce process original picture