JPH09121277A - Image processor - Google Patents
Image processorInfo
- Publication number
- JPH09121277A JPH09121277A JP7302016A JP30201695A JPH09121277A JP H09121277 A JPH09121277 A JP H09121277A JP 7302016 A JP7302016 A JP 7302016A JP 30201695 A JP30201695 A JP 30201695A JP H09121277 A JPH09121277 A JP H09121277A
- Authority
- JP
- Japan
- Prior art keywords
- image
- partial
- partial images
- read
- images
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000001514 detection method Methods 0.000 claims abstract description 13
- 230000002194 synthesizing effect Effects 0.000 claims description 9
- 230000015654 memory Effects 0.000 abstract description 59
- 239000002131 composite material Substances 0.000 abstract description 5
- 230000015572 biosynthetic process Effects 0.000 abstract description 4
- 238000000034 method Methods 0.000 description 36
- 230000009467 reduction Effects 0.000 description 12
- 230000008569 process Effects 0.000 description 9
- 239000000203 mixture Substances 0.000 description 7
- 238000010586 diagram Methods 0.000 description 5
- 230000003287 optical effect Effects 0.000 description 4
- 239000011521 glass Substances 0.000 description 3
- 230000007246 mechanism Effects 0.000 description 2
- 238000003786 synthesis reaction Methods 0.000 description 2
- 238000003705 background correction Methods 0.000 description 1
- 230000008859 change Effects 0.000 description 1
- 238000006243 chemical reaction Methods 0.000 description 1
- 230000006870 function Effects 0.000 description 1
Landscapes
- Editing Of Facsimile Originals (AREA)
Abstract
Description
【0001】[0001]
【発明の属する技術分野】本発明は、1回で読み取るこ
とができない大判サイズの原稿を複数の部分画像に分割
して順に読み取り、これらを接合して1枚の合成画像と
して出力する画像処理装置に関する。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an image processing apparatus which divides a large-sized original that cannot be read at one time into a plurality of partial images, reads them in sequence, and joins them to output them as one composite image. Regarding
【0002】[0002]
【従来の技術】原稿台に全体を載置できない大判の原稿
を、複数の画像(=原稿台に載置可能な大きさの複数の
画像)に分割して順に読み取ってメモリに記憶し、各分
割画像を合成して出力する装置が提案されている。2. Description of the Related Art A large-sized original that cannot be placed on the original table is divided into a plurality of images (= a plurality of images of a size that can be placed on the original table), sequentially read, and stored in a memory. An apparatus has been proposed that combines and outputs divided images.
【0003】画像の合成に関する従来技術としては、例
えば、下記の公報がある。特開平5−122501号公
報には、大判の原稿画像を互いに重複部分を有する複数
の分割画像に分けて読み取り、各分割画像の重複部分を
パターンマッチングにより認識することで各分割画像の
配置位置を決めるとともに非重複部分との境界線を求
め、この境界線に従って各分割画像を合成することによ
り、各分割画像を合成する装置と方法が開示されてい
る。特開平4−331567号公報には、初回に縮小倍
率で読み取った分割画像の画像データを所定方向に90
°回転し、2回目に縮小倍率で読み取った残りの分割画
像の画像データを逆方向に90°回転し、これらを接合
することで、大判原稿を合成する装置が開示されてい
る。Prior art relating to image composition is, for example, the following publication. In Japanese Laid-Open Patent Publication No. 5-122501, a large-sized original image is read by dividing it into a plurality of divided images each having an overlapping portion, and the overlapping portion of each divided image is recognized by pattern matching to determine the arrangement position of each divided image. An apparatus and a method for synthesizing divided images by determining and determining a boundary line with a non-overlapping portion and synthesizing divided images according to the boundary line are disclosed. Japanese Unexamined Patent Publication No. 4-331567 discloses image data of a divided image read at a reduction ratio for the first time in 90
There is disclosed a device that rotates a document image, rotates the image data of the remaining divided images read at the second reduction ratio by 90 ° in the opposite direction, and joins them to combine a large-sized document.
【0004】[0004]
【発明が解決しようとする課題】上述の特開平5−12
2501号公報の技術のように、重複部分のパターンマ
ッチングによって各分割画像の配置位置を決める方法で
は、処理が複雑であるため長時間を要し、また、誤判別
が生じ易いという問題がある。また、上述の特開平4−
331567号公報の方法では、各部分画像を読み取る
際の原稿の載置方向が予め決められていることを前提と
しているため、オペレータの原稿セット時の操作が複雑
となって負担が大きい。また、原稿のセット方向を間違
えた場合には、画像合成ミスが発生するという問題があ
る。また、部分画像を決められた方向にセットし難い装
置もあり得る。DISCLOSURE OF THE INVENTION Problems to be Solved by the Invention
The method of determining the arrangement position of each divided image by pattern matching of overlapping portions like the technique of Japanese Patent No. 2501 has a problem that it takes a long time because processing is complicated and erroneous determination is likely to occur. In addition, the above-mentioned JP-A-4-
In the method of Japanese Patent No. 331567, since it is premised that the placement direction of the original when reading each partial image is predetermined, the operation of the operator at the time of setting the original becomes complicated and the burden is heavy. In addition, if the originals are set in the wrong direction, there is a problem that an image combining error occurs. Further, there may be a device in which it is difficult to set the partial image in a predetermined direction.
【0005】本発明は、大判サイズの原稿を分割して読
み取って合成する場合に於いて、各部分画像を読み取る
順番や、各部分画像を読み取る際の原稿台上でのセット
方向にかかわりなく、各部分画像を正しい位置に且つ正
しい向きに合成して出力できるようにすることを目的と
する。また、この目的を、比較的簡単な処理によって達
成することを目的とする。In the present invention, when a large-sized original is divided and read and combined, regardless of the reading order of each partial image or the setting direction on the original plate when reading each partial image, An object of the present invention is to enable composition and output of each partial image in the correct position and in the correct direction. Moreover, it aims at achieving this objective by comparatively simple processing.
【0006】[0006]
【課題を解決するための手段】本発明は、1回で読み取
ることができないサイズの原稿を複数の部分画像として
順に読み取り該複数の部分画像を合成して出力する機能
を有する画像処理装置であって、前記各部分画像を各々
記憶する記憶手段と、前記各部分画像の縁部の画像濃度
を各々検出する検出手段と、前記検出手段による検出結
果に基づいて前記部分画像を合成する際の配置位置と接
合するべき対の接合辺を各部分画像に関して各々決定す
る決定手段と、前記決定手段により決定された配置位置
に各部分画像を配置して前記決定手段により決定された
対の接合辺に於いて各部分画像を接合する接合手段と、
を有する画像処理装置である。The present invention is an image processing apparatus having a function of sequentially reading an original having a size that cannot be read at once as a plurality of partial images and synthesizing and outputting the plurality of partial images. Storage means for storing each of the partial images, detection means for detecting the image density at the edge of each partial image, and arrangement for synthesizing the partial images based on the detection result by the detection means. Positioning means for deciding the joining side of the pair to be joined with respect to each of the partial images, and arranging each partial image at the arrangement position decided by the deciding means, for the joining side of the pair decided by the deciding means. At this, a joining means for joining the partial images,
An image processing apparatus having a.
【0007】大判原稿の各部分画像を合成して出力する
モードでは、各部分画像の縁部の画像濃度が各々検出さ
れ、この検出結果に基づいて各部分画像の合成画像内に
於ける配置位置と接合対象となる対の接合辺が決定され
る。この決定に従って、各部分画像が接合される。In the mode in which the partial images of the large-sized original are combined and output, the image densities at the edges of the partial images are respectively detected, and based on the detection result, the arrangement positions in the combined image of the partial images are detected. And the joining edge of the pair to be joined is determined. According to this determination, the partial images are joined.
【0008】[0008]
【発明の実施の形態】以下、図面を参照して、本発明の
具体的な実施の形態を説明する。 1.機構 図2は、本発明を具体化した装置の一例を模式的に示
す。図示の装置は、原稿台ガラス27の上に画像面を下向
きに載置した原稿D を公知の走査光学装置(=光源21,
反射ミラー22a,22b,22c ,レンズ群23, CCDラインセ
ンサ24, 駆動モータ25, ドライバIC26等で構成される
装置)2で読み取って電気信号に変換し、この電気信号を
画像処理部4 へ送って公知の画像処理(A/D変換,シ
ェーディング補正,変倍等)を施すことにより画像デー
タを生成し、4分割大判合成モードが設定されている場
合には、大判原稿から縮小倍率で読み取った4枚の分割
画像データを画像合成部5 にて接合して、外部へ出力す
る装置である。また、この接合時に於いて、制御部3 に
より、各分割画像データの合成画像内に於ける配置位置
(A〜D)と配置方向(上下の向き)とを補正するよう
に画像合成部5 が制御される。なお、図2中、28は原稿
カバーである。DESCRIPTION OF THE PREFERRED EMBODIMENTS Specific embodiments of the present invention will be described below with reference to the drawings. 1. Mechanism FIG. 2 schematically shows an example of an apparatus embodying the present invention. The apparatus shown in the figure is a known scanning optical device (= light source 21, light source 21, which is a document D placed on a platen glass 27 with its image surface facing downward.
It is read by a device composed of the reflection mirrors 22a, 22b, 22c, the lens group 23, the CCD line sensor 24, the drive motor 25, the driver IC 26, etc.) 2, converted into an electric signal, and the electric signal is sent to the image processing unit 4. Well-known image processing (A / D conversion, shading correction, scaling, etc.) is performed to generate image data, and when the 4-division large-format combining mode is set, the image is read from a large-format original at a reduction ratio. This is a device that joins the four pieces of divided image data in the image synthesizing unit 5 and outputs them to the outside. Further, at the time of this joining, the control unit 3 causes the image combining unit 5 to correct the arrangement position (A to D) and the arrangement direction (up and down direction) in the combined image of the divided image data. Controlled. In FIG. 2, 28 is an original cover.
【0009】走査光学装置は、光源21と反射ミラー22a
を搭載する第1移動体(不図示)と反射ミラー22b,22c
を搭載する第2移動体(不図示)を、原稿台ガラス27の
下面に沿って図の左右方向へ移動させることにより、原
稿D の画像反射光をレンズ系23を介してライン単位でC
CDラインセンサ24に結像させる装置である。ここで、
第1移動体の移動速度は、第2移動体の移動速度の2倍
である。CCDラインセンサ24は、上記の如く結像され
るライン単位の画像反射光に対応して、当該ラインの各
画素の電気信号を生成して、画像処理部4 へ出力する。The scanning optical device includes a light source 21 and a reflection mirror 22a.
First moving body (not shown) for mounting and reflection mirrors 22b, 22c
By moving a second moving body (not shown) that mounts the same in the left-right direction in the figure along the lower surface of the original platen glass 27, the image reflected light of the original D is reflected by the line system C through the lens system 23.
It is a device for forming an image on the CD line sensor 24. here,
The moving speed of the first moving body is twice the moving speed of the second moving body. The CCD line sensor 24 generates an electric signal of each pixel of the line corresponding to the image reflected light of each line formed as described above, and outputs the electric signal to the image processing unit 4.
【0010】後述の4分割大判合成モードのように変倍
処理が行われる場合には、画像処理部4 に於ける画像デ
ータの変倍処理と併せて、走査光学装置の走査速度(第
1移動体と第2移動体の移動速度)が変更される。即
ち、設定された変倍率に適合するように、走査速度が基
準の速度(等倍時の速度)から変更される。この変更
は、走査光学装置の駆動モータ25の速度を、設定された
変倍率に応じて基準の速度から変更することによって実
行することができる。例えば、A1サイズの大判原稿を
分割して読み取って面積比で1/4に縮小した後に合成
する場合は、走査速度は、基準の速度の41/2 =2倍に
変更される。When the scaling processing is performed as in the 4-division large-format combining mode described later, the scanning speed of the scanning optical device (first movement) is used together with the scaling processing of the image data in the image processing unit 4. The moving speeds of the body and the second moving body are changed. That is, the scanning speed is changed from the reference speed (speed at the same magnification) so as to match the set scaling ratio. This change can be performed by changing the speed of the drive motor 25 of the scanning optical device from the reference speed according to the set scaling ratio. For example, when a large-sized document of A1 size is divided and read, and the area ratio is reduced to 1/4 and then combined, the scanning speed is changed to 4 1/2 = 2 times the reference speed.
【0011】原稿台ガラス27は、図3に示すようにA3
サイズである。このため、A1サイズの原稿であれば、
4分割して読み取ることにより、原稿全体の画像データ
を得ることができる。本装置では、読み取る方向や読み
取る順番は任意である。例えば、図5に示すように全て
の部分画像を同じ方向に向けてセットして読み取っても
よく、また、図7に示すように上半分の2個の部分画像
A,Bと下半分の2個の部分画像C,Dとで、読み取る
方向を180°反転させてもよい。また、各部分画像を
読み取る順番も、図5や図7に示す(a)〜(d)とい
う順番に限定されず、任意の順番で読み取ってよい。な
お、図5と図7に於いて、各部分画像は裏面側(原稿台
27に面する側)に描かれており、図示の柄は上方からの
透視図を示す。また、原稿カバー28の図示は省略されて
いる。As shown in FIG. 3, the platen glass 27 is A3 size.
Is the size. Therefore, if it is an A1 size original,
By reading the image in four divisions, the image data of the entire original can be obtained. In this device, the reading direction and the reading order are arbitrary. For example, as shown in FIG. 5, all partial images may be set and read in the same direction, and as shown in FIG. 7, two partial images A and B in the upper half and two partial images in the lower half may be read. The reading direction may be reversed by 180 ° between the individual partial images C and D. Further, the order of reading the partial images is not limited to the order of (a) to (d) shown in FIGS. 5 and 7, and may be read in any order. 5 and 7, each partial image is on the back side (original platen).
27), and the handle shown is a perspective view from above. The document cover 28 is not shown.
【0012】また、図3に示すように、原稿台ガラス27
の右手前(図で右下方)には、操作パネル1 が設けられ
ている。操作パネル1 には、原稿読取動作の開始を指令
するためのスタートキー11、通常モードと2分割大判合
成モードと4分割大判合成モードの切換を指令するため
のモードキー12、2分割大判合成モードの設定状態を点
灯して表示する2分割大判モード表示ランプ13a 、4分
割大判合成モードの設定状態を点灯して表示する4分割
大判モード表示ランプ13b 、数値入力用のテンキー及び
クリア・ストップキー14、読取倍率値や読取サイズ等を
表示するための表示パネル15が設けられている。Further, as shown in FIG.
An operation panel 1 is provided on the right front side (lower right side in the figure) of the. The operation panel 1 has a start key 11 for instructing the start of the document reading operation, a mode key 12 for instructing switching between the normal mode, the 2-part large-size combining mode and the 4-part large-size combining mode, and the 2-part large-size combining mode. 2 division large-format mode display lamp 13a that lights and displays the setting status of 4 divisions 4 division large-format mode display lamp 13b that lights and displays the setting status of 4-division large format compositing mode, numeric keypad and clear / stop key 14 A display panel 15 for displaying the reading magnification value, reading size, etc. is provided.
【0013】2分割大判合成モードとは、A3サイズよ
り大きく、且つ、A2サイズ以下である原稿を、2回に
分割して縮小倍率で読み取り、この読み取った各画像を
接合することにより、A3サイズ以下の単一の画像に合
成して、出力するモードである。また、4分割大判合成
モードとは、A2サイズより大きく、且つ、A1サイズ
以下である原稿を、4回に分割して縮小倍率で読み取
り、この読み取った各画像を接合することにより、A3
サイズ以下の単一の画像に合成して、出力するモードで
ある。なお、以下では、主に4分割大判合成モードにつ
いて説明する。In the two-division large-format combining mode, a document larger than A3 size and smaller than A2 size is divided into two parts and read at a reduction ratio, and the read images are combined to form an A3 size image. In this mode, the following single image is combined and output. In the 4-division large-format combining mode, a document that is larger than A2 size and equal to or smaller than A1 size is divided into 4 times and read at a reduction ratio, and the read images are combined to form an A3 size image.
In this mode, a single image of size or less is combined and output. In the following, the 4-division large-format combining mode will be mainly described.
【0014】各部分画像を接合して合成する処理は画像
合成部5 にて行われる。画像合成部5 は、図1のよう
に、画像メモリ(1) 、画像メモリ(2) 、画像メモリ(3)
、画像メモリ(4) 、画像メモリ(5) 、及び、DMAC
(Direct Memory Access Controller)51 を有する。この
画像合成部5 は、前記画像読取部2 や前記画像処理部4
と同様に、制御部3 によって制御される。この制御部3
は、後述のように、各部分画像を読み取る際のセット方
向と、各部分画像を読み取る順番を判別して、その結果
に基づいて画像合成部5 のDMAC51にデータを設定す
ることで、各部分画像を合成画像内の正しい位置に正し
い向きに配置させるように制御する。The process of joining and synthesizing the partial images is performed by the image synthesizing unit 5. As shown in FIG. 1, the image composition unit 5 includes an image memory (1), an image memory (2), and an image memory (3).
, Image memory (4), image memory (5), and DMAC
(Direct Memory Access Controller) 51 is included. The image combining unit 5 includes the image reading unit 2 and the image processing unit 4.
It is controlled by the control unit 3 in the same manner as. This control unit 3
As will be described later, by determining the set direction when reading each partial image and the order of reading each partial image, and setting the data in the DMAC 51 of the image synthesizing unit 5 based on the result, each partial Control the image to be placed in the correct position in the composite image and in the correct orientation.
【0015】画像メモリ(1) には、通常モードで読み取
られた画像データが格納される。また、2分割大判合成
モードでは、初回に縮小倍率で読み取られた画像データ
が画像メモリ(1) に格納され、2回目に縮小倍率で読み
取られた画像データが画像メモリ(2) に格納される。ま
た、4分割大判合成モードでは、初回に縮小倍率で読み
取られた画像データが画像メモリ(1) に格納され、2回
目に縮小倍率で読み取られた画像データが画像メモリ
(2) に格納され、3回目に縮小倍率で読み取られた画像
データが画像メモリ(3) に格納され、4回目に縮小倍率
で読み取られた画像データが画像メモリ(4) に格納され
る。The image data read in the normal mode is stored in the image memory (1). Also, in the two-division large-format combining mode, the image data read at the first reduction ratio is stored in the image memory (1), and the image data read at the second reduction ratio is stored in the image memory (2). . Further, in the 4-division large-format combining mode, the image data read at the first reduction ratio is stored in the image memory (1), and the image data read at the second reduction ratio is stored in the image memory.
The image data stored in (2) and read at the third reduction magnification is stored in the image memory (3), and the image data read at the fourth reduction magnification is stored in the image memory (4).
【0016】2分割合成モードで画像メモリ(1),(2) に
格納された部分画像データや、4分割合成モードで画像
メモリ(1),(2),(3),(4) に格納された部分画像データの
合成は、DMAC51の制御により、各画像メモリの画像
データを、画像メモリ(5) の指定されたアドレス(合成
画像内の配置位置A〜Dに対応するアドレス.必要に応
じて回転される)に格納することによって行われる。そ
のためのデータは、制御部3 により後述の如く設定され
る。Partial image data stored in the image memories (1) and (2) in the two-division composition mode, and stored in the image memories (1), (2), (3) and (4) in the four-division composition mode. Under the control of the DMAC 51, the image data in each image memory is combined with the specified address (address corresponding to the arrangement positions A to D in the combined image. Is rotated) and stored in. The data for that purpose is set by the control unit 3 as described later.
【0017】なお、本具体例では特に言及しないが、各
部分画像の境界を重複して読み取って、該重複領域内の
接合線に従って部分画像を接合する(重複部分の一方を
採用する)場合には、該重複領域内の各画素に関して
は、画像メモリ(1) 〜(4) の当該部分のアドレスを共通
化する必要がある。Although not specifically mentioned in this example, in the case where the boundaries of the partial images are read redundantly and the partial images are joined in accordance with the joining line in the overlapping area (one of the overlapping portions is adopted). For each pixel in the overlapping area, it is necessary to make the addresses of the corresponding portions of the image memories (1) to (4) common.
【0018】画像メモリ(5) にはA3サイズまでの画像
データを格納可能である。通常モードでは画像メモリ
(1) の画像データが転送されて格納される。また、2分
割大判合成モードでは、画像メモリ(1) と画像メモリ
(2) の合成画像が格納される。また、4分割大判合成モ
ードでは、画像メモリ、画像メモリ(2) 、画像メモリ
(3)、及び画像メモリ(4) の合成画像が格納される。こ
の画像メモリ(5) の画像データが、プリンタやファクシ
ミリ等の外部機器(不図示)へ出力されて、当該外部機
器での画像形成等に供される。The image memory (5) can store image data up to A3 size. Image memory in normal mode
The image data of (1) is transferred and stored. Also, in the 2-division large-format combining mode, the image memory (1) and the image memory
The composite image of (2) is stored. In the 4-division large-format synthesis mode, the image memory, image memory (2), image memory
(3) and the composite image in the image memory (4) are stored. The image data in the image memory (5) is output to an external device (not shown) such as a printer or a facsimile and used for image formation or the like in the external device.
【0019】2.動作 次に、本装置の4分割大判合成モードでの動作を、図9
〜図12のフロ−チャ−トに即して説明する。ここで
は、図4の(a)に示すA1サイズ(840mm×59
4mm)の原稿を4個の部分画像A,B,C,Dに分割
して、各々0.5倍(面積比では0.25倍)の縮小倍
率で読み取り、この4個の部分画像データを接合してA
3サイズの画像データに合成する場合を説明する。この
原稿は、周囲に幅L1の余白部を有しており、また、隣接
する部分画像間の境界付近の幅L1の部分(第4図の
(b)参照)には相互に類似した画像が存在している。
また、部分画像Aは左上の画像、部分画像Bは右上の画
像、部分画像Cは左下の画像、部分画像Dは右下の画像
であるとする。2. Operation Next, the operation of the apparatus in the 4-division large-format combining mode will be described with reference to FIG.
The following is a description based on the flowchart of FIG. Here, the A1 size (840 mm × 59) shown in FIG.
(4 mm) original is divided into four partial images A, B, C, D, and each is read at a reduction ratio of 0.5 times (area ratio: 0.25 times), and these four partial image data are read. Join A
A case of combining the image data of three sizes will be described. This manuscript has a margin portion of width L1 on the periphery, and images similar to each other are present in the portion of width L1 near the boundary between adjacent partial images (see (b) in FIG. 4). Existing.
Further, it is assumed that the partial image A is the upper left image, the partial image B is the upper right image, the partial image C is the lower left image, and the partial image D is the lower right image.
【0020】2-1.動作の原理 原稿を4分割して順に読み取る方法としては、図5に示
す方法と、図7に示す方法とがある。図5の方法では、
4個の部分画像A,B,C,Dの全てが同じ方向を向く
ように、任意の順番で原稿台27にセットされて読み取ら
れる。即ち、部分画像A,B,C,Dは、オペレータか
ら見て上下が正しい方向を向くようにセットされる。な
お、部分画像A,B,C,Dが、オペレータから見て上
下が180°逆の方向を向くようにセットされてもよ
い。一方、図7の方法では、部分画像A,Bと、部分画
像C,Dとが、相互に180°反対方向を向くように、
任意の順番で原稿台27にセットされて読み取られる。即
ち、部分画像A,Bはオペレータから見て上下が正しい
方向を向くようにセットされ、部分画像C,Dはオペレ
ータから見て上下が180°逆の方向を向くようにセッ
トされる。なお、この関係は逆であってもよい。2-1. Principle of operation As a method of reading an original by dividing it into four parts, there are a method shown in FIG. 5 and a method shown in FIG. In the method of FIG.
All four partial images A, B, C, and D are set on the original table 27 and read in an arbitrary order so as to face the same direction. That is, the partial images A, B, C, and D are set so that the top and bottom faces the correct direction when viewed from the operator. Note that the partial images A, B, C, and D may be set so that the top and bottom of the images are 180 ° opposite to each other when viewed from the operator. On the other hand, in the method of FIG. 7, the partial images A and B and the partial images C and D are oriented 180 ° opposite to each other,
The documents are set on the platen 27 and read in any order. That is, the partial images A and B are set so that the upper and lower sides thereof face the correct direction when viewed from the operator, and the partial images C and D are set so that the upper and lower sides thereof face in the opposite direction by 180 ° as viewed from the operator. Note that this relationship may be reversed.
【0021】図5の方法によって読み取られる部分画像
A,B,C,Dを図6に示し、図7の方法によって読み
取られる部分画像A,B,C,Dを図8に示す。図示の
ように、図5の方法による読取画像では、原稿の周囲の
余白部は、部分画像Aでは上辺と左辺、部分画像Bでは
上辺と右辺、部分画像Cでは下辺と左辺、部分画像Dで
は下辺と右辺に各々位置する。一方、図7の方法による
読取画像では、上記余白部は、部分画像A,Bでは図5
の方法による読取画像と同じ位置に在るが、部分画像C
では上辺と右辺に位置し、部分画像Dでは上辺と左辺に
位置する。The partial images A, B, C, D read by the method of FIG. 5 are shown in FIG. 6, and the partial images A, B, C, D read by the method of FIG. 7 are shown in FIG. As shown in the figure, in the read image by the method of FIG. 5, the margins around the document are the upper and left sides of the partial image A, the upper and right sides of the partial image B, the lower and left sides of the partial image C, and the partial image D. Located on the bottom and right sides respectively. On the other hand, in the image read by the method of FIG. 7, the above-mentioned blank area is shown in FIG.
Although it is at the same position as the image read by the method
Is located on the upper side and the right side, and is located on the upper side and the left side in the partial image D.
【0022】つまり、図5の方法によって読み取られた
場合、余白部の位置は各部分画像で各々異なるが、図7
の方法によって読み取られた場合には、上辺と左辺に余
白部の在る部分画像がAとDの2個、上辺と右辺に余白
部の在る部分画像がBとCの2個になるという事情があ
る。また、前述のように、接合されるべき辺の付近の画
像は、隣接する部分画像間で相互に類似しているという
事情がある。本装置では、このことを利用して、画像メ
モリ(1),(2),(3),(4) に読取順に格納された部分画像が
4個の部分画像A,B,C,Dの何れであるかを特定す
るとともに、各画像メモリ内の部分画像の格納方向を特
定し、これに基づいて4個の部分画像を接合している。That is, when the image is read by the method of FIG. 5, the position of the blank portion is different in each partial image, but FIG.
When the image is read by the above method, there are two partial images A and D having a blank area on the upper side and the left side, and two partial images B and C having a blank area on the upper side and the right side. There are circumstances. Further, as described above, there is a circumstance that the images near the sides to be joined are similar to each other between adjacent partial images. In this device, the partial images stored in the image memories (1), (2), (3), and (4) in the reading order are divided into four partial images A, B, C, and D by utilizing this fact. In addition to specifying which, the storage direction of the partial images in each image memory is specified, and based on this, the four partial images are joined.
【0023】2-2.動作のステップ 4分割モードが設定されると、まず、読取回数を示す変
数nに初期値「1」が設定される(S01) 。また、変数
i,j,k,mに、各々初期値「0」が設定される(S0
2) 。変数i,j,k,mは、後述の画像タイプ分類処
理(S06/図10)に於いて用いられる。2-2. Step of Operation When the 4-division mode is set, first, an initial value "1" is set to a variable n indicating the number of readings (S01). Further, initial values “0” are set to the variables i, j, k, and m (S0
2). The variables i, j, k, and m are used in the image type classification process (S06 / FIG. 10) described later.
【0024】次に、オペレータによりスタートキー11が
オンされるまで待機する(S03) 。オペレータにより原稿
の何れかの部分画像が原稿台27にセットされて、スター
トキーがオンされると(S03;YES) 、原稿台27上にセット
されている原稿の部分画像が、0.5倍の倍率で読み取
られて、画像メモリ(n) に格納される(S04) 。初回は
「n=1」であるため、画像メモリ(1) に格納される。Next, the operator waits until the start key 11 is turned on (S03). When the operator sets one of the partial images of the original on the original table 27 and turns on the start key (S03; YES), the partial image of the original set on the original table 27 is magnified 0.5 times. Is read at a magnification of and stored in the image memory (n) (S04). Since "n = 1" at the first time, it is stored in the image memory (1).
【0025】次に、画像メモリ(n) に格納された部分画
像の周囲4辺の幅L1の帯状部分の画像密度が各々検出さ
れ、上辺の帯状部分の画像密度は変数Dt(n) に、下辺の
帯状部分の画像密度は変数Db(n) に、左辺の帯状部分の
画像密度は変数Dl(n) に、右辺の帯状部分の画像密度は
変数Dr(n) に、各々設定される(S05) 。初回は「n=
1」であるため、画像メモリ(1) に格納されている部分
画像の周囲4辺の各画像密度が、各々変数Dt(1) 、Db
(1) 、Dl(1) 、Dr(1) に設定される。ここで、画像密度
は、対象となる辺の帯状部分の画素を1画素毎に画像メ
モリ(n) から読み出し、所定濃度TDを閾値として該濃度
TDより高濃度の画素数をカウントし、該濃度TDより高濃
度の画素数を、当該辺の帯状部分の全画素数で除算した
値として算出される。即ち、当該辺の帯状部分の下地部
分を除いた画像の面積の割合を示す値として算出され
る。この画像密度が所定の閾値D0より小さい場合に、そ
の帯状部分は余白部であるとされる(図10参照)。な
お、添字t はtop 、添字b はbottom、添字L はleft、添
字r はright を、各々意味する。Next, the image densities of the strip-shaped portions having a width L1 of the four sides of the partial image stored in the image memory (n) are detected, and the image densities of the strip-shaped portions of the upper side are set to a variable Dt (n). The image density of the strip on the lower side is set to the variable Db (n), the image density of the strip on the left side is set to the variable Dl (n), and the image density of the strip on the right side is set to the variable Dr (n) ( S05). The first time is "n =
1 ”, the image densities of the four sides of the partial image stored in the image memory (1) are the variables Dt (1) and Db, respectively.
Set to (1), Dl (1), Dr (1). Here, the image density is obtained by reading out the pixels in the strip portion of the target side pixel by pixel from the image memory (n) and using the predetermined density TD as a threshold.
The number of pixels having a higher density than TD is counted, and the number of pixels having a higher density than the density TD is calculated as a value obtained by dividing the total number of pixels in the strip portion on the side. That is, it is calculated as a value indicating the ratio of the area of the image excluding the base portion of the strip portion of the side. When the image density is smaller than the predetermined threshold value D0, the strip-shaped portion is regarded as a blank portion (see FIG. 10). The subscript t means top, the subscript b means bottom, the subscript L means left, and the subscript r means right.
【0026】次に、画像タイプ分類処理が実行される(S
06) 。画像タイプ分類処理は、画像メモリ(n) に格納さ
れている部分画像の画像タイプを検出する処理であり、
その詳細は、図10に示される。画像タイプとは、上辺
と左辺に余白を有する部分画像であるか、上辺と右辺に
余白を有する部分画像であるか、下辺と左辺に余白を有
する部分画像であるか、下辺と右辺に余白を有する部分
画像であるかというように、余白の位置の組合せにより
分類されるもので(図6,図8参照)、この分類は、上
述の各辺の画像密度Dt(n) 、Db(n) 、Dl(n) 、Dr(n) に
基づいて行われる。なお、初回は「n=1」であるた
め、画像メモリ(1) に格納されている部分画像に関して
画像タイプが検出される。Next, an image type classification process is executed (S
06). The image type classification process is a process of detecting the image type of the partial image stored in the image memory (n),
The details are shown in FIG. The image type is a partial image with margins on the top and left sides, a partial image with margins on the top and right sides, a partial image with margins on the bottom and left sides, or a margin on the bottom and right sides. It is classified according to the combination of the positions of the margins as if it is a partial image (see FIGS. 6 and 8). This classification is based on the image densities Dt (n) and Db (n) of each side described above. , Dl (n), Dr (n). Since "n = 1" at the first time, the image type is detected for the partial image stored in the image memory (1).
【0027】図10に示すように、画像タイプ分類処理
では、上辺と下辺の画像密度の大小比較、左辺と右辺の
画像密度の大小比較、及び、前記所定の閾値D0との大小
比較に基づいて当該辺の帯状部分が余白であるか否か判
定され、この余白の組合せに基応じて画像タイプが決定
される。As shown in FIG. 10, in the image type classification processing, based on the size comparison of the image densities of the upper side and the lower side, the size comparison of the image densities of the left side and the right side, and the size comparison with the predetermined threshold value D0. It is determined whether or not the strip-shaped portion on the side is a margin, and the image type is determined based on the combination of the margins.
【0028】例えば、上辺の画像密度が下辺の画像密度
より小さく(S0601;YES) 、且つ、上辺の画像密度が閾値
D0より小さい場合には(S0602;YES) 、上辺は余白であ
る。また、左辺の画像密度が右辺の画像密度より小さく
(S0604;YES) 、且つ、左辺の画像密度が閾値D0より小さ
い場合には(S0605;YES) 、左辺は余白である。したがっ
て、ステップS0601 の判定が「YES 」の場合、換言すれ
ば、上辺と左辺が余白であると判定された場合には、画
像メモリ(n) に格納されている部分画像の画像タイプが
上辺と左辺が余白のタイプであることを示すべく変数Tt
l(i)に「n 」が設定される(S0601) とともに、当該画像
タイプの個数を示す変数「i 」がインクリメントされる
(S0610) 。なお、初回は「n=1」であるため、画像メ
モリ(1) に格納されている部分画像に関して上記の如く
設定される。For example, the image density of the upper side is smaller than the image density of the lower side (S0601; YES), and the image density of the upper side is the threshold value.
If it is smaller than D0 (S0602; YES), the upper side is a margin. Also, the image density on the left side is smaller than the image density on the right side.
(S0604; YES) and when the image density on the left side is smaller than the threshold value D0 (S0605; YES), the left side is a blank space. Therefore, when the determination in step S0601 is “YES”, in other words, when it is determined that the upper side and the left side are margins, the image type of the partial image stored in the image memory (n) is the upper side. Variable Tt to indicate that the left side is a margin type
"n" is set to l (i) (S0601) and the variable "i" that indicates the number of the image type is incremented.
(S0610). Since "n = 1" is set for the first time, the partial image stored in the image memory (1) is set as described above.
【0029】同様に、上辺の画像密度が下辺の画像密度
より小さく(S0601;YES) 、且つ、上辺の画像密度が閾値
D0より小さい場合には(S0602;YES) 、上辺は余白であ
る。また、右辺の画像密度が左辺の画像密度以上で(S06
04;NO)、且つ、右辺の画像密度が閾値D0より小さい場合
には(S0606;YES) 、右辺は余白である。したがって、ス
テップS0606 の判定が「YES 」の場合、換言すれば、上
辺と右辺が余白であると判定された場合には、画像メモ
リ(n) に格納されている部分画像の画像タイプが上辺と
右辺が余白のタイプであることを示すべく変数Ttr(j)に
「n 」が設定される(S0613) とともに、当該画像タイプ
の個数を示す変数「j 」がインクリメントされる(S061
2) 。なお、初回は「n=1」であるため、画像メモリ
(1) に格納されている部分画像に関して上記の如く設定
される。Similarly, the image density of the upper side is smaller than the image density of the lower side (S0601; YES), and the image density of the upper side is the threshold value.
If it is smaller than D0 (S0602; YES), the upper side is a margin. If the image density on the right side is greater than or equal to the image density on the left side (S06
04; NO), and when the image density on the right side is smaller than the threshold value D0 (S0606; YES), the right side is a margin. Therefore, when the determination in step S0606 is “YES”, in other words, when it is determined that the upper side and the right side are margins, the image type of the partial image stored in the image memory (n) is the upper side. The variable Ttr (j) is set to "n" to indicate that the right side is a blank type (S0613), and the variable "j" indicating the number of the image type is incremented (S061).
2). Since "n = 1" is set for the first time, the image memory
The partial image stored in (1) is set as described above.
【0030】同様に、下辺の画像密度が上辺の画像密度
以上であり(S0601;NO)、且つ、下辺の画像密度が閾値D0
より小さい場合には(S0603;YES) 、下辺は余白である。
また、左辺の画像密度が右辺の画像密度より小さく(S06
07;YES) 、且つ、左辺の画像密度が閾値D0より小さい場
合には(S0608;YES) 、左辺は余白である。したがって、
ステップS0608 の判定が「YES 」の場合、換言すれば、
下辺と左辺が余白であると判定された場合には、画像メ
モリ(n) に格納されている部分画像の画像タイプが下辺
と左辺が余白のタイプであることを示すべく変数Tbl(k)
に「n 」が設定される(S0615) とともに、当該画像タイ
プの個数を示す変数「k 」がインクリメントされる(S06
14) 。なお、初回は「n=1」であるため、画像メモリ
(1) に格納されている部分画像に関して上記の如く設定
される。Similarly, the image density of the lower side is equal to or higher than the image density of the upper side (S0601; NO), and the image density of the lower side is the threshold value D0.
If it is smaller (S0603; YES), the bottom side is the margin.
The image density on the left side is smaller than the image density on the right side (S06
07; YES) and when the image density on the left side is smaller than the threshold value D0 (S0608; YES), the left side is a blank space. Therefore,
If the determination in step S0608 is "YES", in other words,
If it is determined that the lower side and the left side are margins, the variable Tbl (k) is used to indicate that the image type of the partial image stored in the image memory (n) is the lower side and the left side.
Is set to "n" (S0615), and the variable "k" indicating the number of the image type is incremented (S0615).
14) . Since "n = 1" is set for the first time, the image memory
The partial image stored in (1) is set as described above.
【0031】同様に、下辺の画像密度が上辺の画像密度
以上であり(S0601;NO)、且つ、下辺の画像密度が閾値D0
より小さい場合には(S0603;YES) 、下辺は余白である。
また、右辺の画像密度が左辺の画像密度以上で(S0607;N
O)、且つ、右辺の画像密度が閾値D0より小さい場合には
(S0609;YES) 、右辺は余白である。したがって、ステッ
プS0609 の判定が「YES 」の場合、換言すれば、下辺と
右辺が余白であると判定された場合には、画像メモリ
(n) に格納されている部分画像の画像タイプが下辺と右
辺が余白のタイプであることを示すべく変数Tbr(m)に
「n 」が設定される(S0617) とともに、当該画像タイプ
の個数を示す変数「m 」がインクリメントされる(S061
6) 。なお、初回は「n=1」であるため、画像メモリ
(1) に格納されている部分画像に関して上記の如く設定
される。Similarly, the image density of the lower side is equal to or higher than the image density of the upper side (S0601; NO), and the image density of the lower side is the threshold value D0.
If it is smaller (S0603; YES), the bottom side is the margin.
If the image density on the right side is greater than or equal to the image density on the left side (S0607; N
O), and if the image density on the right side is smaller than the threshold D0,
(S0609; YES), the right side is the margin. Therefore, if the determination in step S0609 is "YES", in other words, if it is determined that the lower and right sides are margins, the image memory
The variable Tbr (m) is set to "n" to indicate that the image type of the partial image stored in (n) is a type with blanks on the lower and right sides (S0617), and the number of image types The variable "m" that indicates is incremented (S061
6). Since "n = 1" is set for the first time, the image memory
The partial image stored in (1) is set as described above.
【0032】なお、上記以外の場合は、ステップS05 で
の画像密度の検出にエラーが発生した場合であるか、又
は、原稿が本発明の対象外の原稿(例:周囲に余白部を
有しない原稿)の場合であるため、エラー表示が行われ
る(S0618) 。例えば、「自動接合できませんでした。始
めからやり直して下さい。」のように表示される。In addition, in the case other than the above, it is a case where an error occurs in the detection of the image density in step S05, or the document is a document outside the scope of the present invention (for example, there is no margin portion around the document). Since it is the case of "original", an error is displayed (S0618). For example, a message such as "Could not be joined automatically. Please try again from the beginning."
【0033】初回に読み取られて画像メモリ(1) に格納
された第1の部分画像に関して上述の処理が終了する
と、次に、変数nがインクリメントされた後(S08) 、初
回と同様に、スタートキー11のオンに対応して(S03;YE
S) 、部分画像の読み取りと画像メモリ(2) への格納(S0
4) 、周囲4辺の帯状部分の画像密度の検出(S05) 、及
び画像タイプの分類(S06) の各処理が、第2の部分画像
に関して行われ、以下、第4の部分画像に関する処理が
終了するまで同様に繰り返される。When the above-described processing is completed for the first partial image read for the first time and stored in the image memory (1), next, after the variable n is incremented (S08), the start is performed in the same manner as the first time. Corresponding to turning on of key 11 (S03; YE
S), read partial image and store it in image memory (2) (S0
4), each processing of the image density detection (S05) and the image type classification (S06) of the strip-shaped portions on the four sides is performed on the second partial image, and then the processing on the fourth partial image is performed. The same is repeated until the end.
【0034】第4の部分画像に関する上述の処理が終了
すると(S07;YES) 、相対位置決定処理(S09) が実行され
る。相対位置決定処理は、図11と図12に詳細が示さ
れるように、画像メモリ(1) 〜(4) の各画像メモリに格
納されている部分画像がA〜Dの何れの部分画像である
かを決定するとともに、上下方向がオペレータから見て
正しい向きであるか又は逆向きであるかを決定する処理
である。When the above-mentioned processing for the fourth partial image is completed (S07; YES), the relative position determination processing (S09) is executed. In the relative position determination processing, as shown in detail in FIGS. 11 and 12, the partial images stored in the image memories of the image memories (1) to (4) are any of the partial images A to D. Is a process for determining whether the vertical direction is the correct direction or the opposite direction when viewed from the operator.
【0035】まず、各画像タイプの個数を示す前記各変
数i,j,k,m が、全て「1」であるか否か判定される(S09
01) 。つまり、図5のように、オペレータから見て正し
い向きに上下方向をセットして読み取った場合であれ
ば、図6に示す4種類の画像タイプの全てが1つづつ存
在する筈である。一方、図7のように、部分画像A,B
と部分画像C,Dとで、上下を逆向きにセットして読み
取った場合であれば、画像タイプは、図8に示す2種類
(上辺と左辺に余白が在るタイプ,上辺と右辺に余白が
在るタイプ)が2つづつ存在する筈である。このことを
利用して、図5の方法で読み取ったものであるか、又
は、図7の方法で読み取ったものであるかを判別してい
る(S0901) 。First, it is determined whether or not all the variables i, j, k, m indicating the number of each image type are "1" (S09).
01). That is, as shown in FIG. 5, if the vertical direction is set and read in the correct direction when viewed from the operator, all four image types shown in FIG. 6 should be present one by one. On the other hand, as shown in FIG. 7, partial images A and B
8 and the partial images C and D are set upside down and read, the image types are the two types shown in FIG. 8 (a type having a margin on the upper side and the left side, a margin on the upper side and the right side). There should be two types). By utilizing this fact, it is determined whether it is the one read by the method of FIG. 5 or the one read by the method of FIG. 7 (S0901).
【0036】前記各変数i,j,k,m が全て「1」の場合、
即ち、図5の方法で読み取られたものである場合は、各
部分画像は図6に示すようになる。この場合、1つづつ
存在する各画像タイプTtl,Ttr,Tbl,Tbr と、部分画像の
各配置位置A,B,C,Dとは、1:1に対応してい
る。このため、各配置位置A,B,C,Dを示す各変数
Ptl,Ptr,Pbl,Pbr に、各々Ttl(1),Ttr(1),Tbl(1),Tbr
(1) が設定される(S0904,S0905,S0906,S0907) 。即ち、
各配置位置A,B,C,Dを示す各変数Ptl,Ptr,Pbl,Pb
r に、当該位置に配置されるべき部分画像の格納されて
いる画像メモリを示すデータが設定される。When all the variables i, j, k, m are "1",
That is, when the image is read by the method of FIG. 5, each partial image is as shown in FIG. In this case, the image types Ttl, Ttr, Tbl, Tbr, which exist one by one, and the respective layout positions A, B, C, D of the partial images, correspond to each other 1: 1. Therefore, each variable indicating each placement position A, B, C, D
Ptl, Ptr, Pbl, Pbr respectively to Ttl (1), Ttr (1), Tbl (1), Tbr
(1) is set (S0904, S0905, S0906, S0907). That is,
Variables Ptl, Ptr, Pbl, Pb that indicate the respective layout positions A, B, C, D
Data indicating the image memory in which the partial image to be arranged at the position is stored is set in r.
【0037】また、図5の方法で読み取られたものであ
る場合は、各部分画像は全て同じ方向に向けて読み取ら
れているため、接合に際して、何れの部分画像も回転す
る必要はない。このため、各配置位置A,B,C,Dの
部分画像を回転すべきか否かを示す各変数Rtl,Rtr,Rbl,
Rbr に各々「0」が設定される(S0908) 。なお、この変
数が「0」の場合は回転の必要が無いことを示し、
「1」の場合は180°回転する必要があることを示
す。Further, in the case of being read by the method of FIG. 5, since all the partial images are read in the same direction, it is not necessary to rotate any of the partial images at the time of joining. Therefore, variables Rtl, Rtr, Rbl, indicating whether or not the partial images at the respective layout positions A, B, C, D should be rotated.
“0” is set in each Rbr (S0908). If this variable is "0", it means that there is no need to rotate,
In the case of "1", it means that it is necessary to rotate 180 °.
【0038】前記ステップS0901 で「NO」と判定された
場合は、ステップS0902 に進み、変数I,J が「2」で、
且つ、変数k,m が「0」であるか否か、換言すれば、図
7の方法で読み取られたものか否か判別される。その結
果、変数I,J が「2」で、且つ、変数k,m が「0」であ
る場合は(S0902;YES) 、各部分画像は図8に示すように
なる。この場合、上辺と左辺に余白の在る部分画像の配
置位置はA又はD、上辺と右辺に余白の在る部分画像の
配置位置はB又はCである。即ち、このままでは、4個
の部分画像の配置位置関係を確定できない。If it is determined "NO" in step S0901, the process proceeds to step S0902, and the variables I and J are "2",
Moreover, it is determined whether or not the variables k and m are "0", in other words, whether or not they are read by the method of FIG. As a result, when the variables I and J are "2" and the variables k and m are "0"(S0902; YES), the partial images are as shown in FIG. In this case, the arrangement position of the partial image having a margin on the upper side and the left side is A or D, and the arrangement position of the partial image having a margin on the upper side and the right side is B or C. That is, as it is, the arrangement positional relationship of the four partial images cannot be determined.
【0039】このため、まず、上辺と左辺に余白の在る
2個の部分画像のうち、先に読み取られた部分画像Ttl
(1)を左上の配置位置Aを示す変数Ptl に設定し(S0909)
、後に読み取られた部分画像Ttl(2)を右下の配置位置
Dを示す変数Pbr に設定する(S0910) 。このように設定
した後、上辺と右辺に余白の在る2個の部分画像の配置
位置を、各部分画像の隣接部の画像密度に基づいて決定
する。Therefore, first, of the two partial images having margins on the upper and left sides, the partial image Ttl read first is read.
Set (1) to the variable Ptl indicating the placement position A on the upper left (S0909)
Then, the partial image Ttl (2) read later is set to the variable Pbr indicating the arrangement position D at the lower right (S0910). After setting in this way, the arrangement positions of the two partial images having margins on the upper side and the right side are determined based on the image density of the adjacent portions of each partial image.
【0040】例えば、上辺と右辺に余白の在る2個の部
分画像のうち、先に読み取られた部分画像Ttr(1)が右上
の配置位置Bに配置されるべき部分画像であれば、該部
分画像Ttr(1)の左辺の幅L1の帯状部分の画像と、左上の
配置位置Aに配置されるべき部分画像Ptl=Ttl(1)の右辺
の幅L1の帯状部分の画像とは相互に類似しており、これ
らの画像密度であるDl(Ttr(1))とDr(Ptl) との差は、所
定の閾値D1より小さくなる筈である。且つ、右上の配置
位置Bに配置されるべき上述の部分画像Ttr(1)の下辺の
幅L1の帯状部分の画像と、右下の配置位置Dに配置され
るべき部分画像Pbr=Ttl(2)の上辺(但し、右上と右下の
部分画像の向きは180°反対であるため、画像データ
としては下辺になる)の幅L1の帯状部分の画像とは相互
に類似しており、これらの画像密度であるDb(Ttr(1))と
Db(Pbr) との差も、所定の閾値D1より小さくなる筈であ
る。ステップS0911 では、この条件が満たされるか否か
判定され、その結果が「YES 」であれば、ステップS091
3,S0914 に進む。即ち、配置位置Bを示す変数Ptr にTt
r(1)が設定され(S0913) 、配置位置Cを示す変数Pbl に
Ttr(2)が設定される(S0914) 。即ち、配置位置B,Cを
示す各変数Ptr,Pblに、当該位置に配置されるべき部分
画像の格納されている画像メモリを示すデータが設定さ
れる。For example, if the previously read partial image Ttr (1) is a partial image to be arranged at the arrangement position B on the upper right of the two partial images having the margins on the upper and right sides, The image of the strip-shaped portion having the width L1 on the left side of the partial image Ttr (1) and the image of the strip-shaped portion having the width L1 on the right side of the partial image Ptl = Ttl (1) to be arranged at the upper left arrangement position A are mutually It is similar, and the difference between these image densities Dl (Ttr (1)) and Dr (Ptl) should be smaller than a predetermined threshold D1. Further, the image of the strip-shaped portion having the width L1 of the lower side of the partial image Ttr (1) to be arranged at the arrangement position B at the upper right, and the partial image Pbr = Ttl (2 which should be arranged at the arrangement position D at the lower right. ) Is similar to the image of the strip-shaped portion having the width L1 of the upper side (however, the orientations of the upper-right and lower-right partial images are 180 ° opposite to each other, the image data is the lower side). Image density Db (Ttr (1))
The difference from Db (Pbr) should also be smaller than the predetermined threshold D1. In step S0911, it is determined whether or not this condition is satisfied, and if the result is "YES", step S091
Go to 3, S0914. That is, the variable Ptr indicating the arrangement position B is set to Tt.
r (1) is set (S0913), and the variable Pbl indicating the placement position C is set.
Ttr (2) is set (S0914). That is, each variable Ptr, Pbl indicating the arrangement positions B, C is set with data indicating the image memory in which the partial image to be arranged at the position is stored.
【0041】一方、上記ステップS0911 での判定が「N
O」である場合は、上述の仮定が誤っていた場合であ
る。このため、ステップS0912 に進み、今度は、上辺と
右辺に余白の在る2個の部分画像のうち、先に読み取ら
れた部分画像Ttr(1)が左下の配置位置Cに配置されるべ
き部分画像であり、後に読み取られた部分画像Ttr(2)が
右上の配置位置Bに配置されるべき部分画像であると仮
定して、隣接する部分画像との境界部付近の画像密度を
判定する。その結果、後に読み取られた部分画像Ttr(2)
の左辺の幅L1の帯状部分の画像と、左上の配置位置Aに
配置されるべき部分画像Ptl=Ttl(1)の右辺の幅L1の帯状
部分の画像とが相互に類似しており、これらの画像密度
であるDl(Ttr(2))とDr(Ptl) との差が、所定の閾値D1よ
り小さく、且つ、後に読み取られた部分画像Ttr(2)の下
辺の幅L1の帯状部分の画像と、右下の配置位置Dに配置
されるべき部分画像Pbr=Ttl(2)の上辺(但し、右上と右
下の部分画像の向きは180°反対であるため、画像デ
ータとしては下辺になる)の幅L1の帯状部分の画像とが
相互に類似しており、これらの画像密度であるDb(Ttr
(2))とDb(Pbr) との差も、所定の閾値D1より小さい場合
は(S0912;YES) 、配置位置Bを示す変数Ptr にTtr(2)が
設定され(S0915) 、配置位置Cを示す変数Pbl にTtr(1)
が設定される(S0914) 。即ち、配置位置B,Cを示す各
変数Ptr,Pbl に、当該位置に配置されるべき部分画像の
格納されている画像メモリを示すデータが設定される。On the other hand, the determination in step S0911 is "N
If it is "O", then the above assumption was incorrect. For this reason, the process proceeds to step S0912, and this time, of the two partial images having a margin on the upper side and the right side, the previously read partial image Ttr (1) is to be arranged at the lower left arrangement position C. Assuming that the partial image Ttr (2) that is an image and is read later is the partial image to be arranged at the upper right arrangement position B, the image density near the boundary with the adjacent partial image is determined. As a result, the partial image read later Ttr (2)
The image of the strip-shaped portion with the width L1 on the left side and the image of the strip-shaped portion with the width L1 on the right side of the partial image Ptl = Ttl (1) to be arranged at the upper left arrangement position A are similar to each other. The difference between the image density Dl (Ttr (2)) and Dr (Ptl) is smaller than a predetermined threshold D1, and the width L1 of the strip-shaped portion of the lower side of the partial image Ttr (2) read later is The image and the upper side of the partial image Pbr = Ttl (2) to be arranged at the lower right arrangement position D (however, since the upper right and lower right partial images have opposite 180 ° orientations, the image data is on the lower side). , And the image of the strip with width L1 is similar to each other, and these image densities Db (Ttr
If the difference between (2)) and Db (Pbr) is also smaller than the predetermined threshold D1 (S0912; YES), Ttr (2) is set to the variable Ptr indicating the arrangement position B (S0915), and the arrangement position C is set. Ttr (1) to the variable Pbl indicating
Is set (S0914). That is, each variable Ptr, Pbl indicating the arrangement positions B, C is set with data indicating the image memory in which the partial image to be arranged at that position is stored.
【0042】こうして、各配置位置に配置されるべき部
分画像の格納されている画像メモリが設定されると、次
に、配置位置C,Dに配置されるべき部分画像を180
°回転して配置するべく、配置位置C,Dの部分画像を
回転すべきか否かを示す各変数Rbl,Rbr に各々「1」が
設定される(S0917) 。なお、配置位置A,Bの部分画像
に関しては回転の必要がないため、これらを回転すべき
か否かを示す変数Rtl,Rtr には各々「0」が設定される
(S0917) 。When the image memory in which the partial images to be arranged at the respective arrangement positions are stored is set in this way, then the partial images to be arranged at the arrangement positions C and D are set 180 times.
“1” is set to the variables Rbl and Rbr indicating whether or not the partial images at the arrangement positions C and D should be rotated so as to be rotated and arranged (S0917). Since the partial images at the arrangement positions A and B do not need to be rotated, "0" is set to the variables Rtl and Rtr indicating whether or not to rotate them.
(S0917).
【0043】なお、上記以外の場合は、ステップS05 で
の画像密度の検出にエラーが発生した場合であるか、又
は、原稿が本発明の対象外の原稿(例:周囲に余白部を
有しない原稿)の場合であるため、エラー表示が行われ
る(S0903) 。例えば、「自動接合できませんでした。始
めからやり直して下さい。」のように表示される。In the case other than the above, it means that an error has occurred in the detection of the image density in step S05, or the document is not the subject of the present invention (eg, there is no margin portion around the document). Since it is the case of (original), an error message is displayed (S0903). For example, a message such as "Could not be joined automatically. Please try again from the beginning."
【0044】こうして、相対位置が決定されると、画像
メモリ(1) 〜(4) から読み出された各部分画像が、画像
メモリ(5) 内の決定された各配置位置(アドレス)に、
決定されたように回転され又は回転されないで、各々格
納される(S10) 。なお、この画像データの転送処理は、
制御部3 から上述の如くデータを設定されたDMAC51
によって制御される。また、画像メモリ(5) に格納され
た画像データは、外部機器(プリンタ,ファクシミリ
等)へ出力されて、当該外部機器での画像形成処理等に
供される(S11) 。When the relative position is determined in this way, the partial images read from the image memories (1) to (4) are transferred to the determined arrangement positions (addresses) in the image memory (5).
Each is stored (S10), with or without being rotated as determined. In addition, this image data transfer process,
The DMAC 51 to which data has been set as described above by the control unit 3
Is controlled by Further, the image data stored in the image memory (5) is output to an external device (printer, facsimile, etc.) and used for image forming processing and the like in the external device (S11).
【0045】上述の例では、A1サイズの画像を4分割
して読み取って、A3サイズに合成する場合を説明して
いるが、他のサイズ間でも同様である。また、2分割、
6分割、8分割等に関しても、余白部を検出して、その
結果に基づいて部分画像の配置位置を確定するという手
法を同様に適用できる。さらに、6分割、8分割等に関
しては、余白部を利用して配置位置を確定する手法に加
えて、境界部の画像密度の類似を利用して回転方向を確
定するという手法も同様に適用できる。また、上述の例
では、部分画像の境界部分を重複無く読み取って接合し
ているが、重複を有するように読み取って、パターンマ
ッチング等の手法により接合線を求めて、この接合線に
従って重複部分の一方を除去して接合する場合について
も同様に適用できる。In the above example, the case where the A1 size image is divided into four and read and then combined into the A3 size is described, but the same applies to other sizes. Also, split into two,
For 6-division, 8-division, etc., the method of detecting the blank space and determining the arrangement position of the partial image based on the result can be similarly applied. Further, regarding 6-division, 8-division, etc., in addition to the technique of deciding the arrangement position by using the margin portion, the technique of deciding the rotation direction by utilizing the similarity of the image density of the boundary portion can be similarly applied. . Further, in the above example, the boundary portion of the partial image is read and joined without duplication, but the reading is performed so as to have an overlap, the joining line is obtained by a method such as pattern matching, and the joining portion is overlapped according to the joining line. The same can be applied to the case of removing one of them and joining them.
【0046】[0046]
【発明の効果】本発明では、大判原稿の各部分画像を合
成して出力するモードに於いて、各部分画像の縁部の画
像濃度の検出結果に基づいて、各部分画像の合成画像内
に於ける配置位置と接合対象となる対の接合辺が決定さ
れて接合されるため、各部分画像を読み取る順番や、各
部分画像を読み取る際の原稿台上でのセット方向を任意
に変えても、各部分画像を正しい位置に且つ正しい向き
に合成して出力できるため、オペレータの操作が簡単
で、画像形成ミスも防止できる。According to the present invention, in the mode in which the partial images of the large-sized original are combined and output, the partial images are combined in the combined image based on the detection result of the image density at the edge of each partial image. Since the arrangement position and the joining side of the pair to be joined are determined and joined, even if the order of reading each partial image or the setting direction on the original plate when reading each partial image is arbitrarily changed Since each partial image can be combined and output in the correct position and in the correct direction, the operator's operation is simple and an image forming error can be prevented.
【図1】本発明を具体化した装置の要部の回路構成を示
すブロック図。FIG. 1 is a block diagram showing a circuit configuration of a main part of an apparatus embodying the present invention.
【図2】図1の装置の機構を示す模式図。FIG. 2 is a schematic diagram showing a mechanism of the apparatus of FIG.
【図3】図1の装置の操作パネルと原稿台の説明図。3 is an explanatory view of an operation panel and a document table of the apparatus shown in FIG.
【図4】原稿画像を示す説明図であり、(a)は周囲の
空白部を示し、(b)は部分画像の隣接部が類似してい
ることを示す。4A and 4B are explanatory views showing a document image, in which FIG. 4A shows a blank portion around the original image, and FIG. 4B shows that adjacent portions of partial images are similar to each other.
【図5】大判原稿の4つの部分領域を同一の向きで読み
取る例を示す説明図。FIG. 5 is an explanatory diagram showing an example of reading four partial areas of a large-sized document in the same direction.
【図6】図5の方法で読み取られた各部分画像を示す説
明図。FIG. 6 is an explanatory view showing each partial image read by the method of FIG.
【図7】大判原稿の4つの部分領域のうちの下半分の部
分領域を上半分と180°反対の向きで読み取る例を示
す説明図。FIG. 7 is an explanatory diagram showing an example of reading a lower half partial area of four partial areas of a large-sized document in a direction opposite to the upper half by 180 °.
【図8】図7の方法で読み取られた各部分画像を示す説
明図。8 is an explanatory diagram showing each partial image read by the method of FIG. 7. FIG.
【図9】図1の装置の4分割大判合成モードでの処理を
示すフロ−チャ−ト。FIG. 9 is a flowchart showing processing in the 4-division large-format synthesis mode of the apparatus of FIG.
【図10】図9の画像タイプ分類処理の詳細を示すフロ
−チャ−ト。FIG. 10 is a flowchart showing details of the image type classification processing of FIG.
【図11】図9の相対位置決定処理の詳細を示すフロ−
チャ−トの一部。FIG. 11 is a flow chart showing details of the relative position determination processing of FIG.
Part of the chart.
【図12】図9の相対位置決定処理の詳細を示すフロ−
チャ−トの残部。FIG. 12 is a flowchart showing the details of the relative position determination processing of FIG.
The rest of the chart.
27 原稿台 5 画像合成部 11 スタートキー 12 大判合成モードキー 27 Manuscript platen 5 Image composition section 11 Start key 12 Large format composition mode key
Claims (1)
原稿を、複数の部分画像として順に読み取り、該複数の
部分画像を合成して出力する機能を有する画像処理装置
であって、 前記各部分画像を各々記憶する記憶手段と、 前記各部分画像の縁部の画像濃度を各々検出する検出手
段と、 前記検出手段による検出結果に基づいて前記部分画像を
合成する際の配置位置と接合するべき対の接合辺を各部
分画像に関して各々決定する決定手段と、 前記決定手段により決定された配置位置に各部分画像を
配置して前記決定手段により決定された対の接合辺に於
いて各部分画像を接合する接合手段と、 を有する画像処理装置。1. An image processing apparatus having a function of sequentially reading a manuscript having a size that cannot be read at once as a plurality of partial images, synthesizing the plurality of partial images, and outputting the combined partial images. A storage unit for storing each of the partial images, a detection unit for detecting the image density of the edge portion of each partial image, and a pair to be joined with the arrangement position when the partial images are combined based on the detection result by the detection unit. Deciding means for deciding the joining side of each of the partial images, and arranging each partial image at the arrangement position decided by the deciding means, and deciding each partial image on the joining side of the pair decided by the deciding means. An image processing apparatus comprising: a joining unit for joining.
Priority Applications (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP7302016A JPH09121277A (en) | 1995-10-25 | 1995-10-25 | Image processor |
| US08/675,485 US6148118A (en) | 1995-07-05 | 1996-07-03 | Image processing apparatus capable of reproducing large-sized document |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP7302016A JPH09121277A (en) | 1995-10-25 | 1995-10-25 | Image processor |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JPH09121277A true JPH09121277A (en) | 1997-05-06 |
Family
ID=17903887
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP7302016A Pending JPH09121277A (en) | 1995-07-05 | 1995-10-25 | Image processor |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH09121277A (en) |
Cited By (7)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2007199886A (en) * | 2006-01-25 | 2007-08-09 | Fuji Xerox Co Ltd | Image reading apparatus, image processing apparatus, image forming apparatus, image processing method, image forming method and program |
| JP2013255110A (en) * | 2012-06-07 | 2013-12-19 | Fujitsu Ltd | Image processing device, method and program |
| JP2016012750A (en) * | 2014-06-27 | 2016-01-21 | 京セラドキュメントソリューションズ株式会社 | Image forming apparatus |
| US9628666B2 (en) | 2014-09-30 | 2017-04-18 | Brother Kogyo Kabushiki Kaisha | Image processing device generating combined imaged data by using first image data and second image data |
| US9811877B2 (en) | 2015-03-17 | 2017-11-07 | Brother Kogyo Kabushiki Kaisha | Image processing device selecting arrangement method for generating arranged image data |
| JP2017212613A (en) * | 2016-05-26 | 2017-11-30 | キヤノン株式会社 | Electronic apparatus, display unit, and display control method |
| JP2024015344A (en) * | 2020-01-23 | 2024-02-01 | 東芝テック株式会社 | Image reading device and program |
-
1995
- 1995-10-25 JP JP7302016A patent/JPH09121277A/en active Pending
Cited By (7)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2007199886A (en) * | 2006-01-25 | 2007-08-09 | Fuji Xerox Co Ltd | Image reading apparatus, image processing apparatus, image forming apparatus, image processing method, image forming method and program |
| JP2013255110A (en) * | 2012-06-07 | 2013-12-19 | Fujitsu Ltd | Image processing device, method and program |
| JP2016012750A (en) * | 2014-06-27 | 2016-01-21 | 京セラドキュメントソリューションズ株式会社 | Image forming apparatus |
| US9628666B2 (en) | 2014-09-30 | 2017-04-18 | Brother Kogyo Kabushiki Kaisha | Image processing device generating combined imaged data by using first image data and second image data |
| US9811877B2 (en) | 2015-03-17 | 2017-11-07 | Brother Kogyo Kabushiki Kaisha | Image processing device selecting arrangement method for generating arranged image data |
| JP2017212613A (en) * | 2016-05-26 | 2017-11-30 | キヤノン株式会社 | Electronic apparatus, display unit, and display control method |
| JP2024015344A (en) * | 2020-01-23 | 2024-02-01 | 東芝テック株式会社 | Image reading device and program |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US5440403A (en) | Image reading means for reading a document including a plurality of images and space | |
| EP0926882B1 (en) | An image forming method and an image forming apparatus therefor | |
| CA2048147C (en) | Method and apparatus for scanning a signature document | |
| US5913099A (en) | Copy apparatus which controls binding position through image rotation and sheet reversal | |
| GB2152323A (en) | An image processing apparatus | |
| JPH09121277A (en) | Image processor | |
| EP2107784B1 (en) | Image data generating device | |
| JP4620272B2 (en) | Image reading apparatus, method, control apparatus for implementing the method, program, and storage medium | |
| JPH08274970A (en) | Image forming device | |
| JP3512096B2 (en) | Stereoscopic image synthesis processing device | |
| JPS60114078A (en) | Image processing device | |
| JPH0983691A (en) | Image processing apparatus and method | |
| JP2982149B2 (en) | Image processing method | |
| JPS625764A (en) | Film picture reader | |
| JP3584208B2 (en) | Image forming device | |
| JP2513492Y2 (en) | Duplex copying machine | |
| JP2962724B2 (en) | Image processing device | |
| JPH11341252A (en) | Image forming apparatus, image forming method, and storage medium | |
| JP2006295484A (en) | Image forming apparatus, image forming method, and image forming program | |
| JPH104486A (en) | Portable image reading device | |
| JPH09120444A (en) | Image processor | |
| JPH09247425A (en) | Image forming device | |
| JPS63237071A (en) | Automatic paper selection method | |
| JPS5945755A (en) | mode setting device | |
| JPH04240839A (en) | Image processing device |