JP5644700B2 - Image reading apparatus and image reading program - Google Patents

Image reading apparatus and image reading program Download PDF

Info

Publication number
JP5644700B2
JP5644700B2 JP2011146467A JP2011146467A JP5644700B2 JP 5644700 B2 JP5644700 B2 JP 5644700B2 JP 2011146467 A JP2011146467 A JP 2011146467A JP 2011146467 A JP2011146467 A JP 2011146467A JP 5644700 B2 JP5644700 B2 JP 5644700B2
Authority
JP
Japan
Prior art keywords
image
change
read
image reading
density
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.)
Active
Application number
JP2011146467A
Other languages
Japanese (ja)
Other versions
JP2013016912A (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.)
Brother Industries Ltd
Original Assignee
Brother Industries 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 Brother Industries Ltd filed Critical Brother Industries Ltd
Priority to JP2011146467A priority Critical patent/JP5644700B2/en
Publication of JP2013016912A publication Critical patent/JP2013016912A/en
Application granted granted Critical
Publication of JP5644700B2 publication Critical patent/JP5644700B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

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

Description

本発明は、画像読取装置において、読取画像に余白や画像を付加して設定サイズとする技術に関する。   The present invention relates to a technique for adding a margin or an image to a read image to obtain a set size in an image reading apparatus.

画像読取装置では、例えばA4サイズなど、設定サイズの読取画像データを生成したくても、画像読取部により実際に読み取った画像のサイズが、上記設定サイズよりも小さい場合がある。このような場合に対処する画像読取装置の一例として次のものがある(下記特許文献1参照)。   In the image reading apparatus, even if it is desired to generate read image data of a set size such as A4 size, the size of the image actually read by the image reading unit may be smaller than the set size. An example of an image reading apparatus that copes with such a case is as follows (see Patent Document 1 below).

この画像読取装置は、原稿の画像を読み取る画像読取部を備え、当該画像読取部により読み取られた画像に余白を付加して、例えばA4サイズなど、予め設定された定型サイズの画像のデータとして送出する画像読取装置がある。この画像読取装置では、余白を付加する位置は、ユーザのニーズに応じて任意に設定される。具体的には、この画像読取装置では、予めユーザに設定キーにて右詰めのレイアウトか左詰めのレイアウトかを設定させ、例えば右詰めのレイアウトに設定されていれば、読み取られた画像の左側に余白が付加される。   The image reading apparatus includes an image reading unit that reads an image of a document, adds a margin to the image read by the image reading unit, and transmits the image as data of a predetermined standard size such as an A4 size. There is an image reading apparatus. In this image reading apparatus, the position where the margin is added is arbitrarily set according to the user's needs. Specifically, in this image reading apparatus, the user is allowed to set in advance a right-justified layout or a left-justified layout with a setting key, and for example, if the right-justified layout is set, the left side of the read image A margin is added to

特開2002−354220号公報JP 2002-354220 A

しかし、従来の画像読取装置では、ユーザが余白を付加する位置を設定しなければ、設定サイズの画像データを生成することができないという問題があった。   However, the conventional image reading apparatus has a problem in that image data of a set size cannot be generated unless the user sets a position to add a margin.

本明細書では、ユーザによる設定を要することなく、設定サイズの画像データを生成することが可能な技術を開示する。   The present specification discloses a technique capable of generating image data of a set size without requiring setting by a user.

本明細書によって開示される画像読取装置は、原稿の画像を読み取る画像読取部と、前記画像読取部が読み取った読取画像のうち少なくとも一組の対辺それぞれについて当該対辺側の画像濃度の変化の度合いを検知する変化検知部と、前記一組の対辺のうち、前記変化検知部が検知した前記画像濃度の変化の度合いが小さい方の辺側に、画像を付加し、予め定められた設定サイズの画像データを生成する画像処理部と、を備える。   An image reading device disclosed in this specification includes an image reading unit that reads an image of a document, and a degree of change in image density on the opposite side of each of at least one set of opposite sides of the read image read by the image reading unit. An image is added to the side of the pair of opposite sides that has a smaller degree of change in the image density detected by the change detection unit, and has a predetermined set size. An image processing unit for generating image data.

上記画像読取装置では、前記画像処理部は、前記小さい方の辺における前記変化の度合いが基準以上である場合には、前記小さい方の辺側の画像に応じた画像を付加し、前記小さい方の辺における前記変化の度合いが基準未満である場合には、前記画像濃度が均一な画像を付加してもよい。   In the image reading apparatus, when the degree of change in the smaller side is equal to or greater than a reference, the image processing unit adds an image corresponding to the image on the smaller side, and the smaller side In the case where the degree of change in the side is less than the reference, an image having a uniform image density may be added.

上記画像読取装置では、前記画像処理部は、前記小さい方の辺における前記変化の度合いが基準以上である場合には、前記小さい方の辺側の画像と同じ画像を付加してもよい。   In the image reading apparatus, the image processing unit may add the same image as the image on the smaller side when the degree of change in the smaller side is equal to or greater than a reference.

上記画像読取装置では、前記変化検知部は、前記各対辺について当該対辺側の画像のエッジ数をカウントし、当該エッジ数を前記変化の度合いとして検知してもよい。   In the image reading apparatus, the change detection unit may count the number of edges of the image on the opposite side for each opposite side and detect the number of edges as the degree of change.

上記画像読取装置では、前記変化検知部は、2組の対辺それぞれについて前記変化の度合いを検知し、前記画像処理部は、前記読取画像のうち、各組で前記変化検知部が検知した画像濃度の変化の度合いが小さい方の辺側に、当該小さい方の辺の画像に応じた画像を付加し、予め定められた設定サイズの画像データを生成してもよい。   In the image reading apparatus, the change detection unit detects the degree of change for each of two pairs of opposite sides, and the image processing unit detects the image density detected by the change detection unit for each set of the read images. An image corresponding to the image of the smaller side may be added to the side of the smaller side of the change to generate image data of a predetermined set size.

また、画像読取装置は、原稿の画像を読み取る画像読取部と、前記画像読取部が読み取った読取画像のうち少なくとも一組の対辺それぞれについて画像濃度を検知する濃度検知部と、前記一組の対辺のうち、前記濃度検知部が検知した前記画像濃度が低い方の辺側に、白色画像を付加し、予め定められた設定サイズの画像データを生成する画像処理部と、を備える。   The image reading apparatus includes an image reading unit that reads an image of a document, a density detection unit that detects an image density for each of at least one set of opposite sides of the read image read by the image reading unit, and the set of opposite sides. An image processing unit that adds a white image to the lower side of the image density detected by the density detection unit and generates image data of a predetermined set size.

なお、この発明は、画像読取方法、当該画像読取方法または上記画像読取装置の機能を実現するためのコンピュータプログラム、そのコンピュータプログラムを記録した記録媒体等の種々の態様で実現することができる。   The present invention can be realized in various modes such as an image reading method, a computer program for realizing the function of the image reading method or the image reading apparatus, and a recording medium on which the computer program is recorded.

本発明によれば、ユーザによる設定を要することなく、設定サイズの画像データを生成することが可能である。   According to the present invention, it is possible to generate image data of a set size without requiring setting by a user.

実施形態1のスキャナの側面図Side view of the scanner of Embodiment 1 載置部及び読取部の上面図Top view of the placement unit and reading unit スキャナの電気的構成を概略的に示すブロック図Block diagram schematically showing the electrical configuration of the scanner スキャン処理を示すフローチャートFlow chart showing scan processing スキャン処理中に実行される画像付加処理を示すフローチャートFlowchart showing image addition processing executed during scan processing 初期読取画像及びエッジ画像の一例を示す模式図Schematic diagram showing an example of an initial read image and an edge image 初期読取画像及び第1画像の一例を示す模式図Schematic diagram showing an example of the initial read image and the first image 初期読取画像及び第2画像の一例を示す模式図Schematic diagram showing an example of an initial read image and a second image 第1画像及び第3画像の一例を示す模式図Schematic diagram showing an example of the first image and the third image 実施形態2におけるスキャン処理を示すフローチャートFlowchart showing scan processing in the second embodiment はがきサイズの原稿を示す模式図Schematic diagram showing a postcard-sized document 読取画像を示す模式図Schematic diagram showing the scanned image 画像付加前後の読取画像の説明図Explanatory drawing of read image before and after image addition

