JP2010103808A - Image processor, image reader, image forming apparatus, image processing method, image processing program and computer readable recording medium - Google Patents

Image processor, image reader, image forming apparatus, image processing method, image processing program and computer readable recording medium Download PDF

Info

Publication number
JP2010103808A
JP2010103808A JP2008274011A JP2008274011A JP2010103808A JP 2010103808 A JP2010103808 A JP 2010103808A JP 2008274011 A JP2008274011 A JP 2008274011A JP 2008274011 A JP2008274011 A JP 2008274011A JP 2010103808 A JP2010103808 A JP 2010103808A
Authority
JP
Japan
Prior art keywords
document
size
image
inclination
unit
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP2008274011A
Other languages
Japanese (ja)
Inventor
Yosuke Konishi
陽介 小西
Masaaki Toyoda
将哲 豊田
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.)
Sharp Corp
Original Assignee
Sharp Corp
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 Sharp Corp filed Critical Sharp Corp
Priority to JP2008274011A priority Critical patent/JP2010103808A/en
Publication of JP2010103808A publication Critical patent/JP2010103808A/en
Pending legal-status Critical Current

Links

Images

Abstract

<P>PROBLEM TO BE SOLVED: To provide an image processor which exactly detects inclination of a document and size of the document, and by which a high quality image with successful appearance is obtained as an image after correction of the inclination of document and correction of document size. <P>SOLUTION: A color image processor 1 has: a document inclination and size detection part 8 which detects an inclination angle of the document to a scanning direction or sub scanning direction, and the size of the document from preimage data which are obtained by starting reading of the document when an angle which is formed by a document loading surface of a document table and the opposite surface of a document cover to the document loading surface is γ; and a document inclination and size correction part 9 which corrects the angle of the document and the size of the document on the basis of detection results of the document inclination and size detection part 8 to main image data which is obtained by starting reading of the document after the document cover is closed. <P>COPYRIGHT: (C)2010,JPO&INPIT

Description

本発明は、原稿をスキャナ等の読取手段によりに読み取って得たデジタル画像データを処理する画像処理装置等に関し、特に原稿カバーを閉じる際に傾いた原稿から読み込んだ画像データに対して自動的に傾き・サイズを検知する画像処理装置等に関するするものである。   The present invention relates to an image processing apparatus and the like for processing digital image data obtained by reading a document with a reading unit such as a scanner, and more particularly to image data read from a document that is tilted when a document cover is closed. The present invention relates to an image processing apparatus that detects inclination and size.

従来、デジタル複写機などのデジタル画像形成装置では、原稿が読取手段の走査方向に対して傾いて置かれた場合でも、デジタル画像データから傾きを求めて、自動補正することができるものがある。   2. Description of the Related Art Conventionally, some digital image forming apparatuses such as digital copying machines can automatically correct a document by obtaining the tilt from the digital image data even when the document is placed tilted with respect to the scanning direction of the reading unit.

このような傾きを補正する技術に関し、特許文献1には、搬送ベルトのプラテンガラス側の面が橙色に着色されているものを用い、黒から白へ変化するエッジ、白から黒へ変化するエッジを検出し、各原稿エッジの座標データ間の傾きの変化を検出し、傾きの変化する点(エッジ変化点)を求めてそれらエッジ変化点同士を結ぶ線分を抽出し、抽出された線分の中で、副走査方向に対して45゜以下の傾きの線分をして選択して、傾き検知および補正を行う技術が開示されている。
特開平11−331547(平成11年11月30日公開)
With regard to a technique for correcting such an inclination, Patent Document 1 discloses that a platen glass side surface of a conveyor belt is colored orange, an edge that changes from black to white, and an edge that changes from white to black. Is detected, a change in the inclination between the coordinate data of each document edge is detected, a point where the inclination changes (edge change point) is obtained, a line segment connecting the edge change points is extracted, and the extracted line segment Among them, a technique for detecting and correcting inclination by selecting a line segment having an inclination of 45 ° or less with respect to the sub-scanning direction is disclosed.
JP 11-331547 (published on November 30, 1999)

しかしながら、上記特許文献1の技術では、傾き補正した後の画像の端に、裏あての有色部分が残ってしまう可能性があり、出力された画像が見た目上あまりきれいではなくなる場合がある。   However, in the technique of the above-mentioned Patent Document 1, there is a possibility that a colored portion on the back may remain at the edge of the image after the inclination correction, and the output image may not be very beautiful in appearance.

本発明は、上記の問題点に鑑みてなされたものであり、その目的は、原稿の傾きおよび原稿のサイズを正確に検知でき、原稿の傾きの補正および原稿サイズの補正の後の画像として、見た目のよい高品質な画像が得られる画像処理装置、画像読取装置、画像形成装置、画像処理方法、画像処理プログラムおよびコンピュータ読取可能な記録媒体を提供することにある。   The present invention has been made in view of the above-described problems, and its purpose is to accurately detect the inclination of the original and the size of the original, and as an image after the correction of the original inclination and the correction of the original size, An object of the present invention is to provide an image processing apparatus, an image reading apparatus, an image forming apparatus, an image processing method, an image processing program, and a computer-readable recording medium capable of obtaining a high-quality image with a good appearance.

本発明に係る画像処理装置は、上記課題を解決するために、原稿台、および前記原稿台の原稿載置面に載置される原稿を覆うための前記原稿台に対して開閉可能な原稿カバーを有し、前記原稿載置面に載置される原稿の読み取りを行う原稿読取部の、前記原稿載置面と前記原稿カバーの前記原稿載置面への対向面との成す角が0より大きい第1角度であるときに、前記原稿読取部が前記原稿の読み取りを開始して得られる第1画像データから、前記読み取りの走査方向あるいは副走査方向に対する前記原稿の傾き角度と、前記原稿のサイズと、を検出する原稿傾き・サイズ検出部と、前記原稿カバーが閉じられた後に前記原稿読取部が前記原稿の読み取りを開始して得られる第2画像データに対して、前記原稿傾き・サイズ検出部の検出結果に基づき、原稿の角度と原稿のサイズとを補正する原稿傾き・サイズ補正部と、を備えたことを特徴としている。   In order to solve the above problems, an image processing apparatus according to the present invention provides a document table and a document cover that can be opened and closed with respect to the document table for covering a document placed on a document placement surface of the document table. And an angle formed between the document placement surface and the surface of the document cover facing the document placement surface of the document reading unit that reads the document placed on the document placement surface is 0 From the first image data obtained when the original reading unit starts reading the original when the first angle is large, the inclination angle of the original with respect to the scanning direction or the sub-scanning direction of the reading, A document inclination / size detection unit for detecting the size, and the document inclination / size with respect to second image data obtained by the document reading unit starting reading the document after the document cover is closed. Detection result of the detector Based, it is characterized by comprising: a document skew size correction unit that corrects a size of the original angle and the document, the.

上記構成によると、原稿台の原稿載置面と原稿カバーの原稿載置面への対向面との成す角(原稿台と原稿カバーの成す角)が、0より大きい第1角度であるときに、つまり原稿カバーで原稿を押さえるユーザの動作過程において、原稿を読み取り、第1画像データを得て、原稿の傾きおよび原稿のサイズを求める。そして、その結果を、原稿カバーを閉じた後に得た第2画像データに対する補正処理に用いる。そのため、黒背景時と同等の傾き・サイズ検知処理精度を得ながら、補正後の画像に黒背景を残さず、原稿の傾き及び原稿のサイズを補正することができる。よって、上記構成によると、原稿の傾きおよび原稿のサイズを正確に検知でき、原稿の傾きの補正および原稿サイズの補正の後の画像として、見た目のよい高品質な画像を得られる。   According to the above configuration, when the angle formed by the document placement surface of the document table and the surface of the document cover facing the document placement surface (the angle formed by the document table and the document cover) is a first angle greater than zero. That is, in the operation process of the user holding the document with the document cover, the document is read, the first image data is obtained, and the inclination of the document and the size of the document are obtained. Then, the result is used for the correction process for the second image data obtained after the document cover is closed. Therefore, it is possible to correct the inclination of the original and the size of the original without leaving a black background in the corrected image while obtaining the same inclination / size detection processing accuracy as that at the time of the black background. Therefore, according to the above configuration, the inclination of the document and the size of the document can be accurately detected, and a high-quality image with a good appearance can be obtained as an image after the correction of the document inclination and the correction of the document size.

また、本発明に係る画像読取装置は、上記課題を解決するために、本発明に係る画像処理装置と、前記原稿台、前記原稿カバー、および原稿を読み取り画像データを出力する読取出力部を有する前記原稿読取部と、を備えていることを特徴としている。この構成によると、本発明に係る画像読取装置は、本発明に係る画像処理装置を備えているため、原稿の傾きおよび原稿のサイズを正確に検知でき、原稿の傾きの補正および原稿サイズの補正の後の画像として、見た目のよい高品質な画像を得られる。よって、簡易な方法で精度よく原稿の傾きおよび原稿サイズの検出および補正を行うことができる画像読取装置を提供することができる。   In order to solve the above problems, an image reading apparatus according to the present invention includes the image processing apparatus according to the present invention, the document table, the document cover, and a reading output unit that reads the document and outputs image data. And an original reading unit. According to this configuration, since the image reading apparatus according to the present invention includes the image processing apparatus according to the present invention, it is possible to accurately detect the inclination of the original and the size of the original, and to correct the inclination of the original and the correction of the original size. As a subsequent image, a high-quality image with a good appearance can be obtained. Therefore, it is possible to provide an image reading apparatus that can detect and correct the inclination and size of a document with a simple method with high accuracy.

また、本発明に係る画像読取装置は、上記構成に加え、前記原稿読取部は、前記原稿台の前記原稿載置面と前記原稿カバーの前記原稿載置面への対向面との成す角を検出する検出部を有し、前記原稿読取部は、前記検出部にて検出される角度が、前記第1角度より大きい角度から前記第1角度になると、前記読み取りを開始してもよい。   In the image reading apparatus according to the present invention, in addition to the above-described configuration, the document reading unit has an angle formed by the document placement surface of the document table and a surface of the document cover facing the document placement surface. The document reading unit may start the reading when an angle detected by the detection unit is changed from an angle larger than the first angle to the first angle.

上記構成によると、原稿台と前記原稿カバーとの成す角度が第1角度であるときに前記原稿の読取を開始して得られる第1画像データと、前記原稿カバーが閉じられたときに前記原稿の読取を開始して得られる第2画像データとを前記原稿読取部によって出力することが可能になる。   According to the above configuration, the first image data obtained by starting reading the original when the angle formed by the original platen and the original cover is the first angle, and the original when the original cover is closed. It is possible to output the second image data obtained by starting the reading by the original reading unit.

また、本発明に係る画像読取装置は、上記構成に加え、前記原稿読取部は、ユーザによる前記第1角度の変更を受け付けてもよい。この構成によれば、ユーザが前記第1角度を自由に設定でき、ユーザの使用形態に応じた値にすることができる。   In the image reading apparatus according to the present invention, in addition to the above configuration, the document reading unit may accept a change in the first angle by a user. According to this configuration, the user can freely set the first angle, and can set a value according to the user's usage pattern.

また、本発明に係る画像読取装置では、上記構成に加え、前記検出部は、光学式のロータリーエンコーダまたは光学式のリニアエンコーダであってもよい。この構成によれば、光学式のエンコーダは高分解能であるため、前記原稿台と前記原稿カバーとのなす角度を精密に検出できる。また、上記構成によれば、角度の設定値の自由度を高くでき、角度の設定値をユーザの使用形態に応じた値にすることが容易になる。   In the image reading apparatus according to the present invention, in addition to the above configuration, the detection unit may be an optical rotary encoder or an optical linear encoder. According to this configuration, since the optical encoder has high resolution, the angle formed by the document table and the document cover can be accurately detected. Moreover, according to the said structure, the freedom degree of the setting value of an angle can be made high, and it becomes easy to make the setting value of an angle into a value according to a user's usage form.

また、本発明に係る画像読取装置は、上記構成に加え、前記原稿傾き・サイズ検出部および前記原稿傾き・サイズ補正部を動作させる原稿傾き・サイズ補正モードと、前記原稿傾き・サイズ検出部および前記原稿傾き・サイズ補正部を動作させない非補正モードとを切り換えるモード制御部を備えていてもよい。   In addition to the above configuration, the image reading apparatus according to the present invention includes a document inclination / size correction mode for operating the document inclination / size detection unit and the document inclination / size correction unit, the document inclination / size detection unit, A mode control unit for switching between a non-correction mode in which the document inclination / size correction unit is not operated may be provided.

上記構成によれば、原稿傾き・サイズ補正が不要な場合、前記非補正モードを設定することによって、前記プレ画像データを生成するための原稿の読み取り等が省略できる。よって、前記プレ画像データの生成のための装置の動作が必要なくなり、省電力化および装置の消耗を抑制することができる。   According to the above configuration, when document skew / size correction is not required, reading the document for generating the pre-image data can be omitted by setting the non-correction mode. Therefore, the operation of the apparatus for generating the pre-image data is not necessary, and power saving and apparatus consumption can be suppressed.

本発明に係る画像形成装置は、上記課題を解決するために、上記何れか1つの画像読取装置を備えることを特徴としている。この構成によると、本発明に係る画像形成装置は、本発明に係る画像処理装置を有する画像読取装置を備えているため、原稿の傾きおよび原稿のサイズを正確に検知でき、原稿の傾きの補正および原稿サイズの補正の後の画像として、見た目のよい高品質な画像を得ることができる。よって、本発明の画像形成装置では、画質を向上させて画像形成することができる。   In order to solve the above problems, an image forming apparatus according to the present invention includes any one of the above-described image reading apparatuses. According to this configuration, since the image forming apparatus according to the present invention includes the image reading apparatus having the image processing apparatus according to the present invention, it is possible to accurately detect the inclination of the original and the size of the original, and to correct the inclination of the original. In addition, a high-quality image that looks good can be obtained as the image after the correction of the document size. Therefore, the image forming apparatus of the present invention can form an image with improved image quality.

