JP2011028383A - Image processor, image forming device, image processing method, image processing program and recording medium - Google Patents

Image processor, image forming device, image processing method, image processing program and recording medium Download PDF

Info

Publication number
JP2011028383A
JP2011028383A JP2009171306A JP2009171306A JP2011028383A JP 2011028383 A JP2011028383 A JP 2011028383A JP 2009171306 A JP2009171306 A JP 2009171306A JP 2009171306 A JP2009171306 A JP 2009171306A JP 2011028383 A JP2011028383 A JP 2011028383A
Authority
JP
Japan
Prior art keywords
image
correction
document
size
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.)
Granted
Application number
JP2009171306A
Other languages
Japanese (ja)
Other versions
JP5542380B2 (en
Inventor
Yosuke Konishi
陽介 小西
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 JP2009171306A priority Critical patent/JP5542380B2/en
Publication of JP2011028383A publication Critical patent/JP2011028383A/en
Application granted granted Critical
Publication of JP5542380B2 publication Critical patent/JP5542380B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

<P>PROBLEM TO BE SOLVED: To provide an image processor capable of applying inclination correction or size correction to image data of an already read document without newly reading the document. <P>SOLUTION: In the image processor 102, a control part 106 receives setting related to whether or not to apply at least one correction of the inclination correction and the size correction to an input image. Regardless of contents thereof, a document inclination-size detection part 5 makes the input image associated with four point coordinates specifying an area of a document image included in the input image, and records them into a storage device 104. When the control part 106 receives the setting of the effect of applying the correction to the input image recorded in the storage device 104, a document inclination-size correction part 6 applies the correction corresponding to the setting to the input image based on the four point coordinates. <P>COPYRIGHT: (C)2011,JPO&INPIT

Description

本発明は、原稿を読み取って得られた画像データに対して補正処理を施す機能を有する画像処理装置、画像形成装置、画像処理方法、画像処理プログラムおよびコンピュータ読み取り可能な記録媒体に関するものである。   The present invention relates to an image processing apparatus, an image forming apparatus, an image processing method, an image processing program, and a computer-readable recording medium having a function of correcting image data obtained by reading a document.

画像の読み取り技術の向上に伴い、複写機やスキャナなどは、より高精細に原稿の対象物を読み取ることが可能になっている。また、画像処理技術の向上に伴い、印刷装置や複写機は、ユーザにとってより良好な印刷結果や出力画像データを得ることができるように、読み取りにより得られた入力画像データに補正を施す画像補正機能を備えるようになってきている。   With the improvement of image reading technology, copiers, scanners, and the like are capable of reading a target object of a document with higher definition. In addition, with the improvement of image processing technology, printing apparatuses and copiers perform image correction that corrects input image data obtained by reading so that users can obtain better printing results and output image data. It has come to have functions.

そのような画像補正機能には、傾き補正やサイズ補正などが存在する。傾き補正は、入力画像データを解析して原稿が傾いた状態で読み取られたことを検知し、傾きのない良好な出力結果を得ることができるようにする補正である。また、サイズ補正は、入力画像データを解析して、原稿が適切なサイズで読み取られなかったことを検知し、適切なサイズの出力結果を得ることができるようにする補正である。   Such image correction functions include tilt correction and size correction. Inclination correction is correction that detects that an original has been read in an inclined state by analyzing input image data and can obtain a good output result without inclination. The size correction is a correction that analyzes input image data, detects that a document has not been read at an appropriate size, and obtains an output result of an appropriate size.

特許文献1には、このような画像補正機能を備えた画像ファイリング装置が開示されている。該画像ファイリング装置は、傾き補正やサイズ補正だけでなく、原稿読み取りの際に生じるノイズを補正することができる。また、原稿に含まれる文字や線の切れ具合、つぶれ具合などの特徴点を抽出して、読み取りが適切でないことを検出した場合、その旨をユーザに通知することもできる。   Patent Document 1 discloses an image filing device having such an image correction function. The image filing apparatus can correct not only inclination correction and size correction, but also noise generated during document reading. In addition, when a feature point such as a character or line breakage or crushing condition included in a document is extracted and it is detected that reading is not appropriate, it is possible to notify the user to that effect.

具体的には、画像ファイリング装置は、画像の傾きやドキュメントに含まれる文字や線の切れ具合、つぶれ具合、および、ドキュメントの内容以外の雑音的な成分の分布などの特徴量の少なくとも1つを、読み込んだ画像データと関連づけて記録し、該特徴量を用いて、該画像データを補正する。また、画像ファイリング装置は、ユーザからの指示により補正を行わない、すなわち、特徴量を用いず、読み込んだ画像データをそのまま表示することも可能である。   Specifically, the image filing device uses at least one of feature quantities such as an image inclination, a character or line included in a document, a degree of crushing, and a distribution of noisy components other than the content of the document. The image data is recorded in association with the read image data, and the image data is corrected using the feature amount. Further, the image filing device can also display the read image data as it is without performing correction according to an instruction from the user, that is, without using a feature amount.

特開2000−268159号公報(平成12年9月29日公開)JP 2000-268159 A (published on September 29, 2000)

しかしながら、上記従来の構成では、補正の設定条件を変更した場合に、読み込んだ画像データから再度特徴量を抽出し、傾き補正を行う必要があるという問題を生じる。   However, in the above conventional configuration, when the correction setting condition is changed, there is a problem that it is necessary to extract the feature amount again from the read image data and perform the inclination correction.

すなわち、特許文献1の画像ファイリング装置が画像データと関連付けて記録する特徴量は、画像読み取りの設定条件に依存する。例えば、雑音的な成分の除去を行う設定で原稿を読み取った場合、雑音的な成分の分布が特徴量として画像データと関連づけて記録されることになる。従って、この状態で、傾き補正を施した表示画像を得るには、傾き補正の設定を有効にして再度原稿を読み取り、画像の傾きを特徴量として画像データと関連づけて記録しなければならない。   That is, the feature quantity recorded in association with the image data by the image filing device of Patent Literature 1 depends on the setting conditions for image reading. For example, when a document is read with a setting for removing noisy components, the distribution of noisy components is recorded as a feature quantity in association with image data. Therefore, in order to obtain a display image subjected to tilt correction in this state, the original must be read again with the tilt correction setting enabled, and the tilt of the image must be recorded as a feature amount in association with the image data.

本発明は、上記の問題に鑑みてなされたものであり、その目的は、再度原稿を読み取ることなく、すでに読み取った原稿の画像データに傾き補正やサイズ補正を施すことが可能な画像処理装置を実現することにある。   The present invention has been made in view of the above problems, and an object of the present invention is to provide an image processing apparatus capable of performing tilt correction and size correction on image data of an already read original without reading the original again. It is to be realized.

本発明に係る画像処理装置は、上記課題を解決するために、画像読取装置にて原稿画像全体を含む領域を読み取ることにより生成された、入力画像の画像データを処理する画像処理装置であって、上記原稿画像の傾きを補正する傾き補正、および上記入力画像のサイズを上記原稿画像のサイズに補正するサイズ補正の少なくとも一方の補正を行うか否かに関する設定を受け付ける設定受付手段と、上記設定受付手段が受け付けた設定の内容に関わらず、上記傾き補正および上記サイズ補正に使用する上記原稿画像の領域情報を生成するとともに、上記領域情報と上記入力画像とを関連づけて記憶部に記録する記録手段と、上記設定受付手段が上記少なくとも一方の補正を行う旨の設定を受け付けた場合に、上記入力画像と関連づけて上記記憶部に記録されている上記領域情報に基づいて、上記入力画像に上記設定に応じた補正を施す補正手段とを備えていることを特徴としている。   In order to solve the above problems, an image processing apparatus according to the present invention is an image processing apparatus for processing image data of an input image generated by reading an area including an entire original image with an image reading apparatus. Setting accepting means for accepting a setting relating to whether or not to perform at least one of inclination correction for correcting the inclination of the original image and size correction for correcting the size of the input image to the size of the original image; and the setting Regardless of the content of the setting accepted by the accepting means, the area information of the original image used for the inclination correction and the size correction is generated, and the area information and the input image are associated and recorded in the storage unit. And the setting accepting means receive the setting to perform at least one of the corrections, and store the information in association with the input image. Based on the area information recorded on, is characterized by comprising a correction means for performing correction corresponding to the set in the input image.

上記の構成によれば、画像処理装置は、設定受付手段が受け付けた設定の内容に関わらず、上記傾き補正およびサイズ補正に使用する上記原稿画像の領域情報と、入力画像と、を記憶部に関連づけて記録する。記憶部に記録されている入力画像は、画像読取装置にて原稿を読み取ることにより生成されたものであり補正が施されていない。画像処理装置は、記録部に記録されている入力画像に補正を施す旨の設定を受け付けると、領域情報が示す上記原稿画像の領域情報に基づき入力画像に補正を施す。   According to the above configuration, the image processing apparatus stores, in the storage unit, the area information of the original image used for the tilt correction and the size correction, and the input image, regardless of the content of the setting received by the setting receiving unit. Record in association. The input image recorded in the storage unit is generated by reading an original with an image reading device and is not corrected. When the image processing apparatus receives a setting for correcting the input image recorded in the recording unit, the image processing apparatus corrects the input image based on the area information of the original image indicated by the area information.

従って、画像処理装置は、再度原稿を読み取ることなく、すでに読み取った原稿の画像に傾き補正やサイズ補正を施すことができる。   Therefore, the image processing apparatus can perform inclination correction and size correction on the image of the already read document without reading the document again.

本発明に係る画像処理方法は、上記課題を解決するために、画像読取装置にて原稿画像全体を含む領域を読み取ることにより生成された、入力画像の画像データを処理する画像処理装置の画像処理方法であって、設定受付手段が、上記原稿画像の傾きを補正する傾き補正、および上記入力画像のサイズを上記原稿画像のサイズに補正するサイズ補正の少なくとも一方の補正を行うか否かに関する設定を受け付ける設定受付工程と、上記設定受付手段が受け付けた設定の内容に関わらず、記録手段が、上記傾き補正および上記サイズ補正に使用する上記原稿画像の領域情報を生成するとともに、上記領域情報と上記入力画像とを関連づけて記憶部に記録する記録工程と、上記設定受付手段が上記少なくとも一方の補正を行う旨の設定を受け付けた場合に、補正手段が、上記入力画像と関連づけて上記記憶部に記録されている上記領域情報に基づいて、上記入力画像に上記設定に応じた補正を施す補正工程と、を含んでいることを特徴としている。   In order to solve the above problems, an image processing method according to the present invention performs image processing of an image processing apparatus that processes image data of an input image generated by reading an area including the entire original image with an image reading apparatus. A method for setting whether or not the setting receiving unit performs at least one of inclination correction for correcting the inclination of the original image and size correction for correcting the size of the input image to the size of the original image. Regardless of the setting acceptance step for accepting and the content of the setting accepted by the setting acceptance means, the recording means generates area information of the original image used for the inclination correction and the size correction, and the area information and A recording step of associating and recording the input image in the storage unit, and accepting a setting that the setting accepting unit performs at least one of the corrections. A correction step of correcting the input image according to the setting based on the area information recorded in the storage unit in association with the input image. It is a feature.

上記の構成によれば、本発明に係る画像処理方法は、本発明に係る画像処理装置と同様の作用効果を奏する。   According to said structure, the image processing method which concerns on this invention has an effect similar to the image processing apparatus which concerns on this invention.

上記補正手段は、上記入力画像に上記補正を施すとともに、補正によって得られた補正後画像に含まれる原稿画像の向きを補正する天地補正を補正後画像に施すことが望ましい。   It is desirable that the correction means performs the correction on the input image and also performs a top-and-bottom correction on the corrected image for correcting the orientation of the original image included in the corrected image obtained by the correction.

上記の構成によれば、入力画像に含まれる原稿画像の向きと入力画像の向きとが一致していなくても、補正後画像に含まれる原稿画像の向き(天地)を補正することができるというさらなる効果を奏する。   According to the above configuration, it is possible to correct the orientation (top and bottom) of the document image included in the corrected image even if the orientation of the document image included in the input image does not match the orientation of the input image. There is a further effect.

上記設定受付手段が上記傾き補正および上記サイズ補正を施す旨の設定を受け付けた場合に、上記補正手段は、上記領域情報に基づいて上記原稿画像上の最左端座標、上記原稿画像の幅および高さ、並びに、上記原稿画像の傾き角度を情報として含む補正用情報を生成するとともに、補正用情報に基づいて入力画像に補正を施すことが望ましい。   When the setting accepting unit accepts the setting for performing the tilt correction and the size correction, the correcting unit determines that the leftmost coordinate on the document image, the width and height of the document image are based on the region information. In addition, it is desirable to generate correction information including the angle of inclination of the original image as information, and to correct the input image based on the correction information.

上記設定受付手段が傾き補正のみ施す旨の設定を受け付けた場合に、上記補正手段は、上記領域情報に基づいて、上記入力画像の幅および高さ、並びに、該原稿画像の傾き角度を情報として含む補正用情報を生成するとともに、補正用情報に基づいて入力画像に補正を施すことが望ましい。   When the setting accepting unit accepts a setting that only tilt correction is performed, the correcting unit uses, as information, the width and height of the input image and the tilt angle of the document image based on the region information. It is desirable to generate correction information including the correction and to correct the input image based on the correction information.

上記設定受付手段がサイズ補正のみ施す旨の設定を受け付けた場合に、上記補正手段は、上記領域情報に基づいて上記原稿画像上の最左端座標、該原稿画像の幅、および該原稿画像の高さを情報として含む補正用情報を生成するとともに、補正用情報に基づいて入力画像に補正を施すことが望ましい。   When the setting accepting unit accepts a setting that only size correction is performed, the correcting unit receives the leftmost coordinates on the document image, the width of the document image, and the height of the document image based on the region information. It is desirable to generate correction information including the information as the information and to correct the input image based on the correction information.

上記設定受付手段が上記傾き補正および上記サイズ補正のいずれも施さない旨の設定を受け付けた場合に、上記補正手段は、上記入力画像の幅および高さを表わすパラメータを生成し、上記パラメータに基づいて入力画像から出力画像を生成することが望ましい。   When the setting accepting unit accepts a setting indicating that neither the tilt correction nor the size correction is performed, the correcting unit generates parameters representing the width and height of the input image, and based on the parameters It is desirable to generate an output image from the input image.

上記補正手段は、上記補正用情報に情報として含まれている角度が所定の値以上である場合に限り、上記入力画像に上記傾き補正を施すことが望ましい。   It is desirable that the correction means performs the tilt correction on the input image only when the angle included as information in the correction information is a predetermined value or more.

上記の構成によれば、傾き補正をした場合としない場合で出力した画像に視覚上差異がないような角度を上記所定の値とすることにより、画像処理装置は、無駄な傾き補正の処理を抑制することができるというさらなる効果を奏する。   According to the above configuration, the image processing apparatus performs useless tilt correction processing by setting the predetermined value to an angle at which there is no visual difference between images output with and without tilt correction. There is an additional effect that it can be suppressed.

上記設定受付手段が受け付けた設定が上記傾き補正を行う旨の設定である場合に、上記入力画像を表示用画像として表示部に表示する表示制御手段と、上記入力画像に上記傾き補正を施すか否かの指示をユーザから受け付ける指示受付手段と、をさらに備え、上記補正手段が生成した上記補正用情報に情報として含まれている角度が所定の値未満である場合に限り、上記表示制御手段が上記表示部に上記表示用画像を表示するとともに上記指示受付手段が上記指示をユーザから受け付け、上記指示受付手段が受け付けた指示が上記傾き補正を施す旨を示す場合に上記入力画像に傾き補正を施すことが望ましい。   When the setting received by the setting receiving means is a setting for performing the tilt correction, the display control means for displaying the input image as a display image on the display unit, and whether the tilt correction is performed on the input image. An instruction receiving means for receiving an instruction on whether or not from the user, and the display control means only when the angle included as information in the correction information generated by the correction means is less than a predetermined value. When the display image is displayed on the display unit and the instruction receiving unit receives the instruction from the user, and the instruction received by the instruction receiving unit indicates that the tilt correction is to be performed, the input image is tilt corrected. It is desirable to apply.

上記の構成によれば、画像処理装置は、補正用情報に情報として含まれている角度が所定の値未満である場合、表示部に傾き補正を施して得られる表示用画像を表示する。そして、画像処理装置は、ユーザから傾き補正を施すか否かの指示を受け付け、傾き補正を施す旨の指示を受け付けると、入力画像に傾き補正を施す。   According to the above configuration, when the angle included as information in the correction information is less than a predetermined value, the image processing apparatus displays a display image obtained by performing tilt correction on the display unit. The image processing apparatus receives an instruction from the user as to whether or not to perform tilt correction, and receives an instruction to perform tilt correction and performs tilt correction on the input image.

これにより、画像処理装置は、傾き補正を施して得られる表示用画像を表示部に表示することにより、ユーザに表示用画像を見せて、傾き補正を施すか否かを判断させることができるという効果を奏する。   Accordingly, the image processing apparatus can display the display image obtained by performing the tilt correction on the display unit, thereby allowing the user to show the display image and determine whether to perform the tilt correction. There is an effect.

上記記録手段が生成する上記領域情報には、a)上記原稿画像の4頂点の座標、b)上記原稿画像の4頂点のうちのいずれかの3頂点の座標、c)上記原稿画像の4頂点のうちの対向する2頂点の座標、および該原稿画像の傾き角度、d)上記原稿画像の4頂点のうちのいずれかの座標、該原稿画像の幅、該原稿画像の高さ、および該原稿画像の傾き角度のうちa)〜d)のいずれかが情報として含まれていることが望ましい。   The area information generated by the recording means includes a) coordinates of four vertices of the original image, b) coordinates of any three vertices of the four original images, and c) four vertices of the original image. 2) the coordinates of two opposing vertices and the inclination angle of the document image, d) the coordinates of any of the four vertices of the document image, the width of the document image, the height of the document image, and the document It is desirable that any one of the inclination angles of the image includes a) to d) as information.