<実施形態1>
実施形態1について、図1から図9を参照しつつ説明する。
<Embodiment 1>
The first embodiment will be described with reference to FIGS. 1 to 9.

1.スキャナの外観構成
図1は、スキャナ10の概略構成を示す側面図である。スキャナ10は画像読取装置の一例である。なお、以下の説明では、図1の紙面左側をスキャナ10の前側とし、紙面上側をスキャナ10の上側とし、紙面手前側をスキャナ10の右側とする。
1. FIG. 1 is a side view illustrating a schematic configuration of a scanner 10. The scanner 10 is an example of an image reading device. In the following description, the left side of FIG. 1 is the front side of the scanner 10, the upper side of the paper is the upper side of the scanner 10, and the front side of the paper is the right side of the scanner 10.

スキャナ10は、装置本体11を備えており、その装置本体11の上部に、原稿Mが載置される載置部12と、載置部12に載せられた原稿Mの画像を読み取る読取デバイス13が設けられている。読取デバイス13は画像読取部の一例である。   The scanner 10 includes an apparatus main body 11, a placement unit 12 on which the document M is placed, and a reading device 13 that reads an image of the document M placed on the placement unit 12. Is provided. The reading device 13 is an example of an image reading unit.

(載置部の構成)
図2は、載置部12及び読取デバイス13の上面図である。載置部12は、枠体14、光透過部材15、原稿カバー16、白基準板17、及び、黒基準板18を有する。枠体14は、矩形状の開口部14Aが形成されており、この開口部14Aに光透過部材15が嵌められている。即ち、枠体14と光透過部材15とは隣接している。光透過部材15は、例えば透明なガラス板からなるプラテンガラスである。この光透過部材15の表面領域内に、画像読取範囲Hが設定されている。
(Configuration of mounting part)
FIG. 2 is a top view of the placement unit 12 and the reading device 13. The placement unit 12 includes a frame body 14, a light transmission member 15, a document cover 16, a white reference plate 17, and a black reference plate 18. The frame body 14 is formed with a rectangular opening 14A, and the light transmitting member 15 is fitted in the opening 14A. That is, the frame body 14 and the light transmission member 15 are adjacent to each other. The light transmission member 15 is platen glass made of a transparent glass plate, for example. An image reading range H is set in the surface area of the light transmitting member 15.

なお、後述するスキャン処理において、読取デバイス13が読み取った読取画像に、開口部14Aの周辺部分の画像が含まれることを抑制するために、画像読取範囲Hは、枠体14の開口部14Aよりも内側に設定されている(図2参照)。以下、画像読取範囲Hと開口部14Aとの間の領域を、マージン領域Zという。そして、原稿Mは、光透過部材15の角15Aと、原稿Mとの1つの角とが一致するように光透過部材15に載置される。   Note that, in a scan process described later, the image reading range H is more than the opening 14A of the frame body 14 in order to prevent the read image read by the reading device 13 from including an image of the peripheral portion of the opening 14A. Is also set inside (see FIG. 2). Hereinafter, a region between the image reading range H and the opening 14A is referred to as a margin region Z. Then, the document M is placed on the light transmission member 15 so that the corner 15A of the light transmission member 15 and one corner of the document M coincide with each other.

原稿カバー16は、その一端が、装置本体11に回動可能に設けられており、光透過部材15の表面を覆う閉じ位置と、当該表面から退避した開き位置(図1参照)とに変位させることができる。白基準板17及び黒基準板18は、光透過部材15の左側に配置されている。そして、読取デバイス13が白基準板17を読み取ることによって、シェーディング補正に必要な白補正データが、読取デバイス13が黒基準板18を読み取ることによって、シェーディング補正に必要な黒補正データが取得される。   One end of the document cover 16 is rotatably provided on the apparatus main body 11 and is displaced between a closed position that covers the surface of the light transmitting member 15 and an open position that retracts from the surface (see FIG. 1). be able to. The white reference plate 17 and the black reference plate 18 are disposed on the left side of the light transmission member 15. The reading device 13 reads the white reference plate 17 to obtain white correction data necessary for shading correction, and the reading device 13 reads the black reference plate 18 to obtain black correction data necessary for shading correction. .

(読取デバイスの構成)
読取デバイス13は、CIS(Contact Image Sensor)を有する構成であり、複数の読取素子が前後方向に沿って並んで配置されているとともに、その近傍に複数の光源が前後方向に沿って並んで配置されている。読取デバイス13は、左右方向に延びるガイド軸19(図1参照)上に移動可能に設けられている。読取デバイス13は、図示しないモータから伝達される動力により、白基準板17、黒基準板18及び光透過部材15の下側を、左右方向、換言すれば副走査方向に沿って往復移動することができる。なお、読取デバイス13は、CISに限らず、例えばCCD(Charge Coupled Drive Image Sensor)を有する構成でもよい。
(Configuration of reading device)
The reading device 13 has a configuration having a CIS (Contact Image Sensor), and a plurality of reading elements are arranged along the front-rear direction, and a plurality of light sources are arranged along the front-rear direction in the vicinity thereof. Has been. The reading device 13 is movably provided on a guide shaft 19 (see FIG. 1) extending in the left-right direction. The reading device 13 reciprocates in the left-right direction, in other words, in the sub-scanning direction, under the white reference plate 17, the black reference plate 18, and the light transmitting member 15 by power transmitted from a motor (not shown). Can do. The reading device 13 is not limited to the CIS, and may be configured to have, for example, a CCD (Charge Coupled Drive Image Sensor).

載置部12の前方には、操作ユニット20及び表示ユニット21が設けられている。操作ユニット20は、複数のボタンを備え、ユーザにより各種の指示や設定の入力操作が可能である。表示ユニット21は、ディスプレイやランプ等を備え、各種の設定画面や装置の動作状態等を表示することが可能である。   An operation unit 20 and a display unit 21 are provided in front of the placement unit 12. The operation unit 20 includes a plurality of buttons, and allows a user to input various instructions and settings. The display unit 21 includes a display, a lamp, and the like, and can display various setting screens and operation states of the apparatus.

2.スキャナの電気的構成
図3は、スキャナ10の電気的構成を概略的に示すブロック図である。スキャナ10は、スキャナ10の各部を制御する制御ユニット25を備える。制御ユニット25は、CPU26、ROM27、RAM28を有しており、これらがバス29を介して接続されているとともに、このバス29に読取デバイス13、操作ユニット20、表示ユニット21、読取デバイス13を駆動する駆動機構30などが接続されている。
2. FIG. 3 is a block diagram schematically showing the electrical configuration of the scanner 10. The scanner 10 includes a control unit 25 that controls each unit of the scanner 10. The control unit 25 includes a CPU 26, a ROM 27, and a RAM 28, which are connected via a bus 29, and drive the reading device 13, the operation unit 20, the display unit 21, and the reading device 13 to the bus 29. A driving mechanism 30 is connected.

ROM27には、後述するスキャン処理など、スキャナ10の各種動作を実行するためのプログラムが記憶されており、CPU26は、ROM27から読み出したプログラムに従って変化検知部、画像処理部等として機能し、各部の制御を行う。RAM28は、読取デバイス13から出力された読取データを記憶するバッファや、読取データからエッジ画像データを生成する際の作業領域などとして使用される。   The ROM 27 stores a program for executing various operations of the scanner 10 such as scan processing described later. The CPU 26 functions as a change detection unit, an image processing unit, and the like according to the program read from the ROM 27. Take control. The RAM 28 is used as a buffer for storing the read data output from the reading device 13 and a work area when generating edge image data from the read data.