本発明に係る画像処理方法は、上記課題を解決するために、原稿台、および前記原稿台の原稿載置面に載置される原稿を覆うための前記原稿台に対して開閉可能な原稿カバーを有し、前記原稿載置面に載置される原稿の読み取りを行う原稿読取部の、前記原稿載置面と前記原稿カバーの前記原稿載置面への対向面との成す角が0より大きい第1角度であるときに、前記原稿読取部が前記原稿の読み取りを開始して得られる第1画像データから、前記読み取りの走査方向あるいは副走査方向に対する前記原稿の傾き角度と、前記原稿のサイズと、を検出する原稿傾き・サイズ検出ステップと、前記原稿カバーが閉じられた後に前記原稿読取部が前記原稿の読み取りを開始して得られる第2画像データに対して、前記原稿の傾き・サイズ検知ステップでの検出結果に基づき、原稿の角度と原稿のサイズとを補正する原稿傾き・サイズ補正ステップと、を含むことを特徴としている。   In order to solve the above problems, an image processing method according to the present invention provides a document table and a document cover that can be opened and closed with respect to the document table for covering a document placed on a document placement surface of the document table. And an angle formed between the document placement surface and the surface of the document cover facing the document placement surface of the document reading unit that reads the document placed on the document placement surface is 0 From the first image data obtained when the original reading unit starts reading the original when the first angle is large, the inclination angle of the original with respect to the scanning direction or the sub-scanning direction of the reading, A document inclination / size detection step for detecting the size of the document, and a second document data obtained when the document reading unit starts reading the document after the document cover is closed. Size detection step Based on the detection result of the flop, it is characterized in that it comprises a document skew-size correction step of correcting the size of the original angle and the document, the.

上記方法によると、上記画像処理装置と同様の効果を奏し、原稿の傾きおよび原稿のサイズを正確に検知でき、原稿の傾きの補正および原稿サイズの補正の後の画像として、見た目のよい高品質な画像を得られる。よって、簡易な方法で精度よく原稿の傾きおよび原稿サイズの検出および補正を行うことができる。   According to the above method, the same effect as the image processing apparatus can be obtained, the inclination of the original and the size of the original can be accurately detected, and the image after the correction of the original inclination and the correction of the original size can be viewed with high quality. You can get a good picture. Therefore, it is possible to accurately detect and correct the document inclination and document size with a simple method.

また、本発明に係る画像処理装置は、コンピュータによって実現してもよく、この場合には、コンピュータを上記画像処理装置における上記各部として動作させることにより上記画像処理装置をコンピュータにて実現させる画像処理プログラム、及びその画像処理プログラムを記録したコンピュータ読み取り可能な記録媒体も、本発明の範疇に入る。   Further, the image processing apparatus according to the present invention may be realized by a computer. In this case, image processing that causes the image processing apparatus to be realized by the computer by causing the computer to operate as each unit in the image processing apparatus. A program and a computer-readable recording medium on which the image processing program is recorded also fall within the scope of the present invention.

これらの構成によれば、上記画像処理プログラムを、コンピュータに読み取り実行させることによって、上記画像処理装置と同一の作用効果を実現することができる。   According to these configurations, the same operational effects as those of the image processing apparatus can be realized by causing the computer to read and execute the image processing program.

本発明に係る画像処理装置は、以上のように、前記原稿台の前記原稿載置面と前記原稿カバーの前記原稿載置面への対向面との成す角が0より大きい第1角度であるときに、前記原稿読取部が前記原稿の読み取りを開始して得られる第1画像データから、前記読み取りの走査方向あるいは副走査方向に対する前記原稿の傾き角度と、前記原稿のサイズと、を検出する原稿傾き・サイズ検出部と、前記原稿カバーが閉じられた後に前記原稿読取部が前記原稿の読み取りを開始して得られる第2画像データに対して、前記原稿傾き・サイズ検出部の検出結果に基づき、原稿の角度と原稿のサイズとを補正する原稿傾き・サイズ補正部と、を備えている。   In the image processing apparatus according to the present invention, as described above, the angle formed by the document placement surface of the document table and the surface of the document cover facing the document placement surface is a first angle greater than zero. Sometimes, from the first image data obtained when the original reading unit starts reading the original, the inclination angle of the original with respect to the scanning direction or the sub-scanning direction of the reading and the size of the original are detected. A detection result of the document inclination / size detection unit for the second image data obtained when the document reading unit starts reading the document after the document cover is closed and the document inclination / size detection unit. And a document inclination / size correction unit for correcting the angle of the document and the size of the document.

上記構成によると、原稿台の原稿載置面と原稿カバーの原稿載置面への対向面との成す角(原稿台と原稿カバーの成す角)が、0より大きい第1角度であるときに、つまり原稿カバーで原稿を押さえるユーザの動作過程において、原稿を読み取り、第1画像データを得て、原稿の傾きおよび原稿のサイズを求める。そして、その結果を、原稿カバーを閉じた後に得た第2画像データに対する補正処理に用いる。そのため、黒背景時と同等の傾き・サイズ検知処理精度を得ながら、補正後の画像に黒背景を残さず、原稿の傾き及び原稿のサイズを補正することができる。よって、上記構成によると、原稿の傾きおよび原稿のサイズを正確に検知でき、原稿の傾きの補正および原稿サイズの補正の後の画像として、見た目のよい高品質な画像を得られる。   According to the above configuration, when the angle formed by the document placement surface of the document table and the surface of the document cover facing the document placement surface (the angle formed by the document table and the document cover) is a first angle greater than zero. That is, in the operation process of the user holding the document with the document cover, the document is read, the first image data is obtained, and the inclination of the document and the size of the document are obtained. Then, the result is used for the correction process for the second image data obtained after the document cover is closed. Therefore, it is possible to correct the inclination of the original and the size of the original without leaving a black background in the corrected image while obtaining the same inclination / size detection processing accuracy as that at the time of the black background. Therefore, according to the above configuration, the inclination of the document and the size of the document can be accurately detected, and a high-quality image with a good appearance can be obtained as an image after the correction of the document inclination and the correction of the document size.

〔実施の形態1〕
(画像形成装置および画像処理装置)
本発明に係る画像形成装置の一形態であるデジタルカラー複写機について、図に基づき説明する。図1は、本発明に係る画像処理装置の一形態であるカラー画像処理装置1を有するデジタルカラー複写機(画像形成装置)2の構成を表すブロック図である。図1に示すように、デジタルカラー複写機2は、カラー画像処理装置1、カラー画像入力装置(原稿読取部)3、カラー画像出力装置4を備えている。
[Embodiment 1]
(Image forming apparatus and image processing apparatus)
A digital color copying machine which is an embodiment of an image forming apparatus according to the present invention will be described with reference to the drawings. FIG. 1 is a block diagram showing a configuration of a digital color copying machine (image forming apparatus) 2 having a color image processing apparatus 1 which is an embodiment of an image processing apparatus according to the present invention. As shown in FIG. 1, the digital color copying machine 2 includes a color image processing device 1, a color image input device (original reading unit) 3, and a color image output device 4.

カラー画像入力装置3は、例えばCCD(光電変換素子)ラインセンサなどの光学情報を電気信号に変換するデバイスを備えたスキャナ部より構成され、原稿からの反射光像を、RGBのアナログ信号として出力する。   The color image input device 3 includes a scanner unit including a device that converts optical information into an electrical signal, such as a CCD (photoelectric conversion element) line sensor, and outputs a reflected light image from an original as an RGB analog signal. To do.

カラー画像入力装置3にて読み取られたアナログ信号は、原則として、カラー画像処理装置1内を、A/D(アナログ/デジタル)変換部5、シェーディング補正部6、入力階調補正部7、原稿傾き・サイズ補正部9、領域分離処理部10、色補正部11、黒生成下色除去部12、空間フィルタ処理部13、出力階調補正部14、および階調再現処理部15の順で送られ、CMYKのデジタルカラー信号として、カラー画像出力装置4へ出力される。   The analog signal read by the color image input device 3 is, as a general rule, an A / D (analog / digital) conversion unit 5, a shading correction unit 6, an input tone correction unit 7, an original in the color image processing device 1. Send in the order of inclination / size correction unit 9, area separation processing unit 10, color correction unit 11, black generation and under color removal unit 12, spatial filter processing unit 13, output tone correction unit 14, and tone reproduction processing unit 15. Then, it is output to the color image output device 4 as a CMYK digital color signal.

また、カラー画像処理装置1は原稿傾き・サイズ検出部8を有しており、この原稿傾き・サイズ検出部8は、入力階調補正部7からのデータを用いて処理を実施するものであり、パイプライン処理ではない。   Further, the color image processing apparatus 1 has a document inclination / size detection unit 8, and this document inclination / size detection unit 8 performs processing using data from the input gradation correction unit 7. Not pipeline processing.

A/D変換部5は、RGBのアナログ信号をデジタル信号に変換する。シェーディング補正部6は、A/D変換部5より送られてきたデジタルのRGB信号に対して、カラー画像入力装置3の照明系、結像系、撮像系で生じる各種の歪みを取り除く処理を施す。   The A / D converter 5 converts RGB analog signals into digital signals. The shading correction unit 6 performs a process of removing various distortions generated in the illumination system, the imaging system, and the imaging system of the color image input device 3 on the digital RGB signal sent from the A / D conversion unit 5. .

入力階調補正部7は、シェーディング補正部6にて各種の歪みが取り除かれたRGB信号に対して、下地濃度の除去やコントラストなどの画質調整処理を施す。   The input tone correction unit 7 performs image quality adjustment processing such as background density removal and contrast on the RGB signal from which various distortions have been removed by the shading correction unit 6.

ここで、本実施形態では、コピアモード(複写処理モード)におけるオプション機能(特別機能)のうちの原稿傾き・サイズ補正機能(原稿傾き・サイズ補正モード)が選択されている場合(図18参照)、後述するプレスキャンによってプレ画像データ(RGB信号、第1画像データ)が生成され、後述する本スキャンによって本画像データ(RGB信号、第2画像データ)が生成されるようになっている。具体的には、同じ原稿に対してプレスキャンと本スキャンとが行われることにより、前記プレ画像データと本画像データとが生成される。そして、本画像データは入力階調補正部7から原稿傾き・サイズ補正部9へ送られ、プレ画像データは入力階調補正部7から原稿傾き・サイズ検出部8へ送られる。   Here, in the present embodiment, when the document skew / size correction function (document skew / size correction mode) is selected from the optional functions (special functions) in the copier mode (copy processing mode) (see FIG. 18). Pre-image data (RGB signal, first image data) is generated by a pre-scan described later, and main image data (RGB signal, second image data) is generated by a main scan described later. Specifically, the pre-image data and the main image data are generated by performing pre-scan and main scan on the same document. The main image data is sent from the input gradation correction unit 7 to the document inclination / size correction unit 9, and the pre-image data is sent from the input gradation correction unit 7 to the document inclination / size detection unit 8.

原稿傾き・サイズ検出部8は、入力階調補正部7で入力階調補正されたRGB信号に対して、原稿のエッジを抽出し、補正パラメータ(傾きの角度、補正後のサイズ、補正処理開始位置)を求める。   The document inclination / size detection unit 8 extracts an edge of the document from the RGB signal that has been input gradation corrected by the input gradation correction unit 7, and corrects correction parameters (angle of inclination, corrected size, correction processing start). Position).

原稿傾き・サイズ補正部9では、上記のように原稿傾き・サイズ補正機能が選択されている場合に、原稿傾き・サイズ検出部8で算出された補正パラメータを用いて、入力階調補正部7より出力された本画像データ(RGB信号)の画像に対して、原稿の傾きおよび原稿のサイズを補正する傾き・サイズ補正処理を施し、画像メモリ16に格納する。なお、原稿傾き・サイズ補正部9は、前記原稿傾き・サイズ補正機能が選択されていない場合、入力階調補正部7から取得したRGB信号に対して処理を施さず、そのまま領域分離処理部10へ送る。なお、原稿傾き・サイズ検出部8および原稿傾き・サイズ補正部9についての詳細な説明は後述する。   In the document inclination / size correction unit 9, when the document inclination / size correction function is selected as described above, the input tone correction unit 7 is used by using the correction parameter calculated by the document inclination / size detection unit 8. The image of the main image data (RGB signal) output from the image is subjected to an inclination / size correction process for correcting the inclination of the original and the size of the original and is stored in the image memory 16. Note that the document inclination / size correction unit 9 does not process the RGB signal acquired from the input tone correction unit 7 when the document inclination / size correction function is not selected, and directly performs the region separation processing unit 10. Send to. A detailed description of the document inclination / size detection unit 8 and the document inclination / size correction unit 9 will be described later.

領域分離処理部10は、RGB信号により、入力画像中の各画素を、文字領域、網点領域、写真領域を含む複数の領域に分離する。領域分離処理部10は、分離結果に基づき、画素がどの領域に属しているかを示す領域識別信号を、黒生成下色除去部12、空間フィルタ処理部13、および階調再現処理部15へと出力すると共に、入力階調補正部7より出力された入力信号(原稿傾き・サイズ補正処理を実施した場合、原稿傾き・サイズ補正部9にて補正され、画像メモリ16に格納された補正後データ)をそのまま後段の色補正部11に出力する。   The region separation processing unit 10 separates each pixel in the input image into a plurality of regions including a character region, a halftone dot region, and a photograph region based on the RGB signal. Based on the separation result, the region separation processing unit 10 sends a region identification signal indicating to which region the pixel belongs to the black generation and under color removal unit 12, the spatial filter processing unit 13, and the gradation reproduction processing unit 15. In addition to the output signal, the input signal output from the input tone correction unit 7 (when the document inclination / size correction process is performed, the corrected data stored in the image memory 16 is corrected by the document inclination / size correction unit 9). ) As it is to the subsequent color correction unit 11.

