JPS622778A - Picture processing method in digital copying machine - Google Patents

Picture processing method in digital copying machine

Info

Publication number
JPS622778A
JPS622778A JP60141827A JP14182785A JPS622778A JP S622778 A JPS622778 A JP S622778A JP 60141827 A JP60141827 A JP 60141827A JP 14182785 A JP14182785 A JP 14182785A JP S622778 A JPS622778 A JP S622778A
Authority
JP
Japan
Prior art keywords
coordinates
original
document
point
data
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
JP60141827A
Other languages
Japanese (ja)
Inventor
Tadao Hayashi
忠男 林
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Ricoh Co Ltd
Original Assignee
Ricoh Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Ricoh Co Ltd filed Critical Ricoh Co Ltd
Priority to JP60141827A priority Critical patent/JPS622778A/en
Publication of JPS622778A publication Critical patent/JPS622778A/en
Pending legal-status Critical Current

Links

Landscapes

  • Exposure Or Original Feeding In Electrophotography (AREA)
  • Combination Of More Than One Step In Electrophotography (AREA)
  • Facsimile Scanning Arrangements (AREA)
  • Editing Of Facsimile Originals (AREA)

Abstract

PURPOSE:To eliminate the need to pay attention to an original setting action by detecting the coordinates of a point on a straight line connecting a corner point of the original closest to a reference side and another corner point for calculation of the sloping angle of the original and performing revolving conversion based on the sloping angle. CONSTITUTION:Data less than a certain threshold level S is detected among the read data and the coordinates (X1, Y1) of a corner point (a) closest to a reference side 9a of a size indicating frame 9 are detected for an original 8. Then the coordinates (X2, Y2) of a point (c) on a straight line connecting the point (a) and another corner point (c) of the original where the Y coordinate value is reduced at and after the point (a) are detected. Thus an arc tangent is obtained for the tilt (k) of a straight line (ab) for calculation of the angle alphabetween the line (ab) and a standard side 9b. Based on this angle alpha, the revolving angle beta is obtained to convert rotatively the read data into the data group parallel to the side 9a. Then all data on the original 8 are shifted to the coordinates which are turned by the angle beta around the corner point (X1, Y1).

Description

【発明の詳細な説明】 技術分野 本発明は、原稿画像をデジタル的に処理するデジタル複
写機、ファクシミリ等における画像処理方法に関する。
DETAILED DESCRIPTION OF THE INVENTION Technical Field The present invention relates to an image processing method in a digital copying machine, facsimile machine, etc., which digitally processes an original image.

従来技術 従来、通常のアナログ複写機においては原稿よりも転写
紙の方が大きいような場合に、原稿外の部分が黒くコピ
ーされないように白色の原稿圧板を用いるようにしてい
る。一方、デジタル複写機では、原稿圧板を白くするよ
り、逆に鏡面とし。
BACKGROUND ART Conventionally, in a typical analog copying machine, when the transfer paper is larger than the original, a white original pressure plate is used to prevent the outside of the original from being copied in black. On the other hand, in digital copying machines, rather than making the document pressure plate white, it has a mirror surface.

原稿外からの光が受光部に入射せず、黒画像部分と同一
となるようにしている。これは、原稿の端部を検出して
原稿サイズ、位置を把握し、原稿がコンタクトガラス上
の所定位置にない場合であっても、移動処理させる等の
デジタル処理によるメリットを発揮させるためである。
Light from outside the original does not enter the light receiving section, so that the light is the same as the black image area. This is to leverage the benefits of digital processing, such as detecting the edge of the document, determining its size and position, and moving the document even if it is not in the specified position on the contact glass. .

このような機能は1例えばキャノンレーザー複写システ
ムNP−9030における原稿位置/サイズ検知機能、
オート用紙選択機能等として知られている。しかし。
Such functions include 1, for example, the document position/size detection function in the Canon laser copying system NP-9030;
This is known as an automatic paper selection function. but.

このような処理による場合、原稿外が黒とみなされるの
で、原稿端を正確に検出する処理を行わないと原稿外に
黒枠を生ずるコピーとなってしまう。
In such a process, the outside of the original is considered black, so unless the edge of the original is accurately detected, the copy will have a black frame outside the original.

この点、前述した製品では、原稿の白点のX。In this regard, with the above-mentioned product, the white dot on the document is marked with an X.