3.スキャン処理
図4はスキャン処理を示すフローチャートであり、図5はスキャン処理中に実行される画像付加処理を示すフローチャートである。ユーザが、載置部12上に原稿Mを載置し、原稿カバー16を開き位置から閉じ位置にし、操作ユニット20にてスキャン指示の入力操作をすると、CPU26は、上記プログラムを読み出して、図4に示すスキャン処理を実行する。当該スキャン処理を実行するためのプログラムは、画像読取プログラムの一例である。
3. Scan Process FIG. 4 is a flowchart showing the scan process, and FIG. 5 is a flowchart showing the image addition process executed during the scan process. When the user places the document M on the placement unit 12, moves the document cover 16 from the open position to the closed position, and performs an operation to input a scan instruction using the operation unit 20, the CPU 26 reads the above program, 4 is executed. The program for executing the scan process is an example of an image reading program.

また、ユーザは、スキャン指示をする際、読取画像の設定サイズを指定したり、次述する初期読取画像G1に対し、主走査方向の端部に画像付加をするかどうか、副走査方向の端部に画像付加をするかどうかを設定したりすることができる。なお、設定サイズは、A4、B5などの定形サイズだけでなく、例えばユーザが操作ユニット20にて任意に指定した非定形サイズでもよい。CPU26は、画像付加の有無、設定サイズに関する設定情報を、例えばRAM28に記憶する。   In addition, when the user issues a scan instruction, the user specifies whether to set the size of the read image, or whether to add an image to the end of the main scan direction with respect to the initial read image G1 described below. It is possible to set whether to add an image to the part. The set size is not limited to a standard size such as A4 or B5, but may be a non-standard size arbitrarily designated by the user using the operation unit 20, for example. The CPU 26 stores setting information related to the presence / absence of image addition and the setting size, for example, in the RAM 28.

CPU26は、まず読取デバイス13に原稿Mの画像を読み取らせ、その読取データを取得する(S1)。以下、このときの読取画像を、初期読取画像G1という。   First, the CPU 26 causes the reading device 13 to read an image of the document M, and acquires the read data (S1). Hereinafter, the read image at this time is referred to as an initial read image G1.

また、CPU26は、白基準板17と黒基準板18との境界を基準として、駆動機構30を用いて読取デバイス13を右方向に移動させながら、読取デバイス13に、上記画像読取範囲H内における原稿Mの画像を、上記初期読取画像G1として読み取らせ、その読取データをRAM28に記憶する。   In addition, the CPU 26 moves the reading device 13 to the right using the drive mechanism 30 with the boundary between the white reference plate 17 and the black reference plate 18 as a reference, and moves the reading device 13 within the image reading range H. The image of the original M is read as the initial read image G1, and the read data is stored in the RAM 28.

図6は、初期読取画像G1、及び、エッジ画像G2の一例を示す模式図である。同図中の一点鎖線で示した枠Xは、設定サイズを示す。このように初期読取画像G1のサイズが設定サイズに比べて小さいことがある。初期読取画像G1は、原稿Mの画像のうち画像読取範囲Hにて読み取られた画像をいい、原稿Mの画像のうち画像読取範囲H外の部分は読み取られずに読取画像上、白色部分、換言すれば余白部分となる。   FIG. 6 is a schematic diagram illustrating an example of the initial read image G1 and the edge image G2. A frame X indicated by an alternate long and short dash line in FIG. Thus, the size of the initial read image G1 may be smaller than the set size. The initial read image G1 is an image read in the image reading range H of the image of the original M, and a portion outside the image reading range H of the image of the original M is not read, but on the read image, a white portion, in other words If it does, it will become a margin part.

このような余白部分は、原稿Mのサイズと設定サイズとが略一致するが、画像読取範囲Hと枠体14の開口部14Aとの間に前述のマージン領域Zが設けられた構成で生じる。具体的には、図2に示すように、設定サイズと略一致するサイズの原稿Mを配置した場合、当該原稿Mのうち、マージン領域Z上に配置された部分の画像は、初期読取画像G1に含まれないため、上記余白部分が生じる。なお、このような余白部分は、原稿Mのサイズと設定サイズとが不一致である場合にも生じる。   Such a margin portion occurs in the configuration in which the margin area Z described above is provided between the image reading range H and the opening 14A of the frame body 14 although the size of the document M and the set size are substantially the same. Specifically, as shown in FIG. 2, when a document M having a size substantially equal to the set size is arranged, an image of a portion of the document M arranged on the margin area Z is an initial read image G1. Therefore, the above margin part is generated. Such a margin portion also occurs when the size of the document M and the set size do not match.

CPU26は、初期読取画像G1の画像データをRAM28に記憶した後(S1)、RAM28に記憶された上記設定情報を参照して、主走査方向の端部に画像を付加する設定がされているかどうかを判断する(S2)。CPU26は、画像を付加する設定がされていれば(S2:YES)、初期読取画像G1の主走査方向の端部について図5に示す画像付加処理を実行する(S3)。以下、初期読取画像G1の主走査方向の1組の端部を、左辺EL、右辺ERといい、初期読取画像G1の副走査方向の1組の端部を、上辺ET、下辺EBという(図6参照)。なお、左辺EL及び右辺ERと、上辺ET及び下辺EBとは、1組の対辺の一例である。   The CPU 26 stores the image data of the initial read image G1 in the RAM 28 (S1), and then refers to the setting information stored in the RAM 28 to determine whether an image is added to the end portion in the main scanning direction. Is determined (S2). If the setting for adding an image is made (S2: YES), the CPU 26 executes the image adding process shown in FIG. 5 for the end portion of the initial read image G1 in the main scanning direction (S3). Hereinafter, a pair of end portions in the main scanning direction of the initial read image G1 is referred to as a left side EL and a right side ER, and a pair of end portions in the sub scanning direction of the initial read image G1 is referred to as an upper side ET and a lower side EB (see FIG. 6). The left side EL and the right side ER, and the upper side ET and the lower side EB are an example of a set of opposite sides.

画像付加処理では、CPU26は、左辺EL及び右辺ERの一方の辺に接する端画像について、当該辺に沿った方向におけるエッジ画素の数を算出する変化検知処理を実行する(S11)。このとき、制御ユニット25は、変化検知部として機能する。   In the image addition process, the CPU 26 executes a change detection process for calculating the number of edge pixels in the direction along the side with respect to the end image in contact with one of the left side EL and the right side ER (S11). At this time, the control unit 25 functions as a change detection unit.

図6の右図は、RAM28に記憶された初期読取画像G1の画像データについて、CPU26がエッジ画素を取得する処理を行ったエッジ画素の画像を示したものである。CPU26は、まず、RAM28に記憶された初期読取画像G1の画像データについて、エッジ強調処理、及び2値化処理を行う。そして、CPU26は、処理された画像データ、例えば階調値、濃度が予め決められた閾値以上であるか否かを判断し、閾値以上である画素をエッジ画素として図6の右図のように2値化されたエッジ画像G2として表れる。なお、本実施形態では、画像データを処理してエッジを検出する方法は上記方法に限定されず、各種の公知技術を利用することができる。   The right figure of FIG. 6 shows the image of the edge pixel in which the CPU 26 performs the process of acquiring the edge pixel for the image data of the initial read image G1 stored in the RAM 28. First, the CPU 26 performs edge enhancement processing and binarization processing on the image data of the initial read image G1 stored in the RAM 28. Then, the CPU 26 determines whether or not the processed image data, for example, the gradation value and the density are equal to or higher than a predetermined threshold value, and sets the pixels that are equal to or higher than the threshold value as edge pixels as shown in the right diagram of FIG. Appears as a binarized edge image G2. In the present embodiment, the method of detecting the edge by processing the image data is not limited to the above method, and various known techniques can be used.

