JP2018011157A - Read image correction device, read image correction method, and computer program - Google Patents

Read image correction device, read image correction method, and computer program Download PDF

Info

Publication number
JP2018011157A
JP2018011157A JP2016137875A JP2016137875A JP2018011157A JP 2018011157 A JP2018011157 A JP 2018011157A JP 2016137875 A JP2016137875 A JP 2016137875A JP 2016137875 A JP2016137875 A JP 2016137875A JP 2018011157 A JP2018011157 A JP 2018011157A
Authority
JP
Japan
Prior art keywords
gradation
color
reading
read
target pixel
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
JP2016137875A
Other languages
Japanese (ja)
Other versions
JP6809010B2 (en
Inventor
智雄 山中
Tomoo Yamanaka
智雄 山中
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.)
Konica Minolta Inc
Original Assignee
Konica Minolta Inc
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 Konica Minolta Inc filed Critical Konica Minolta Inc
Priority to JP2016137875A priority Critical patent/JP6809010B2/en
Publication of JP2018011157A publication Critical patent/JP2018011157A/en
Application granted granted Critical
Publication of JP6809010B2 publication Critical patent/JP6809010B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Facsimile Scanning Arrangements (AREA)
  • Facsimile Image Signal Circuits (AREA)
  • Color Image Communication Systems (AREA)
  • Image Input (AREA)

Abstract

PROBLEM TO BE SOLVED: To correct an image that is read by a one-line scanner, more appropriately than the prior arts.SOLUTION: For a red target pixel subjected to correction in a read image, a feature amount representing a feature of a change from surrounding red pixels is calculated (Figures 15(A) and (C)). Gradations of other colors (that are green and blue) in the target pixel are calculated based on gradations of surrounding green pixels and gradations of blue pixels (Figure 15(B)). The gradation of the pixel and the gradation of the blue pixel are then corrected based on the feature amount (Figure 15(D)). For a blue target pixel and a green target pixel, feature amounts are also similarly calculated, gradations of the other colors are calculated, and the gradations are corrected based on the feature amounts.SELECTED DRAWING: Figure 15

Description

本発明は、ラインスキャナで読み取った画像の補正の技術に関する。   The present invention relates to a technique for correcting an image read by a line scanner.

従来、いわゆる1ラインスキャナが普及している。1ラインスキャナは、RGB(Red Green Blue)各色の光源を有し、1本のラインを読み取る際にRGBのうちの1色の光源を点灯し、1本のラインごとに点灯する色を順番に切り換えるラインスキャナである。「1ラインセンサ」または「1ラインスキャンカメラ」などと呼ばれることもある。   Conventionally, so-called one-line scanners have become widespread. The one-line scanner has light sources of RGB (Red Green Blue) colors, and when one line is read, the light source of one color of RGB is turned on, and the colors that are turned on for each line are sequentially turned on. It is a line scanner to switch. It may be called “one line sensor” or “one line scan camera”.

カラーの画像を1ラインスキャナでスキャンする場合において、その画像が副走査方向に階調が徐々に直線的に変化する画像であれば、例えば緑の位相に赤の位相を合わせるには、補間によって赤の階調を算出すればよい。具体的には、緑の特定の画素の周囲にある複数の赤の画素の階調に基づいて、特定の画素における赤の階調を算出すればよい(特許文献1)。   When a color image is scanned by a one-line scanner, if the image is an image whose gradation gradually changes linearly in the sub-scanning direction, for example, to match the red phase to the green phase, interpolation is performed. What is necessary is just to calculate the gradation of red. Specifically, the red gradation of a specific pixel may be calculated based on the gradations of a plurality of red pixels around the green specific pixel (Patent Document 1).

しかし、白の用紙に記された黒の文字を読み取った場合に、ある色(例えば、緑)の位相に他の色(例えば、赤および青)の位相を合わせるために従来の方法で階調を補間すると、本来は赤、青、緑の階調が等しいはずであるにも関わらず、差異が発生してしまうことがある。特に、文字のエッジ付近で差異が発生しやすい。   However, when reading black characters on white paper, the gradation is adjusted in the conventional way to match the phase of one color (eg, green) with the other color (eg, red and blue). May cause a difference even though the gray levels of red, blue, and green should originally be equal. In particular, a difference is likely to occur near the edge of a character.

本来は黒の文字であるにも関わらず、差異が大きくなるほどカラーの文字であると誤って認識されやすくなる。   Although it is originally a black character, the larger the difference is, the easier it is to be mistakenly recognized as a color character.

そこで、次のような技術が提案されている。ACS(Auto Color Select)を実施する選択がなされた場合に、副走査の解像度を上げる(特許文献2)。   Therefore, the following techniques have been proposed. When the selection to perform ACS (Auto Color Select) is made, the sub-scanning resolution is increased (Patent Document 2).

画像読取装置は1ラインの読み取り時間の間は1色で点灯し、1ラインごとに点灯する光源の色を順番に切り換える光源部と、原稿の反射光に基づき1ラインにつき1色分の読み取りを行うイメージセンサーと、読み取りの際に点灯した光源の色である光源色の画像データを生成するデータ生成部と、データ生成部が生成した画像データを複数ライン分記憶するメモリーと、メモリーに記憶された複数ライン分の画像データを用いて、光源色以外の色成分の画素値を注目画素の周辺画素の画素値に基づき生成する残色成分生成部と、を含む(特許文献3)。   The image reading device is lit in one color during the reading time of one line, and a light source unit that sequentially switches the color of the light source that is turned on for each line, and reading for one color per line based on the reflected light of the document. An image sensor to perform, a data generation unit that generates image data of a light source color that is a color of a light source that is turned on at the time of reading, a memory that stores image data generated by the data generation unit for a plurality of lines, and stored in the memory A residual color component generation unit that generates pixel values of color components other than the light source color based on pixel values of peripheral pixels of the target pixel using image data for a plurality of lines (Patent Document 3).

特開2002−247292号公報JP 2002-247292 A 特開2013−85172号公報JP 2013-85172 A 特開2014−27508号公報JP 2014-27508 A

特許文献2に記載される技術によると、画像を読み取る速さが遅くなってしまう。特許文献3に記載される技術によると、黒の文字のエッジの画素がカラーの画素であると誤って認識されることの防止を図ることができる。しかし、カラーの画素が黒の画素であると誤って認識されるおそれがある。   According to the technique described in Patent Document 2, the speed of reading an image is slow. According to the technique described in Patent Document 3, it is possible to prevent the pixel at the edge of the black character from being erroneously recognized as a color pixel. However, there is a possibility that a color pixel is erroneously recognized as a black pixel.

本発明は、このような問題点に鑑み、1ラインスキャナで読み取った画像を従来よりも好適に補正できるようにすることを、目的とする。   In view of such problems, an object of the present invention is to enable an image read by a one-line scanner to be corrected more suitably than in the past.

本発明の一形態に係る読取画像補正装置は、複数の色それぞれの光源を1つのラインごとに順番に点灯させながら1ラインスキャナによって読み取られた画像である読取画像を補正する読取画像補正装置であって、前記読取画像の中の補正する対象である対象画素の、当該対象画素の周囲からの変化の特徴を表わす特徴量を、前記1ラインスキャナによって得られた、当該対象画素の階調である第一の読取階調と、当該読取画像の中の前記複数の色それぞれの光源のうちの当該対象画素を読み取る際に用いられた読取用光源が点灯している際に当該1ラインスキャナによって読み取られかつ当該対象画素の副走査方向に近接する画素の階調である第二の読取階調と、によって算出する、特徴量算出手段と、前記対象画素の、前記複数の色のうちの前記読取用光源に対応する色とは異なる色である非読取色の階調である非読取色階調を、当該読取画像の中の前記複数の色それぞれの光源のうちの当該非読取色の光源が点灯している際に前記1ラインスキャナによって読み取られかつ当該対象画素の副走査方向に近接する複数の画素それぞれの第三の読取階調に基づいて算出する、非読取色階調算出手段と、前記非読取色階調を前記特徴量に基づいて補正することによって補正階調を算出する補正手段と、を有する。   A read image correction apparatus according to an aspect of the present invention is a read image correction apparatus that corrects a read image that is an image read by a one-line scanner while sequentially turning on light sources of a plurality of colors for each line. A feature amount representing a characteristic of a change in the target pixel as a correction target in the read image from the periphery of the target pixel is represented by the gradation of the target pixel obtained by the one-line scanner. When the reading light source used for reading the target pixel among the light sources of each of the plurality of colors in the read image is turned on by the one line scanner A feature amount calculation means for calculating by a second reading gradation that is a gradation of a pixel that is read and is adjacent to the target pixel in the sub-scanning direction; A non-read color gradation that is a gradation of a non-read color that is a color different from the color corresponding to the reading light source is the non-read color of the light sources of the plurality of colors in the read image. Non-reading color gradation calculation that is calculated based on the third reading gradation of each of a plurality of pixels that are read by the one-line scanner and close to the target pixel in the sub-scanning direction when the light source is turned on And correction means for calculating a correction gradation by correcting the non-read color gradation based on the feature amount.

好ましくは、前記特徴量算出手段は、前記第一の読取階調および前記第二の読取階調に二次微分フィルタを掛けた値を加算することによって前記特徴量を算出する。   Preferably, the feature amount calculation unit calculates the feature amount by adding a value obtained by applying a second-order differential filter to the first reading gradation and the second reading gradation.

本発明によると、1ラインスキャナで読み取った画像を従来よりも好適に補正できるようにすることができる。   According to the present invention, an image read by a one-line scanner can be corrected more suitably than in the past.

