JPS59182667A - Method for converting magnification of picture - Google Patents

Method for converting magnification of picture

Info

Publication number
JPS59182667A
JPS59182667A JP58056216A JP5621683A JPS59182667A JP S59182667 A JPS59182667 A JP S59182667A JP 58056216 A JP58056216 A JP 58056216A JP 5621683 A JP5621683 A JP 5621683A JP S59182667 A JPS59182667 A JP S59182667A
Authority
JP
Japan
Prior art keywords
image
picture
signal
magnification
divided
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
JP58056216A
Other languages
Japanese (ja)
Inventor
Yuzo Kato
雄三 加藤
Hidetoshi Suzuki
英俊 鱸
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Canon Inc
Original Assignee
Canon Inc
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Canon Inc filed Critical Canon Inc
Priority to JP58056216A priority Critical patent/JPS59182667A/en
Priority to US06/577,250 priority patent/US4686580A/en
Publication of JPS59182667A publication Critical patent/JPS59182667A/en
Pending legal-status Critical Current

Links

Landscapes

  • Image Processing (AREA)
  • Facsimile Scanning Arrangements (AREA)
  • Editing Of Facsimile Originals (AREA)

Abstract

PURPOSE:To attain conversion of magnification with high accuracy by dividing each digital picture in an equal number of picture elements of the digital picture before and after the conversion of magnification in each direction to prevent an error at coverting processing from being generated. CONSTITUTION:The number equal to the entire picture element number from an external panel switch or the like, and the picture element dividing number in each direction obtained from a prescribed operation and the picture dividing number in each direction in the divided picture is set to a set data control circuit 200. Further, the picture element number in the divided picture is set to subscanning and main scanning direction control circuits 102, 103 in response to control signals 107, 108. The control is performed in synchronizing with a clock signal 111 from a picture data transfer control circuit 101 and a picture data request for the picture element only is outputted from the circuit 101 to a picture data transfer circuit 104. Then, the conversion of magnification is processed by subscanning and main scanning direction magnification converting circuits 105, 106 and the picture is divided in an equal number of picture elements of the picture before and after conversion in each direction, thereby attaining the conversion of magnification with high accuracy.

Description

【発明の詳細な説明】 本発明はディジタル画像を任意の倍率の大きさにしうる
画像の倍率変換方法に関するものである。
DETAILED DESCRIPTION OF THE INVENTION The present invention relates to an image magnification conversion method that allows a digital image to be scaled to an arbitrary magnification.

ファクシミリの装置には、線密度変換機能付きのものが
あるが、該装置では例えば34版の原稿を送信しA4版
の用紙に出力する機能があシ、ここでは34版をA4版
に倍率変換処理している。
Some facsimile devices are equipped with a linear density conversion function, but these devices do not have the function of transmitting a 34-version manuscript and outputting it on A4-size paper. Processing.

該装置の倍率変換処理法は、送信したい原稿サイズに応
じて、原稿から画像の濃度情報を読み取る光学系の倍率
を変えている。
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.

ワードプロセッサー等キャラクタ−ジェネレータのパタ
ーンをメモリーとしてもち、表示あるいは記録する画像
処理装置では、通常、文字パターンのサイズは限定して
使って来たが、文書を作るとき種々のサイズの文字を使
いたいと要求が出て来た。
Image processing devices, such as word processors, which have character generator patterns as memory and display or record them, have usually used character patterns with a limited size, but now there are times when people want to use characters of various sizes when creating documents. A request has been made.

このとき、種麹のサイズのキャラクタ−ジェネレータの
パターンをメモリーすることによシ実行可能であるが、
この方法ではメモリー容量が膨大となる欠点がめる。
At this time, it can be executed by memorizing the character generator pattern of the size of the seed koji, but
This method has the drawback of requiring a huge amount of memory.