そして、CPU26は、このエッジ画像G2の一方の辺側のエッジ画素Bの数である一方の辺側のエッジ数を算出する(S11)。なお、エッジ数は、画像濃度の変化の度合いの一例である。また、図6の右図のエッジ画像G2においては、左辺EL側のエッジ画素Bの数は3個、右辺ERには4個以上、上辺ETには0個、下辺EBには複数のエッジ画素Bが存在することを示している。   Then, the CPU 26 calculates the number of edges on one side, which is the number of edge pixels B on one side of the edge image G2 (S11). The number of edges is an example of the degree of change in image density. Further, in the edge image G2 in the right diagram of FIG. 6, the number of edge pixels B on the left side EL side is 3, the right side ER is 4 or more, the upper side ET is 0, and the lower side EB is a plurality of edge pixels. B is present.

次に、CPU26は、他方の辺についてもS11と同様に、エッジ数を算出する(S12)。そして、CPU26は、一方の辺のエッジ数と他方の辺のエッジ数とを大小比較し(S13)、一方の辺のエッジ数の方が他方の辺のエッジ数よりも少ないと判断すると(S13:YES)、当該一方の辺のエッジ数と第1基準値とを大小比較する(S14)。CPU26は、一方の辺のエッジ数が第1基準値よりも小さいと判断すると(S14:YES)、一方の辺側に画像濃度が均一なベタ画像を付加し、左右方向のサイズを設定サイズに略一致させる画像処理を実行し(S15)、本画像付加処理を終了し、図4のS4に進む。このとき、制御ユニット25は、画像処理部として機能する。なお、ベタ画像は、端画像のうち、辺に沿った方向において最も幅の広い領域と同一の色及び濃度であることが好ましい。ベタ画像は均一な画像の一例である。   Next, the CPU 26 calculates the number of edges for the other side as well as S11 (S12). Then, the CPU 26 compares the number of edges on one side with the number of edges on the other side (S13), and determines that the number of edges on one side is smaller than the number of edges on the other side (S13). : YES), the number of edges of the one side is compared with the first reference value (S14). If the CPU 26 determines that the number of edges on one side is smaller than the first reference value (S14: YES), the CPU 26 adds a solid image having a uniform image density to one side and sets the size in the left-right direction to the set size. The image processing to be substantially matched is executed (S15), the main image addition processing is terminated, and the process proceeds to S4 in FIG. At this time, the control unit 25 functions as an image processing unit. The solid image preferably has the same color and density as the widest region in the direction along the side of the end image. A solid image is an example of a uniform image.

一方、CPU26は、一方の辺のエッジ数が第1基準値以上であると判断すると(S14:NO)、一方の辺側に、当該辺側に接する画像と同一のデッドコピー画像を付加し、左右方向のサイズを設定サイズに一致または略一致させ(S16)、本画像付加処理を終了し、図4のS4に進む。   On the other hand, when the CPU 26 determines that the number of edges on one side is greater than or equal to the first reference value (S14: NO), the CPU 26 adds the same dead copy image as the image in contact with the side to one side, The size in the left-right direction is matched or substantially matched with the set size (S16), the main image addition process is terminated, and the process proceeds to S4 in FIG.

他方の辺のエッジ数の方が、一方の辺のエッジ数以下であると判断すると(S13:YES)、当該他方の辺のエッジ数と第2基準値とを大小比較する(S17)。なお、S17の第2基準値は、上記S14の第1基準値と同じ値でも異なる値でもよい。CPU26は、他方の辺のエッジ数が第2基準値よりも小さいと判断すると(S17:YES)、他方の辺側に画像濃度が均一なベタ画像を付加し、左右方向のサイズを設定サイズに一致させ(S18)、本画像付加処理を終了し、図4のS4に進む。   If it is determined that the number of edges on the other side is less than or equal to the number of edges on one side (S13: YES), the number of edges on the other side is compared with the second reference value (S17). Note that the second reference value in S17 may be the same value as or different from the first reference value in S14. If the CPU 26 determines that the number of edges on the other side is smaller than the second reference value (S17: YES), the CPU 26 adds a solid image with a uniform image density to the other side, and sets the horizontal size to the set size. (S18), the main image addition process is terminated, and the process proceeds to S4 in FIG.

一方、CPU26は、他方の辺のエッジ数が第2基準値以上であると判断すると(S17:NO)、一方の辺側に、当該辺側に接する画像と同一のデッドコピー画像を付加し、左右方向のサイズを設定サイズに一致させ(S19)、本画像付加処理を終了し、図4のS4に進む。   On the other hand, if the CPU 26 determines that the number of edges on the other side is greater than or equal to the second reference value (S17: NO), the CPU 26 adds the same dead copy image as the image in contact with the side to one side, The size in the left-right direction is matched with the set size (S19), the main image addition process is terminated, and the process proceeds to S4 in FIG.

CPU26は、S3の画像付加処理が終了した場合、或いは、主走査方向の端部に画像を付加する設定がされていない場合(S2:NO)、RAM28に記憶された上記設定情報を参照して、副走査方向の端部に画像を付加する設定がされているかどうかを判断する(S4)。CPU26は、画像を付加する設定がされていれば(S4:YES)、初期読取画像G1の副走査方向の端部について図5に示す画像付加処理を実行する(S5)。なお、S5の画像付加処理では、図5中、「一方の辺」「他方の辺」は、上辺ET及び下辺EBに該当するものとし、詳細な説明は省略する。そして、CPU26は、S5の画像付加処理が終了した場合、或いは、副走査方向の端部に画像を付加する設定がされていない場合(S4:NO)、本スキャン処理を終了する。   The CPU 26 refers to the setting information stored in the RAM 28 when the image addition processing in S3 is completed or when the setting for adding an image to the end in the main scanning direction is not made (S2: NO). Then, it is determined whether or not the setting for adding an image to the end in the sub-scanning direction is made (S4). If the setting for adding an image has been made (S4: YES), the CPU 26 executes the image addition process shown in FIG. 5 for the end portion of the initial read image G1 in the sub-scanning direction (S5). In the image addition processing in S5, “one side” and “the other side” in FIG. 5 correspond to the upper side ET and the lower side EB, and detailed description thereof is omitted. Then, the CPU 26 ends the main scanning process when the image adding process of S5 ends or when the setting for adding an image to the end in the sub-scanning direction is not made (S4: NO).

図7は、初期読取画像G1と、当該初期読取画像G1にデットコピー画像G3が付加された第1画像G4との一例を示す模式図である。図6から明らかなように、初期読取画像G1では、左辺ELのエッジ数の方が、右辺ERのエッジ数よりも少ない(S13:YES)。このため、図7に示すように、CPU26は、初期読取画像G1の左辺EL側に画像を付加し、左右方向のサイズを設定サイズに一致させる。   FIG. 7 is a schematic diagram illustrating an example of an initial read image G1 and a first image G4 obtained by adding a dead copy image G3 to the initial read image G1. As apparent from FIG. 6, in the initial read image G1, the number of edges on the left side EL is smaller than the number of edges on the right side ER (S13: YES). For this reason, as shown in FIG. 7, the CPU 26 adds an image to the left side EL side of the initial read image G1, and matches the size in the left-right direction to the set size.