色補正部11は、色再現の忠実化を図るために、不要吸収成分を含むCMY色材の分光特性に基づいた色濁りを取り除く処理を行う。   The color correction unit 11 performs a process of removing color turbidity based on the spectral characteristics of the CMY color material including unnecessary absorption components in order to achieve faithful color reproduction.

黒生成下色除去部12は、色補正後のCMYの3色信号から黒(K)信号を生成する処理、元のCMY信号から黒生成で得たK信号を差し引いて新たなCMY信号を生成する処理を行う。これらの処理によりCMYの3色信号はCMYKの4色信号に変換される。   The black generation and under color removal unit 12 generates a new CMY signal by generating a black (K) signal from the CMY three-color signal after color correction, and subtracting the K signal obtained by black generation from the original CMY signal. Perform the process. By these processes, the CMY three-color signal is converted into a CMYK four-color signal.

空間フィルタ処理部13は、黒生成下色除去部12より入力されるCMYK信号の画像データに対して、領域識別信号を基にデジタルフィルタによる空間フィルタ処理を行い、空間周波数特性を補正する。これにより出力画像のぼやけや粒状性劣化を軽減することができる。   The spatial filter processing unit 13 performs spatial filter processing using a digital filter on the image data of the CMYK signal input from the black generation and under color removal unit 12 to correct the spatial frequency characteristics. As a result, blurring of the output image and deterioration of graininess can be reduced.

階調再現処理部15は、空間フィルタ処理部13と同様に、CMYK信号の画像データに対して、領域識別信号に基づいて後述する所定の処理を施す。例えば、領域分離処理部10にて文字に分離された領域は、文字の再現性を高めるために、空間フィルタ処理部13における空間フィルタに高周波成分の強調量が大きいフィルタが用いられる。同時に、階調再現処理部15においては、高域周波成分の再現に適した高解像度のスクリーンによる二値化もしくは多値化処理が実施される。   Similar to the spatial filter processing unit 13, the gradation reproduction processing unit 15 performs predetermined processing described later on the image data of the CMYK signal based on the region identification signal. For example, in the region separated into characters by the region separation processing unit 10, a filter having a high enhancement amount of the high frequency component is used as the spatial filter in the spatial filter processing unit 13 in order to improve the reproducibility of characters. At the same time, the tone reproduction processing unit 15 performs binarization or multi-value processing using a high-resolution screen suitable for reproducing high-frequency components.

また、領域分離処理部10にて網点に分離された領域に関しては、空間フィルタ処理部13において、入力網点成分を除去するためのローパス・フィルタ処理が施される。そして、出力階調補正部14では、濃度信号などの信号をカラー画像出力装置4の特性値である網点面積率に変換する出力階調補正処理を行った後、階調再現処理部15で、最終的に画像を画素に分離してそれぞれの階調を再現できるように処理する階調再現処理が施される。   Further, with respect to the region separated into halftone dots by the region separation processing unit 10, the spatial filter processing unit 13 performs low-pass filter processing for removing the input halftone component. The output tone correction unit 14 performs output tone correction processing for converting a signal such as a density signal into a halftone dot area ratio that is a characteristic value of the color image output device 4. A gradation reproduction process is performed in which the image is finally separated into pixels and each gradation is reproduced.

また、領域分離処理部10にて写真に分離された領域に関しては、階調再現性を重視したスクリーンでの二値化または多値化処理が行われる。   In addition, for a region separated into photographs by the region separation processing unit 10, binarization or multi-value processing is performed on a screen with an emphasis on gradation reproducibility.

上述した各処理が施された画像データは、いったん不図示の記憶装置に記憶され、所定のタイミングで読み出されてカラー画像出力装置4に入力される。このカラー画像出力装置4は、画像データを紙などの記録媒体上に出力するもので、例えば、電子写真方式やインクジェット方式を用いたカラー画像出力装置等をあげることができるが特に限定されるものでは無い。   The image data subjected to the above-described processes is temporarily stored in a storage device (not shown), read at a predetermined timing, and input to the color image output device 4. The color image output device 4 outputs image data onto a recording medium such as paper. For example, a color image output device using an electrophotographic method or an ink jet method can be used, but the color image output device 4 is particularly limited. Not.

また、デジタルカラー複写機2は、デジタルカラー複写機2の動作等を制御するための設定ボタンやテンキー、液晶ディスプレイなどの表示部等から構成される操作パネル等を備えている。なお、以上の処理は不図示のCPU(Central Processing Unit)により制御される。また、本実施形態では、カラー画像処理装置1をデジタルカラー複写機2の構成要素として説明したが、カラー画像処理装置1は、コピア機能・プリンタ機能・ファクシミリ送信機能・scan to e-mail機能等を備える複合機(画像処理装置)に備えられてもよい。また、カラー複写機ではなく、モノクロ複写機であっても構わない。   The digital color copying machine 2 includes a setting button for controlling the operation of the digital color copying machine 2, an operation panel including a numeric keypad, a display unit such as a liquid crystal display, and the like. The above processing is controlled by a CPU (Central Processing Unit) (not shown). In this embodiment, the color image processing apparatus 1 has been described as a component of the digital color copying machine 2, but the color image processing apparatus 1 has a copier function, a printer function, a facsimile transmission function, a scan to e-mail function, and the like. May be included in a multifunction peripheral (image processing apparatus). Further, it may be a monochrome copying machine instead of a color copying machine.

(画像入力装置)
次に、カラー画像入力装置3の構成について説明する。図2は、カラー画像入力装置3の構成の一例を示す図である。図2に示すように、カラー画像入力装置3は、原稿搬送部を備えた上部筐体510、スキャナ部(読取出力部)を備えた下部筐体560、排出された原稿が載せられる排出トレイ566等を備えている。
(Image input device)
Next, the configuration of the color image input device 3 will be described. FIG. 2 is a diagram illustrating an example of the configuration of the color image input device 3. As shown in FIG. 2, the color image input device 3 includes an upper casing 510 having a document conveying section, a lower casing 560 having a scanner section (reading output section), and a discharge tray 566 on which discharged documents are placed. Etc.

上部筐体510には、原稿トレイ511に載置された原稿の検知を行う原稿セットセンサ514、原稿を1枚ずつ搬送するための呼込みローラ512、原稿上の画像を読み取るために原稿を搬送する搬送ローラ513a、513b、原稿の排出を行う原稿排出ローラ50、排出される原稿を検知する原稿排出センサ567などが設けられている。   A document set sensor 514 that detects a document placed on the document tray 511, a call roller 512 for conveying the document one by one, and a document for reading an image on the document are conveyed to the upper casing 510. Conveying rollers 513a and 513b, a document discharge roller 50 for discharging a document, a document discharge sensor 567 for detecting a document to be discharged, and the like are provided.

搬送ローラ513bは、用紙の方向を整合するための整合ローラとして機能する。搬送ローラ513bは、駆動軸に電磁クラッチ(不図示)を備えており、駆動モータ(不図示)からの駆動力の伝達を制御できるようになっており、原稿のない状態では停止している。そして、原稿の先端が給送タイミングセンサ515に接触し、このセンサから所定の信号が伝達されたときに、原稿を下流側に搬送する方向に回動するように設定されている。なお、搬送ローラ513bは、停止した状態で、上流側より搬送された原稿の先端が、搬送ローラ513bのニップ部に付き当たり、原稿に所定の撓みを形成した後に、下流側に原稿を搬送するように回動する。この際に、搬送ローラ513bのニップ部により、原稿の先端が搬送方向に直角となるように整合される。   The conveyance roller 513b functions as an alignment roller for aligning the paper direction. The conveyance roller 513b includes an electromagnetic clutch (not shown) on the drive shaft, can control transmission of driving force from a drive motor (not shown), and is stopped when there is no document. Then, when the leading edge of the document comes into contact with the feeding timing sensor 515 and a predetermined signal is transmitted from this sensor, the document is set to rotate in the direction in which the document is conveyed downstream. The transport roller 513b is stopped and the leading edge of the document transported from the upstream side comes into contact with the nip portion of the transport roller 513b to form a predetermined deflection and transport the document downstream. It rotates as follows. At this time, the leading edge of the document is aligned by the nip portion of the conveying roller 513b so as to be perpendicular to the conveying direction.

また、本実施形態では、図2に示すように、上部筐体510が、原稿台561の原稿載置面に載置される原稿を覆うようになっており、つまり、上部筐体510が原稿カバーに相当する。よって以下では原稿カバーに510の符号を付す。原稿カバー510は、原稿台561に対して開閉可能となっている。   In the present embodiment, as shown in FIG. 2, the upper housing 510 covers the document placed on the document placement surface of the document table 561, that is, the upper housing 510 is a document. Corresponds to the cover. Therefore, the reference numeral 510 is attached to the document cover below. The document cover 510 can be opened and closed with respect to the document table 561.

下部筐体560には、原稿台(プラテンガラス)561の下面に沿って平行に往復移動する走査ユニット562・563、結像レンズ564、光電変換素子であるCCDラインセンサ565等が設けられている。   The lower housing 560 is provided with scanning units 562 and 563 that reciprocate in parallel along the lower surface of the document table (platen glass) 561, an imaging lens 564, a CCD line sensor 565 that is a photoelectric conversion element, and the like. .

走査ユニット562は、原稿トレイ511から搬送される原稿、あるいは、原稿台561に載置された原稿に光を照射するための光源562a(例えば、ハロゲンランプなど)、原稿で反射された光を所定の光路に導くためのミラー562bなどを備えている。また、走査ユニット563は、原稿で反射された光を所定の光路に導くためのミラー563a、563bなどを備えている。また、走査ユニット563は、原稿にて反射され且つミラー562bから導かれた光をCCDラインセンサ565に導くためのミラー563a・563bを備えている。   The scanning unit 562 has a light source 562a (for example, a halogen lamp) for irradiating light on a document conveyed from the document tray 511 or a document placed on the document table 561, and light reflected by the document is predetermined. And a mirror 562b for guiding it to the optical path. The scanning unit 563 also includes mirrors 563a and 563b for guiding the light reflected from the document to a predetermined optical path. The scanning unit 563 includes mirrors 563a and 563b for guiding the light reflected from the document and guided from the mirror 562b to the CCD line sensor 565.

結像レンズ564は、走査ユニット563から導かれた反射光をCCDラインセンサ565上の所定の位置に結像させる。CCDラインセンサ565は、結像された光像を光電変換して電気信号を出力する。すなわち、原稿(例えば、原稿の表面)から読み取ったカラー画像に基づいて、R(赤)、G(緑)、B(青)の各色成分に色分解したデータをカラー画像処理装置1へ出力する。   The imaging lens 564 images the reflected light guided from the scanning unit 563 at a predetermined position on the CCD line sensor 565. The CCD line sensor 565 photoelectrically converts the formed optical image and outputs an electrical signal. That is, based on a color image read from an original (for example, the surface of the original), data that is color-separated into R (red), G (green), and B (blue) color components is output to the color image processing apparatus 1. .

ここで、本実施形態では、原稿傾き・サイズ補正機能が選択されている場合は、コピー実行命令が入力される前に(コピーボタンが押される前に)プレスキャンが行われる。当該プレスキャンについて説明する。原稿傾き・サイズ補正機能が選択されている場合に利用者が原稿カバー(原稿マット)510を閉じる動作を行うと、カラー画像入力装置3は、原稿台561に載置されている原稿についてプレスキャンを行いプレ画像データ(第1像データ)を生成し、カラー画像処理装置1に伝送する。なお、本実施形態では、図2の上部筐体510が原稿カバーに相当する。よって以下では原稿カバー510とする。利用者が原稿カバー510を閉じる動作を開始した後、カラー画像入力装置3は、図9(a)のように、原稿台561の原稿載置面と、原稿カバー510の前記原稿載置面への対向面との成す角度(以降では原稿台561と原稿カバー510とのなす角度とする)が、γ(γ>0°、第1角度)になったことをトリガーとして、原稿台561に載置されている原稿に対してプレスキャンを開始し、図9(b)に示されるようなスキャン画像となるプレ画像データ(第1画像データ)を生成する。   Here, in the present embodiment, when the document skew / size correction function is selected, pre-scanning is performed before a copy execution command is input (before the copy button is pressed). The prescan will be described. When the user performs the operation of closing the document cover (document mat) 510 when the document skew / size correction function is selected, the color image input device 3 performs prescanning on the document placed on the document table 561. The pre-image data (first image data) is generated and transmitted to the color image processing apparatus 1. In the present embodiment, the upper housing 510 in FIG. 2 corresponds to the document cover. Therefore, in the following, the document cover 510 is used. After the user starts the operation of closing the document cover 510, the color image input device 3 moves to the document placement surface of the document table 561 and the document placement surface of the document cover 510 as shown in FIG. Is set on the document table 561 as a trigger when the angle formed by the opposite surface (hereinafter referred to as the angle between the document table 561 and the document cover 510) is γ (γ> 0 °, first angle). Pre-scanning is started on the placed document, and pre-image data (first image data) that becomes a scanned image as shown in FIG. 9B is generated.

さらに、図10(a)に示すように、原稿カバー510が完全に閉じられ(γ=0°)、コピーボタンが押されると、カラー画像入力装置3は、原稿台561に載置されている原稿に対して本スキャンを開始し、図10(b)に示されるようなスキャン画像となる本画像データを生成する。このときのスキャン画像には、原稿カバー510の背面白板(原稿カバーにおける原稿台561と向き合う面)が含まれる。   Further, as shown in FIG. 10A, when the document cover 510 is completely closed (γ = 0 °) and the copy button is pressed, the color image input device 3 is placed on the document table 561. A main scan is started with respect to the document, and main image data to be a scan image as shown in FIG. 10B is generated. The scanned image at this time includes the back white plate of the document cover 510 (the surface of the document cover that faces the document table 561).