また、本発明は、上記画像処理装置、画像読取装置を備えた画像形成装置であってもよい。   The present invention may also be an image forming apparatus including the image processing apparatus and the image reading apparatus.

なお、上記画像処理装置は、コンピュータによって実現してもよい。この場合、コンピュータを上記各手段として動作させることにより上記画像処理装置をコンピュータにおいて実現する画像処理プログラム、およびその画像処理プログラムを記録したコンピュータ読み取り可能な記録媒体も、本発明の範疇に入る。   The image processing apparatus may be realized by a computer. In this case, an image processing program for realizing the image processing apparatus in the computer by operating the computer as each of the above means and a computer-readable recording medium on which the image processing program is recorded also fall within the scope of the present invention.

本発明の画像処理装置は、再度原稿を読み取ることなく、すでに読み取った原稿の画像データに傾き補正やサイズ補正を施すことができるという効果を奏する。   The image processing apparatus of the present invention has an effect that it is possible to perform tilt correction and size correction on image data of a document that has already been read without reading the document again.

実施形態1の画像形成装置を示したブロック図であり、フルカラーモードにて印刷処理を行う際の画像データの流れを示したブロック図である。FIG. 2 is a block diagram illustrating the image forming apparatus according to the first exemplary embodiment, and is a block diagram illustrating a flow of image data when performing print processing in a full color mode. 実施形態1の画像読取装置を示したブロック図であり、フルカラーモードにてイメージ送信処理を行う際の画像データの流れを示したブロック図である。FIG. 2 is a block diagram illustrating the image reading apparatus according to the first exemplary embodiment, and is a block diagram illustrating a flow of image data when image transmission processing is performed in a full color mode. 傾き補正およびサイズ補正におけるデータの流れの詳細を示したブロック図である。It is the block diagram which showed the detail of the flow of data in inclination correction | amendment and size correction | amendment. (a)は、印刷処理時またはイメージ送信処理時における傾き補正およびサイズ補正の処理を示したフローチャートであり、(b)は、再印刷処理時または再イメージ送信処理時における傾き補正およびサイズ補正の処理を示したフローチャートである。(A) is a flowchart showing a tilt correction and a size correction process during a printing process or an image transmission process, and (b) is a flowchart of a tilt correction and a size correction during a reprint process or a re-image transmission process. It is the flowchart which showed the process. 原稿傾き・サイズ検知部の詳細な構成を示すブロック図である。FIG. 3 is a block diagram illustrating a detailed configuration of a document inclination / size detection unit. 入力画像データと関連づけて記録する原稿画像の頂点座標を抽出するための処理を示した図である。FIG. 6 is a diagram illustrating processing for extracting vertex coordinates of a document image to be recorded in association with input image data. 補正角度を算出するために用いる正接角度テーブルを示す図である。It is a figure which shows the tangent angle table used in order to calculate a correction angle. バイリニア補正を用いて傾き補正後の原稿画像の各座標の画素値を算出する方法を説明するための図であり、(a)(b)は、算出に使用される傾き補正前の4座標の画素値と傾き補正後の座標の画素値との関係を示すものである。It is a figure for demonstrating the method of calculating the pixel value of each coordinate of the original image after inclination correction | amendment using bilinear correction, (a) (b) is 4 coordinates before inclination correction used for calculation. It shows the relationship between the pixel value and the pixel value of the coordinate after inclination correction. 印刷処理時に、画像出力装置が印刷に使用すべき用紙サイズを決定するために用いられるテーブルを示す図である。FIG. 6 is a diagram illustrating a table used for determining a paper size to be used for printing by the image output apparatus during a printing process. 画像入力装置の詳細な構成を示すブロック図である。It is a block diagram which shows the detailed structure of an image input device. 入力画像データと関連づけて記録する原稿画像の4点座標を示した図である。FIG. 6 is a diagram illustrating four-point coordinates of a document image recorded in association with input image data. 入力画像データと関連づけて記録する原稿画像の3点座標を示した図である。FIG. 4 is a diagram illustrating three-point coordinates of a document image recorded in association with input image data. 入力画像データと関連づけて記録する原稿画像の2点座標、および該原稿画像の傾き角度を示した図である。FIG. 4 is a diagram illustrating two-point coordinates of an original image recorded in association with input image data, and an inclination angle of the original image. 入力画像データと関連づけて記録する原稿画像の左端座標、幅、高さ、および該原稿画像の傾き角度を示した図である。FIG. 4 is a diagram showing the left end coordinates, width, height, and inclination angle of an original image recorded in association with input image data. 実施形態2の画像形成装置を示したブロック図であり、フルカラーモードにて印刷処理を行う際の画像データの流れを示したブロック図である。FIG. 5 is a block diagram illustrating an image forming apparatus according to a second exemplary embodiment, and is a block diagram illustrating a flow of image data when performing print processing in a full color mode. 実施形態2の画像読取装置を示したブロック図であり、フルカラーモードにてイメージ送信処理を行う際の画像データの流れを示したブロック図である。FIG. 6 is a block diagram illustrating an image reading apparatus according to a second embodiment, and is a block diagram illustrating a flow of image data when performing image transmission processing in a full color mode. (a)(b)は共に、実施形態2において、傾き補正の要否をユーザに指定させるために画像表示装置に表示されるUIである。(A) and (b) are both UIs displayed on the image display device in order to allow the user to designate whether or not tilt correction is necessary in the second embodiment. 傾き補正機能やサイズ補正機能の有効・無効の設定をユーザに指定させるために画像表示装置に表示されるUIである。This is a UI displayed on the image display device for allowing the user to specify whether to enable / disable the tilt correction function and the size correction function. (a)は原稿画像全体を含む領域を読み取った入力画像を示すものであり、(b)〜(e)は、補正用パラメータについて説明するための図である。(A) shows an input image obtained by reading an area including the entire original image, and (b) to (e) are diagrams for explaining correction parameters.

(実施形態1)
本発明の画像形成装置の一実施形態について図1〜図11、図19に基づいて説明する。図1は、本実施形態の画像形成装置100の概略構成を示すブロック図である。
(Embodiment 1)
An image forming apparatus according to an embodiment of the present invention will be described with reference to FIGS. FIG. 1 is a block diagram illustrating a schematic configuration of an image forming apparatus 100 according to the present embodiment.

画像形成装置100は、コピア機能、プリンタ機能、ファクシミリ送信機能、scan to e-mail機能等を備える複合機である。   The image forming apparatus 100 is a multifunction machine having a copier function, a printer function, a facsimile transmission function, a scan to e-mail function, and the like.

本実施形態の画像形成装置100は、図1に示されるように、画像入力装置500および画像処理装置102からなる画像読取装置、画像出力装置103、記憶装置104、通信装置105を備えている。   As shown in FIG. 1, the image forming apparatus 100 according to the present embodiment includes an image reading apparatus including an image input apparatus 500 and an image processing apparatus 102, an image output apparatus 103, a storage apparatus 104, and a communication apparatus 105.

画像入力装置500は、原稿を読み取り、画像データを生成する画像読取手段である。画像入力装置500について、図10を用いて具体的に説明する。図10は画像入力装置500の構成を示す模式図である。画像入力装置500は、上部筐体510で構成される原稿搬送部、下部筐体560で構成されるスキャナ部などを備える。   The image input device 500 is an image reading unit that reads a document and generates image data. The image input device 500 will be specifically described with reference to FIG. FIG. 10 is a schematic diagram showing the configuration of the image input apparatus 500. The image input apparatus 500 includes a document conveyance unit configured by an upper casing 510, a scanner unit configured by a lower casing 560, and the like.

上部筐体510には、原稿トレイ511に載置された原稿の検知を行う原稿セットセンサ514、原稿を1枚ずつ搬送するための呼込みローラ512、原稿上の画像を読み取るために原稿を搬送する搬送ローラ513a、513b、原稿の排出を行う原稿排出ローラ50、排出される原稿を検知する原稿排出センサ567などが設けられている。搬送ローラ(整合ローラ)513bは、駆動軸に電磁クラッチ(図示せず)を備えており、駆動モータ(図示せず)からの駆動力の伝達を制御できるようになっており、原稿のない状態では停止している。そして、原稿の先端が給送タイミングセンサ515に接触し、このセンサから所定の信号が伝達されたときに、原稿を下流側に搬送する方向に回動するように設定されている。搬送ローラ513bは、停止した状態で、上流側より搬送された原稿の先端が、搬送ローラ513bのニップ部に付き当たり、原稿に所定の撓みを形成した後に、下流側に原稿を搬送するように回動する。この際に、搬送ローラ513bのニップ部により、原稿の先端が搬送方向に直角となるように整合される。   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. The conveyance roller (alignment roller) 513b includes an electromagnetic clutch (not shown) on the drive shaft, and can control transmission of driving force from a drive motor (not shown), so that there is no document. Then it has stopped. 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 conveyance roller 513b is in a stopped state so that the leading edge of the document conveyed from the upstream side comes into contact with the nip portion of the conveyance roller 513b and forms a predetermined deflection on the document, and then conveys the document downstream. Rotate. 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.

下部筐体560には、載置台561の下面に沿って平行に往復移動する走査ユニット562、563、結像レンズ564、及び光電変換素子であるCCDラインセンサ565、排出トレイ566などが設けてある。走査ユニット562は、原稿トレイ511から搬送される原稿、あるいは、載置台561に載置された原稿に光を照射するための光源562a(例えば、ハロゲンランプなど)、原稿で反射された光を所定の光路に導くためのミラー562bなどを備えている。また、走査ユニット563は、原稿で反射された光を所定の光路に導くためのミラー563a、563bなどを備えている。   The lower housing 560 is provided with scanning units 562 and 563 that reciprocate in parallel along the lower surface of the mounting table 561, an imaging lens 564, a CCD line sensor 565 that is a photoelectric conversion element, a discharge tray 566, and the like. . 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 table 561, and light reflected by the document. 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.

結像レンズ564は、走査ユニット563から導かれた反射光をCCDラインセンサ565上の所定の位置に結像させる。CCDラインセンサ565は、結像された光像を光電変換して電気信号を出力する。すなわち、原稿(例えば、原稿の表面)から読み取ったカラー画像に基づいて、R(赤)、G(緑)、B(青)の各色成分に色分解したデータをカラー画像処理装置へ出力する。   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 separated into R (red), G (green), and B (blue) color components is output to the color image processing apparatus.

次に、画像処理装置102について、説明する。   Next, the image processing apparatus 102 will be described.

画像処理装置102は、画像データ(画像信号)に対して画像処理を施す集積回路であり、ASIC(Application specific integrated circuit)から構成されるものである
。この画像処理装置102は、図1に示すように、A/D(アナログ/デジタル)変換部2、シェーディング補正部3、入力処理部4、原稿傾き・サイズ検知部5、原稿傾き・サイズ補正部6、原稿方向検知部7、原稿方向補正部8、領域分離部9、色補正部10、黒生成/下色除去部11、空間フィルタ部12、中間調生成部13の各ブロックを有している。画像処理装置102に含まれる各ブロックの処理内容については後で詳述する。
The image processing apparatus 102 is an integrated circuit that performs image processing on image data (image signal), and includes an ASIC (Application Specific Integrated Circuit). As shown in FIG. 1, the image processing apparatus 102 includes an A / D (analog / digital) conversion unit 2, a shading correction unit 3, an input processing unit 4, a document inclination / size detection unit 5, a document inclination / size correction unit. 6. Document direction detection unit 7, document direction correction unit 8, area separation unit 9, color correction unit 10, black generation / under color removal unit 11, spatial filter unit 12, and halftone generation unit 13 Yes. The processing content of each block included in the image processing apparatus 102 will be described in detail later.

なお、本実施形態の画像処理装置102は、画像入力装置500から送られてきた画像データに画像処理を行うようになっている。そして、画像処理装置102は、画像処理を施した画像データを画像出力装置103に送信するようになっている。   Note that the image processing apparatus 102 according to the present embodiment performs image processing on image data sent from the image input apparatus 500. The image processing apparatus 102 transmits the image data subjected to the image processing to the image output apparatus 103.

画像出力装置(プリンタ)103は、画像処理装置102から送られてきた画像データが表わす画像(出力画像)を記録媒体(例えば紙等)上に印刷(形成)するものであり、例えば、電子写真方式またはインクジェット方式を用いたカラープリンタを挙げることができる。なお、本実施形態においての「印刷」とは、プリントモードにおける印刷、およびコピアモードでの印刷のいずれかを意味する。   The image output device (printer) 103 prints (forms) an image (output image) represented by the image data sent from the image processing device 102 on a recording medium (for example, paper). A color printer using a method or an inkjet method can be given. Note that “printing” in the present embodiment means either printing in the print mode or printing in the copier mode.

記憶装置104は、画像処理装置102にて扱われる画像データを一旦保存するためのハードディスクである。記憶装置104には、画像入力装置500によって原稿画像全体が含まれる領域が読み取られて生成され、画像処理装置102に入力された画像データ(入力画像)が記録される。なお、画像入力装置500の原稿台に原稿が傾いた状態で置かれ、スキャンされた場合等には、入力画像には、原稿を表わす部分(原稿画像)だけでなく、原稿以外の部分も含まれることになる。   The storage device 104 is a hard disk for temporarily storing image data handled by the image processing device 102. In the storage device 104, an image input device 500 reads and generates an area including the entire original image, and records image data (input image) input to the image processing device 102. When the document is placed on the document table of the image input device 500 in a tilted state and scanned, the input image includes not only a portion representing the document (document image) but also a portion other than the document. Will be.

通信装置105は、電話回線またはインターネットに接続しており、画像入力装置500にて入力された入力画像に画像処理が施され、得られた出力画像を外部装置へ送信する装置である。   The communication device 105 is connected to a telephone line or the Internet, and is a device that performs image processing on the input image input by the image input device 500 and transmits the obtained output image to an external device.

制御部106は、CPU(Central Processing Unit)あるいはDSP(Digital Signal Processor)等のプロセッサを含むコンピュータであり、画像形成装置100に備えられる各種ハードウェアを統括的に制御するものである。また、制御部106は、画像形成装置100に備えられる各ハードウェア間のデータ転送を制御する機能も有する。   The control unit 106 is a computer including a processor such as a CPU (Central Processing Unit) or a DSP (Digital Signal Processor), and comprehensively controls various hardware included in the image forming apparatus 100. The control unit 106 also has a function of controlling data transfer between each piece of hardware provided in the image forming apparatus 100.