ここで、初期読取画像G1の左端部分には、草、雲及び空等の画像が含まれているため、画像濃度がある程度、変化している。このため、初期読取画像G1の左端に、例えば所定画像濃度のベタ画像を付加すると、画像付加後の画像と、原稿Mの画像との相違が大きくなってしまうおそれがある。そこで、CPU26は、初期読取画像G1の左辺ELのエッジ数が第1基準値以上であれば(S14:NO)、換言すれば初期読取画像G1の左側部分の画像濃度変化が比較的に大きい場合には、図7に示すように、初期読取画像G1の左端に、当該左側部分のデットコピー画像G3を付加し、第1画像G4の画像データを生成する。これにより、例えば初期読取画像G1の左側部分の画像を引き延ばした画像を付加する構成に比べて、デッドコピーにより比較的簡単に画像を付加することができる。   Here, since the left end portion of the initial read image G1 includes images such as grass, clouds, and sky, the image density changes to some extent. For this reason, if, for example, a solid image having a predetermined image density is added to the left end of the initial read image G1, there is a possibility that the difference between the image after the image addition and the image of the original M becomes large. Therefore, if the number of edges on the left side EL of the initial read image G1 is equal to or greater than the first reference value (S14: NO), the CPU 26, in other words, the image density change in the left portion of the initial read image G1 is relatively large. As shown in FIG. 7, the left-side portion of the dead-copy image G3 is added to the left end of the initial read image G1 to generate image data of the first image G4. Thus, for example, an image can be added relatively easily by dead copy as compared with a configuration in which an image obtained by extending the image of the left portion of the initial read image G1 is added.

図8は、初期読取画像G1とは異なる初期読取画像G5と、当該初期読取画像G5にベタ画像G6が付加された第2画像G7との一例を示す模式図である。初期読取画像G5の左端画像には、画像がなく、画像濃度の変化が無い。この場合、初期読取画像G5の左端に、左端画像と同一画像濃度のベタ画像G6を付加しても、画像付加後の画像と、原稿Mの画像との相違は比較的に小さい。   FIG. 8 is a schematic diagram illustrating an example of an initial read image G5 that is different from the initial read image G1 and a second image G7 in which a solid image G6 is added to the initial read image G5. The leftmost image of the initial read image G5 has no image and no change in image density. In this case, even if the solid image G6 having the same image density as the left end image is added to the left end of the initial read image G5, the difference between the image after the addition and the image of the original M is relatively small.

そこで、CPU26は、初期読取画像G5の左辺ELのエッジ数が第1基準値より少ない場合には(S14:YES)、初期読取画像G5の左端に、左端画像と同一画像濃度のベタ画像G6を付加し、第2画像G7の画像データを生成する。これにより、画像付加対象とされた対辺について画像濃度の変化の度合いが比較的に小さい場合には、ベタ画像を付加するという比較的簡単な処理にて画像を付加することができる。しかも、ベタ画像という単純な画像を付加することによりCPU26の画像処理負担や、RAM28の容量負担を軽減することができる。   Therefore, when the number of edges on the left side EL of the initial read image G5 is smaller than the first reference value (S14: YES), the CPU 26 applies a solid image G6 having the same image density as the left end image to the left end of the initial read image G5. In addition, image data of the second image G7 is generated. As a result, when the degree of change in the image density is relatively small for the opposite side as the image addition target, the image can be added by a relatively simple process of adding a solid image. In addition, by adding a simple image called a solid image, the image processing burden on the CPU 26 and the capacity burden on the RAM 28 can be reduced.

図9は、第1画像G4と、当該初期読取画像G4にベタ画像G8が付加された第3画像G9との一例を示す模式図である。第1画像G4の上端部分には、空の画像のみが含まれているため、画像濃度の変化が小さい。そこで、第1画像G4の上端に、空の画像と同一の画像濃度のベタ画像G8を付加し、第3画像G9の画像データを生成する。これにより、第3画像G9は、左右方向及び上下方向において設定サイズに一致させることができる。   FIG. 9 is a schematic diagram illustrating an example of the first image G4 and a third image G9 in which a solid image G8 is added to the initial read image G4. Since only the sky image is included in the upper end portion of the first image G4, the change in the image density is small. Therefore, a solid image G8 having the same image density as the sky image is added to the upper end of the first image G4 to generate image data of the third image G9. Thereby, the 3rd image G9 can be made to correspond to setting size in the left-right direction and an up-down direction.

4.本実施形態の効果
本実施形態によれば、読取デバイス13に読み取られた初期読取画像のうち、画像濃度の変化が小さい方の対辺側に画像が付加され、予め定められた設定サイズに一致する読取画像の画像データが生成される。これにより、ユーザによる設定を要することなく、設定サイズの画像データを生成することができる。
4). Effects of this Embodiment According to this embodiment, an image is added to the opposite side of the initial read image read by the reading device 13 and has a smaller change in image density, and matches the predetermined set size. Image data of the read image is generated. Thereby, image data of a set size can be generated without requiring a setting by the user.

しかも、画像濃度の変化の度合いが小さい方の対辺側に画像が付加される。従って、変化の度合いが大きい方の対辺側に画像が付加される構成に比べて、変化の度合いの小さい画像を付加しつつ読取画像と付加画像との境界が目立ちにくい画像データを生成することができる。更に、CPU26は、画像濃度の変化の度合いを、エッジ処理でカウントされたエッジ数で把握する。これにより、画像を詳細に解析することなく、エッジ処理という比較的に簡単な処理により、画像濃度の変化の度合いを把握することができる。   In addition, an image is added to the opposite side where the degree of change in image density is smaller. Therefore, it is possible to generate image data in which the boundary between the read image and the additional image is less noticeable while adding an image with a small degree of change compared to a configuration in which an image is added to the opposite side of the larger degree of change. it can. Further, the CPU 26 grasps the degree of change in the image density by the number of edges counted by the edge processing. As a result, the degree of change in image density can be grasped by a relatively simple process called edge processing without analyzing the image in detail.

また、読取画像の2組の対辺それぞれについて変化の度合いが小さい方の対辺側に画像を付加して、読取画像に比べて、設定サイズの画像データを生成することができる。   Further, it is possible to generate image data having a set size compared to the read image by adding an image to the opposite side of the two opposite sides of the read image that has a smaller degree of change.

<実施形態2>
実施形態2について、図10から図14を参照しつつ説明する。上記実施形態1では、ユーザが、スキャン指示をする際、読取画像の設定サイズ(A4、B5等)を指定したり、初期読取画像G1に対し、主走査方向の端部に画像付加をするかどうか、副走査方向の端部に画像付加をするかどうかを設定したりする構成であった。これに対し、本実施形態では、スキャン指示をする際、原稿の実際のサイズを、ユーザが操作ユニット20を用いて指定し、原稿の実際のサイズに合わせて、読取デバイス13が読み取った読取画像に適切な画像を付加する構成である。
<Embodiment 2>
The second embodiment will be described with reference to FIGS. 10 to 14. In the first embodiment, when the user issues a scan instruction, does the user specify the set size (A4, B5, etc.) of the read image or add an image to the end in the main scanning direction with respect to the initial read image G1? Whether or not to add an image to the end in the sub-scanning direction is set. On the other hand, in the present embodiment, when a scan instruction is given, the user specifies the actual size of the document using the operation unit 20, and the read image read by the reading device 13 in accordance with the actual size of the document. It is the structure which adds an appropriate image to.

図10は実施形態2におけるスキャン処理を示すフローチャートであり、図4のフローチャートと符号が同じステップは同じ処理を行うものとする。以下、実施形態1の図4のフローチャートと異なるポイントについて説明を行う。   FIG. 10 is a flowchart showing scan processing in the second embodiment, and steps having the same reference numerals as those in the flowchart of FIG. 4 perform the same processing. Hereinafter, points different from the flowchart of FIG. 4 of the first embodiment will be described.