カラー画像入力装置3は、以上のようにして生成したプレ画像データ、本画像データをカラー画像処理装置1に順次伝送する。カラー画像処理装置1に伝送されたプレ画像データは、上記したように、A/D変換部5、シェーディング補正部6、入力階調補正部7を経由して原稿傾き・サイズ検出部8に入力する。他方、カラー画像処理装置1に伝送された本画像データは、上記したように、A/D変換部5、シェーディング補正部6、入力階調補正部7を経由して原稿傾き・サイズ補正部9に入力する。   The color image input device 3 sequentially transmits the pre-image data and the main image data generated as described above to the color image processing device 1. As described above, the pre-image data transmitted to the color image processing apparatus 1 is input to the document inclination / size detection unit 8 via the A / D conversion unit 5, the shading correction unit 6, and the input tone correction unit 7. To do. On the other hand, the main image data transmitted to the color image processing apparatus 1 is sent through the A / D conversion unit 5, the shading correction unit 6, and the input tone correction unit 7 as described above, and the document inclination / size correction unit 9. To enter.

(原稿傾き・サイズ検出部)
次に、原稿傾き・サイズ検出部8での処理について説明する。図3は、原稿傾き・サイズ検出部8の内部構成を示すブロック図である。図3に示すように、原稿傾き・サイズ検出部8は、エッジ検出処理部81、パラメータ算出部82、および判定部83を有している。
(Original tilt / size detector)
Next, processing in the document inclination / size detection unit 8 will be described. FIG. 3 is a block diagram showing an internal configuration of the document inclination / size detection unit 8. As shown in FIG. 3, the document inclination / size detection unit 8 includes an edge detection processing unit 81, a parameter calculation unit 82, and a determination unit 83.

エッジ検出処理部81は、入力階調補正部7から受信した、例えば図4に示すようなプレ画像データ(スキャナで読み取られる領域)について、ライン毎に、隣接画素の画素値がある閾値Th(原稿カバー510と原稿台561との成す角度がγの状態で読み取られた際に発生する、原稿以外の領域のムラを検知しない値、例えば40等、に設定する)よりも大きな画素のうち、最も左側の画素の座標と最も右側の画素の座標をエッジ座標として算出する。そして、プレ画像データの全ラインについて算出されたエッジ座標から、最も上部、下部、左部、右部となるエッジ座標、それぞれ順に、(EdgeTx, EdgeTy)、(EdgeBx, EdgeBy)、(EdgeLx, EdgeLy)、(EdgeRx, EdgeRy)を抽出する。   For example, the pre-image data (area read by the scanner) as shown in FIG. 4 received from the input tone correction unit 7, the edge detection processing unit 81 has a threshold Th (with a pixel value of an adjacent pixel for each line. Among pixels larger than a value larger than a value that does not detect unevenness in a region other than the document that occurs when the angle between the document cover 510 and the document table 561 is γ, for example, 40) The coordinates of the leftmost pixel and the coordinates of the rightmost pixel are calculated as edge coordinates. Then, from the edge coordinates calculated for all lines of the pre-image data, the edge coordinates that are the top, bottom, left, and right are respectively (EdgeTx, EdgeTy), (EdgeBx, EdgeBy), (EdgeLx, EdgeLy) ), (EdgeRx, EdgeRy) are extracted.

パラメータ算出部82は、原稿傾き・サイズ補正部9での原稿傾き・サイズ補正処理に用いられる原稿傾き・サイズ補正パラメータ(以降では、補正パラメータとする)を算出するためのブロックである。   The parameter calculation unit 82 is a block for calculating a document inclination / size correction parameter (hereinafter referred to as a correction parameter) used in the document inclination / size correction process in the document inclination / size correction unit 9.

パラメータ算出部82は、エッジ検出処理部81により検出されたエッジ座標のうち、最も上部および最も左部となるエッジ座標(EdgeTx, EdgeTy)および(EdgeLx, EdgeLy)に基づき、原稿の傾き(角度)を算出する。プレ画像データが図13である場合、読み取った原稿の傾き角度をαとすると、tanα(正接)は次の式(1)から求められる。   The parameter calculation unit 82 is based on the edge coordinates (EdgeTx, EdgeTy) and (EdgeLx, EdgeLy) that are the uppermost and leftmost of the edge coordinates detected by the edge detection processing unit 81, and the inclination (angle) of the document. Is calculated. When the pre-image data is shown in FIG. 13, tan α (tangent) can be obtained from the following equation (1), where α is the inclination angle of the read document.

Tanα = (EdgeTy - EdgeLy) / (EdgeTx - EdgeLx)・・・・・(1)
そして、この値に相当する角度αを、例えば図5に示すような、予め作成済みのテーブルからより読み取る。ここで読み取られた角度αが45°以下の場合は、補正処理開始座標(StartX, StartY)として、(EdgeLx, EdgeLy)を設定する。また、角度αが45°を超えた場合は、角度αを以下の式(2)で変換し、さらに、補正処理開始座標(StartX, StartY)としては、(EdgeTx, EdgeTy)を設定する。
Tanα = (EdgeTy-EdgeLy) / (EdgeTx-EdgeLx) (1)
Then, the angle α corresponding to this value is read from a previously created table as shown in FIG. 5, for example. When the read angle α is 45 ° or less, (EdgeLx, EdgeLy) is set as the correction processing start coordinates (StartX, StartY). When the angle α exceeds 45 °, the angle α is converted by the following equation (2), and (EdgeTx, EdgeTy) is set as the correction processing start coordinates (StartX, StartY).

α=α−90・・・・・(2)
次に、算出した角度αを補正した際の、原稿頂点座標(EdgeTx’, EdgeTy’), (EdgeBx’, EdgeBy’), (EdgeLx’, EdgeLy’), (EdgeRx’, EdgeRy’)を下記の式(3)によって算出する。
α = α-90 (2)
Next, the original vertex coordinates (EdgeTx ', EdgeTy'), (EdgeBx ', EdgeBy'), (EdgeLx ', EdgeLy'), (EdgeRx ', EdgeRy') when the calculated angle α is corrected are as follows: Calculated according to equation (3).

Figure 2010103808
Figure 2010103808

ここで、Xは、T, B, L, Rのいずれかである。 Here, X is any one of T, B, L, and R.

式(3)により算出された補正後の原稿頂点座標より、補正後の原稿の高さ(補正後原稿高さ)、補正後の原稿の幅(補正後原稿幅)を、それぞれ次の式(4)、(5)により算出する。   From the corrected document vertex coordinates calculated by equation (3), the corrected document height (corrected document height) and corrected document width (corrected document width) are respectively expressed by the following equations ( 4) Calculated according to (5).

補正後原稿高さ = MAX(EdgeTy’, EdgeBy’, EdgeLy’, EdgeRy’) - MIN(EdgeTy’, EdgeBy’, EdgeLy’, EdgeRy’)・・・・・(4)
補正後原稿幅 = MAX(EdgeTx’, EdgeBx’, EdgeLx’, EdgeRx’) - MIN(EdgeTx’, EdgeBx’, EdgeLx’, EdgeRx’)・・・・・(5)
ここで算出された補正後原稿高さ、補正後原稿幅を、原稿傾き・サイズ補正後の原稿サイズとして利用する。本実施の形態においては、原稿サイズは、定型サイズではなく、上記処理により算出された補正後原稿高さおよび補正後原稿幅を用いる。また、算出された補正後原稿高さおよび補正後原稿幅について、定型サイズの用紙との対応関係を、出力解像度別に用紙サイズテーブルとして格納しておく。例えば、解像度300dpi時の用紙サイズテーブル例を図6に示す。
Document height after correction = MAX (EdgeTy ', EdgeBy', EdgeLy ', EdgeRy')-MIN (EdgeTy ', EdgeBy', EdgeLy ', EdgeRy') (4)
Document width after correction = MAX (EdgeTx ', EdgeBx', EdgeLx ', EdgeRx')-MIN (EdgeTx ', EdgeBx', EdgeLx ', EdgeRx') (5)
The corrected document height and corrected document width calculated here are used as the document size after the document skew / size correction. In the present embodiment, the original size is not a standard size, but the corrected original height and corrected original width calculated by the above processing. In addition, the correspondence relationship between the calculated corrected document height and corrected document width with a standard size sheet is stored as a sheet size table for each output resolution. For example, FIG. 6 shows an example of a paper size table when the resolution is 300 dpi.

用紙サイズテーブルを用いて用紙サイズの決定方法について説明する。この用紙サイズを決定する処理は、判定部83により行われる。まず、算出された補正後原稿幅が用紙サイズテーブルの幅以下になる最初の範囲で用紙サイズを絞り込み、さらに、用紙サイズテーブルの高さが補正後原稿高さとなる最初の用紙サイズを用紙サイズとして設定する。例えば、図6を用いて具体的に説明すると、300dpi換算時の算出された補正後原稿幅が2480、補正後原稿高さ3500であった場合、まず、出力用紙サイズテーブルの用紙幅の欄より、A4または、A5Rに絞り込まれ、さらに高さの欄より、A4が用紙サイズとして選択される。   A paper size determination method will be described using a paper size table. The process for determining the paper size is performed by the determination unit 83. First, the paper size is narrowed down in the first range where the calculated corrected document width is less than or equal to the width of the paper size table, and the first paper size whose height in the paper size table is the corrected document height is set as the paper size. Set. For example, referring to FIG. 6, when the corrected document width calculated at 300 dpi is 2480 and the corrected document height is 3500, first, from the sheet width column of the output sheet size table. , A4 or A5R, and A4 is selected as the paper size from the height column.

なお、出力用紙サイズテーブルの設定値は、サイズ検知の結果の誤差を考慮して、実際のサイズよりも約10mm程度大きくなる画素数で設定されている。   Note that the set value of the output paper size table is set to the number of pixels that is about 10 mm larger than the actual size in consideration of the error of the size detection result.

原稿傾き・サイズ検出部8は、補正パラメータとして、上記算出した、「原稿の傾き角度α」、「原稿傾き・サイズ補正後の原稿サイズ(以降では補正後の原稿サイズとする)」、「補正処理開始座標」、を原稿傾き・サイズ補正部9に送る。   The document inclination / size detection unit 8 calculates, as correction parameters, “original inclination angle α”, “original size after original inclination / size correction (hereinafter referred to as corrected original size)”, “correction”. “Processing start coordinates” is sent to the document inclination / size correction unit 9.

(原稿傾き・サイズ補正部)
次に、原稿傾き・サイズ補正部9での傾き・サイズ補正処理について説明する。本実施形態では、傾き・サイズ補正処理として、例えば、回転行列を用いたアフィン変換処理等を利用できる。このアフィン変換処理について以下詳に説明する。
(Original skew / size correction section)
Next, the inclination / size correction processing in the original inclination / size correction unit 9 will be described. In the present embodiment, for example, an affine transformation process using a rotation matrix can be used as the inclination / size correction process. This affine transformation process will be described in detail below.

まず、一般に座標(x, y)をθ回転させた座標(x’, y’)は、以下の式(6)から求められる。   First, in general, coordinates (x ′, y ′) obtained by rotating coordinates (x, y) by θ can be obtained from the following equation (6).

Figure 2010103808
Figure 2010103808

ここで、原稿傾き・サイズ補正部9では画像の画素および画素値を座標および座標値として処理するので、よって以降では、座標(m,n)を画素(m、n)というように説明する。   Here, since the document inclination / size correction unit 9 processes the pixel and the pixel value of the image as coordinates and coordinate values, the coordinate (m, n) will be described as a pixel (m, n) hereinafter.

図7に示すように、画素(x’, y’)の画素値Zを出力するためには、画素(x’, y’)の座標値を整数とし、画素(x’, y’)の回転前の画素(x, y)を画素(xs+StartX, ys+StartY)と定め(xs+StartXおよびys+StartYは実数)、画素(xs+StartX, ys+StartY)の画素値Zをバイリニア法等の補間演算によって求める。   As shown in FIG. 7, in order to output the pixel value Z of the pixel (x ′, y ′), the coordinate value of the pixel (x ′, y ′) is an integer, and the pixel (x ′, y ′) The pixel (x, y) before rotation is defined as the pixel (xs + StartX, ys + StartY) (xs + StartX and ys + StartY are real numbers), and the pixel value Z of the pixel (xs + StartX, ys + StartY) is bilinear Obtained by interpolation such as modulo.

具体的には、上記式(6)の逆変換式である下記式(7)によって、画素(x’, y’)の回転前の画素(xs+StartX, ys+StartY)を求めることができる。   Specifically, the pixel (xs + StartX, ys + StartY) before the rotation of the pixel (x ′, y ′) can be obtained by the following equation (7) which is an inverse transformation equation of the above equation (6). .

Figure 2010103808
Figure 2010103808

そして、図7に示す回転前画像のx−y座標系において、画素(xs+StartX, ys+StartY)の周囲4点に位置する画素(xi, yj), (xi+1, yj), (xi, yj+1), (xi+1, yj+1),の各々の画素値Z1〜Z4を下記式(8)に代入することにより、画素(xs+StartX, ys+StartY)の画素値Z、つまり画素(x’, y’)の画素値Zを求めることができる。ここで、xi≦xs+StartX<xi+1、yj≦ys+StartY<yj+1、|xi+1- xs| : |xs - xi| = (1 - u): u、|yj+1 - ys | : |ys - yj| = (1 - v) : v、である(ただし、u,vは共に0以上1未満)である。 Then, in the xy coordinate system of the pre-rotation image shown in FIG. 7, pixels (x i , y j ), (x i + 1 , y) located at four points around the pixel (xs + StartX, ys + StartY) j ), (x i , y j + 1 ), (x i + 1 , y j + 1 ), by substituting the pixel values Z 1 to Z 4 into the following equation (8), the pixel (xs + StartX, ys + StartY), that is, the pixel value Z of the pixel (x ′, y ′) can be obtained. Where x i ≤xs + StartX <x i + 1 , y j ≤ys + StartY <y j + 1 , | x i + 1 -xs |: | xs-x i | = (1-u): u | Y j + 1 -ys |: | ys-y j | = (1-v): v (where u and v are both 0 or more and less than 1).