また、本実施形態の画像処理装置102は、原稿画像の傾きを補正する傾き補正機能を備えている。また、画像処理装置102は、入力画像のサイズを上記原稿画像のサイズに補正する(入力画像より原稿画像の領域をクロップする(切り取りを行う))サイズ補正機能を備えている。サイズ補正機能を有効にすることにより、画像処理装置102は、入力画像から原稿以外の部分を除去して出力画像を出力することができる。   Further, the image processing apparatus 102 according to the present embodiment includes an inclination correction function for correcting the inclination of the document image. The image processing apparatus 102 also has a size correction function that corrects the size of the input image to the size of the original image (crop (cuts out) the original image area from the input image). By enabling the size correction function, the image processing apparatus 102 can remove the part other than the original from the input image and output the output image.

つぎに、ユーザから印刷やイメージ送信の指示を受け付けたときに画像入力装置500から入力画像データを受け付けて行う印刷処理、およびイメージ送信処理について、画像処理装置102の各ブロックにて実行される処理の内容を詳細に説明する。なお、画像処理装置102は、入力画像が記憶装置104に記録されている場合、入力画像の印刷やイメージ送信の指示をユーザから受け付けることが可能である。   Next, a process executed in each block of the image processing apparatus 102 for a printing process and an image transmission process performed by receiving input image data from the image input apparatus 500 when an instruction for printing or image transmission is received from the user. Will be described in detail. Note that when the input image is recorded in the storage device 104, the image processing apparatus 102 can accept an instruction to print the input image or transmit the image from the user.

以下では、そのような印刷処理やイメージ送信処理のことを「再印刷処理」「再イメージ送信処理」と呼称することとする。そして、単に「印刷処理」「イメージ送信処理」とした記載は、ユーザから印刷やイメージ送信の指示を受け付けたときに画像入力装置500から入力画像データを受け付けて行う印刷処理やイメージ送信処理のことを示すものとする。   Hereinafter, such print processing and image transmission processing will be referred to as “reprint processing” and “reimage transmission processing”. The descriptions simply “print processing” and “image transmission processing” refer to printing processing and image transmission processing performed when input image data is received from the image input device 500 when an instruction for printing or image transmission is received from the user. It shall be shown.

(1)印刷処理
以下では、図1に基づいて印刷処理時における画像処理装置102の動作について説明するが、図1は、フルカラーで印刷処理を行う際の画像処理装置102内の画像データの流れを示したものである事を述べておく。
(1) Printing Process Hereinafter, the operation of the image processing apparatus 102 during the printing process will be described with reference to FIG. 1, but FIG. 1 illustrates the flow of image data in the image processing apparatus 102 when performing a full color printing process. It is stated that

A/D(アナログ・デジタル)変換部2は、画像入力装置500から送られてきたカラー画像信号(RGBアナログ信号)をデジタルの画像データ(RGBデジタル信号)に変換するブロックである。シェーディング補正部3は、A/D変換部2から送られてきた画像データに対して、画像入力装置500の照明系、結像系、撮像系で生じる各種の歪みを取り除く処理を施すブロックである。入力処理部4は、シェーディング補正部3より送られてくるRGBの画像データのそれぞれに対してγ補正処理などの階調変換処理を施すブロックである。   The A / D (analog / digital) converter 2 is a block that converts a color image signal (RGB analog signal) sent from the image input apparatus 500 into digital image data (RGB digital signal). The shading correction unit 3 is a block that performs processing for removing various distortions generated in the illumination system, the imaging system, and the imaging system of the image input apparatus 500 on the image data sent from the A / D conversion unit 2. . The input processing unit 4 is a block that performs gradation conversion processing such as γ correction processing on each of the RGB image data sent from the shading correction unit 3.

原稿傾き・サイズ検知部5は、入力処理部4にてγ補正等の処理がなされたRGBの画像データ(RGBの濃度信号)を入力画像データとして記憶装置104に記憶する。そして、原稿傾き・サイズ検知部5は、領域情報として、入力画像中の原稿画像の頂点を示す4点座標を算出し、4点座標を入力画像データと関連づけて記憶装置104に記録する。さらに、原稿傾き・サイズ検知部5は、該4点座標に基づき補正用パラメータを算出するとともに原稿傾き・サイズ補正部6に供給する。なお、この原稿傾き・サイズ検知部5の処理は、傾き補正機能やサイズ補正機能が有効であるか無効であるかに関わらず行われる。また、記憶装置104に記憶される入力画像データをファイリングデータとして管理するようにしても良い。この場合、上記画像データは、例えば、JPEG圧縮アルゴリズムに基づいてJPEGコードに圧縮されて格納される。そして、コピー出力動作やプリント出力動作が指示された場合は、記憶装置104からJPEGコードが引き出され、不図示のJPEG伸張部に引き渡され、復号化処理がなされRGBデータに変換される。   The document inclination / size detection unit 5 stores the RGB image data (RGB density signal) subjected to processing such as γ correction by the input processing unit 4 in the storage device 104 as input image data. Then, the document inclination / size detection unit 5 calculates four-point coordinates indicating the apex of the document image in the input image as the area information, and records the four-point coordinates in association with the input image data in the storage device 104. Further, the document inclination / size detection unit 5 calculates correction parameters based on the four-point coordinates and supplies them to the document inclination / size correction unit 6. The processing of the document inclination / size detection unit 5 is performed regardless of whether the inclination correction function and the size correction function are valid or invalid. Further, the input image data stored in the storage device 104 may be managed as filing data. In this case, the image data is stored after being compressed into a JPEG code based on, for example, a JPEG compression algorithm. When a copy output operation or print output operation is instructed, a JPEG code is extracted from the storage device 104, transferred to a JPEG decompression unit (not shown), decoded, and converted into RGB data.

傾き補正機能が有効になっている場合には、原稿傾き・サイズ補正部6は、取得した4点座標に基づき、記憶装置104に記録されている入力画像データに傾き補正を施すことにより出力用画像データを入力画像データとは別に生成して記憶装置104に記録する。傾き補正機能が無効になっている場合には、入力画像データと同一の出力用画像データを別に生成して記憶装置104に記録する。   When the inclination correction function is enabled, the document inclination / size correction unit 6 performs output correction by applying inclination correction to the input image data recorded in the storage device 104 based on the acquired four-point coordinates. Image data is generated separately from the input image data and recorded in the storage device 104. When the tilt correction function is disabled, output image data identical to the input image data is generated separately and recorded in the storage device 104.

そして、サイズ補正機能が有効になっている場合には、原稿傾き・サイズ補正部6は、出力用画像のサイズと原稿画像のサイズとが一致するように出力用画像データを補正する(以降、サイズ補正と称する)。   When the size correction function is enabled, the document inclination / size correction unit 6 corrects the output image data so that the size of the output image matches the size of the document image (hereinafter, referred to as “image correction data”). Called size correction).

原稿傾き・サイズ補正部6は、最後に、サイズ補正や傾き補正を施して得られた出力用画像データ(補正後画像)を原稿方向検知部7に供給する。なお、傾き補正やサイズ補正については、後でより詳細に述べることにする。   Finally, the document inclination / size correction unit 6 supplies output image data (corrected image) obtained by performing size correction and inclination correction to the document direction detection unit 7. The tilt correction and the size correction will be described in detail later.

原稿方向検知部7は、入力された出力用画像データに含まれる原稿画像が上下左右のいずれの方向を向いているかを判定することにより、出力用画像データの天地方向を検知し、検知結果を原稿方向補正部8に出力する。   The document direction detection unit 7 detects the vertical direction of the output image data by determining whether the document image included in the input output image data is oriented in the up, down, left, and right directions, and detects the detection result. Output to the document orientation correction unit 8.

原稿方向補正部8は、記憶装置104から上記出力用画像データを取得し、この出力用画像データを原稿方向検知部7から得た天地方向に従って回転させる(以降、天地補正と称する)。そして、原稿方向補正部8は、天地補正を施して得られた出力用画像データを領域分離部9および色補正部10に供給する。なお、天地補正についても、後でより詳細に述べることにする。   The document direction correcting unit 8 acquires the output image data from the storage device 104 and rotates the output image data in accordance with the vertical direction obtained from the document direction detecting unit 7 (hereinafter referred to as vertical correction). Then, the document direction correcting unit 8 supplies the output image data obtained by performing the top / bottom correction to the region separating unit 9 and the color correcting unit 10. The top / bottom correction will be described later in more detail.

領域分離部9は、原稿方向補正部8から送られてくるRGBの出力用画像データに基づき、入力画像の画素毎に、当該画素がどのような画像領域に分類されるのかを判別し、この判別結果を示す領域分離信号を生成する処理を行う。ここで、領域分離部9において判別される画像領域には、黒文字領域,色文字領域,網点領域、印画紙写真領域(連続階調領域)等がある。なお、領域分離処理は、画素毎に画像領域の判定を行う形態ではなく、複数の画素よりなるブロック毎に画像領域の判定が行われる形態であってもよい。領域分離部9は、生成した領域分離信号を、黒生成/下色除去部11、空間フィルタ部12、中間調生成部13に供給する。   The area separation unit 9 determines, based on the RGB output image data sent from the document direction correction unit 8, for what pixel area the pixel is classified for each pixel of the input image. A process for generating a region separation signal indicating the discrimination result is performed. Here, the image areas discriminated by the area separating unit 9 include a black character area, a color character area, a halftone dot area, a photographic paper photograph area (continuous tone area), and the like. Note that the region separation processing may be in a form in which the image region is determined for each block including a plurality of pixels, instead of determining the image region for each pixel. The region separation unit 9 supplies the generated region separation signal to the black generation / undercolor removal unit 11, the spatial filter unit 12, and the halftone generation unit 13.

制御部(CPU)108は、図示しない操作部を介して受け付けた傾き補正やサイズ補正の設定に基づき、原稿傾き・サイズ検知部5および原稿傾き・サイズ補正部6に、それぞれ、傾きやサイズの検知や補正をするか否かを通知する。   The control unit (CPU) 108 controls the document inclination / size detection unit 5 and the document inclination / size correction unit 6 according to the inclination correction and size correction settings received via the operation unit (not shown). Notify whether or not to detect or correct.

色補正部10は、原稿方向補正部8から出力されるRGBの出力用画像データをCMYの画像データに変換する色補正処理を行うと共に、当該画像データに対して色再現性を高める処理を施すブロックである。なお、上記の色補正処理は、入力値(RGB)と出力値(CMY)とを対応付けたLUT(ルックアップテーブル)を作成し、作成したLUTから出力値をルックアップすることによって実現される。   The color correction unit 10 performs color correction processing for converting RGB output image data output from the document direction correction unit 8 into CMY image data, and performs processing for improving color reproducibility on the image data. It is a block. The color correction process described above is realized by creating an LUT (lookup table) in which input values (RGB) and output values (CMY) are associated with each other, and looking up the output values from the created LUT. .

黒生成/下色除去部11は、色補正部10から出力されたCMYの画像データから黒(K)の画像データを生成する黒生成を行う一方、元のCMYの画像データから黒(K)の画像データを差し引いて新たなCMYの画像データを生成する処理を行うブロックである。これにより、CMYの画像データは黒生成/下色除去部11によってCMYKの4色の画像データに変換される。   The black generation / under color removal unit 11 performs black generation for generating black (K) image data from the CMY image data output from the color correction unit 10, while black (K) from the original CMY image data. This is a block for performing a process of generating new CMY image data by subtracting the image data. As a result, the CMY image data is converted into CMYK four-color image data by the black generation / undercolor removal unit 11.

空間フィルタ部12は、黒生成/下色除去部11より出力されるCMYKの画像データに対して、領域分離信号(領域識別信号)を基にデジタルフィルタによる空間フィルタ処理(強調処理、平滑化処理等)を行っている。つまり、空間フィルタ部12では、領域分離信号に基づいて、画像領域毎に異なる画像処理が実行される。   The spatial filter unit 12 performs spatial filter processing (enhancement processing, smoothing processing) on the CMYK image data output from the black generation / undercolor removal unit 11 using a digital filter based on a region separation signal (region identification signal). Etc.). That is, the spatial filter unit 12 executes different image processing for each image region based on the region separation signal.

中間調生成部13は、誤差拡散法やディザ法を用いて、画像出力装置103において画像を印刷するために必要な階調再現処理(中間調生成処理)を実行するものである。   The halftone generation unit 13 performs tone reproduction processing (halftone generation processing) necessary for printing an image in the image output apparatus 103 using an error diffusion method or a dither method.

そして、中間調生成部13から出力されるCMYKの画像データは画像出力装置103に引き渡され、画像出力装置103は、当該画像データの画像を出力画像として記録媒体(例えば紙等)上に印刷する。   Then, the CMYK image data output from the halftone generation unit 13 is transferred to the image output device 103, and the image output device 103 prints the image of the image data as an output image on a recording medium (for example, paper). .

(2)イメージ送信処理
次に、イメージ送信処理時における画像処理装置102の動作について説明する。
(2) Image Transmission Process Next, the operation of the image processing apparatus 102 during the image transmission process will be described.

イメージ送信モードにおいては、A/D(アナログ・デジタル)変換部2、シェーディング補正部3、入力処理部4、原稿傾き・サイズ検知部5、原稿傾き・サイズ補正部6、原稿方向検知部7は、コピアモード時と同様の動作を行う。   In the image transmission mode, the A / D (analog / digital) conversion unit 2, the shading correction unit 3, the input processing unit 4, the document inclination / size detection unit 5, the document inclination / size correction unit 6, and the document direction detection unit 7 The same operation as in the copier mode is performed.

また、原稿方向補正部8は、天地補正を行うが、補正により得られたRGBの出力用画像データを領域分離部9や色補正部10に供給しない。   The document direction correcting unit 8 performs top / bottom correction, but does not supply RGB output image data obtained by the correction to the region separating unit 9 or the color correcting unit 10.

さらに、領域分離部9、色補正部10、黒生成/下色除去部11、空間フィルタ部12、中間調生成部13は、何ら動作を行わない。   Further, the region separation unit 9, the color correction unit 10, the black generation / undercolor removal unit 11, the spatial filter unit 12, and the halftone generation unit 13 do not perform any operation.

一方、制御部106は、記憶装置104に記録されている出力用画像データに基づいて、PDFファイルを生成する。そして、制御部106は、通信装置105を介して生成したPDFファイルを外部に送信する。なお、外部に送信するために生成するファイルは、PDFファイルに限らず、JPEGなどの画像ファイルやその他画像情報を格納可能な文書ファイルであっても構わない。   On the other hand, the control unit 106 generates a PDF file based on the output image data recorded in the storage device 104. Then, the control unit 106 transmits the PDF file generated via the communication device 105 to the outside. The file generated for transmission to the outside is not limited to a PDF file, and may be an image file such as JPEG or a document file that can store other image information.

(3)傾き補正、サイズ補正、および天地補正の詳細について
次に、画像処理装置102が行う傾き補正、サイズ補正、および天地補正の詳細について、図3〜図5を参照して以下に説明する。
(3) Details of tilt correction, size correction, and top / bottom correction Next, details of tilt correction, size correction, and top / bottom correction performed by the image processing apparatus 102 will be described below with reference to FIGS. .

図3は、上記各補正のために、原稿傾き・サイズ検知部5〜原稿方向補正部8によってやりとりされるデータの流れを示すものである。また、図4(a)は、印刷処理時やイメージ送信処理時に原稿傾き・サイズ検知部5〜原稿方向補正部8によって行われる処理の流れを示すフローチャートである。   FIG. 3 shows the flow of data exchanged by the document inclination / size detection unit 5 to the document direction correction unit 8 for the above corrections. FIG. 4A is a flowchart showing a flow of processing performed by the document inclination / size detection unit 5 to the document direction correction unit 8 at the time of print processing or image transmission processing.

図3に示すように、原稿傾き・サイズ検知部5は、記憶装置104に記録された入力画像データより、原稿画像の傾き・サイズ検知処理を行い、入力画像中の原稿画像の頂点を示す4点座標を算出する(図4(a)のS1)。原稿傾き・サイズ検知部5は、算出された4点座標を入力画像データと関連付けて記憶装置104に記録する。そして、原稿傾き・サイズ検知部5は、傾き補正・サイズ補正の有効・無効の設定に基づいて、原稿傾き・サイズ補正部6に渡す補正用パラメータを4点座標情報より算出する(S2)。   As illustrated in FIG. 3, the document inclination / size detection unit 5 performs document image inclination / size detection processing based on the input image data recorded in the storage device 104, and indicates a vertex 4 of the document image in the input image. Point coordinates are calculated (S1 in FIG. 4A). The document inclination / size detection unit 5 records the calculated four-point coordinates in the storage device 104 in association with the input image data. Then, the document inclination / size detection unit 5 calculates correction parameters to be passed to the document inclination / size correction unit 6 based on the four-point coordinate information based on the setting of validity / invalidity of the inclination correction / size correction (S2).

