JPH0777416B2 - Image processing device - Google Patents

Image processing device

Info

Publication number
JPH0777416B2
JPH0777416B2 JP60233032A JP23303285A JPH0777416B2 JP H0777416 B2 JPH0777416 B2 JP H0777416B2 JP 60233032 A JP60233032 A JP 60233032A JP 23303285 A JP23303285 A JP 23303285A JP H0777416 B2 JPH0777416 B2 JP H0777416B2
Authority
JP
Japan
Prior art keywords
processing
scan
image
data
input
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
JP60233032A
Other languages
Japanese (ja)
Other versions
JPS6292676A (en
Inventor
尚登 河村
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Canon Inc
Original Assignee
Canon Inc
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Canon Inc filed Critical Canon Inc
Priority to JP60233032A priority Critical patent/JPH0777416B2/en
Priority to US06/902,320 priority patent/US4850028A/en
Priority to DE19863629984 priority patent/DE3629984A1/en
Publication of JPS6292676A publication Critical patent/JPS6292676A/en
Publication of JPH0777416B2 publication Critical patent/JPH0777416B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Description

【発明の詳細な説明】 <分野> 本発明は、入力された走査データによって表される画像
に対して回転処理と同時に走査方向及びその垂直方向に
夫々倍率α,βで変倍処理を行う画像処理装置に関す
る。
Description: FIELD OF THE INVENTION The present invention relates to an image in which an image represented by input scan data is subjected to a rotation process and a scaling process in the scanning direction and a vertical direction thereof at magnifications α and β, respectively. Regarding a processing device.

<従来技術> 従来、デジタル画像の回転拡大・縮小を行なう装置は、
入力画像データを一担メモリ内にとり込んだ後に該処理
を実行してた。ところが、一般に入力画像のもつ情報量
は、処理済画像データのもつ情報量よりも多く、入力画
像情報を格納するには、処理済画像情報を格納するより
も多量のメモリ容量を要するので、入力画像情報を一担
メモリにとり込む方法は、入力走査同期信号に同期して
処理し、処理済データを出力メモリに逐次出力する方法
に比べ、メモリに要するコスト・回路規模の点で不利で
ある。
<Prior Art> Conventionally, a device for rotating and enlarging / reducing a digital image is
The processing was executed after the input image data was loaded into the shared memory. However, in general, the input image has a larger amount of information than the processed image data, and storing the input image information requires a larger memory capacity than storing the processed image information. The method of fetching the image information in the shared memory is disadvantageous in terms of cost and circuit scale of the memory, as compared with the method of processing in synchronization with the input scanning synchronization signal and sequentially outputting the processed data to the output memory.

一方、走査入力画像データを走査同期信号に同期して逐
次回転拡大・縮小を行なう処理では、処理後のデータ
が、出力のピッチに一致しなくなり、画像のぬけ、もし
くはずれが発生し、画像の劣化が生ずるという欠点を有
していた。第2図に例を示した。第1図aは、原画のピ
ツチを示す。第1図bの破線は、出力のピツチを示し、
実線は原画を35゜回転した像のピツチを示している。正
方形の各々が画素を表わしており、出力のピツチでなる
各出力画素(破線の正方形)には、回転された画像の画
素の中心が入っているその画素を対応づけた際に、ハツ
チングされた出力画素が抜け画素(対応づけられる画像
データがない画素)となることを示している。第2図c
は、38゜回転及び主走査方向80%縮小、副走査方向120
%拡大の処理を施した場合の抜け画素を第1図b同様に
示している。
On the other hand, in the processing of sequentially rotating and enlarging / reducing the scan input image data in synchronization with the scan synchronization signal, the processed data does not match the output pitch, and the image is missing or misaligned. It had a drawback that deterioration occurred. An example is shown in FIG. FIG. 1a shows the original picture pitch. The dashed line in Figure 1b shows the output pitch,
The solid line shows the pitch of the image obtained by rotating the original image by 35 °. Each square represents a pixel, and each output pixel (dotted square) consisting of an output pitch is hatched when the pixel of the rotated image is associated with that pixel. This indicates that the output pixel is a missing pixel (a pixel that has no associated image data). Figure 2c
Is rotated by 38 degrees and reduced by 80% in the main scanning direction, 120 in the sub scanning direction.
Similar to FIG. 1b, the missing pixels in the case where the% enlargement process is performed are shown.

<目的> 本発明は以上の点に鑑みてなされたもので、入力された
走査データによって表される画像に対して回転処理と同
時に走査方向及びその垂直方向に夫々倍率α,βで変倍
処理を行う際に、入力画像データをフレーム単位で記憶
するメモリを必要とすることなく、高速にかつ高画質の
変換画像を得ることができる画像処理装置を提供するこ
とを目的とする。
<Purpose> The present invention has been made in view of the above points, and performs rotation processing on an image represented by input scan data, and at the same time, performs scaling processing with magnifications α and β in the scanning direction and its vertical direction, respectively. It is an object of the present invention to provide an image processing device capable of obtaining a high-quality converted image at high speed without requiring a memory for storing input image data in frame units.

<実施例> 第1図、第3図〜第11図は本発明の実施例で、第1図は
本実施例の基本構成図、第3図aは、実施例全体の回路
のブロツク図の前半であり、第3図bは、同後半であ
る。第4図は第3図aの回転・独立変倍処理後の座標検
出回路のさらに詳細なブロツク図、第5図は第3図bの
回転・独立変倍処理後の領域内格子点検出回路のさらに
詳細なブロツク図、第6図は第3図bの座標変換(逆変
換)回路のさらに詳細なブロツク図、第7図は第3図b
の補間処理回路のさらに詳細なブロツク図である。第8
図は、画像の走査状態を示している。第9図は、ページ
同期信号と副走査同期信号の関係を示している。第10図
は、副走査同期信号と主走査同期信号の関係を示してい
る。第11図は、ラスターメモリの構成及び走査データと
の関係を示すものである。第12図は、補間処理の実行状
態を示す。第13図は、回転された入力走査画像データか
ら、補間された出力画像データを得る方法を図示したも
のである。
<Embodiment> FIGS. 1 and 3 to 11 show an embodiment of the present invention, FIG. 1 is a basic configuration diagram of this embodiment, and FIG. 3a is a block diagram of a circuit of the whole embodiment. The first half, and FIG. 3b is the latter half. FIG. 4 is a more detailed block diagram of the coordinate detection circuit after the rotation / independent scaling processing of FIG. 3a, and FIG. 5 is the in-region lattice point detection circuit after the rotation / independent scaling processing of FIG. 3b. 6 is a more detailed block diagram of FIG. 6, FIG. 6 is a more detailed block diagram of the coordinate conversion (inverse conversion) circuit of FIG. 3b, and FIG. 7 is FIG. 3b.
3 is a more detailed block diagram of the interpolation processing circuit of FIG. 8th
The figure shows the scanning state of the image. FIG. 9 shows the relationship between the page sync signal and the sub-scan sync signal. FIG. 10 shows the relationship between the sub scanning synchronization signal and the main scanning synchronization signal. FIG. 11 shows the configuration of the raster memory and the relationship with the scan data. FIG. 12 shows the execution state of the interpolation processing. FIG. 13 illustrates a method of obtaining interpolated output image data from rotated input scan image data.

ここで原画の主走査方向をx軸方向、副走査方向をy軸
方向と考え、副走査同期信号を基点として、主走査同期
をもってx軸方向の座標1,2,3……と対応づける。ま
た、ページ同期信号を基点として副走査同期をもってy
軸方向の座標1,2,3……と対応づける。すなわち、(x0,
y0)は、原画の第y0ラスターの第x0ドツトに対応する第
7図,第9図,第10図)。
Here, the main scanning direction of the original image is considered to be the x-axis direction, and the sub-scanning direction is considered to be the y-axis direction, and the sub-scanning synchronization signal is used as a base point and is associated with the coordinates 1, 2, 3, ... Also, with the page synchronization signal as a starting point, y
Corresponds to the axial coordinates 1, 2, 3 ... That is, (x 0 ,
y 0 ) corresponds to the x 0 dot of the y 0 raster of the original picture (FIGS. 7, 9, and 10).

