JP5644700B2 - Image reading apparatus and image reading program - Google Patents
Image reading apparatus and image reading program Download PDFInfo
- 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
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
しかし、従来の画像読取装置では、ユーザが余白を付加する位置を設定しなければ、設定サイズの画像データを生成することができないという問題があった。 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>
実施形態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
スキャナ10は、装置本体11を備えており、その装置本体11の上部に、原稿Mが載置される載置部12と、載置部12に載せられた原稿Mの画像を読み取る読取デバイス13が設けられている。読取デバイス13は画像読取部の一例である。
The
(載置部の構成)
図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
なお、後述するスキャン処理において、読取デバイス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
原稿カバー16は、その一端が、装置本体11に回動可能に設けられており、光透過部材15の表面を覆う閉じ位置と、当該表面から退避した開き位置(図1参照)とに変位させることができる。白基準板17及び黒基準板18は、光透過部材15の左側に配置されている。そして、読取デバイス13が白基準板17を読み取ることによって、シェーディング補正に必要な白補正データが、読取デバイス13が黒基準板18を読み取ることによって、シェーディング補正に必要な黒補正データが取得される。
One end of the
(読取デバイスの構成)
読取デバイス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
載置部12の前方には、操作ユニット20及び表示ユニット21が設けられている。操作ユニット20は、複数のボタンを備え、ユーザにより各種の指示や設定の入力操作が可能である。表示ユニット21は、ディスプレイやランプ等を備え、各種の設定画面や装置の動作状態等を表示することが可能である。
An
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
ROM27には、後述するスキャン処理など、スキャナ10の各種動作を実行するためのプログラムが記憶されており、CPU26は、ROM27から読み出したプログラムに従って変化検知部、画像処理部等として機能し、各部の制御を行う。RAM28は、読取デバイス13から出力された読取データを記憶するバッファや、読取データからエッジ画像データを生成する際の作業領域などとして使用される。
The
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
また、ユーザは、スキャン指示をする際、読取画像の設定サイズを指定したり、次述する初期読取画像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
CPU26は、まず読取デバイス13に原稿Mの画像を読み取らせ、その読取データを取得する(S1)。以下、このときの読取画像を、初期読取画像G1という。
First, the
また、CPU26は、白基準板17と黒基準板18との境界を基準として、駆動機構30を用いて読取デバイス13を右方向に移動させながら、読取デバイス13に、上記画像読取範囲H内における原稿Mの画像を、上記初期読取画像G1として読み取らせ、その読取データをRAM28に記憶する。
In addition, the
図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
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
画像付加処理では、CPU26は、左辺EL及び右辺ERの一方の辺に接する端画像について、当該辺に沿った方向におけるエッジ画素の数を算出する変化検知処理を実行する(S11)。このとき、制御ユニット25は、変化検知部として機能する。
In the image addition process, the
図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
そして、CPU26は、このエッジ画像G2の一方の辺側のエッジ画素Bの数である一方の辺側のエッジ数を算出する(S11)。なお、エッジ数は、画像濃度の変化の度合いの一例である。また、図6の右図のエッジ画像G2においては、左辺EL側のエッジ画素Bの数は3個、右辺ERには4個以上、上辺ETには0個、下辺EBには複数のエッジ画素Bが存在することを示している。
Then, the
次に、CPU26は、他方の辺についてもS11と同様に、エッジ数を算出する(S12)。そして、CPU26は、一方の辺のエッジ数と他方の辺のエッジ数とを大小比較し(S13)、一方の辺のエッジ数の方が他方の辺のエッジ数よりも少ないと判断すると(S13:YES)、当該一方の辺のエッジ数と第1基準値とを大小比較する(S14)。CPU26は、一方の辺のエッジ数が第1基準値よりも小さいと判断すると(S14:YES)、一方の辺側に画像濃度が均一なベタ画像を付加し、左右方向のサイズを設定サイズに略一致させる画像処理を実行し(S15)、本画像付加処理を終了し、図4のS4に進む。このとき、制御ユニット25は、画像処理部として機能する。なお、ベタ画像は、端画像のうち、辺に沿った方向において最も幅の広い領域と同一の色及び濃度であることが好ましい。ベタ画像は均一な画像の一例である。
Next, the
一方、CPU26は、一方の辺のエッジ数が第1基準値以上であると判断すると(S14:NO)、一方の辺側に、当該辺側に接する画像と同一のデッドコピー画像を付加し、左右方向のサイズを設定サイズに一致または略一致させ(S16)、本画像付加処理を終了し、図4のS4に進む。
On the other hand, when the
他方の辺のエッジ数の方が、一方の辺のエッジ数以下であると判断すると(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
一方、CPU26は、他方の辺のエッジ数が第2基準値以上であると判断すると(S17:NO)、一方の辺側に、当該辺側に接する画像と同一のデッドコピー画像を付加し、左右方向のサイズを設定サイズに一致させ(S19)、本画像付加処理を終了し、図4のS4に進む。
On the other hand, if the
CPU26は、S3の画像付加処理が終了した場合、或いは、主走査方向の端部に画像を付加する設定がされていない場合(S2:NO)、RAM28に記憶された上記設定情報を参照して、副走査方向の端部に画像を付加する設定がされているかどうかを判断する(S4)。CPU26は、画像を付加する設定がされていれば(S4:YES)、初期読取画像G1の副走査方向の端部について図5に示す画像付加処理を実行する(S5)。なお、S5の画像付加処理では、図5中、「一方の辺」「他方の辺」は、上辺ET及び下辺EBに該当するものとし、詳細な説明は省略する。そして、CPU26は、S5の画像付加処理が終了した場合、或いは、副走査方向の端部に画像を付加する設定がされていない場合(S4:NO)、本スキャン処理を終了する。
The
図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
ここで、初期読取画像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
図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
図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
しかも、画像濃度の変化の度合いが小さい方の対辺側に画像が付加される。従って、変化の度合いが大きい方の対辺側に画像が付加される構成に比べて、変化の度合いの小さい画像を付加しつつ読取画像と付加画像との境界が目立ちにくい画像データを生成することができる。更に、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
また、読取画像の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
図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
ユーザは、スキャン指示をする際、原稿の実際のサイズを、操作ユニット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
次に、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
CPU26は、画像付加の設定がされていない場合(S6:NO)、初期読取画像G1の周りに、原稿Mの実際のサイズの読取画像となるように、余白として白の画像濃度を一律付加することで、生成された原稿Mの実際のサイズの読取画像が図12(A)である。
When the image addition setting is not set (S6: NO), the
画像付加の設定がされていない場合(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
以下、画像付加の設定がされている場合(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
次に、S5において、CPU26が、辺ETと辺EBのどちらに余白として白の画像濃度を一律付加した方がよいかを判断する。S5の画像付加処理によって、辺ETと辺EBとのエッジ画素Bの数を比較すると、辺ETはエッジ画素Bがゼロで有るのに対し、辺EBには、エッジ画素Bが1ある。すなわち、辺ETの方が画像濃度の変化の度合いが低いため、CPU26は、辺ETの方に余白として白の画像濃度を一律付加した方がよいと判断する。
Next, in S5, the
すると、CPU26は、原稿Mの実際のサイズの読取画像となるように、辺ELと辺ET側にそれぞれ、余白として白の画像濃度を一律付加することで、原稿Mと同じ画像を生成することができる。
Then, the
角置きが設定されていた場合(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
本実施形態のような構成にすることで、CPU26が初期読取画像G1に対して、どの辺(辺EL、辺ER、辺ET、辺EB)に付加するかを適切に判断することができ、ユーザは原稿Mとほぼ同じ読取画像を得ることができるという効果がある。
With the configuration as in the present embodiment, the
<他の実施形態>
本発明は上記記述及び図面によって説明した実施形態に限定されるものではなく、例えば次のような種々の態様も本発明の技術的範囲に含まれる。
(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
(2)上記実施形態では、画像読取プログラムの一例として、RAM28に記憶されたものを例に挙げた。しかし、画像読取プログラムは、これに限らず、ハードディスク装置、フラッシュメモリ(登録商標)などの不揮発性メモリや、CD−Rなどの記憶媒体などに記憶されたものでもよい。
(2) In the above embodiment, the example stored in the
(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
(4)上記実施形態では、CPU26は、初期読取画像G1の主走査方向の端部について画像付加処理等(S2、S3)を実行した後に、副走査方向の端部について画像付加処理等(S4、S5)を実行した。しかし、これに限らず、CPU26が、副走査方向の端部について画像付加処理等(S4、S5)を実行した後に、初期読取画像G1の主走査方向の端部について画像付加処理等(S2、S3)を実行する構成でもよい。また、副走査方向の端部について画像付加処理等(S4、S5)、及び、主走査方向の端部について画像付加処理等(S2、S3)の一方だけを実行する構成でもよい。
(4) In the above embodiment, the
(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
(8)上記実施形態では、CPU26は、画像濃度の変化の度合いの大小により画像を付加する辺を決定した。しかし、これに限らず、CPU26が対辺側部分の画像濃度、例えば平均値を検知し、画像濃度が低い方の対辺側に白色画像を付加する構成でもよい。
(8) In the above embodiment, the
(9)上記実施形態では、制御ユニット25は、1つのCPU26等を備える構成とした。しかし、制御ユニット25は、複数のCPUを備える構成や、ASIC(Application Specific Integrated Circuit)などのハード回路を備える構成や、ハード回路及びCPUの両方を備える構成でもよい。例えば上記変化検知処理と画像処理とを別々のCPUやハード回路で実行する構成でもよい。
(9) In the above embodiment, the
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.
前記画像処理部は、前記小さい方の辺における前記変化の度合いが基準以上である場合には、前記小さい方の辺側の画像に応じた画像を付加し、前記小さい方の辺における前記変化の度合いが基準未満である場合には、前記画像濃度が均一な画像を付加する、画像読取装置。 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.
前記画像処理部は、前記小さい方の辺における前記変化の度合いが基準以上である場合には、前記小さい方の辺側の画像と同じ画像を付加する、画像読取装置。 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.
前記変化検知部は、前記各対辺について当該対辺側の画像のエッジ数をカウントし、当該エッジ数を前記変化の度合いとして検知する、画像読取装置。 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.
前記変化検知部は、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.
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)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH08251388A (en) * | 1995-03-09 | 1996-09-27 | Nec Corp | Facsimile equipment |
-
2011
- 2011-06-30 JP JP2011146467A patent/JP5644700B2/en active Active
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 |