ここで、補正用パラメータについて図19を参照して説明する。図19(b)〜(e)は、図19(a)に示すような原稿画像が20°傾いた状態の入力画像に傾き補正やサイズ補正を施す場合に、原稿傾き・サイズ検知部5が算出する補正用パラメータとして入力画像データ中のどの情報を用いるかを視覚的に示した図である。補正用パラメータは、補正処理開始座標、補正後画像サイズ、補正角度の各パラメータにより構成されるが、(b)〜(e)の各図において黒丸で表わされた座標、実線部分の長さ、degの値が補正用パラメータとして用いられる。   Here, the correction parameters will be described with reference to FIG. 19B to 19E show the document inclination / size detection unit 5 when the inclination correction and the size correction are performed on the input image in a state where the original image is inclined by 20 ° as shown in FIG. It is the figure which showed visually which information in input image data is used as a parameter for correction to compute. The correction parameters are composed of parameters of correction processing start coordinates, corrected image size, and correction angle, but the coordinates represented by black circles in the drawings (b) to (e) and the length of the solid line portion , Deg values are used as correction parameters.

図19(b)は、傾き補正およびサイズ補正がともに有効の場合の補正用パラメータを示した図である。図19(b)に示すように傾き補正およびサイズ補正がともに有効の場合には、補正処理開始座標は原稿画像の4点座標のうちの左端座標の座標値となり、補正角度が20°となり、補正後画像サイズは原稿画像の実線部分の幅・高さとなる。図19(c)は、傾き補正が無効でサイズ補正が有効の場合の補正用パラメータを示した図である。図19(c)に示すように傾き補正を無効、サイズ補正を有効とした場合には、補正処理開始座標が入力画像の左端座標の座標値となり、補正角度が0°となり、補正後画像サイズは入力画像の実線部分の幅・高さとなる。   FIG. 19B is a diagram showing correction parameters when both inclination correction and size correction are effective. When both tilt correction and size correction are valid as shown in FIG. 19B, the correction processing start coordinate is the coordinate value of the left end coordinate of the four point coordinates of the document image, the correction angle is 20 °, The corrected image size is the width and height of the solid line portion of the original image. FIG. 19C is a diagram showing correction parameters when tilt correction is invalid and size correction is valid. When tilt correction is disabled and size correction is enabled as shown in FIG. 19C, the correction processing start coordinate is the coordinate value of the left edge coordinate of the input image, the correction angle is 0 °, and the corrected image size Is the width and height of the solid line part of the input image.

図19(d)は、傾き補正が有効でサイズ補正が無効の場合の補正用パラメータを示した図である。図19(d)に示すように傾き補正を有効、サイズ補正を無効とした場合には、補正処理開始座標は入力画像の中心座標を中心として20度回転した座標の座標値となり、補正角度が20°となり、補正後画像サイズは入力画像の幅・高さとなる。図19(e)は、傾き補正およびサイズ補正がともに無効の場合の補正用パラメータを示した図である。図19(e)に示すように傾き補正およびサイズ補正がともに無効の場合には、補正処理開始座標が入力画像の左端座標の座標値となり、補正角度が0°となり、補正後画像サイズは入力画像の実線部分の幅・高さとなる。   FIG. 19D is a diagram showing correction parameters when tilt correction is enabled and size correction is disabled. When tilt correction is enabled and size correction is disabled as shown in FIG. 19D, the correction processing start coordinate is a coordinate value of a coordinate rotated 20 degrees around the center coordinate of the input image, and the correction angle is The corrected image size is the width / height of the input image. FIG. 19E is a diagram showing correction parameters when both tilt correction and size correction are invalid. As shown in FIG. 19E, when both the tilt correction and the size correction are invalid, the correction processing start coordinate is the coordinate value of the left end coordinate of the input image, the correction angle is 0 °, and the corrected image size is input. The width and height of the solid line part of the image.

次に、傾き補正やサイズ補正がどのような設定になっているときに、原稿傾き・サイズ検知部5が上記各パラメータをどのように算出して原稿傾き・サイズ補正部6に渡すかについては、以下により詳細に説明する。   Next, how the skew / size detector 5 calculates the above parameters and passes them to the skew / size corrector 6 when the skew correction or size correction is set. This will be described in more detail below.

図5に示すように、原稿傾き・サイズ検知部5は、エッジ検出処理部51、パラメータ算出部52により構成される。   As shown in FIG. 5, the document inclination / size detection unit 5 includes an edge detection processing unit 51 and a parameter calculation unit 52.

エッジ検出処理部51は、図6に示すように、入力画像の各ライン(ラインN:N=1、2、・・)について、ライン1から順に当該ライン上の各画素の階調値を求め、所定の閾値以上の階調値を有する画素のうち最も左側の画素の座標値(LN,N)および最も右側の画素の座標値(RN,N)を抽出する。なお、この処理は、画像のすべてのラインについて行っても良いし、ライン上に所定の閾値以上の階調値を有する画素が1つも存在しなくなった場合には4点座標の座標値がすべて抽出されていると考えられるので、そこで処理を終了してもよい。 As shown in FIG. 6, the edge detection processing unit 51 obtains the gradation value of each pixel on the line in order from the line 1 for each line (line N: N = 1, 2,...) Of the input image. , it extracts the leftmost coordinate value of the pixels of the pixel having the tone value than a predetermined threshold value (L N, N) and the rightmost coordinate values of the pixels (R N, N). This process may be performed for all the lines of the image, or when there is no pixel having a gradation value equal to or higher than a predetermined threshold on the line, all four-point coordinate values are obtained. Since it is considered that it has been extracted, the processing may be terminated there.

最後に、エッジ検出処理部51は、抽出した全座標値のうち、X座標の値が最小および最大の座標、並びに、Y座標の値が最小および最大の座標を選択して4点座標とし、4点座標の値をパラメータ算出部52に供給する。   Finally, the edge detection processing unit 51 selects the coordinates with the minimum and maximum values of the X coordinate and the coordinates with the minimum and maximum values of the Y coordinate out of all the extracted coordinate values as four-point coordinates, The value of the four-point coordinates is supplied to the parameter calculation unit 52.

パラメータ算出部52は、補正処理開始座標、補正後画像サイズ(補正後の出力用画像の幅・高さ(ピクセル単位))、補正角度の各パラメータにより構成される補正用パラメータを算出する。補正用パラメータの算出は、傾き補正・サイズ補正の設定の有効・無効に応じて次にように行われる。   The parameter calculation unit 52 calculates a correction parameter that includes correction processing start coordinates, a corrected image size (width / height (pixel unit) of the corrected output image), and a correction angle. The correction parameters are calculated as follows according to the validity / invalidity of the inclination correction / size correction setting.

(傾き補正:有効、サイズ補正:有効の場合)
パラメータ算出部52は、エッジ検出処理部51により検出されたエッジ座標のうち、最も上部、左部となるエッジ座標に基づき、補正角度αを算出する。
(When tilt correction is enabled, size correction is enabled)
The parameter calculation unit 52 calculates the correction angle α based on the uppermost and leftmost edge coordinates among the edge coordinates detected by the edge detection processing unit 51.

すなわち、tanα = (EdgeTy−EdgeLy) / (EdgeTx−EdgeLx)の式により、tanαの値を算出し、図7に示すような、αの値とtanαの値が対応づけられた正接角度テーブルを用いてαの値を得る。 In other words, the value of tanα is calculated by the formula of tanα = (EdgeT y −EdgeL y ) / (EdgeT x −EdgeL x ), and the tangent in which the value of α and the value of tanα are correlated as shown in FIG. The value of α is obtained using an angle table.

そして、パラメータ算出部52は、算出したαが所定の閾値(補正機能キャンセル角度閾値。例えば、0.5°)以上45°以下の場合は、補正処理開始座標(StartX,StartY)として、(EdgeLx,EdgeLy)を設定する。 Then, when the calculated α is equal to or greater than a predetermined threshold value (correction function cancellation angle threshold value, for example, 0.5 °) and equal to or less than 45 °, the parameter calculation unit 52 uses (EdgeL, StartL) as the correction process start coordinates (StartL, StartY). x , EdgeL y )

一方、算出したαが45°より大きく、かつ、α−90の絶対値が上記補正機能キャンセル角度閾値以上である場合、補正処理開始座標(StartX,StartY)として、(EdgeTx,EdgeTy)を設定する。 On the other hand, when the calculated α is greater than 45 ° and the absolute value of α-90 is equal to or greater than the correction function cancellation angle threshold, (EdgeT x , EdgeT y ) is used as the correction processing start coordinates (StartX, StartY). Set.

なお、上記のいずれにも当てはまらない場合、パラメータ算出部52は、傾き補正・サイズ補正の設定が“傾き補正機能:無効、サイズ補正機能:有効”に設定された場合と同様の補正用パラメータ算出処理を行う。   If none of the above applies, the parameter calculation unit 52 calculates the same correction parameter as when the inclination correction / size correction setting is set to “inclination correction function: invalid, size correction function: valid”. Process.

次に、パラメータ算出部52は、算出したαの値に基づいて、傾き補正後の原稿画像を構成する4頂点の座標(EdgeTx’, EdgeTy’), (EdgeBx’, EdgeBy’), (EdgeLx’, EdgeLy’), (EdgeRx’, EdgeRy’)を以下の式1によって算出する。ここで、(EdgeTx’, EdgeTy’)は上端頂点、(EdgeBx’, EdgeBy’)は下端頂点、(EdgeLx’, EdgeLy’)は左端頂点,(EdgeRx’, EdgeRy’)は右端頂点である。 Next, the parameter calculator 52 determines the coordinates of the four vertices (EdgeT x ′, EdgeT y ′), (EdgeB x ′, EdgeB y ′) constituting the document image after the inclination correction based on the calculated α value. , (EdgeL x ′, EdgeL y ′), (EdgeR x ′, EdgeR y ′) are calculated by the following Equation 1. Where (EdgeT x ', EdgeT y ') is the top vertex, (EdgeB x ', EdgeB y ') is the bottom vertex, (EdgeL x ', EdgeL y ') is the left vertex, (EdgeR x ', EdgeR y ' ) Is the rightmost vertex.

Figure 2011028383
Figure 2011028383

そして、パラメータ算出部52は、算出された4頂点の座標値を用いて補正後画像サイズを算出する。
補正後画像の高さ= MAX(EdgeTy’, EdgeBy’, EdgeLy’, EdgeRy’) - MIN(EdgeTy’, EdgeBy’, EdgeLy’, EdgeRy’)
補正後画像の幅 = MAX(EdgeTx’, EdgeBx’, EdgeLx’, EdgeRx’) - MIN(EdgeTx’, EdgeBx’, EdgeLx’, EdgeRx’)
(傾き補正:有効、サイズ補正:無効の場合)
パラメータ算出部52は、傾き補正:有効、サイズ補正:有効の場合と同様に、補正角度αを算出するが、αの値またはα―90の絶対値が補正機能キャンセル角度閾値未満である場合には、傾き補正・サイズ補正の設定が“傾き補正機能:無効、サイズ補正機能:無効”に設定された場合と同様の補正用パラメータ算出処理を行う。
The parameter calculation unit 52 calculates the corrected image size using the calculated coordinate values of the four vertices.
Image height after correction = MAX (EdgeT y ', EdgeB y ', EdgeL y ', EdgeR y ')-MIN (EdgeT y ', EdgeB y ', EdgeL y ', EdgeR y ')
Corrected image width = MAX (EdgeT x ', EdgeB x ', EdgeL x ', EdgeR x ')-MIN (EdgeT x ', EdgeB x ', EdgeL x ', EdgeR x ')
(When tilt correction is enabled, size correction is disabled)
The parameter calculation unit 52 calculates the correction angle α in the same manner as in the case of inclination correction: valid, size correction: valid, but when the value of α or the absolute value of α-90 is less than the correction function cancellation angle threshold value. Performs the same correction parameter calculation processing as when the inclination correction / size correction setting is set to “inclination correction function: invalid, size correction function: invalid”.

また、パラメータ算出部52は、記憶装置104に記録されている入力画像の高さ、幅を補正後画像サイズのパラメータとして設定する。   Further, the parameter calculation unit 52 sets the height and width of the input image recorded in the storage device 104 as parameters of the corrected image size.

(傾き補正:無効、サイズ補正:有効の場合)
パラメータ算出部52は、補正角度αを0に設定する。
(When tilt correction is disabled, size correction is enabled)
The parameter calculation unit 52 sets the correction angle α to 0.

また、パラメータ算出部52は、エッジ検出処理部51から供給された4点座標(EdgeTx, EdgeTy), (EdgeBx, EdgeBy), (EdgeLx, EdgeLy), (EdgeRx, EdgeRy)を用いて補正後画像サイズを算出する。
補正後画像の高さ= MAX(EdgeTy, EdgeBy, EdgeLy, EdgeRy) - MIN(EdgeTy, EdgeBy, EdgeLy, EdgeRy)
補正後画像の幅 = MAX(EdgeTx, EdgeBx, EdgeLx, EdgeRx) - MIN(EdgeTx, EdgeBx, EdgeLx, EdgeRx)
さらに、パラメータ算出部52は、入力画像の中心点を示す座標(CenterX,CenterY)を求め、以下の式2により補正処理開始座標(StartX,StartY)を算出する。
In addition, the parameter calculation unit 52 includes the four-point coordinates (EdgeT x , EdgeT y ), (EdgeB x , EdgeB y ), (EdgeL x , EdgeL y ), (EdgeR x , EdgeR y ) supplied from the edge detection processing unit 51. ) To calculate the corrected image size.
Image height after correction = MAX (EdgeT y , EdgeB y , EdgeL y , EdgeR y )-MIN (EdgeT y , EdgeB y , EdgeL y , EdgeR y )
Corrected image width = MAX (EdgeT x , EdgeB x , EdgeL x , EdgeR x )-MIN (EdgeT x , EdgeB x , EdgeL x , EdgeR x )
Further, the parameter calculation unit 52 obtains coordinates (CenterX, CenterY) indicating the center point of the input image, and calculates correction processing start coordinates (StartX, StartY) by the following equation 2.

Figure 2011028383
Figure 2011028383

(傾き補正:無効、サイズ補正:無効の場合)
パラメータ算出部52は、補正角度αを0に設定する。
(When tilt correction is disabled, size correction is disabled)
The parameter calculation unit 52 sets the correction angle α to 0.

また、パラメータ算出部52は、記憶装置104に記録されている入力画像の高さ、幅を補正後画像サイズのパラメータとして設定する。   Further, the parameter calculation unit 52 sets the height and width of the input image recorded in the storage device 104 as parameters of the corrected image size.

以上、傾き補正およびサイズ補正の設定の有効・無効に応じて、パラメータ算出部52が算出する補正用パラメータの値について説明したが、パラメータ算出部52は、この算出した補正用パラメータの値を原稿・傾きサイズ補正部6に供給する。   The correction parameter values calculated by the parameter calculation unit 52 in accordance with the validity / invalidity of the settings for inclination correction and size correction have been described above. The parameter calculation unit 52 uses the calculated correction parameter values as the values for the document. Supply to the inclination size correction unit 6.

S2の処理の終了後、原稿傾き・サイズ補正部6は、原稿傾き・サイズ検知部から受け取った補正用パラメータの値に基づいて、入力画像データとは別に、入力画像データに対して傾き・サイズ補正処理を施した出力用画像データを生成して記憶装置104に記憶する(S3)。   After the process of S2, the document inclination / size correction unit 6 determines the inclination / size of the input image data separately from the input image data based on the value of the correction parameter received from the document inclination / size detection unit. Output image data subjected to correction processing is generated and stored in the storage device 104 (S3).

以下、具体的に傾き・サイズ補正の処理について説明するが、ここでの説明に用いる各座標は、パラメータ算出部52が算出した補正処理開始座標(StartX,StartY)を原点(0,0)とするXY座標系上の座標であることを予め述べておく。   Hereinafter, the inclination / size correction processing will be described in detail. The coordinates used in the description here are the correction processing start coordinates (StartX, StartY) calculated by the parameter calculation unit 52 as the origin (0, 0). It is described in advance that the coordinates are on the XY coordinate system.