上記欠点を改良するため、メモリーには1椋類のサイズ
のキャラクタ−ジェネレータのパターンを持ち、1気的
な手法によシバターンのサイズを変換する種々の方法が
提案されてい1゜従来提案された方法の中にも、画像を
分古1」シ、倍率変換するものがある。(弁上、他:″
漢字パターンの拡大・縮小法″′、菖子連子通信学会像
工学研究会資料、工E7971 、 PI〜PIO,(
1979))この方法では、 (1ン 36X36[1!II紫のI+!!l像をメモ
リーに記憶するパターンのサイズとしている。
In order to improve the above drawbacks, various methods have been proposed in which the size of the character generator is stored in the memory and the size of the character generator is converted using a one-dimensional method. Among the methods, there is a method that converts the image size and magnification. (Benjo, others: ″
Enlarging/reducing method of kanji patterns'', Ayoko Renshi Communication Society Image Engineering Study Group Materials, Engineering E7971, PI~PIO, (
(1979)) In this method, the size of the pattern to be stored in the memory is (1n 36x36[1!II purple I+!!l image).

(2)倍率変換するとき、2×2あるいは3×3画素の
マトリックスに配列されたものを単位として、画像を分
割している。
(2) When converting the magnification, the image is divided into units arranged in a matrix of 2×2 or 3×3 pixels.

(3)倍率は3X2倍あるいは4X3倍を基準とした、
倍率が限定されたものである。
(3) The magnification is based on 3X2 times or 4X3 times,
The magnification is limited.

(4)  装置は、予め、分割画像のパターンとこれを
倍率変換したパターンを対としてメモリーに持ち、倍率
変換処理では分割画像がどのパターンに属するかを検索
し1これと対となる倍率変換したパターンで置きかえる
という処理を行っている。
(4) The device previously stores in memory the pattern of the divided image and the pattern obtained by converting the magnification of the divided image as a pair, and in the magnification conversion process searches which pattern the divided image belongs to and performs magnification conversion of the paired image. The process is to replace it with a pattern.

上記、方法では、 (リ 画像のサイズを決めているため任意サイズの画像
に適用できない。
The above method cannot be applied to images of arbitrary size because the size of the image is determined.

(2)  倍率を限定しているため任意倍率の変換に適
用できない。
(2) Since the magnification is limited, it cannot be applied to conversion of arbitrary magnification.

(3)  画像をマ) IJソックス状分割し、分割画
像がどのパターンに属するかを検索する必要が一李広処
理が複雑となシ、処理の高速化の妨げとなる。
(3) It is necessary to divide the image into IJ socks and search for which pattern the divided image belongs to, which complicates the process and hinders speeding up of the process.

以・上の欠点がある。There are the following drawbacks.

上記欠点を改良する方法に本出願人によるものがある。There is a method proposed by the present applicant to improve the above-mentioned drawbacks.

6称、画像の倍率変換方法(出願日昭和58年2月10
日)該方法では、ディジタル画像を分割し、分割した画
像を倍率変換した後合成するものであるが、分割する際
倍率Aによシ(1)〜(4)式に示すように分割N像中
のwi紫数を設定している。
6th person, image magnification conversion method (filing date: February 10, 1982)
In this method, a digital image is divided, and the divided images are combined after converting the magnification. The wi purple number inside is set.

2〉A〉1のとき m=’(÷〕(1) 1 あるいは−=(口十丁〕(2) 1 > A >’l−のとき 1            (3) m−40〕 あるいはm=〔」−+よ〕(4) 1−A   2 ここでmは分割画像中の画素数 〔X〕はXをこえない最大の整数 この場合、(IJ〜(4、)式における丸め誤差あるい
は打切多誤差によシ、精度の高い倍率変換処理ができな
い場合があるという欠点がある。
When 2〉A〉1, m = '(÷) (1) 1 or - = (kuchijucho] (2) When 1 > A >'l-, then 1 (3) m-40] Or m = ['' -+] (4) 1-A 2 Here, m is the number of pixels in the divided image [X] is the maximum integer that does not exceed However, it has the disadvantage that it may not be possible to perform highly accurate magnification conversion processing.

本発明は前記従来例の欠点を除去し、精度の高い倍率置
換処理を可能にするものである。
The present invention eliminates the drawbacks of the conventional example and enables highly accurate magnification replacement processing.

第1図は本発明の原理を示す。FIG. 1 illustrates the principle of the invention.

1は画像、2は画像lを2倍に拡大した画像、3および
4は画像1を2つに分割した画像、5および6は分割し
た画像3および4をそれぞれ2倍に拡大した画像である
1 is an image, 2 is an image obtained by enlarging image l twice, 3 and 4 are images obtained by dividing image 1 into two, and 5 and 6 are images obtained by enlarging divided images 3 and 4 by 2 times, respectively. .

、以下本発明の原理を第1図をもとに嘔明する。The principle of the present invention will be explained below with reference to FIG.

、画像1を鉱内した画像2は、画像1を分割した画像3
および4をそれぞれ拡大し1拡大した画像5および6を
合成することによっても得られる。
, Image 2 is image 1 divided into image 3.
It can also be obtained by enlarging images 5 and 4, respectively, and composing images 5 and 6 which are enlarged by 1.

第1図よシ、 一般に、画像を任意に分割し1分割したしJ像をそれぞ
れ倍率変換し、次に倍率変換した各−保を合成すること
によって、もとの画像を倍率変換した画像を得られると
いう特質があることがわかる0本発明は該特質を最も効
率よく利用するものである。
As shown in Figure 1, in general, an image is divided arbitrarily into 1 parts, each J image is magnified, and then the magnification-converted images are combined to create an image with the magnification converted from the original image. The present invention makes the most efficient use of this characteristic.

第2図は本発明の原理図である。FIG. 2 is a diagram showing the principle of the present invention.

11はディジタル画像中の1ラインを取シ出したディジ
タル画像、12〜17は画像ll中の各画素、18は画
像11を拡大したアナログ画像、19は画像18をディ
ジタル化処理したディジタル画像、20〜27は画像1
9中の各画素である。
11 is a digital image taken from one line in the digital image, 12 to 17 are each pixel in image 11, 18 is an analog image obtained by enlarging image 11, 19 is a digital image obtained by digitizing image 18, and 20 ~27 is image 1
Each pixel in 9.

第2図を用いてディジタル画像の倍率変換について説明
する。
Magnification conversion of a digital image will be explained using FIG.

ディジクルI[iII像の倍率変換では、変換される0
!II像と変換された画像は共にディジタル画像である
In the magnification conversion of the digit I[iII image, the converted 0
! Both the II image and the converted image are digital images.

画像18はディジタル画像11を写真的に拡大したアナ
ログ画像である。i[!!i!iIをディジタル的に拡
大したいとき、アナログ画像18を標本化処理および量
子化処理することによってディジタル画像19が得られ
るが、実施時には写真的々拡大処理、標本化処理、およ
び量子化処理は複雑表計算処理で行うことになる。
The image 18 is an analog image obtained by photographically enlarging the digital image 11. i [! ! i! When it is desired to digitally enlarge iI, a digital image 19 can be obtained by subjecting the analog image 18 to sampling and quantization. This will be done through calculation processing.

しかL1ディジタル画像を分割し、分割した画像を倍率
変換したときに1画素のみ増加あるいは減少するならば
、このとき極めて簡単な規則があることを発見した。
However, we have discovered that there is an extremely simple rule if only one pixel increases or decreases when an L1 digital image is divided and the divided image is magnified.

第3図は画像間の関係を示す。FIG. 3 shows the relationship between images.

30は分割画像、31は分割画像30を拡大した画像で
ある。
30 is a divided image, and 31 is an image obtained by enlarging the divided image 30.

以下で画像間の関係を説明する。The relationship between images will be explained below.

]I!iI像31像画1数は画像30の画素数よシ1画
画素−。
]I! The number of pixels in the iI image 31 is equal to the number of pixels in the image 30.

第3図中のf、−yf、およびg、〜g、は各画素の振
幅値を示す。
f, -yf, and g, to g in FIG. 3 indicate the amplitude value of each pixel.

図中、画像31の1番目の画素の値は(1−1’)番目
および1番目の画素の値によって決まシ、2値画像の場
合f1〜f、およびg1〜g4の間には以下の関係が成
り立つ。
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, between f1 and f and g1 and g4 are as follows. A relationship is established.

gt = D (ft 〕二fl         (
1)1    2 gz=DC7≧7f、−1−7ラー:  f、  ) 
 =  ft              (2ン1 gs =D 〔,3で2十丁’s ) = f2   
   (3)g4= D(fa) = fa     
       (4,1ここでDは炉子化作用素 例えば D (x〕=l;l≧X〉−のとき  (5)一 2 =0;去〉X≧0のとき  U (1)〜(4)式よシ、画像31はlI!11像30の
1番目と2香目あるいは2番目と3番目の画素の間に1
画素挿入し、そのm Ijirl値を2番目の画素の振
幅値に等しくすればよい。
gt = D (ft) two fl (
1) 1 2 gz=DC7≧7f, -1-7ra: f, )
= ft (2 in 1 gs = D [, 3 = 20's) = f2
(3) g4 = D(fa) = fa
(4,1 Here, D is a generator operator, for example, D (x) = l; when l≧X〉- (5) - 2 = 0; when X≧0, U (1) to (4) equations Okay, image 31 is lI! 11 between the 1st and 2nd pixels or the 2nd and 3rd pixels of image 30.
Just insert a pixel and make its m Ijirl value equal to the amplitude value of the second pixel.

以上に於て、分割画素数に対しては、倍率変換処理によ
って1画素増加あるいは減少する事という条件がつくが
、先に説明したように分割位置に関しては制約がないた
め、拡大処理のときの1画素の挿入箇所、縮小処理のと
きの1画素の除去箇所は適当に指定できる。そして、挿
入する画素の振幅値は挿入位置に隣接する画素の振幅値
よシ決めれげよψ。例えば、該振幅値を (1)瞬接する画素の1力の画素の振幅値とする。
In the above, there is a condition that the number of divided pixels must be increased or decreased by one pixel by the magnification conversion process, but as explained earlier, there is no restriction on the division position, so The insertion point of one pixel and the removal point of one pixel during reduction processing can be specified as appropriate. Then, determine the amplitude value of the pixel to be inserted 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 a single force pixel of a pixel that is in instantaneous contact.

(2)隣接する2つの画素の振幅値の論理和とする。(2) The amplitude values of two adjacent pixels are logically summed.

ことが考えられる。It is possible that

第4図に拡大処理の1実施例を示す。FIG. 4 shows an example of enlargement processing.

精度の高い倍率変換処理を行うためには、各方向の変換
前と変換後の画像の画素数の差に等しく、各方向に画像
を分割し1分割した画像を前記原理に基づく倍率変換処
理を行う必要がある。
In order to perform highly accurate magnification conversion processing, the image is divided in each direction equal to the difference in the number of pixels between the images before and after conversion in each direction, and the divided images are subjected to magnification conversion processing based on the above principle. There is a need to do.

以下に具体例を用いてよシ詳細に説明する。This will be explained in detail below using a specific example.

仮に、倍率変換処理される画像の一方向の画素数をR1
倍率をA(2≧A>−!−)、倍率変換後の 2 画素数をKとすれば、 し の関係がある。倍率変換前と変換後の画素数の差nは し n = l K−〆1(7) となる。このとき、分割された画像中の画″Jg故は、
(8)〜αQ式となる k (1)  〆がnで割シ切れる場合 n個の分割画像に対して、分割画像中の画素数mlは m1=4七ζ/n                 
              (B)し 画像中の画素数mlは ム 像中の画素数m2は mt = ’(J’/n ) +l         
    Q01上述のいずれの場合も、分割画像を倍率
変換処理することによって1画素増加あるψは減少する
ならけ、画像中の全画素数〆は倍率変換処理によって画
素数にとなシ、精度の高い倍率変換が可能となる。
Suppose that the number of pixels in one direction of the image to be subjected to magnification conversion processing is R1
If the magnification is A (2≧A>-!-) and the number of pixels after magnification conversion is K, then there is the following relationship. The difference n between the number of pixels before and after magnification conversion is n = l K - 1 (7). At this time, since the image "Jg" in the divided image is
(8) ~ αQ formula k (1) When 〆 is divisible by n, for n divided images, the number of pixels ml in the divided image is m1 = 47ζ/n
(B) The number of pixels in the image, ml, is the number of pixels in the image, m2, is mt = '(J'/n) +l
Q01 In any of the above cases, if the magnification conversion process of the divided images increases 1 pixel or decreases ψ, then the total number of pixels in the image cannot be reduced to the number of pixels by the magnification conversion process, making it more accurate. Magnification conversion becomes possible.

以上の説明は1次元に対して行ったが、2次元の場合に
はそれぞれの方向に同様に行えばよい。
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.

また、倍率が2倍よフ大き−とき、あるいはl/2培よ
シ小さいときは前記倍率変換処理を〈シ返すことによっ
て実現できる。
Further, when the magnification is larger than 2 times or smaller than 1/2 times, the above magnification conversion process can be realized by reversing the processing.

第5図は本発明の1実施例である。FIG. 5 shows one embodiment of the present invention.

101は画像データ転・送制御回路、102は副走査方
向制御回路、103は主走査方向制御回路、104は画
像データ転送回路、105は副走査方向倍率変換回路、
106は主走査方向倍率変換回路、200は設定データ
制御回路、107〜11’7および201〜203は信
号である。
101 is an image data transfer control circuit, 102 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, 200 is a setting data control circuit, and 107 to 11'7 and 201 to 203 are signals.

以下動作を説明する。The operation will be explained below.

先ず、脱走データ制御回路に外部のパネルスイッチ等か
ら、画像の全画素数、(7)式よシ求まる各方向の画像
分割数、(8)〜0ω式よシ求まる分割画像中の画素数
を処理する順序に従い各方向の画像分割数に等しい個数
セットする。
First, input the total number of pixels of the image, the number of image divisions in each direction determined by equation (7), and the number of pixels in the divided image determined by equation (8) to 0ω to the escape data control circuit from an external panel switch, etc. Set a number equal to the number of image divisions in each direction according to the processing order.

分割画像中の画素数は、それぞれ制御信号109あるい
は制御信号110に応じて、信号107あるいは一信号
108を通じ副走査方向制御回路102あるいは主走査
方向制御回路103にセットされる。
The number of pixels in the divided image is set in the sub-scanning direction control circuit 102 or the main-scanning direction control circuit 103 through a signal 107 or a signal 108 in accordance with a control signal 109 or a control signal 110, respectively.

本実施例では画像データ転送制御回路101で作られる
クロック信号Illに同期して動作する。
In this embodiment, it operates in synchronization with the clock signal Ill generated by the image data transfer control circuit 101.

画像データ転送制御回路101は主走査方向および副走
査方向の画素挿入あるいは除去時を除きS画像中の画素
だけの画像データ転送要求信号を出す。
The image data transfer control circuit 101 issues an image data transfer request signal for only pixels in the S image, except when pixels are inserted or removed in the main scanning direction and the sub-scanning direction.

画像データ転送回路104は、画像データをメモリに記
憶あるいは画像をスキャンすることによシ第6図に示す
順序で画像データ転送要求信号に対応して1画素分のI
s像データを転送する。
The image data transfer circuit 104 stores the image data in a memory or scans the image, and transfers one pixel's worth of I in response to the image data transfer request signal in the order shown in FIG.
Transfer the s-image data.

副走査方向制御回路102は主走査方向の画素挿入ある
いは除去時を除き、副走査方向の画素(1ライン画素)
挿入あるいは除去時をチェ/ツクして、副走査方向倍率
変換回路105へ制御信号113を、設定データ制御回
路200へ制御信号202を転送する。
The sub-scanning direction control circuit 102 controls pixels in the sub-scanning direction (one line pixel) except when inserting or removing pixels in the main scanning direction.
After checking the insertion or removal, the control signal 113 is transferred to the sub-scanning direction magnification conversion circuit 105 and the control signal 202 is transferred to the setting data control circuit 200.

副走査方向倍率変換回路105は制御信号113に従っ
て、画素挿入あるいは除去時に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 113.

主走査方向制御−回路103は主走査方向の画素挿入あ
るいは除去を管理するものであシ、主走査方向倍率変換
回路106へ制御信号114を設定データ制御回路20
0へ制御信号203を転送する。
Main scanning direction control circuit 103 is for managing pixel insertion or removal in the main scanning direction, and sets a control signal 114 to the main scanning direction magnification conversion circuit 106.Data control circuit 20
The control signal 203 is transferred to 0.

主走査方向倍率変換回路106は制御信号114に従っ
て、画素挿入あるいは除去時に1画素挿入あるいは除去
する、即ち、主走査方向の倍率変換処理を行う。
In accordance with the control signal 114, 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 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図は画像データ転送制御回路の1実施例である。FIG. 7 shows one embodiment of the image data transfer control circuit.

120はクロックパルス発生器、121はカウンター、
122はゲート回路、123〜124はインバータ、1
25は三入力論理積ゲートである。
120 is a clock pulse generator, 121 is a counter,
122 is a gate circuit, 123 to 124 are inverters, 1
25 is a three-input AND gate.

以下動作を説明する。The operation will be explained below.

クロックパルス発生器120は本システム動作中常時ク
ロックパルス信号を発生する。
Clock pulse generator 120 constantly generates a clock pulse signal during operation of the system.

では制御信号109および110が来ていない間のりロ
ックパルス信号のパルス数をカラン)して、その値が設
定データ制御回路200よシ信号201でセットされた
画像中のi!!!I素敵に等しくなる1でゲート回路1
22′を開放して、画像データ転送要求信号112を出
す。
Then, during the period when the control signals 109 and 110 are not received, the number of pulses of the lock pulse signal is calculated and its value is determined by the i! ! ! I nice equals 1 to gate circuit 1
22' is opened and an image data transfer request signal 112 is issued.

画像データ転送要求信号1.12の1パルスは1画素分
のデータの転送を画像データ転送回路104に要求する
One pulse of the image data transfer request signal 1.12 requests the image data transfer circuit 104 to transfer data for one pixel.

第8図は副走査方向制御回路102の1実施例である。FIG. 8 shows one embodiment of the sub-scanning direction control circuit 102.

130はインパーク、131は論理積ゲート、132は
クロックパルスカウンター、133はラインカウンター
、134はコンパレータ、135はインバータ、136
はD−フリップ・フロップ、137〜138は回路内部
の信号、139および141は副走査方向制御回路10
5を制御する信号である。
130 is an impark, 131 is an AND gate, 132 is a clock pulse counter, 133 is a line counter, 134 is a comparator, 135 is an inverter, 136
are D-flip-flops, 137 to 138 are signals inside the circuit, and 139 and 141 are sub-scanning direction control circuits 10.
This is a signal that controls 5.

第9図は、第8図中の信号109〜111.13’7〜
141のタイミングチャートである。
FIG. 9 shows signals 109-111.13'7- in FIG.
141 is a timing chart.

以下動作を説明する。The operation will be explained below.

クロックパルス信号111は本システムの同期信号のも
ととなる。信号ユニ1と主走査方向制御回路からの制御
信号110の論理積による信号139は、信号111か
ら制御信号110時のパルス信号を除去したものであシ
、副走査方向倍率変換回路動作させる同期信号となる。
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 unit 1 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 is a synchronization signal for operating the sub-scanning direction magnification conversion circuit. becomes.

信号139は画素データ転送信号115とも同期してい
る。
Signal 139 is also synchronized with pixel data transfer signal 115.

カウンター132は信号139のパルス数、即ち転送さ
れて来る画素h=カクントして、1走査ライン中の画素
数に等しくなったとき1パルス出カする。
The counter 132 outputs one pulse when the number of pulses of the signal 139, ie, the number of transferred pixels h=kakunt, becomes equal to the number of pixels in one scanning line.

1jlJち、信号137は各ラインの走査開始時に同期
したパル218号である。ラインカウンター133は転
送された画素の、走査梅をカウントする。
1jlJ, signal 137 is pulse number 218 synchronized at the start of scanning of each line. The line counter 133 counts the number of scanned pixels that have been transferred.

コンパレータ134には、外部から副走査方向の分割画
像の画素数、即ち、走査祿数がセットされる。
The number of pixels of the divided image in the sub-scanning direction, that is, the number of scanning margins, is set to the comparator 134 from the outside.

今セットされた値がmのとき、ラインカウンター133
の値がmであれば、信号109を出方する。
When the value set now is m, the line counter 133
If the value of is m, a signal 109 is output.

信号109および140は副走査方向の画素(ライン)
挿入時を制御すると同時にラインカウンター133の値
をクリヤーする。
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クリップ・フリップは信号140を1走査ラインの時
間だけ遅延した信号141を出方する。
The D-clip flip outputs a signal 141 that is delayed from signal 140 by one scan line.

信号139および141を制御信号として副走査方向倍
率変換回路は動作する。
The sub-scanning direction magnification conversion circuit operates using signals 139 and 141 as control signals.

第10図は副走査方向拡大処理回路のl実施例である。FIG. 10 shows an embodiment of the sub-scanning direction enlargement processing circuit.

151N153は1247分の画素数に等しいシフトレ
ジスター件154は論理和ゲート、155〜156は論
理積ゲート、157はインバータ、158は論理和ケー
ト、159は信号セレクト回路、161〜165は回路
内の信号である。
151N153 is a shift register equal to the number of pixels for 1247. 154 is an OR gate, 155 to 156 are AND gates, 157 is an inverter, 158 is an OR gate, 159 is a signal select circuit, and 161 to 165 are signals in the circuit. It is.

第11図は各信号のタイミングチャートである。FIG. 11 is a timing chart of each signal.

以下動作を説明する。The operation will be explained below.

画像データ転送回路104からは、第11図のような順
で画像データ信号115が転送されてくる。
Image data signals 115 are transferred from the image data transfer circuit 104 in the order shown in FIG.

図中斜線部は?前記説明の如く、制御信号109にょ1
1i!II像データが転送されない期間である。
What is the shaded part in the diagram? As explained above, the control signal 109
1i! This is a period during which no II image data is transferred.

シフトレジスター151を経て、信号161となカイぎ
号セレクト回路159へ入力する。また信号161はシ
フトレジスター152と論理和ゲート154に入力し、
信号163とな夛シフトレジスター153を経て、信号
164となシ信号セレクト回路159へ入力する。
After passing through the shift register 151, it is input to a signal 161 and a key signal select circuit 159. Further, the signal 161 is input to the shift register 152 and the OR gate 154,
A signal 163 and a signal 164 are inputted to a signal select circuit 159 via a plurality of shift registers 153 .

信号セレクト回路159は前記制御信号141に基づき
・、信号161と信号164を選択し、信号165を出
方する。
The signal selection circuit 159 selects the signal 161 and the signal 164 based on the control signal 141 and outputs the signal 165.

本実施例では、mライン毎に1ライン分の画素が挿入さ
れるため副走査方向に(m+1)7m倍の倍率変換が行
なわれる。mの値は外部から与えら才りるから可変であ
ることは言うまでもない。
In this embodiment, since pixels for one line are inserted every m lines, a magnification conversion of (m+1)7m times is performed in the sub-scanning direction. It goes without saying that the value of m is variable since it is given from the outside.

上記実施例ではl#の値としてj?m=1と1mの論理
和をとっているがこれに限定されるものではない。
In the above example, the value of l# is j? Although the logical sum of m=1 and 1m is taken, the present invention is not limited to this.

第12図は主走査方向制御回路の1実施例である。FIG. 12 shows one embodiment of the main scanning direction control circuit.

170はカウンター、171はコンパレータ、172は
インバータ、173はシフトレジスター、174は論理
積ゲー)、175〜178は信号である。
170 is a counter, 171 is a comparator, 172 is an inverter, 173 is a shift register, 174 is an AND game), and 175 to 178 are signals.

第13図は各信号のタイミングチャートである。FIG. 13 is a timing chart of each signal.

以下動作を説明する。The operation will be explained below.

先ず、外部から主走査方向の分割画素数(n)を信号騙
losを通じコンパレータ171ヘセツトする。
First, the number of divided pixels (n) in the main scanning direction is set from the outside to the comparator 171 through the signal los.

クロックパルス信号111はカウンター170でカウン
トされ、その値はコンパレータ171にセットされた値
と比較される。両者が等しいとき、信号110を出力す
る。
Clock pulse signal 111 is counted by counter 170 and its value is compared with the value set in comparator 171. When both are equal, a signal 110 is output.

信号110は画像データ転送制御回路101および副走
査方向制御回路を制御する信号となる。
Signal 110 is a signal for controlling image data transfer control circuit 101 and sub-scanning direction control circuit.

信号176はカウンター170をクリヤーすると同時に
、論理積ゲー) 174とDフリップ・フロップへ入力
する。
Signal 176 clears counter 170 and is simultaneously input to AND gate 174 and the D flip-flop.

Dフリップ・フロップへ入力した1ぎ号176は1クロ
ツク遅れた信号178となシ出力される。
The first signal 176 input to the D flip-flop is output as a signal 178 delayed by one clock.

信号111はシステム同期信号、信号177は画素挿入
あるいは除去制御信号、信号178は信号セレクト制御
信号として主走査方向倍率変換回路へ入力される。
A signal 111 is a system synchronization signal, a signal 177 is a pixel insertion or removal control signal, and a signal 178 is a signal selection control signal that are input to the main scanning direction magnification conversion circuit.

第14図は主走査方間拡大処理回路の1実kI例である
FIG. 14 is an example of an actual main scanning expansion processing circuit.

180はDフリップ・フロップ、181は論理和ゲー)
、1B2は信号セレクト回路、183はD7リツプ・フ
ロップ°、184〜186は信号でめる0第15図は各
信号のタイミングチャートである。
180 is a D flip-flop, 181 is a logical sum game)
, 1B2 is a signal select circuit, 183 is a D7 lip-flop, and 184 to 186 are signals. FIG. 15 is a timing chart of each signal.

以下動作を説明する。The operation will be explained below.

信号116は第15図の順序で入力する。Signals 116 are input in the order shown in FIG.

図中斜線部は副走査方向制御回路102へ送られた制御
信号110によシanが保持されておシ、他の信号の2
倍の期間を持つ。
In the figure, the shaded area indicates that the control signal 110 sent to the sub-scanning direction control circuit 102 holds the signal an, and the other signals
It has twice the period.

信号116はDフリップ・フロップに入力し、信号18
4となり信号セレクト回路182と論理和ゲート181
へ入力する。論理和ゲー) 181では信号116と信
号184の論理和がとられ信号185となる。
Signal 116 is input to a D flip-flop and signal 18
4, the signal select circuit 182 and the OR gate 181
Enter. OR game) At 181, the signal 116 and the signal 184 are ORed and a signal 185 is obtained.

信号セレクト回路186では、制御信号17Bに基づき
信号184と信号185を選択し、信号186を出力す
る。
The signal selection circuit 186 selects the signal 184 and the signal 185 based on the control signal 17B, and outputs the signal 186.

上記信号関係は第15図のようになる。The above signal relationship is as shown in FIG.

第16図は設定データ制御回路200内の部分回路であ
る。
FIG. 16 shows a partial circuit within the setting data control circuit 200.

210はカウンター、211〜212はコンパレータI
およびll、213はデータセレクター回路、214〜
221は信号である。
210 is a counter, 211-212 are comparators I
and ll, 213 is a data selector circuit, 214-
221 is a signal.

以下動作を説明する。The operation will be explained below.

設定データ制御回路200は5、画像中の全画素数、主
走査方向および副走査方向の各々の分割画像数と分割画
像中の画素数をセットするノ(ネルスイッチ等の入力手
段と、設定された分割画像中の画素数により副走査方向
制御回路102と主走査方向制御回路103をそれぞれ
制御する同一の回路構成力為らなる2組の制御回路から
なる。
The setting data control circuit 200 has input means (such as a channel switch) for setting the total number of pixels in an image, the number of divided images in each of the main scanning direction and sub-scanning direction, and the number of pixels in a divided image. The sub-scanning direction control circuit 102 and the main-scanning direction control circuit 103 are each controlled by two sets of control circuits each having the same circuit configuration, each controlling the sub-scanning direction control circuit 102 and the main-scanning direction control circuit 103 according to the number of pixels in the divided image.

第16図の回路は、2組の制御回路の1方であり、主走
査方向制御回路103を制御するものである。
The circuit shown in FIG. 16 is one of two sets of control circuits and controls the main scanning direction control circuit 103.

第16図において、先ず、(7)式の1走査線中の分(
9)式およびθり式の分割画像中の画素数をそれぞれ信
号220および信号221によって外部からセットされ
る。
In FIG. 16, first, the portion (
9) The number of pixels in the divided image of the equation and the θ equation is set externally by signals 220 and 221, respectively.

信号110は、1分割画像の倍率変換処理時、即ち画素
挿入時に同期して1ノ(ルスづつ転送されてくるもので
あ、シ、カウンター210で該)くルス数は計数される
。計数された値はコンノくレータIおよび■にセットさ
れた値と比較される。
The signal 110 is transferred one pulse at a time in synchronization with the magnification conversion process of one divided image, that is, when pixel insertion is performed, and the number of pulses is counted by the counter 210. The counted value is compared with the value set in the controller I and ■.

コンパレータ■では、l走査線中の分割画素数nとカウ
ンター210の値を比較し1両者の値が等しくなったと
き信号217によってカウンター210の較し、小さい
とき信号219、等しいあるいは大きいとき信号218
を出力する0 データ・セレクター回路213は信号218あるいは信
号219によjE 、(91式およびaψ式で与えられ
る分割画像中の画素数がセットされた信号220および
信号221を選択し1倍号220あるいは信号221を
信号10Bとして出力する。
The comparator (2) compares the number n of divided pixels in one scanning line with the value of the counter 210. (1) When the two values are equal, the counter 210 is compared with the signal 217, and when it is smaller, it is signal 219, and when it is equal or larger, it is signal 218.
The data selector circuit 213 selects the signal 220 and the signal 221 in which the number of pixels in the divided image given by the equation 91 and the aψ equation are set, and outputs the signal 220 using the signal 218 or the signal 219. Alternatively, the signal 221 is output as the signal 10B.

個となる。Become an individual.

以上の説明は、主走査方向制御回路103を制御するも
のであるが、副走査方向制御回路102を制御する同様
な回路があシ、同様に動作する。
Although the above description is for controlling the main scanning direction control circuit 103, a similar circuit controlling the sub-scanning direction control circuit 102 operates in the same manner.

(5)〜(6)式に関わらず、倍率変換前および変換後
の画素数から、(η〜aQ式によシ分割画像中の画素数
を求めることによシ、倍率および(5)〜(6)式によ
る誤差が生じなりため、よシ精度の高い倍率変換処理が
できる。
Regardless of formulas (5) to (6), by calculating the number of pixels in the divided image according to formula (η~aQ) from the number of pixels before and after magnification conversion, the magnification and (5) to Since the error caused by equation (6) does not occur, highly accurate magnification conversion processing can be performed.

この場合、所望の空間に倍率変換処理された画像を精度
よく挿入することが可能となる。
In this case, it becomes possible to insert the magnification-converted image into a desired space with high precision.

効果の説明 以上説明したように、 倍率から分割画像中の画素数を求めるのではなく、倍率
変換前と変換後の画素数の差に等しく画像を分割し、分
割したrs像を倍率変換処理したとき1画素増加あるい
は減少するような処理をするため倍率から画素数を求め
る際に生じる誤差がなく、精度の高い倍率変換ができる
効果がある。
Explanation of the effect As explained above, instead of calculating the number of pixels in a divided image from the magnification, the image is divided into equal parts to the difference in the number of pixels before and after the magnification conversion, and the divided rs images are subjected to the magnification conversion process. Since processing is performed such that one pixel is increased or decreased, there is no error that occurs when determining the number of pixels from the magnification, and the effect is that highly accurate magnification conversion can be performed.

倍率を求めることなく倍率変換前と変換後の画素数から
直接倍率変換処理を行うため、倍率を求める際に生じる
誤差のなφ精度の高い倍率変換ができるとと、もに、所
望の空間に画像を挿入する処理に適するという効果があ
る。
Since the magnification conversion process is performed directly from the number of pixels before and after the magnification conversion without calculating the magnification, it is possible to perform magnification conversion with high φ accuracy without errors that occur when calculating the magnification, and it is possible to convert the magnification into the desired space. This has the effect of being suitable for processing to insert images.

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

第1図および第2図は本発明の原理図、第3図は画像間
の関係を示す図、第4図は拡大処理の1実施例を示す図
、第5図は本発明の実施例を示す図、第6図は画僚デー
クの転送順序を示す図、第7図は画像データ転送制御回
路の1実施例を示す図、第8図は副走査方向制御回路の
1実施例を示す回、第9図は第8図に示す各信号のタイ
ミングチャート、第10図は副走査方向倍率変換回路の
1実施例を示す図、第11図は第10図に示す各信号の
タイミングチャート、第12図は主走査方向制御回路の
1実施例を示す図、第13図は第12図に示す各信号の
夕づミングチャート、第14図は主走査方向倍率変換回
路の1実施例を示す図、第15図は第14図に示す各信
号のタイミングチャート、第16図は設定データ制御回
路200内の部分回路を示す図である。 31−−−一拡大画像、101−−−−−画像データ転
送制御回路、102−−−一副走査方向制御回路、’ 
103・−一 主走査方向制御回路、104−−m−画
像データ転送回路、105−−−一副走査方向倍率変換
回路、106−−−−−主走査方向倍率変換回路。 出願人 キャノン株式会社 第q口 〜イ4イ 箔10反 ′    ムー ム  “ ノ、・ ・   〜f5右
1?ノ 〜(’77 わ/40 815ツ
Figures 1 and 2 are diagrams of the principle of the present invention, Figure 3 is a diagram showing the relationship between images, Figure 4 is a diagram showing an example of enlargement processing, and Figure 5 is a diagram showing an example of the present invention. 6 is a diagram showing the transfer order of the image data transfer, FIG. 7 is a diagram showing one embodiment of the image data transfer control circuit, and FIG. 8 is a diagram showing one embodiment of the sub-scanning direction control circuit. , FIG. 9 is a timing chart of each signal 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. FIG. 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. , FIG. 15 is a timing chart of each signal shown in FIG. 14, and FIG. 16 is a diagram showing a partial circuit within the setting data control circuit 200. 31---1 enlarged image, 101---image data transfer control circuit, 102---1 sub-scanning direction control circuit,'
103--1 main scanning direction control circuit, 104--m-image data transfer circuit, 105--1 sub-scanning direction magnification conversion circuit, 106--main scanning direction magnification conversion circuit. Applicant: Canon Co., Ltd.

Claims (1)

【特許請求の範囲】 1ンディジタル画像を倍率変換処理するに際し、分割し
たディジタル画像の倍率変換処理によシ各方向の画素数
が1画素変化するような画素数をもつ分割画像にディジ
タル画像を分割する方法に於いて、前記各方向の変換前
と変換後のディジタル画像の画素数の差に等しく、各方
向にディジタル映像を分割することを%徴とする画像の
倍率変換方法0 2、特許請求の範11fj1項において、ディジタル画
像全分割したときの同一方向の分割l[!!l像中の画
素数が異なることを許容する事を特徴とする画像の倍率
変換方法。 3)特許請求の範M2項に関わシ、ディジタル画像を分
割する条件、即ち分割画像中の画素数を指定し、該指定
された条件に従い倍率変換処理を行うことを特徴とする
画像の倍率変換方法。 4)特許請求の範囲1項において、分割した画像ケ拡大
処理あるいは縮小処理するとさ、処理される画像に1v
MJ素挿入あるいは処理されるiI!!I像から1画素
除去することを特徴とする画像の倍率変換方法。 5)特許請求の範囲4項において、拡大処理あるいは縮
小処理するとき、1画素仲人あるいは除去する位置を処
理に先だって指定することを特徴とする画像の倍率変換
方法。 6)0許請求の範囲1項に於いて、画像をラスタースキ
ャンして得たデータに対して逐次的に倍率変換処理する
ことを特徴とする画像の倍率変換方法。 7)特許請求の範fff11項に於いて、たて横の倍
[Claims] When performing magnification conversion processing on a single digital image, the digital image is divided into divided images having a number of pixels such that the number of pixels in each direction changes by one pixel due to the magnification conversion processing of the divided digital image. Image magnification conversion method 0 2, patented in which the percentage characteristic is to divide the digital image in each direction equal to the difference in the number of pixels of the digital image before and after conversion in each direction. In claim 11fj1, when the digital image is completely divided, division l[! ! An image magnification conversion method characterized by allowing different numbers of pixels in an image. 3) Relating to claim M2, an image magnification conversion process characterized by specifying conditions for dividing a digital image, that is, the number of pixels in the divided image, and performing magnification conversion processing according to the specified conditions. Method. 4) In claim 1, when the divided image is enlarged or reduced, the processed image has 1v
MJ elementary insertion or processed iI! ! An image magnification conversion method characterized by removing one pixel from an I image. 5) The image magnification conversion method as set forth in claim 4, characterized in that when performing enlargement processing or reduction processing, a single pixel matchmaker or a position to be removed is specified prior to processing. 6) An image magnification conversion method according to claim 1, characterized in that a magnification conversion process is sequentially performed on data obtained by raster scanning an image. 7) In claim fff11, double the length and width
JP58056216A 1983-02-10 1983-03-31 Method for converting magnification of picture Pending JPS59182667A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
JP58056216A JPS59182667A (en) 1983-03-31 1983-03-31 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
JP58056216A JPS59182667A (en) 1983-03-31 1983-03-31 Method for converting magnification of picture