Figure 2010103808
Figure 2010103808

なお、アフィン変換で用いられる三角比の値(正弦値、余弦値)も図5のようにテーブルで保存しておけば、演算の高速化が可能になる。回転補正後の画素(x’,y’)に関して、0≦x’<補正後原稿幅、0≦y’<補正後原稿高さ、となる。   If the trigonometric ratio values (sine value and cosine value) used in the affine transformation are also stored in a table as shown in FIG. 5, the calculation speed can be increased. For the pixel (x ′, y ′) after rotation correction, 0 ≦ x ′ <corrected document width and 0 ≦ y ′ <corrected document height.

原稿傾き・サイズ補正部9は、原稿傾き・サイズ検出部8の判定部83から補正パラメータが送られてくると、後述する本スキャンにより読み取られ且つ入力階調補正部7にて画質調整処理が施された後の本画像データに対して原稿傾き・サイズ補正処理を実施する。   When the correction parameter is sent from the determination unit 83 of the document inclination / size detection unit 8, the document inclination / size correction unit 9 is read by a main scan (to be described later) and the input gradation correction unit 7 performs image quality adjustment processing. The original inclination / size correction processing is performed on the main image data after being applied.

具体的には、原稿傾き・サイズ補正部9は、まず、原稿の傾きを補正する処理として、原稿傾き・サイズ検出部8から送られてきた補正パラメータのうち、補正処理開始座標および傾き角度αを用いて、本画像データに示される原稿像が、補正処理開始座標を支点として角度αだけ回転するように、本画像データに対してアフィン変換を施す。ここで、原稿傾き・サイズ補正部9は、原稿傾き・サイズ検出部8から受信したサイズ補正後の原稿サイズを用いて、原稿の傾きを補正する画像範囲を特定する。また、上記アフィン変換による傾き補正時に、出力画像の各座標の値を算出するのに必要な画素の値を取得して補間処理を行うので、傾き補正とサイズ補正とは同時に行われることになる。   Specifically, the document inclination / size correction unit 9 first performs correction processing start coordinates and an inclination angle α among the correction parameters sent from the document inclination / size detection unit 8 as processing for correcting the document inclination. Is used to perform affine transformation on the main image data so that the original image shown in the main image data is rotated by an angle α with the correction processing start coordinate as a fulcrum. Here, the document inclination / size correction unit 9 specifies an image range in which the document inclination is corrected using the size-corrected document size received from the document inclination / size detection unit 8. Further, at the time of the inclination correction by the affine transformation, the pixel value necessary for calculating the value of each coordinate of the output image is acquired and the interpolation process is performed, so that the inclination correction and the size correction are performed at the same time. .

以上が原稿傾き・サイズ補正処理である。原稿の傾きの補正と原稿のサイズの補正とはどちらが先に行われても、同時に行われてもよい。   The document skew / size correction processing has been described above. Either the correction of the document inclination or the correction of the document size may be performed first or simultaneously.

(原稿傾き・サイズ検出処理の流れ)
次に、本実施形態のデジタルカラー複写機2において原稿傾き・サイズ補正機能が選択されている場合の、利用者の操作手順およびデジタルカラー複写機2の処理の流れを説明する。図8は、原稿傾き・サイズ補正機能が選択されている場合の利用者の操作手順およびデジタルカラー複写機2の処理の流れを示したフローチャートである。また、図11は、原稿傾き・サイズ補正部9の処理の流れを示したフローチャートである。
(Document skew / size detection process)
Next, an operation procedure of the user and a processing flow of the digital color copying machine 2 when the document inclination / size correction function is selected in the digital color copying machine 2 of the present embodiment will be described. FIG. 8 is a flowchart showing a user operation procedure and a processing flow of the digital color copying machine 2 when the document skew / size correction function is selected. FIG. 11 is a flowchart showing the processing flow of the document inclination / size correction unit 9.

図8に示すように、利用者がカラー画像入力装置3の原稿台561に原稿をセットし(S1)、原稿カバー510を閉じる動作を開始する(S2)。ここで、カラー画像入力装置3は、図9(a)に示すように、原稿カバー510と原稿台561とのなす角度がγ(例えば、60°)になったかを検知し(S3)、γになっていないと(S3においてNO)γになるまでS3を繰り返し、γになったことを検知すると(S3にてYES)、原稿台561に載置されている原稿に対してプレスキャンを行う(S4)。プレスキャン時には、スキャン画像は、原稿カバー510が半開きの状態であるため、図9(b)に示すように、原稿以外の領域は黒くなり、原稿の背景色と原稿以外の領域の差が通常のスキャン時よりも明確になる。   As shown in FIG. 8, the user sets a document on the document table 561 of the color image input device 3 (S1), and starts an operation of closing the document cover 510 (S2). Here, as shown in FIG. 9A, the color image input device 3 detects whether the angle formed by the document cover 510 and the document table 561 is γ (for example, 60 °) (S3), If it is not (NO in S3), S3 is repeated until γ is detected. If it is detected that γ is detected (YES in S3), the document placed on the document table 561 is pre-scanned. (S4). At the time of pre-scanning, the scanned image is in a state where the document cover 510 is half open, so that the area other than the document is black as shown in FIG. 9B, and the difference between the background color of the document and the area other than the document is normal. It becomes clearer than when scanning.

原稿のプレスキャンにより得られたプレ画像データは、原稿傾き・サイズ検出部8に送られ、原稿傾き・サイズ検出部8は、上記したように、プレ画像データの画像のエッジを検出し、補正パラメータとして、原稿の傾き角度α、原稿傾き・サイズ補正後の原稿サイズ、補正処理開始座標、を特定(検出)する(S5)。   The pre-image data obtained by the pre-scan of the original is sent to the original inclination / size detection unit 8, and the original inclination / size detection unit 8 detects the edge of the image of the pre-image data and corrects it as described above. As parameters, the document tilt angle α, document tilt / size corrected document size, and correction processing start coordinates are specified (detected) (S5).

その後、カラー画像入力装置3は、原稿カバー510が完全に閉じられた後、利用者によってコピーボタンが押されたことを確認する(S6)。コピーボタンが押されたことを確認できないと(S6にてNO)、コピーボタンが押されるまでS6を繰り返す。コピーボタンが押されたことを確認すると(S6にてYES)、カラー画像入力装置3は、原稿台561に載置されている原稿に対して本スキャンを実施する(S7)。本スキャンによって得られた本画像データは、カラー画像処理装置1に送られ、入力階調補正部7によって画質調整処理が施された後に画像メモリ16に格納される(S8)。   Thereafter, the color image input device 3 confirms that the user has pressed the copy button after the document cover 510 is completely closed (S6). If it cannot be confirmed that the copy button has been pressed (NO in S6), S6 is repeated until the copy button is pressed. If it is confirmed that the copy button has been pressed (YES in S6), the color image input device 3 performs a main scan on the document placed on the document table 561 (S7). The main image data obtained by the main scan is sent to the color image processing apparatus 1, subjected to image quality adjustment processing by the input tone correction unit 7, and then stored in the image memory 16 (S 8).

その後、図11に示すように、原稿傾き・サイズ補正部9は、画像メモリ16に格納されている本画像データを読み出す(S101)。そして、原稿傾き・サイズ補正部9は、原稿傾き・サイズ検出部8から補正パラメータを用いて、上記式(6)〜(8)を利用して、S101にて読み出した本画像データに対して傾き・サイズ補正を施し(S102)、傾き・サイズ補正後の画像データを画像メモリ16に格納する(S103)。   Thereafter, as shown in FIG. 11, the document inclination / size correction unit 9 reads the main image data stored in the image memory 16 (S101). Then, the document inclination / size correction unit 9 uses the correction parameters from the document inclination / size detection unit 8 and uses the above formulas (6) to (8) to the main image data read in S101. The inclination / size correction is performed (S102), and the image data after the inclination / size correction is stored in the image memory 16 (S103).

その後、傾き・サイズ補正された画像データを、画像メモリ16から読み出し、後段の領域分離処理部10へ送られ、順次パイプライン処理を施す。これらの処理は、上記したように、制御部(CPU)の制御の下で行われる。   Thereafter, the image data corrected for inclination and size is read from the image memory 16 and sent to the subsequent region separation processing unit 10 to sequentially perform pipeline processing. These processes are performed under the control of the control unit (CPU) as described above.

(角度検知機構)
本実施形態によれば、カラー画像入力装置3は、原稿台561と原稿カバー510とのなす角度がγになったことをトリガーとしてプレスキャンを開始している。よって、装置の構成としては、原稿台561と原稿カバー510とのなす角度を検出する角度検出機構がカラー画像入力装置3に設けられているということである。そして、カラー画像入力装置3を制御する制御部(不図示)は、角度検出機構にて検出される角度がγになれば、カラー画像入力装置3にプレスキャンを実行させるということである。
(Angle detection mechanism)
According to the present embodiment, the color image input device 3 starts pre-scanning with the angle formed by the document table 561 and the document cover 510 being γ. Therefore, the configuration of the apparatus is that the color image input apparatus 3 is provided with an angle detection mechanism that detects an angle formed between the document table 561 and the document cover 510. A control unit (not shown) that controls the color image input apparatus 3 causes the color image input apparatus 3 to perform pre-scanning when the angle detected by the angle detection mechanism becomes γ.

角度検出機能の一例として光学式のリニアエンコーダ(検出部)を挙げることができる。以下ではリニアエンコーダについて図に基づいて説明する。   An example of the angle detection function is an optical linear encoder (detection unit). Below, a linear encoder is demonstrated based on figures.

図12は、角度検出機構の一例である光学式のリニアエンコーダ120を示した模式図であり、(a)は原稿カバー510が全開状態であるときのリニアエンコーダ120の状態を示し、(b)は原稿台561と原稿カバー510とのなす角度がγである時のリニアエンコーダ120の状態を示し、(c)は原稿カバー510が完全に閉じられたときのリニアエンコーダ120の状態を示す。リニアエンコーダ120は、センサ保持台121、フォトセンサ122,123、アクチュエータ124を備えている。   12A and 12B are schematic views showing an optical linear encoder 120 which is an example of an angle detection mechanism. FIG. 12A shows a state of the linear encoder 120 when the document cover 510 is fully opened, and FIG. Shows the state of the linear encoder 120 when the angle between the document table 561 and the document cover 510 is γ, and (c) shows the state of the linear encoder 120 when the document cover 510 is completely closed. The linear encoder 120 includes a sensor holding base 121, photosensors 122 and 123, and an actuator 124.

また、図13(a)は、図12のリニアエンコーダ120に備えられるフォトセンサ122,123およびアクチュエータ124の上面図であり、図13(b)はフォトセンサ122,123およびアクチュエータ124の正面図であり、図13(c)はフォトセンサ122,123およびアクチュエータ124の側面図である。   13A is a top view of the photosensors 122 and 123 and the actuator 124 included in the linear encoder 120 of FIG. 12, and FIG. 13B is a front view of the photosensors 122 and 123 and the actuator 124. FIG. 13C is a side view of the photosensors 122 and 123 and the actuator 124.

図12および図13に示されるリニアエンコーダ120は、スリットが複数設けられているアクチュエータ124を有している。そして、フォトセンサ122,123の発光素子125と受光素子126との間に前記スリットが位置したときに、フォトセンサ123から出力される信号がONとなる。つまり、原稿カバー510の開閉状態により、アクチュエータ124が上下方向に動き、フォトセンサ123から出力される信号波形が変化する。   The linear encoder 120 shown in FIGS. 12 and 13 has an actuator 124 provided with a plurality of slits. When the slit is positioned between the light emitting element 125 and the light receiving element 126 of the photosensors 122 and 123, a signal output from the photosensor 123 is turned on. That is, depending on the open / close state of the document cover 510, the actuator 124 moves in the vertical direction, and the signal waveform output from the photosensor 123 changes.

また、図12に示すように、リニアエンコーダ120は、アクチュエータ124を支持するためのセンサ保持台121を有している。センサ保持台121は、筒のような形状になっており、アクチュエータ124の上下運動が可能なように、バネ等が挿入されている。   As shown in FIG. 12, the linear encoder 120 has a sensor holding base 121 for supporting the actuator 124. The sensor holding base 121 is shaped like a cylinder, and a spring or the like is inserted so that the actuator 124 can move up and down.

図14は、原稿カバー510およびリニアエンコーダ120の状態が、図12(a)に示す全開状態から、図12(b)に示す角度γ状態を経由して、図12(c)に示す全閉状態へ遷移するときの、フォトセンサ122,123の信号波形の変化を表したものである。そして、図14の参照符号127に示される期間を検出することにより、原稿台561と原稿カバー510とのなす角度がγになっていることを検出できるようになっている。なお、γの値はフォトセンサ122,123の発光素子と受光素子との間にスリットが配されることを条件として自由に設定することが可能である。   14 shows that the document cover 510 and the linear encoder 120 are in the fully closed state shown in FIG. 12C from the fully opened state shown in FIG. 12A through the angle γ state shown in FIG. It shows changes in the signal waveforms of the photosensors 122 and 123 when transitioning to a state. Then, by detecting the period indicated by reference numeral 127 in FIG. 14, it is possible to detect that the angle between the document table 561 and the document cover 510 is γ. Note that the value of γ can be freely set on condition that a slit is provided between the light emitting element and the light receiving element of the photosensors 122 and 123.