原稿傾き・サイズ補正部6は、傾き補正後の原稿画像の頂点座標(x’,y’)を、原稿傾き・サイズ検知部5が算出した補正前の原稿画像の頂点座標(x,y)と、補正角度のパラメータθとを式3にあてはめることにより算出する。   The document inclination / size correction unit 6 calculates the vertex coordinates (x ′, y ′) of the original image after the inclination correction, and the vertex coordinates (x, y) of the original image before correction calculated by the document inclination / size detection unit 5. Then, the correction angle parameter θ is calculated by applying it to Equation 3.

Figure 2011028383
Figure 2011028383

また、原稿傾き・サイズ補正部6は、図8(b)に示す、傾き補正後の原稿画像の座標(x’,y’)における画素値(階調値)を以下のようにバイリニア補正を用いて求める。すなわち、(x’,y’)を−θ回転して得られる値(xs,ys)を、式4を用いて算出する。 The document inclination / size correction unit 6 performs bilinear correction on the pixel values (gradation values) at the coordinates (x ′, y ′) of the document image after inclination correction as shown in FIG. Use to find. That is, a value (x s , y s ) obtained by rotating (x ′, y ′) by −θ is calculated using Equation 4.

Figure 2011028383
Figure 2011028383

そして、原稿傾き・サイズ補正部6は、xs,ysがともに小数の場合、図8(a)に示す4点の整数座標値、すなわち、算出した(xs,ys)を含む隣接する(xi,yi)、(xi+1,yi)、(xi,yi+1)、(xi+1,yi+1)を求める。さらに、原稿傾き・サイズ補正部6は、xs-xiとxi+1-xsの比、および、ys-yiとyi+1-ys の比が、それぞれ、u:1-u、v:1-vになるようなuとvとを算出する。 Then, when both x s and y s are decimal numbers, the original inclination / size correction unit 6 includes the four-point integer coordinate values shown in FIG. 8A, that is, the calculated (x s , y s ) adjacent. (X i , y i ), (x i + 1 , y i ), (x i , y i + 1 ), and (x i + 1 , y i + 1 ) are obtained. Further, the document skew / size correction unit 6 has a ratio of x s -x i to x i + 1 -x s and a ratio of y s -y i to y i + 1 -y s , respectively, u: Calculate u and v such that 1-u, v: 1-v.

そして、原稿傾き・サイズ補正部6は、上記隣接する4点の各座標(xi,yi)、(xi+1,yi)、(xi,yi+1)、(xi+1,yi+1)における階調値Z1、Z2、Z3、Z4を求める。 The document inclination / size correcting unit 6 then coordinates (x i , y i ), (x i + 1 , y i ), (x i , y i + 1 ), (x i ) of the four adjacent points. The gradation values Z 1 , Z 2 , Z 3 , and Z 4 at +1 , y i + 1 ) are obtained.

最後に、原稿傾き・サイズ補正部6は、算出したZ1、Z2、Z3、Z4w、u、vを以下の式5にあてはめ、傾き補正後の原稿画像の座標(x’,y’)における階調値Zを算出する。 Finally, the document inclination / size correction unit 6 applies the calculated Z 1 , Z 2 , Z 3 , Z 4w , u, and v to the following equation 5 to coordinate the original image after the inclination correction (x ′, y The gradation value Z in ') is calculated.

Figure 2011028383
Figure 2011028383

なお、原稿傾き・サイズ補正部6は、算出した(xs,ys)の一方の値が整数の場合は、隣接する2点における階調値の加重平均をZとし、(xs,ys)の両方の値が整数の場合は、(xs,ys)における階調値をZとする。 When one of the calculated values (x s , y s ) is an integer, the original skew / size correction unit 6 sets the weighted average of the gradation values at two adjacent points as Z, and (x s , y If both values of s ) are integers, the gradation value at (x s , y s ) is Z.

また、原稿傾き・サイズ補正部6は、θ回転させた座標値を算出するために用いられるcosθやsinθの値を、θの値から直接算出しなくてもよい。すなわち、図7に示すような予めθの値とθに対応するtanθの値が対応づけられた正接角度テーブルを用いてtanθの値を参照し、参照したtanθの値からcosθやsinθの値を得てもよい。このようにすれば、回転後の座標を高速に算出可能である。   Further, the document inclination / size correction unit 6 does not have to directly calculate the values of cos θ and sin θ used for calculating the coordinate value rotated by θ from the value of θ. That is, referring to the value of tanθ using a tangent angle table in which the value of θ and the value of tanθ corresponding to θ are associated in advance as shown in FIG. 7, the values of cosθ and sinθ are determined from the referenced tanθ values. May be obtained. In this way, the coordinates after rotation can be calculated at high speed.

バイリニア補正を用いて画素値を算出する以上の処理を、傾き補正後の原稿画像の各座標について行うことにより、各座標の画素値が得られ、その結果、傾き補正後の出力用画像データが得られる。   By performing the above processing for calculating the pixel value using the bilinear correction for each coordinate of the original image after the inclination correction, the pixel value of each coordinate is obtained. As a result, the output image data after the inclination correction is obtained. can get.

そして、原稿傾き・サイズ補正部6は、原稿傾き・サイズ検知部5から受け付けた補正後画像サイズのパラメータ(幅、高さ)に基づいて、傾き補正後の出力用画像データに対してサイズ補正を行う。すなわち、原稿傾き・サイズ補正部6は、サイズ補正が有効の場合には、上記入力画像のサイズを上記原稿画像のサイズに補正したものをサイズ補正後の出力用画像として記憶装置104に保存する。   Then, the document inclination / size correction unit 6 performs size correction on the output image data after the inclination correction based on the corrected image size parameters (width and height) received from the document inclination / size detection unit 5. I do. In other words, when the size correction is valid, the document inclination / size correction unit 6 stores the corrected output image in the size of the original image in the storage device 104 as an output image after size correction. .

さらに、印刷処理時には、以下のようにして印刷にする用紙のサイズを決定する。   Further, at the time of printing processing, the size of paper to be printed is determined as follows.

以下、図9を参照して、印刷処理時における用紙サイズの決定方法について説明する。   Hereinafter, with reference to FIG. 9, a method for determining the paper size during the printing process will be described.

図9は、用紙サイズと、画素数を単位とする用紙サイズの幅・高さを示す値と、が関連づけられた出力サイズテーブルであり、印刷の出力解像度が300dpiのときに原稿傾き・サイズ補正部6に参照される。この出力サイズテーブルは記憶装置104に記録されており、300dpi以外の出力解像度(600dpi、1200dpiなど)に対応する出力サイズテーブルも、同様に記憶装置104に記録されている。なお、各テーブルの幅・高さを示す画素数には、実際の用紙サイズより約10mm大きくなるような画素数が設定されている。   FIG. 9 is an output size table in which the paper size is associated with values indicating the width / height of the paper size in units of pixels. When the output resolution of printing is 300 dpi, document skew / size correction is performed. Reference is made to part 6. This output size table is recorded in the storage device 104, and output size tables corresponding to output resolutions other than 300 dpi (600 dpi, 1200 dpi, etc.) are also recorded in the storage device 104. The number of pixels indicating the width / height of each table is set to be about 10 mm larger than the actual paper size.

原稿傾き・サイズ補正部6は、印刷しようとする出力解像度に応じた出力サイズテーブルを参照する。そして、補正後画像サイズの幅を示すパラメータよりも幅の値が大きく、かつ最小の幅の値と関連づけられた用紙サイズを候補として選択する。そして、原稿傾き・サイズ補正部6は、補正後画像サイズの高さを示すパラメータよりも高さの値が大きく、かつ最小の高さの値と関連づけられた用紙サイズを、候補として選択された用紙サイズの中から選択する。さらに、制御部106は、原稿傾き・サイズ補正部6が選択した用紙サイズを印刷に使用すべき用紙サイズとして画像出力装置103に通知する。   The document inclination / size correction unit 6 refers to an output size table corresponding to the output resolution to be printed. Then, a paper size having a width value larger than the parameter indicating the width of the corrected image size and associated with the minimum width value is selected as a candidate. Then, the document inclination / size correction unit 6 selects a paper size having a height value larger than the parameter indicating the height of the corrected image size and associated with the minimum height value as a candidate. Select from paper sizes. Further, the control unit 106 notifies the image output apparatus 103 of the paper size selected by the document inclination / size correction unit 6 as the paper size to be used for printing.

例えば、300dpiで印刷する場合に、上記幅を示すパラメータが2480、高さを示すパラメータが3500であったとすると、幅の値が2492であるA4、A5Rを出力する用紙サイズの候補として選択する。そして、候補として選択されたA4,A5Rのうち、幅の値が3519であるA4を選択する。制御部106は、A4の用紙を印刷にすべき用紙サイズとして画像出力装置103に通知する。   For example, when printing at 300 dpi, if the parameter indicating the width is 2480 and the parameter indicating the height is 3500, A4 and A5R whose width value is 2492 are selected as paper size candidates to be output. Then, A4 having a width value of 3519 is selected from A4 and A5R selected as candidates. The control unit 106 notifies the image output apparatus 103 of the A4 paper size as the paper size to be printed.

S3の処理の終了後、原稿方向検知部7は、ユーザにより指定された補正の設定条件に該当する補正が行われたこと(本実施形態においては、傾き補正およびサイズ補正が行われたこと)を検知すると、記憶装置104に記憶されている出力用画像データを読み出し、出力用画像に含まれる原稿画像の天地判定を行う(S4)。   After completion of the process of S3, the document direction detection unit 7 performs correction corresponding to the correction setting conditions designated by the user (in this embodiment, tilt correction and size correction have been performed). Is detected, the image data for output stored in the storage device 104 is read out, and the top and bottom of the document image included in the image for output is determined (S4).

原稿方向検知部7による天地判定は、例えば、特開平6−189083に記載されているように、OCR技術を用いて文字認識を行うことにより実現することができる。なお、原稿方向検知においては、RGBの画像データを輝度データYi
i=0.30Ri+0.59Gi+0.11Bi
Y:各画素の輝度信号
R,G,B:各画素の各色成分の値
添え字のi:画素毎に付与された値(iは1以上の整数)
に変換し、この輝度データを白黒2値化した白黒2値画像データを用いて行う。
The top / bottom determination by the document direction detection unit 7 can be realized by performing character recognition using an OCR technique, as described in, for example, Japanese Patent Laid-Open No. 6-188903. In the document orientation detection, RGB image data is converted into luminance data Y i.
Y i = 0.30R i + 0.59G i + 0.11B i
Y: Luminance signal of each pixel R, G, B: Value of each color component of each pixel Subscript i: Value assigned to each pixel (i is an integer of 1 or more)
The luminance data is converted into black and white binary image data.

すなわち、白黒2値画像から文字を切り出し、その文字をパターン化することにより得られる文字パターンの特徴とデータベース化された文字パターン情報が表わす文字パターンとをマッチングする。データベース化された文字パターンと切り出された文字パターンとを重ね合わせ、画素ごとに両方とも「白」または両方とも「黒」であるか否かを比較し、全ての画素について両方とも「白」または両方とも「黒」である場合には、当該データベース化された文字パターンをマッチングした文字であると判断する。   That is, a character pattern obtained by cutting out a character from a black and white binary image and patterning the character is matched with a character pattern represented by character pattern information stored in a database. Superimpose the databased character pattern and the extracted character pattern, compare each pixel to see if both are “white” or both are “black”, and all pixels are both “white” or If both are “black”, it is determined that the database matches the character pattern in the database.

全ての画素について両方とも「白」または両方とも「黒」となるようなデータベース化された文字パターンが存在しない場合には、データベース化された文字パターンのうち両方とも「白」または両方とも「黒」となる画素の数が所定の閾値以上であり、かつ、最大である文字パターンをマッチングした文字であると判断する。なお、データベース化された文字パターンのうち両方とも「白」または両方とも「黒」となる画素の数が所定の閾値未満である場合には、マッチング不能と判断する。   If there is no databased character pattern that is both “white” or both “black” for all pixels, both of the databased character patterns are “white” or both “black” Is determined to be a character obtained by matching a character pattern having the maximum number of pixels equal to or greater than a predetermined threshold value. If the number of pixels that are both “white” or both “black” in the database of character patterns is less than a predetermined threshold, it is determined that matching is impossible.

切り出された文字パターンのすべてに対してマッチングの処理を適用し、マッチングした文字の数を検出する。   A matching process is applied to all the extracted character patterns, and the number of matched characters is detected.

そして、上記白黒2値画像を、90°、180°、270°回転して得られる各画像について、そのような画像を表わす画像データを一時的に生成するとともに該画像データに対してもOCR技術による文字認識の処理を適用する。   For each image obtained by rotating the black and white binary image by 90 °, 180 °, and 270 °, image data representing such an image is temporarily generated, and the OCR technique is also applied to the image data. Apply character recognition processing by.

最後に、原稿方向検知部7は、マッチングした文字の数が最大となるような角度を示す角度情報を原稿方向補正部8に供給する。   Finally, the document direction detection unit 7 supplies angle information indicating an angle that maximizes the number of matched characters to the document direction correction unit 8.

そして、原稿方向補正部8は、原稿方向検知部7から受け付けた角度情報に基づいて、記憶装置104に記録されている出力用画像データに対して、その表わす原稿画像を回転するように処理を施す(S5)。すなわち、角度情報が90°、180°、270である場合、それぞれ、以下の式で表わされる(X’,Y’)(補正後の原稿画像に含まれる座標)の階調値が補正前の原稿画像に含まれる座標(X,Y)の階調値と一致するように、出力用画像データを補正する。
90°回転時
X’=天地補正前画像データが表わす画像の高さ−1−Y
Y’=X
180°回転時
X’=天地補正前画像データが表わす画像の幅−1−X
Y’=天地補正前画像データが表わす画像の高さ−1−Y
270°回転時
X’=Y
Y’=天地補正前画像データが表わす画像の幅−1−X
(3)再印刷処理・再イメージ送信処理
(3−1 再印刷処理)
再印刷処理時における画像処理装置102の動作について図4(b)を参照して説明する。図4(b)は、再印刷処理時における画像処理装置102の動作を示すフローチャートである。なお、ここでは、傾き補正機能およびサイズ補正機能が有効と設定されていることを前提として画像処理装置102の説明をする。
Then, based on the angle information received from the document direction detection unit 7, the document direction correction unit 8 performs processing so as to rotate the document image represented by the output image data recorded in the storage device 104. (S5). That is, when the angle information is 90 °, 180 °, and 270, the gradation values of (X ′, Y ′) (coordinates included in the corrected document image) represented by the following equations are the values before correction. The output image data is corrected so as to match the gradation value of the coordinates (X, Y) included in the document image.
When rotated by 90 ° X ′ = height of the image represented by the image data before vertical correction—1-Y
Y '= X
When rotated 180 ° X ′ = width of the image represented by the image data before vertical correction—1-X
Y ′ = the height of the image represented by the image data before the top and bottom correction—1-Y
When rotating 270 ° X '= Y
Y ′ = the width of the image represented by the image data before and after correction—1-X
(3) Reprint processing / Reimage transmission processing (3-1 Reprint processing)
The operation of the image processing apparatus 102 during the reprint process will be described with reference to FIG. FIG. 4B is a flowchart showing the operation of the image processing apparatus 102 during the reprint process. Here, the image processing apparatus 102 will be described on the assumption that the tilt correction function and the size correction function are set to be valid.

図示しない操作部を介して、すでに読み込まれ、記憶装置104に記録されている入力画像データの再印刷処理の指示を受け付けると、制御部106は、記憶装置104から当該入力画像データ、および当該入力画像データと関連づけられた4点座標を読み込み、原稿傾き・サイズ検知部5に供給する。原稿傾き・サイズ検知部5は、該4点座標に基づき補正用パラメータを算出するとともに原稿傾き・サイズ補正部6に供給する(S11)。   When receiving an instruction to reprint input image data that has already been read and recorded in the storage device 104 via an operation unit (not shown), the control unit 106 receives the input image data and the input image data from the storage device 104. The four-point coordinates associated with the image data are read and supplied to the document inclination / size detection unit 5. The document inclination / size detection unit 5 calculates correction parameters based on the four-point coordinates and supplies them to the document inclination / size correction unit 6 (S11).

原稿傾き・サイズ補正部6は、原稿傾き・サイズ検知部5から受け取った補正用パラメータの値に基づいて、入力画像データとは別に、入力画像データに対して傾き・サイズ補正処理を施した出力用画像データを生成して記憶装置104に記憶する(S12)。   The document inclination / size correction unit 6 outputs an image obtained by performing an inclination / size correction process on the input image data separately from the input image data based on the value of the correction parameter received from the document inclination / size detection unit 5. Image data is generated and stored in the storage device 104 (S12).

原稿方向検知部7は、ユーザにより指定された補正の設定条件に該当する補正が行われたこと(本実施形態においては、傾き補正およびサイズ補正が行われたこと)を検知すると、記憶装置104に記憶されている出力用画像データを読み出し、出力用画像に含まれる原稿画像の天地判定を行う(S13)。   When the document direction detection unit 7 detects that the correction corresponding to the correction setting condition specified by the user has been performed (in this embodiment, the tilt correction and the size correction have been performed), the storage device 104 is detected. The image data for output stored in is read out and the top / bottom determination of the document image included in the image for output is performed (S13).

そして、原稿方向補正部8は、原稿方向検知部7から受け付けた角度情報に基づいて、記憶装置104に記録されている出力用画像データに対して、その表わす原稿画像を回転するように処理を施す(S14)。   Then, based on the angle information received from the document direction detection unit 7, the document direction correction unit 8 performs processing so as to rotate the document image represented by the output image data recorded in the storage device 104. (S14).

なお、S11〜S14における傾き補正・サイズ補正・天地補正の具体的な処理の内容は、印刷処理時と同様である。   Note that the specific processing contents of tilt correction, size correction, and top / bottom correction in S11 to S14 are the same as those in the printing process.

また、画像出力装置103に出力用画像データを出力するまでに、領域分離部9〜中間調生成部13が行う動作は、印刷処理時と同様である。   The operations performed by the region separation unit 9 to the halftone generation unit 13 until the output image data is output to the image output device 103 are the same as those during the printing process.

(3−2 再イメージ送信処理)
図示しない操作部を介して、すでに読み込まれ、記憶装置104に記録されている画像データの再イメージ送信処理の指示を受け付けると、再印刷処理時と同様に、制御部106は、記憶装置104から当該入力画像データ、および当該入力画像データと関連づけられた4点座標を読み込み、原稿傾き・サイズ検知部5に供給する。以降、傾き補正、サイズ補正、および天地補正がされた画像データを表わすPDFファイルを、通信装置105を介して外部に送信するまでに原稿傾き・サイズ検知部5〜原稿方向補正部8、制御部106が行う動作は、イメージ送信処理時と同様である。
(3-2 Re-image transmission processing)
Upon receiving an instruction for a re-image transmission process for image data that has already been read and recorded in the storage device 104 via an operation unit (not shown), the control unit 106 reads from the storage device 104 in the same way as during the re-print process. The input image data and the four-point coordinates associated with the input image data are read and supplied to the document inclination / size detection unit 5. Thereafter, the PDF file representing the image data subjected to the tilt correction, the size correction, and the top / bottom correction is transmitted to the outside via the communication device 105, and the document tilt / size detection unit 5 to the document direction correction unit 8 and the control unit are transmitted. The operation performed by 106 is the same as in the image transmission process.

(再印刷処理や再イメージ送信処理のためのユーザによる操作)
なお、再印刷処理や再イメージ送信処理時において記憶装置104に記録されている画像データを画像形成装置100に読み出させ処理を行わせるためにユーザが行う操作の手順は以下の通りである。すなわち、
1)ハードディスクに格納されているファイリングデータより、処理を行うデータを指定する。
2)原稿補正モードを選択する。
3)補正処理方法を選択する。具体的には、図18(a)に示すように、4通りの補正方法の中から補正処理方法を選択する。あるいは、図18(b)に示すように傾き補正、原稿サイズ補正のチェックボックスを選択または非選択にすることにより4通りの補正方法の中から補正処理方法を選択する。
(User operation for reprint processing and reimage transmission processing)
Note that the procedure of an operation performed by the user for causing the image forming apparatus 100 to read out the image data recorded in the storage device 104 during the reprinting process or the reimage transmission process is as follows. That is,
1) Designate data to be processed from filing data stored in the hard disk.
2) Select the document correction mode.
3) Select a correction processing method. Specifically, as shown in FIG. 18A, a correction processing method is selected from four correction methods. Alternatively, as shown in FIG. 18B, a correction processing method is selected from four correction methods by selecting or deselecting check boxes for tilt correction and document size correction.