直交座標で(x,y)の座標にある点を(xc,yc)の点を回
転中心としてθだけ回転した座標を(x′,y′)とする
と、(x′,y′)と(x,y),(xc,yc)、θとの関係
は、 で表現できる。
In Cartesian coordinates (x, y) (x c , y c) the points in the coordinates of the coordinates rotated by θ as the rotation around the point (x ', y') When, (x ', y') And (x, y), (x c , y c ), the relation between θ is Can be expressed as

さらに、(x′,y′)の座標にある点を(xz,yz)の点
を変倍中心として、主走査方向α倍、副走査方向β倍の
独立変倍実施後の座標を(x″,y″)とすると、 の関係が成立する。
Further, with respect to the point at the coordinates of (x ′, y ′) with the point of (x z , yz ) as the scaling center, the coordinates after independent scaling of α times in the main scanning direction and β times in the sub scanning direction are performed. (X ″, y ″) The relationship is established.

(x,y)の座標にある点を(xc,yc)の点を回転中心とし
てθだけ回転し、(xz,yz)を変倍中心として、主走査
方向α倍、副走査方向β倍の独立変倍を実行した場合、
その結果の座標を(x″,y″)とすと、(1)式及び
(2)式より、 の関係が成立する。(3)式を変形すると、(3)′式
となる。
The point at the coordinates (x, y) is rotated by θ with the point of (x c , y c ) as the center of rotation, and (x z , y z ) is the center of magnification change, α times in the main scanning direction and sub-scanning. When independent scaling of direction β times is executed,
If the resulting coordinates are (x ″, y ″), then from equations (1) and (2), The relationship is established. When the equation (3) is modified, it becomes the equation (3) ′.