また、上記角度検出機構の他の例として光学式のロータリーエンコーダ(検出部)を挙げることができる。以下ではロータリーエンコーダについて図に基づいて説明する。   Another example of the angle detection mechanism is an optical rotary encoder (detection unit). Below, a rotary encoder is demonstrated based on figures.

図15は、光学式のロータリーエンコーダ150を示した模式図であり、(a)は原稿カバー510が全開状態であるときのロータリーエンコーダ150の状態を示し、(b)は原稿台561と原稿カバー510とのなす角度がγである時のロータリーエンコーダ150の状態を示し、(c)は原稿カバー510が完全に閉じられたときのロータリーエンコーダ150の状態を示す。また、図16は、図15(c)に示される矢印方向からロータリーエンコーダ150を見た図である。   15A and 15B are schematic views showing the optical rotary encoder 150. FIG. 15A shows the state of the rotary encoder 150 when the document cover 510 is fully opened, and FIG. 15B shows the document table 561 and the document cover. The state of the rotary encoder 150 when the angle formed with 510 is γ is shown, and (c) shows the state of the rotary encoder 150 when the document cover 510 is completely closed. FIG. 16 is a view of the rotary encoder 150 viewed from the direction of the arrow shown in FIG.

図15および図16に示すように、ロータリーエンコーダ150は、円板151とフォトセンサ152,153とを有している。円板151は、原稿カバー510の動きと連動して回転するものであり、周方向に沿ってスリットが複数形成されている。フォトセンサ152とフォトセンサ153とは、互いに90度の角度を成して配置されている。   As shown in FIGS. 15 and 16, the rotary encoder 150 includes a disc 151 and photosensors 152 and 153. The disc 151 rotates in conjunction with the movement of the document cover 510, and a plurality of slits are formed along the circumferential direction. The photo sensor 152 and the photo sensor 153 are arranged at an angle of 90 degrees with respect to each other.

そして、図16に示されるように、円板151に形成されているスリットは、円板151の回転に伴い、フォトセンサ152の発光素子154aと受光素子155aとの間を通過するようになっている。また、フォトセンサ153の発光素子154bと受光素子155bとの間には、原稿カバーが完全に閉じられるタイミングにおいてのみ円板151に形成されているスリットが位置するようになっている。   As shown in FIG. 16, the slits formed in the disk 151 pass between the light emitting element 154a and the light receiving element 155a of the photosensor 152 as the disk 151 rotates. Yes. Further, a slit formed in the disk 151 is positioned between the light emitting element 154b and the light receiving element 155b of the photosensor 153 only at the timing when the document cover is completely closed.

図17は、原稿カバー510およびロータリーエンコーダ150の状態が、図15(a)に示す全開状態から、図15(b)に示す角度γ状態を経由して、図15(c)に示す全閉状態へ遷移するときの、フォトセンサ152,153の信号波形の変化を表したものである。そして、図17の参照符号156に示されるフォトセンサ152のON期間を検出することにより、原稿台561と原稿カバー510とのなす角度がγになっていることを検知できるようになっている。なお、γの値はフォトセンサ152の発光素子154aと受光素子155bとの間にスリットが配されることを条件として自由に設定することが可能である。   17 shows that the document cover 510 and the rotary encoder 150 are fully closed as shown in FIG. 15C from the fully open state shown in FIG. 15A through the angle γ state shown in FIG. 15B. It shows changes in signal waveforms of the photosensors 152 and 153 when transitioning to a state. Then, by detecting the ON period of the photosensor 152 indicated by reference numeral 156 in FIG. 17, it is possible to detect that the angle formed between the document table 561 and the document cover 510 is γ. Note that the value of γ can be freely set on condition that a slit is provided between the light emitting element 154a and the light receiving element 155b of the photosensor 152.

また、本実施形態のデジタルカラー複写機2は、複写処理モードにおけると特別機能のうちの原稿傾き・サイズ補正機能が選択された場合に、原稿傾き・サイズ補正を実行する構成である。つまり、本実施形態のデジタルカラー複写機2では、原稿傾き・サイズ検出部8および原稿傾き・サイズ補正部9を動作させる原稿傾き・サイズ補正モード(原稿傾き・サイズ補正機能を選択するモード)と、動作させない非補正モード(原稿傾き・サイズ補正機能を選択しないモード)とを切り換えることができる。これは、図示しない制御部(モード制御部)によって行われる。そこで、この原稿傾き・サイズ補正機能を選択するため不図示の操作パネルに表示される画面であって、特別機能の各種メニューを示す画面を図18に示す。   The digital color copying machine 2 according to the present embodiment is configured to execute document skew / size correction when the document skew / size correction function is selected as a special function in the copy processing mode. In other words, in the digital color copying machine 2 of the present embodiment, the original inclination / size correction mode (mode for selecting the original inclination / size correction function) for operating the original inclination / size detection unit 8 and the original inclination / size correction unit 9 is set. , It is possible to switch to a non-correction mode that does not operate (a mode in which the document skew / size correction function is not selected). This is performed by a control unit (mode control unit) (not shown). FIG. 18 shows a screen displayed on an operation panel (not shown) for selecting the original skew / size correction function and showing various menus of special functions.

デジタルカラー複写機2の不図示の制御部は、図18に示される特別機能の各種メニューを表示し、この中から利用者が「原稿傾き・サイズ補正」を選択したのを上記制御部が受け付けると、図19に示すような、原稿傾き・サイズ補正のメニュー画面を表示する。図19のメニュー画面は、原稿傾き・サイズ補正機能の設定状態を利用者に選択させるための画面である。図19のメニュー画面には、「常に設定する」ボタンと「スキャンの度に確認する」ボタンとが表示されており、利用者に選択を要求する。ここで、利用者により「スキャンの度に確認する」ボタンが選択され、上記制御部が原稿傾き・サイズ補正機能を常に設定することを受け付けると、複写あるいはファイリング(原稿を読み取って送信する処理)を行うときには必ず原稿傾き・サイズ検出部8が機能し、原稿傾き・サイズ補正部9に原稿傾き・サイズ補正処理が行われる。   The control unit (not shown) of the digital color copying machine 2 displays various menus of special functions shown in FIG. 18, and the control unit accepts that the user has selected “original skew / size correction” from among them. Then, a menu screen for document inclination / size correction as shown in FIG. 19 is displayed. The menu screen of FIG. 19 is a screen for allowing the user to select the setting state of the document skew / size correction function. In the menu screen of FIG. 19, an “always set” button and a “confirm every scan” button are displayed, and the user is requested to select. Here, when the user selects the “confirm every scan” button and accepts that the control unit always sets the document tilt / size correction function, copying or filing (processing for reading and transmitting the document) The document inclination / size detection unit 8 always functions when performing the above, and the document inclination / size correction unit 9 performs document inclination / size correction processing.

また、利用者により「常に設定する」ボタンが選択されると、上記制御部は、原稿傾き・サイズ補正機能を常に設定することを受け付け、図20に示すメニュー画面を表示する。図20に示される画像は、原稿傾き・サイズ補正の使用手順の表示の要否を利用者に選択させる画像である。図20のメニュー画面には、使用手順を表示「する」ボタンと「しない」ボタンとが表示されており、利用者に選択を要求する。   When the “always set” button is selected by the user, the control unit accepts that the document skew / size correction function is always set, and displays the menu screen shown in FIG. The image shown in FIG. 20 is an image that allows the user to select whether or not to display a usage procedure for document skew / size correction. On the menu screen of FIG. 20, a “Yes” button and a “No” button for displaying the usage procedure are displayed, and the user is requested to select.

なお、図示しないが、プレスキャンを実施する際の原稿カバー510と原稿台561との角度γ、閾値Th等を設定するための画面を、操作パネルに表示してもよい。   Although not shown, a screen for setting the angle γ between the document cover 510 and the document table 561 when performing pre-scanning, the threshold value Th, and the like may be displayed on the operation panel.

以上のように、本実施形態では、原稿傾き・サイズ検出部8が、原稿台561と原稿カバー510との成す角がγであるときに原稿の読み取りを開始して得られるプレ画像データから、補正パラメータとして、走査方向あるいは副走査方向に対する原稿の傾き角度αと、補正後の原稿サイズと、補正処理開始座標、とを特定する。そして、原稿傾き・サイズ補正部9は、原稿カバーが閉じられた後に前記原稿の読み取りを開始して得られる本画像データに対して、原稿傾き・サイズ検出部8の出力結果に基づき、原稿の角度と原稿サイズとを補正する。本実施形態の構成によれば、原稿の傾きおよび原稿のサイズを正確に検知でき、原稿の傾きの補正および原稿サイズの補正の後の画像として、見た目のよい高品質な画像が得られる。   As described above, in the present embodiment, from the pre-image data obtained when the document inclination / size detection unit 8 starts reading the document when the angle between the document table 561 and the document cover 510 is γ, As the correction parameters, the document inclination angle α with respect to the scanning direction or the sub-scanning direction, the corrected document size, and the correction processing start coordinates are specified. Then, the document inclination / size correction unit 9 applies the original image data obtained by starting the reading of the document after the document cover is closed based on the output result of the document inclination / size detection unit 8. Correct the angle and document size. According to the configuration of the present embodiment, it is possible to accurately detect the inclination of the original and the size of the original, and a high-quality image with a good appearance can be obtained as an image after the correction of the original inclination and the correction of the original size.

〔実施の形態2〕
本実施形態では、本発明に係る画像形成装置の別の形態のデジタルカラー複写機について、図に基づき説明する。図21は、本発明に係る画像処理装置の別の形態であるカラー画像処理装置1’を有するデジタルカラー複写機(画像形成装置)200の構成を表すブロック図である。本実施形態のデジタルカラー複写機200は、カラー画像処理装置1’、カラー画像入力装置3、カラー画像出力装置4を備えている。
[Embodiment 2]
In this embodiment, a digital color copying machine according to another embodiment of the image forming apparatus according to the present invention will be described with reference to the drawings. FIG. 21 is a block diagram showing a configuration of a digital color copying machine (image forming apparatus) 200 having a color image processing apparatus 1 ′ which is another form of the image processing apparatus according to the present invention. The digital color copying machine 200 of this embodiment includes a color image processing apparatus 1 ′, a color image input apparatus 3, and a color image output apparatus 4.

本実施形態では、図21に示すように、カラー画像処理装置1’を、前段処理部1aと後段処理部1bとに分離し、前段処理部1aの出力を画像記憶装置(HDD)201に格納し、画像記憶装置201から読み出したデータを、後段処理部1bの入力データとして処理し、最終的に画像を出力する処理を実行する形態について説明する。なお、実施の形態1と同様の機能を有する装置またはブロックは、同じ符号を付し、その説明を省略する。   In the present embodiment, as shown in FIG. 21, the color image processing apparatus 1 ′ is separated into a pre-processing unit 1 a and a post-processing unit 1 b, and the output of the pre-processing unit 1 a is stored in an image storage device (HDD) 201. Then, a mode in which data read from the image storage device 201 is processed as input data of the post-processing unit 1b and finally an image is output will be described. Note that devices or blocks having the same functions as those in Embodiment 1 are denoted by the same reference numerals, and description thereof is omitted.

前段処理部1aは、A/D変換部5、シェーディング補正部6、入力階調補正部7、原稿傾き・サイズ検出部8を備えている。前段処理部1aの入力階調補正部7で処理された本画像データ(本スキャンにて得られた画像データ)を画像記憶装置201に格納する。また、同時に原稿傾き・サイズ補正処理機能が選択されている場合は、プレスキャンによって得られるプレ画像データが原稿傾き・サイズ検出部8に送られる。そして、原稿傾き・サイズ検出部8は、補正パラメータ(角度α、補正後原稿サイズ、補正処理開始座標)を求め、本画像データと関連付けて画像記憶装置201に格納する。   The pre-processing unit 1 a includes an A / D conversion unit 5, a shading correction unit 6, an input tone correction unit 7, and a document inclination / size detection unit 8. The main image data (image data obtained by the main scan) processed by the input tone correction unit 7 of the pre-processing unit 1 a is stored in the image storage device 201. If the document skew / size correction processing function is selected at the same time, pre-image data obtained by prescanning is sent to the document skew / size detection unit 8. Then, the document inclination / size detection unit 8 obtains correction parameters (angle α, corrected document size, correction processing start coordinates), and stores them in the image storage device 201 in association with the main image data.

一方、後段処理部1bは、原稿傾き・サイズ補正部9、領域分離処理部10、色補正部11、黒生成下色除去部12、空間フィルタ処理部、出力階調補正部14、階調再現処理部15を備えている。画像記憶装置201に格納されている入力階調補正後の本画像データと、それと関連付けて格納されている補正パラメータを読み出し、原稿傾き・サイズ補正部9にて座標変換した結果を順次、後段処理部1bに接続されている画像メモリ16bに格納して行く。   On the other hand, the post-processing unit 1b includes a document inclination / size correction unit 9, a region separation processing unit 10, a color correction unit 11, a black generation and under color removal unit 12, a spatial filter processing unit, an output gradation correction unit 14, and a gradation reproduction. A processing unit 15 is provided. The main image data after the input tone correction stored in the image storage device 201 and the correction parameters stored in association therewith are read out, and the result of coordinate conversion by the document inclination / size correction unit 9 is sequentially processed in the subsequent stage. The image data is stored in the image memory 16b connected to the unit 1b.

領域分離処理部10では、画像メモリ16bに格納されている傾き・サイズ補正後の本画像データに対して領域分離処理を実施する。それ以降の各処理部は、パイプライン方式にて処理を進めていく。   The region separation processing unit 10 performs region separation processing on the main image data after the inclination / size correction stored in the image memory 16b. Subsequent processing units proceed with the pipeline method.