これにより、画像形成装置100は、画像データの読み出しを行い、補正処理を実行する。そして補正が施された出力画像データを出力する。   As a result, the image forming apparatus 100 reads out the image data and executes correction processing. The corrected output image data is output.

なお、1)〜3)の操作は画像形成装置100の操作パネルより行う。また、画像形成装置100で操作を行うのではなく、通信回線を通じて接続されたコンピュータ(図示せず)から画像形成装置100にアクセスして操作を行うようにしても良い。この場合、上記1)〜3)の操作は、コンピュータに接続されたディスプレイに表示される操作画面(UI)を通じて行う。   The operations 1) to 3) are performed from the operation panel of the image forming apparatus 100. Further, instead of operating the image forming apparatus 100, the image forming apparatus 100 may be accessed and operated from a computer (not shown) connected through a communication line. In this case, the operations 1) to 3) are performed through an operation screen (UI) displayed on a display connected to the computer.

(画像形成装置100の利点)
以上のように本実施形態の画像形成装置100は、印刷処理時やイメージ送信処理時には、傾き補正機能やサイズ補正機能が有効であるか無効であるかに関わらず、入力画像と入力画像に含まれる原稿画像の4頂点の座標(4点座標)とを関連づけて記憶装置104に記憶しておく。従って、傾き補正機能やサイズ補正機能の設定が変更され、再印刷処理や再イメージ送信処理が指示された場合にも、画像形成装置100は、入力画像データと4点座標とから出力用画像データを得ることにより再度原稿をスキャンすることなく該設定に基づく印刷やイメージ送信を行うことができるという効果を奏する。
(Advantages of the image forming apparatus 100)
As described above, the image forming apparatus 100 according to the present embodiment includes the input image and the input image during the printing process and the image transmission process regardless of whether the inclination correction function or the size correction function is enabled or disabled. The coordinates of the four vertices (four-point coordinates) of the original image to be stored are associated with each other and stored in the storage device 104. Accordingly, even when the settings of the inclination correction function and the size correction function are changed and reprint processing or reimage transmission processing is instructed, the image forming apparatus 100 outputs image data for output from the input image data and the four-point coordinates. As a result, printing and image transmission based on the setting can be performed without scanning the original again.

(変形例)
以上説明したように、画像形成装置100は、印刷処理時やイメージ送信処理時に入力画像データと4点座標(図11におけるP1〜P4の座標)とを記憶装置104に関連づけて記憶するが、入力画像データと関連付けて記録する領域情報は4点座標でなくともよい。すなわち、入力画像データと関連づけて記録する領域情報として、
(1)原稿画像の3点座標(例えば、図12におけるP1,P2,P3のように、左端および上下端の座標)
(2)原稿画像の対角線上の2点座標(図13におけるP1,P4の座標)、および原稿画像と入力画像データが表わす入力画像のY軸方向とがなす角度(図13におけるθ)
(3)原稿画像の左端座標(図14におけるP1の座標)、原稿の幅・高さ、および原稿画像と入力画像データが表わす入力画像のY軸方向とがなす角度(図14におけるθ)
など、入力画像中の原稿画像の位置を確定するような他のデータを記憶してもよい。ここでは、上記(1)〜(3)の場合において、画像形成装置100がどのように傾き補正やサイズ補正を行うかについて以下に説明する。
(Modification)
As described above, the image forming apparatus 100 stores the input image data and the four-point coordinates (the coordinates of P1 to P4 in FIG. 11) in association with the storage device 104 during the printing process or the image transmission process. The area information recorded in association with the image data may not be four-point coordinates. That is, as area information to be recorded in association with input image data,
(1) Three-point coordinates of the document image (for example, the coordinates of the left end and the upper and lower ends as P1, P2, and P3 in FIG. 12)
(2) Two point coordinates on the diagonal line of the document image (P1, P4 coordinates in FIG. 13) and an angle formed by the document image and the Y-axis direction of the input image represented by the input image data (θ in FIG. 13)
(3) The left end coordinates (P1 coordinates in FIG. 14) of the document image, the width / height of the document, and the angle formed by the document image and the Y-axis direction of the input image represented by the input image data (θ in FIG. 14)
For example, other data for determining the position of the document image in the input image may be stored. Here, how the image forming apparatus 100 performs tilt correction and size correction in the cases (1) to (3) will be described below.

(3点座標を記憶装置104に記録する場合の傾き・サイズ補正)
印刷処理時やイメージ送信処理時の場合、原稿傾き・サイズ検知部5は、画像中の原稿画像の頂点を示す3点座標を抽出し、該3点座標を入力画像データと関連づけて記憶装置104に記録する。なお、3点座標の抽出は、4点座標の抽出の場合と同様にして行う。
(Tilt / size correction when recording three-point coordinates in the storage device 104)
In the printing process or the image transmission process, the document inclination / size detection unit 5 extracts the three-point coordinates indicating the vertex of the document image in the image, and associates the three-point coordinates with the input image data in the storage device 104. To record. Note that the extraction of the three-point coordinates is performed in the same manner as the extraction of the four-point coordinates.

すなわち、エッジ検出処理部51は、図6に示すように、入力画像データが表わす入力画像の各ライン(ラインN:N=1、2、・・)について、ライン1から順に当該ライン上の各画素の階調値を求め、所定の閾値以上の階調値を有する画素のうち最も左側の画素の座標値(LN,N)および最も右側の画素の座標値(RN,N)を抽出する。なお、この処理は、4点座標の抽出の場合と同様に画像のすべてのラインについて行う。 That is, as shown in FIG. 6, the edge detection processing unit 51 performs each line on the line in order from line 1 for each line (line N: N = 1, 2,...) Of the input image represented by the input image data. obtains the gradation value of the pixel extracted, the leftmost coordinate value of the pixels of the pixel having the tone value than a predetermined threshold value (L N, N) and most coordinate value in the right pixel (R N, N) To do. This process is performed for all the lines of the image as in the case of extracting the four-point coordinates.

最後に、エッジ検出処理部51は、抽出した全座標値のうち、X座標の値が最小および最大の座標、並びに、Y座標の値が最小および最大の座標(すなわち、4点座標)の中から3点を選択して3点座標とし、3点座標の値をパラメータ算出部52に供給する。   Finally, the edge detection processing unit 51 selects the coordinates of the minimum and maximum values of the X coordinate and the coordinates of the minimum and maximum values of the Y coordinate (ie, four-point coordinates) among all the extracted coordinate values. 3 points are selected to obtain 3 point coordinates, and the value of the 3 point coordinates is supplied to the parameter calculation unit 52.

一方、再印刷処理時や再イメージ送信処理時の場合、原稿傾き・サイズ検知部5は、記憶装置104に記録されている3点座標を読み出す。   On the other hand, in the reprint process or the re-image transmission process, the document inclination / size detection unit 5 reads the three-point coordinates recorded in the storage device 104.

そして、原稿傾き・サイズ検知部5は、3点座標から補正用パラメータを算出する。   Then, the document inclination / size detection unit 5 calculates a correction parameter from the three-point coordinates.

以降、画像形成装置100が行う傾き補正やサイズ補正の処理は、記憶装置104に入力画像データと関連づけて記憶するデータが4点座標である場合と同様である。   Thereafter, the inclination correction and size correction processing performed by the image forming apparatus 100 is the same as when the data stored in the storage device 104 in association with the input image data is four-point coordinates.

(2点座標および傾き角度θを記憶装置104に記録する場合の傾き・サイズ補正)
印刷処理時やイメージ送信処理時には、原稿傾き・サイズ検知部5は、これまでに説明した4点座標の抽出と同様の方法で、4点座標を抽出する。そして、原稿傾き・サイズ検知部5は、4点座標が表わす4頂点のうち隣り合う2頂点を選択して、選択した2頂点(例えば図13のP1とP3)間のX軸方向の距離(例えばx3−x1)およびY軸方向の距離(y3−y1)を算出する。そして、2つの距離に基づいてtanθを算出し、図7の正接角度テーブルに基づき傾き角度θを求める。その後、原稿傾き・サイズ検知部5は、抽出した座標のうち対角線上の2点の座標(図13のP1、P4)および傾き角度θを表わすデータを、入力画像データと関連づけて記録する。
(Inclination / size correction when recording the two-point coordinates and the inclination angle θ in the storage device 104)
At the time of print processing or image transmission processing, the document inclination / size detection unit 5 extracts four-point coordinates in the same manner as the four-point coordinate extraction described so far. Then, the document inclination / size detection unit 5 selects two adjacent vertices among the four vertices represented by the four-point coordinates, and the distance in the X-axis direction (for example, P1 and P3 in FIG. 13) ( For example, x3-x1) and the distance in the Y-axis direction (y3-y1) are calculated. Then, tan θ is calculated based on the two distances, and the tilt angle θ is obtained based on the tangent angle table of FIG. After that, the document inclination / size detection unit 5 records data representing the coordinates of two diagonal points (P1 and P4 in FIG. 13) and the inclination angle θ among the extracted coordinates in association with the input image data.

再印刷処理時や再イメージ送信処理時には、原稿傾き・サイズ検知部5は、記憶装置104から記録されている2点座標および傾き角度θを読み出す。   During the reprint process or the reimage transmission process, the document inclination / size detection unit 5 reads the two-point coordinates and the inclination angle θ recorded from the storage device 104.

そして、原稿傾き・サイズ検知部5は、対角線上にある2点座標および傾き角度θから補正用パラメータを算出する。   Then, the document inclination / size detection unit 5 calculates a correction parameter from the two-point coordinates on the diagonal line and the inclination angle θ.

以降、画像形成装置100が行う傾き補正やサイズ補正の処理は、記憶装置104に入力画像データと関連づけて記憶するデータが4点座標である場合と同様である。   Thereafter, the inclination correction and size correction processing performed by the image forming apparatus 100 is the same as when the data stored in the storage device 104 in association with the input image data is four-point coordinates.

(左端座標、原稿の幅・高さ、および傾き角度θを記憶装置104に記録する場合の傾き・サイズ補正)
印刷処理時やイメージ送信処理時には、原稿傾き・サイズ検知部5は、これまでに説明した4点座標の抽出と同様の方法で4点座標を抽出し、入力画像データを記憶装置104に記録する。そして、傾き補正機能やサイズ補正機能の設定に関わりなく、原稿傾き・サイズ検知部5は、傾き補正やサイズ補正が有効である場合における補正用パラメータ、すなわち、補正処理開始座標(原稿画像の左端座標(図14のP1))、補正後画像サイズ(原稿画像の幅・高さ)、補正角度(傾き角度θ)の各パラメータを算出する。そして、原稿傾き・サイズ検知部5は、該補正用パラメータを入力画像データと関連づけて記憶装置104に記録する。
(Tilt / size correction when the left end coordinate, document width / height, and tilt angle θ are recorded in the storage device 104)
At the time of print processing or image transmission processing, the document inclination / size detection unit 5 extracts the four-point coordinates by the same method as the four-point coordinate extraction described so far, and records the input image data in the storage device 104. . Regardless of the settings of the tilt correction function and the size correction function, the document tilt / size detection unit 5 performs correction parameters when tilt correction or size correction is effective, that is, correction processing start coordinates (the left end of the document image). Parameters such as coordinates (P1 in FIG. 14), corrected image size (width / height of the original image), and correction angle (tilt angle θ) are calculated. The document inclination / size detection unit 5 records the correction parameter in the storage device 104 in association with the input image data.

一方、再印刷処理時や再イメージ送信処理時には、原稿傾き・サイズ検知部5は、記憶装置104に記録されている補正用パラメータを読み出す。   On the other hand, during the reprint process or the re-image transmission process, the document inclination / size detection unit 5 reads the correction parameters recorded in the storage device 104.

そして、原稿傾き・サイズ検知部5は、補正処理開始座標、補正後画像サイズの幅、高さの値、補正角度の各パラメータに基づき、補正用パラメータを算出する。   The document inclination / size detection unit 5 calculates correction parameters based on the correction processing start coordinates, the corrected image size width, height value, and correction angle parameters.