画像形成装置の外観の例を示す図である。1 is a diagram illustrating an example of an appearance of an image forming apparatus. 画像形成装置のハードウェア構成の例を示す図である。2 is a diagram illustrating an example of a hardware configuration of an image forming apparatus. FIG. スキャンユニットの構成の例を示す図である。It is a figure which shows the example of a structure of a scan unit. 画像形成装置の機能的構成の例を示す図である。2 is a diagram illustrating an example of a functional configuration of an image forming apparatus. FIG. 画像データの例を示す図である。It is a figure which shows the example of image data. 画像の例を示す図である。It is a figure which shows the example of an image. 読取色の画素と非読取色の画素との位置関係の例を示す図である。It is a figure which shows the example of the positional relationship of the pixel of reading color, and the pixel of non-reading color. 副走査方向の座標が同じである連続する画素の階調の変化の例を示す図である。It is a figure which shows the example of the change of the gradation of the continuous pixel with the same coordinate of a subscanning direction. 基準階調の算出の方法の例を説明するための図である。It is a figure for demonstrating the example of the method of calculation of a reference gradation. 各画素の非読取色の基準階調の例を示す図である。It is a figure which shows the example of the reference gradation of the non-reading color of each pixel. 読取色が同じである連続する画素の位置関係の例を示す図である。It is a figure which shows the example of the positional relationship of the continuous pixel with the same reading color. 二次微分フィルタの適用の方法の例を示す図である。It is a figure which shows the example of the method of application of a secondary differential filter. 各画素の変化特徴量の例を示す図である。It is a figure which shows the example of the change feature-value of each pixel. 各画素の非読取色の補正階調の例を示す図である。It is a figure which shows the example of the correction | amendment gradation of the non-reading color of each pixel. 変化特徴量の算出および基準階調の補正の具体例を説明するための図である。It is a figure for demonstrating the specific example of calculation of a change feature-value, and correction | amendment of a reference gradation. 第一の階調決定処理の流れの例を説明するフローチャートである。It is a flowchart explaining the example of the flow of a 1st gradation determination process. 第二の階調決定処理の流れの例を説明するフローチャートである。It is a flowchart explaining the example of the flow of a 2nd gradation determination process. 階調決定部による黒文字読取モードにおける処理の結果の例を示す図である。It is a figure which shows the example of the result of the process in the black character reading mode by a gradation determination part. 階調決定部によるカラー画像読取モードにおける処理の結果の例を示す図である。It is a figure which shows the example of the result of the process in the color image reading mode by a gradation determination part. 読取画像補正プログラムによる処理の全体的な処理の流れの例を説明するフローチャートである。It is a flowchart explaining the example of the flow of the whole process of the process by a read image correction program. 基準階調補正処理の流れの例を説明するフローチャートである。It is a flowchart explaining the example of the flow of a reference | standard gradation correction process. 注目画素およびその前後の画素の位置関係の例を示す図である。It is a figure which shows the example of the positional relationship of an attention pixel and the pixel before and behind it. 二次微分フィルタの適用の方法の例を示す図である。It is a figure which shows the example of the method of application of a secondary differential filter.

図1は、画像形成装置1の外観の例を示す図である。図2は、画像形成装置1のハードウェア構成の例を示す図である。図3は、スキャンユニット10eの構成の例を示す図である。   FIG. 1 is a diagram illustrating an example of the appearance of the image forming apparatus 1. FIG. 2 is a diagram illustrating an example of a hardware configuration of the image forming apparatus 1. FIG. 3 is a diagram illustrating an example of the configuration of the scan unit 10e.

図1に示す画像形成装置1は、一般に複合機またはMFP(Multi Function Peripherals)などと呼ばれる装置であって、コピー、スキャン、ネットワークプリンティング(PCプリント)、およびファックスなどの機能を集約した装置である。   An image forming apparatus 1 shown in FIG. 1 is an apparatus generally called a multi function peripheral or MFP (Multi Function Peripherals), and is an apparatus that integrates functions such as copying, scanning, network printing (PC printing), and fax. .

画像形成装置1は、LAN(Local Area Network)、公衆回線、またはインターネットなどの通信回線を介してパーソナルコンピュータまたはファックス端末などの装置と画像データのやり取りを行うことができる。   The image forming apparatus 1 can exchange image data with an apparatus such as a personal computer or a fax terminal via a communication line such as a LAN (Local Area Network), a public line, or the Internet.

画像形成装置1は、図1または図2に示すように、システムコントローラ10、補助記憶装置10d、スキャンユニット10e、プリントユニット10f、NIC(Network Interface Card)10g、モデム10h、タッチパネルディスプレイ10i、操作キーパネル10j、入力画像処理部10k、および出力画像処理部10mなどによって構成される。   As shown in FIG. 1 or 2, the image forming apparatus 1 includes a system controller 10, an auxiliary storage device 10d, a scan unit 10e, a print unit 10f, a NIC (Network Interface Card) 10g, a modem 10h, a touch panel display 10i, and an operation key panel. 10j, an input image processing unit 10k, an output image processing unit 10m, and the like.

システムコントローラ10は、CPU(Central Processing Unit)10a、RAM(Random Access Memory)10b、ROM(Read Only Memory)10cなどによって構成され、コピー、スキャン、電子メール送信、およびネットワークプリンティングなどのジョブを実行するために、画像形成装置1の全体的な制御を行う。   The system controller 10 includes a CPU (Central Processing Unit) 10a, a RAM (Random Access Memory) 10b, a ROM (Read Only Memory) 10c, and the like, and executes jobs such as copying, scanning, e-mail transmission, and network printing. Therefore, overall control of the image forming apparatus 1 is performed.

ROM10cには、上述の各ジョブを実行するためのプログラムが記憶されている。なお、これらプログラムの全部または一部は、補助記憶装置10dに記憶されていてもよい。   The ROM 10c stores a program for executing each job described above. Note that all or part of these programs may be stored in the auxiliary storage device 10d.

さらに、ROM10cまたは補助記憶装置10dには、読取画像補正プログラム10P(図4参照)が記憶されている。読取画像補正プログラム10Pは、適宜、RAM10bにロードされ、CPU10aによって実行される。読取画像補正プログラム10Pによると、1ラインスキャナにおいて生じやすい色滲みを従来よりも軽減することができる。読取画像補正プログラム10Pの詳細は、後述する。   Furthermore, a read image correction program 10P (see FIG. 4) is stored in the ROM 10c or the auxiliary storage device 10d. The read image correction program 10P is appropriately loaded into the RAM 10b and executed by the CPU 10a. According to the read image correction program 10P, color blur that is likely to occur in a one-line scanner can be reduced as compared with the conventional case. Details of the read image correction program 10P will be described later.

補助記憶装置10dとして、ハードディスクまたはSSD(Solid State Drive)が用いられる。   A hard disk or SSD (Solid State Drive) is used as the auxiliary storage device 10d.

これらのプログラムは、適宜、RAM10bにロードされ、CPU10aによって実行される。また、RAM10bは、これらのプログラムを実行する際の種々のデータ(例えば、設定のデータ)および実行することによって得られたデータ(例えば、画像データ)などが適宜、記憶される。   These programs are appropriately loaded into the RAM 10b and executed by the CPU 10a. Further, the RAM 10b appropriately stores various data (for example, setting data) when executing these programs, data (for example, image data) obtained by the execution, and the like.

スキャンユニット10eは、原稿の用紙に記されている写真、文字、絵、図表などの画像を読み取って画像データを生成する。   The scan unit 10e reads an image such as a photograph, a character, a picture, a chart, or the like written on the paper of the document and generates image data.

具体的には、スキャンユニット10eは、図3に示すように、スキャナ10e1、読取用スリット10e2、プラテンガラス10e3、およびADF(Auto Document Feeder)10e4などによって構成される。   Specifically, as shown in FIG. 3, the scan unit 10e includes a scanner 10e1, a reading slit 10e2, a platen glass 10e3, an ADF (Auto Document Feeder) 10e4, and the like.

ADF10e4は、セットされた用紙を1枚ずつ読取用スリット10e2へ搬送する。スキャナ10e1は、用紙が読取用スリット10e2を通過する際に、用紙から画像を読み取り、画像の電子データ(画像データ)を生成する。   The ADF 10e4 conveys the set sheets one by one to the reading slit 10e2. The scanner 10e1 reads an image from the paper when the paper passes through the reading slit 10e2, and generates electronic data (image data) of the image.

または、プラテンガラス10e3に用紙がセットされた場合は、スキャナ10e1は、プラテンガラス10e3を走査することによって、用紙から画像を読み取り、画像データを生成する。   Alternatively, when a sheet is set on the platen glass 10e3, the scanner 10e1 scans the platen glass 10e3 to read an image from the sheet and generate image data.

スキャナ10e1として、いわゆる1ラインスキャナが用いられる。1ラインスキャナは、RGB(Red Green Blue)各色の光源およびラインセンサを有し、1本のラインをラインセンサによって読み取る際にRGBのうちの1色を点灯し、1本のラインごとに点灯する色を順番に切り換える。以下、主走査方向の座標軸がX軸であり、副走査方向の座標軸がY軸であるものとして、説明する。   A so-called one-line scanner is used as the scanner 10e1. The one-line scanner has a light source and a line sensor for each color of RGB (Red Green Blue), and when one line is read by the line sensor, one color of RGB is turned on and turned on for each line. Switch colors in order. In the following description, it is assumed that the coordinate axis in the main scanning direction is the X axis and the coordinate axis in the sub scanning direction is the Y axis.

NIC10gは、TCP/IP(Transmission Control Protocol/Internet Protocol)などのプロトコルによって通信を行う。モデム10hは、ファックス端末とG3などのプロトコルによって通信を行う。   The NIC 10g performs communication using a protocol such as TCP / IP (Transmission Control Protocol / Internet Protocol). The modem 10h communicates with a fax terminal using a protocol such as G3.

タッチパネルディスプレイ10iは、ユーザに対してメッセージまたは指示を与えるための画面、ユーザが処理の指令および条件を入力するための画面、およびCPU10aの処理の結果を示す画面などを表示する。また、ユーザが指で触れた位置を検知し、検知結果を示す信号をCPU10aに送信する。   The touch panel display 10i displays a screen for giving a message or an instruction to the user, a screen for the user to input processing instructions and conditions, a screen showing the processing result of the CPU 10a, and the like. Moreover, the position which the user touched with the finger | toe is detected, and the signal which shows a detection result is transmitted to CPU10a.

操作キーパネル10jは、いわゆるハードウェアキーボードであって、テンキー、スタートキー、ストップキー、およびファンクションキーなどによって構成される。   The operation key panel 10j is a so-called hardware keyboard, and includes a numeric keypad, a start key, a stop key, a function key, and the like.

入力画像処理部10kは、スキャンユニット10eによって読み取られた画像の画像データおよびNIC10gまたはモデム10hによって受信された画像データなどを、特定のフォーマットに変換する変換処理を行う。   The input image processing unit 10k performs a conversion process for converting the image data of the image read by the scan unit 10e and the image data received by the NIC 10g or the modem 10h into a specific format.

出力画像処理部10mは、画像の印刷を行う際、その画像の画像データを特定のフォーマットに変換する変換処理を行う。   When printing an image, the output image processing unit 10m performs a conversion process for converting the image data of the image into a specific format.

プリントユニット10fは、スキャンユニット10e、NIC10g、またはモデム10hによって得られ、入力画像処理部10kによって適宜、変換処理が行われ、出力画像処理部10mによって適宜、変換処理が行われた画像データを用いて、画像を用紙に印刷する。   The print unit 10f is obtained by the scan unit 10e, the NIC 10g, or the modem 10h, and is appropriately converted by the input image processing unit 10k, and the image data that has been appropriately converted by the output image processing unit 10m is used. Print the image on paper.

上述の通り、読取画像補正プログラム10Pは、1ラインスキャナにおいて生じやすい色滲みを従来よりも軽減するプログラムである。以下、色滲みを従来よりも軽減する仕組みについて、図4〜図19を参照しながら説明する。   As described above, the read image correction program 10P is a program that reduces the color blur that tends to occur in the one-line scanner as compared with the conventional one. Hereinafter, a mechanism for reducing the color blur as compared with the prior art will be described with reference to FIGS.