光透過部材15に原稿Mを載置する方法は、2種類ある。1種類目の方法は、原稿Mが光透過部材15の角15Aと、原稿Mとの1つの角とが一致するように、開口部14Aを縁として光透過部材15に載置される方法である。以下、この載置方法を、角置きと称する。2種類目の方法は、原稿Mが光透過部材15の主走査方向のセンター軸と原稿Mの主走査方向のセンター軸とが一致するように、原稿Mが載置される方法である。以下、この載置方法を、センター置きと称する。   There are two methods for placing the document M on the light transmitting member 15. The first method is a method in which the document M is placed on the light transmission member 15 with the opening 14A as an edge so that the corner 15A of the light transmission member 15 and one corner of the document M coincide with each other. is there. Hereinafter, this placement method is referred to as corner placement. The second type is a method in which the original M is placed so that the center axis of the light transmission member 15 in the main scanning direction coincides with the center axis of the original M in the main scanning direction. Hereinafter, this placement method is referred to as center placement.

ユーザは、スキャン指示をする際、原稿の実際のサイズを、操作ユニット20を用いて指定し、初期読取画像G1に対し、原稿Mの端部に画像を付加するか否かを設定することができる。また、ユーザは、角置きかセンター置きかを選択することができる。すると、CPU26は、画像付加の有無、原稿の設定サイズに関する設定情報を、角置きかセンター置きかの情報をRAM28に記憶する(S0)。   When the user issues a scan instruction, the user can specify the actual size of the document using the operation unit 20 and set whether or not to add an image to the edge of the document M with respect to the initial read image G1. it can. In addition, the user can select corner placement or center placement. Then, the CPU 26 stores in the RAM 28 information on whether or not an image is added and setting information related to the set size of the document, and information on whether the corner is placed or centered (S0).

次に、S1の処理の後に、CPU26は、RAM28にアクセスすることで、画像付加の有無が設定されているか否かを判断する(S6)。図11は、はがきサイズの原稿Mを示しており、例えば、当該原稿Mが、光透過部材15の角15Aと、原稿Mとの1つの角とが一致するように、光透過部材15に載置されているものとする。すると、図11の非読取領域Z2は、マージン領域Zに起因して読取デバイス13が読取不可の領域となり、読取領域H2が画像読取範囲Hに起因して読取デバイス13によって読み取られる。   Next, after the processing of S1, the CPU 26 accesses the RAM 28 to determine whether or not image addition is set (S6). FIG. 11 shows a postcard-sized document M. For example, the document M is placed on the light transmission member 15 so that the corner 15A of the light transmission member 15 and one corner of the document M coincide with each other. It shall be placed. Then, the non-reading area Z2 in FIG. 11 becomes an area in which the reading device 13 cannot read due to the margin area Z, and the reading area H2 is read by the reading device 13 due to the image reading range H.

CPU26は、画像付加の設定がされていない場合(S6:NO)、初期読取画像G1の周りに、原稿Mの実際のサイズの読取画像となるように、余白として白の画像濃度を一律付加することで、生成された原稿Mの実際のサイズの読取画像が図12(A)である。   When the image addition setting is not set (S6: NO), the CPU 26 uniformly adds white image density as a margin so as to obtain a read image of the actual size of the original M around the initial read image G1. Thus, the read image of the actual size of the generated document M is shown in FIG.

画像付加の設定がされていない場合(S6:NO)、図12(A)のような読取画像が出力されるが、図11に示した原稿Mと図12(A)で示した原稿Mの読取画像とでは、見た目が異なり、ユーザにとっては、白の画像濃度を一律付加された余白の部分が邪魔となる(図11の原稿の場合、原稿Mの角に三角の黒模様があるため、縁に余白の画像がつくと見た目が異なってしまう)。   When the image addition setting is not set (S6: NO), a read image as shown in FIG. 12A is output, but the original M shown in FIG. 11 and the original M shown in FIG. The read image is different in appearance, and for the user, a blank portion to which the white image density is uniformly added becomes an obstacle (in the case of the original in FIG. 11, there is a triangular black pattern at the corner of the original M. If a margin image appears on the edge, it will look different).

図12(B)は、初期読取画像G1に対して、原稿Mの実際のサイズの読取画像となるように、辺ELと辺ET側にそれぞれ、余白として白の画像濃度を一律付加された読取画像を示している。また、図12(C)は、初期読取画像G1に対して、原稿Mの実際のサイズの読取画像となるように、辺ERと辺ET側にそれぞれ、余白として白の画像濃度を一律付加された読取画像を示している。   FIG. 12B shows a reading in which white image density is uniformly added as a margin on each of the side EL and the side ET so that the initial read image G1 is a read image of the actual size of the original M. An image is shown. In FIG. 12C, white image density is uniformly added as a margin to each of the side ER and the side ET so that the initial read image G1 is a read image of the actual size of the document M. The read image is shown.

図11の原稿Mと、図12(B)及び(C)の読取画像とを比較すると、図12(B)の方が、原稿Mと同じ画像となっている。CPU26が初期読取画像G1に対して、どの辺(辺EL、辺ER、辺ET、辺EB)に付加するかを適切に判断することができれば、ユーザは原稿Mとほぼ同じ読取画像を得ることができる。   Comparing the document M in FIG. 11 with the scanned images in FIGS. 12B and 12C, the image in FIG. If the CPU 26 can appropriately determine which side (side EL, side ER, side ET, side EB) to add to the initial read image G1, the user can obtain a read image almost the same as the original M. Can do.

以下、画像付加の設定がされている場合(S6:YES)、CPU26は、原稿が角置きかセンター置きかについて判断を行う(S7)。角置きが設定されていた場合(S7:YES)、S3にて画像付加処理を行う。S3の画像付加処理によって、辺ELと辺ERとのエッジ画素Bの数を比較すると、辺ELはエッジ画素Bがゼロで有るのに対し、辺ERにはエッジ画素Bが1ある。すなわち、辺ELの方が画像濃度の変化の度合いが低いため、CPU26は、辺ELの方に余白として白の画像濃度を一律付加した方がよいと判断する。   Hereinafter, when image addition is set (S6: YES), the CPU 26 determines whether the document is placed on the corner or the center (S7). If corner placement is set (S7: YES), image addition processing is performed in S3. When the number of edge pixels B of the side EL and the side ER is compared by the image addition processing in S3, the edge EL is zero in the side EL, whereas the edge ER has 1 edge pixel B in the side ER. That is, since the degree of change in image density is lower in the side EL, the CPU 26 determines that it is better to uniformly add the white image density as a margin to the side EL.

次に、S5において、CPU26が、辺ETと辺EBのどちらに余白として白の画像濃度を一律付加した方がよいかを判断する。S5の画像付加処理によって、辺ETと辺EBとのエッジ画素Bの数を比較すると、辺ETはエッジ画素Bがゼロで有るのに対し、辺EBには、エッジ画素Bが1ある。すなわち、辺ETの方が画像濃度の変化の度合いが低いため、CPU26は、辺ETの方に余白として白の画像濃度を一律付加した方がよいと判断する。   Next, in S5, the CPU 26 determines which of the side ET and the side EB should be uniformly added with white image density as a margin. When the number of edge pixels B of the side ET and the side EB is compared by the image addition processing of S5, the side ET has zero edge pixel B, whereas the side EB has one edge pixel B. That is, since the degree of change in image density is lower in the side ET, the CPU 26 determines that it is better to uniformly add the white image density as a margin to the side ET.

すると、CPU26は、原稿Mの実際のサイズの読取画像となるように、辺ELと辺ET側にそれぞれ、余白として白の画像濃度を一律付加することで、原稿Mと同じ画像を生成することができる。   Then, the CPU 26 generates the same image as the original M by uniformly adding white image density as a margin to each of the side EL and the side ET so that a read image of the actual size of the original M is obtained. Can do.

