JP2009111786A - Image processing apparatus and image processing method - Google Patents

Image processing apparatus and image processing method Download PDF

Info

Publication number
JP2009111786A
JP2009111786A JP2007282456A JP2007282456A JP2009111786A JP 2009111786 A JP2009111786 A JP 2009111786A JP 2007282456 A JP2007282456 A JP 2007282456A JP 2007282456 A JP2007282456 A JP 2007282456A JP 2009111786 A JP2009111786 A JP 2009111786A
Authority
JP
Japan
Prior art keywords
density value
density
correction mark
background
image data
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP2007282456A
Other languages
Japanese (ja)
Inventor
Otokazu Nakada
乙一 中田
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.)
Ricoh Co Ltd
Original Assignee
Ricoh Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Ricoh Co Ltd filed Critical Ricoh Co Ltd
Priority to JP2007282456A priority Critical patent/JP2009111786A/en
Publication of JP2009111786A publication Critical patent/JP2009111786A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Editing Of Facsimile Originals (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To provide an image processing apparatus for easily improving readability of an image including a low-density region such as a correction mark and storage costs of images, and to provide an image processing method. <P>SOLUTION: In an image processing apparatus, a background density value, a frequency of background density values, a low-density value and a frequency of low-density values are detected and a resolution of image data is determined in such a way that a resolution is reduced as the number of pixels within a predetermined range of density values around a correction mark density value becomes greater. Furthermore, compression processing is performed on the image data on the basis of the resolution determined. <P>COPYRIGHT: (C)2009,JPO&INPIT

Description

本発明は、画像処理装置及び画像処理方法の分野に関する。   The present invention relates to the field of image processing apparatuses and image processing methods.

一般に画像処理装置に搭載されている機能として地肌除去の機能がある。スキャナで読み取った原稿の地肌を除去することで、原稿をコピーしたりPC端末などで画像を閲覧する際に、画像の可読性を向上させるための機能である。一方、原稿内に修正液や修正テープなどで修正された箇所があると、この地肌除去の処理によりその修正痕も除去されてしまう。これは修正液等が、一般に使用される原稿用紙の濃度より低い濃度を持つためである。   Generally, there is a background removal function as a function installed in an image processing apparatus. This is a function for improving the readability of an image when copying the document or viewing the image on a PC terminal or the like by removing the background of the document read by the scanner. On the other hand, if there is a portion corrected with a correction liquid or a correction tape in the document, the correction mark is also removed by the background removal processing. This is because the correction fluid or the like has a density lower than that of a document sheet that is generally used.

ところで近年e文書法の施行により、様々な紙ベースの書類を電子保管することが可能となった。このとき、書類の電子化や複製化においてはオリジナル原稿との同一性、真実性、可視性等が担保される必要がある。そこで画像処理装置においても、オリジナル原稿が保持する修正痕をサポートした画像処理が要求される。   By the way, in recent years, with the enforcement of the e-document law, various paper-based documents can be stored electronically. At this time, in the digitization or duplication of documents, it is necessary to ensure the sameness, authenticity, visibility and the like with the original document. Therefore, the image processing apparatus is also required to perform image processing that supports the correction marks held by the original document.

特許文献1には、修正痕のような低濃度領域を残す地肌処理について記載されている。画像の濃度統計量をとり、地肌より白色度の高い物を含む画像に対して、これが飽和しないようダイナミックレンジを確保してシェーディング補正を行い、明度補正をする。また、この明度補正された画像に局所的な空間のコントラストを強調することで修正痕の確認を行う。
特開2006−203815号公報
Patent Document 1 describes a background processing that leaves a low density region such as a correction mark. The density statistic of the image is taken, and shading correction is performed for an image including an object having a whiteness higher than the background to ensure that the image does not saturate, thereby correcting the brightness. Further, the correction mark is confirmed by enhancing the local spatial contrast on the brightness-corrected image.
JP 2006-203815 A

特許文献1に開示された発明においては、画像内に修正痕のような低濃度の領域が存在するかしないかに関係なく、すべての画像に対して一律にユーザが設定した画像処理を提供するものである。例えば、複数の書類を電子化する際に、その中には修正痕がない原稿も含まれていると考えられるが、そのような修正痕のない画像についても修正痕を残すような同画像処理が行われてしまう。このように不必要に原稿の地肌を残すことは、画像データの規則性を乱し圧縮効率が下がり画像データサイズが膨れ上がってしまう。一方、画像ごとに処理の有無の設定を行うとしても大規模な書類を処理する場合には非常に手間のかかる作業となる。手間を軽減するために最低限の最小公倍数的な設定を行ったとしても効率的とは言えない。   The invention disclosed in Patent Document 1 provides image processing that is set by the user uniformly for all images regardless of whether a low density region such as a correction mark exists in the image or not. Is. For example, when multiple documents are digitized, it is considered that some of the documents do not have correction marks, but the same image processing that leaves correction marks even for images without such correction marks. Will be done. Unnecessarily leaving the background of the document in this way disturbs the regularity of the image data, reducing the compression efficiency and increasing the image data size. On the other hand, even if the presence / absence of processing is set for each image, when a large-scale document is processed, it is very laborious. Even if the lowest common multiple setting is made to reduce time and effort, it is not efficient.

修正痕の有無といった画像ごとの特徴に応じて、修正痕の可読性を高める処理、圧縮処理を行うことができれば、一律に同じ画像処理をかけるものよりも保存コストが向上することになる。   If processing for improving the readability of the correction trace and compression processing can be performed according to the feature of each image such as the presence or absence of the correction trace, the storage cost is improved as compared with the one that uniformly applies the same image processing.

そこで本発明では、上記の問題点に鑑みて、簡単に修正痕のような低濃度領域を含む画像の可読性及び画像の保存コストを向上させる画像処理を行う画像処理装置及び画像処理方法を提供することを目的とする。   In view of the above problems, the present invention provides an image processing apparatus and an image processing method for performing image processing that easily improves the readability of an image including a low density region such as a correction mark and the storage cost of the image. For the purpose.

そこで上記課題を解決するため、本発明に係る画像処理装置は、画像データを読み取る読取部を有する画像処理装置において、前記読取部により読み取られた前記画像データにおいて画像濃度の頻度が最大の濃度値である地肌濃度値、前記地肌濃度値の頻度、前記地肌濃度値より濃度値が低く頻度が前記地肌濃度値の頻度の次に高い濃度値である修正痕濃度値、及び前記修正痕濃度値の頻度を検知する濃度値検知手段と、前記濃度値検知手段により検知された前記地肌濃度値、前記修正痕濃度値、前記地肌濃度値の頻度、及び前記修正痕濃度値の頻度に基づく画素数であって、前記修正痕濃度値を中心とする濃度値の所定範囲にある画素数が、大きくなるにつれて低い解像度となるように前記画像データの解像度を決定する解像度決定手段とを有することを特徴とする。   Accordingly, in order to solve the above-described problem, an image processing apparatus according to the present invention includes an image processing apparatus having a reading unit that reads image data, and a density value having a maximum frequency of image density in the image data read by the reading unit. The background density value, the frequency of the background density value, the correction mark density value whose density value is lower than the background density value and the frequency is the second highest value after the frequency of the background density value, and the correction mark density value A density value detecting means for detecting the frequency, and the background density value detected by the density value detecting means, the correction mark density value, the frequency of the background density value, and the number of pixels based on the frequency of the correction mark density value. Resolution determining means for determining the resolution of the image data so that the number of pixels in a predetermined range of density values centered on the correction mark density value becomes lower as the density increases. Characterized in that it has.

また上記課題を解決するため、本発明に係る画像処理装置はさらに、前記解像度決定手段により決定された前記解像度に基づいて、前記画像データの圧縮処理を行う圧縮処理手段とを有することを特徴とする。   In order to solve the above problem, the image processing apparatus according to the present invention further includes compression processing means for performing compression processing of the image data based on the resolution determined by the resolution determination means. To do.

また上記課題を解決するため、本発明に係る画像処理装置は、画像データを読み取る読取部を有する画像処理装置において、前記読取部により読み取られた前記画像データにおいて画像濃度の頻度が最大の濃度値である地肌濃度値を検知する地肌濃度値検知手段と、
前記地肌濃度値検知手段により検知された前記地肌濃度値に基づいて、前記地肌濃度値よりも低い濃度値の画素を所定数含む画素領域である修正痕濃度領域の有無を検知する修正痕濃度領域検知手段と、前記画像データにおける前記低濃度領域の分布度を取得する分布度取得手段と、前記分布度取得手段により取得された前記修正痕濃度領域の分布度が大きくなるにつれて高い解像度となるように画像データの解像度を決定する解像度決定手段とを有することを特徴とする。
In order to solve the above problems, an image processing apparatus according to the present invention includes an image processing apparatus having a reading unit that reads image data, and a density value having a maximum frequency of image density in the image data read by the reading unit. A background density value detecting means for detecting the background density value,
On the basis of the background density value detected by the background density value detecting means, a correction mark density area for detecting the presence or absence of a correction mark density area which is a pixel area including a predetermined number of pixels having a density value lower than the background density value. The detection means, the distribution degree acquisition means for acquiring the distribution degree of the low density area in the image data, and the higher the resolution as the distribution degree of the correction mark density area acquired by the distribution degree acquisition means becomes higher. And a resolution determining means for determining the resolution of the image data.

また上記課題を解決するため、本発明に係る画像処理装置はさらに、前記修正痕濃度領域検知手段は、前記画像データを所定領域に区分し、区分された領域毎における前記地肌濃度値よりも低い濃度値を有する画素数及び平均濃度値に基づいて、前記修正痕濃度領域の有無を決定することを特徴とする。   In order to solve the above-mentioned problem, in the image processing apparatus according to the present invention, the correction mark density area detection unit further divides the image data into predetermined areas and is lower than the background density value for each of the divided areas. The presence / absence of the correction mark density region is determined based on the number of pixels having the density value and the average density value.

また上記課題を解決するため、本発明に係る画像処理装置はさらに、前記分布度取得手段は、前記画像データを所定領域に区分し、前記修正痕濃度領域を有すると検知された前記所定領域の数に基づいて、前記修正痕濃度領域の分布度を決定することを特徴とする。   In order to solve the above-described problem, the image processing apparatus according to the present invention further includes the distribution degree acquisition unit that divides the image data into predetermined areas and detects the predetermined area detected as having the correction mark density area. The distribution degree of the correction mark density region is determined based on the number.

また上記課題を解決するため、本発明に係る画像処理装置はさらに、前記解像度決定手段により決定された前記解像度に基づいて、前記画像データの圧縮処理を行う圧縮処理手段とを有することを特徴とする。   In order to solve the above problem, the image processing apparatus according to the present invention further includes compression processing means for performing compression processing of the image data based on the resolution determined by the resolution determination means. To do.

また上記課題を解決するため、本発明に係る画像処理装置はさらに、前記分布度取得手段により取得された前記修正痕濃度領域の分布度に対応した所定の圧縮率に基づいて、前記画像データの圧縮処理を行う圧縮処理手段とを有することを特徴とする。   In order to solve the above-described problem, the image processing apparatus according to the present invention further includes: the image data based on a predetermined compression rate corresponding to the distribution degree of the correction mark density region acquired by the distribution degree acquisition unit. And compression processing means for performing compression processing.

なお、本発明の構成要素、表現または構成要素の任意の組合せを、方法、装置、システム、コンピュータプログラム、記録媒体、などに適用したものも本発明の態様として有効である。   In addition, what applied the arbitrary combination of the component of this invention, expression, or a component to a method, an apparatus, a system, a computer program, a recording medium, etc. is also effective as an aspect of this invention.

本発明によれば、簡単に修正痕のような低濃度領域を含む画像の可読性及び画像の保存コストを向上させる画像処理を行う画像処理装置及び画像処理方法を提供することができる。   ADVANTAGE OF THE INVENTION According to this invention, the image processing apparatus and the image processing method which perform the image processing which improves the readability of the image containing the low density area | region like a correction trace and the preservation | save cost of an image can be provided easily.

以下、本発明を実施するための最良の形態を各実施形態において図面を用いて説明する。   The best mode for carrying out the present invention will be described below with reference to the drawings in each embodiment.

(画像処理装置の概要及び構成)
まず、本実施形態に係る画像処理装置について図1を用いて説明を行う。図1は、本実施形態に係る画像処理装置の全体構成図の一例を示したものである。
(Outline and configuration of image processing apparatus)
First, the image processing apparatus according to the present embodiment will be described with reference to FIG. FIG. 1 shows an example of an overall configuration diagram of an image processing apparatus according to the present embodiment.

画像処理装置1は、読取り装置2、バス制御装置3、ハードディスク(HDD)4、CPU5、メモリ6、プロッタI/F装置7、プロッタ装置8、表示装置9、回線I/F装置10、外部I/F装置11、S.B.(South Bridge)12、ROM13を有する構成である。   The image processing apparatus 1 includes a reading device 2, a bus control device 3, a hard disk (HDD) 4, a CPU 5, a memory 6, a plotter I / F device 7, a plotter device 8, a display device 9, a line I / F device 10, an external I / F device 11, S.P. B. (South Bridge) 12 and ROM 13.

読取り装置2は、原稿をスキャンすることで得る原稿の濃淡情報から、RGB各8ビットのデジタル画像データを生成し出力する。バス制御装置3は、画像処理装置1で必要な画像データや制御コマンド等各種データのやり取りを行う。HDD4は、デジタル画像データ(画像処理後の画像データ含む)、及びデジタル画像データの付帯情報等を蓄積するための記憶装置である。CPU5は、画像処理装置1の制御全体を司るマイクロプロセッサである。メモリ6は、CPU5が本画像処理装置の制御を行う際の、プログラムや中間処理データの一時的な記憶などに使用される揮発性メモリである。プロッタI/F装置7は、CPU5から送られてくるCMYKのデジタル画像データを受け取り、プロッタ装置8に出力する。プロッタ装置8は、CMYKのデジタル画像データを受け取ると、レーザービーム等を用いた電子写真プロセスなどにより、転写紙に画像出力する。S.B.12は、South Bridgeと呼ばれるバスのブリッジ機能を汎用回路化したものである。ROM13は、CPU5が画像処理装置1の制御や画像データに対しての処理を行う際のプログラムが格納されるメモリである。表示装置9は、画像処理装置1とユーザのインターフェースを行う部分で、LCD(液晶表示装置)とキースイッチから構成され、装置の各種状態や操作方法をLCDに表示し、ユーザからのキースイッチ入力を検知する。また、画像処理装置1は、回線I/F装置10及び電話回線を介して装置外にあるFAX14と画像データの授受を行う。また、画像処理装置1の装置外にあるPC端末15と、外部I/F装置11及び有線・無線含むネットワークを介して、各種制御や画像データの入出力を行う。   The reading device 2 generates and outputs digital image data of 8 bits for each of RGB from the density information of the document obtained by scanning the document. The bus control device 3 exchanges various data such as image data and control commands necessary for the image processing device 1. The HDD 4 is a storage device for storing digital image data (including image data after image processing), incidental information of the digital image data, and the like. The CPU 5 is a microprocessor that controls the entire control of the image processing apparatus 1. The memory 6 is a volatile memory used for temporary storage of programs and intermediate processing data when the CPU 5 controls the image processing apparatus. The plotter I / F device 7 receives CMYK digital image data sent from the CPU 5 and outputs it to the plotter device 8. When the plotter device 8 receives the CMYK digital image data, the plotter device 8 outputs the image onto a transfer sheet by an electrophotographic process using a laser beam or the like. S. B. Reference numeral 12 denotes a general-purpose circuit that is a bridge function of a bus called South Bridge. The ROM 13 is a memory that stores a program when the CPU 5 controls the image processing apparatus 1 and processes image data. The display device 9 is a part that performs an interface between the image processing device 1 and the user, and is composed of an LCD (liquid crystal display device) and a key switch. The display device 9 displays various states and operation methods of the device on the LCD, and a key switch input from the user. Is detected. Further, the image processing apparatus 1 exchanges image data with a FAX 14 outside the apparatus via the line I / F apparatus 10 and a telephone line. Further, various controls and input / output of image data are performed via the PC terminal 15 outside the image processing apparatus 1, the external I / F apparatus 11, and a wired / wireless network.

(実施例1)
次に、本発明に係る画像処理装置の行う画像処理の実施例1について、図2を用いて説明を行う。図2は、本発明に係る画像処理装置が有する画像処理機能を表したブロック図である。読取り装置2で読み込まれた画像データは、スキャナγ変換部21、階調補正部22、フィルタ処理部23、地肌補正部24、色補正部25、濃度検値部26、解像度決定部27、圧縮処理部28においての各画像処理プロセスを経て、RGB画像データとしてHDD4に記憶される。次に、各部の処理について処理の順を追って説明する。
(Example 1)
Next, Embodiment 1 of image processing performed by the image processing apparatus according to the present invention will be described with reference to FIG. FIG. 2 is a block diagram showing the image processing function of the image processing apparatus according to the present invention. The image data read by the reading device 2 includes a scanner γ conversion unit 21, a gradation correction unit 22, a filter processing unit 23, a background correction unit 24, a color correction unit 25, a density detection unit 26, a resolution determination unit 27, and a compression. After each image processing process in the processing unit 28, it is stored in the HDD 4 as RGB image data. Next, the processing of each unit will be described in the order of processing.

スキャナγ変換部21は、読取り装置2から読み取られたRGB各8ビットの画像データに対してγ変換を行い、反射率リニアから濃度リニアへ階調特性を変換する。   The scanner γ conversion unit 21 performs γ conversion on RGB 8-bit image data read from the reading device 2 and converts the gradation characteristics from reflectance linearity to density linearity.

濃度検知部26は、画像データから、地肌濃度、修正痕濃度、及びこれらの頻度を検出する。地肌濃度とは、スキャンされて読み込まれた原稿用紙の地肌の濃度である。スキャナ、FAX、デジタル複写機等で取り扱う原稿には様々な種類があり、原稿に用いられている用紙の濃度、すなわち地肌濃度も広い範囲に及んでいる。また、修正痕濃度は、修正液等で修正部分の白く塗り潰された領域の濃度でのことである。一般に、原稿用紙上の誤字等の修正を行う場合には、修正すべき箇所を白く塗り潰したり、また白く塗り潰した上に文字等を記載することで行われる。この白く塗り潰された部分はいわゆる修正痕であり、この修正痕の濃度は原稿の地肌濃度より低くなっている。濃度検知部26は、画像データから、画像データが有する画像の濃度及びその頻度の情報を取得し(図5のような濃度ヒストグラムができる)、さらに地肌濃度、修正痕濃度、及びこれらの頻度を検出するものである。   The density detector 26 detects the background density, the correction mark density, and the frequency thereof from the image data. The background density is the density of the background of the original paper scanned and read. There are various types of manuscripts handled by scanners, fax machines, digital copiers, etc., and the density of the paper used for the manuscript, that is, the background density, is in a wide range. Further, the correction mark density is the density of the area of the correction portion that is painted white with a correction liquid or the like. In general, when correcting a typographical error or the like on a document sheet, the portion to be corrected is painted in white, or written in white and the like. This white-painted portion is a so-called correction mark, and the density of the correction mark is lower than the background density of the document. The density detection unit 26 acquires information on the density of the image and the frequency of the image data from the image data (a density histogram as shown in FIG. 5 can be obtained), and further calculates the background density, the correction mark density, and these frequencies. It is to detect.

ここで、濃度検知部26が画像データから次に説明する画像パターンに対応した濃度ヒストグラムを取得したときどのように地肌濃度、修正痕濃度を抽出するかの理解を容易にするため、まず画像のパターンに対応した濃度ヒストグラムについて簡単に説明する。   Here, in order to facilitate understanding of how the background density and the correction mark density are extracted when the density detection unit 26 acquires a density histogram corresponding to an image pattern to be described next from the image data, A density histogram corresponding to a pattern will be briefly described.

図5は、RGB画像データの持つ画像濃度及びその頻度を検出したもので、いわゆる濃度ヒストグラムを表している。横軸に画像濃度、縦軸に頻度をとっている。図5の濃度ヒストグラムにはa、b、cからなる突起(山)状のカーブが描かれている。bの山付近は、画像中最も濃度の頻度が高いので、この付近に地肌の濃度があることを表している。aは、地肌濃度よりも低い濃度を持ち一定の頻度を有していることから修正痕があることを表している。cは地肌濃度より高い濃度を持ち一定の頻度を有していることから、原稿上に記載された文字や図等を表している。   FIG. 5 shows a so-called density histogram in which the image density and frequency of the RGB image data are detected. The horizontal axis represents image density and the vertical axis represents frequency. In the density histogram of FIG. 5, a protrusion (mountain) -like curve composed of a, b, and c is drawn. In the vicinity of the mountain b, the frequency of density is highest in the image, which indicates that there is a background density in the vicinity. a represents that there is a correction mark because it has a density lower than the background density and has a certain frequency. Since c has a density higher than the background density and has a constant frequency, c represents a character, a figure, or the like written on the document.

図6は修正痕がない画像を表す濃度ヒストグラムである。bの山付近は最も濃度頻度が高いので地肌濃度を表している。cは地肌濃度より高い濃度を持ち一定の頻度を有していることから、原稿上に記載された文字や図等を表している。図5の場合と比べ、図6は地肌濃度よりも低い濃度を持ち所定値(y)以上の頻度を有している部分、即ち修正痕に該当する山(図5のaに相当するもの)がない。よって、図6の濃度ヒストグラムは、修正痕のない画像を表している。なお、実際の画像においては地肌濃度より低い濃度を持つ画素が所定数存在する。このような誤差やムラを排除するため、y(所定の頻度)を取って、地肌濃度より低い濃度であってy以上頻度を有する濃度値を修正痕とする。この図6においては小さな山(a)はy以下の頻度でしかないため、修正痕はないものと判断する。 FIG. 6 is a density histogram representing an image without a correction mark. Since the density frequency is the highest in the vicinity of the mountain b, it represents the background density. Since c has a density higher than the background density and has a constant frequency, c represents a character, a figure, or the like written on the document. Compared to the case of FIG. 5, FIG. 6 shows a portion having a density lower than the background density and a frequency equal to or higher than a predetermined value (y), that is, a mountain corresponding to a correction mark (corresponding to a in FIG. 5). There is no. Therefore, the density histogram of FIG. 6 represents an image without a correction mark. In an actual image, there are a predetermined number of pixels having a density lower than the background density. In order to eliminate such errors and unevenness, y (predetermined frequency) is taken, and a density value that is lower than the background density and has a frequency of y or more is used as a correction mark. In FIG. 6, since the small mountain (a 2 ) has a frequency of y or less, it is determined that there is no correction mark.

図7はa、b1、b2、cの4つの山から形成されている。原稿の地肌にムラがある極端な例を表した濃度ヒストグラムである。b1、b2は、地肌濃度の前後でムラがあるため高い頻度を持つ山が2つ形成されている。aは、地肌濃度より低い濃度を持ちある程度の頻度を有しているため、修正痕を表している。cは先と同様に原稿上の文字等を表す。   FIG. 7 is formed from four peaks a, b1, b2, and c. 6 is a density histogram showing an extreme example in which the background of an original is uneven. Since b1 and b2 are uneven before and after the background density, two peaks with high frequency are formed. a represents a correction mark because it has a density lower than the background density and has a certain frequency. “c” represents characters on the original document as before.

図8は図7と比べ、低濃度で一定の頻度を持つ山であるaがないため修正痕がなく、さらにb1、b2を持つことから地肌にムラを持つ画像の濃度ヒストグラムを表している。   FIG. 8 shows a density histogram of an image having unevenness in the background because there is no correction mark because there is no mountain a which has a low frequency and a constant frequency, and has b1 and b2.

次に、濃度検知部26がこれらの濃度ヒストグラムを取得したとき、どのように地肌濃度、修正痕濃度を検出するか説明を行う。   Next, how the background density and the correction mark density are detected when the density detection unit 26 acquires these density histograms will be described.

図5において、ヒストグラム中、頻度の最も高い濃度を地肌濃度値をTrとする。
これは用紙上、最も広い範囲にわたっているのは地肌(用紙の下地)であるということに基づく。よって、最も頻度が高い濃度が、即ち地肌濃度とすることができる。また、地肌濃度より濃度が低く、地肌濃度で次いで頻度が高い濃度を修正痕濃度値Trとする。これは、修正痕の濃度は、原稿や用紙の地肌濃度より低く、また一定以上の頻度を有するということに基づく。
In FIG. 5, the highest density in the histogram is the background density value Tr.
This is based on the fact that the widest area on the paper is the background (the background of the paper). Therefore, the density with the highest frequency, that is, the background density can be obtained. Further, a density having a density lower than the background density and the second highest frequency after the background density is set as a correction mark density value Tr. This is based on the fact that the density of the correction marks is lower than the background density of the document or paper, and has a certain frequency or more.

図6においては、地肌濃度値はbの山の頂点に対応する濃度値Trとなるが、修正痕はない(aがなし)画像であるため修正痕濃度値も検出されない。   In FIG. 6, the background density value is the density value Tr corresponding to the peak of the mountain b, but the correction mark density value is not detected because the image has no correction mark (no a).

図7のように地肌ムラにより地肌濃度付近に山が2つできるケースにおいては、上述したように判断するとb2の山の頂点に対応した濃度が地肌濃度値、またaの山の頂点に対応した濃度が、修正痕濃度と判断されてしまう。しかしながら、b2の山の頂点に対応する濃度は、実際には地肌ムラから生じる地肌付近の濃度であり、修正痕の濃度を表していない。このため上述したように判断して一旦地肌濃度値及び修正痕濃度値として検出してもそれらの頻度が略同一の場合は、濃度の低い濃度値を地肌濃度(Tr)とみなして判断する。その結果、地肌濃度値とみなされた濃度より濃度が低く次いで頻度の高い濃度が修正痕濃度(Tm)となる(aの山の頂点に対応する濃度)。   In the case where two peaks are formed near the background density due to uneven background as shown in FIG. 7, the density corresponding to the peak of the peak b2 corresponds to the background density value and the peak of the peak a as determined above. The density is determined as the correction mark density. However, the density corresponding to the peak of the peak b2 is actually the density in the vicinity of the background caused by unevenness of the background, and does not represent the density of the correction mark. For this reason, if the frequency is substantially the same even if it is determined as described above and once detected as the background density value and the correction mark density value, the low density value is determined as the background density (Tr). As a result, the density having a density lower than the density regarded as the background density value and the next highest frequency becomes the correction mark density (Tm) (the density corresponding to the peak of mountain a).

図8においては、図7と同様に検出した地肌濃度値及び修正痕濃度値の頻度は略同一であるが、濃度の低い濃度値を地肌濃度(Tr)とみなしても、その地肌濃度に次ぐ山がない(aの頂点における頻度はy(所定の頻度)以下とする)。即ち、修正痕がない画像であるため修正痕濃度値も検出されない。   In FIG. 8, the frequency of the detected background density value and the correction mark density value is the same as in FIG. 7, but even if a density value having a low density is regarded as the background density (Tr), it is next to the background density. There is no mountain (the frequency at the apex of a is y (predetermined frequency) or less). That is, since the image has no correction mark, the correction mark density value is not detected.

次に、階調補正部22は、濃度検知部26から得た濃度値情報に従って、修正痕の部分の階調を多く取る階調補正を行う。階調補正の方法は公知の方法でよいが、例えば修正痕濃度値が地肌濃度値である場合は特別な補正をせず、修正痕濃度値が地肌濃度値よりも低い場合、スキャナγ変換部21から生成されたRGB画像データに対してハイライト部の階調を多く取るように階調補正を行う。   Next, the gradation correction unit 22 performs gradation correction that increases the gradation of the portion of the correction mark in accordance with the density value information obtained from the density detection unit 26. The gradation correction method may be a known method. For example, when the correction mark density value is the background density value, no special correction is performed. When the correction mark density value is lower than the background density value, the scanner γ conversion unit The gradation correction is performed on the RGB image data generated from the image data 21 so as to increase the gradation of the highlight portion.

フィルタ処理部23は、階調補正部22から得た画像データに対し行う処理である。文字部を強調する、あるいは絵柄部を平滑化するなどのフィルタ処理を行う。   The filter processing unit 23 is a process performed on the image data obtained from the gradation correction unit 22. Filter processing such as emphasizing the character part or smoothing the picture part is performed.

地肌補正部24は、フィルタ処理部23から得たRGB画像データに対して地肌補正を行う。地肌補正は、様々な濃度を持つ原稿用紙の地肌濃度以下の不要なムラを除去するものである。修正痕のない画像の場合、地肌補正をすることで画像データにムラをなくして画像データに規則性を持たせることができ、圧縮処理や保存コストの向上に寄与する。一方、修正痕を持つ画像の場合、地肌補正を行ってしまうと修正痕が消去されたり見にくくなってしまったりと、むしろ修正痕を適切に残せなくなる。よって、地肌補正は行わないか、修正痕を残した地肌補正を行う。例えば、修正痕より低い濃度の地肌のムラを補正する。   The background correction unit 24 performs background correction on the RGB image data obtained from the filter processing unit 23. The background correction is to remove unnecessary unevenness below the background density of a document sheet having various densities. In the case of an image without a correction mark, by correcting the background, it is possible to eliminate irregularities in the image data and make the image data regular, which contributes to an improvement in compression processing and storage cost. On the other hand, in the case of an image having a correction mark, if the background correction is performed, the correction mark is erased or difficult to see, and the correction mark cannot be left appropriately. Therefore, the background correction is not performed or the background correction is performed with a correction mark left. For example, the unevenness of the background having a density lower than the correction mark is corrected.

色補正部25は、地肌補正部24から得た画像データに対し行う処理である。決められた特性の色空間のRGBデータに変換する。この色空間は、例えば、Adobe社が定義したAdobe-RGB空間がある。これは、公知の一般的技術によればよい。   The color correction unit 25 is a process performed on the image data obtained from the background correction unit 24. Conversion into RGB data of a color space having a predetermined characteristic. This color space is, for example, an Adobe-RGB space defined by Adobe. This may be performed by a known general technique.

解像度決定部27は、色補正部25から得た画像データに対し行う処理である。解像度決定部27は、濃度検知部26において得た地肌濃度値(Tr)及び修正痕濃度値(Tm)に基づいて画像データの解像度を決定する。次に具体的に解像度の決定方法について説明する。   The resolution determination unit 27 is a process performed on the image data obtained from the color correction unit 25. The resolution determination unit 27 determines the resolution of the image data based on the background density value (Tr) and the correction mark density value (Tm) obtained by the density detection unit 26. Next, the resolution determination method will be specifically described.

解像度決定部27は、濃度検知部26で取得された濃度のヒストグラム(例えば図5)、
地肌濃度値(Tr)修正痕濃度値(Tm)の値を取得する。そして、画像濃度xにおける頻度f(x)を区間[I,J]で積分したものを
The resolution determination unit 27 is a histogram of density acquired by the density detection unit 26 (for example, FIG. 5),
The background density value (Tr) correction mark density value (Tm) value is acquired. Then, the frequency f (x) at the image density x is integrated over the interval [I, J]

Figure 2009111786
としたとき、S_{Tm-α,Tm+α}(αは一定の値で0<α<<Tm)は、修正痕濃度付近の画素数がどの程度あるかを数値化したものになる。そして、S_{Tm-α,Tm+α}の値が大きいということは、修正痕濃度の画素数が多いことを意味する。即ち、これは原稿に修正痕のある部分が多く修正箇所がユーザが見ても明らかである場合を意味している。よって、この場合は、解像度が低くても修正痕の視認が容易であるため解像度を下げる、または現状維持すればよいことになる。この解像度を下げるというのは画像の精細さを下げる分、データ容量が減るので画質と画像データ削減とのトレードオフの関係となる。
Figure 2009111786
S_ {Tm−α, Tm + α} (α is a constant value and 0 <α << Tm) is a numerical value indicating how many pixels are near the correction mark density. A large value of S_ {Tm-α, Tm + α} means that the number of pixels of the correction mark density is large. That is, this means that there are many portions with correction marks on the original and the correction portions are clear even when viewed by the user. Therefore, in this case, even if the resolution is low, it is easy to visually recognize the correction mark, so the resolution may be lowered or the current state may be maintained. Lowering the resolution has a trade-off relationship between image quality and image data reduction because the data capacity is reduced as the image definition is lowered.

一方、S_{Tm-α,Tm+α}の値が小さい場合には、修正痕濃度の画素数が少ない。即ち、修正痕のある部分が少なく現状の解像度で修正痕が視認しにくいことを意味する。よって、この場合には、修正痕をよく可視できるよう解像度を大きくすればよい。   On the other hand, when the value of S_ {Tm-α, Tm + α} is small, the number of pixels of the correction mark density is small. That is, it means that there are few correction marks and it is difficult to visually recognize the correction marks at the current resolution. Therefore, in this case, the resolution may be increased so that the correction marks can be seen well.

例えば、S_{Tm-α,Tm+α}の値をxとすると、図9において示すようにx値に対応する解像度を決定する。x値が大きくなるにつれて解像度が小さくなっている。現実的な値を用いて例示すると、元の画像を600dpi相当であった場合に、S_{Tm-α,Tm+α}=60とされたならば、図9より、解像度は400dpiの範囲に入るため400dpiの解像度に決定される。   For example, if the value of S_ {Tm-α, Tm + α} is x, the resolution corresponding to the x value is determined as shown in FIG. As the x value increases, the resolution decreases. To illustrate using realistic values, if the original image is equivalent to 600 dpi and S_ {Tm-α, Tm + α} = 60, the resolution is in the range of 400 dpi from FIG. It is decided to have a resolution of 400 dpi to enter.

これにより、画像の濃度情報に応じて、修正痕のような地肌の濃度よりも修正痕濃度の部分が確認しやすいよう解像度決定を自動で行うことができる。また、地肌より濃度の低い修正痕を含む画像の可読性を向上することができる。   Thereby, according to the density information of the image, it is possible to automatically determine the resolution so that the correction mark density portion can be confirmed more easily than the background density such as the correction mark. Moreover, the readability of the image containing the correction trace whose density is lower than the background can be improved.

圧縮処理部28は、解像度決定部27において決定された解像度に従って、RGBデータを圧縮処理する。圧縮処理は、公知の方法で圧縮が行われRGB画像データとしてHDD4に蓄積される。なお、画像データを圧縮するときに適用する圧縮率は解像度に対応して適切な圧縮率が経験則的にも定められている。したがって、これに基づきある解像度が決定された場合にはその解像度に対応した圧縮率を採用して圧縮を行えばよいことになる。解像度決定部27で得られた解像度は修正痕が確認しやすい解像度として決定されたものである。修正痕の有無に関係なくして決定された(例えば一律の解像度を使用して)解像度に対応した圧縮率を用いて圧縮処理をする場合に比べ、修正痕が確認しやすい解像度に適切な圧縮率を用いて圧縮処理を行えば画像データ量を削減することができる。即ち、解像度決定部27において得られた解像度に従って適切な圧縮率に変更することにより、画像の保存コストを向上させることができる。   The compression processing unit 28 compresses the RGB data according to the resolution determined by the resolution determination unit 27. In the compression process, compression is performed by a known method and accumulated in the HDD 4 as RGB image data. It should be noted that an appropriate compression rate corresponding to the resolution is determined empirically as the compression rate applied when compressing image data. Therefore, when a certain resolution is determined based on this, the compression may be performed using a compression rate corresponding to the resolution. The resolution obtained by the resolution determination unit 27 is determined as a resolution at which correction marks can be easily confirmed. Compared to the case where compression processing is performed using a compression rate corresponding to the resolution (for example, using a uniform resolution) that is determined regardless of the presence or absence of the correction mark, a compression rate suitable for the resolution at which the correction mark can be easily confirmed. The amount of image data can be reduced if compression processing is performed using. That is, the image storage cost can be improved by changing the compression rate to an appropriate compression rate according to the resolution obtained in the resolution determination unit 27.

以上の構成により、ユーザは紙文章を電子化する際に複雑な設定を必要とすることなく適切な解像度を施した画像を得ることができる。また、画像データの保存に際し、保存コストを向上させることができる。   With the above configuration, the user can obtain an image with an appropriate resolution without the need for complicated settings when digitizing paper text. Further, the storage cost can be improved when storing the image data.

(実施例2)
次に、本発明に係る画像処理装置の行う画像処理の実施例2について、図3を用いて説明を行う。図3は、本発明に係る画像処理装置が有する画像処理機能をプロセス順に表したブロック図である。読取り装置2で読み込まれた画像データは、スキャナγ変換部21、修正痕濃度領域検知部32、地肌濃度検知部33、階調補正部34、フィルタ処理部23、地肌補正部36、色補正部25、解像度決定部38、圧縮処理部39においての各画像処理プロセスを経て、RGB画像データとしてHDD4に記憶される。次に、各部の処理について処理の順を追って説明する。なお、スキャナγ変換部21、フィルタ処理部23、色補正部25については既に実施例1で説明したとおりであるため説明を省略する。
(Example 2)
Next, a second embodiment of image processing performed by the image processing apparatus according to the present invention will be described with reference to FIG. FIG. 3 is a block diagram showing the image processing functions of the image processing apparatus according to the present invention in the order of processes. The image data read by the reading device 2 includes a scanner γ conversion unit 21, a correction mark density region detection unit 32, a background density detection unit 33, a gradation correction unit 34, a filter processing unit 23, a background correction unit 36, and a color correction unit. 25, each image processing process in the resolution determination unit 38 and the compression processing unit 39 is stored in the HDD 4 as RGB image data. Next, the processing of each unit will be described in the order of processing. Note that the scanner γ conversion unit 21, the filter processing unit 23, and the color correction unit 25 are the same as already described in the first embodiment, and thus description thereof is omitted.

地肌濃度検知部33は、スキャナγ変換部21から生成されたRGB画像データに対して地肌濃度を検出する。実施例1の図5で説明したように画像濃度ヒストグラムをとり、頻度がピークである画像濃度の値Trを地肌濃度とする。   The background density detector 33 detects the background density of the RGB image data generated from the scanner γ converter 21. As described with reference to FIG. 5 of the first embodiment, the image density histogram is taken, and the image density value Tr having the peak frequency is set as the background density.

修正痕濃度領域検知部32は、地肌濃度検知部33で得た地肌濃度を基に修正痕濃度領域の有無を検知する。まず修正痕濃度領域検知部32は、画像データをブロック単位に分割し局所的に画素を検索する。検索の方法は公知の方法を用いても良い。例えば、精度の高いスキャナγ変換部21から生成されたRGB画像データの画像を任意のブロックに分割し、ブロックごとのヒストグラムと、地肌濃度検知部33から得た地肌濃度を比較することで地肌よりも修正痕濃度領域の有無を判断する。なお、原稿の地肌濃度値が修正痕濃度領域の濃度値と等しくなる場合、その濃度が地肌濃度となるため画像の修正痕濃度領域はないと判断するが、この場合は修正痕濃度が地肌濃度になるため、地肌を残すことになり画像の損失はないことになる。   The correction mark density area detection unit 32 detects the presence or absence of the correction mark density area based on the background density obtained by the background density detection part 33. First, the correction mark density region detection unit 32 divides image data into blocks and searches for pixels locally. A known method may be used as the search method. For example, the image of the RGB image data generated from the highly accurate scanner γ converting unit 21 is divided into arbitrary blocks, and the histogram for each block is compared with the background density obtained from the background density detecting unit 33 to obtain the background. Also, the presence / absence of a correction mark density region is determined. When the background density value of the document is equal to the density value of the correction mark density area, it is determined that there is no correction mark density area of the image because the density becomes the background density. Therefore, the background is left and there is no loss of images.

ここで、修正痕濃度領域の有無についての具体的な判断方法を例示する。まず、処理対象の画像データをブロック単位に分割する。ここで、分割された各ブロックには、図10のようにn×m(n,mは任意の整数)の画素が含まれている。このとき、ブロック内の各画素の濃度値を、予め用意したn行m列のメモリP(p_{n,m})に格納する。具体的には、例えばブロック内のk行l列(k:1〜nの整数、l:1〜mの整数)にある画素の濃度値を、メモリPにおける要素p_{k,l}とする。これをブロック内の全ての画素について繰り返す。さらに、メモリPと同じサイズのメモリQを用意し、メモリPに格納された各画素の濃度値と地肌濃度値Trとを比較した結果をメモリQ(q_{n,m})に格納する。具体的には、例えばメモリPの要素p_{k,l}について考えると、Tr<p_{k,l}ならば(地肌濃度より濃度が高い場合に)q_{k,l}=0、Tr>=p_{k,l}ならば(地肌濃度より濃度が低い場合に)q_{k,l}=1とする([k:1,2・・・n,l:1,2,・・・,m])。図11は、メモリQを表したものである。メモリQの各要素は、地肌濃度より濃度が高いことを意味する0、もしくは地肌濃度より濃度が低いことを意味する1の値を持っている。これをブロック内の全ての画素について繰り返す。   Here, a specific determination method for the presence / absence of the correction mark density region is illustrated. First, the image data to be processed is divided into blocks. Here, each divided block includes n × m pixels (n and m are arbitrary integers) as shown in FIG. At this time, the density value of each pixel in the block is stored in a memory P (p_ {n, m}) of n rows and m columns prepared in advance. Specifically, for example, the density value of a pixel in k rows and l columns (k: 1 to n integer, l: 1 to m integer) in the block is set as an element p_ {k, l} in the memory P. . This is repeated for all the pixels in the block. Further, a memory Q having the same size as the memory P is prepared, and the result of comparing the density value of each pixel stored in the memory P and the background density value Tr is stored in the memory Q (q_ {n, m}). Specifically, for example, considering the element p_ {k, l} of the memory P, if Tr <p_ {k, l} (when the density is higher than the background density), q_ {k, l} = 0, Tr > = p_ {k, l} (when the density is lower than the background density), q_ {k, l} = 1 ([k: 1,2 ... n, l: 1,2, ...・, M]). FIG. 11 shows the memory Q. Each element of the memory Q has a value of 0 meaning that the density is higher than the background density, or 1 meaning that the density is lower than the background density. This is repeated for all the pixels in the block.

これより、ブロック内の地肌濃度(Tr)より低濃度(修正痕濃度に対応)の画素の頻度は、   From this, the frequency of pixels with a lower density (corresponding to the correction mark density) than the background density (Tr) in the block is

Figure 2009111786
となる(地肌濃度より低い濃度を持つ画素の総和)。また、ブロック内の低濃度の画素全体の平均的な濃度値は、
Figure 2009111786
(The sum of pixels having a density lower than the background density). Also, the average density value of all low density pixels in the block is

Figure 2009111786
となる。このようにして、処理対象の画像データをブロック単位で分割したブロック内の、地肌濃度より低濃度濃度の画素の頻度と平均濃度値を求めることができる。
Figure 2009111786
It becomes. In this manner, the frequency and average density value of pixels having a density lower than the background density in the block obtained by dividing the image data to be processed in block units can be obtained.

続いて、処理対象の画像データ全体(即ち全てのブロック)の統計量を求める。その値から修正痕濃度領域の有無を判断する。ここでは、画像データが有するブロック数をz、任意のブロックの前記頻度と前記平均濃度値を、それぞれH_b,I_b [b:1,2,・・・,z]としたとき、画像データ全体の統計量を、   Subsequently, the statistic of the entire image data to be processed (that is, all blocks) is obtained. The presence / absence of a correction mark density region is determined from the value. Here, when the number of blocks of image data is z, and the frequency and the average density value of arbitrary blocks are H_b, I_b [b: 1, 2,..., Z], respectively, Statistics,

Figure 2009111786
と定義する。これは、画像データに含まれる各ブロックにおいて前記平均濃度値と地肌濃度値の差分(Tr-I_b)に前記頻度(H_b)を乗算したものの総和である。これは、地肌濃度付近の濃度は読取り装置2から読取られたRGB画像データの測定誤差部分も含まれる可能性があることを想定し、平均濃度値と地肌濃度値の差分をとることにより低濃度部分に対して重み付けを行うことを考慮しての統計量である。
Figure 2009111786
It is defined as This is the total sum of the difference (Tr-I_b) between the average density value and the background density value multiplied by the frequency (H_b) in each block included in the image data. It is assumed that the density near the background density may include a measurement error portion of the RGB image data read from the reading device 2, and the low density is obtained by taking the difference between the average density value and the background density value. This is a statistic taking into account the weighting of the part.

Figure 2009111786
が所定値以上であれば(例えば、
Figure 2009111786
Is greater than or equal to a predetermined value (for example,

Figure 2009111786
εαは読取装置の性能等や環境に応じて決定した値)、低濃度領域(修正痕濃度領域)が有ると判断し、満たさない場合、低濃度領域(修正痕濃度領域)が無いと判断する。
Figure 2009111786
εα is a value determined according to the performance of the reading device and the environment and the environment), and it is determined that there is a low density area (corrected trace density area). If not, it is determined that there is no low density area (corrected trace density area). .

階調補正部34は、修正痕濃度領域検知部33において判断された画像の修正痕濃度領域の有無に従って、スキャナγ変換部31から生成されたRGB画像データに対して階調補正を行う。補正方法は例えば、修正痕濃度領域の無い場合には特別な補正は行わず、修正痕濃度領域のある場合にRGB画像データのハイライト部の階調を多く取るように階調補正を行う。   The gradation correction unit 34 performs gradation correction on the RGB image data generated from the scanner γ conversion unit 31 according to the presence or absence of the correction mark density region of the image determined by the correction mark density region detection unit 33. In the correction method, for example, no special correction is performed when there is no correction mark density region, and gray level correction is performed so as to increase the gradation of the highlight portion of the RGB image data when there is a correction mark density region.

地肌補正部36は、修正痕濃度領域検知部32から画像の修正痕濃度領域の有無を通知され、また地肌濃度検知部33から地肌濃度値(Tr)を得る。修正痕濃度領域が無い場合は、公知の技術等で地肌補正を行えばよい。修正痕のない画像の場合、地肌補正をすることで画像データにムラをなくして画像データに規則性を持たせることができ、圧縮処理や保存コストの向上に寄与する。一方、修正痕濃度領域が有る場合は、地肌補正は行わないか、修正痕を残した地肌補正を行う。例えば、修正痕(Tm値に対応)より低い濃度の地肌のムラを補正する。   The background correction unit 36 is notified of the presence or absence of the correction mark density region of the image from the correction mark density region detection unit 32, and obtains the background density value (Tr) from the background density detection unit 33. If there is no correction mark density region, background correction may be performed by a known technique or the like. In the case of an image without a correction mark, by correcting the background, it is possible to eliminate irregularities in the image data and make the image data regular, which contributes to an improvement in compression processing and storage cost. On the other hand, if there is a correction mark density region, the background correction is not performed or the background correction is performed with the correction mark left. For example, the unevenness of the background having a lower density than the correction mark (corresponding to the Tm value) is corrected.

次に、解像度決定部38について説明する。修正痕濃度領域検知部32は解像度決定部38に対して、修正痕濃度領域の有無の情報と、修正痕濃度領域がある場合には各ブロックにおける修正痕濃度領域があるブロックの情報を与える。解像度決定部38は修正痕濃度領域が無い場合、表示装置9でユーザが指定した解像度を用いればよい。   Next, the resolution determination unit 38 will be described. The correction mark density region detection unit 32 gives the resolution determination unit 38 information on the presence / absence of the correction mark density region and, if there is a correction mark density region, information on the block having the correction mark density region in each block. If there is no correction mark density region, the resolution determination unit 38 may use the resolution specified by the user on the display device 9.

低濃度領域(修正痕濃度領域)が有る場合、z個のブロックのうち低濃度領域があるブロックの数をz'とすると、あるブロックにおける低濃度領域のブロック内に占める割合X_num(num:1〜z'の整数)は、   When there is a low density area (corrected trace density area), if the number of blocks having the low density area among z blocks is z ′, the ratio of the low density area in the block in the block X_num (num: 1 ~ Z 'integer)

Figure 2009111786
とおける。
Figure 2009111786
You can.

次に、低濃度領域があるブロック全体(ここではz'個のブロック)に対する低濃度領域の割合を   Next, the ratio of the low density area to the entire block with the low density area (here, z 'blocks)

Figure 2009111786
とすると、
Figure 2009111786
Then,

Figure 2009111786
は低濃度領域があるブロック全体における低濃度領域(修正痕濃度領域)のばらつき度合いを見ることができる値(分布度)となる。
Figure 2009111786
Is a value (distribution degree) that allows the degree of variation of the low density area (corrected trace density area) in the entire block having the low density area to be seen.

ここでσの値が大きい場合には、|X_num-μ|の大きいブロックが存在する場合等が考えられる。これは、特定のブロックに対する低濃度領域が集中していることになり、特定の箇所に小さい修正痕がある可能性が高いことなどを表している。   Here, when the value of σ is large, there may be a case where there is a block having a large | X_num-μ |. This means that low density regions for a specific block are concentrated, and there is a high possibility that a small correction mark is present at a specific location.

σの値が小さい場合には、|X_num-μ|の大きいブロックが存在しない場合等が考えられる。これは、全体的に修正痕が分布しているため修正痕自体の大きさは大きいものだと予想することができる。   When the value of σ is small, there may be a case where there is no block with a large | X_num-μ |. It can be expected that the correction marks themselves are large because the correction marks are distributed as a whole.

このようにσの値に従って、低濃度領域があるブロック全体における低濃度領域のばらつき度合いを判断することが可能になる。   Thus, according to the value of σ, it is possible to determine the degree of variation of the low density region in the entire block having the low density region.

よってこのσ値に従って、σ値が大きければ解像度を大きくし、σ値が小さければ解像度を変更しないという処理を行えば良い。σ値が小さければ修正痕が見やすくするために解像度を大きくする処理を行う。   Therefore, according to this σ value, the resolution may be increased if the σ value is large, and the resolution may not be changed if the σ value is small. If the σ value is small, processing for increasing the resolution is performed to make it easier to see the correction mark.

なお、σ値の算出処理は修正痕濃度領域検知部32でなされてもよい。そして、修正痕濃度領域検知部32から得たσ値を基に解像度決定部38において解像度が決定される構成としてもよい。   The calculation process of the σ value may be performed by the correction mark density region detection unit 32. The resolution determination unit 38 may determine the resolution based on the σ value obtained from the correction mark density region detection unit 32.

これにより、画像の地肌より修正痕濃度領域の情報に応じて、修正痕のような地肌より低濃度である部分の適切な解像度決定処理を自動で行うことができる。また、これにより修正痕を含む画像の可読性を向上することができる。なお、実施例1における処理では、回路数(修正痕濃度領域検知に係る回路)が少なくてすむというメリットがあるのに対し、本実施例によれば解像度決定処理の精度が高くなるというメリットがある。   Thereby, according to the information of the correction mark density region from the background of the image, it is possible to automatically perform an appropriate resolution determination process for a portion having a lower density than the background such as the correction mark. In addition, this makes it possible to improve the readability of an image including a correction mark. The processing in the first embodiment has an advantage that the number of circuits (circuits related to correction mark density region detection) can be reduced, whereas the present embodiment has an advantage that the accuracy of resolution determination processing is increased. is there.

圧縮処理部39は、解像度決定部38で決定された解像度を得て画像データを適切な圧縮率に変更するため、画像の保存コストを向上させることができる。なお、画像データは、圧縮された後RGB画像データとしてHDD4に蓄積される。圧縮方法については、圧縮処理部28と同様の方法でよい。   Since the compression processing unit 39 obtains the resolution determined by the resolution determination unit 38 and changes the image data to an appropriate compression rate, the image storage cost can be improved. The image data is compressed and stored in the HDD 4 as RGB image data. The compression method may be the same as that of the compression processing unit 28.

以上の構成により、ユーザは紙文章を電子化する際に複雑な設定を必要とすることなく適切な解像度での画像を得ることができる。また、画像データの保存に際し、保存コストを向上させることができる。   With the above configuration, the user can obtain an image with an appropriate resolution without requiring complicated settings when digitizing paper text. Further, the storage cost can be improved when storing the image data.

(実施例3)
次に、本発明に係る画像処理装置の行う画像処理の実施例3について、図4を用いて説明を行う。図4は、実施例2の図3と比べ、圧縮処理部c40においてのみ処理内容が異なる。それ以外の部分(スキャナγ変換部21〜解像度決定部38)においては、実施例2で説明した内容と同様であるため説明を省略する。
(Example 3)
Next, a third embodiment of image processing performed by the image processing apparatus according to the present invention will be described with reference to FIG. FIG. 4 differs from FIG. 3 of the second embodiment only in the processing content in the compression processing unit c40. Since the other parts (scanner γ conversion unit 21 to resolution determination unit 38) are the same as the contents described in the second embodiment, description thereof is omitted.

圧縮処理部c40は、RGB画像データを圧縮処理しRGB画像データとしてHDD4に蓄積される。圧縮処理部c40は、解像度決定部38で決定したσ値に基づいて圧縮率を決定し圧縮を行う。   The compression processing unit c40 compresses the RGB image data and accumulates the RGB image data in the HDD 4 as RGB image data. The compression processing unit c40 determines the compression rate based on the σ value determined by the resolution determination unit 38 and performs compression.

図12は、σ値に対応した適切な圧縮率を表している。画像データにおいて、データのばらつき具合を考慮した圧縮率である。σ値に応じた圧縮率を用いて圧縮を行えばよい。
このように、修正痕のばらつき具合に基づいて圧縮を行うことでより修正痕を有する画像に適した画像サイズにすることができる。例えば、σ<B1ならば90、B1<σ=<B2ならば80の圧縮率を適用する。なお、QFはJPEGの場合の圧縮率を表すもので値が高いほうが圧縮率が低い。
FIG. 12 shows an appropriate compression rate corresponding to the σ value. This is a compression rate in consideration of the degree of data variation in image data. What is necessary is just to compress using the compression rate according to (sigma) value.
As described above, by performing compression based on the variation degree of the correction marks, it is possible to obtain an image size more suitable for an image having the correction marks. For example, a compression ratio of 90 is applied if σ <B1, and 80 if B1 <σ = <B2. QF represents the compression ratio in the case of JPEG, and the higher the value, the lower the compression ratio.

本実施例によれば、実施例2で処理される圧縮処理と比べ、変更した解像度や地肌より低濃度の領域の情報に従って適切な圧縮率に変更する。これにより、圧縮処理の精度が高くなり画像保存コストを向上させることができる。   According to the present embodiment, as compared with the compression processing processed in the second embodiment, the compression rate is changed to an appropriate compression rate according to the changed resolution and the information of the region having a lower density than the background. As a result, the accuracy of the compression process is increased and the image storage cost can be improved.

以上の構成により、ユーザは紙文章を電子化する際に複雑な設定を必要とすることなく適切な解像度を用い、圧縮を施した画像を得ることができる。また、画像データの保存に際し、保存コストを向上させることができる。   With the above configuration, the user can obtain a compressed image using an appropriate resolution without requiring complicated settings when digitizing paper text. Further, the storage cost can be improved when storing the image data.

以上、本発明の実施例について詳述したが、本発明は係る特定の実施形態に限定されるものではなく、特許請求の範囲に記載された本発明の要旨の範囲内において、種々の変形・変更が可能である。   As mentioned above, although the Example of this invention was explained in full detail, this invention is not limited to the specific embodiment which concerns, In the range of the summary of this invention described in the claim, various deformation | transformation * It can be changed.

本実施形態に係る画像処理装置のハードウェア構成図である。It is a hardware block diagram of the image processing apparatus which concerns on this embodiment. 画像処理に係るブロック図の一例である。It is an example of the block diagram which concerns on an image process. 画像処理に係るブロック図の一例である。It is an example of the block diagram which concerns on an image process. 画像処理に係るブロック図の一例である。It is an example of the block diagram which concerns on an image process. 画像濃度ヒストグラムを表す図の一例である。It is an example of the figure showing an image density histogram. 画像濃度ヒストグラムを表す図の一例である。It is an example of the figure showing an image density histogram. 画像濃度ヒストグラムを表す図の一例である。It is an example of the figure showing an image density histogram. 画像濃度ヒストグラムを表す図の一例である。It is an example of the figure showing an image density histogram. x値に対応した解像度を表す図の一例である。It is an example of the figure showing the resolution corresponding to x value. ブロックの図を表す一例である。It is an example showing the figure of a block. ブロックにおいて低濃度値を持つ画素を表す図の一例である。It is an example of the figure showing the pixel which has a low density value in a block. σ値と圧縮率との対応を表す図の一例である。It is an example showing the correspondence between the σ value and the compression rate.

符号の説明Explanation of symbols

1 画像処理装置
26 濃度検知部
27 解像度決定部
28 圧縮処理部
32 低濃度領域検知部
33 地肌濃度検知部
40 圧縮処理部
DESCRIPTION OF SYMBOLS 1 Image processing apparatus 26 Density detection part 27 Resolution determination part 28 Compression processing part 32 Low density area | region detection part 33 Background density detection part 40 Compression processing part

Claims (10)

画像データを読み取る読取部を有する画像処理装置において、
前記読取部により読み取られた前記画像データにおいて画像濃度の頻度が最大の濃度値である地肌濃度値、前記地肌濃度値の頻度、前記地肌濃度値より濃度値が低く頻度が前記地肌濃度値の頻度の次に高い濃度値である修正痕濃度値、及び前記修正痕濃度値の頻度を検知する濃度値検知手段と、
前記濃度値検知手段により検知された前記地肌濃度値、前記修正痕濃度値、前記地肌濃度値の頻度、及び前記修正痕濃度値の頻度に基づく画素数であって、前記修正痕濃度値を中心とする濃度値の所定範囲にある画素数が、大きくなるにつれて低い解像度となるように前記画像データの解像度を決定する解像度決定手段と、
を有することを特徴とする画像処理装置。
In an image processing apparatus having a reading unit for reading image data,
In the image data read by the reading unit, the background density value having the highest image density frequency, the frequency of the background density value, and the frequency lower than the background density value is the frequency of the background density value. A correction mark density value that is the next highest density value, and a density value detection means for detecting the frequency of the correction mark density value;
It is the number of pixels based on the background density value detected by the density value detection means, the correction mark density value, the frequency of the background density value, and the frequency of the correction mark density value, and the correction mark density value is centered. Resolution determination means for determining the resolution of the image data so that the number of pixels in a predetermined range of density values becomes lower as the number of pixels increases.
An image processing apparatus comprising:
前記濃度値検知手段は、前記地肌濃度値の頻度と前記修正痕濃度値の頻度が略同一の場合には、濃度が低い方の濃度値を前記地肌濃度値とすること、
を特徴とする請求項1記載の画像処理装置。
When the frequency of the background density value and the frequency of the correction mark density value are substantially the same, the density value detection means sets the density value having the lower density as the background density value,
The image processing apparatus according to claim 1.
前記解像度決定手段により決定された前記解像度に基づいて、前記画像データの圧縮処理を行う圧縮処理手段と、
を有することを特徴とする請求項1または2に記載の画像処理装置。
Compression processing means for performing compression processing of the image data based on the resolution determined by the resolution determination means;
The image processing apparatus according to claim 1, further comprising:
画像データを読み取る読取部を有する画像処理装置において、
前記読取部により読み取られた前記画像データにおいて画像濃度の頻度が最大の濃度値である地肌濃度値を検知する地肌濃度値検知手段と、
前記地肌濃度値検知手段により検知された前記地肌濃度値に基づいて、前記地肌濃度値よりも低い濃度値の画素を所定数含む画素領域である修正痕濃度領域の有無を検知する修正痕濃度領域検知手段と、
前記画像データにおける前記低濃度領域の分布度を取得する分布度取得手段と、
前記分布度取得手段により取得された前記修正痕濃度領域の分布度が大きくなるにつれて高い解像度となるように画像データの解像度を決定する解像度決定手段と、
を有することを特徴とする画像処理装置。
In an image processing apparatus having a reading unit for reading image data,
A background density value detecting means for detecting a background density value which is a density value having the highest frequency of image density in the image data read by the reading unit;
On the basis of the background density value detected by the background density value detecting means, a correction mark density area for detecting the presence or absence of a correction mark density area which is a pixel area including a predetermined number of pixels having a density value lower than the background density value. Detection means;
A distribution degree acquisition means for acquiring a distribution degree of the low density region in the image data;
Resolution determination means for determining the resolution of the image data so that the resolution becomes higher as the distribution degree of the correction mark density region acquired by the distribution degree acquisition means increases;
An image processing apparatus comprising:
前記修正痕濃度領域検知手段は、前記画像データを所定領域に区分し、区分された領域毎における前記地肌濃度値よりも低い濃度値を有する画素数及び平均濃度値に基づいて、前記修正痕濃度領域の有無を決定すること、
を特徴とする請求項4記載の画像処理装置。
The correction mark density area detection unit divides the image data into predetermined areas, and the correction mark density is based on the number of pixels having a density value lower than the background density value and an average density value for each of the divided areas. Determining the presence or absence of an area,
The image processing apparatus according to claim 4.
前記分布度取得手段は、前記画像データを所定領域に区分し、前記修正痕濃度領域を有すると検知された前記所定領域の数に基づいて、前記修正痕濃度領域の分布度を決定すること、
を特徴とする請求項4記載の画像処理装置。
The distribution degree obtaining means divides the image data into predetermined areas, and determines the distribution degree of the correction mark density area based on the number of the predetermined areas detected as having the correction mark density area;
The image processing apparatus according to claim 4.
前記解像度決定手段により決定された前記解像度に基づいて、前記画像データの圧縮処理を行う圧縮処理手段と、
を有することを特徴とする請求項4ないし6記載の画像処理装置。
Compression processing means for performing compression processing of the image data based on the resolution determined by the resolution determination means;
7. The image processing apparatus according to claim 4, further comprising:
前記分布度取得手段により取得された前記修正痕濃度領域の分布度に対応した所定の圧縮率に基づいて、前記画像データの圧縮処理を行う圧縮処理手段と、
を有することを特徴とする請求項4ないし6記載の画像処理装置。
Compression processing means for compressing the image data based on a predetermined compression rate corresponding to the distribution degree of the correction mark density region acquired by the distribution degree acquisition means;
7. The image processing apparatus according to claim 4, further comprising:
画像データを読み取る読取部を有する画像処理装置における画像処理方法において、
前記読取部により読み取られた前記画像データにおいて画像濃度の頻度が最大の濃度値である地肌濃度値、前記地肌濃度値の頻度、前記地肌濃度値より濃度値が低く頻度が前記地肌濃度値の頻度の次に高い濃度値である修正痕濃度値、及び前記修正痕濃度値の頻度を検知する濃度値検知手順と、
前記濃度値検知手順により検知された前記地肌濃度値、前記修正痕濃度値、前記地肌濃度値の頻度、及び前記修正痕濃度値の頻度に基づく画素数であって、前記修正痕濃度値を中心とする濃度値の所定範囲にある画素数が、大きくなるにつれて低い解像度となるように前記画像データの解像度を決定する解像度決定手順と、
を有することを特徴とする画像処理方法。
In an image processing method in an image processing apparatus having a reading unit for reading image data,
In the image data read by the reading unit, the background density value having the highest image density frequency, the frequency of the background density value, and the frequency lower than the background density value is the frequency of the background density value. A correction mark density value that is the next highest density value, and a density value detection procedure for detecting the frequency of the correction mark density value;
The background density value detected by the density value detection procedure, the correction mark density value, the frequency of the background density value, and the number of pixels based on the frequency of the correction mark density value, the correction mark density value being the center A resolution determination procedure for determining the resolution of the image data so that the number of pixels in a predetermined range of density values becomes lower as the number of pixels increases.
An image processing method comprising:
画像データを読み取る読取部を有する画像処理装置における画像処理方法において、
前記読取部により読み取られた前記画像データにおいて画像濃度の頻度が最大の濃度値である地肌濃度値を検知する地肌濃度値検知手順と、
前記地肌濃度値検知手順により検知された前記地肌濃度値に基づいて、前記地肌濃度値よりも低い濃度値の画素を所定数含む画素領域である修正痕濃度領域の有無を検知する修正痕濃度領域検知手順と、
前記画像データにおける前記低濃度領域の分布度を取得する分布度取得手順と、
前記分布度取得手順により取得された前記修正痕濃度領域の分布度が大きくなるにつれて高い解像度となるように画像データの解像度を決定する解像度決定手順と、
を有することを特徴とする画像処理方法。
In an image processing method in an image processing apparatus having a reading unit for reading image data,
A background density value detection procedure for detecting a background density value that is the density value having the highest frequency of image density in the image data read by the reading unit;
Based on the background density value detected by the background density value detection procedure, a correction mark density area that detects the presence or absence of a correction mark density area that is a pixel area that includes a predetermined number of pixels having a density value lower than the background density value. Detection procedure;
A distribution degree acquisition procedure for acquiring a distribution degree of the low density region in the image data;
A resolution determination procedure for determining the resolution of the image data so that the resolution becomes higher as the distribution degree of the correction mark density region acquired by the distribution degree acquisition procedure increases;
An image processing method comprising:
JP2007282456A 2007-10-30 2007-10-30 Image processing apparatus and image processing method Pending JP2009111786A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2007282456A JP2009111786A (en) 2007-10-30 2007-10-30 Image processing apparatus and image processing method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2007282456A JP2009111786A (en) 2007-10-30 2007-10-30 Image processing apparatus and image processing method

Publications (1)

Publication Number Publication Date
JP2009111786A true JP2009111786A (en) 2009-05-21

Family

ID=40779785

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2007282456A Pending JP2009111786A (en) 2007-10-30 2007-10-30 Image processing apparatus and image processing method

Country Status (1)

Country Link
JP (1) JP2009111786A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102055881A (en) * 2009-10-28 2011-05-11 京瓷美达株式会社 Image processing device, method for image processing, and image forming apparatus

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102055881A (en) * 2009-10-28 2011-05-11 京瓷美达株式会社 Image processing device, method for image processing, and image forming apparatus
JP2011097201A (en) * 2009-10-28 2011-05-12 Kyocera Mita Corp Image processing device

Similar Documents

Publication Publication Date Title
US8401306B2 (en) Image processing apparatus and control method
JP4568460B2 (en) Image processing apparatus and recording medium
KR101597740B1 (en) Image processing apparatus, image processing method, and computer readable medium
JP5500996B2 (en) Image processing apparatus and image processing method
KR101597739B1 (en) Image processing apparatus, image processing method, and computer readable medium
JP4988624B2 (en) Image processing apparatus, image processing method, and recording medium
KR101556223B1 (en) Image processing apparatus, image processing method, and computer readable medium
JP4093413B2 (en) Image processing apparatus, image processing program, and recording medium recording the program
JP6082224B2 (en) Image processing apparatus and image processing method
US7693332B2 (en) Image processing apparatus capable of generating distributable image while maintaining readability and security
JP4771428B2 (en) Image processing apparatus, image processing method, program, and recording medium
JP2009111786A (en) Image processing apparatus and image processing method
JP2012095173A (en) Image processing device, image formation device, and image processing method
JP5549836B2 (en) Image processing apparatus and image processing method
JP5453215B2 (en) Image processing apparatus, image forming apparatus, and image processing method
US20100188670A1 (en) Image processing apparatus, image processing method and program executing the image processing method
JP5482945B1 (en) Image processing apparatus and program
JP2010245882A (en) Image reading apparatus and image forming apparatus
JP5053215B2 (en) Image processing apparatus, image processing method, and program
JP2008278372A (en) Image processor and processing method
JP4412339B2 (en) Image forming apparatus and image data correction method
JP5818559B2 (en) Image processing device
JP2001352453A (en) Image-reproducing device
JP3957523B2 (en) Color image processing apparatus, color image processing method, program, and recording medium
JP3962611B2 (en) Image processing apparatus and method