図4は、画像形成装置1の機能的構成の例を示す図である。図5は、画像データ60の例を示す図である。図6は、画像50の例を示す図である。図7は、読取色の画素と非読取色の画素との位置関係の例を示す図である。図8は、副走査方向の座標が同じである連続する画素の階調の変化の例を示す図である。図9は、基準階調の算出の方法の例を説明するための図である。図10は、各画素の非読取色の基準階調の例を示す図である。図11は、読取色が同じである連続する画素の位置関係の例を示す図である。図12は、二次微分フィルタFaの適用の方法の例を示す図である。図13は、各画素の変化特徴量Dhの例を示す図である。図14は、各画素の非読取色の補正階調の例を示す図である。図15は、変化特徴量Dhの算出および基準階調の補正の具体例を説明するための図である。図16は、第一の階調決定処理の流れの例を説明するフローチャートである。図17は、第二の階調決定処理の流れの例を説明するフローチャートである。図18は、階調決定部109による黒文字読取モードにおける処理の結果の例を示す図である。図19は、階調決定部109によるカラー画像読取モードにおける処理の結果の例を示す図である。   FIG. 4 is a diagram illustrating an example of a functional configuration of the image forming apparatus 1. FIG. 5 is a diagram illustrating an example of the image data 60. FIG. 6 is a diagram illustrating an example of the image 50. FIG. 7 is a diagram illustrating an example of a positional relationship between a read color pixel and a non-read color pixel. FIG. 8 is a diagram illustrating an example of a change in gradation of continuous pixels having the same coordinate in the sub-scanning direction. FIG. 9 is a diagram for explaining an example of a method of calculating the reference gradation. FIG. 10 is a diagram illustrating an example of the reference gradation of the non-read color of each pixel. FIG. 11 is a diagram illustrating an example of a positional relationship between consecutive pixels having the same reading color. FIG. 12 is a diagram illustrating an example of a method of applying the secondary differential filter Fa. FIG. 13 is a diagram illustrating an example of the change feature amount Dh of each pixel. FIG. 14 is a diagram illustrating an example of the correction gradation of the non-read color of each pixel. FIG. 15 is a diagram for explaining a specific example of the calculation of the change feature amount Dh and the correction of the reference gradation. FIG. 16 is a flowchart for explaining an example of the flow of the first gradation determination process. FIG. 17 is a flowchart for explaining an example of the flow of the second gradation determination process. FIG. 18 is a diagram illustrating an example of a result of processing in the black character reading mode by the gradation determination unit 109. FIG. 19 is a diagram illustrating an example of a result of processing in the color image reading mode by the gradation determination unit 109.

読取画像補正プログラム10PをCPU10aによって実行することによって、図4に示す読取色階調記憶部101、読取色判別部102、非読取色階調抽出部103、非読取色基準階調算出部104、非読取色基準階調記憶部105、読取色階調抽出部106、変化特徴量算出部107、非読取色基準階調補正部108、階調決定部109、および画像データ生成部121などの機能が実現される。   By executing the read image correction program 10P by the CPU 10a, a read color gradation storage unit 101, a read color determination unit 102, a non-read color gradation extraction unit 103, a non-read color reference gradation calculation unit 104, shown in FIG. Functions such as the non-read color reference tone storage unit 105, the read color tone extraction unit 106, the change feature amount calculation unit 107, the non-read color reference tone correction unit 108, the tone determination unit 109, and the image data generation unit 121 Is realized.

読取色階調記憶部101には、スキャナ10e1が用紙から画像を読み取って生成した、図5のような画像データ60が記憶される。以下、ある1枚の用紙から画像が読み取られ、画像データ60として、カラーのビットマップデータが読取色階調記憶部101に記憶された場合を例に説明する。また、画像データ60によって表わされる画像を「画像50」と記載する。画像50は、Px×Py個の画素によって構成される。   The read color gradation storage unit 101 stores image data 60 as shown in FIG. 5 generated by the scanner 10e1 reading an image from a sheet. Hereinafter, an example in which an image is read from a certain sheet of paper and color bitmap data is stored in the read color gradation storage unit 101 as the image data 60 will be described as an example. The image represented by the image data 60 is referred to as “image 50”. The image 50 is composed of Px × Py pixels.

上述の通り、スキャナ10e1は、1ラインスキャナである。したがって、画像50は、図6に示すように、Px×1個の赤の画素からなる複数のライン画像51r、Px×1個の緑の画素からなる複数のライン画像51g、およびPx×1個の青の画素からなる複数のライン画像51bが副走査方向に赤、緑、青の順に1つずつ並んで構成される。以下、ライン画像51r、51g、および51bを「ライン画像51」と総称することがある。   As described above, the scanner 10e1 is a one-line scanner. Therefore, as shown in FIG. 6, the image 50 includes a plurality of line images 51 r made up of Px × 1 red pixels, a plurality of line images 51 g made up of Px × 1 green pixels, and Px × 1 pieces. A plurality of line images 51b composed of blue pixels are arranged one by one in the sub-scanning direction in the order of red, green, and blue. Hereinafter, the line images 51r, 51g, and 51b may be collectively referred to as “line images 51”.

読取色判別部102ないし階調決定部109は、読取色階調記憶部101に記憶された画像データ60を用いて、画像50に対して次の処理を実行する。   The read color determination unit 102 or the gradation determination unit 109 performs the following processing on the image 50 using the image data 60 stored in the read color gradation storage unit 101.

読取色判別部102は、1つのライン画像51に注目し、そのライン画像51が赤、緑、および青のいずれの色のものであるのか、つまり、スキャナ10e1のいずれの色の光源によって読み取られたのかを判別する。   The read color discriminating unit 102 pays attention to one line image 51, and the line image 51 is read in any color of red, green, or blue, that is, read by any color light source of the scanner 10e1. Determine whether it was.

以下、注目したライン画像51を「注目ライン画像52」と記載する。また、注目ライン画像52の読取りの際に用いられた光源の色を「読取色」と記載し、読取色でない色を「非読取色」と記載する。   Hereinafter, the noticed line image 51 is referred to as a “note line image 52”. Further, the color of the light source used in reading the target line image 52 is described as “read color”, and the color that is not the read color is described as “non-read color”.

非読取色階調抽出部103は、2つの非読取色それぞれについて、注目ライン画像52の前後それぞれの階調を次のように抽出する。   The non-read color gradation extraction unit 103 extracts the respective gray levels before and after the target line image 52 for each of the two non-read colors.

非読取色階調抽出部103は、注目ライン画像52の1つ目の画素に注目する。以下、注目した画素を「注目画素52c」と記載する。注目画素52cの、副走査方向の直前および直後それぞれの1つ目の非読取色の階調(画素値)と2つ目の非読取色の階調とを抽出する。   The non-read color gradation extraction unit 103 pays attention to the first pixel of the attention line image 52. Hereinafter, the pixel of interest is referred to as a “pixel of interest 52c”. The first non-read color gradation (pixel value) and the second non-read color gradation of the target pixel 52c are extracted immediately before and immediately after the sub-scanning direction, respectively.

例えば、注目ライン画像52が、あるライン画像51rであり、注目画素52cの座標が(Xc,Yc)である場合は、図7(A)に示すように、緑(1つ目の非読取色)の階調として(Xc,Yc−2)の画素の階調および(Xc,Yc+1)の画素の階調を抽出する。さらに、図7(B)に示すように、青(2つ目の非読取色)の階調として(Xc,Yc−1)の画素の階調および(Xc,Yc+2)の画素の階調を抽出する。   For example, if the target line image 52 is a certain line image 51r and the coordinates of the target pixel 52c are (Xc, Yc), as shown in FIG. 7A, green (first unread color) ), The gradation of the pixel (Xc, Yc-2) and the gradation of the pixel (Xc, Yc + 1) are extracted. Further, as shown in FIG. 7B, the gradation of the pixel of (Xc, Yc-1) and the gradation of the pixel of (Xc, Yc + 2) are set as the gradation of blue (second non-read color). Extract.

非読取色基準階調算出部104は、注目画素52cにおける2つの非読取色それぞれの基準階調を次の(1)式および(2)式によって算出する。
D1=Dp×(Yq/3)+Dq×(Yp/3) …… (1)
D2=Ds×(Yt/3)+Dt×(Ys/3) …… (2)
ただし、D1は、1つ目の非読取色の基準階調である。DpおよびDqは、それぞれ、1つ目の非読取色の、非読取色階調抽出部103によって抽出された1つ目の画素の階調および2つ目の画素の階調である。YpおよびYqは、それぞれ、注目画素52cと1つ目の画素との距離および注目画素52cと2つ目の画素との距離である。
The non-reading color reference gradation calculation unit 104 calculates the reference gradations of each of the two non-reading colors in the target pixel 52c using the following expressions (1) and (2).
D1 = Dp × (Yq / 3) + Dq × (Yp / 3) (1)
D2 = Ds × (Yt / 3) + Dt × (Ys / 3) (2)
However, D1 is the reference gradation of the first non-read color. Dp and Dq are the gradation of the first pixel and the gradation of the second pixel extracted by the non-reading color gradation extraction unit 103 of the first non-reading color, respectively. Yp and Yq are the distance between the target pixel 52c and the first pixel and the distance between the target pixel 52c and the second pixel, respectively.

同様に、D2は、2つ目の非読取色の基準階調である。DsおよびDtは、それぞれ、2つ目の非読取色の、非読取色階調抽出部103によって抽出された1つ目の画素の階調および2つ目の画素の階調である。YsおよびYtは、それぞれ、注目画素52cと1つ目の画素との距離および注目画素52cと2つ目の画素との距離である。   Similarly, D2 is the reference gradation of the second non-read color. Ds and Dt are, respectively, the gradation of the first pixel and the gradation of the second pixel extracted by the non-reading color gradation extraction unit 103 of the second non-reading color. Ys and Yt are the distance between the target pixel 52c and the first pixel and the distance between the target pixel 52c and the second pixel, respectively.

例えば、注目画素52cの色(読取色)が赤であり、注目画素52cの階調および非読取色階調抽出部103によって抽出された階調が図8に示す通りである場合は、緑および青それぞれの基準階調D1、D2が、図9(A)および図9(B)の通り表わされる。そして、(1)式および(2)式によって、これらの基準階調D1、D2が算出される。   For example, when the color (read color) of the pixel of interest 52c is red and the gradation of the pixel of interest 52c and the gradation extracted by the non-read color gradation extraction unit 103 are as shown in FIG. The reference gradations D1 and D2 for blue are represented as shown in FIGS. 9A and 9B. Then, these reference gradations D1 and D2 are calculated by the equations (1) and (2).

非読取色階調抽出部103は、注目ライン画像52の残りの画素(2つ目以降の画素)についても順次注目し、その画素(注目画素52c)の、副走査方向の直前および直後それぞれの1つ目の非読取色の階調(画素値)と2つ目の非読取色の階調とを抽出する。そして、非読取色基準階調算出部104は、注目画素52cにおける2つの非読取色それぞれの基準階調を(1)式および(2)式によって算出する。   The non-read color gradation extraction unit 103 sequentially pays attention to the remaining pixels (second and subsequent pixels) of the target line image 52, and each of the pixels (target pixel 52c) immediately before and immediately after the sub-scanning direction. The gradation of the first non-reading color (pixel value) and the gradation of the second non-reading color are extracted. Then, the non-reading color reference gradation calculation unit 104 calculates the reference gradations of each of the two non-reading colors in the target pixel 52c according to the expressions (1) and (2).