以降、画像形成装置100が行う傾き補正やサイズ補正の処理は、記憶装置104に入力画像データと関連づけて記憶するデータが4点座標である場合と同様である。   Thereafter, the inclination correction and size correction processing performed by the image forming apparatus 100 is the same as when the data stored in the storage device 104 in association with the input image data is four-point coordinates.

(実施形態2)
実施形態1に係る画像形成装置100は、傾き補正機能が有効になっており、かつ、パラメータ算出部52が算出した補正角度のパラメータが補正機能キャンセル角度閾値より小さい場合に傾き補正を無効にする旨の説明をした。本実施形態に係る画像形成装置100’は、自動的に傾き補正を無効にせず、傾き補正を有効にするか無効にするかをユーザに問い合わせることができる。
(Embodiment 2)
The image forming apparatus 100 according to the first embodiment disables the tilt correction when the tilt correction function is enabled and the correction angle parameter calculated by the parameter calculation unit 52 is smaller than the correction function cancel angle threshold. I explained that. The image forming apparatus 100 ′ according to the present embodiment can inquire the user whether to enable or disable the tilt correction without automatically invalidating the tilt correction.

画像形成装置100’について、図15〜18を参照して説明する。図15、図16は、それぞれ、画像形成装置100’、画像読取装置における、印刷処理やイメージ送信処理時の画像データの流れを示すものである。図15および図16に示すように、本実施形態の画像形成装置100’、画像読取装置は、表示制御部14を備えるとともに画像表示装置107に表示する画像データを出力する点を除き、実施形態1の画像形成装置100、画像読取装置と同様の構成を備えている。   The image forming apparatus 100 ′ will be described with reference to FIGS. FIGS. 15 and 16 show the flow of image data during the printing process and the image transmission process in the image forming apparatus 100 ′ and the image reading apparatus, respectively. As shown in FIGS. 15 and 16, the image forming apparatus 100 ′ and the image reading apparatus according to this embodiment include the display control unit 14 and output image data to be displayed on the image display apparatus 107. 1 has the same configuration as the image forming apparatus 100 and the image reading apparatus.

画像表示装置107は、画像形成装置100’の操作パネル(不図示)に備えられている液晶ディスプレイである。また、画像表示装置107は、タッチパネルに覆われており、画像形成装置100’の入力インターフェースとしての機能を有している。図18に示すように、画像表示装置107には、画像処理装置102に対して原稿サイズの補正機能や傾き補正機能のオンオフを指示するなど、各種コマンドの入力を行うためのGUI(グラフィカルユーザインターフェース)や操作ガイドが表示される。   The image display device 107 is a liquid crystal display provided in an operation panel (not shown) of the image forming apparatus 100 ′. The image display device 107 is covered with a touch panel, and has a function as an input interface of the image forming apparatus 100 ′. As shown in FIG. 18, the image display device 107 is a GUI (graphical user interface) for inputting various commands such as instructing the image processing device 102 to turn on / off the document size correction function and the inclination correction function. ) And operation guides are displayed.

なお、画像表示装置107は、液晶ディスプレイに限定されるものではなく、液晶ディスプレイ以外の表示手段(例えば、有機ELディスプレイ、プラズマディスプレイ等)であってもよい。   The image display device 107 is not limited to a liquid crystal display, and may be a display means other than the liquid crystal display (for example, an organic EL display, a plasma display, etc.).

傾き補正機能が有効になっている場合において、パラメータ算出部52が算出した補正角度のパラメータが補正機能キャンセル角度閾値より小さいことを検出した場合に、原稿傾き・サイズ検知部5は、印刷やイメージ送信する前にプレビュー表示する旨の指示とともに、傾き補正を無効にした場合の補正用パラメータを原稿傾き・サイズ補正部6に供給する。原稿傾き・サイズ補正部6は、出力された補正用パラメータに基づいて補正した表示用画像データを生成する。そして、原稿傾き・サイズ補正部6は、該表示用画像データが表わす表示用画像(傾き補正キャンセル画像)を画像表示装置107に表示する旨の指示を表示制御部14に供給する。そして、図17(a)(b)に示すように、表示制御部14は、表示用画像とともに傾き補正を有効にするか無効にするかを選択するためインターフェース(図17における「OK」ボタンおよび「傾き補正実施」ボタン)を画像表示装置107に表示する。   When the tilt correction function is enabled, when it is detected that the parameter of the correction angle calculated by the parameter calculation unit 52 is smaller than the correction function cancel angle threshold, the document tilt / size detection unit 5 performs printing or image processing. Along with an instruction to display a preview before transmission, a correction parameter when the inclination correction is invalidated is supplied to the document inclination / size correction unit 6. The document inclination / size correction unit 6 generates display image data corrected based on the output correction parameters. Then, the document inclination / size correction unit 6 supplies the display control unit 14 with an instruction to display the display image (inclination correction cancel image) represented by the display image data on the image display device 107. Then, as shown in FIGS. 17A and 17B, the display control unit 14 selects an interface (an “OK” button and a “OK” button in FIG. 17) to select whether to enable or disable the tilt correction together with the display image. “Inclination correction” button) is displayed on the image display device 107.

画像表示装置107は、ユーザから指示を受け付けると、当該指示を制御部106が検知する。当該指示が傾き補正を無効にすべき旨の指示である場合、制御部106は、表示用画像データに基づいて天地補正のための原稿方向の検知を行う原稿方向検知部7に指示する。傾き補正が施されていない表示用画像データに原稿方向検知部7以降の処理が行われ、その結果得られた出力画像データが出力される。   When the image display apparatus 107 receives an instruction from the user, the control unit 106 detects the instruction. When the instruction is an instruction to invalidate the tilt correction, the control unit 106 instructs the document direction detection unit 7 that detects the document direction for the top and bottom correction based on the display image data. The display image data that has not been tilt-corrected is subjected to processing subsequent to the document orientation detection unit 7, and output image data obtained as a result is output.

一方、当該指示が傾き補正を有効にすべき旨の指示である場合、制御部106は、原稿傾き・サイズ検知部5に対し、記憶装置104に記録されている4点座標に基づき、傾き補正を有効にした場合の補正用パラメータを算出するよう指示する。その後、原稿傾き・サイズ検知部5以降の処理により、傾き補正が施された出力画像データが出力される。   On the other hand, when the instruction is an instruction indicating that the inclination correction should be enabled, the control unit 106 instructs the document inclination / size detection unit 5 to perform the inclination correction based on the four-point coordinates recorded in the storage device 104. Is instructed to calculate a correction parameter when. Thereafter, the output image data subjected to the tilt correction is output by the processing after the document tilt / size detection unit 5.

以上のように、画像形成装置100’は、原稿画像の傾きが小さい場合に、傾き補正を無効にした場合に出力される出力画像をプレビュー表示するとともに、傾き補正を行うか否かの指示をユーザから受け付ける。これにより、ユーザは出力画像を確認して傾き補正を行うか否かを判断できる。無地の原稿に比べ罫線などで囲まれた原稿は傾いて印刷された場合に傾きを顕著に感じるが、このような原稿を印刷する場合などに画像形成装置100’は特に有効である。   As described above, the image forming apparatus 100 ′ displays a preview of the output image output when the inclination correction is invalidated when the inclination of the document image is small, and instructs whether to perform the inclination correction. Accept from user. Thereby, the user can determine whether or not to perform inclination correction by checking the output image. Compared to a plain document, the document surrounded by ruled lines and the like feels noticeable when tilted and printed, but the image forming apparatus 100 'is particularly effective when printing such a document.

(付記事項)
なお、実施形態1におけるイメージ送信処理は、画像入力装置500および画像処理装置112からなる画像読取装置(スキャナ)として実現してもよい。また、実施形態2におけるイメージ送信処理は、画像入力装置500および画像処理装置112’からなる画像読取装置(スキャナ)として実現してもよい。
(Additional notes)
Note that the image transmission processing in the first embodiment may be realized as an image reading device (scanner) including the image input device 500 and the image processing device 112. Further, the image transmission processing in the second embodiment may be realized as an image reading device (scanner) including the image input device 500 and the image processing device 112 ′.

図2および図16に基づいてイメージ送信処理時における画像処理装置112、112’の動作について説明する。図2および図16は、それぞれ、イメージ送信モードにおいて、フルカラーでイメージ送信処理を行う際の画像処理装置112、112’内の画像データの流れを示したものである。   The operation of the image processing apparatuses 112 and 112 ′ during the image transmission process will be described with reference to FIGS. 2 and 16. FIGS. 2 and 16 show the flow of image data in the image processing apparatuses 112 and 112 ′ when image transmission processing is performed in full color in the image transmission mode, respectively.

画像処理装置112、112’は、A/D変換部2、シェーディング補正部3、入力処理部4、原稿傾き・サイズ検知部5、原稿傾き・サイズ補正部6、原稿方向検知部7、及び原稿方向補正部8を備えている。また、画像処理装置112’は表示制御部14を備えている。画像処理装置112、112’の各処理部の処理内容は、それぞれ、画像形成装置100、100’を構成する画像処理装置102、102’と同様である。   The image processing apparatuses 112 and 112 ′ include an A / D conversion unit 2, a shading correction unit 3, an input processing unit 4, a document inclination / size detection unit 5, a document inclination / size correction unit 6, a document direction detection unit 7, and a document. A direction correction unit 8 is provided. Further, the image processing apparatus 112 ′ includes a display control unit 14. The processing contents of the respective processing units of the image processing apparatuses 112 and 112 ′ are the same as those of the image processing apparatuses 102 and 102 ′ constituting the image forming apparatuses 100 and 100 ′, respectively.

画像処理装置112、112’において上記各処理が施された後のRGB画像信号はコンピュータやハードディスク、ネットワークなどへ出力される。   The RGB image signal after the above processing is performed in the image processing devices 112 and 112 'is output to a computer, a hard disk, a network, or the like.

また、画像処理装置112’において、表示制御部14は、解像度変換、確認用画像生成、ガンマ補正の処理を施すとともに、画像データをディスプレイなどの画像を表示する画像表示装置107へ出力する。なお、画像読取装置は本体にディスプレイを備えてもよく、この場合、表示制御部14は本体に備えられたディスプレイに画像を表示する。   In the image processing apparatus 112 ′, the display control unit 14 performs resolution conversion, confirmation image generation, and gamma correction processing, and outputs the image data to the image display apparatus 107 that displays an image such as a display. The image reading apparatus may include a display on the main body. In this case, the display control unit 14 displays an image on the display provided on the main body.

なお、画像形成装置100、100’において、画像入力装置500に原稿サイズの検知機構が備えられており、傾き補正またはサイズ補正が有効になっている場合には、原稿サイズの検知機構の結果を参照せずに、予め定められている一定の範囲(例えば、A3サイズ、A4サイズ)で原稿をスキャンし、傾き補正およびサイズ補正が無効になっている場合には、検知機構の結果を参照し検知した範囲で原稿をスキャンする。ここで、原稿サイズの検知機構とは、画像入力装置内に配置されたフォトトランジスタなどの光電変換素子により、原稿台に載置された、主走査方向、副走査方向の原稿サイズを検知する方法や、操作パネルより、ユーザにより選択された原稿サイズを制御部にて検知する方法などが挙げられる。   In the image forming apparatuses 100 and 100 ′, when the image input device 500 is provided with a document size detection mechanism, and tilt correction or size correction is enabled, the result of the document size detection mechanism is displayed. If the document is scanned within a predetermined range (for example, A3 size, A4 size) without reference, and tilt correction and size correction are disabled, refer to the result of the detection mechanism. Scans the document within the detected range. Here, the document size detection mechanism is a method of detecting the document size in the main scanning direction and the sub-scanning direction placed on the document table by a photoelectric conversion element such as a phototransistor disposed in the image input device. In addition, there is a method in which the control unit detects the document size selected by the user from the operation panel.

また、画像入力装置500に原稿サイズの検知機構が備えられていない画像形成装置100、100’の場合は、予め設定された範囲(例えば、A3サイズ、A4サイズ)について、読み取りを行う。   In the case of the image forming apparatuses 100 and 100 ′ in which the image input apparatus 500 is not provided with a document size detection mechanism, reading is performed for a preset range (for example, A3 size, A4 size).