入力の走査画像と回転・独立変倍処理済の走査画像を図
示したものが第11図b、第11図cである。第11図bが現
画像、第11図cが回転・独立変倍処理後の画像である。
xが回転中心及び変倍中心である(つまり、回転中心と
変倍中心を同一にとった場合)。
11b and 11c show the input scan image and the scan image that has been subjected to the rotation / independent scaling processing. FIG. 11b is the current image, and FIG. 11c is the image after rotation / independent scaling processing.
x is the center of rotation and the center of magnification (that is, when the center of rotation and the center of magnification are the same).

ところで、(3)式のα,βは、一般には有理数、また
cosθ,sinθは一般には無理数であるため、x,y,xc,yc,x
z,yzが自然数であっても、x″,y″は無理数となる。す
なわち、回転・独立変倍処理後の走査画像は、入出力の
同期信号で対応づけられる画素(ドツト)位置よりずれ
た位置にくる。
By the way, α and β in equation (3) are generally rational numbers, and
Since cos θ and sin θ are generally irrational numbers, x, y, x c , y c , x
Even if z and yz are natural numbers, x ″ and y ″ are irrational numbers. That is, the scanned image after the rotation / independent scaling processing comes to a position displaced from the pixel (dot) position associated with the input / output synchronization signal.

3本の連続するラスターのデータをもって、回転・独立
変倍処理後の画像の各画素の値を決定してゆく。3本の
連続するラスターの2本目のラスター(中央のラスタ
ー)の注目画素の中心を中心とする主走査方向にα(|s
inθ|+|cosθ|)を一辺の長さに、副走査方向にβ
(|sinθ|+|cosθ|)の長さをもつ長方形を仮定し、
この長方形内に中心をもつ出力画素を検出する。第13図
aの丸印(A,B)が検出された画素を示す。これら、A,B
は、それぞれ該画素を囲む4つの被回転処理ラスターの
データをもってその値を求められる。Aに注目した場合
を第13図bに示した。Aを囲むa,b,c,dの4画素をもつ
値よりAの値を決定する。第13図cに、その決定法を示
す。画素bを中心と画素dの中心を結ぶ線分(以下線分
bdと称する)に、画素Aの中心から、画素cの中心と画
素dの中心を通る直線に平行に直線を引いた際に、この
直線と線分bdの交点が線分bdを内分するその内分比を
δ:1−δとする。また、画素cの中心と画素dの中心を
結ぶ線分(以下線分cdと称する)に、画素Aの中心から
線分bdに平行に直線を引いた際に、この直線と線分cdの
交点が、線分cdを内分するその内分比をε:1−εとす
る。画素a,b,c,dのもつ値をそれぞれV(a),V(b),
V(c),V(d)としたとき、画素AのもつV(A)を V(A)=(1−δ)(1−ε)V(a)+(1−δ)
εV(b) +δ(1−ε)V(c)+δεV(d) ……(4) とする。画素Bに対しても、同様にしてV(B)を求め
ることができる。
The value of each pixel of the image after the rotation / independent scaling processing is determined based on the data of three continuous rasters. Α (| s in the main scanning direction centered on the center of the pixel of interest in the second raster (center raster) of the three consecutive rasters
inθ | + | cosθ |) is the length of one side and β in the sub-scanning direction
Assuming a rectangle with a length of (| sinθ | + | cosθ |),
Output pixels centered within this rectangle are detected. Circles (A, B) in FIG. 13a indicate detected pixels. These, A, B
Can be obtained by using the data of four rotated rasters surrounding the pixel. The case of paying attention to A is shown in FIG. The value of A is determined from the value having 4 pixels of a, b, c, d surrounding A. FIG. 13c shows the determination method. A line segment connecting the center of pixel b and the center of pixel d (hereinafter line segment
(referred to as bd), when a straight line is drawn from the center of the pixel A in parallel with a straight line passing through the center of the pixel c and the center of the pixel d, the intersection of the straight line and the line segment bd internally divides the line segment bd. The internal division ratio is δ: 1−δ. Further, when a straight line is drawn from the center of the pixel A to the line segment connecting the center of the pixel c and the center of the pixel d (hereinafter referred to as the line segment cd), the line and the line segment cd are The internal division ratio at which the intersection point internally divides the line segment cd is ε: 1-ε. The values of the pixels a, b, c, d are V (a), V (b),
When V (c) and V (d) are set, V (A) of the pixel A is V (A) = (1-δ) (1-ε) V (a) + (1-δ)
Let εV (b) + δ (1-ε) V (c) + δεV (d) (4). For pixel B as well, V (B) can be similarly obtained.

次に、本発明を実現する構成例に基づき、実施例の動作
を説明する。
Next, the operation of the embodiment will be described based on a configuration example for realizing the present invention.

第1図において操作指示装置2を用いて操作者により回
転指示がなされると、操作指示装置は、指示された回転
角度に応じた情報を処理回路10にセツトする。また、拡
大・縮小を指示されると、指示された主走査方向縮倍率
及び副走査方向縮倍率に応じた情報を処理回路10にセツ
トする。
In FIG. 1, when a rotation instruction is given by the operator using the operation instruction device 2, the operation instruction device sets information corresponding to the instructed rotation angle to the processing circuit 10. When the enlargement / reduction is instructed, information corresponding to the instructed reduction ratio in the main scanning direction and the instructed reduction ratio in the sub-scanning direction is set to the processing circuit 10.

操作者により起動の指示がなされると、操作指示装置2
は、同期制御装置6に起動をかけ、同期制御装置6は走
査データ源4及び処理回路10に同期信号を出力し、装置
の動作を実行させる。画像データは第7図のように走査
され、ページ同期信号の立ち下がりエツジより、一ペー
ジの画像の先頭が指定され、副走査同期信号の立ち下が
りによりページ内の各々の走査線内の先頭のデータが指
定される。主走査同期信号の立ち下がりで各画素のデー
タの取り込みタイミングを指定される(第9,10図)。
When the operator gives a start instruction, the operation instruction device 2
Activates the synchronization control device 6, and the synchronization control device 6 outputs a synchronization signal to the scanning data source 4 and the processing circuit 10 to execute the operation of the device. The image data is scanned as shown in FIG. 7, the leading edge of the image of one page is designated by the trailing edge of the page sync signal, and the leading edge of each scanning line in the page is designated by the trailing edge of the sub-scan sync signal. Data is specified. Data acquisition timing of each pixel is designated by the fall of the main scanning synchronization signal (FIGS. 9 and 10).

以下、第1図内の処理回路10の回転・独立変倍補間の実
行に関して第3図a,bを用いて説明する。操作者により
指示された回転角θに応じてsinθ、−sinθ,cosθの各
値がともに処理後の座標算出回路22及び座標変換(逆変
換)回路28に、|sinθ|,|cosθ|の各値が処理後の領域
内格子点検出回路24にセツトされる。また、操作者によ
り指示された回転中心に応じて、主走査オフセツト(回
転)、副走査オフセツト(回転)の各値が共に処理後の
座標算出回路22および座標変換(逆変換)回路28にセツ
トされる。さらに、操作者により指示された縮倍率に応
じて、主走査方向変倍率α、副走査方向変倍率βの各値
が処理後の座標算出回路22及び処理後の領域内格子点検
出回路24に、また、それらの逆数1/α及び1/βが座標変
換(逆変換)回路28にセツトされる。操作者により指示
された変倍中心に応じて、主走査オフセツト(変倍)、
副走査オフセツト(変倍)の各値がともに、処理後の座
標算出回路22および座標変換(逆変換)回路28にセツト
される。
Hereinafter, the execution of the rotation / independent variable-magnification interpolation of the processing circuit 10 in FIG. 1 will be described with reference to FIGS. The respective values of sin θ, −sin θ, and cos θ are set in the processed coordinate calculation circuit 22 and the coordinate conversion (inverse conversion) circuit 28 in accordance with the rotation angle θ designated by the operator. The values are set in the processed area grid point detection circuit 24. Further, according to the center of rotation designated by the operator, the values of the main scanning offset (rotation) and the sub scanning offset (rotation) are both set in the coordinate calculation circuit 22 and the coordinate conversion (reverse conversion) circuit 28 after processing. To be done. Further, according to the reduction ratio instructed by the operator, the respective values of the main scanning direction scaling factor α and the sub scanning direction scaling factor β are stored in the processed coordinate calculation circuit 22 and the processed area grid point detection circuit 24. , And their reciprocals 1 / α and 1 / β are set in the coordinate conversion (inverse conversion) circuit 28. Main scanning offset (magnification) according to the magnification center designated by the operator,
Each value of the sub-scan offset (magnification change) is set in the coordinate calculation circuit 22 and the coordinate conversion (inverse conversion) circuit 28 after processing.

同期制御装置6により出力される同期信号に従い、走査
データ源は、画像データを走査データとしてラスタメモ
リ10に出力する。第11図aにラスタメモリ10の構成を示
す。4本の走査線に対応する4本のラインメモリ10−1
〜10−4の1本は走査データ源4よりの画像データを取
込み他の3本は入力済データとして、このデータをもっ
て回転・独立変倍補間処理を実行する。そして、1本の
走査データを入力する間に既に入力済の1本の走査線に
対応するデータを出力する。
The scanning data source outputs the image data as scanning data to the raster memory 10 in accordance with the synchronization signal output from the synchronization control device 6. The structure of the raster memory 10 is shown in FIG. 4 line memories corresponding to 4 scan lines 10-1
One of 10 to 10-4 takes in image data from the scanning data source 4, and the other three take as input data, and the rotation / independent variable-magnification interpolation process is executed with this data. Then, while inputting one scan data, the data corresponding to one scan line already input is output.

第3図に示すように、すでに入力済の走査データに対し
て、その入力座標を拡大・縮小回転処理した結果の座標
を処理後の座標算出回路22で算出する。その処理後の座
標を中心とした主走査方向にα(|sinθ|+|cosθ|)
を一辺の長さに副走査方向に一辺がβ(|sinθ|+|cos
θ|)の長さをもつ長方形領域内に存在する出力画像の
格子点を処理後の領域内格子点検出回路24で検出する。
領域内格子点検出回路24で検出された格子点を順次座標
変換(逆変換)回路28で座標軸自体を回転・独立変倍し
た場合の該格子点の処理後の座標系での座標を求める。
この座標より補間に用いる入力画素と補間に用いる係数
を各々その整数部と小数部より求める。これにより、出
力格子点に対応する値を求めて出力する。
As shown in FIG. 3, the coordinate calculation circuit 22 after processing calculates the coordinates of the result of enlarging / reducing rotation processing of the input coordinates of the already input scan data. Α (| sinθ | + | cosθ |) in the main scanning direction centered on the coordinates after the processing
Is the length of one side, and one side is β (| sinθ | + | cos
The grid points of the output image existing in the rectangular area having the length of θ |) are detected by the processed grid point detection circuit 24 in the area.
When the grid points detected by the in-area grid point detection circuit 24 are sequentially converted (inversely converted) by the coordinate conversion circuit 28, the coordinates of the grid points in the processed coordinate system when the coordinate axes themselves are rotated and independently scaled are obtained.
From this coordinate, the input pixel used for interpolation and the coefficient used for interpolation are obtained from the integer part and the decimal part, respectively. As a result, the value corresponding to the output grid point is obtained and output.

次に、第4図に従って処理後の座標算出回路22を説明す
る。前述の(1)式の演算の実行を行うものである。入
力の走査データ源4で用いられる読出同期信号4−a,4
−b,4−cに同期して動作する。ページ同期信号4−c
により、副走査カウンタ41はリセツトされ、初期値とし
て−2がロードされる。これは、走査データ源4より、
走査線2本分だけ遅れて動作するためである。副走査同
期信号4−aにより、主走査カウンタ42はリセツトさ
れ、初期値として0がロードされる。前述の(1)式の
x,yがそれぞれ主走査カウンタ42の出力、副走査カウン
タ41の出力であり、xc,ycがそれぞれ主走査オフセツト
(回転)43、副走査オフセツト(回転)44であり、回転
中心の座標である。また、回転角θに応じ、sinθ,cos
θ,−sinθが定数としてセツトされている。これらを
減算、乗算、加算することにより、回転処理後の座標
(x′,y′)を出力する。x′,y′は小数である。次
に、x′から主走査オフセツト(変倍)xz,y′から副走
査オフセツト(変倍)yzを減じ、それらの結果にそれぞ
れ主走査方向変倍率α、副走査方向変倍率βと乗じ、そ
れぞれxz,yzを加えることにより、回転・独立変倍の処
理を施された後の座標x″,y″を得る。
Next, the coordinate calculation circuit 22 after processing will be described with reference to FIG. The calculation of the above formula (1) is executed. Read sync signals 4-a, 4 used in the input scan data source 4
It operates in synchronization with -b and 4-c. Page sync signal 4-c
Thereby, the sub-scanning counter 41 is reset and -2 is loaded as the initial value. From the scan data source 4,
This is because the operation is delayed by two scanning lines. The main scanning counter 42 is reset by the sub-scanning synchronizing signal 4-a, and 0 is loaded as an initial value. In equation (1) above
x and y are the output of the main scanning counter 42 and the output of the sub-scanning counter 41, x c and y c are the main scanning offset (rotation) 43 and the sub-scanning offset (rotation) 44, respectively, and the coordinates of the center of rotation. Is. Also, depending on the rotation angle θ, sin θ, cos
θ and −sin θ are set as constants. By subtracting, multiplying, and adding these, the coordinates (x ', y') after the rotation processing are output. x ′ and y ′ are decimal numbers. Next, the main scanning offset (magnification) x z , y ′ is subtracted from the sub scanning offset (magnification) y z , and the results are respectively the main scanning direction scaling factor α and the sub scanning direction scaling factor β. By multiplying and adding x z and y z respectively, the coordinate x ″, y ″ after the processing of the rotation / independent variable magnification is obtained.

次に第5図aに従って処理後領域内格子点検出回路24を
説明する。処理後の座標を中心として主走査方向及び副
走査方向の一辺の長さが、夫々α(|cosθ|+|sinθ
|)およびβ(|cosθ|+|sinθ|)の長方形を設定
し、その長方形内にある格子点(主走査方向座標、副走
査方向座標ともに整数である座標点)の主走査座標と副
走査座標を出力する。主走査座標の出力値としてx″に
α(|cosθ|+|sinθ|)/2を加えた値の小数部を切り
捨てた値(整数部)と、α(|cosθ|+|sinθ|)/2を
減じて1を加えた値の小数部を切り捨てた値(整数部)
を出力している。副走査座標の出力値としてy″にβ
(|cosθ|+|sinθ|)/2を加えた値の小数部を切り捨
てた値(整数部)と、β(|cosθ|+|sinθ|)/2を減
じて1を加えた値の小数部を切り捨てた値(整数)を出
力している。該2組の整数値のそれぞれが、求める格子
点のx軸上の座標及びy軸上の座標である。第13図aの
A,Bは、この出力により指定される格子点を表わす。
Next, the intra-region grid point detection circuit 24 will be described with reference to FIG. The lengths of one side in the main scanning direction and the sub-scanning direction centering on the processed coordinates are α (| cos θ | + | sin θ
|) And β (| cosθ | + | sinθ |) rectangles are set, and main scanning coordinates and sub-scanning of grid points (coordinate points in which both main scanning direction coordinates and sub-scanning direction coordinates are integers) within the rectangle are set. Output the coordinates. A value (integer part) obtained by cutting off the decimal part of the value obtained by adding α (| cosθ | + | sinθ |) / 2 to x ″ as the output value of the main scanning coordinates, and α (| cosθ | + | sinθ |) / Value obtained by subtracting 2 and adding 1 and then discarding the fractional part (integer part)
Is being output. Β in y ″ as the output value of the sub-scanning coordinates
(| Cosθ | + | sinθ |) / 2 is the value obtained by rounding down the decimal part (integer part), and β (| cosθ | + | sinθ |) / 2 is subtracted by 1 and the decimal is added The value (integer) with the part truncated is output. Each of the two sets of integer values is the coordinate on the x-axis and the coordinate on the y-axis of the grid point to be obtained. Figure 13a
A and B represent grid points specified by this output.

該格子点の座標(整数)の、座標軸自体を回転・独立変
倍した座標系での座標を、第6図で示す座標変換回路で
求める。これは、第4図で示す処理後の座標算出回路22
の処理の逆変換を行なうものであり、主走査方向変倍率
1/α、副走査方向変倍率1/βで独立変倍し、−θだけ回
転させるのである。
Coordinates (integers) of the grid points in the coordinate system in which the coordinate axes themselves are rotated / independently scaled are obtained by the coordinate conversion circuit shown in FIG. This is the coordinate calculation circuit 22 after the processing shown in FIG.
This is the reverse conversion of the processing of the.
Independent scaling is performed at 1 / α and sub-scanning direction scaling factor 1 / β, and rotation is performed by -θ.

該逆変換された座標(小数)の整数部と、整数部+1の
副走査、主走査それぞれの値よりラスターバツフア内4
画素(第13図bのa,b,c,d)を求め、小数部より補間係
数(第13図cのα,β)を定めて、第7図で示す補間処
理回路によって(2)式の演算を実行し、補正値を算出
し出力する。第7図の回路は、主走査同期1クロツクに
対して、処理後の座標の前述の仮想の長方形領域内に存
在する全ての格子点の補間処理を行なってゆく。
Within the raster buffer 4 from the integer part of the inversely converted coordinates (decimal number) and the values of the integer part + 1 sub-scanning and main-scanning respectively.
Pixels (a, b, c, d in FIG. 13b) are obtained, interpolation coefficients (α, β in FIG. 13c) are determined from the decimal part, and the interpolation processing circuit shown in FIG. Then, the correction value is calculated and output. The circuit shown in FIG. 7 performs interpolation processing on all grid points existing in the above-mentioned virtual rectangular area of the coordinates after processing for one main scanning synchronous clock.

第5図bで示される回路により与えられる長方領域に存
在する格子点の主走査方向の座標の最大値(主走査出力
1)及び最小値(主走査出力2)、副走査方向の座標の
最大値(副走査出力1)及び最小値(副走査出力2)か
ら、すべて格子点の座標を主走査同期よりも高速のクロ
ツクの主走査動作同期と主走査動作同期よりも高速のク
ロツクの副走査動作同期に同期して該領域内の格子点の
主走査座標と副走査座標を順次出力する。主走査同期に
対して主走査動作同期は 以上の高速で動作する。例では4倍で動作している(第
5図c)。主走査動作同期に対して副走査動作同期も 以上の高速で動作する(第5図d)。例では倍率は1.6
倍であるので 以上の高速で動作すればよい。第5図bのカウンタ101
及び102は、ワンシヨツトのダウンカウンタであり、カ
ウント中はハイレベルを出力し、カウントが0になると
ローレベルを出力するものである。また、第5図bの10
3,104もダウンカウンタである。(2)式の演算は、第
7図の補間処理回路では、まず、(1−δ)V(a)+
δV(c)と、(1−δ)V(b)+δV(d)を各々 δ{V(c)−V(a)}+V(a)=(1−δ)V
(a) +δV(c)=V1 δ{V(d)−V(b)}+V(b)=(1−δ)V
(b) +δV(d)=V2 として算出したのち ε(V2−V1)+V1=(1−ε)V1+εV2 =(1−δ)(1−ε)V(a)+(1−δ)εV
(b) +δ(1−ε)V(c)+δεV(d) =V(D) として算出している。
The maximum value (main scanning output 1) and the minimum value (main scanning output 2) of the coordinates in the main scanning direction of the grid points existing in the rectangular area given by the circuit shown in FIG. From the maximum value (sub-scan output 1) and the minimum value (sub-scan output 2), the coordinates of all grid points are set to the main scan operation synchronization of the clock faster than the main scanning synchronization and the sub-clock of the clock faster than the main scanning operation synchronization. The main scanning coordinates and the sub scanning coordinates of the grid points in the area are sequentially output in synchronization with the scanning operation synchronization. Main scanning operation synchronization is It operates at higher speeds. In the example, it operates at 4 times (Fig. 5c). Sub-scanning operation synchronization as well as main-scanning operation synchronization It operates at the above high speed (Fig. 5d). In the example the magnification is 1.6
Because it is double It suffices to operate at the above high speed. Counter 101 in FIG. 5b
Reference numerals 102 and 102 are one-shot down counters which output a high level during counting and output a low level when the count reaches zero. Also, in FIG.
3,104 is also a down counter. In the interpolation processing circuit of FIG. 7, the calculation of the equation (2) is first performed by (1-δ) V (a) +
Let δV (c) and (1-δ) V (b) + δV (d) be respectively δ {V (c) -V (a)} + V (a) = (1-δ) V
(A) + δV (c) = V 1 δ {V (d) -V (b)} + V (b) = (1-δ) V
(B) + δV (d) = V 2 and then ε (V 2 −V 1 ) + V 1 = (1−ε) V 1 + εV 2 = (1−δ) (1−ε) V (a) + (1-δ) εV
(B) + δ (1-ε) V (c) + δεV (d) = V (D).

第5図aに示される処理後領域内格子点算出回路24は、
回転角θに応じて定まる数|sinθ|,|cosθ|を用いて長
方形の辺の長さの係数Kを設定したが、第14図で示され
るように回転角θによらない定数 を用いてもよい。こうすると、|sinθ|,|cosθ|をθに
ついてセツトする必要がなくなり、回路規模を軽減でき
る。この場合、主走査方向の辺の長さは、 副走査方向の辺の長さは を用いることになる。
The post-processing area grid point calculation circuit 24 shown in FIG.
Although the coefficient K of the side length of the rectangle is set using the numbers | sinθ | and | cosθ | that are determined according to the rotation angle θ, as shown in Fig. 14, a constant that does not depend on the rotation angle θ is set. May be used. This eliminates the need to set | sinθ |, | cosθ | for θ, and the circuit scale can be reduced. In this case, the length of the side in the main scanning direction is The side length in the sub-scanning direction is Will be used.

<効果> 以上説明したように、本発明によれば、入力された走査
データによって表される画像に対して回転処理と同時に
走査方向及びその垂直方向に夫々倍率α,βで変倍処理
を行う際に、入力画像データをフレーム単位で記憶する
メモリを必要とすることなく、高速にかつ高画質の変換
画像を得ることができる。
<Effect> As described above, according to the present invention, the image represented by the input scanning data is subjected to the rotation processing and the scaling processing in the scanning direction and the vertical direction thereof at the magnifications α and β, respectively. At this time, a converted image of high quality can be obtained at high speed without requiring a memory for storing the input image data in frame units.

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

第1図は本実施例の基本構成図、第2図a,b,cは従来の
不具合を示す図、第3図aは、実施例全体の回路の前半
のブロツク図、第3図bは、同後半のブロツク図、第4
図は第3図aの回転後の座標算出回路のさらに詳細なブ
ロツク図、第5図a,bは第3図aの回転・独立変倍後の
領域内格子点検出回路のさらに詳細なブロツク図、第5
図cは主走査同期−主走査動作同期の信号関係図、第5
図dは主走査動作同期−副走査動作同期の信号関係図、
第6図は第3図bの座標変換(逆変換)回路のさらに詳
細なブロツク図、第7図は第3図cの補間処理回路のさ
らに詳細なブロツク図、第8図は、画像の走査状態を示
す図、第9図は、ページ同期信号と副走査同期信号の関
係を示す図、第10図は、副走査同期信号と主走査同期信
号の関係を示す図、第11図aは、ラスターメモリの構成
図、第11図b,cはラスターメモリと走査データとの関係
を示す図、第12図は補間処理の実行状態を示す図、第13
図a,b,cは回転・独立変倍された入力走査画像データか
ら補間された出力画像データを得る方法を示す図、第14
図は第5図aの変形例のブロツク図である。
1 is a basic configuration diagram of this embodiment, FIGS. 2a, 2b, and 2c are diagrams showing conventional defects, FIG. 3a is a block diagram of the first half of the circuit of the entire embodiment, and FIG. , Block diagram of the latter half of the same period, No. 4
The figure is a more detailed block diagram of the coordinate calculation circuit after the rotation shown in FIG. 3a, and FIGS. 5a and 5b are the more detailed block diagrams of the in-region lattice point detection circuit after the rotation / independent scaling in FIG. 3a. Figure, fifth
FIG. 5C is a signal relationship diagram of main scanning synchronization-main scanning operation synchronization, fifth
FIG. D is a signal relationship diagram of main scanning operation synchronization-sub scanning operation synchronization,
FIG. 6 is a more detailed block diagram of the coordinate conversion (inverse conversion) circuit of FIG. 3b, FIG. 7 is a more detailed block diagram of the interpolation processing circuit of FIG. 3c, and FIG. 8 is an image scanning. FIG. 9 is a diagram showing the state, FIG. 9 is a diagram showing the relationship between the page synchronization signal and the sub-scanning synchronization signal, FIG. 10 is a diagram showing the relationship between the sub-scanning synchronization signal and the main scanning synchronization signal, and FIG. Configuration diagram of raster memory, FIG. 11 b, c is a diagram showing the relationship between the raster memory and the scan data, FIG. 12 is a diagram showing the execution state of interpolation processing, 13
14a, 14b and 14c are views showing a method of obtaining interpolated output image data from input scan image data that is rotated and scaled independently, FIG.
The figure is a block diagram of a modification of FIG. 5a.

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】画素毎の画像データをライン単位の走査デ
ータとして入力する走査入力手段と、 前記走査入力手段により入力された走査データによって
表される画像に対して回転処理と同時に走査方向及びそ
の垂直方向に夫々倍率α,βで変倍処理を行う処理手段
と、 前記処理手段による処理後の画像データを順次出力する
出力手段とを有する画像処理装置であって、 前記処理手段は、前記走査入力手段により入力された画
像データの回転処理及び変倍処理後の位置を算出する算
出手段と、 前記算出手段により算出された位置の近傍画素のデータ
を回転処理及び変倍処理前の複数の画像データに基づい
て補間する補間手段30とを含み、 更に、前記算出手段及び前記補間手段に、前記走査入力
手段による画像データの入力に同期した算出及び補間処
理を行わしめるべく、前記走査入力手段、算出手段及び
補間手段に所定の同期信号を供給する同期制御手段を有
することを特徴とする画像処理装置。
1. A scan input means for inputting image data for each pixel as scan data in units of lines, and a rotation direction and a scan direction for an image represented by the scan data input by the scan input means. An image processing apparatus comprising: a processing unit that performs a scaling process in the vertical direction with magnifications α and β respectively; and an output unit that sequentially outputs image data processed by the processing unit, wherein the processing unit includes the scanning unit. Calculating means for calculating the position of the image data input by the input means after the rotation processing and the scaling processing, and a plurality of images before the rotation processing and the scaling processing for the data of the pixels in the vicinity of the position calculated by the calculating means. And an interpolating means 30 for interpolating based on the data, wherein the calculating means and the interpolating means further include calculation and interpolation in synchronization with the input of the image data by the scanning input means. To occupy perform the process, the scan input means, the image processing apparatus characterized by having a synchronous control means for supplying a predetermined synchronization signal to the calculation means and interpolation means.
JP60233032A 1985-09-04 1985-10-18 Image processing device Expired - Fee Related JPH0777416B2 (en)

Priority Applications (3)

Application Number Priority Date Filing Date Title
JP60233032A JPH0777416B2 (en) 1985-10-18 1985-10-18 Image processing device
US06/902,320 US4850028A (en) 1985-09-04 1986-08-29 Image processing method and apparatus therefor
DE19863629984 DE3629984A1 (en) 1985-09-04 1986-09-03 IMAGE PROCESSING METHOD AND DEVICE

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP60233032A JPH0777416B2 (en) 1985-10-18 1985-10-18 Image processing device

Publications (2)

Publication Number Publication Date
JPS6292676A JPS6292676A (en) 1987-04-28
JPH0777416B2 true JPH0777416B2 (en) 1995-08-16

Family

ID=16948735

Family Applications (1)

Application Number Title Priority Date Filing Date
JP60233032A Expired - Fee Related JPH0777416B2 (en) 1985-09-04 1985-10-18 Image processing device

Country Status (1)

Country Link
JP (1) JPH0777416B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH083840B2 (en) * 1988-08-09 1996-01-17 松下電器産業株式会社 Image processing apparatus and image processing method

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS586977B2 (en) * 1977-03-28 1983-02-07 工業技術院長 addressing circuit
JPS6188374A (en) * 1984-10-08 1986-05-06 Hitachi Ltd Picture data rotation processing device

Also Published As

Publication number Publication date
JPS6292676A (en) 1987-04-28

Similar Documents

Publication Publication Date Title
EP0597555B1 (en) Image processing apparatus
EP0942588B1 (en) Image processing apparatus and method
US4850028A (en) Image processing method and apparatus therefor
US5579418A (en) Image interpolation apparatus
JP2006217641A (en) Method for correcting distance between sensors in image reading apparatus
US5263135A (en) Image processing apparatus
EP2346240B1 (en) Image processing method and device, and imaging apparatus using the image processing device
JPH0777416B2 (en) Image processing device
US6424751B2 (en) Apparatus and method for efficient implementation of 2-dimensional pixel window averaging
JP2502274B2 (en) Image converter
JP2860985B2 (en) Document reading device
JPS62139082A (en) Image processing device
KR100463552B1 (en) Cubic convolution interpolation apparatus and method
JP2687366B2 (en) Image reading device
JP2736803B2 (en) How to convert image magnification
JP3032914B2 (en) Image reading processing device
JP3461613B2 (en) Image processing device
JP2845376B2 (en) Pixel density converter
JPH11168610A (en) Image processor
JP2575641B2 (en) Image editing processing method
JP3633689B2 (en) Image processing method
JP3009088B2 (en) Scan format converter
JPS62291851A (en) Method for removing scanning vibration of image in scanning-type electronic microscope
JPS63113770A (en) Image processing system
JPH04326184A (en) Data interpolation system

Legal Events

Date Code Title Description
LAPS Cancellation because of no payment of annual fees