また、読取色判別部102は、残りのライン画像51に順次注目し、そのライン画像51(注目ライン画像52)の読取色を判別する。そして、非読取色階調抽出部103および非読取色基準階調算出部104は、上述の処理を実行する。   Further, the read color determining unit 102 sequentially pays attention to the remaining line images 51 and determines the read color of the line image 51 (target line image 52). Then, the non-read color gradation extraction unit 103 and the non-read color reference gradation calculation unit 104 execute the above-described processing.

非読取色基準階調記憶部105は、非読取色基準階調算出部104によって算出された、各ライン画像51の各画素の非読取色ごとの基準階調を、図10に示すように、その画素の座標と対応付けて記憶する。   The non-reading color reference tone storage unit 105 calculates the reference tone for each non-reading color of each pixel of each line image 51 calculated by the non-reading color reference tone calculation unit 104 as shown in FIG. It is stored in association with the coordinates of the pixel.

読取色階調抽出部106は、非読取色階調抽出部103および非読取色基準階調算出部104による処理と前後してまたは並行して、読取色判別部102によって注目ライン画像52の読取色が判別されるごとに、3つの画素の階調を次のように抽出する。   The read color gradation extraction unit 106 reads the target line image 52 by the read color determination unit 102 before, after, or in parallel with the processing by the non-read color gradation extraction unit 103 and the non-read color reference gradation calculation unit 104. Each time a color is determined, the gradation of three pixels is extracted as follows.

読取色階調抽出部106は、注目ライン画像52の1つ目の画素に注目する。以下、注目した画素を「注目画素52e」と記載する。注目画素52eの階調(画素値)を階調D5として抽出する。さらに、読取色階調記憶部101(図4参照)から、注目画素52eの副走査方向のこの読取色の直前および直後それぞれの階調を階調D4およびD6として抽出する。つまり、Y軸方向に3つ戻った画素(以下、「前画素52u」と記載する。)の階調および3つ進んだ画素(以下、「後画素52v」と記載する。)の階調を抽出する。   The read color gradation extraction unit 106 pays attention to the first pixel of the attention line image 52. Hereinafter, the focused pixel is referred to as a “focused pixel 52e”. The gradation (pixel value) of the target pixel 52e is extracted as the gradation D5. Further, the gradations immediately before and immediately after this read color in the sub-scanning direction of the target pixel 52e are extracted as gradations D4 and D6 from the read color gradation storage unit 101 (see FIG. 4). That is, the gradation of the pixel that has returned three in the Y-axis direction (hereinafter referred to as “front pixel 52u”) and the gradation of the pixel that has advanced three (hereinafter referred to as “rear pixel 52v”). Extract.

例えば、注目ライン画像52がライン画像51rであり、注目画素52eの座標が(Xe,Ye)である場合は、読取色階調抽出部106は、図11に示すように、(Xe,Ye−3)の画素の階調を前画素52uの階調つまり階調D4として抽出する。(Xe,Ye)の画素の階調を注目画素52eの階調つまり階調D5として抽出する。(Xe,Ye+3)の画素の階調を後画素52vつまり階調D6として抽出する。   For example, when the target line image 52 is the line image 51r and the coordinates of the target pixel 52e are (Xe, Ye), the read color gradation extracting unit 106, as shown in FIG. 11, (Xe, Ye− The gradation of the pixel 3) is extracted as the gradation of the previous pixel 52u, that is, the gradation D4. The gradation of the pixel (Xe, Ye) is extracted as the gradation of the pixel of interest 52e, that is, the gradation D5. The gradation of the pixel (Xe, Ye + 3) is extracted as the rear pixel 52v, that is, the gradation D6.

階調D4、D5、およびD6は、注目画素52eの前後の区間つまり前画素52uから後画素52vまでの区間における階調の変化を表わしていると、言える。   It can be said that the gradations D4, D5, and D6 represent a change in gradation in a section before and after the target pixel 52e, that is, in a section from the previous pixel 52u to the rear pixel 52v.

読取色階調抽出部106は、2つ目以降の画素についても同様に注目し、階調D4、D5、およびD6を算出する。さらに、他のライン画像51が注目されるごとに、当該他のライン画像51(注目ライン画像52)の各画素を注目し、階調D4、D5、およびD6を抽出する。   The reading color gradation extraction unit 106 similarly pays attention to the second and subsequent pixels, and calculates gradations D4, D5, and D6. Further, every time the other line image 51 is noticed, each pixel of the other line image 51 (the noticed line image 52) is noticed, and gradations D4, D5, and D6 are extracted.

このように、読取色階調抽出部106によって、複数組の階調D4、D5、およびD6が抽出される。   In this way, the read color gradation extraction unit 106 extracts a plurality of sets of gradations D4, D5, and D6.

変化特徴量算出部107は、注目画素52eの前後の区間の階調の変化の特徴を表わす変化特徴量Dhを、例えば次のように算出する。   The change feature amount calculation unit 107 calculates the change feature amount Dh representing the change feature of the gradation in the section before and after the target pixel 52e, for example, as follows.

変化特徴量算出部107は、図12に示すように、二次微分フィルタ(ラプラシアンフィルタ)Faを階調D4、D5、およびD6に掛ける。これにより、階調D4’、D5’、およびD6’が得られる。そして、階調D4’、D5’、およびD6’の合計を変化特徴量Dhとして算出する。本例では、
Dh=D4’+D5’+D6’=−D4+2・D5−D6
を算出する。
As shown in FIG. 12, the change feature amount calculation unit 107 applies a second-order differential filter (Laplacian filter) Fa to the gradations D4, D5, and D6. Thereby, gradations D4 ′, D5 ′, and D6 ′ are obtained. Then, the sum of the gradations D4 ′, D5 ′, and D6 ′ is calculated as the change feature amount Dh. In this example,
Dh = D4 ′ + D5 ′ + D6 ′ = − D4 + 2 · D5-D6
Is calculated.

上述の通り、階調D4、D5、およびD6の組が読取色階調抽出部106によって複数、算出される。変化特徴量算出部107は、各組について変化特徴量Dhを算出する。これにより、図13のような、各組(画素)の変化特徴量Dhが算出される。   As described above, a plurality of sets of gradations D4, D5, and D6 are calculated by the read color gradation extraction unit 106. The change feature amount calculation unit 107 calculates a change feature amount Dh for each group. Thereby, the change feature amount Dh of each group (pixel) as shown in FIG. 13 is calculated.

非読取色基準階調補正部108は、非読取色基準階調記憶部105に記憶されている、各画素の基準階調すなわち2つの非読取色それぞれの階調(図10参照)を、変化特徴量算出部107によって算出された、その画素の変化特徴量Dhを加算することによって補正する。   The non-reading color reference gradation correcting unit 108 changes the reference gradation of each pixel, that is, the gradation of each of the two non-reading colors (see FIG. 10) stored in the non-reading color reference gradation storage unit 105. Correction is performed by adding the change feature amount Dh of the pixel calculated by the feature amount calculation unit 107.

つまり、画素の読取色が赤である場合は、
Dgxy’=Dgxy+Dhxy
Dbxy’=Dbxy+Dhxy
を算出する。Dgxy’は、X座標が「x」でありY座標が「y」である画素の補正後の基準階調Dg(緑の基準階調)である。同様に、Dbxy’は、その画素の補正後の基準階調Db(青の基準階調)である。Dhxyは、その画素の変化特徴量Dhである。
In other words, if the read color of the pixel is red,
Dgxy ′ = Dgxy + Dhxy
Dbxy ′ = Dbxy + Dhxy
Is calculated. Dgxy ′ is a corrected reference gradation Dg (green reference gradation) of a pixel whose X coordinate is “x” and Y coordinate is “y”. Similarly, Dbxy ′ is the corrected reference gradation Db (blue reference gradation) of the pixel. Dhxy is the change feature amount Dh of the pixel.

または、画素の読取色が緑である場合は、
Drxy’=Drxy+Dhxy
Dbxy’=Dbxy+Dhxy
を算出する。Drxy’は、X座標が「x」でありY座標が「y」である画素の、補正後の基準階調Dr(赤の基準階調)である。
Or, if the pixel reading color is green,
Drxy '= Drxy + Dhxy
Dbxy ′ = Dbxy + Dhxy
Is calculated. Drxy ′ is a corrected reference gradation Dr (red reference gradation) of a pixel whose X coordinate is “x” and Y coordinate is “y”.

または、画素の読取色が青である場合は、
Drxy’=Drxy+Dhxy
Dgxy’=Dgxy+Dhxy
を算出する。
Or, if the pixel reading color is blue,
Drxy '= Drxy + Dhxy
Dgxy ′ = Dgxy + Dhxy
Is calculated.

これにより、図14のような、各画素の非読取色の補正後の基準階調が算出される。以下、補正後の基準階調を「補正階調」と記載する。   Thereby, the reference gradation after the correction of the non-read color of each pixel as shown in FIG. 14 is calculated. Hereinafter, the corrected reference gradation is referred to as “correction gradation”.

ここで、図15を参照しながら、変化特徴量算出部107および非読取色基準階調補正部108の処理の具体例を説明する。   Here, with reference to FIG. 15, a specific example of processing of the change feature amount calculation unit 107 and the non-read color reference tone correction unit 108 will be described.

本具体例において、注目画素52eの読取色は、赤であり、階調D4、D5、およびD6は、それぞれ図15(A)に示すように「130」、「95」、「120」である。注目ライン画像52の2つの非読取色つまり緑および青それぞれの基準階調は、図15(B)に示すように「210」および「170」である。   In this specific example, the read color of the target pixel 52e is red, and the gradations D4, D5, and D6 are “130”, “95”, and “120”, respectively, as shown in FIG. . The reference gradations of the two non-read colors of the target line image 52, that is, green and blue, are “210” and “170” as shown in FIG.

変化特徴量算出部107は、|130 95 120|に二次微分フィルタFaを掛けることによって、図15(C)のように変化特徴量Dhとして「−60」を算出する。   The change feature quantity calculation unit 107 calculates “−60” as the change feature quantity Dh as shown in FIG. 15C by multiplying | 130 95 120 | by the secondary differential filter Fa.

非読取色基準階調補正部108は、図15(D)に示すように、緑および青それぞれの基準階調「210」および「170」に変化特徴量Dh「−60」を加算する。これにより、緑および青それぞれの補正階調として「150」および「110」が算出される。   As shown in FIG. 15D, the non-reading color reference gradation correcting unit 108 adds the change feature amount Dh “−60” to the reference gradations “210” and “170” of green and blue, respectively. Thereby, “150” and “110” are calculated as the correction gradations of green and blue, respectively.