(プログラム、記録媒体)
本発明は、上記した原稿の傾き、サイズ、方向判定を行い、検知結果に応じて、原稿の傾き、サイズ、天地補正を行う画像処理方法をコンピュータに実行させるためのプログラムコード(実行形式プログラム、中間コードプログラム、ソースプログラム)を記録したコンピュータ読み取り可能な記録媒体としても実現することもできる。この結果、原稿の傾き、サイズ、方向判定を行い、検知結果に応じて、原稿の傾き、サイズ、方向補正を行う画像処理方法を行うプログラムを記録した記録媒体を持ち運び自在に提供することができる。
(Program, recording medium)
According to the present invention, there is provided program code (execution format program, program for causing a computer to execute an image processing method for performing the above-described document inclination, size, and orientation determination, and performing document inclination, size, and top / bottom correction according to the detection result. It can also be realized as a computer-readable recording medium on which an intermediate code program and a source program are recorded. As a result, it is possible to portablely provide a recording medium on which a program for performing an image processing method for correcting the inclination, size, and direction of the original is determined according to the detection result. .

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

いずれの場合においても、格納されているプログラムコードはマイクロプロセッサがアクセスして実行させる構成であっても良いし、あるいは、いずれの場合もプログラムコードを読み出し、読み出されたプログラムコードは、マイクロコンピュータの図示されていないプログラム記憶エリアにダウンロードされて、そのプログラムコードが実行される方式であってもよい。このダウンロード用のプログラムは予め本体装置に格納されているものとする。   In any case, the stored program code may be configured to be accessed and executed by the microprocessor, or in any case, the program code is read and the read program code is the 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 such that a communication network including the Internet can be connected, a medium that dynamically carries the program code so as to download the program code from the communication network may be used. When the program code is downloaded from the communication network in this way, the download program may be stored in the main device in advance, or may be installed from another recording medium. 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. 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.

コンピュータシステムは、フラットベッドスキャナ・フィルムスキャナ・デジタルカメラなどの画像入力装置、所定のプログラムがロードされることにより上記画像処理方法など様々な処理が行われるコンピュータ、コンピュータの処理結果を表示する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 image processing apparatus of the present invention can be used for an apparatus that handles image data, but is particularly suitable for a multifunction machine, a copying machine, a printer, and a facsimile machine.

5 原稿傾き・サイズ検知部(記録手段)
6 原稿傾き・サイズ補正部(補正手段)
7 原稿方向検知部
8 原稿方向補正部
9 領域分離部
10 色補正部
11 黒生成/下色除去部
12 空間フィルタ部
13 中間調生成部
14 表示制御部(表示制御手段)
51 エッジ検出処理部
52 パラメータ算出部
100 画像形成装置
100’ 画像形成装置
102 画像処理装置
102’ 画像処理装置
103 画像出力装置
104 記憶装置(記憶部)
105 通信装置
106 制御部(設定受付手段、指示受付手段)
107 画像表示装置
112 画像処理装置
112’ 画像処理装置
500 画像入力装置
5 Document tilt / size detector (recording means)
6 Document skew / size correction unit (correction means)
7 Document Direction Detection Unit 8 Document Direction Correction Unit 9 Area Separation Unit 10 Color Correction Unit 11 Black Generation / Under Color Removal Unit 12 Spatial Filter Unit 13 Halftone Generation Unit 14 Display Control Unit (Display Control Unit)
51 Edge detection processing unit 52 Parameter calculation unit 100 Image forming apparatus 100 ′ Image forming apparatus 102 Image processing apparatus 102 ′ Image processing apparatus 103 Image output apparatus 104 Storage device (storage unit)
105 communication device 106 control unit (setting accepting means, instruction accepting means)
107 Image Display Device 112 Image Processing Device 112 ′ Image Processing Device 500 Image Input Device

Claims (13)

画像読取装置にて原稿画像全体を含む領域を読み取ることにより生成された、入力画像の画像データを処理する画像処理装置であって、
上記原稿画像の傾きを補正する傾き補正、および上記入力画像のサイズを上記原稿画像のサイズに補正するサイズ補正の少なくとも一方の補正を行うか否かに関する設定を受け付ける設定受付手段と、
上記設定受付手段が受け付けた設定の内容に関わらず、上記傾き補正および上記サイズ補正に使用する上記原稿画像の領域情報を生成するとともに、上記領域情報と上記入力画像とを関連づけて記憶部に記録する記録手段と、
上記設定受付手段が上記少なくとも一方の補正を行う旨の設定を受け付けた場合に、上記入力画像と関連づけて上記記憶部に記録されている上記領域情報に基づいて、上記入力画像に上記設定に応じた補正を施す補正手段とを備えていることを特徴とする画像処理装置。
An image processing apparatus for processing image data of an input image generated by reading an area including an entire original image by an image reading apparatus,
Setting accepting means for accepting a setting relating to whether or not to perform at least one of inclination correction for correcting the inclination of the original image and size correction for correcting the size of the input image to the size of the original image;
Regardless of the content of the setting received by the setting receiving means, the area information of the original image used for the inclination correction and the size correction is generated, and the area information and the input image are associated and recorded in the storage unit. Recording means to
When the setting accepting unit accepts a setting for performing at least one of the corrections, the input image is set according to the setting based on the area information recorded in the storage unit in association with the input image. An image processing apparatus comprising correction means for performing correction.
上記補正手段は、上記入力画像に上記補正を施すとともに、補正によって得られた補正後画像に含まれる原稿画像の向きを補正する天地補正を補正後画像に施すことを特徴とする請求項1に記載の画像処理装置。   2. The correction unit according to claim 1, wherein the correction unit performs the correction on the input image and performs a top-and-bottom correction on the corrected image for correcting the orientation of the document image included in the corrected image obtained by the correction. The image processing apparatus described. 上記設定受付手段が上記傾き補正および上記サイズ補正を施す旨の設定を受け付けた場合に、上記補正手段は、上記領域情報に基づいて上記原稿画像上の最左端座標、上記原稿画像の幅および高さ、並びに、上記原稿画像の傾き角度を情報として含む補正用情報を生成するとともに、補正用情報に基づいて入力画像に補正を施すことを特徴とする請求項1または2に記載の画像処理装置。   When the setting accepting unit accepts the setting for performing the tilt correction and the size correction, the correcting unit determines that the leftmost coordinate on the document image, the width and height of the document image are based on the region information. The image processing apparatus according to claim 1, further comprising: generating correction information including information about an inclination angle of the document image and correcting the input image based on the correction information. . 上記設定受付手段が傾き補正のみ施す旨の設定を受け付けた場合に、上記補正手段は、上記領域情報に基づいて、上記入力画像の幅および高さ、並びに、該原稿画像の傾き角度を情報として含む補正用情報を生成するとともに、補正用情報に基づいて入力画像に補正を施すことを特徴とする請求項1から3のいずれか1項に記載の画像処理装置。   When the setting accepting unit accepts a setting that only tilt correction is performed, the correcting unit uses, as information, the width and height of the input image and the tilt angle of the document image based on the region information. The image processing apparatus according to claim 1, wherein the image processing apparatus generates correction information including correction and corrects the input image based on the correction information. 上記設定受付手段がサイズ補正のみ施す旨の設定を受け付けた場合に、上記補正手段は、上記領域情報に基づいて上記原稿画像上の最左端座標、該原稿画像の幅、および該原稿画像の高さを情報として含む補正用情報を生成するとともに、補正用情報に基づいて入力画像に補正を施すことを特徴とする請求項1から4のいずれか1項に記載の画像処理装置。   When the setting accepting unit accepts a setting that only size correction is performed, the correcting unit receives the leftmost coordinates on the document image, the width of the document image, and the height of the document image based on the region information. 5. The image processing apparatus according to claim 1, wherein the image processing apparatus generates correction information including information as to information, and corrects an input image based on the correction information. 上記設定受付手段が上記傾き補正および上記サイズ補正のいずれも施さない旨の設定を受け付けた場合に、上記補正手段は、上記入力画像の幅および高さを表わすパラメータを生成し、上記パラメータに基づいて入力画像から出力画像を生成することを特徴とする請求項1から5のいずれか1項に記載の画像処理装置。   When the setting accepting unit accepts a setting indicating that neither the tilt correction nor the size correction is performed, the correcting unit generates parameters representing the width and height of the input image, and based on the parameters The image processing apparatus according to claim 1, wherein an output image is generated from the input image. 上記補正手段は、上記補正用情報に情報として含まれている角度が所定の値以上である場合に限り、上記入力画像に上記傾き補正を施すことを特徴とする請求項3または4に記載の画像処理装置。   5. The correction unit according to claim 3, wherein the correction unit performs the inclination correction on the input image only when an angle included as information in the correction information is a predetermined value or more. Image processing device. 上記設定受付手段が受け付けた設定が上記傾き補正を行う旨の設定である場合に、上記入力画像を表示用画像として表示部に表示する表示制御手段と、
上記入力画像に上記傾き補正を施すか否かの指示をユーザから受け付ける指示受付手段と、をさらに備え、
上記補正手段が生成した上記補正用情報に情報として含まれている角度が所定の値未満である場合に限り、上記表示制御手段が上記表示部に上記表示用画像を表示するとともに上記指示受付手段が上記指示をユーザから受け付け、
上記指示受付手段が受け付けた指示が上記傾き補正を施す旨を示す場合に上記入力画像に傾き補正を施すことを特徴とする請求項3または4に記載の画像処理装置。
Display control means for displaying the input image as a display image on a display unit when the setting accepted by the setting accepting means is a setting for performing the tilt correction;
An instruction receiving means for receiving from the user an instruction as to whether or not to perform the tilt correction on the input image;
The display control means displays the display image on the display unit and the instruction receiving means only when the angle included as information in the correction information generated by the correction means is less than a predetermined value. Accepts the above instructions from the user,
5. The image processing apparatus according to claim 3, wherein when the instruction received by the instruction receiving unit indicates that the tilt correction is performed, the input image is tilt corrected.
上記記録手段が生成する上記領域情報には、
a)上記原稿画像の4頂点の座標
b)上記原稿画像の4頂点のうちのいずれかの3頂点の座標
c)上記原稿画像の4頂点のうちの対向する2頂点の座標、および該原稿画像の傾き角度
d)上記原稿画像の4頂点のうちのいずれかの座標、該原稿画像の幅、該原稿画像の高さ、および該原稿画像の傾き角度
のうちa)〜d)のいずれかが情報として含まれていることを特徴とする請求項1から8のいずれか1項に記載の画像処理装置。
The area information generated by the recording means includes
a) Coordinates of the four vertices of the original image b) Coordinates of any three vertices of the four vertices of the original image c) Coordinates of two opposite vertices of the four vertices of the original image, and the original image D) Any one of the coordinates of any of the four vertices of the original image, the width of the original image, the height of the original image, and the inclination angle of the original image is any one of a) to d). The image processing apparatus according to claim 1, wherein the image processing apparatus is included as information.
請求項1から9のいずれか1項に記載の画像処理装置、および画像読取装置を備えていることを特徴とする画像形成装置。   An image forming apparatus comprising the image processing apparatus according to claim 1 and an image reading apparatus. 画像読取装置にて原稿画像全体を含む領域を読み取ることにより生成された、入力画像の画像データを処理する画像処理装置の画像処理方法であって、
設定受付手段が、上記原稿画像の傾きを補正する傾き補正、および上記入力画像のサイズを上記原稿画像のサイズに補正するサイズ補正の少なくとも一方の補正を行うか否かに関する設定を受け付ける設定受付工程と、
上記設定受付手段が受け付けた設定の内容に関わらず、記録手段が、上記傾き補正および上記サイズ補正に使用する上記原稿画像の領域情報を生成するとともに、上記領域情報と上記入力画像とを関連づけて記憶部に記録する記録工程と、
上記設定受付手段が上記少なくとも一方の補正を行う旨の設定を受け付けた場合に、補正手段が、上記入力画像と関連づけて上記記憶部に記録されている上記領域情報に基づいて、上記入力画像に上記設定に応じた補正を施す補正工程と、を含んでいることを特徴とする画像処理方法。
An image processing method of an image processing apparatus for processing image data of an input image generated by reading an area including an entire original image by an image reading apparatus,
A setting acceptance step for accepting a setting regarding whether or not the setting accepting unit performs at least one of an inclination correction for correcting the inclination of the original image and a size correction for correcting the size of the input image to the size of the original image. When,
Regardless of the settings received by the setting receiving means, the recording means generates area information of the original image used for the inclination correction and the size correction, and associates the area information with the input image. A recording process for recording in the storage unit;
When the setting accepting unit accepts a setting for performing at least one of the corrections, the correcting unit adds the input image to the input image based on the area information recorded in the storage unit in association with the input image. And a correction step of performing correction according to the setting.
請求項1から9のいずれか1項に記載の画像処理装置を動作させるプログラムであって、コンピュータを上記の各手段として機能させるための画像処理プログラム。   A program for operating the image processing apparatus according to any one of claims 1 to 9, wherein the image processing program causes a computer to function as each of the means. 請求項12に記載の画像処理プログラムを記録しているコンピュータ読み取り可能な記録媒体。   A computer-readable recording medium in which the image processing program according to claim 12 is recorded.
JP2009171306A 2009-07-22 2009-07-22 Image processing apparatus, image forming apparatus, image processing method, image processing program, and recording medium Active JP5542380B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2009171306A JP5542380B2 (en) 2009-07-22 2009-07-22 Image processing apparatus, image forming apparatus, image processing method, image processing program, and recording medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2009171306A JP5542380B2 (en) 2009-07-22 2009-07-22 Image processing apparatus, image forming apparatus, image processing method, image processing program, and recording medium

Related Child Applications (1)

Application Number Title Priority Date Filing Date
JP2014025906A Division JP5736068B2 (en) 2014-02-13 2014-02-13 Image processing apparatus, image forming apparatus, image processing method, image processing program, and recording medium

Publications (2)

Publication Number Publication Date
JP2011028383A true JP2011028383A (en) 2011-02-10
JP5542380B2 JP5542380B2 (en) 2014-07-09

Family

ID=43637089

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2009171306A Active JP5542380B2 (en) 2009-07-22 2009-07-22 Image processing apparatus, image forming apparatus, image processing method, image processing program, and recording medium

Country Status (1)

Country Link
JP (1) JP5542380B2 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2016158162A (en) * 2015-02-25 2016-09-01 京セラドキュメントソリューションズ株式会社 Image reading device and image forming apparatus
JP2018148362A (en) * 2017-03-03 2018-09-20 富士ゼロックス株式会社 Image processing apparatus and image forming apparatus

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH08251387A (en) * 1995-03-08 1996-09-27 Ricoh Co Ltd Digital copying machine
JPH09163121A (en) * 1995-12-12 1997-06-20 Minolta Co Ltd Digital image forming device
JPH11331558A (en) * 1998-05-21 1999-11-30 Dainippon Screen Mfg Co Ltd Method and device for correcting page position and recording medium
JPH11331547A (en) * 1998-05-13 1999-11-30 Minolta Co Ltd Original detector
JP2003189027A (en) * 2001-12-20 2003-07-04 Fuji Xerox Co Ltd Copying machine
JP2006121429A (en) * 2004-10-21 2006-05-11 Konica Minolta Business Technologies Inc Image reading device and information processor
JP2006211462A (en) * 2005-01-31 2006-08-10 Kyocera Mita Corp Image forming apparatus
JP2006261942A (en) * 2005-03-16 2006-09-28 Ricoh Co Ltd Image processing device, tilt difference detection/notification method, tilt difference detection/notification program, and storage medium
JP2007081486A (en) * 2005-09-09 2007-03-29 Ricoh Co Ltd Image forming apparatus, image processing apparatus, image output apparatus, mobile terminal, image processing system, image forming method, image processing method, image output method, image forming program, image processing program, and image output program
JP2008283494A (en) * 2007-05-10 2008-11-20 Sharp Corp Image processing system
JP2009159065A (en) * 2007-12-25 2009-07-16 Brother Ind Ltd Image processing apparatus

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH08251387A (en) * 1995-03-08 1996-09-27 Ricoh Co Ltd Digital copying machine
JPH09163121A (en) * 1995-12-12 1997-06-20 Minolta Co Ltd Digital image forming device
JPH11331547A (en) * 1998-05-13 1999-11-30 Minolta Co Ltd Original detector
JPH11331558A (en) * 1998-05-21 1999-11-30 Dainippon Screen Mfg Co Ltd Method and device for correcting page position and recording medium
JP2003189027A (en) * 2001-12-20 2003-07-04 Fuji Xerox Co Ltd Copying machine
JP2006121429A (en) * 2004-10-21 2006-05-11 Konica Minolta Business Technologies Inc Image reading device and information processor
JP2006211462A (en) * 2005-01-31 2006-08-10 Kyocera Mita Corp Image forming apparatus
JP2006261942A (en) * 2005-03-16 2006-09-28 Ricoh Co Ltd Image processing device, tilt difference detection/notification method, tilt difference detection/notification program, and storage medium
JP2007081486A (en) * 2005-09-09 2007-03-29 Ricoh Co Ltd Image forming apparatus, image processing apparatus, image output apparatus, mobile terminal, image processing system, image forming method, image processing method, image output method, image forming program, image processing program, and image output program
JP2008283494A (en) * 2007-05-10 2008-11-20 Sharp Corp Image processing system
JP2009159065A (en) * 2007-12-25 2009-07-16 Brother Ind Ltd Image processing apparatus

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2016158162A (en) * 2015-02-25 2016-09-01 京セラドキュメントソリューションズ株式会社 Image reading device and image forming apparatus
JP2018148362A (en) * 2017-03-03 2018-09-20 富士ゼロックス株式会社 Image processing apparatus and image forming apparatus

Also Published As

Publication number Publication date
JP5542380B2 (en) 2014-07-09

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
US8537443B2 (en) Image processing apparatus, image forming apparatus, image processing method, and storage medium
US8335010B2 (en) Image processing apparatus, image forming apparatus, image processing method, and recording medium
JP4758502B2 (en) Image processing apparatus, image reading apparatus, image transmitting apparatus, image forming apparatus, image processing method, program, and recording medium thereof
JP5280425B2 (en) Image processing apparatus, image reading apparatus, image forming apparatus, image processing method, program, and recording medium thereof
US8406570B2 (en) Image processing apparatus, image forming apparatus, image reading apparatus, image processing method, and recording medium
US8780407B2 (en) Control apparatus, image reading apparatus, image forming apparatus, and recording medium for efficient rereading
US8532434B2 (en) Image processing method and apparatus for determining orientations based on reliabilities of a plurality of portions into which image has been divided or for determining orientations of portions of image divided by user&#39;s input so as to recognize characters for each divided portion of image, image forming apparatus, and storage medium
JP5264831B2 (en) Image processing apparatus, image reading apparatus, image forming apparatus, image processing method, computer program, and recording medium
JP2010146185A (en) Image processing apparatus, image reading apparatus, image sending apparatus, image processing method, program, and recording medium thereof
JP2011010033A (en) Image processing apparatus, image forming apparatus, image processing method, computer program and recording medium
JP2013123119A (en) Image processing apparatus, image forming apparatus, image reading apparatus, image processing method, computer program, and recording medium
JP2009134686A (en) Image processing apparatus, image forming apparatus, image transmitting apparatus, image reading apparatus, image processing system, image processing method, image processing program, and its recording medium
JP5542380B2 (en) Image processing apparatus, image forming apparatus, image processing method, image processing program, and recording medium
JP6105134B2 (en) Image processing apparatus, image forming apparatus, image processing method, image processing program, and recording medium
JP5970582B2 (en) Image processing apparatus, image forming 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
JP3671682B2 (en) Image recognition device
JP2010011359A (en) Image processing apparatus, image forming apparatus, method of controlling the image processing apparatus, control program, and recording medium
JP5736068B2 (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
JP2010161745A (en) Image processor, image reader, image transmission device, image formation device, image processing method, program, and recording medium of the same
JP2010098445A (en) Image processing apparatus, image reading apparatus, image forming apparatus, method of controlling image processing apparatus, control program, and recording medium
JP2010103808A (en) Image processor, image reader, image forming apparatus, image processing method, image processing program and computer readable recording medium
JP2015226264A (en) Image processing apparatus, image formation apparatus with the same, image processing program, and recording medium with recorded program

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20110824

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20120628

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20120710

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20120906

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20130312

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20130425

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20131126

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20140213

A911 Transfer to examiner for re-examination before appeal (zenchi)

Free format text: JAPANESE INTERMEDIATE CODE: A911

Effective date: 20140221

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

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20140408

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20140507

R150 Certificate of patent or registration of utility model

Ref document number: 5542380

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150