Y座標の最小値、最大値を検出して、これらの値の外側
の画像データを全て白に反転させるようにしている。し
かし、このような方法による場合、原稿の画像を全部読
取った後に初めて処理できるものでしかない。このため
、例えば第5図(a)に示すように原稿1がコンタクト
ガラス2上に斜めにセットされているような場合には、
この斜め状態のgfi[Lに外接する四角形3のコピー
用紙4を選択してコピーするため、得られるコピー用紙
4には同図(b)に示すように原稿画像5外に黒枠コピ
一部分6を生じてしまうものである。この結果、コピー
品質が低下してしまう。従って、黒枠コピーを生じさせ
ないためには、原稿セットに際してオペ−レータに細心
の注意を要求するものとなり、コピ一作業性が悪いもの
となってしまうものである。
The minimum and maximum values of the Y coordinate are detected, and all image data outside these values is inverted to white. However, with such a method, processing can only be performed after all images of the document have been read. Therefore, for example, when the original 1 is set diagonally on the contact glass 2 as shown in FIG. 5(a),
In order to select and copy the copy paper 4 of the rectangle 3 circumscribing this diagonal gfi[L, the obtained copy paper 4 has a black frame copy part 6 outside the original image 5 as shown in FIG. It happens. As a result, copy quality deteriorates. Therefore, in order to prevent black border copying from occurring, the operator is required to be very careful when setting the original, resulting in poor copying efficiency.

目的 本発明は、このような点に鑑みなされたもので、原稿台
に原稿が斜めにセットされたような場合であっても、原
稿画像読取りデータを原稿サイズ指示枠に平行な原稿サ
イズ分のデータとして出力させることができ、コピー等
の作業性のよいデジタル複写機等における画像処理方法
を提供することを目的とする。
Purpose The present invention was made in view of the above points, and even when the original is set diagonally on the original table, the original image reading data is converted to the original size parallel to the original size indication frame. An object of the present invention is to provide an image processing method for a digital copying machine, etc., which can be output as data and has good workability for copying and the like.

構成 本発明は、上記目的を達成するため、11Mサイズ指示
枠を備えた原稿台にセットされた原稿の画像を受光部に
より順次デ  ル的に読取るデジタル複写機等において
、予め決められた原稿サイズ指示枠の基準辺に最も近い
原稿のコーナー点の座標を読取りデータから検出し、こ
の原稿のコーナー点を始点とする他のコーナー点とを結
ぶ直線上の点の座標を読取りデータから検出して、これ
らの点の座標からこの原稿の原稿サイズ指示枠に対する
傾き角を算出し、全読取りデータをこの傾き角に基づき
原稿サイズ指示枠に平行な座標のデータ群に回転変換し
て出力させることを特徴とするものである。
Structure In order to achieve the above-mentioned object, the present invention uses a digital copying machine or the like that sequentially reads images of a document set on a document table equipped with an 11M size indication frame using a light receiving section. The coordinates of the corner point of the document closest to the reference side of the indication frame are detected from the read data, and the coordinates of the point on the straight line connecting this corner point of the document as the starting point with other corner points are detected from the read data. From the coordinates of these points, calculate the inclination angle of this original with respect to the original size indication frame, and based on this inclination angle, rotate and convert all the read data into a data group with coordinates parallel to the original size indication frame and output it. This is a characteristic feature.

以下、本発明の一実施例を図面に基づいて説明する。ま
ず、第1図に示すような原稿台としてのコンタクトガラ
ス7が設けられ、このコンタクトガラス7上にコピーす
べき原稿8がセットされることになる。このコンタクト
ガラス7の回りは原稿8のセット時の目安となるサイズ
指示枠9とされている。このような原稿8をCCDスキ
ャナlOにより順次デジタル的に読み取ることになる。
Hereinafter, one embodiment of the present invention will be described based on the drawings. First, a contact glass 7 as a document table as shown in FIG. 1 is provided, and a document 8 to be copied is set on the contact glass 7. Around this contact glass 7 is a size indication frame 9 that serves as a guide when setting the original 8. Such original document 8 is sequentially digitally read by CCD scanner IO.

ここに、このCCDスキャナ10による主走査方向は第
1図に示すY軸方向であり、副走査方向はX軸方向であ
る。このCCDスキャナ10により読取ったデータは工
/○ボート11を介してRAM12のラムマツプ上に順
次書き込まれる。この時、コンタクトガラス7上の画像
データは原稿サイズ指示枠9に従い座標化されており(
X方向については、 XM^Xを副走査方向の走査ライ
ン数とするとO≦X≦XM^x、Y方向については、Y
M^Xを主走査方向の1ライン走査のデータ数とすると
0≦Y≦YM^Xとなる)、これがラムマツプ上に展開
されることになる。そして、読取った順番によりCPU
13上にデータを呼出すことにより本実施例の画像処理
が行われる。
Here, the main scanning direction by this CCD scanner 10 is the Y-axis direction shown in FIG. 1, and the sub-scanning direction is the X-axis direction. The data read by the CCD scanner 10 is sequentially written onto the RAM map of the RAM 12 via the machine/○ board 11. At this time, the image data on the contact glass 7 is converted into coordinates according to the original size indication frame 9 (
For the X direction, O≦X≦XM^x, where XM^X is the number of scanning lines in the sub-scanning direction, and for the Y direction, Y
If M^X is the number of data for one line scan in the main scanning direction, then 0≦Y≦YM^X), which will be developed on the RAM map. Then, depending on the order of reading, the CPU
The image processing of this embodiment is performed by calling the data on 13.

まず、読取ったデータの内、あるスレッシュホールドS
以下のデータの検出により、コンタクトガラス7にセッ
トされた原稿8について、サイズ指示枠9の基準辺9a
に最も近い距離にあるコーナー点aの座4m(X□、Y
□)を検出する(なお、原稿8を押圧する原稿圧板があ
るときは、この原稿圧板によるデータがスレッシュホー
ルドS以上のレベルとなるように設定される)。この検
出動作はX、Yの2つのカウンタ14を利用して行われ
る。この動作について詳細に説明する。まず、ある点(
x、y)のRAM12上でのデータをf(x、y)とす
る。そこで、最初にf (0,O)とスレッシュホール
ドSとの大小を比較する。この比較の結果がf (0,
O)≦Sであれば、そのままa (Xi、 Yl) =
 (0,O)としてa点の座標が検出されたことになる
。一方、f (0,O)〉Sであれば、Yカウンタを1
つあげてf (0゜1)とスレッシュホールドSとを比
較する。この比較においてf (0,1)≦Sであれば
、そのままa (x、、y、)= (o、i)としてa
点の座標とする。一方、f (0,1)>Sであれば、
Yカウンタを更に1つあげてf (0,2)とスレッシ
ュホールドSとの大小を同様に比較する。このようにY
カウンタの値を1つずつ上げてa(Xt+Y1)の座標
を検出する。ここで、Y=YMAXまでスレッシュホー
ルドSと比較してもa (x、、 yt)が検出されな
い場合には、f (X、Y)= (1゜o)として順次
f (Xs Y) = (1e YMAX )までのデ
ータをスレッシュホールドSと順次比較してその大小に
より検出する。このような検出動作をf (X、Y)の
データがスレッシュホールドS以下となる座標が検出さ
れるまで同様に繰り返す。
First, in the read data, a certain threshold S
By detecting the following data, the reference side 9a of the size indication frame 9 is determined for the document 8 set on the contact glass 7.
4 m (X□, Y
□) is detected (if there is a document pressure plate that presses the document 8, the data from this document pressure plate is set to be at a level equal to or higher than the threshold S). This detection operation is performed using two counters 14, X and Y. This operation will be explained in detail. First, there is a certain point (
Let the data of x, y) on the RAM 12 be f(x, y). Therefore, first, f (0, O) and the threshold S are compared in magnitude. The result of this comparison is f (0,
If O)≦S, then a (Xi, Yl) =
This means that the coordinates of point a have been detected as (0, O). On the other hand, if f (0, O)>S, set the Y counter to 1
Then, compare f (0°1) with the threshold S. In this comparison, if f (0, 1)≦S, then a (x,, y,) = (o, i) and a
Let be the coordinates of the point. On the other hand, if f (0,1)>S,
The Y counter is further incremented by one and f (0,2) is compared in magnitude with the threshold S in the same manner. Like this
The value of the counter is increased one by one to detect the coordinates of a(Xt+Y1). Here, if a (x,, yt) is not detected even when compared with the threshold S up to Y=YMAX, then f (X, Y) = (1°o) and sequentially f (Xs Y) = ( 1e YMAX ) is sequentially compared with the threshold S and detected based on its magnitude. Such a detection operation is repeated in the same manner until a coordinate where the data of f (X, Y) is equal to or less than the threshold S is detected.

つまり、一般的に説明すれば、f (X、Y)≦Sであ
れば、そのままa (X、、Y、)= (X、Y)とし
てコーナー点aの座標検出を終了する。そして、f (
X、Y)>Sであり、YがY MAXでなければf (
X、Y+1)とスレッシュホールドSとを比較し、Y 
” Y MAXとなればf (X+1.O)とスレッシ
ュホールドSとを比較することになる。
In other words, generally speaking, if f (X, Y)≦S, the coordinate detection of the corner point a is ended as a (X,, Y,) = (X, Y). And f (
If X, Y)>S and Y is not Y MAX, then f (
Compare X, Y+1) with threshold S, and
” If Y MAX, then f (X+1.O) and threshold S will be compared.

このようにして、基準辺9aに最も近い原稿8のコーナ
ー点aの座標(X工、Y□)を検出したら、次に、コー
ナー点aを始点としてY座標値が小さくなる原稿8の他
のコーナー点すとを結ぶ直線上の点Cの座標(X−=Y
2)を検出する。この点Cの座1ull (xzt y
z)の検出も、基本的には同様にある点(X、Y)のR
AMII上でのデータをf(X、Y)としたときにスレ
ッシュホールドSとの大小を比較することに一2行われ
る。ここで、コーナー点aが基準辺9aに最も近い点と
して検出されているので、この点すの検出はX座標値が
X□以下になることはないので、f (X、、O)とス
レッシュホールドSとの比較から開始される。
In this way, after detecting the coordinates (X-factor, Y□) of the corner point a of the document 8 closest to the reference side 9a, next, start from the corner point a of the other document 8 whose Y coordinate value is smaller. The coordinates of point C on the straight line connecting the corner points (X-=Y
2) is detected. The locus 1ull of this point C (xzt y
z) is basically detected in the same way by detecting the R
When the data on the AMII is f(X, Y), it is compared in magnitude with the threshold S. Here, since the corner point a is detected as the closest point to the reference side 9a, the X coordinate value cannot be less than X□ when detecting this point. It starts with a comparison with hold S.

この比較の結果がf (Xよ、0)≦Sであれば。If the result of this comparison is f (X, 0)≦S.

ソノままb (X−2Yz) = (Xt−0)として
Sono mama b (X-2Yz) = (Xt-0).

b点の座標が検出されたことになる。一方、f(xl、
O)>Sであれば、Xカウンタを1つあげてf (X工
+1.O)とスレッシュホールドSとを比較する。この
比較においてf (X1+1゜O)≦Sであれば、その
ままb (Xt、yz) =(X□+1,0)としてb
点の座標とする。一方、f (X、+1.O)>S’t
”あれば、Xカウンタを更に1つあげてf (X工+2
.o)とスレッシュホールドSとの大小を同様に比較す
る。このようにXカウンタの値を1つずつ上げてb (
Xzp yz)の座標を検出する。ここで、X = X
、 + m (mはXM^X−X1間の任意の自然数で
あるが、 XM^Xの1/1o程度の数である)までス
レッシュホールドSと比較してもb (xzt yz)
が検出されない場合には、f (X、Y)= (X、、
1)として順次f (X 、Y) =(Xt + m 
−1)までのデータをスレッシュホールドSと順次比較
してその大小により検出する。このような検出動作をf
 (X。
This means that the coordinates of point b have been detected. On the other hand, f(xl,
If O)>S, increment the X counter by 1 and compare f (X + 1.O) with the threshold S. In this comparison, if f (X1+1゜O)≦S, then b (Xt, yz) = (X□+1,0) and b
Let be the coordinates of the point. On the other hand, f (X, +1.O)>S't
``If there is, increase the X counter by one more and f (X engineering + 2
.. o) and the threshold S are similarly compared. In this way, increase the value of the X counter one by one and b (
Detect the coordinates of Xzp yz). Here, X = X
, + m (m is any natural number between XM^X-X1, but it is about 1/1o of XM^X) even when compared with the threshold S, b (xzt yz)
is not detected, f (X, Y)= (X, ,
1) sequentially f (X, Y) = (Xt + m
-1) is sequentially compared with the threshold S and detected based on its magnitude. This detection operation is
(X.

Y)のデータがスレッシュホールドS以下となる座標が
検出されるまで同様に繰り返す。つまり、一般的に説明
すれば、f (X、Y)≦Sとなっていれば、ソノまま
b (x、、 Y2) = (x、 Y)としてコーナ
ー点すの座標検出を終了する。そして、f (X、Y)
>Sであり、XがX、+rnでなければf (X、+1
. Y)とスレッシュホールドSとを比較して、X=X
、+mとなればf (X、、 Y+1)とスレッシュホ
ールドSとを比較することになる。ここで、Xの変域を
X1≦X≦X1+mとすることにより、ab上の点すの
座標(Xt、 Y、)を検出する時間を短縮することが
できる。
The same process is repeated until a coordinate where the data of Y) is less than or equal to the threshold S is detected. In other words, if f (X, Y)≦S, then b (x, Y2) = (x, Y) is maintained and the coordinate detection of the corner point is completed. and f (X, Y)
>S, and if X is not X, +rn, then f (X, +1
.. Y) and the threshold S, X=X
, +m, then f (X,, Y+1) is compared with the threshold S. Here, by setting the domain of X to X1≦X≦X1+m, the time to detect the coordinates (Xt, Y,) of the point on ab can be shortened.

このようにして、コーナー点aの座標(X工。In this way, the coordinates of corner point a (X-factor) are determined.

Y t )に引き続き点すの座’yA (Xt、yz)
が検出サレタラ、両点の座標a (Xi+ Yt) +
 b (XisY 2 )から他方の基準辺9bに対す
る直線abの傾きkを算出する。つまり、 k= (y、−y、)/ (x2−x、)である。従っ
て、R稿8が基準辺9aに平行にセットされている場合
には、2番目に検出される点c (X21 yz)がa
点と一致し、X、=X、、 Y1=Y、であり、k=o
となる。この傾きkのアークタンジェントを取ることに
より、直線abと基準辺9bとの間の角度α(即ち、原
稿8の基準辺9bに対する傾き角である)を算出する。
Y t ) followed by the dot 'yA (Xt, yz)
is detected, the coordinates of both points a (Xi+Yt) +
The slope k of the straight line ab with respect to the other reference side 9b is calculated from b (XisY 2 ). That is, k= (y, -y,)/(x2-x,). Therefore, when the R document 8 is set parallel to the reference side 9a, the second detected point c (X21 yz) is a
coincides with the point, X,=X,, Y1=Y, and k=o
becomes. By taking the arctangent of this slope k, the angle α between the straight line ab and the reference side 9b (that is, the angle of inclination of the original 8 with respect to the reference side 9b) is calculated.

即ち、α=tan−1に として求められる。この傾き角αに基づき読取りデータ
を基準辺9aに平行(基準辺9bに対しては直角)なデ
ータ群に回転変換させるための回転角β(正の方向を第
1図に示すように反時計方向に取るものとする)を傾き
角αの大きさに応じて次式により求める。
That is, it is determined as α=tan-1. Based on this inclination angle α, the rotation angle β (positive direction is counterclockwise as shown in FIG. (assumed to be taken in the direction) is determined by the following formula depending on the magnitude of the inclination angle α.

β=α         (α≦π/4)β;α−(π
/2)   (α〉π/4)従って、第1図に示す場合
にはβ=αとなる。
β=α (α≦π/4)β;α−(π
/2) (α>π/4) Therefore, in the case shown in FIG. 1, β=α.

このようにして、回転角βを算出したら、読み取られた
原稿8の全データを原稿8内の任意の座標点1例えばコ
ーナー点a (X、、 YL)を回転中心として回転角
βだけ回転した座標に移行させる。
After calculating the rotation angle β in this way, all the data of the read document 8 is rotated by the rotation angle β around an arbitrary coordinate point 1 in the document 8, for example, a corner point a (X,, YL). Move to coordinates.

ここで、読み取られた旧データの座標を(x、y)とし
、角度βだけ回転した後の新座標を(X′。
Here, the coordinates of the read old data are (x, y), and the new coordinates after rotating by the angle β are (X').

Y’)とすると、この(X’ 、Y’ )は次式により
求められる。
Y'), this (X', Y') is determined by the following equation.

X ’ = (cosβ) X −(sinβ)Y+X
1Y’  =(sinβ)X+(cosβ)y + y
l(なお、任意の座標(xa、 yo)を回転中心とし
た時には、X ’ = (cosβ)X−(sinβ)
y+x0、Y ’ == (sinβ) X + (c
osβ)Y+Y、により算出される)。
X' = (cosβ) X - (sinβ)Y+X
1Y' = (sinβ)X+(cosβ)y + y
l (In addition, when the center of rotation is arbitrary coordinates (xa, yo), X' = (cosβ)X-(sinβ)
y+x0, Y' == (sinβ) X + (c
osβ)Y+Y).

このように、石片m (X、Y)の全データを新座標(
x’ 、y’ )に移すことにより、斜めにセットされ
た原稿8であっても、第1図に破線で示すように原稿サ
イズ指示枠9の基準辺9bに原稿8の直線abが平行に
セットされたと同一の状態で読み取られたことになる。
In this way, all data of stone piece m (X, Y) is converted to new coordinates (
x', y'), even if the original 8 is set diagonally, the straight line ab of the original 8 will be parallel to the reference side 9b of the original size indication frame 9, as shown by the broken line in FIG. This means that it is read in the same state as when it was set.

従って、原稿8の面積分のデータのみが有効。1.、、
ってコピー等の後処理がなされることになり、第5図(
b)に示したような黒枠コピーを生ずることがない。こ
の結果、オペレータはコンタクトガラス7に対する原稿
8セツトに際して細心の注意を要せず作業性のよいもの
となる。第3図はこのようなデータの回転変換処理の動
作を示すフローチャートである。
Therefore, only the data for the area of document 8 is valid. 1. ,,
Therefore, post-processing such as copying will be performed, as shown in Figure 5 (
A black border copy as shown in b) does not occur. As a result, the operator does not need to be very careful when setting the original 8 on the contact glass 7, resulting in good work efficiency. FIG. 3 is a flowchart showing the operation of such data rotation conversion processing.

一方、原稿8が第4図に示すようにコンタクトガラス7
上に斜めにセットされている場合を考える。この場合で
あっても、基準辺9aに最も近いコーナー点aの座標(
X、、 Yl)は第1図の場合と同様に検出される。次
に、このコーナー点aを始点とする原稿8の辺の直線の
内、Y座標が小さくなる方向に延びるコーナー点dとを
結ぶ直線上の点、ここではコーナー点dの座標(x z
 = y z )を検出する。この検出も第1図の場合
と同様に行われる。即ち、コーナー点dの検出はf (
X、。
On the other hand, the document 8 is placed on the contact glass 7 as shown in FIG.
Consider the case where it is set diagonally upward. Even in this case, the coordinates (
X,, Yl) are detected in the same way as in FIG. Next, among the straight lines on the side of the document 8 starting from this corner point a, a point on the straight line connecting corner point d extending in the direction where the Y coordinate becomes smaller; here, the coordinates of the corner point d (x z
= y z ) is detected. This detection is also performed in the same manner as in FIG. That is, the detection of corner point d is f (
X.

0)とスレッシュホールドSとの比較から開始される。0) and the threshold S.

このように両点a、dの座標が検出されたら、基準辺9
bに対する直線adの傾きkを前述の如く、k= (Y
l−Y、)/ (x、−x、)により算出する。そして
、この傾きkの値から傾き角αを算出する。この場合、
第4図においては図示の如くα〉π/4となるので、デ
ータを回転変換させる回転角βはβ;α−(7C/2)
とし、時計方向に回転させる。つまり、このようにα〉
π/4の時には、第1図に示したα≦π/4の原稿8の
場合とは逆回転方向に(π/2)−αだけ回転した原稿
と考えるのが一般的であるので、傾き角αの大きさに応
じて回転角βを選択設定するものである。後のデータ処
理は第1図の場合と同様になる。
When the coordinates of both points a and d are detected in this way, the reference side 9
As mentioned above, the slope k of the straight line ad with respect to b is k= (Y
Calculated by l-Y, )/(x,-x,). Then, the tilt angle α is calculated from the value of this tilt k. in this case,
In Fig. 4, α>π/4 as shown, so the rotation angle β for rotationally converting the data is β;α−(7C/2)
and rotate it clockwise. In other words, like this α〉
When the angle is π/4, it is generally considered that the original has been rotated by (π/2) - α in the opposite direction to the case of original 8 where α≦π/4 shown in Fig. 1. The rotation angle β is selected and set according to the size of the angle α. The subsequent data processing is the same as in the case of FIG.

なお、コーナー点aの座標検出に続く2番目の点の座標
検出等については次のような方式を採ることもできる。
Note that the following method can also be adopted for detecting the coordinates of the second point following the coordinate detection of the corner point a.

第4図の場合であれば前述の如くコーナー点dの座標を
検出する。一方、第1図の場合にはコーナー点aに対す
る他のコーナー点eの座標を(X 3 、Y s )と
して検出する。このコーナー点eの座標検出としては、
コーナー点aの座標がY軸座標上で0に近い方の点とし
て検出されているので、検出すべきコーナー点eはY軸
座標上でYNAXに近い方に存在するという想定の下に
、f(Xl、YNAX)とスレッシュホールドSとの比
較から開始させるようにすればよい。この場合もX1〜
X1+mの間の検出動作となり、Y軸方向の座標は順次
−1されることになる。そして、原稿8の傾きに′は基
準辺9aに対する傾きとして算出する。即ち、第1図の
場合であれば。
In the case of FIG. 4, the coordinates of the corner point d are detected as described above. On the other hand, in the case of FIG. 1, the coordinates of another corner point e with respect to corner point a are detected as (X 3 , Y s ). To detect the coordinates of this corner point e,
Since the coordinates of corner point a are detected as a point closer to 0 on the Y-axis coordinate, on the assumption that the corner point e to be detected is closer to YNAX on the Y-axis coordinate, f The process may start from a comparison between (Xl, YNAX) and the threshold S. In this case too, X1~
The detection operation is between X1+m, and the coordinates in the Y-axis direction are sequentially incremented by -1. Then, the inclination of the document 8 is calculated as the inclination with respect to the reference side 9a. That is, in the case of FIG.

k’ = (X、−X、) / (Y、−Y、)とし、
第4図の場合であれば に’ = (x、−xl)/ (y、−y、)とする。
k' = (X, -X,) / (Y, -Y,),
In the case of FIG. 4, it is assumed that '=(x, -xl)/(y, -y,).

そして、この傾きに′から基準辺9aに対する原稿8の
傾き角γ(第1図ではαに等しいをアークタンジェント
をとることにより算出するそして、データの回転変換処
理のための回転角は傾き角γと同一として逆方向に回転
させるものである。つまり、傾き角γの正の方向を決め
ておけば、第1図の場合と第4図の場合とでは傾きに′
の正負が異なり、傾き角γの正負も異なるので傾き角γ
分だけ逆方向にデータ座標を回転させればよいものとな
る。
Then, from this inclination, the inclination angle γ of the document 8 with respect to the reference side 9a (in FIG. 1, equal to α) is calculated by taking the arctangent.Then, the rotation angle for data rotation conversion processing is the inclination angle γ In other words, if the positive direction of the inclination angle γ is determined, the inclination will be
The positive and negative signs of γ are different, and the positive and negative signs of the tilt angle γ are also different, so the tilt angle γ
All you have to do is rotate the data coordinates in the opposite direction by that amount.

効果 本発明は、上述したように基準辺に最も近い原稿のコー
ナー点と他のコーナー点を結ぶ直線上の点との座標を検
出して原稿の傾き角を算出し、読み取られた全データの
座標をこの傾き角に基づき回転変換させて原稿サイズ指
示枠に平行なデータを得るようにしたので、原稿台に原
稿が斜めにセットされても平行にセットされたと同一の
画像データが得られることとなり、良好なる画像後処理
を行うことができ、よって、オペレータが原稿セラ1−
に際して細心の注意を払う必要がなく作業性)  のよ
いものとすることができるものである。
Effects As described above, the present invention calculates the inclination angle of the document by detecting the coordinates of the corner point of the document closest to the reference side and a point on the straight line connecting other corner points, and calculates the inclination angle of the document. The coordinates are rotationally converted based on this tilt angle to obtain data parallel to the document size indication frame, so even if the document is set diagonally on the document table, the same image data will be obtained as if it were set parallel. This allows for good image post-processing, allowing the operator to
There is no need to pay close attention to the process, and the workability can be improved.

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

第1図は本発明の一実施例を示す平面図、第2図はブロ
ック図、第3図はフローチャート、第4図は異なる原稿
セット状態を示す平面図、第5図(a)、(b)は従来
例を示す平面図である。
FIG. 1 is a plan view showing an embodiment of the present invention, FIG. 2 is a block diagram, FIG. 3 is a flowchart, FIG. 4 is a plan view showing different document setting states, and FIGS. 5(a) and (b). ) is a plan view showing a conventional example.

Claims (1)

【特許請求の範囲】[Claims]  原稿サイズ指示枠を備えた原稿台にセットされた原稿
の画像を受光部により順次デジタル的に読取るデジタル
複写機等において、予め決められた原稿サイズ指示枠の
基準辺に最も近い前記原稿のコーナー点の座標を読取り
データから検出し、この原稿のコーナー点を始点とする
他のコーナー点とを結ぶ直線上の点の座標を読取りデー
タから検出して、これらの点の座標からこの原稿の原稿
サイズ指示枠に対する傾き角を算出し、全読取りデータ
をこの傾き角に基づき原稿サイズ指示枠に平行な座標の
データ群に回転変換して出力させることを特徴とするデ
ジタル複写機等における画像処理方法。
In a digital copying machine, etc., in which images of a document set on a document table equipped with a document size indication frame are sequentially digitally read by a light receiving section, the corner point of the document that is closest to the reference side of a predetermined document size indication frame. From the read data, detect the coordinates of the points on the straight line starting from the corner point of this document and other corner points from the read data, and calculate the document size of this document from the coordinates of these points. An image processing method for a digital copying machine or the like, characterized in that a tilt angle with respect to an instruction frame is calculated, and based on this tilt angle, all read data is rotationally converted into a data group of coordinates parallel to a document size instruction frame and output.
JP60141827A 1985-06-28 1985-06-28 Picture processing method in digital copying machine Pending JPS622778A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP60141827A JPS622778A (en) 1985-06-28 1985-06-28 Picture processing method in digital copying machine

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP60141827A JPS622778A (en) 1985-06-28 1985-06-28 Picture processing method in digital copying machine

Publications (1)

Publication Number Publication Date
JPS622778A true JPS622778A (en) 1987-01-08

Family

ID=15301043

Family Applications (1)

Application Number Title Priority Date Filing Date
JP60141827A Pending JPS622778A (en) 1985-06-28 1985-06-28 Picture processing method in digital copying machine

Country Status (1)

Country Link
JP (1) JPS622778A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH01225282A (en) * 1988-03-04 1989-09-08 Fuji Photo Film Co Ltd Picture processor
JPH01246681A (en) * 1988-03-29 1989-10-02 Oki Electric Ind Co Ltd Position detector for notched corner

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH01225282A (en) * 1988-03-04 1989-09-08 Fuji Photo Film Co Ltd Picture processor
JPH01246681A (en) * 1988-03-29 1989-10-02 Oki Electric Ind Co Ltd Position detector for notched corner

Similar Documents

Publication Publication Date Title
CN100409654C (en) Image reading apparatus
WO2000000930A1 (en) Image correction device
JPS5890639A (en) Method and device for image processing
GB2189964A (en) Image processing apparatus for introducing a shift, slant or shear to the image
JPS622778A (en) Picture processing method in digital copying machine
JP3582988B2 (en) Non-contact image reader
JP3814995B2 (en) Image forming apparatus
JP3404955B2 (en) Document size detector
JP3852247B2 (en) Image forming apparatus and transfer image distortion correction method
JP3603551B2 (en) Image editing device
JP3562329B2 (en) Image forming device
JPH04257844A (en) Method and device for editing image
JPH02170280A (en) Document inclination corrector
JP3312787B2 (en) Image processing system
JP3385924B2 (en) Image forming device
JPH0522572A (en) Digital picture processor
JPH10229487A (en) Image-forming device
JPH04261259A (en) Correction device for image data
JPH01142874A (en) Original area detector
JPH04329755A (en) Image forming device
JPH02274165A (en) Picture reader
JP2011160202A (en) Reader
JPH07298011A (en) Handy scanner
JPH10164317A (en) Image reader
JPS62230259A (en) Picture reproducing device