ところで、一般に、1ラインスキャナによると、連続する3本のラインから赤、緑、青それぞれのライン画像が1つずつ得られる。そして、3色のこれらのライン画像を一組の画像として取り扱う。   By the way, in general, according to a one-line scanner, red, green, and blue line images are obtained one by one from three consecutive lines. These three color line images are handled as a set of images.

しかし、読取色判別部102ないし非読取色基準階調補正部108の上述の処理によると、1本のラインから、読取色の階調と、2つの非読取色それぞれの階調(補正階調)とが得られる。つまり、3本のラインすべてから3色すべての階調が得られる。よって、図5および図14に示したように、従来の1ラインスキャナの3倍の解像度の画像データが得られる。   However, according to the above-described processing of the read color determination unit 102 or the non-read color reference tone correction unit 108, the read color tone and the two non-read color tones (correction tone) from one line. ) Is obtained. That is, gradations of all three colors are obtained from all three lines. Therefore, as shown in FIGS. 5 and 14, image data having a resolution three times that of the conventional one-line scanner can be obtained.

そこで、階調決定部109は、従来の1ラインスキャナの解像度に合わせるための処理を、図16に示す手順で実行する。以下、赤、緑、青の順に連続する3本のライン画像51(51r、51g、51b)が一組として取り扱われる場合を例に、階調決定部109が、各組の赤、緑、青それぞれの階調を決定する方法について説明する。   Therefore, the gradation determination unit 109 executes processing for matching with the resolution of the conventional one-line scanner in the procedure shown in FIG. Hereinafter, the case where the three line images 51 (51r, 51g, 51b) that are continuous in the order of red, green, and blue are treated as one set will be described as an example, and the gradation determination unit 109 sets each group of red, green, and blue. A method for determining each gradation will be described.

階調決定部109は、読取のモードが黒文字読取モードである場合は、図16に示す手順で階調を決定する。「黒文字読取モード」は、黒色の文字を明瞭に再現するためのモードである。   When the reading mode is the black character reading mode, the gradation determining unit 109 determines the gradation according to the procedure shown in FIG. The “black character reading mode” is a mode for clearly reproducing black characters.

