JPS59147565A - Method for converting magnification of picture - Google Patents
Method for converting magnification of pictureInfo
- Publication number
- JPS59147565A JPS59147565A JP58020735A JP2073583A JPS59147565A JP S59147565 A JPS59147565 A JP S59147565A JP 58020735 A JP58020735 A JP 58020735A JP 2073583 A JP2073583 A JP 2073583A JP S59147565 A JPS59147565 A JP S59147565A
- Authority
- JP
- Japan
- Prior art keywords
- image
- signal
- magnification
- picture
- scanning direction
- 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
Links
- 238000000034 method Methods 0.000 title claims description 28
- 238000006243 chemical reaction Methods 0.000 claims abstract description 45
- 230000007423 decrease Effects 0.000 claims abstract description 4
- 238000003780 insertion Methods 0.000 abstract description 11
- 230000037431 insertion Effects 0.000 abstract description 11
- 230000008030 elimination Effects 0.000 abstract 1
- 238000003379 elimination reaction Methods 0.000 abstract 1
- 238000010586 diagram Methods 0.000 description 11
- 238000013139 quantization Methods 0.000 description 3
- 235000014121 butter Nutrition 0.000 description 2
- 230000003247 decreasing effect Effects 0.000 description 2
- 230000003111 delayed effect Effects 0.000 description 2
- 230000000694 effects Effects 0.000 description 2
- 230000006870 function Effects 0.000 description 2
- 239000011159 matrix material Substances 0.000 description 2
- 230000003287 optical effect Effects 0.000 description 2
- 230000004044 response Effects 0.000 description 2
- 238000005070 sampling Methods 0.000 description 2
- 230000001360 synchronised effect Effects 0.000 description 2
- 230000001186 cumulative effect Effects 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 239000000463 material Substances 0.000 description 1
- 238000003672 processing method Methods 0.000 description 1
- 238000011946 reduction process Methods 0.000 description 1
- 238000007493 shaping process Methods 0.000 description 1
- 238000004260 weight control Methods 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N1/00—Scanning, transmission or reproduction of documents or the like, e.g. facsimile transmission; Details thereof
- H04N1/387—Composing, repositioning or otherwise geometrically modifying originals
- H04N1/393—Enlarging or reducing
- H04N1/3935—Enlarging or reducing with modification of image resolution, i.e. determining the values of picture elements at new relative positions
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR 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
- G06T3/4023—Scaling of whole images or parts thereof, e.g. expanding or contracting based on decimating pixels or lines of pixels; based on inserting pixels or lines of pixels
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Image Processing (AREA)
- Facsimile Scanning Arrangements (AREA)
- Editing Of Facsimile Originals (AREA)
Abstract
Description
【発明の詳細な説明】
本発明は、画像処理装置、特にディジタル画像を任意の
倍率の大きさにしうる倍率変換方法に関するものである
。DETAILED DESCRIPTION OF THE INVENTION The present invention relates to an image processing device, and more particularly to a magnification conversion method that allows a digital image to be scaled to an arbitrary magnification.
ファクシミIJの装置には、線密度変換機能付きのもの
があるが、該装置では例えば84版の(2)
原稿を送信しA4版の用紙に出力する機能があ)、ここ
では34版をム4版に倍率変換処理している。Some facsimile IJ devices have a linear density conversion function; for example, these devices have the function of transmitting an 84th edition (2) original and outputting it on A4 size paper), but here we will convert the 34th edition. The magnification has been converted to the 4th edition.
該装置の倍率変換処理法は、送信したい原稿サイズに応
じて、原稿から画像の濃度情報を読み取る光学系の倍率
を変えている。The magnification conversion processing method of this apparatus changes the magnification of an optical system that reads image density information from a document depending on the size of the document to be transmitted.
この場合、光学系が複雑となシ、装置のコストダウンお
よび小型化を妨げるという欠点がおる。In this case, there is a drawback that the optical system is complicated, which hinders cost reduction and miniaturization of the device.
ワードプロセッサー等キャラクタ−ジェネレータのパタ
ーンをメモリーとしてもち、表示あるいは記録する画像
処理装置では、通常、文字バター/のサイズは限定して
使って来たが、文書を作ると1!種々のサイズの文字を
使いたいという要求が出て来た。In image processing devices such as word processors that have character generator patterns as memory and display or record them, the size of the character butter// has usually been limited, but when creating a document, 1! There was a demand to use fonts of various sizes.
このとき、種々のサイズのキャラクタ−・ジェネレータ
のパターンをメモリーすることにより実行可能でおるが
、この方法ではメモリー容量が膨大となる欠点がある。This can be done by storing character generator patterns of various sizes in memory, but this method has the disadvantage of requiring an enormous amount of memory.
上記欠点を改良するため、メモリーには1種(3)
類のサイズのキャラクタ−・ジェネレータのパターンを
持ち、電気的な手法によりパターンのサイズを変換する
種々の方法が提案されている。In order to improve the above-mentioned drawbacks, various methods have been proposed in which character generator patterns of one (3) size are stored in the memory and the size of the pattern is converted electrically.
従来提案された方法の中にも、画イtを分割し、倍率変
換するものがある。(弁上、他:6漢字バター/の拡大
・縮小法”、電子通信学会画像工学研究会資料、より7
9−1、P 1〜F10、(1979))。Among the methods proposed in the past, there are methods that divide the image t and convert the magnification. (Benjo, et al.: 6 kanji butter/enlargement/reduction method”, IEICE Image Engineering Study Group Materials, 7)
9-1, P1-F10, (1979)).
この方法では、
(1)56x56画素の画像をメモリーに記憶するパタ
ーンのサイズとしている。In this method, (1) the size of the pattern to be stored in the memory is an image of 56 x 56 pixels;
(2)倍率変換するとき、2X2あるいは3X3画累の
マトリックスに配列されたものを単位として、画像を分
割している。(2) When converting the magnification, the image is divided into units arranged in a matrix of 2×2 or 3×3 strokes.
(3)倍率は%倍あるいは%倍を基準とした、倍率が限
定されたものである。(3) The magnification is a limited magnification based on % times or % times.
(4)装置は、予め分割画像のパターンとこれを倍率変
換したパターンを対としてメモリーに持ち、倍率変換処
理では分割画像がどのパターンに属するかを検索し、こ
れと対となる倍(4)
率変換したパターンで置きかえるという処理を行ってい
る。(4) The device stores the pattern of the divided image and the pattern obtained by converting the magnification of the divided image as a pair in the memory, searches for which pattern the divided image belongs to in the magnification conversion process, and calculates the paired image (4). A process is performed in which the pattern is replaced with a rate-converted pattern.
上記方法では、
(1)画像のサイズを決めているため任意サイズの画像
に適用できない。The above method cannot be applied to images of arbitrary size because (1) the size of the image is determined;
(2)倍率を限定しているため任意倍率の変換に適用で
きない。(2) Since the magnification is limited, it cannot be applied to conversion at any magnification.
(3)画像をマトリックス状に分割し、分割画像がどの
パターンに属するかを検索する必要があυ、処理が複雑
となり、処理の高速化の妨けとなる。(3) It is necessary to divide the image into a matrix and search which pattern the divided image belongs to, which complicates the processing and impedes speeding up of the processing.
以上の欠点がある。There are the above drawbacks.
本発明は上述従来例の欠点を除去し、任意のサイズの画
像を任意の倍率で、高速に倍率変換処理するものでおる
。The present invention eliminates the drawbacks of the above-mentioned conventional example, and enables high-speed magnification conversion processing of an image of any size at any magnification.
第1図は本発明の原理を示す。1は画像、2は画像1を
2倍に拡大した画像、3および4は画像1を2つに分割
した画像、5および6は分割した画像3および4をそれ
ぞれ2倍に拡大した画像である。FIG. 1 illustrates the principle of the invention. 1 is an image, 2 is an image that is twice enlarged from image 1, 3 and 4 are images that are obtained by dividing image 1 into two, and 5 and 6 are images that are obtained by enlarging divided images 3 and 4 by 2 times, respectively. .
(5) 以下本発明の原理を第1図をもとに説明する。(5) The principle of the present invention will be explained below with reference to FIG.
画像1を拡大した画像2は、画像1を分割した画像3お
よび4をそれぞれ拡大し、拡大した画像5および6を合
成することによっても得られる。第1図より、一般に、
画像を任意に分割し、分割した画像をそれぞれ倍率変換
し、次に倍率変換した各画像を合成することによって、
もとの画像を倍率変換した画像を得られるという特質が
あることがわかる。本発明は該特質を最も効率よく利用
するものである。Image 2, which is an enlarged image of image 1, can also be obtained by enlarging images 3 and 4 obtained by dividing image 1, respectively, and combining the enlarged images 5 and 6. From Figure 1, in general,
By arbitrarily dividing the image, converting the magnification of each divided image, and then composing the magnified images,
It can be seen that there is a characteristic that an image can be obtained by converting the magnification of the original image. The present invention makes the most efficient use of this feature.
第2図は本発明を見い出した原理を示す。11はディジ
タル画像中の1ラインを取り出したディジタル画像、1
2〜17は画iIi中の各画素、18は画像11を拡大
したアナログ画像、19は画像18をディジタル化処理
したディジタル画像、20〜27は画像19中の各画素
である。FIG. 2 shows the principle on which the invention was discovered. 11 is a digital image obtained by extracting one line from the digital image, 1
2 to 17 are each pixel in the image iii, 18 is an analog image obtained by enlarging the image 11, 19 is a digital image obtained by digitizing the image 18, and 20 to 27 are each pixel in the image 19.
第2図を用いてディジタル画像の倍率変換について説明
する。ディジタル画像の倍率変換では、変換される画像
と変換されfc両画像ゲイジ(6)
クル画像である。Magnification conversion of a digital image will be explained using FIG. In magnification conversion of a digital image, the image to be converted and the converted fc image are both gauge (6) and the converted image.
画像18はディジタル画像11を写真的に拡大したアナ
ログ画像である。画像11をディジクル的に拡大したい
とき、アナログ画像18を標本化処理および量子化処理
することによってディジタル画像19が得られるが、実
施時には写真的な拡大処理、標本化処理、および量子化
処理は複雑な計算処理で行うことになる。The image 18 is an analog image obtained by photographically enlarging the digital image 11. When it is desired to digitally enlarge the image 11, a digital image 19 can be obtained by performing sampling and quantization processing on the analog image 18. However, photographic enlargement processing, sampling processing, and quantization processing are complicated when carried out. This is done using a computational process.
しかし、ディジタル画像を分割し、分割した画像を変換
したときに1画素分増カロあるいは減少するならは、こ
のとき極めて簡単な規則がおることを発見した。However, we have discovered that there is an extremely simple rule to follow if a digital image is divided and the divided image is converted and the number increases or decreases by one pixel.
第6図は画像間の関係を示す。50は分割画像、31は
分割画像60を拡大した画像である。FIG. 6 shows the relationship between images. 50 is a divided image, and 31 is an enlarged image of the divided image 60.
以下で画像間の関係を説明する。−@31の画素数は画
像30の画素数より1画素多い。第3図中のf1〜f3
およびt1〜t4は各画素の振幅値を示す。図中、画像
31の1番目の画素の値は(1−1)番目および1番目
の画素の値によって決まり、2値画像の場合f1〜f5
およびf、〜f4(7)
の間には以下の関係が成り立つ。The relationship between images will be explained below. - The number of pixels in @31 is one more than the number of pixels in image 30. f1 to f3 in Figure 3
and t1 to t4 indicate the amplitude value of each pixel. In the figure, the value of the first pixel of image 31 is determined by the values of the (1-1)th and first pixels, and in the case of a binary image, f1 to f5
and f, ~f4(7) The following relationship holds true.
t、 :D(fl) ==41(1)
2
1□: D C−f1+−r2) = f 2
(2)6
1
t 、 = D (−f2+−f、 ) = f2(3
)3
24二p(f、)=r、 (4)ここ
でDは量子化作用素
例えば
D(x)==1 ; 1≧x′2−のとき
(5)2
:=O; −>X≧0のとき (6)(1)
〜(4)式より、画像51は画像3001番目と2番目
あるいは28目と3番目の画素の間に1画素挿入し、そ
の振幅値を2番目の画素の振幅値に等しくすればよい。t, :D(fl) ==41(1) 2 1□: D C-f1+-r2) = f 2
(2) 6 1 t, = D (-f2+-f, ) = f2(3
)3 242p(f,)=r, (4) Here, D is a quantization operator, for example, D(x)==1; when 1≧x′2−
(5) 2 :=O; -> When X≧0 (6) (1)
From equation (4), image 51 can be created by inserting one pixel between the first and second pixels of image 300, or between the 28th and third pixels, and making the amplitude value equal to the amplitude value of the second pixel.
以上に於て、分割画素数に対しては、倍率変換処理によ
って1画素増加あるいは減少する事という条件がつくが
、先に説明したように分割(8)
位置に関しては制約がないため、拡大処理のときの1画
素の挿入箇所、縮小処理のときの1画素の除去箇所は処
理に先たち適当に指定できる。In the above, there is a condition that the number of divided pixels is increased or decreased by one pixel by the magnification conversion process, but as explained earlier, there is no restriction on the position of division (8), so the enlargement process The insertion point of one pixel in the case of , and the removal point of one pixel in the reduction processing can be specified appropriately before the processing.
そして、押入する画素の振幅値は挿入位置に隣接する画
素の振幅値よシ決めればよい。例えば、該振幅値を
(1)隣接する画素の1方の画素の振幅値とする(2)
隣接する2つの画素の振幅値の論理和とする
ことが考えられる。The amplitude value of the pixel to be inserted may be determined based on the amplitude value of the pixel adjacent to the insertion position. For example, let the amplitude value be (1) the amplitude value of one of the adjacent pixels (2)
It is conceivable to use the logical sum of the amplitude values of two adjacent pixels.
第4図に拡大処理の1実施例を示す。FIG. 4 shows an example of enlargement processing.
分割画素数が倍率変換処理によって1画素増加あるいは
減少する条件式は次のようになる。The conditional expression for increasing or decreasing the number of divided pixels by one pixel by magnification conversion processing is as follows.
(1) 2’)ム〉1のとき
あるいは
(9)
あるいは
ここでmは分割画素数、Aは倍率
〔x〕はXをこえない最大の整数
(7)〜(1D)のいずれを採用するかは適当に指定で
きる。(1) 2') When m > 1, or (9) Or, where m is the number of divided pixels, and A is the magnification [x], whichever is the largest integer not exceeding X (7) to (1D) is adopted. You can specify as appropriate.
以上の説明は1次元に対して行ったが、2次元の場合に
はそれぞれの方向に同様に行えばよい。また、倍率が2
倍よシ大きいとき、あるい拡%倍よシ小さいときは例え
ば前記倍率変換処理をくυ返すことによって実現できる
。100はデータ入力部、100aは画像の画素数を指
定する信号である。データ入力部100は主走青方向(
よこ)、副走査方向(たて)の各倍率および画素数をセ
ットするパネルスイッチ、倍率から分割画素数を求める
演算回路、各値を各制御回路へ伝える回路からなる。信
号100aで画像デー(10)
夕転送制御回路101中の転送i[10累数をカウント
するカウンター121のセット値(画像の画素数)を所
望の値に変えることにより任意サイズの画像の倍率変換
も可能となる。The above explanation has been given for one dimension, but in the case of two dimensions, the same procedure can be performed in each direction. Also, the magnification is 2
When the magnification is larger than the magnification, or when the magnification is smaller than the magnification, this can be achieved by, for example, repeating the magnification conversion process. 100 is a data input section, and 100a is a signal specifying the number of pixels of an image. The data input section 100 is connected to the main running blue direction (
It consists of a panel switch that sets each magnification and the number of pixels in the horizontal (horizontal) and sub-scanning directions (vertical), an arithmetic circuit that calculates the number of divided pixels from the magnification, and a circuit that transmits each value to each control circuit. The image data (10) is transferred by the signal 100a, and the magnification of an image of any size is converted by changing the set value (number of pixels of the image) of the counter 121 that counts the cumulative number of 10 in the transfer control circuit 101 to a desired value. is also possible.
第5図に於いて101は画像データ転送制御回路、10
2は副走査方向制御回路、103は主走査方向制御回路
、104は画像データ転送回路、105は副走査方向倍
率変換回路、106は主走査方向倍率変換回路、107
は外部から副走査方向の分割画素数をセットする信号線
、108は外部から主走査方向の分割画素数をセットす
る信号線、109は副走査方向の画素挿入あるいは除去
時を伝える信号線、110は主走査方向の画素挿入ある
いは除去時を伝える信号線、111はクロック信号用の
線、112は画像データの転送を制御する信号線、11
5は回路105を制御する信号線、114は回路106
を制御する信号線、115〜117は画像データを転送
する信号線である。In FIG. 5, 101 is an image data transfer control circuit;
2 is a sub-scanning direction control circuit, 103 is a main-scanning direction control circuit, 104 is an image data transfer circuit, 105 is a sub-scanning direction magnification conversion circuit, 106 is a main-scanning direction magnification conversion circuit, 107
108 is a signal line for externally setting the number of divided pixels in the sub-scanning direction; 109 is a signal line for informing when to insert or remove a pixel in the sub-scanning direction; 110 111 is a signal line for transmitting pixel insertion or removal in the main scanning direction; 111 is a clock signal line; 112 is a signal line for controlling image data transfer;
5 is a signal line that controls the circuit 105, 114 is a circuit 106
Signal lines 115 to 117 control the image data, and signal lines 115 to 117 transfer image data.
以下動作を説明する。The operation will be explained below.
本実施例では画像データ転送制御回路101で(11)
作られるクロック信号に同期して動作する。先ずデータ
入力部100よシ(7)〜(10式で求めた分割画素数
が信号線107および108を通じ副走査方向制御回路
102および主走査方向制御回路106にセットされる
。画像データ転送制御回路101は主走査方向および副
走査方向の画素挿入あるいは除去時を除き、画像中の画
素だけの画像データ転送要求信号を出す。画像データ転
送回路104は、画像データをメモリに記憶あるいは画
像をスキャンすることによりもち、第6図に示す順序で
画像データ転送要求信号に対応して1画素分の画像デー
タを転送する。副走査方向制御回路102は主走査方向
の画素挿入あるいは除去時を除き、副走査方向の画素(
1ライン画素)挿入あるいは除去時をチェックして、副
走査方向倍率変換回路105へ制御信号113を転送す
る。In this embodiment, the image data transfer control circuit 101 operates in synchronization with a clock signal generated in (11). First, the data input section 100 sets the number of divided pixels obtained using formulas (7) to (10) to the sub-scan direction control circuit 102 and the main scan direction control circuit 106 through signal lines 107 and 108. Image data transfer control circuit Reference numeral 101 issues an image data transfer request signal for only pixels in an image, except when pixels are inserted or removed in the main scanning direction and sub-scanning direction.An image data transfer circuit 104 stores image data in memory or scans the image. Accordingly, image data for one pixel is transferred in response to the image data transfer request signal in the order shown in FIG. Pixels in the scanning direction (
A control signal 113 is transferred to the sub-scanning direction magnification conversion circuit 105 after checking whether it is inserted or removed (one line pixel).
副走査方向倍率変換回路105は制御信号116に従っ
て、画素挿入あるいは除去時に1ラインの画素を挿入あ
るいは除去する、即ち副走査方向の倍率変換処理を行う
。主走査方向制御回路103(12)
は主走査方向の画素挿入あるいは除去を管理するもので
あり、主走査方向倍率変換回路106へ制御信号114
を転送する。主走査方向倍率変換回路106は制御信号
114に従って、画素挿入あるいは除去時に1画素挿入
あるいは除去する、即ち主走査方向の倍率変換処理を行
う。The sub-scanning direction magnification conversion circuit 105 inserts or removes one line of pixels at the time of pixel insertion or removal, that is, performs a sub-scanning direction magnification conversion process in accordance with the control signal 116. The main scanning direction control circuit 103 (12) manages pixel insertion or removal in the main scanning direction, and sends a control signal 114 to the main scanning direction magnification conversion circuit 106.
Transfer. The main scanning direction magnification conversion circuit 106 inserts or removes one pixel at the time of pixel insertion or removal, that is, performs magnification conversion processing in the main scanning direction in accordance with the control signal 114.
前記実施例に於て、副走査方向倍率変換処理と主走査方
向倍率変換処理の順序を入れかえてもよい。In the embodiment described above, the order of the sub-scanning direction magnification conversion process and the main scanning direction magnification conversion process may be reversed.
次に上述の画像データ転送制御回路について第7図を参
照してさらに説明する。Next, the above-mentioned image data transfer control circuit will be further explained with reference to FIG.
第7図は画像データ転送制御回路の1実施例である。1
20はクロックパルス発生器、121ハカウンター、1
22はゲート回路、123〜124はインバータ、12
5は三入力論理積ゲートである。FIG. 7 shows one embodiment of the image data transfer control circuit. 1
20 is a clock pulse generator, 121 is a counter, 1
22 is a gate circuit, 123 to 124 are inverters, 12
5 is a three-input AND gate.
以下動作を説明する。The operation will be explained below.
クロックパルス発生器120は本システム動作中常時ク
ロックパルス信号を発生する。109お(13)
では制御信号109および110が来ていない間のクロ
ックパルス信号のパルス数をカウントして、その値が画
像中の画素数に等しくなるまでゲート回路122を開放
して、画像データ転送要求信号112を出す。画像デー
タ転送要求信号112の1パルスは1画素分のデータの
転送を画像データ転送回路104に要求する。Clock pulse generator 120 constantly generates a clock pulse signal during operation of the system. 109 and (13), the number of pulses of the clock pulse signal is counted while the control signals 109 and 110 are not coming, and the gate circuit 122 is opened until the value becomes equal to the number of pixels in the image, and the image data is A transfer request signal 112 is issued. One pulse of the image data transfer request signal 112 requests the image data transfer circuit 104 to transfer data for one pixel.
次に第5図に示す副走査方向制御回路102について詳
細に説明する。Next, the sub-scanning direction control circuit 102 shown in FIG. 5 will be explained in detail.
第8図は副走査方向制御回路102の1実施例である。FIG. 8 shows one embodiment of the sub-scanning direction control circuit 102.
130はインバータ、151は論理積ゲート、162は
クロックパルスカウンター、133ハラインカウンター
、154はコンパレータ、135はインバータ、136
はD−フリップ・7pツブ、137〜138は回路内部
の信号、169および141は副走査方向制御回路10
5を制御する信号であるO
第9図は、第8図中の信号109〜111.137〜1
41のタイミングチャートである。以下動作を説明する
。130 is an inverter, 151 is an AND gate, 162 is a clock pulse counter, 133 is a Hall line counter, 154 is a comparator, 135 is an inverter, 136
137-138 are signals inside the circuit, 169 and 141 are sub-scanning direction control circuit 10
5, which is the signal that controls O.
41 is a timing chart. The operation will be explained below.
(14)
クロックパルス信号111は本システムの同期信号のも
ととなる。信号111と主走査方向制御回路からの制御
信号110の論理積による信号139は、信号111か
ら制御信号110時のパルス信号を除去したものであシ
、副走査方向倍率変換回路動作させる同期信号となる。(14) The clock pulse signal 111 is the source of the synchronization signal of this system. The signal 139, which is the logical product of the signal 111 and the control signal 110 from the main scanning direction control circuit, is obtained by removing the pulse signal at the time of the control signal 110 from the signal 111, and serves as a synchronization signal for operating the sub-scanning direction magnification conversion circuit. Become.
信号139は画素データ転送信号115とも同期してい
る。カウンター132は信号139のパルス数、即ち転
送されて来る画素数をカウントして、1走査ライン中の
画素数に等しくなったとt!1パルス出力する。Signal 139 is also synchronized with pixel data transfer signal 115. The counter 132 counts the number of pulses of the signal 139, that is, the number of transferred pixels, and when it becomes equal to the number of pixels in one scanning line, t! Outputs 1 pulse.
即ち信号137は各ラインの走査開始時に同期したパル
ス信号である。ラインカウンター133は転送された画
素の走査線をカウントする。コンパレータ164にL1
外部から副走査方向の分割画像の画素数、即ち走査線数
がセットされる。That is, the signal 137 is a pulse signal synchronized at the start of scanning of each line. A line counter 133 counts the scan lines of transferred pixels. L1 to comparator 164
The number of pixels, ie, the number of scanning lines, of the divided images in the sub-scanning direction is set from the outside.
今セットされた値がmのとき、ラインカウンター153
の値がmであれば、信号109を出力する。When the value set now is m, the line counter 153
If the value of is m, a signal 109 is output.
信号109および140は副走査方向の画素(ライン)
挿入時を制御すると同時にラインカウンター133の値
をクリヤーする。Dクリップ・フロ(15)
ツブは信号140を1走査ラインの時間だけ遅延した信
号141を出力する。信号139および141を制御信
号として副走査方向倍率変換回路は動作する。Signals 109 and 140 are pixels (lines) in the sub-scanning direction
At the same time as controlling the insertion time, the value of the line counter 133 is cleared. D-clip flow (15) The tube outputs a signal 141 which is the signal 140 delayed by the time of one scanning line. The sub-scanning direction magnification conversion circuit operates using signals 139 and 141 as control signals.
次に第5図に示す副走査方向倍率変換回路についてさら
に説明する。Next, the sub-scanning direction magnification conversion circuit shown in FIG. 5 will be further explained.
第10図は副走査方向倍率変換回路の1実施例である。FIG. 10 shows one embodiment of a sub-scanning direction magnification conversion circuit.
151〜153は1ライン分の画素数に等しいシフトレ
ジスタ、154は論理和ゲート、155〜156は論理
積ゲート、157はインバータ、158は論理和ゲート
、159は信号セレクト回路、161〜165は回路内
の信号である。151 to 153 are shift registers equal to the number of pixels for one line, 154 is an OR gate, 155 to 156 are AND gates, 157 is an inverter, 158 is an OR gate, 159 is a signal selection circuit, 161 to 165 are circuits It is a signal within.
第11図は各信号のタイミングチャートである。以下動
作を説明する。FIG. 11 is a timing chart of each signal. The operation will be explained below.
画像データ転送回路104からは、第11図のような順
で画像データ信号115が転送されてくる。図中斜線部
は前記説明の如く制御信号109によシ、画像データが
転送されない期間である。Image data signals 115 are transferred from the image data transfer circuit 104 in the order shown in FIG. The shaded area in the figure is a period during which no image data is transferred in response to the control signal 109, as described above.
シフトレジスター151を経て、信号161トなシ信号
セレクト回路159へ入力する。また信号161(16
)
はシフトレジスター152と論理和ゲート154に入力
し、信号163となシ、シフトレジスター153を経て
、信号164となり、信号セレクト回路159へ入力す
る。信号セレクト回路159は繭重制御信号141に基
づき、信号161と信号164を選択し、信号165を
出力する。本実施例では、mライン毎に1ライン分の画
素が挿入されるため副走査方向に(m+1)、z、倍の
倍率変換が行なわれる。After passing through the shift register 151, the signal 161 is input to a second signal select circuit 159. Also signal 161 (16
) is input to the shift register 152 and the OR gate 154, becomes a signal 163, passes through the shift register 153, becomes a signal 164, and is input to the signal select circuit 159. The signal selection circuit 159 selects the signal 161 and the signal 164 based on the cocoon weight control signal 141 and outputs the signal 165. In this embodiment, since pixels for one line are inserted every m lines, a magnification conversion of (m+1), z, is performed in the sub-scanning direction.
mの値は入力部100から与えられるから可変であるこ
とは1゛うまでもない。Since the value of m is given from the input section 100, it goes without saying that it is variable.
上記実施例ではlkO値として1m−1と4mの論理和
をとっているがこれに限定されるものではない。In the above embodiment, the logical sum of 1m-1 and 4m is taken as the lkO value, but the invention is not limited to this.
次に第5図に示す主走査方向制御回路についてさらに説
明する。Next, the main scanning direction control circuit shown in FIG. 5 will be further explained.
第12図は主走査方向制御回路の1実施例である。17
0はカウンタ、171はコンパレータ、172ハインバ
ータ、173はシフトレジスター、174は論理積ゲー
ト、175〜178は信号である。FIG. 12 shows one embodiment of the main scanning direction control circuit. 17
0 is a counter, 171 is a comparator, 172 is an inverter, 173 is a shift register, 174 is an AND gate, and 175 to 178 are signals.
第13図は各信号のタイミングチャートであ(17) る。以下動作を説明する。Figure 13 is a timing chart of each signal (17) Ru. The operation will be explained below.
先ず、外部から主走査方向の分割画素数(n)を信号線
108を通じコンパレータ171ヘセツトする。クロッ
クパルス信号111ハカウンター170でカウントされ
、その値はコンパレータ171にセットされた値と比較
される。両者が等しいとき、信号110を出力する。信
号110は画像データ転送制御回路101および副走査
方向制御回路を制御する信号となる。信号176はカウ
ンター170をクリヤーすると同時に、論理積ゲート1
74とDフリップフロップへ入力する。Dフリップフロ
ップへ入力した信号176は1クロツク遅れた信号17
8とな多出力される。信号111はシステム同期信号、
信号177は画素挿入あるいは除去制御信号、信号17
8は信号セレクト制御信号として主走査方向倍率変換回
路へ入力される。First, the number of divided pixels (n) in the main scanning direction is set from the outside to the comparator 171 through the signal line 108. The clock pulse signal 111 is counted by a counter 170, and its value is compared with the value set in a comparator 171. When both are equal, a signal 110 is output. Signal 110 is a signal for controlling image data transfer control circuit 101 and sub-scanning direction control circuit. Signal 176 clears counter 170 while AND gate 1
74 and input to the D flip-flop. The signal 176 input to the D flip-flop is the signal 17 delayed by one clock.
Multiple outputs such as 8 are output. Signal 111 is a system synchronization signal,
Signal 177 is a pixel insertion or removal control signal, signal 17
8 is input as a signal selection control signal to the main scanning direction magnification conversion circuit.
次に主走査方向倍率変換回路について詳述する。Next, the main scanning direction magnification conversion circuit will be described in detail.
第14図は主走査方向倍率変換回路の1実施例である。FIG. 14 shows one embodiment of the main scanning direction magnification conversion circuit.
180はDフリップ・フロップ、181(18)
は論理和ゲート、182は信号セレクト回路、183は
Dフリップ・フロップ、184〜186は信号である。180 is a D flip-flop, 181 (18) is an OR gate, 182 is a signal select circuit, 183 is a D flip-flop, and 184 to 186 are signals.
第15図は各信号のタイミングチャートである。以下動
作を説明する。FIG. 15 is a timing chart of each signal. The operation will be explained below.
信号116は第15図の順序で入力する。図中斜線部は
副走査方向制御回路102へ送られた制御信号110に
よj5 afiが保持されており、他の信号の2倍の期
間を持つ。信号116はD 71Jツブフロツプに入力
し、信号184となり、信号セレクト回路182と論理
和ゲート181へ入力する。Signals 116 are input in the order shown in FIG. In the shaded area in the figure, j5 afi is held by the control signal 110 sent to the sub-scanning direction control circuit 102, and has a period twice as long as other signals. Signal 116 is input to the D71J block flop, becomes signal 184, and is input to signal select circuit 182 and OR gate 181.
論理和ゲート181では信号116と信号184の論理
和がとられ信号185となる。信号セレクト回路186
では、制御信号178に基づき、信号184と信号18
5を選択し、信号186を出す。The OR gate 181 performs the OR of the signal 116 and the signal 184 to obtain a signal 185. Signal selection circuit 186
Then, based on the control signal 178, the signal 184 and the signal 18 are
5 is selected and a signal 186 is issued.
上記信号関係は第15図のようになる。本実施例では、
信号186はもう1 段D 7 リップフロップ185
を通り、出力信号117となる。(Dフリップフロップ
183は信号整形のために用いる)本実施例ではan−
1と2Inの論理和信号を振幅値(19)
としてもつ信号を挿入しているがこれに限定されるもの
でない。The above signal relationship is as shown in FIG. In this example,
Signal 186 is one more stage D7 flip-flop 185
and becomes an output signal 117. (The D flip-flop 183 is used for signal shaping.) In this embodiment, an-
Although a signal having an amplitude value (19) that is a logical sum signal of 1 and 2In is inserted, the present invention is not limited to this.
上記説明から明らかなように、本実施例によれば主走査
方向On画素毎に1画素挿入されn+1/n倍に拡大処
理される。nは外部から与えられるものであυ任意の倍
率変換が可能である。As is clear from the above description, according to the present embodiment, one pixel is inserted for every On pixel in the main scanning direction, and enlarged by n+1/n times. n is given from the outside, and arbitrary magnification conversion is possible.
上記実施例では拡大処理について説明したが、本発明は
拡大処理に限定するものではない。縮小処理においては
各倍率変換回路に細小処理用の回路を設け、該回路にお
いては1ラインあるいは1画素の除去処理を行うことに
よって実現できる。Although the above embodiment describes enlargement processing, the present invention is not limited to enlargement processing. The reduction process can be realized by providing a circuit for fine processing in each magnification conversion circuit, and performing a process of removing one line or one pixel in the circuit.
拡大および縮小を選択して使う場合には、倍率変換回路
に拡大処理回路および縮小処理回路を設け、また制御回
路に拡大処理あるいは縮小処理を指示する回路を設け、
販出力信号を拡大あるいは縮小選択信号とすることによ
って実現できる。When selecting and using enlargement and reduction, the magnification conversion circuit is provided with an enlargement processing circuit and a reduction processing circuit, and the control circuit is provided with a circuit that instructs enlargement processing or reduction processing,
This can be achieved by using the sales output signal as an enlargement or reduction selection signal.
以上説明したように、倍率変換処理したとき画素数が1
つ増加あるいは減少するように画像(20)
を分割することによシ、処理のときに1画素挿入あるい
は除去することによシ倍率変換処理がき
でる。このため、ハード構成を容易にし、また八
高速処理を可能とする効果がある。As explained above, when the magnification conversion process is performed, the number of pixels is 1.
By dividing the image (20) so as to increase or decrease the number of pixels, magnification conversion processing can be performed by inserting or removing one pixel during processing. This has the effect of simplifying the hardware configuration and enabling high-speed processing.
拡大処理において、挿入する画素の振幅値が挿入箇所の
拡大する方向の隣接画素の振幅値にのみ依存し、他の画
素に依存しないため、処理が容易となる。また逐次処理
できる効果がある。In the enlargement process, the amplitude value of the inserted pixel depends only on the amplitude value of the adjacent pixel in the direction in which the insertion point is enlarged, and does not depend on other pixels, which facilitates the process. It also has the effect of sequential processing.
任意のサイズのディジタル画像に対しても、逐次処理が
できるため、ファクシミリ等のディジタル・プリンター
および液晶等のディジタル表示器にも容易に使用できる
。Since digital images of any size can be processed sequentially, they can be easily used in digital printers such as facsimiles and digital displays such as liquid crystals.
第1図および第2図は本発明の原理図、第5図は画像間
の関係を示す図、第4図は拡大処理の1実施例を示す図
、第5図は本発明の実施例を示す図、第6図は画像デー
タの転送順序を示す図、第7図は画像データ転送制御回
路の1実施例を示す図、第8図は副走査方向制御回路の
1実施例を示す図、第9図は第8図に示す6信(21)
号のタイミングチャート、第10図は副走査方向倍率変
換回路の1実施例を示す図、第11図は第10図に示す
各信号のタイミングチャート、第12図は主走査方向制
御回路の1実施例を示す図、第13図は第12図に示す
各信号のタイミングチャート、第14図は主走査方向倍
率変換回路の1実施例を示す図、第15図は第14図に
示す各信号のタイミングチャートである。
101・・・画像データ転送制御回路
102・・・副走査方向制御回路
103・・・主走査方向制御回路
104・・・画像データ転送回路
105・・・副走査方向倍率変換回路
106・・・主走査方向倍率変換回路
出願人 キャノン株式会社
(22)
鳥Z図
ΔRへ
円国刃刃
、i檀411IIl−1Il:I垣
〜1771 and 2 are diagrams showing the principle of the present invention, FIG. 5 is a diagram showing the relationship between images, FIG. 4 is a diagram showing one embodiment of enlargement processing, and FIG. 5 is a diagram showing an embodiment of the present invention. 6 is a diagram showing the transfer order of image data, FIG. 7 is a diagram showing one embodiment of the image data transfer control circuit, FIG. 8 is a diagram showing one embodiment of the sub-scanning direction control circuit, Fig. 9 is a timing chart of the 6th signal (21) shown in Fig. 8, Fig. 10 is a diagram showing one embodiment of the sub-scanning direction magnification conversion circuit, and Fig. 11 is a timing chart of each signal shown in Fig. 10. 12 is a diagram showing one embodiment of the main scanning direction control circuit, FIG. 13 is a timing chart of each signal shown in FIG. 12, and FIG. 14 is a diagram showing one embodiment of the main scanning direction magnification conversion circuit. 15 is a timing chart of each signal shown in FIG. 14. 101... Image data transfer control circuit 102... Sub-scanning direction control circuit 103... Main scanning direction control circuit 104... Image data transfer circuit 105... Sub-scanning direction magnification conversion circuit 106... Main Scanning direction magnification conversion circuit Applicant Canon Co., Ltd. (22) Tori Z diagram ΔR to Enkuniba blade, idan411IIl-1Il:Ikaki~177
Claims (1)
率変換処理し、変換処理した各画像を合成することによ
シ画像の倍率変換処理を行うことを特徴とする画像の倍
率変換方法。 (2、特許請求の範囲第1項において前記倍率が(1,
2)の範囲に属する拡大処理、あるいは(3A、1)の
範囲に属する縮小処理のとき、分割した画像を拡大処理
あるいは縮小処理するととにより、変換された画像の一
次元方向の画素数が処理によって1画素増加あるいは減
少するような画素数に画像を分割することを特徴とする
画像の倍率変換方法。 (3)特許請求の範囲第2項において、倍率がムのとき
、分割した画像の1次元方向の画素数mが (1) ここで(X)はXをこえない最大の整数を満足すること
を特徴とする画像の倍率変換方法。 (4)特許請求の範囲第2項において、分割した画像を
拡大処理あるいは縮小処理するとき、処理される画像に
1画素挿入あるいは処理される画像から1画素除去する
ことを特徴とする画像の倍率変換方法。 (5)特許請求の範囲第4項において、拡大処理あるい
は縮小処理するとき、1画素挿入あるいは除去する位置
を処理に先だって適尚に指定することを特徴とする画像
の倍率変換方法。[Claims] (1) The image magnification conversion process is performed by arbitrarily dividing the image, performing magnification conversion processing on each divided image, and composing the converted images. How to convert the magnification of an image. (2. In claim 1, the magnification is (1,
When performing enlargement processing that falls within the range of 2) or reduction processing that falls within the range of (3A, 1), the number of pixels in the one-dimensional direction of the converted image is reduced by enlarging or reducing the divided image. An image magnification conversion method characterized by dividing an image into pixels in which the number of pixels increases or decreases by one pixel. (3) In claim 2, when the magnification is m, the number of pixels in the one-dimensional direction of the divided image m is (1) where (X) satisfies the largest integer that does not exceed X. An image magnification conversion method characterized by: (4) In claim 2, the image magnification is characterized in that when enlarging or reducing a divided image, one pixel is inserted into or one pixel is removed from the processed image. Conversion method. (5) An image magnification conversion method as set forth in claim 4, characterized in that, when performing enlargement processing or reduction processing, a position where one pixel is to be inserted or removed is appropriately designated prior to processing.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP58020735A JPS59147565A (en) | 1983-02-10 | 1983-02-10 | Method for converting magnification of picture |
US06/577,250 US4686580A (en) | 1983-02-10 | 1984-02-06 | Method and apparatus for changing image size |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP58020735A JPS59147565A (en) | 1983-02-10 | 1983-02-10 | Method for converting magnification of picture |
Publications (1)
Publication Number | Publication Date |
---|---|
JPS59147565A true JPS59147565A (en) | 1984-08-23 |
Family
ID=12035445
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP58020735A Pending JPS59147565A (en) | 1983-02-10 | 1983-02-10 | Method for converting magnification of picture |
Country Status (1)
Country | Link |
---|---|
JP (1) | JPS59147565A (en) |
-
1983
- 1983-02-10 JP JP58020735A patent/JPS59147565A/en active Pending
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US4686580A (en) | Method and apparatus for changing image size | |
EP0012173B1 (en) | Apparatus for picture processing with resolution conversion | |
JPS58127466A (en) | Picture enlarging and reducing system | |
JPH03189878A (en) | Edit control system for image processing device | |
US5574833A (en) | Image processing apparatus for the smooth enlargement and multileveling output of an image | |
US6232978B1 (en) | Image processing apparatus, and method of controlling same, using a combination of enlargement and fixed ratio reduction processing | |
JP2857292B2 (en) | Apparatus for realizing two-dimensional digital filter | |
JPS59147565A (en) | Method for converting magnification of picture | |
JP2638788B2 (en) | Image reduction circuit | |
JP2829931B2 (en) | Image processing device | |
JP2829930B2 (en) | Image processing device | |
KR100211838B1 (en) | Image Image Reduction Device | |
JP2955300B2 (en) | Image processing method and apparatus | |
JP3225884B2 (en) | Image processing device, image processing method, image reading device, copying machine, and recording medium | |
JP2887840B2 (en) | Image reading device | |
JP3698196B2 (en) | Image processing apparatus and image input apparatus | |
JP2993618B2 (en) | Image processing method | |
JPS59182667A (en) | Method for converting magnification of picture | |
JP3354651B2 (en) | Image scaling method | |
JPS62164130A (en) | Picture processor | |
JP2575641B2 (en) | Image editing processing method | |
JPH0828810B2 (en) | Image data scaling processor | |
JPH0789644B2 (en) | Image data scaling processor | |
JPH07123279B2 (en) | Image data scaling processor | |
JPH06101787B2 (en) | Image data scaling processor |