角置きが設定されていた場合(S7:YES)、即ち、センター置きが設定されていた場合、図13の左図のような原稿Mとなり、読取不可領域Z2の部分が読み取られない。そこで、センター置きの場合は、S5において、CPU26が、辺ETと辺EBのどちらに余白として白の画像濃度を一律付加した方がよいかを判断する。   When the corner placement is set (S7: YES), that is, when the center placement is set, the document M is as shown on the left side of FIG. 13, and the unreadable area Z2 is not read. Therefore, in the case of the center placement, in S5, the CPU 26 determines which of the side ET and the side EB should be uniformly added with the white image density as a margin.

本実施形態のような構成にすることで、CPU26が初期読取画像G1に対して、どの辺(辺EL、辺ER、辺ET、辺EB)に付加するかを適切に判断することができ、ユーザは原稿Mとほぼ同じ読取画像を得ることができるという効果がある。   With the configuration as in the present embodiment, the CPU 26 can appropriately determine which side (side EL, side ER, side ET, side EB) to add to the initial read image G1, There is an effect that the user can obtain a read image almost the same as the original M.

<他の実施形態>
本発明は上記記述及び図面によって説明した実施形態に限定されるものではなく、例えば次のような種々の態様も本発明の技術的範囲に含まれる。
(1)上記実施形態では、画像読取装置の一例として、画像読取機能のみを有するスキャナ10を挙げた。しかし、画像読取装置は、これに限らず、例えば、画像読取機能以外に、印刷機能やファクシミリ機能等を有するコピー機、ファクシミリ装置、複合機でもよい。
<Other embodiments>
The present invention is not limited to the embodiments described with reference to the above description and the drawings, and for example, the following various aspects are also included in the technical scope of the present invention.
(1) In the above-described embodiment, the scanner 10 having only the image reading function is described as an example of the image reading apparatus. However, the image reading apparatus is not limited to this, and may be, for example, a copying machine, a facsimile apparatus, or a multifunction machine having a printing function, a facsimile function, etc. in addition to the image reading function.

(2)上記実施形態では、画像読取プログラムの一例として、RAM28に記憶されたものを例に挙げた。しかし、画像読取プログラムは、これに限らず、ハードディスク装置、フラッシュメモリ(登録商標)などの不揮発性メモリや、CD−Rなどの記憶媒体などに記憶されたものでもよい。   (2) In the above embodiment, the example stored in the RAM 28 is taken as an example of the image reading program. However, the image reading program is not limited to this, and may be a non-volatile memory such as a hard disk device or a flash memory (registered trademark) or a storage medium such as a CD-R.

(3)上記実施形態1では、主走査方向や副走査方向の端部への画像付加の有無を、ユーザが設定する構成を例に挙げた。しかし、例えば、CPU26が、設定サイズと初期読取画像G1のサイズとを大小比較し、主走査方向及び副走査方向の少なくとも一方向において、初期読取画像G1のサイズが、設定サイズよりも小さい場合に画像付加有りに設定し、設定サイズ以上である場合に画像付加無しに設定する構成でもよい。   (3) In the first embodiment, the configuration in which the user sets whether or not to add an image to the end portion in the main scanning direction or the sub-scanning direction is taken as an example. However, for example, when the CPU 26 compares the size of the set size with the size of the initial read image G1, and the size of the initial read image G1 is smaller than the set size in at least one of the main scanning direction and the sub-scanning direction. A configuration in which the image is added and the image is not added when the size is larger than the set size may be used.

(4)上記実施形態では、CPU26は、初期読取画像G1の主走査方向の端部について画像付加処理等(S2、S3)を実行した後に、副走査方向の端部について画像付加処理等(S4、S5)を実行した。しかし、これに限らず、CPU26が、副走査方向の端部について画像付加処理等(S4、S5)を実行した後に、初期読取画像G1の主走査方向の端部について画像付加処理等(S2、S3)を実行する構成でもよい。また、副走査方向の端部について画像付加処理等(S4、S5)、及び、主走査方向の端部について画像付加処理等(S2、S3)の一方だけを実行する構成でもよい。   (4) In the above embodiment, the CPU 26 executes the image addition processing or the like (S2, S3) for the end portion in the main scanning direction of the initial read image G1, and then performs the image addition processing or the like for the end portion in the sub scanning direction (S4). , S5). However, the present invention is not limited to this, and after the CPU 26 executes the image addition processing or the like (S4, S5) for the end in the sub-scanning direction, the image addition processing or the like (S2, S5) for the end in the main scanning direction of the initial read image G1. A configuration in which S3) is executed may be employed. Alternatively, only one of the image addition processing or the like (S4, S5) may be executed for the end portion in the sub-scanning direction, and the image addition processing or the like (S2, S3) may be executed for the end portion in the main scanning direction.

(5)上記実施形態では、画像濃度の変化の度合いの一例として、画像のエッジ数を挙げた。しかし、画像濃度の変化の度合いは、同一の画像濃度を有する領域、換言すれば、エッジで区切られる領域のうち、辺に沿った方向における幅が最も大きい領域の幅寸法や、色が付着されている領域の辺方向における幅の累計値でもよい。また、画像濃度の変化の度合いは、画像濃度が所定値以上である画素数でもよい。なお、画像濃度とは、例えば、読取データの色分解により生成されるRGBの階調値である。   (5) In the above embodiment, the number of edges of an image is given as an example of the degree of change in image density. However, the degree of change in image density is determined by the width dimension or color of the area having the same image density, in other words, the area having the largest width in the direction along the side among the areas divided by the edges. It may be a cumulative value of the width in the side direction of the area. The degree of change in image density may be the number of pixels whose image density is a predetermined value or more. Note that the image density is, for example, an RGB gradation value generated by color separation of read data.

(6)上記実施形態では、読取画像に付加する画像の一例として、ベタ画像、デッドコピー画像等を挙げた。しかし、読取画像に付加する画像は、これに限らず、付加対象の対辺側部分と同等以下の変化の度合いの画像が好ましい。これにより、付加対象の対辺側部分よりも変化の度合いが大きい画像が付加される構成に比べて、画像付加後の画像と、原稿の画像との相違を抑制することができる。   (6) In the above embodiment, a solid image, a dead copy image, or the like is given as an example of an image added to the read image. However, the image added to the read image is not limited to this, and an image having a degree of change equal to or less than that of the opposite side portion to be added is preferable. Accordingly, it is possible to suppress the difference between the image after the image addition and the image of the original document, as compared with a configuration in which an image having a greater degree of change than the opposite side portion to be added is added.

(7)上記実施形態では、他方の辺のエッジ数と一方の辺のエッジ数とが同じ場合には(S13:YES)、CPU26は、他方の辺側に画像を付加した。しかし、これに限らず、他方の辺のエッジ数と一方の辺のエッジ数とが同じ場合、CPU26は、一方及び他方の両辺に画像を付加して読取画像のサイズを設定サイズに一致させる構成でもよい。   (7) In the above embodiment, when the number of edges on the other side is the same as the number of edges on one side (S13: YES), the CPU 26 adds an image to the other side. However, the present invention is not limited to this, and when the number of edges on the other side is the same as the number of edges on one side, the CPU 26 adds an image to one side and the other side to match the size of the read image with the set size. But you can.

(8)上記実施形態では、CPU26は、画像濃度の変化の度合いの大小により画像を付加する辺を決定した。しかし、これに限らず、CPU26が対辺側部分の画像濃度、例えば平均値を検知し、画像濃度が低い方の対辺側に白色画像を付加する構成でもよい。   (8) In the above embodiment, the CPU 26 determines the side to which the image is added depending on the degree of change in the image density. However, the present invention is not limited to this, and the CPU 26 may detect the image density of the opposite side portion, for example, an average value, and add a white image to the opposite side having the lower image density.