以上にて説明した本実施形態の構成によれば、カラー画像処理装置1’において、前段処理部1aの処理と後段処理部1bの処理とを非同期で進行させることが可能になる。それゆえ、例えば、前段処理部1aから出力された補正パラメータと本画像データとを一旦画像記憶装置201に保存しておくことができる。これにより、保存した本画像データに対して別途必要な時に原稿傾き・サイズ補正を施し、プリントアウトするようなことがいつでも可能になる。   According to the configuration of the present embodiment described above, in the color image processing apparatus 1 ′, it is possible to cause the processing of the pre-processing unit 1 a and the processing of the post-processing unit 1 b to proceed asynchronously. Therefore, for example, the correction parameter and the main image data output from the pre-processing unit 1a can be temporarily stored in the image storage device 201. As a result, the stored original image data can be printed out at any time by performing document skew / size correction when necessary.

〔実施の形態3〕
本実施形態では、本発明に係る画像形成装置の一形態として、実施の形態1の原稿傾き・サイズ検出部8および原稿傾き・サイズ補正部9を備えたスキャナ専用機(画像読取装置)について説明する。図22は、本実施形態のスキャナ専用機300の構成図を示すブロック図である。なお、実施の形態1と同様の機能を有する装置またはブロックは、同じ符号を付し、その説明を省略する。
[Embodiment 3]
In this embodiment, a scanner-dedicated machine (image reading apparatus) provided with the document inclination / size detection unit 8 and the document inclination / size correction unit 9 according to the first embodiment will be described as an embodiment of the image forming apparatus according to the present invention. To do. FIG. 22 is a block diagram illustrating a configuration diagram of the scanner-dedicated device 300 according to the present embodiment. Note that devices or blocks having the same functions as those in Embodiment 1 are denoted by the same reference numerals, and description thereof is omitted.

図22に示すように、スキャナ専用機300は、カラー画像入力装置3、カラー画像処理装置(画像処理装置)301を備えている。カラー画像処理装置301は、A/D変換部5、シェーディング補正部6、入力階調補正部7、原稿傾き・サイズ検出部8、原稿傾き・サイズ補正部9および、セレクタ302を備えている。   As shown in FIG. 22, the scanner-dedicated device 300 includes a color image input device 3 and a color image processing device (image processing device) 301. The color image processing apparatus 301 includes an A / D conversion unit 5, a shading correction unit 6, an input tone correction unit 7, a document inclination / size detection unit 8, a document inclination / size correction unit 9, and a selector 302.

スキャナ専用機300において、原稿傾き・サイズ補正機能が選択されていると、原稿傾き・サイズ検出部8が、プレスキャンによって得られたプレ画像データから上記のようにエッジ座標を検出し、補正パラメータ(傾き角度α、補正後原稿サイズ、補正処理開始座標)を算出する。また、入力階調補正後の本画像データを一旦画像メモリ16に書き込む。その後、原稿傾き・サイズ補正部9は、画像メモリ16から本画像データと補正パラメータとを読み出し、原稿傾き・サイズ補正処理を施し、再度、画像メモリ16に書き込む。1ページ分の画像について原稿傾き・サイズ補正が終了した後、制御部(不図示)が、傾き・サイズ補正後の本画像データを画像メモリ16から読み出し、画像記憶装置301に送出する。   When the original inclination / size correction function is selected in the scanner-dedicated device 300, the original inclination / size detection unit 8 detects the edge coordinates from the pre-image data obtained by the pre-scan as described above, and the correction parameter (Tilt angle α, corrected document size, correction processing start coordinates) are calculated. Further, the main image data after the input gradation correction is temporarily written in the image memory 16. Thereafter, the document inclination / size correction unit 9 reads the main image data and the correction parameters from the image memory 16, performs document inclination / size correction processing, and writes them again in the image memory 16. After the document inclination / size correction is completed for the image of one page, a control unit (not shown) reads the main image data after the inclination / size correction from the image memory 16 and sends it to the image storage device 301.

他方、特別機能として原稿傾き・サイズ補正機能が選択されていないときは、入力階調処理補正後の本画像データを画像記憶装置303に送出する。   On the other hand, when the original skew / size correction function is not selected as a special function, the main image data after the input gradation processing correction is sent to the image storage device 303.

ここで、セレクタ302は、画像記憶装置303への送出データについて、入力階調補正後の本画像データにするか、原稿傾き・サイズ補正処理後の本画像データにするかを、切り換える機能を有する。   Here, the selector 302 has a function of switching data to be sent to the image storage device 303 between the main image data after the input gradation correction and the main image data after the document inclination / size correction processing. .

また、傾き・サイズ補正後データを画像記憶装置303に送出するのではなく、ネットワークを介してスキャナ専用機300に接続されているコンピュータ、サーバ、デジタル複合機、プリンタ等に送信するようにしても良い。また、原稿傾き・サイズ補正機能の選択は、不図示のスキャナ専用機300の操作パネルより行ってもよく、あるいは、コンピュータのスキャナドライバの設定画面(スキャナ専用機300の読取条件の設定画面)にて、マウスやキーボードを用いて行うようにしてもよい。   In addition, data after tilt / size correction is not sent to the image storage device 303, but is sent to a computer, server, digital multifunction peripheral, printer, etc. connected to the scanner dedicated device 300 via a network. good. The document skew / size correction function may be selected from an operation panel of the scanner-dedicated machine 300 (not shown), or may be displayed on a scanner driver setting screen of the computer (reading condition setting screen of the scanner-dedicated device 300). It may be performed using a mouse or a keyboard.

〔実施の形態4〕
本発明の実施の一形態として、上記した原稿の傾き・サイズ判定を行い原稿に回転処理を行う画像処理方法を、コンピュータに実行させるためのプログラムのプログラムコード(実行形式プログラム、中間コードプログラム、ソースプログラム)を記録したコンピュータ読み取り可能な記録媒体に、記録したものが挙げられる。この結果、原稿の傾き・サイズ判定を行い原稿に回転処理を行う画像処理方法行うプログラムを記録した記録媒体を持ち運び自在に提供することができる。
[Embodiment 4]
As an embodiment of the present invention, a program code (execution format program, intermediate code program, source) for causing a computer to execute the above-described image processing method for determining the inclination / size of a document and performing rotation processing on the document. Recorded on a computer-readable recording medium recording a program). As a result, it is possible to provide a portable recording medium on which a program for performing an image processing method for determining the inclination / size of the original and performing rotation processing on the original is recorded.

なお、本実施の形態では、この記録媒体としては、マイクロコンピュータで処理が行われるために図示していないメモリ(例えばROM)そのものがプログラムメディアであってもよい。また、図示していないが外部記憶装置としてプログラム読み取り装置が設けられ、そこに記録媒体を挿入することで読み取り可能なプログラムメディアであってもよい。   In the present embodiment, as the recording medium, a memory (for example, ROM) which is not shown may be a program medium because processing is performed by a microcomputer. Further, although not shown, a program reading device may be provided as an external storage device, and a program medium that can be read by inserting a recording medium therein may be used.

いずれの場合においても、格納されているプログラムコードはマイクロプロセッサがアクセスして実行させる構成であってもよいし、あるいは、いずれの場合もプログラムコードを読み出し、読み出されたプログラムコードは、マイクロコンピュータの図示されていないプログラム記憶エリアにダウンロードされて、そのプログラムコードが実行される方式であってもよい。このダウンロード用のプログラムは予め本体装置に格納されているものとする。   In any case, the stored program code may be configured to be accessed and executed by a microprocessor, or in any case, the program code is read and the read program code is a microcomputer. The program code may be downloaded to a program storage area (not shown) and executed. It is assumed that this download program is stored in the main device in advance.

ここで、上記プログラムメディアは、本体と分離可能に構成される記録媒体であり、磁気テープやカセットテープ等のテープ系、フレキシブルディスクやハードディスク等の磁気ディスクやCD−ROM/MO/MD/DVD等の光ディスクのディスク系、ICカード(メモリカードを含む)/光カード等のカード系、あるいはマスクROM、EPROM(Erasable Programmable Read Only Memory)、EEPROM(Electrically Erasable Programmable Read Only Memory)、フラッシュROM等による半導体メモリを含めた固定的にプログラムコードを担持する媒体であってもよい。   Here, the program medium is a recording medium configured to be separable from the main body, such as a tape system such as a magnetic tape or a cassette tape, a magnetic disk such as a flexible disk or a hard disk, a CD-ROM / MO / MD / DVD, or the like. Semiconductors such as optical discs, IC cards (including memory cards) / optical cards, etc., or mask ROM, EPROM (Erasable Programmable Read Only Memory), EEPROM (Electrically Erasable Programmable Read Only Memory), flash ROM, etc. It may be a medium that carries a fixed program code including a memory.

また、本実施の形態においては、インターネットを含む通信ネットワークを接続可能なシステム構成であることから、通信ネットワークからプログラムコードをダウンロードするように流動的にプログラムコードを担持する媒体であってもよい。なお、このように通信ネットワークからプログラムコードをダウンロードする場合には、そのダウンロード用のプログラムは予め本体装置に格納しておくか、あるいは別な記録媒体からインストールされるものであってもよい。   In the present embodiment, since the system configuration is capable of connecting to a communication network including the Internet, the medium may be a medium that dynamically carries the program code so as to download the program code from the communication network. When the program code is downloaded from the communication network in this way, the program for downloading may be stored in the main device in advance or may be installed from another recording medium.

上記記録媒体は、デジタルカラー画像形成装置やコンピュータシステムに備えられるプログラム読み取り装置により読み取られることで上述した画像処理方法が実行される。なお、本発明は、上記プログラムコードが電子的な伝送で具現化された、搬送波に埋め込まれたコンピュータデータ信号の形態でも実現され得る。   The recording medium is read by a program reading device provided in a digital color image forming apparatus or a computer system, whereby the above-described image processing method is executed. The present invention can also be realized in the form of a computer data signal embedded in a carrier wave in which the program code is embodied by electronic transmission.

コンピュータシステムは、フラットベッドスキャナ・フィルムスキャナ・デジタルカメラなどの画像入力装置、所定のプログラムがロードされることにより上記画像処理方法など様々な処理が行われるコンピュータ、コンピュータの処理結果を表示するCRTディスプレイ・液晶ディスプレイなどの画像表示装置およびコンピュータの処理結果を紙などに出力するプリンタより構成される。さらには、ネットワークを介してサーバなどに接続するための通信手段としてのネットワークカードやモデムなどが備えられる。   The computer system includes an image input device such as a flatbed scanner, a film scanner, and a digital camera, a computer that performs various processes such as the above image processing method by loading a predetermined program, and a CRT display that displays the processing results of the computer. An image display device such as a liquid crystal display and a printer that outputs the processing results of the computer to paper or the like. Furthermore, a network card, a modem, and the like are provided as communication means for connecting to a server or the like via a network.

本発明は上述した各実施形態に限定されるものではなく、請求項に示した範囲で種々の変更が可能であり、上述した実施形態において開示された各技術的手段を適宜組み合わせて得られる実施形態についても本発明の技術的範囲に含まれる。   The present invention is not limited to the above-described embodiments, and various modifications are possible within the scope shown in the claims, and the embodiments can be obtained by appropriately combining the respective technical means disclosed in the above-described embodiments. The form is also included in the technical scope of the present invention.

本発明は、画像処理機能を有する複写機、複合機、スキャナ等に適用できる。   The present invention can be applied to a copying machine, a multifunction machine, a scanner and the like having an image processing function.

本発明の第1の実施形態に係るデジタルカラー複写機の概略構成を示したブロック図である。1 is a block diagram showing a schematic configuration of a digital color copying machine according to a first embodiment of the present invention. 上記デジタルカラー複写機に備えられている画像入力装置の内部構成を示す模式図である。FIG. 2 is a schematic diagram illustrating an internal configuration of an image input apparatus provided in the digital color copying machine. 上記カラー画像処理装置に備えられている原稿傾き・サイズ検出部の概略構成を示したブロック図である。FIG. 2 is a block diagram illustrating a schematic configuration of a document inclination / size detection unit provided in the color image processing apparatus. 傾いた原稿を含むプレ画像データからエッジを検出する説明図である。It is explanatory drawing which detects an edge from the pre image data containing the original document inclined. tanθ、tanαの値とθ、αの値との対応関係を示したテーブルである。4 is a table showing the correspondence between the values of tan θ and tan α and the values of θ and α. 用紙サイズテーブルの一例を示す図である。It is a figure which shows an example of a paper size table. アフィン変換を示す説明図である。It is explanatory drawing which shows an affine transformation. 利用者の操作手順および上記デジタルカラー複写機の処理の流れを示したフローチャートである。It is the flowchart which showed the user's operation procedure and the flow of processing of the digital color copying machine. (a)は、原稿台と原稿カバーとの成す角がγであるときの画像入力装置の側面図であり、(b)は(a)のときスキャンされたスキャン画像を示す図である。(A) is a side view of the image input apparatus when the angle formed by the document table and the document cover is γ, and (b) is a diagram showing a scanned image scanned at (a). (a)は、原稿カバーが閉じられたときの画像入力装置の側面図であり、(b)は(a)のときスキャンされたスキャン画像を示す図である。(A) is a side view of the image input apparatus when the document cover is closed, and (b) is a diagram showing a scanned image scanned at the time of (a). 上位原稿傾き・サイズ補正部の処理の流れを示したフローチャートである。6 is a flowchart showing a flow of processing of an upper document skew / size correction unit. 原稿台と原稿カバーとのなす角度を検出するためのリニアエンコーダを示した模式図であり、(a)は原稿カバーが全開状態であるときのリニアエンコーダの状態を示し、(b)は原稿台と原稿カバーとの成す角度がγの時のリニアエンコーダの状態を示し、(c)は原稿カバーが完全に閉じられたときのリニアエンコーダの状態を示す図である。2A and 2B are schematic views showing a linear encoder for detecting an angle formed between a document table and a document cover, in which FIG. 1A shows the state of the linear encoder when the document cover is fully open, and FIG. FIG. 4C shows the state of the linear encoder when the angle between the document cover and the document cover is γ, and FIG. 8C shows the state of the linear encoder when the document cover is completely closed. (a)は、図12のリニアエンコーダに備えられるフォトセンサおよびアクチュエータの上面図であり、(b)は(a)のフォトセンサおよびアクチュエータの正面図であり、(c)は(a)のフォトセンサおよびアクチュエータの側面図である。(A) is a top view of the photosensor and actuator provided in the linear encoder of FIG. 12, (b) is a front view of the photosensor and actuator of (a), and (c) is the photo of (a). It is a side view of a sensor and an actuator. 図12のリニアエンコーダに備えられるフォトセンサの出力信号の波形を示すチャートである。It is a chart which shows the waveform of the output signal of the photosensor with which the linear encoder of FIG. 12 is equipped. 光学式のロータリーエンコーダを示した模式図であり、(a)は原稿カバーが全開状態であるときのロータリーエンコーダの状態を示し、(b)は原稿台と原稿カバーとのなす角度がγである時のロータリーエンコーダの状態を示し、(c)は原稿カバーが完全に閉じられたときのロータリーエンコーダの状態を示す図である。2A and 2B are schematic diagrams showing an optical rotary encoder, in which FIG. 1A shows the state of the rotary encoder when the document cover is fully open, and FIG. 2B shows the angle formed between the document table and the document cover; (C) is a diagram showing the state of the rotary encoder when the document cover is completely closed. 図15(c)に示される矢印方向からロータリーエンコーダを投影した図である。It is the figure which projected the rotary encoder from the arrow direction shown by FIG.15 (c). 図15のロータリーエンコーダに備えられるフォトセンサの出力信号の波形を示すチャートである。It is a chart which shows the waveform of the output signal of the photosensor with which the rotary encoder of FIG. 15 is equipped. 特別機能の各種メニューを利用者に選択させるための画面を示す図である。It is a figure which shows the screen for making a user select various menus of a special function. 原稿傾き・サイズ補正機能の設定状態を利用者に選択させるための画面を示す図である。FIG. 10 is a diagram showing a screen for allowing a user to select a setting state of a document skew / size correction function. 原稿傾き・サイズ補正の使用ガイドの要否を利用者に選択させる画面を示す図である。FIG. 6 is a diagram illustrating a screen that allows a user to select whether or not a use guide for document skew / size correction is necessary. 本発明の第2の実施形態に係るデジタルカラー複写機を示すブロック図である。It is a block diagram which shows the digital color copying machine which concerns on the 2nd Embodiment of this invention. 本発明の第3の実施形態に係るスキャナ専用機を示すブロック図である。It is a block diagram which shows the scanner dedicated machine which concerns on the 3rd Embodiment of this invention.