Publications (1)

Publication Number Publication Date
JPS59182667A true JPS59182667A (en) 1984-10-17

Family

ID=13020904

Family Applications (1)

Application Number Title Priority Date Filing Date
JP58056216A Pending JPS59182667A (en) 1983-02-10 1983-03-31 Method for converting magnification of picture

Country Status (1)

Country Link
JP (1) JPS59182667A (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5465601A (en) * 1977-11-01 1979-05-26 Dainippon Screen Mfg Method and device for changing magnfication of duplication in image scanning recorder
JPS5639532A (en) * 1979-08-01 1981-04-15 Xerox Corp Image contraction*expansion device and method therefor

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5465601A (en) * 1977-11-01 1979-05-26 Dainippon Screen Mfg Method and device for changing magnfication of duplication in image scanning recorder
JPS5639532A (en) * 1979-08-01 1981-04-15 Xerox Corp Image contraction*expansion device and method therefor

Similar Documents

Publication Publication Date Title
US4686580A (en) Method and apparatus for changing image size
US4280143A (en) Method and means for scale-changing an array of boolean coded points
JPS6220747B2 (en)
US4422153A (en) Oblique projection original and oblique projection original forming apparatus and method
US4214277A (en) Halftone implementation apparatus
JPS59182667A (en) Method for converting magnification of picture
JP3563754B2 (en) Image processing apparatus and image processing method
US5257120A (en) Image processing apparatus
JP2638788B2 (en) Image reduction circuit
JP3788563B2 (en) Image data scaling device
JPH0622122A (en) Picture processing unit
JPS59147565A (en) Method for converting magnification of picture
JPH0413882Y2 (en)
JP2870804B2 (en) Image processing device
JP2858661B2 (en) Image processing method
JP2918906B2 (en) Image processing method and apparatus
JP2505170B2 (en) Image reading device
JP2903175B2 (en) Image processing device
JPS5924584B2 (en) Original reading method
JPH0496569A (en) Picture processor
JPH06141168A (en) Picture element density converter
JPS58218271A (en) Halftone picture image detector
JPH08186704A (en) Magnified data generator in digital copying machine
JPS61143878A (en) Processing circuit of picture data
JPH0828810B2 (en) Image data scaling processor