(9)上記実施形態では、制御ユニット25は、1つのCPU26等を備える構成とした。しかし、制御ユニット25は、複数のCPUを備える構成や、ASIC(Application Specific Integrated Circuit)などのハード回路を備える構成や、ハード回路及びCPUの両方を備える構成でもよい。例えば上記変化検知処理と画像処理とを別々のCPUやハード回路で実行する構成でもよい。   (9) In the above embodiment, the control unit 25 is configured to include one CPU 26 and the like. However, the control unit 25 may have a configuration including a plurality of CPUs, a configuration including a hardware circuit such as an ASIC (Application Specific Integrated Circuit), or a configuration including both the hardware circuit and the CPU. For example, the change detection process and the image process may be executed by separate CPUs or hardware circuits.

10:スキャナ 13:読取デバイス 25:制御ユニット G1:初期読取画像 M:原稿   10: Scanner 13: Reading device 25: Control unit G1: Initial read image M: Document

Claims (7)

原稿の画像を読み取る画像読取部と、
前記画像読取部が読み取った読取画像のうち少なくとも一組の対辺それぞれについて当該対辺側の画像濃度の変化の度合いを検知する変化検知部と、
前記一組の対辺のうち、前記変化検知部が検知した前記画像濃度の変化の度合いが小さい方の辺側に、画像を付加し、予め定められた設定サイズの画像データを生成する画像処理部と、を備える画像読取装置。
An image reading unit for reading an image of a document;
A change detection unit that detects the degree of change in image density on the opposite side of each of at least one pair of opposite sides of the read image read by the image reading unit;
An image processing unit that adds an image to the side of the pair of opposite sides that has a smaller degree of change in the image density detected by the change detection unit and generates image data of a predetermined set size. An image reading apparatus.
請求項1に記載の画像読取装置であって、
前記画像処理部は、前記小さい方の辺における前記変化の度合いが基準以上である場合には、前記小さい方の辺側の画像に応じた画像を付加し、前記小さい方の辺における前記変化の度合いが基準未満である場合には、前記画像濃度が均一な画像を付加する、画像読取装置。
The image reading apparatus according to claim 1,
When the degree of change in the smaller side is greater than or equal to a reference, the image processing unit adds an image corresponding to the image on the smaller side, and the change of the change in the smaller side. An image reading apparatus that adds an image having a uniform image density when the degree is less than a reference.
請求項2に記載の画像読取装置であって、
前記画像処理部は、前記小さい方の辺における前記変化の度合いが基準以上である場合には、前記小さい方の辺側の画像と同じ画像を付加する、画像読取装置。
The image reading apparatus according to claim 2,
The image processing device adds the same image as the image on the smaller side when the degree of change in the smaller side is equal to or greater than a reference.
請求項1から3のいずれか一項に記載の画像読取装置であって、
前記変化検知部は、前記各対辺について当該対辺側の画像のエッジ数をカウントし、当該エッジ数を前記変化の度合いとして検知する、画像読取装置。
The image reading apparatus according to any one of claims 1 to 3,
The change detection unit is an image reading apparatus that counts the number of edges of the image on the opposite side for each opposite side and detects the number of edges as the degree of change.
請求項1から4のいずれか一項に記載の画像読取装置であって、
前記変化検知部は、2組の対辺それぞれについて前記変化の度合いを検知し、
前記画像処理部は、前記読取画像のうち、各組で前記変化検知部が検知した画像濃度の変化の度合いが小さい方の辺側に、当該小さい方の辺の画像に応じた画像を付加し、予め定められた設定サイズの画像データを生成する、画像読取装置。
The image reading apparatus according to any one of claims 1 to 4,
The change detection unit detects the degree of change for each of two pairs of opposite sides,
The image processing unit adds an image corresponding to the image on the smaller side to the side on the smaller side of the image density detected by the change detection unit in each set. An image reading device that generates image data having a predetermined set size.
原稿の画像を読み取る画像読取部と、
前記画像読取部が読み取った読取画像のうち少なくとも一組の対辺それぞれについて画像濃度を検知する濃度検知部と、
前記一組の対辺のうち、前記濃度検知部が検知した前記画像濃度が低い方の辺側に、白色画像を付加し、予め定められた設定サイズの画像データを生成する画像処理部と、を備える画像読取装置。
An image reading unit for reading an image of a document;
A density detector that detects image density for each of at least one pair of opposite sides of the read image read by the image reader;
An image processing unit that adds a white image to a side of the pair of opposite sides that has a lower image density detected by the density detection unit and generates image data of a predetermined set size; An image reading apparatus provided.
原稿の画像を読み取る画像読取部を備える画像読取装置が有するコンピュータに、
前記画像読取部が読み取った読取画像のうち少なくとも一組の対辺それぞれについて当該対辺側の画像濃度の変化の度合いを検知する変化検知処理と、
前記一組の対辺のうち、前記変化検知処理で検知された前記画像濃度の変化の度合いが小さい方の辺側に、画像を付加し、予め定められた設定サイズの画像データを生成する画像処理と、を実行させる画像読取プログラム。
In a computer included in an image reading apparatus including an image reading unit that reads an image of a document,
A change detection process for detecting the degree of change in image density on the opposite side of each of at least one pair of opposite sides of the read image read by the image reading unit;
Image processing that adds an image to the side of the pair of opposite sides that has a smaller degree of change in the image density detected by the change detection processing, and generates image data of a predetermined set size And an image reading program for executing.
JP2011146467A 2011-06-30 2011-06-30 Image reading apparatus and image reading program Active JP5644700B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2011146467A JP5644700B2 (en) 2011-06-30 2011-06-30 Image reading apparatus and image reading program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2011146467A JP5644700B2 (en) 2011-06-30 2011-06-30 Image reading apparatus and image reading program

Publications (2)

Publication Number Publication Date
JP2013016912A JP2013016912A (en) 2013-01-24
JP5644700B2 true JP5644700B2 (en) 2014-12-24

Family

ID=47689174

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2011146467A Active JP5644700B2 (en) 2011-06-30 2011-06-30 Image reading apparatus and image reading program

Country Status (1)

Country Link
JP (1) JP5644700B2 (en)

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH08251388A (en) * 1995-03-09 1996-09-27 Nec Corp Facsimile equipment

Also Published As

Publication number Publication date
JP2013016912A (en) 2013-01-24

Similar Documents

Publication Publication Date Title
JP4890974B2 (en) Image processing apparatus and image processing method
JP4926568B2 (en) Image processing apparatus, image processing method, and image processing program
JP2007134830A (en) Image reading apparatus
JP2015181218A (en) Image scanning device and image scanning method
JP4930423B2 (en) Image processing apparatus, image forming apparatus, image processing apparatus control method, and image processing apparatus control program
JP4900175B2 (en) Image processing apparatus and method, and program
JP5644700B2 (en) Image reading apparatus and image reading program
JP5354310B2 (en) Image reading apparatus and ground color correction program
JP5915257B2 (en) Image reading apparatus and document area determination program
JP5768752B2 (en) Image reading apparatus and original arrangement determination program
JP2008005192A (en) Image processor, image processing method, and image processing program
JP5915256B2 (en) Image reading apparatus and document area determination program
JP2007150849A (en) Image reader and image forming apparatus
JP6638452B2 (en) Image processing apparatus, image forming apparatus, and image processing program
JP6950621B2 (en) Image forming device, image processing device, and image processing method
JP5081885B2 (en) Document reader with preview function
JP6081874B2 (en) Image reading device
JP5825073B2 (en) Image reading apparatus and ground color correction program
JP4080496B2 (en) Image forming apparatus
JP6115804B2 (en) Image reading device
JP2009111692A (en) Image reader
JP3819348B2 (en) Image reading apparatus and copying machine
JP5057598B2 (en) Image processing apparatus, image processing method, image processing program, and storage medium
JP2020174241A (en) Image reading device and control program thereof
JP2014107616A (en) Image forming apparatus

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20140318

RD05 Notification of revocation of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7425

Effective date: 20140407

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20141007

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20141020

R150 Certificate of patent or registration of utility model

Ref document number: 5644700

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150