図16において、階調決定部109は、2つの非読取色の補正階調が得られた1組目のライン画像51r、51g、および51bに注目する(#701、#702)。   In FIG. 16, the gradation determination unit 109 pays attention to the first set of line images 51r, 51g, and 51b from which corrected gradations of two non-reading colors are obtained (# 701, # 702).

さらに、階調決定部109は、注目したライン画像51r、51g、および51bそれぞれの、主走査方向(つまり、X座標)の1番目の座標に注目する(#703、#704)。そして、注目したライン画像51r、51g、および51bそれぞれの中の、注目したX座標の画素の彩度を算出する(#705)。   Further, the gradation determining unit 109 pays attention to the first coordinate in the main scanning direction (that is, the X coordinate) of each of the noticed line images 51r, 51g, and 51b (# 703, # 704). Then, the saturation of the pixel of the noted X coordinate in each of the noticed line images 51r, 51g, and 51b is calculated (# 705).

なお、彩度は、赤、緑、および青の各階調のうちの最大の階調と最小の階調との差によって表わされる。また、各画素の階調は、読取色階調記憶部101(図5参照)または非読取色基準階調記憶部105(図10参照)に記憶されている。   Note that the saturation is represented by a difference between the maximum gradation and the minimum gradation among the red, green, and blue gradations. The gradation of each pixel is stored in the read color gradation storage unit 101 (see FIG. 5) or the non-read color reference gradation storage unit 105 (see FIG. 10).

そして、これらの3つの画素のうちの彩度が最も低い画素を選出し(#706)、注目した組の注目したX座標の赤、緑、および青の階調を、選出した画素の赤、緑、および青それぞれの階調に決定する(#707)。   Then, the pixel having the lowest saturation among these three pixels is selected (# 706), and the red, green, and blue gradations of the noted X coordinate of the noted group are selected as red, The gradation is determined for each of green and blue (# 707).

例えば、注目したライン画像51r、51g、および51bそれぞれの副走査方向の座標(つまり、Y座標)が「4」、「5」、「6」であり、注目した主走査方向の座標が「1」である場合は、図5に示す通り、ライン画像51rの画素つまり座標(1,4)の画素の赤、緑、および青の階調は、それぞれ、「Dr14」、「Dg14’」、「Db14’」である。また、ライン画像51gの画素つまり座標(1,5)の画素の赤、緑、および青の階調は、図10に示す通り、それぞれ、「Dr15’」、「Dg15」、「Db15’」である。そして、ライン画像51bの画素つまり座標(1,6)の画素の赤、緑、および青の階調は、図10に示す通り、それぞれ、「Dr16’」、「Dg16’」、「Db16」である。   For example, the sub-scanning direction coordinates (that is, the Y coordinate) of the noticed line images 51r, 51g, and 51b are “4”, “5”, and “6”, respectively, and the noticed main scanning direction coordinates are “1”. ”, As shown in FIG. 5, the red, green, and blue gradations of the pixel of the line image 51r, that is, the pixel of the coordinates (1, 4) are“ Dr14 ”,“ Dg14 ′ ”,“ Db14 ′ ”. Further, the red, green, and blue gradations of the pixel of the line image 51g, that is, the pixel of coordinates (1, 5) are “Dr15 ′”, “Dg15”, and “Db15 ′”, respectively, as shown in FIG. is there. The red, green, and blue gradations of the pixel of the line image 51b, that is, the pixel at the coordinates (1, 6) are “Dr16 ′”, “Dg16 ′”, and “Db16”, respectively, as shown in FIG. is there.

よって、この場合に、階調決定部109は、階調Dr14、Dg14’、Db14’のうちの最大値と最小値との差を算出することによって彩度C1を算出し、階調Dr15’、Dg15、Db15’のうちの最大値と最小値との差を算出することによって彩度C2を算出し、階調Dr16’、Dg16’、Db16のうちの最大値と最小値との差を算出することによって彩度C3を算出する。   Therefore, in this case, the gradation determination unit 109 calculates the saturation C1 by calculating the difference between the maximum value and the minimum value of the gradations Dr14, Dg14 ′, and Db14 ′, and the gradation Dr15 ′, The saturation C2 is calculated by calculating the difference between the maximum value and the minimum value of Dg15 and Db15 ′, and the difference between the maximum value and the minimum value of the gradations Dr16 ′, Dg16 ′, and Db16 is calculated. Thus, the saturation C3 is calculated.

そして、階調決定部109は、彩度C1、C2、およびC3のうちの最低の彩度の画素を選出し、注目した組のX座標が「1」である座標の赤、緑、および青の階調を、選出した画素の赤、緑、および青それぞれの階調に決定する(#707)。例えば、彩度C1が最も低い場合は、「Dr14」、「Dg14’」、「Db14’」に決定する。   Then, the gradation determination unit 109 selects the pixel with the lowest saturation among the saturations C1, C2, and C3, and the red, green, and blue coordinates having the X coordinate of “1” for the set of interest. Are determined as the respective red, green, and blue gradations of the selected pixel (# 707). For example, when the saturation C1 is the lowest, “Dr14”, “Dg14 ′”, and “Db14 ′” are determined.

階調決定部109は、主走査方向の2番目以降の座標(X=2,3,…,Px)についても順次、注目し(#708でNo、#709)、ステップ#704〜#707の処理を実行する。   The gradation determination unit 109 sequentially pays attention to the second and subsequent coordinates (X = 2, 3,..., Px) in the main scanning direction (No in # 708, # 709), and steps # 704 to # 707. Execute the process.

さらに、階調決定部109は、2つの非読取色の補正階調が得られた2組目以降のライン画像51r、51g、および51bについても順次、注目し(#710でNo、#711)、ステップ#703〜#709の処理を実行する。   Further, the gradation determination unit 109 sequentially pays attention to the second and subsequent sets of line images 51r, 51g, and 51b from which the correction gradations of the two non-read colors are obtained (No in # 710, # 711). , Steps # 703 to # 709 are executed.

なお、非読取色基準階調算出部104による上述の算出方法によると、副走査方向の両端それぞれの組のライン画像51r、51g、51bについては、非読取色の基準階調が算出されない。よって、補正階調も算出されない。そこで、階調決定部109は、これらの組については、ステップ#703〜#709の処理を行わず、図5に示される、読取色の階調に決定すればよい(#712)。   Note that according to the above-described calculation method by the non-reading color reference tone calculation unit 104, the reference tone of the non-reading color is not calculated for the line images 51r, 51g, and 51b at both ends in the sub-scanning direction. Therefore, the correction gradation is not calculated. Therefore, the gradation determination unit 109 may determine the gradation of the read color shown in FIG. 5 without performing the processes of steps # 703 to # 709 for these sets (# 712).

一方、読取のモードがカラー画像読取モードである場合は、階調決定部109は、図17に示す手順で階調を決定する。なお、「カラー画像読取モード」は、カラーの画像を、黒くなるのを抑制しつつ再現するためのモードである。   On the other hand, when the reading mode is the color image reading mode, the gradation determination unit 109 determines the gradation according to the procedure shown in FIG. The “color image reading mode” is a mode for reproducing a color image while suppressing blackening.

図17において、階調決定部109は、2つの非読取色の補正階調が得られた1組目のライン画像51r、51g、および51bに注目する(#721、#722)。   In FIG. 17, the gradation determination unit 109 pays attention to the first set of line images 51r, 51g, and 51b from which corrected gradations of two non-reading colors are obtained (# 721, # 722).

さらに、階調決定部109は、注目したライン画像51r、51g、および51bそれぞれの、主走査方向の1番目の座標に注目する(#723、#724)。そして、赤、緑、および青それぞれについて、注目したライン画像51r、51g、および51bの階調の平均値を算出する(#725)。   Further, the gradation determination unit 109 focuses on the first coordinate in the main scanning direction of each of the focused line images 51r, 51g, and 51b (# 723, # 724). Then, for each of red, green, and blue, the average value of the gradations of the noticed line images 51r, 51g, and 51b is calculated (# 725).

上述の、注目したライン画像51r、51g、および51bそれぞれの副走査方向の座標が「4」、「5」、「6」であり、注目した主走査方向の座標が「1」である例の場合は、階調決定部109は、赤の階調の平均値として、(Dr14+Dr15’+Dr16’)/3、を算出する。同様に、緑の階調の平均値として、(Dg14’+Dg15+Dg16’)/3、を算出し、青の階調の平均値として、(Db14’+Db15’+Db16)/3、を算出する。   In the example described above, the coordinates of the noticed line images 51r, 51g, and 51b in the sub scanning direction are “4”, “5”, and “6”, respectively, and the noticed coordinates in the main scanning direction are “1”. In this case, the gradation determination unit 109 calculates (Dr14 + Dr15 ′ + Dr16 ′) / 3 as the average value of the red gradation. Similarly, (Dg14 ′ + Dg15 + Dg16 ′) / 3 is calculated as the average value of the green gradation, and (Db14 ′ + Db15 ′ + Db16) / 3 is calculated as the average value of the blue gradation.

そして、階調決定部109は、注目した組のX座標が「1」である座標の赤、緑、および青の階調を、ステップ#725で算出した赤、緑、および青それぞれの平均値に決定する(#726)。   Then, the gradation determination unit 109 calculates the average values of the red, green, and blue gradations calculated in step # 725 for the red, green, and blue gradations that have coordinates of which the X coordinate of the set of interest is “1”. (# 726).

階調決定部109は、主走査方向の2番目以降の座標(X=2,3,…,Px)についても順次、注目し(#727でNo、#728)、ステップ#724〜#726の処理を実行する。   The gradation determining unit 109 sequentially pays attention to the second and subsequent coordinates (X = 2, 3,..., Px) in the main scanning direction (No in # 727, # 728), and steps # 724 to # 726 are performed. Execute the process.

さらに、階調決定部109は、2つの非読取色の補正階調が得られた2組目以降のライン画像51r、51g、および51bについても順次、注目し(#729でNo、#730)、ステップ#723〜#728の処理を実行する。   Further, the gradation determination unit 109 sequentially pays attention to the second and subsequent sets of line images 51r, 51g, and 51b from which correction gradations of two non-read colors are obtained (No in # 729, # 730). , Steps # 723 to # 728 are executed.

そして、階調決定部109は、副走査方向の両端それぞれの組のライン画像51r、51g、51bについて、ステップ#723〜#728の処理を行わず、図5に示される、読取色の階調に決定する(#731)。   Then, the gradation determination unit 109 does not perform the processes of Steps # 723 to # 728 for the line images 51r, 51g, and 51b at both ends in the sub-scanning direction, and the gradation of the read color shown in FIG. (# 731).

以上の通り、黒文字読取モードにおいては彩度が低くなるように赤、緑、および青の階調を決定し、カラー画像読取モードにおいては赤、緑、および青の階調を個別に平均値を算出することによって決定する。よって、黒文字読取モードにおいては、図18に示すように、各色の階調同士が、カラー画像モードの場合よりも近くなりやすい。一方、カラー画像読取モードにおいては、図19に示すように、各色の階調同士が、黒文字モードの場合よりも分散しやすい。   As described above, in the black character reading mode, the red, green, and blue gradations are determined so that the saturation is low, and in the color image reading mode, the red, green, and blue gradations are individually averaged. Determine by calculating. Therefore, in the black character reading mode, as shown in FIG. 18, the gradations of the respective colors tend to be closer than in the color image mode. On the other hand, in the color image reading mode, as shown in FIG. 19, the gradations of the respective colors are more easily dispersed than in the black character mode.

なお、読取のモードは、ユーザが予め設定すればよい。または、階調決定部109が公知の方法によって画像50の特性を判別し、設定してもよい。   The reading mode may be set in advance by the user. Alternatively, the gradation determination unit 109 may determine and set the characteristics of the image 50 by a known method.

画像データ生成部121は、階調決定部109によって決定された、各組の各画素の赤、緑、および青それぞれの階調を示す画像データ61を生成する。そして、画像データ61を保存しまたは他の装置へ出力する。または、画像データ61をCMYK(cyan magenta yellow black)のデータに変換しプリントユニット10fによって画像を用紙に印刷する。   The image data generation unit 121 generates image data 61 indicating the gray levels of red, green, and blue for each pixel of each group determined by the gray level determination unit 109. Then, the image data 61 is stored or output to another device. Alternatively, the image data 61 is converted into CMYK (cyan magenta yellow black) data, and the image is printed on a sheet by the print unit 10f.

図20は、読取画像補正プログラム10Pによる処理の全体的な処理の流れの例を説明するフローチャートである。   FIG. 20 is a flowchart for explaining an example of the overall processing flow of processing by the read image correction program 10P.

次に、画像形成装置1が画像50を補正する際の全体的な処理の流れの例を、図20を参照しながら説明する。   Next, an example of the overall processing flow when the image forming apparatus 1 corrects the image 50 will be described with reference to FIG.

画像形成装置1は、読取画像補正プログラム10Pに基づいて、図20に示す手順で処理を実行する。   The image forming apparatus 1 executes processing according to the procedure shown in FIG. 20 based on the read image correction program 10P.

画像形成装置1は、スキャナ10e1によって原稿の画像を読み取って画像データ60を生成し記憶すると、画像データ60に基づいて次の通り処理を実行する。   When the image forming apparatus 1 reads an image of a document by the scanner 10 e 1 to generate and store the image data 60, the image forming apparatus 1 executes the following processing based on the image data 60.

画像形成装置1は、ライン画像51ごとの読取色を判別する(図20の#11)。ライン画像51ごとに、各画素の2つの非読取色の階調を抽出し(#12)、各画素の2つの非読取色の基準階調を算出する(#13)。   The image forming apparatus 1 determines the reading color for each line image 51 (# 11 in FIG. 20). For each line image 51, the gradations of the two non-reading colors of each pixel are extracted (# 12), and the reference gradations of the two non-reading colors of each pixel are calculated (# 13).

ステップ#12〜#13の処理と前後してまたは並行して、画像形成装置1は、ライン画像51ごとに、読取色の階調を抽出し、各画素の読取色の変化特徴量Dhを算出する(#14、#15)。   Before or after or in parallel with the processing of steps # 12 to # 13, the image forming apparatus 1 extracts the gradation of the read color for each line image 51, and calculates the read color change feature amount Dh of each pixel. (# 14, # 15).

さらに、画像形成装置1は、画素ごとに、その画素の2つの非読取色の基準階調を、その画素の変化特徴量Dhを加算することによって補正する(#16)。これによって、補正階調が算出される。   Further, for each pixel, the image forming apparatus 1 corrects the reference gradation of the two non-read colors of the pixel by adding the change feature amount Dh of the pixel (# 16). Thereby, the correction gradation is calculated.

黒文字読取モードが設定されている場合は(#17でYes)、画像形成装置1は、図16に示した方法で、1ラインスキャナの解像度に合わせるための処理を行う(#18)。一方、カラー画像読取モードが設定されている場合は(#17でNo)、画像形成装置1は、図17に示した方法で、1ラインスキャナの解像度に合わせるための処理を行う(#19)。   If the black character reading mode is set (Yes in # 17), the image forming apparatus 1 performs a process for matching the resolution of the one-line scanner by the method shown in FIG. 16 (# 18). On the other hand, when the color image reading mode is set (No in # 17), the image forming apparatus 1 performs processing for matching the resolution of the one-line scanner by the method shown in FIG. 17 (# 19). .

そして、画像形成装置1は、ステップ#18または#19の処理の結果を用いて画像データ61を生成する(#20)。   Then, the image forming apparatus 1 generates the image data 61 using the result of the process of step # 18 or # 19 (# 20).

本実施形態によると、1ラインスキャナで読み取った画像を従来よりも好適に補正することができる。特に、黒文字モードによると、色滲みを従来よりも低減し黒色の文字を明瞭に再現することができる。また、カラー画像モードによると、カラーの画像の彩度の定価を低減しカラーの文字を明瞭に再現することができる。   According to this embodiment, an image read by a one-line scanner can be corrected more suitably than in the past. In particular, according to the black character mode, color blur can be reduced as compared with the conventional case, and black characters can be clearly reproduced. Further, according to the color image mode, the color price can be reduced and the color characters can be clearly reproduced.

図21は、基準階調補正処理の流れの例を説明するフローチャートである。図22は、注目画素52wおよびその前後の画素の位置関係の例を示す図である。図23は、二次微分フィルタFbの適用の方法の例を示す図である。   FIG. 21 is a flowchart for explaining an example of the flow of the reference gradation correction process. FIG. 22 is a diagram illustrating an example of the positional relationship between the target pixel 52w and the pixels before and after the target pixel 52w. FIG. 23 is a diagram illustrating an example of a method of applying the secondary differential filter Fb.

本実施形態では、非読取色基準階調補正部108は、基準階調を、無条件に変化特徴量Dhを加算することによって補正した。しかし、この方法によると、補正し過ぎてしまうことがある。そこで、例えば、図21に示す手順で基準階調を補正してもよい。以下、補正の変形例を、ある注目画素52wの基準階調が対象である場合を例に説明する。   In this embodiment, the non-reading color reference gradation correcting unit 108 corrects the reference gradation by adding the change feature amount Dh unconditionally. However, this method may overcorrect. Therefore, for example, the reference gradation may be corrected by the procedure shown in FIG. Hereinafter, a modification example of correction will be described by taking a case where the reference gradation of a certain pixel of interest 52w is a target as an example.

非読取色基準階調補正部108は、読取色階調記憶部101から、注目画素52wの階調を抽出する(#131)。さらに、注目画素52wの、副走査方向の周辺の幾つかの画素の階調を抽出する(#132)。例えば、図22に示すように、副走査方向の前後それぞれ3つずつの画素の階調を抽出する。そして、ステップ#131および#132それぞれで抽出した階調(図22の例では、7つの階調)の中から、最大の階調(以下、「MAX値」と記載する。)および最小の階調(以下、「MIN値」と記載する。)を選出する。   The non-read color reference gradation correction unit 108 extracts the gradation of the pixel of interest 52w from the read color gradation storage unit 101 (# 131). Further, gradations of some pixels around the pixel of interest 52w in the sub-scanning direction are extracted (# 132). For example, as shown in FIG. 22, the gradation of three pixels each before and after in the sub-scanning direction is extracted. Then, among the gradations extracted in steps # 131 and # 132 (seven gradations in the example of FIG. 22), the maximum gradation (hereinafter referred to as “MAX value”) and the minimum floor. Key (hereinafter referred to as “MIN value”) is selected.

ステップ#131〜#133の処理と並行してまたは前後して、非読取色基準階調補正部108は、注目画素52wの2つの非読取色それぞれの基準階調に注目画素52wの変化特徴量Dhを加算することによって、第一の加算値および第二の加算値を算出する(#134)。例えば、注目画素52wの読取色が赤である場合は、緑の基準階調と変化特徴量Dhとの合計を第一の加算値として算出し、青の基準階調と変化特徴量Dhとの合計を第二の加算値として算出する。   In parallel with or before or after the processing of Steps # 131 to # 133, the non-reading color reference tone correction unit 108 changes the feature amount of the target pixel 52w to the reference tone of each of the two non-read colors of the target pixel 52w. By adding Dh, a first addition value and a second addition value are calculated (# 134). For example, when the read color of the target pixel 52w is red, the sum of the green reference gradation and the change feature amount Dh is calculated as the first addition value, and the blue reference gradation and the change feature amount Dh are calculated. The sum is calculated as the second added value.

そして、2つの非読取色のそれぞれの基準階調を補正した値つまり補正階調を、MAX値およびMIN値を用いて次のように決定する。   Then, a value obtained by correcting the reference gradation of each of the two non-read colors, that is, a corrected gradation is determined as follows using the MAX value and the MIN value.

第一の加算値がMAX値よりも大きければ(#135でYes)、非読取色基準階調補正部108は、1つ目の非読取色の補正階調をMAX値に決定する(#136)。   If the first addition value is larger than the MAX value (Yes in # 135), the non-read color reference tone correction unit 108 determines the first non-read color correction tone as the MAX value (# 136). ).

または、第一の加算値がMIN値未満である場合は(#135でNo、#137でYes)、非読取色基準階調補正部108は、1つ目の非読取色の補正階調をMIN値に決定する(#138)。   Alternatively, when the first addition value is less than the MIN value (No in # 135, Yes in # 137), the non-read color reference tone correction unit 108 sets the correction tone of the first non-read color. The MIN value is determined (# 138).

または、第一の加算値がMAX値以下でありかつMIN値以上である場合は(#135でNo、#137でNo)、非読取色基準階調補正部108は、1つ目の非読取色の補正階調を第一の加算値に決定する(#139)。   Alternatively, when the first addition value is equal to or smaller than the MAX value and equal to or greater than the MIN value (No in # 135, No in # 137), the non-reading color reference gradation correcting unit 108 performs the first non-reading. The color correction gradation is determined as the first addition value (# 139).

2つ目の非読取色の補正階調についても、1つ目の非読取色の補正階調と同様に、非読取色基準階調補正部108は、第二の加算値をMAX値またはMIN値と比較することによって決定する(#135〜#139)。   For the second non-read color correction gradation, similarly to the first non-read color correction gradation, the non-read color reference gradation correction unit 108 sets the second added value to the MAX value or MIN. It determines by comparing with a value (# 135- # 139).

このようにMAX値およびMIN値をそれぞれ補正の上限および下限に定めることによって、補正によって却って色滲みが発生してしまうことを抑制することができる。   Thus, by setting the MAX value and the MIN value to the upper limit and the lower limit of correction, it is possible to suppress the occurrence of color blur on the contrary by the correction.

本実施形態では、図4に示した各部を、読取画像補正プログラム10PをCPU10aで実行することによって実現したが、一部または全部をFPGA(Field Programmable Gate Array)またはASIC(Application Specific Integrated Circuit)などの回路によって実現してもよい。   In the present embodiment, each unit shown in FIG. 4 is realized by executing the read image correction program 10P by the CPU 10a. You may implement | achieve by the circuit of.

本実施形態では、画像データ60が得られてから、つまり、画像50全体のデータが得られてから、読取色判別部102ないし非読取色基準階調補正部108は、上述の通り補正の処理を行った。しかし、スキャナ10e1によるスキャンの処理と並行して、補正の処理を行ってもよい。   In the present embodiment, after the image data 60 is obtained, that is, after the entire data of the image 50 is obtained, the read color determination unit 102 or the non-read color reference gradation correction unit 108 performs the correction process as described above. Went. However, the correction process may be performed in parallel with the scan process by the scanner 10e1.

本実施形態では、変化特徴量算出部107は、図12に示した通り、注目画素52eの変化特徴量Dhを、注目画素52eの読取色の階調(階調D5)と注目画素52eの副走査方向のこの読取色の直前および直後の画素それぞれの階調(階調D4、D6)とに基づいて、算出した。しかし、直前および直後の画素以外の周辺の画素の階調をも用いて算出してもよい。   In the present embodiment, as shown in FIG. 12, the change feature amount calculation unit 107 uses the change feature amount Dh of the target pixel 52e as the read color gradation (gradation D5) of the target pixel 52e and the subordinate of the target pixel 52e. The calculation was performed based on the gradations (gradation levels D4 and D6) of the pixels immediately before and after the read color in the scanning direction. However, it may be calculated using gradations of peripheral pixels other than the immediately preceding and immediately following pixels.

例えば、図23に示すように、変化特徴量算出部107は、注目画素52eの階調(階調D52)を抽出する。さらに、8方向それぞれの、注目画素52eと読取色が同じである、注目画素52eに最も近い画素の、階調(階調D41、D42、D43、D51、D53、D61、D62、D63)を抽出する。抽出した階調に二次微分フィルタFbを掛ける。これにより、階調D41’、D42’、D43’、D51’、D52’、D53’、D61’、D62’、およびD63’が得られる。   For example, as illustrated in FIG. 23, the change feature amount calculation unit 107 extracts the gradation (gradation D52) of the target pixel 52e. Further, the gradations (gradation levels D41, D42, D43, D51, D53, D61, D62, D63) of the pixels closest to the target pixel 52e that have the same reading color as the target pixel 52e in each of the eight directions are extracted. To do. A secondary differential filter Fb is applied to the extracted gradation. Thereby, gradations D41 ', D42', D43 ', D51', D52 ', D53', D61 ', D62', and D63 'are obtained.

そして、変化特徴量算出部107は、これらの階調の合計を変化特徴量Dhとして算出する。   Then, the change feature amount calculating unit 107 calculates the sum of these gradations as the change feature amount Dh.

図23の例では、
Dh=D41’+D42’+D43’+D51’+D52’+D53’+D61’
+D62’+D63’
=−D41−D42−D43−D51+8・D52−D53−D61
−D62−D63
を算出する。
In the example of FIG.
Dh = D41 ′ + D42 ′ + D43 ′ + D51 ′ + D52 ′ + D53 ′ + D61 ′
+ D62 '+ D63'
= -D41-D42-D43-D51 + 8.D52-D53-D61
-D62-D63
Is calculated.

非読取色基準階調算出部104も同様に、非読取色の補正階調を、注目画素52cの前後2つの画素の階調だけではなく(図11参照)、8方向の周囲の8つの画素の階調に基づいて算出してもよい。この場合は、線形補間の公知の方法によって補正階調を算出すればよい。   Similarly, the non-reading color reference gradation calculating unit 104 determines the correction gradation of the non-reading color not only for the gradation of the two pixels before and after the pixel of interest 52c (see FIG. 11) but also for the eight pixels around the eight directions. It may be calculated on the basis of the gradation. In this case, the correction gradation may be calculated by a known method of linear interpolation.

その他、画像形成装置1の全体または各部の構成、処理の内容、処理の順序、データの構成などは、本発明の趣旨に沿って適宜変更することができる。   In addition, the configuration of the entire image forming apparatus 1 or each unit, the content of processing, the order of processing, the configuration of data, and the like can be appropriately changed in accordance with the spirit of the present invention.

1 画像形成装置(読取画像補正装置)
103 非読取色階調抽出部(非読取色階調算出手段)
107 変化特徴量算出部(特徴量算出手段)
108 非読取色基準階調補正部(補正手段)
109 階調決定部(解像度調整手段)
10e1 スキャナ(1ラインスキャナ)
50 画像(読取画像)
Dh 変化特徴量(特徴量)
1 Image forming device (read image correction device)
103 Non-read color gradation extraction unit (non-read color gradation calculation means)
107 Change feature amount calculation unit (feature amount calculation means)
108 Non-reading color reference gradation correction unit (correction means)
109 Gradation determination unit (resolution adjustment means)
10e1 scanner (1 line scanner)
50 images (read images)
Dh change feature (feature)

Claims (9)

複数の色それぞれの光源を1つのラインごとに順番に点灯させながら1ラインスキャナによって読み取られた画像である読取画像を補正する読取画像補正装置であって、
前記読取画像の中の補正する対象である対象画素の、当該対象画素の周囲からの変化の特徴を表わす特徴量を、前記1ラインスキャナによって得られた、当該対象画素の階調である第一の読取階調と、当該読取画像の中の前記複数の色それぞれの光源のうちの当該対象画素を読み取る際に用いられた読取用光源が点灯している際に当該1ラインスキャナによって読み取られかつ当該対象画素の副走査方向に近接する画素の階調である第二の読取階調と、によって算出する、特徴量算出手段と、
前記対象画素の、前記複数の色のうちの前記読取用光源に対応する色とは異なる色である非読取色の階調である非読取色階調を、当該読取画像の中の前記複数の色それぞれの光源のうちの当該非読取色の光源が点灯している際に前記1ラインスキャナによって読み取られかつ当該対象画素の副走査方向に近接する複数の画素それぞれの第三の読取階調に基づいて算出する、非読取色階調算出手段と、
前記非読取色階調を前記特徴量に基づいて補正することによって補正階調を算出する補正手段と、
を有することを特徴とする読取画像補正装置。
A read image correction apparatus that corrects a read image that is an image read by a one-line scanner while sequentially turning on a light source of each of a plurality of colors for each line,
A feature amount representing a feature of change of the target pixel as a correction target in the read image from the periphery of the target pixel is a gradation of the target pixel obtained by the one-line scanner. Read by the one-line scanner when the reading light source used for reading the target pixel among the light sources of the plurality of colors in the read image is turned on, and A feature amount calculating means for calculating by a second reading gradation that is a gradation of a pixel adjacent to the target pixel in the sub-scanning direction;
A non-reading color gradation that is a gradation of a non-reading color that is a color different from a color corresponding to the reading light source among the plurality of colors of the target pixel. When the light source of the non-read color among the light sources of each color is lit, the third read gradation of each of the plurality of pixels read by the one-line scanner and close to the target pixel in the sub-scanning direction Non-reading color gradation calculating means for calculating based on
Correction means for calculating a correction gradation by correcting the non-read color gradation based on the feature amount;
A read image correction apparatus comprising:
前記特徴量算出手段は、前記第一の読取階調および前記第二の読取階調に二次微分フィルタを掛けた値を加算することによって前記特徴量を算出し、
前記補正手段は、前記非読取色階調に前記特徴量を加算することによって前記補正階調を算出する、
請求項1に記載の読取画像補正装置。
The feature amount calculating means calculates the feature amount by adding a value obtained by applying a second-order differential filter to the first reading gradation and the second reading gradation,
The correction means calculates the correction gradation by adding the feature amount to the non-read color gradation;
The read image correction apparatus according to claim 1.
前記特徴量算出手段は、前記第一の読取階調および前記第二の読取階調に二次微分フィルタを掛けた値を加算することによって前記特徴量を算出し、
前記補正手段は、前記特徴量が正の値である場合は、前記第二の読取階調および前記第三の読取階調のうちの最大値と前記非読取色階調との差の絶対値、および、当該特徴量のうちの、小さいほうを前記非読取色階調に加算することによって前記補正階調を算出し、負の値である場合は、前記第二の読取階調および前記第三の読取階調のうちの最小値と前記非読取色階調との差の絶対値、および、当該特徴量の絶対値のうちの、小さいほうを前記非読取色階調から減算することによって前記補正階調を算出する、
請求項1に記載の読取画像補正装置。
The feature amount calculating means calculates the feature amount by adding a value obtained by applying a second-order differential filter to the first reading gradation and the second reading gradation,
When the feature value is a positive value, the correction unit determines the absolute value of the difference between the maximum value of the second reading gradation and the third reading gradation and the non-reading color gradation. The correction gradation is calculated by adding the smaller one of the feature amounts to the non-read color gradation, and if the correction amount is a negative value, the second reading gradation and the second reading gradation are calculated. By subtracting the smaller of the absolute value of the difference between the minimum value of the three reading gradations and the non-reading color gradation and the absolute value of the feature amount from the non-reading color gradation Calculating the correction gradation;
The read image correction apparatus according to claim 1.
前記複数の色は、第一の原色、第二の原色、および第三の原色の3つの原色であり、
前記非読取色階調算出手段は、前記3つの原色のうちの2つについてそれぞれ前記非読取色階調を算出し、
前記補正手段は、前記3つの原色のうちの2つについてそれぞれ前記補正階調を算出する、
請求項1ないし請求項3のいずれかに記載の読取画像補正装置。
The plurality of colors are three primary colors, a first primary color, a second primary color, and a third primary color,
The non-reading color gradation calculating unit calculates the non-reading color gradation for each of two of the three primary colors;
The correction means calculates the correction gradation for each of two of the three primary colors;
The read image correction apparatus according to claim 1.
前記読取画像の中の副走査方向に連続して並ぶ3つの画素からなる組の共通の階調として、当該3つの画素それぞれの前記第一の階調および前記非読取色階調のうちの前記第一の原色の第一の読取階調および非読取色階調に基づいて前記第一の原色の階調である第一の共通階調を算出し、前記第二の原色の第一の読取階調および非読取色階調に基づいて前記第二の原色の階調である第二の共通階調を算出し、前記第三の原色の第一の読取階調および非読取色階調に基づいて前記第三の原色の階調である第三の共通階調を算出する、解像度調整手段、を有する、
請求項4に記載の読取画像補正装置。
As a common gradation of a set of three pixels continuously arranged in the sub-scanning direction in the read image, the first gradation and the non-read color gradation of each of the three pixels. A first common gradation that is the gradation of the first primary color is calculated based on the first reading gradation and the non-reading color gradation of the first primary color, and the first reading of the second primary color is performed. A second common gradation that is the gradation of the second primary color is calculated based on the gradation and the non-reading color gradation, and the first reading gradation and the non-reading color gradation of the third primary color are calculated. A resolution adjusting means for calculating a third common gradation which is a gradation of the third primary color based on
The read image correction apparatus according to claim 4.
前記解像度調整手段は、前記第一の共通階調を、前記第一の原色の第一の読取階調および非読取色階調のうちの彩度が最も低いものを選出することによって算出し、前記第二の共通階調を、前記第二の原色の第一の読取階調および非読取色階調のうちの彩度が最も低いものを選出することによって算出し、前記第三の共通階調を、前記第三の原色の第一の読取階調および非読取色階調のうちの彩度が最も低いものを選出することによって算出する、
請求項5に記載の読取画像補正装置。
The resolution adjusting unit calculates the first common gradation by selecting the lowest saturation among the first reading gradation and the non-reading color gradation of the first primary color, The second common gradation is calculated by selecting the first reading gradation and the non-reading color gradation of the second primary color having the lowest saturation, and the third common gradation is calculated. A tone is calculated by selecting the lowest saturation of the first read gradation and the non-read color gradation of the third primary color;
The read image correction apparatus according to claim 5.
前記解像度調整手段は、前記第一の共通階調として前記第一の原色の第一の読取階調および非読取色階調の平均値を算出し、前記第二の共通階調として前記第二の原色の第一の読取階調および非読取色階調の平均値を算出し、前記第三の共通階調として前記第三の原色の第一の読取階調および非読取色階調の平均値を算出する、
請求項5に記載の読取画像補正装置。
The resolution adjusting unit calculates an average value of the first reading gradation and the non-reading color gradation of the first primary color as the first common gradation, and the second common gradation as the second common gradation. An average value of the first reading gradation and the non-reading color gradation of the primary color is calculated, and the average of the first reading gradation and the non-reading color gradation of the third primary color is calculated as the third common gradation. Calculate the value,
The read image correction apparatus according to claim 5.
複数の色それぞれの光源を1つのラインごとに順番に点灯させながら1ラインスキャナによって読み取られた画像である読取画像を補正する読取画像補正方法であって、
前記読取画像の中の補正する対象である対象画素の、当該対象画素の周囲からの変化の特徴を表わす特徴量を、前記1ラインスキャナによって得られた、当該対象画素の階調である第一の読取階調と、当該読取画像の中の前記複数の色それぞれの光源のうちの当該対象画素を読み取る際に用いられた読取用光源が点灯している際に当該1ラインスキャナによって読み取られかつ当該対象画素の副走査方向に近接する画素の階調である第二の読取階調と、によって算出し、
前記対象画素の、前記複数の色のうちの前記読取用光源に対応する色とは異なる色である非読取色の階調である非読取色階調を、当該読取画像の中の前記複数の色それぞれの光源のうちの当該非読取色の光源が点灯している際に前記1ラインスキャナによって読み取られかつ当該対象画素の副走査方向に近接する複数の画素それぞれの第三の読取階調に基づいて算出し、
前記非読取色階調を前記特徴量に基づいて補正することによって補正階調を算出する、
ことを特徴とする読取画像補正方法。
A read image correction method for correcting a read image that is an image read by a one-line scanner while sequentially turning on light sources of a plurality of colors for each line.
A feature amount representing a feature of change of the target pixel as a correction target in the read image from the periphery of the target pixel is a gradation of the target pixel obtained by the one-line scanner. Read by the one-line scanner when the reading light source used for reading the target pixel among the light sources of the plurality of colors in the read image is turned on, and And a second reading gradation that is a gradation of a pixel adjacent to the target pixel in the sub-scanning direction,
A non-reading color gradation that is a gradation of a non-reading color that is a color different from a color corresponding to the reading light source among the plurality of colors of the target pixel. When the light source of the non-read color among the light sources of each color is lit, the third read gradation of each of the plurality of pixels read by the one-line scanner and close to the target pixel in the sub-scanning direction Based on
Calculating a correction gradation by correcting the non-read color gradation based on the feature amount;
A read image correction method characterized by the above.
複数の色それぞれの光源を1つのラインごとに順番に点灯させながら1ラインスキャナによって読み取られた画像である読取画像を補正するコンピュータに用いられるコンピュータプログラムであって、
前記コンピュータに、
前記読取画像の中の補正する対象である対象画素の、当該対象画素の周囲からの変化の特徴を表わす特徴量を、前記1ラインスキャナによって得られた、当該対象画素の階調である第一の読取階調と、当該読取画像の中の前記複数の色それぞれの光源のうちの当該対象画素を読み取る際に用いられた読取用光源が点灯している際に当該1ラインスキャナによって読み取られかつ当該対象画素の副走査方向に近接する画素の階調である第二の読取階調と、によって算出する処理を実行させ、
前記対象画素の、前記複数の色のうちの前記読取用光源に対応する色とは異なる色である非読取色の階調である非読取色階調を、当該読取画像の中の前記複数の色それぞれの光源のうちの当該非読取色の光源が点灯している際に前記1ラインスキャナによって読み取られかつ当該対象画素の副走査方向に近接する複数の画素それぞれの第三の読取階調に基づいて算出する処理を実行させ、
前記非読取色階調を前記特徴量に基づいて補正することによって補正階調を算出する処理を実行させる、
ことを特徴とするコンピュータプログラム。
A computer program used for a computer that corrects a read image, which is an image read by a one-line scanner, while sequentially turning on a light source of each of a plurality of colors for each line,
In the computer,
A feature amount representing a feature of change of the target pixel as a correction target in the read image from the periphery of the target pixel is a gradation of the target pixel obtained by the one-line scanner. Read by the one-line scanner when the reading light source used for reading the target pixel among the light sources of the plurality of colors in the read image is turned on, and A second reading gradation that is a gradation of a pixel adjacent to the target pixel in the sub-scanning direction is executed,
A non-reading color gradation that is a gradation of a non-reading color that is a color different from a color corresponding to the reading light source among the plurality of colors of the target pixel. When the light source of the non-read color among the light sources of each color is lit, the third read gradation of each of the plurality of pixels read by the one-line scanner and close to the target pixel in the sub-scanning direction Based on the calculation process,
Executing a process of calculating a correction gradation by correcting the non-read color gradation based on the feature amount;
A computer program characterized by the above.
JP2016137875A 2016-07-12 2016-07-12 Scanned image correction device, scanned image correction method, and computer program Active JP6809010B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2016137875A JP6809010B2 (en) 2016-07-12 2016-07-12 Scanned image correction device, scanned image correction method, and computer program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2016137875A JP6809010B2 (en) 2016-07-12 2016-07-12 Scanned image correction device, scanned image correction method, and computer program

Publications (2)

Publication Number Publication Date
JP2018011157A true JP2018011157A (en) 2018-01-18
JP6809010B2 JP6809010B2 (en) 2021-01-06

Family

ID=60995864

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2016137875A Active JP6809010B2 (en) 2016-07-12 2016-07-12 Scanned image correction device, scanned image correction method, and computer program

Country Status (1)

Country Link
JP (1) JP6809010B2 (en)

Also Published As

Publication number Publication date
JP6809010B2 (en) 2021-01-06

Similar Documents

Publication Publication Date Title
JP4902837B2 (en) How to convert to monochrome image
JP4883789B2 (en) Image processing apparatus and image processing method
US7903872B2 (en) Image-processing apparatus and method, computer program, and storage medium
JP6031286B2 (en) Image processing apparatus and image processing method
JP2008011267A (en) Image processor, image processing method, image processing program, and memory medium
JP2008252699A (en) Image processor and image processing method
JP6808325B2 (en) Image processing equipment, image processing methods and programs
JP2010093684A (en) Image processor
JP2019220860A (en) Image processing device, control method of the same, and program
US20130021624A1 (en) Image processing apparatus, image forming apparatus, image processing method, and computer-readable medium
JP5187331B2 (en) Image processing apparatus, image processing method, and computer program
JP4930423B2 (en) Image processing apparatus, image forming apparatus, image processing apparatus control method, and image processing apparatus control program
JP5029734B2 (en) Image processing apparatus and image gradation reduction method
JP7034742B2 (en) Image forming device, its method and program
JP2000333014A (en) Image processing unit, image processing method, and computer-readable storage medium storing image processing procedure
JP6809010B2 (en) Scanned image correction device, scanned image correction method, and computer program
JP2008092541A (en) Image processing method, image processor, image forming apparatus, computer program, and recording medium
JP5316312B2 (en) Image processing device
JP2013074314A (en) Image processing method, image reader, and image processing program
JP5689090B2 (en) Image forming method and image forming apparatus
JP2017135690A (en) Image processing device, image processing method, and program
JP2011139373A (en) Black color determining apparatus and black color determining method
JP2008271364A (en) Image processor and image processing method
JP2006287603A (en) Mesh point region discrimination apparatus and mesh point region discrimination program
KR20080046080A (en) Image forming apparatus and control method thereof

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20190416

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20200313

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20200526

A601 Written request for extension of time

Free format text: JAPANESE INTERMEDIATE CODE: A601

Effective date: 20200727

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20200924

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: 20201110

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20201123

R150 Certificate of patent or registration of utility model

Ref document number: 6809010

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150