符号の説明Explanation of symbols

1,1’ カラー画像処理装置(画像処理装置)
1a 前段処理部
1b 後段処理部
2 デジタルカラー複写機(画像読取装置,画像形成装置)
3 カラー画像入力装置(原稿読取部)
4 カラー画像出力装置
8 原稿傾き・サイズ検出部
9 原稿傾き・サイズ補正部
16 画像メモリ
81 エッジ検出処理部
82 パラメータ算出部
83 判定部
120 リニアエンコーダ(検出部)
122,123 フォトセンサ
150 ロータリーエンコーダ(検出部)
152,153 フォトセンサ
300 スキャナ専用機(画像読取装置)
510 上部筐体(原稿カバー)
561 原稿台
562,563 走査ユニット
565 CCDラインセンサ
1,1 'color image processing device (image processing device)
DESCRIPTION OF SYMBOLS 1a First stage processing part 1b Second stage processing part 2 Digital color copying machine (image reading apparatus, image forming apparatus)
3 Color image input device (document reading unit)
4 Color Image Output Device 8 Document Tilt / Size Detection Unit 9 Document Tilt / Size Correction Unit 16 Image Memory 81 Edge Detection Processing Unit 82 Parameter Calculation Unit 83 Determination Unit 120 Linear Encoder (Detection Unit)
122,123 Photosensor 150 Rotary encoder (detection unit)
152,153 Photosensor 300 Scanner dedicated machine (image reading device)
510 Upper housing (document cover)
561 Document table 562, 563 Scanning unit 565 CCD line sensor

Claims (10)

原稿台、および前記原稿台の原稿載置面に載置される原稿を覆うための前記原稿台に対して開閉可能な原稿カバーを有し、前記原稿載置面に載置される原稿の読み取りを行う原稿読取部の、前記原稿載置面と前記原稿カバーの前記原稿載置面への対向面との成す角が0より大きい第1角度であるときに、前記原稿読取部が前記原稿の読み取りを開始して得られる第1画像データから、前記読み取りの走査方向あるいは副走査方向に対する前記原稿の傾き角度と、前記原稿のサイズと、を検出する原稿傾き・サイズ検出部と、
前記原稿カバーが閉じられた後に前記原稿読取部が前記原稿の読み取りを開始して得られる第2画像データに対して、前記原稿傾き・サイズ検出部の検出結果に基づき、原稿の角度と原稿のサイズとを補正する原稿傾き・サイズ補正部と、
を備えたことを特徴とする画像処理装置。
A document table, and a document cover that can be opened and closed with respect to the document table for covering the document placed on the document placement surface of the document table, and reads the document placed on the document placement surface When the angle formed between the document placement surface of the document reading unit that performs the above and the surface of the document cover facing the document placement surface is a first angle greater than 0, the document reading unit An original inclination / size detection unit for detecting an inclination angle of the original with respect to the scanning direction or sub-scanning direction of the reading and a size of the original, from the first image data obtained by starting reading;
With respect to the second image data obtained when the document reading unit starts reading the document after the document cover is closed, based on the detection result of the document inclination / size detection unit, the angle of the document and the document A document skew / size correction unit for correcting the size,
An image processing apparatus comprising:
請求項1の画像処理装置と、
前記原稿台、前記原稿カバー、および原稿を読み取り画像データを出力する読取出力部を有する前記原稿読取部と、
を備えたことを特徴とする画像読取装置。
An image processing apparatus according to claim 1;
The document table having the document table, the document cover, and a document output unit that reads the document and outputs image data;
An image reading apparatus comprising:
前記原稿読取部は、前記原稿台の前記原稿載置面と前記原稿カバーの前記原稿載置面への対向面との成す角を検出する検出部を有し、
前記原稿読取部は、前記検出部にて検出される角度が、前記第1角度より大きい角度から前記第1角度になると、前記読み取りを開始することを特徴とする請求項2に記載の画像読取装置。
The document reading unit includes a detection unit that detects an angle formed between the document placement surface of the document table and a surface of the document cover facing the document placement surface,
The image reading unit according to claim 2, wherein the document reading unit starts the reading when an angle detected by the detection unit changes from an angle larger than the first angle to the first angle. apparatus.
前記原稿読取部は、ユーザによる前記第1角度の変更を受け付けることを特徴とする請求項2または3に記載の画像読取装置。   The image reading apparatus according to claim 2, wherein the document reading unit receives a change of the first angle by a user. 前記検出部は、光学式のロータリーエンコーダまたは光学式のリニアエンコーダであることを特徴とする請求項3に記載の画像読取装置。   The image reading apparatus according to claim 3, wherein the detection unit is an optical rotary encoder or an optical linear encoder. 前記原稿傾き・サイズ検出部および前記原稿傾き・サイズ補正部を動作させる原稿傾き・サイズ補正モードと、前記原稿傾き・サイズ検出部および前記原稿傾き・サイズ補正部を動作させない非補正モードとを切り換えるモード制御部を備えたことを特徴とする請求項2から5のいずれか1項に記載の画像読取装置。   Switching between a document tilt / size correction mode for operating the document tilt / size detection unit and the document tilt / size correction unit, and a non-correction mode for not operating the document tilt / size detection unit and the document tilt / size correction unit. The image reading apparatus according to claim 2, further comprising a mode control unit. 請求項2から6のいずれか1項に記載の画像読取装置を有することを特徴とする画像形成装置。   An image forming apparatus comprising the image reading apparatus according to claim 2. 原稿台、および前記原稿台の原稿載置面に載置される原稿を覆うための前記原稿台に対して開閉可能な原稿カバーを有し、前記原稿載置面に載置される原稿の読み取りを行う原稿読取部の、前記原稿載置面と前記原稿カバーの前記原稿載置面への対向面との成す角が0より大きい第1角度であるときに、前記原稿読取部が前記原稿の読み取りを開始して得られる第1画像データから、前記読み取りの走査方向あるいは副走査方向に対する前記原稿の傾き角度と、前記原稿のサイズと、を検出する原稿傾き・サイズ検出ステップと、
前記原稿カバーが閉じられた後に前記原稿読取部が前記原稿の読み取りを開始して得られる第2画像データに対して、前記原稿の傾き・サイズ検知ステップでの検出結果に基づき、原稿の角度と原稿のサイズとを補正する原稿傾き・サイズ補正ステップと、
を含むことを特徴とする画像処理方法。
A document table, and a document cover that can be opened and closed with respect to the document table for covering the document placed on the document placement surface of the document table, and reads the document placed on the document placement surface When the angle formed between the document placement surface of the document reading unit that performs the above and the surface of the document cover facing the document placement surface is a first angle greater than 0, the document reading unit An original inclination / size detecting step for detecting an inclination angle of the original with respect to the scanning direction or the sub-scanning direction of the reading and the size of the original, from the first image data obtained by starting reading;
With respect to the second image data obtained when the document reading unit starts reading the document after the document cover is closed, the angle of the document is determined based on the detection result in the document inclination / size detection step. A document skew / size correction step for correcting the document size,
An image processing method comprising:
請求項1に記載の画像処理装置を制御する画像処理プログラムであり、コンピュータを前記画像処理装置の各部として動作させる画像処理プログラム。   An image processing program for controlling the image processing apparatus according to claim 1, wherein the image processing program causes a computer to operate as each unit of the image processing apparatus. 請求項9に記載の画像処理プログラムを記録したコンピュータ読取可能な記録媒体。   A computer-readable recording medium on which the image processing program according to claim 9 is recorded.
JP2008274011A 2008-10-24 2008-10-24 Image processor, image reader, image forming apparatus, image processing method, image processing program and computer readable recording medium Pending JP2010103808A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2008274011A JP2010103808A (en) 2008-10-24 2008-10-24 Image processor, image reader, image forming apparatus, image processing method, image processing program and computer readable recording medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2008274011A JP2010103808A (en) 2008-10-24 2008-10-24 Image processor, image reader, image forming apparatus, image processing method, image processing program and computer readable recording medium

Publications (1)

Publication Number Publication Date
JP2010103808A true JP2010103808A (en) 2010-05-06

Family

ID=42294030

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2008274011A Pending JP2010103808A (en) 2008-10-24 2008-10-24 Image processor, image reader, image forming apparatus, image processing method, image processing program and computer readable recording medium

Country Status (1)

Country Link
JP (1) JP2010103808A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2013232834A (en) * 2012-05-01 2013-11-14 Shimoda Oa System Corp Image processing program, image processing apparatus and image reading apparatus
JP2018133691A (en) * 2017-02-15 2018-08-23 シャープ株式会社 Image reading apparatus and image reading method

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2013232834A (en) * 2012-05-01 2013-11-14 Shimoda Oa System Corp Image processing program, image processing apparatus and image reading apparatus
JP2018133691A (en) * 2017-02-15 2018-08-23 シャープ株式会社 Image reading apparatus and image reading method

Similar Documents

Publication Publication Date Title
JP4570670B2 (en) Image processing apparatus, image reading apparatus, image forming apparatus, image processing method, image processing program, and recording medium
US8310744B2 (en) Image processing apparatus, image forming apparatus, image processing method, and storage medium
JP5196987B2 (en) Image processing apparatus, image processing method, computer program, and recording medium
US8406570B2 (en) Image processing apparatus, image forming apparatus, image reading apparatus, image processing method, and recording medium
JP5442701B2 (en) Image processing method, image processing apparatus, image forming apparatus including the same, image reading apparatus, program, and recording medium
JP2011010033A (en) Image processing apparatus, image forming apparatus, image processing method, computer program and recording medium
JP5290360B2 (en) Image processing apparatus, image forming apparatus, image reading apparatus, image processing method, image processing program, and recording medium
JP2012227569A (en) Image processing apparatus, image forming apparatus, computer program, recording medium and image processing method
JP2010103808A (en) Image processor, image reader, image forming apparatus, image processing method, image processing program and computer readable recording medium
JP2010098445A (en) Image processing apparatus, image reading apparatus, image forming apparatus, method of controlling image processing apparatus, control program, and recording medium
JP2010021937A (en) Image processing apparatus, image reading unit, image forming apparatus, image processing method, program, and recording medium thereof
JP2010011359A (en) Image processing apparatus, image forming apparatus, method of controlling the image processing apparatus, control program, and recording medium
JP5542380B2 (en) Image processing apparatus, image forming apparatus, image processing method, image processing program, and recording medium
JP4931897B2 (en) Image processing apparatus, image forming apparatus, image processing method, computer program, and recording medium
JP2010088048A (en) Image processing apparatus, image forming apparatus, computer program, recording medium, and image processing method
JP4823109B2 (en) Image reading apparatus and control method thereof
JP2005101726A (en) Image processor, image reader, image forming apparatus, image processing method and program
JP2010087826A (en) Image processing device, image reader, image forming apparatus, image processing method, program and recording medium therefor
JP2009194762A (en) Image processing apparatus
JP6081874B2 (en) Image reading device
JP6288514B2 (en) Image reading device
JP2004134857A (en) Original reading apparatus
JP5736068B2 (en) Image processing apparatus, image forming apparatus, image processing method, image processing program, and recording medium
JP2012070285A (en) Image processing method, image processing apparatus, image reading apparatus, image forming device, computer program, and recording medium
JP2010118769A (en) Image processor, image reader, image formation device, image processing method, computer program, and recording medium