JP2017069785A - Reader, image processing device and reading method - Google Patents

Reader, image processing device and reading method Download PDF

Info

Publication number
JP2017069785A
JP2017069785A JP2015193825A JP2015193825A JP2017069785A JP 2017069785 A JP2017069785 A JP 2017069785A JP 2015193825 A JP2015193825 A JP 2015193825A JP 2015193825 A JP2015193825 A JP 2015193825A JP 2017069785 A JP2017069785 A JP 2017069785A
Authority
JP
Japan
Prior art keywords
reading
analysis
unit
image data
correction
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
JP2015193825A
Other languages
Japanese (ja)
Other versions
JP6650717B2 (en
Inventor
辰広 山縣
Tatsuhiro Yamagata
辰広 山縣
中村 隆
Takashi Nakamura
隆 中村
山田 顕季
Akitoshi Yamada
顕季 山田
藤田 貴志
Takashi Fujita
貴志 藤田
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.)
Canon Inc
Original Assignee
Canon 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 Canon Inc filed Critical Canon Inc
Priority to JP2015193825A priority Critical patent/JP6650717B2/en
Publication of JP2017069785A publication Critical patent/JP2017069785A/en
Application granted granted Critical
Publication of JP6650717B2 publication Critical patent/JP6650717B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Facsimile Image Signal Circuits (AREA)
  • Color Image Communication Systems (AREA)

Abstract

PROBLEM TO BE SOLVED: To accelerate processing during reading a document to perform discoloration processing of the read document.SOLUTION: A device includes analysis means for analyzing image data of a read image in order to determine a parameter for performing discoloration correction of the read image obtained by reading a document by reading means for reading a document, and correction means for using the parameter based on an analysis result by the analysis means to correct the image data so as to perform discoloration correction of the read image. The device starts to analyze the image data by the analysis means in the middle of reading the document by the reading means, and analyzes the image data by the analysis means in parallel with reading the document by the reading means.SELECTED DRAWING: Figure 4

Description

本発明は、原稿を読み取る読取装置、画像処理装置および読取方法に関する。   The present invention relates to a reading device, an image processing device, and a reading method for reading a document.

近年、スマートデバイス、PCの発展に伴いって、文書や写真を電子化する要望が高まっている。このような状況の元、ユーザは、より高機能であり、高画質な電子化画像を得られるスキャナを求めるようになった。高機能化、電子化画像の高画質化を実現する処理として、読み取られた画像の補正処理や検知処理がある。補正処理及び検知処理とは、例えば、原稿サイズ判定、自動文書・写真補正、褪色補正などがある。原稿サイズ判定とは、読み取ったデータを解析し、原稿のサイズを自動的に判定する。自動文書・写真補正は読み取った原稿を解析し、原稿種別を自動判定した後、その結果に応じて補正処理を適用するものである。褪色補正とは、読み取った原稿を解析し、その結果得られた褪色度合いに応じて、褪色前の写真になるよう補正を施す補正である。これらの処理に共通することは、読み取られた画像を解析することである。そして、その画像解析は、プレスキャンで取得されたプレスキャン画像を解析する。そして、画像を解析した後、再度本スキャンし、画像解析結果を反映させる。ここでいうプレスキャンでは、低解像度の粗い画像を読み取ることを指す。このようにプレスキャン画像を用いることで、画像解析に要する時間を短縮している。   In recent years, with the development of smart devices and PCs, there is an increasing demand for digitizing documents and photographs. Under such circumstances, users have come to demand scanners that have higher functionality and can obtain high-quality digitized images. As processing for realizing higher functionality and higher image quality of digitized images, there are correction processing and detection processing of read images. Examples of correction processing and detection processing include document size determination, automatic document / photo correction, and fading correction. In the document size determination, the read data is analyzed and the size of the document is automatically determined. In the automatic document / photo correction, the read original is analyzed, the original type is automatically determined, and correction processing is applied according to the result. The fading correction is a correction that analyzes a read original and corrects the photograph before fading according to the degree of fading obtained as a result. What is common to these processes is to analyze the read image. And the image analysis analyzes the prescan image acquired by the prescan. Then, after analyzing the image, the main scan is performed again to reflect the image analysis result. The pre-scan here refers to reading a low-resolution coarse image. By using the pre-scan image in this way, the time required for image analysis is shortened.

写真の褪色は、銀塩フィルム、写真プリント、印刷物等プリント物において、光や空気に影響し、時間とともにプリント物の色が変色する現象である。ここで、変色を示すためにガマット図を用いて、褪色前後の色再現について説明する。図1(a)は、縦軸は明度値であるL*示し、横軸はa*値及びb*値を示した場合の褪色前のガマット図を示したものである。同様に図1(b)は、褪色後のガマットを示している。つまり、褪色現象が発生することで、色全体がある方向(例えば、黄色方向)に傾くことを意味している。したがって、褪色すると写真全体が黄味がかった色となる。特許文献1には、写真原稿をスキャンしたデータから、ガマット全体の傾きを推定し、補正する方法が開示されている。   The fading of a photograph is a phenomenon in which the color of a printed matter changes with time in a printed matter such as a silver salt film, a photographic print, or a printed matter, which affects light and air. Here, color reproduction before and after fading will be described using a gamut diagram in order to show discoloration. In FIG. 1A, the vertical axis indicates L * which is a lightness value, and the horizontal axis indicates a gamut diagram before fading when the a * value and the b * value are indicated. Similarly, FIG. 1B shows a gamut after fading. That is, when the fading phenomenon occurs, it means that the whole color is inclined in a certain direction (for example, yellow direction). Therefore, when the color is faded, the entire photo becomes yellowish. Patent Document 1 discloses a method for estimating and correcting the inclination of the entire gamut from data obtained by scanning a photographic document.

特開2011−259039号公報JP 2011-259039 A

特許文献1は、褪色写真のスキャン画像を一度保存し、そのスキャン画像の全画素を解析した結果で得たヒストグラムを解析することで、補正値を決定する。つまり前述したプレスキャン画像を用いた処理である。プレスキャン画像では、低解像度で原稿をスキャンするプレスキャン動作と本スキャン動作の2度のスキャンが必要となり、処理に長い時間がかかることが課題となる。   Patent Document 1 determines a correction value by storing a scan image of a fading photograph once and analyzing a histogram obtained as a result of analyzing all pixels of the scan image. That is, the process using the pre-scan image described above. In a pre-scan image, two scans of a pre-scan operation and a main scan operation for scanning an original with low resolution are required, and it takes a long time to process.

本発明は上記課題を鑑みなされたものであって、原稿の読み取りを行う読み取り手段と、読取手段によって原稿を読み取り得られた読取画像の褪色補正を行うためのパラメータを決定するために、前記読取画像の領域毎の画像データを、順次、解析する解析手段と、前記解析手段による解析結果に基づく前記パラメータを用いて、前記読取画像の褪色補正がなされるように前記画像データの補正を行う補正手段と、を備えた読取装置であって、前記読取手段による原稿の読み取りの途中で前記解析手段による前記画像データの解析を始め、前記読取手段による原稿の読み取りと並行して前記解析手段による前記画像データの解析を行うことを特徴とする読取装置である。   The present invention has been made in view of the above-described problems, and includes a reading unit that reads a document, and the reading unit that determines parameters for performing fading correction of a read image obtained by reading the document by the reading unit. A correction unit that sequentially analyzes image data for each region of the image, and a correction that corrects the image data so that the read image is faded using the parameter based on the analysis result of the analysis unit. A reading apparatus comprising: the reading means, the analysis means starts analyzing the image data in the middle of reading the original, and the reading means reads the original in parallel with the reading means. A reading apparatus that analyzes image data.

本発明によれば、画像の読み取りと画像データの解析を並行して行うことで、褪色補正に係る処理を短い時間で実行することが可能となる。   According to the present invention, it is possible to execute the process relating to fading correction in a short time by performing image reading and image data analysis in parallel.

原稿の褪色を説明するための概念図である。It is a conceptual diagram for explaining the fading of the document. 実施形態に係る読取装置の外観を示す斜視図である。1 is a perspective view illustrating an appearance of a reading apparatus according to an embodiment. 実施形態に係る読取装置の制御系の概念を示すブロック図である。It is a block diagram which shows the concept of the control system of the reader which concerns on embodiment. 第1の実施形態の処理を説明するためのフローチャートである。It is a flowchart for demonstrating the process of 1st Embodiment. 褪色黒色の探索に関する説明図である。It is explanatory drawing regarding the search of dark blue black. 実施形態に係る褪色補正のフローチャートである。It is a flowchart of the fading correction which concerns on embodiment. 実施形態および比較形態の処理時間の説明図である。It is explanatory drawing of the processing time of embodiment and a comparison form. 第2の実施形態の処理を説明するためのフローチャートである。It is a flowchart for demonstrating the process of 2nd Embodiment. 第3の実施形態の処理を説明するためのフローチャートである。It is a flowchart for demonstrating the process of 3rd Embodiment. 実施形態に係るモード毎の判定比率を示す表である。It is a table | surface which shows the determination ratio for every mode which concerns on embodiment. 第4の実施形態の処理を説明するためのフローチャートである。It is a flowchart for demonstrating the process of 4th Embodiment. 第5の実施形態の処理を説明するためのフローチャートである。It is a flowchart for demonstrating the process of 5th Embodiment.

(第1の実施形態)
以下では、本発明の一実施形態に係る画像処理装置の構成と、その動作について説明する。以下の形態では、画像の読み取りと解析を同時に行い、早期に解析を完了する例を実現する例を説明する。
(First embodiment)
Hereinafter, the configuration and operation of an image processing apparatus according to an embodiment of the present invention will be described. In the following embodiment, an example in which an image is read and analyzed at the same time to complete the analysis at an early stage will be described.

<ハードウェア構成>
図2は本発明の一実施形態に係る画像処理装置の一例としてのMFP(多機能プリンター)201の外観を示す模式図である。MFP201は、ホストコンピュータ(以下、PC)から受信したデータを印刷するプリンタとしての機能、原稿を読み取って得られるスキャン画像をPCに供給するスキャナとしての機能を有す。さらに、MFP201単体の機能として、原稿から読み取ったスキャン画像を印刷するコピー機能、メモリカードなどの記憶媒体から画像データを読み出して印刷する機能、ディジタルカメラから受信した画像データを印刷する機能を備える。MFP201はフラットベットスキャナなどの読取装置202、インクジェット方式や電子写真方式などの印刷装置203からなる。また、MFP201の背面などにはPCと通信するためのUSB(不図示)ポートがある。あらに表示パネル204や各種キースイッチなどを備える操作パネル205から構成される。さらに、各種メモリカードからデータを読み出すためのカードスロット206、ディジタルカメラとデータ通信を行うためのカメラポート207、などを有する。
<Hardware configuration>
FIG. 2 is a schematic diagram showing an appearance of an MFP (multifunction printer) 201 as an example of an image processing apparatus according to an embodiment of the present invention. The MFP 201 has a function as a printer that prints data received from a host computer (hereinafter referred to as a PC) and a function as a scanner that supplies a scan image obtained by reading a document to the PC. Further, the MFP 201 alone has a copy function for printing a scanned image read from a document, a function for reading out image data from a storage medium such as a memory card, and a function for printing image data received from a digital camera. The MFP 201 includes a reading device 202 such as a flat bed scanner, and a printing device 203 such as an inkjet method or an electrophotographic method. Further, a USB (not shown) port for communicating with a PC is provided on the back surface of the MFP 201. It further comprises an operation panel 205 having a display panel 204 and various key switches. Furthermore, it has a card slot 206 for reading data from various memory cards, a camera port 207 for data communication with a digital camera, and the like.

図3はMFP201の機能構成を示すブロック図である。CPU301は、RAM303をワークメモリとして、ROM302に格納された制御プログラムに従い、システムバス315を介して後述する構成を制御する。また、CPU301は、ROM302に格納された画像処理プログラムを実行して、後述する画像処理を行う画像処理部としての機能の一部を実行する。不揮発性メモリ304は、バッテリバックアップされたSRAMなどで、MFP201に固有のデータなどを記憶する。操作部305は、メモリカードに記憶された画像を選択し、印刷開始するためのフォトダイレクトプリントスタートキー、オーダシートの印刷を指示するキー、オーダシートの読み込みを指示するキーを有する。さらに、モノクロコピーやカラーコピーにおけるコピースタートキー、コピー解像度や画質などの印刷モードを指定するモードキー、コピー動作などを停止するためのストップキー、コピー数を入力するテンキーや登録キーなどを有する。   FIG. 3 is a block diagram illustrating a functional configuration of the MFP 201. The CPU 301 controls the later-described configuration via the system bus 315 according to a control program stored in the ROM 302 using the RAM 303 as a work memory. Further, the CPU 301 executes an image processing program stored in the ROM 302 to execute a part of a function as an image processing unit that performs image processing to be described later. The non-volatile memory 304 is a battery-backed SRAM or the like, and stores data unique to the MFP 201. The operation unit 305 has a photo direct print start key for selecting an image stored in the memory card and starting printing, a key for instructing order sheet printing, and a key for instructing reading of the order sheet. In addition, a copy start key for monochrome copy and color copy, a mode key for specifying a print mode such as copy resolution and image quality, a stop key for stopping a copy operation, a numeric keypad for entering the number of copies, a registration key, and the like are provided.

CPU301は、これらキーの状態(押されているか否か)を検出し、検出状態に応じて各構成を制御する。表示パネル204に対応する表示部306は、LCDおよびLCDドライブを有し、CPU301の制御に従い各種表示を行う。また、カードI/F312に装着されたメモリカードに記録された画像のサムネイルを表示する。読取装置202設けられているCCD (charge coupled device)を有する読取部208は、CPU301の制御に従い、原稿台に置かれた原稿を所定の領域毎に順次読み取る。そして順次、CCDセンサで検知された光信号から変化された電気信号に基づくRGBの輝度データを出力する。なお、CCDの代わりに密着型イメージセンサ(contact image sensor)を用いてもよい。また、ADF(原稿自動搬送装置、不図示)を備えれば、複数の原稿の画像を連続して読み取ることができる。カメラポート207に対応するカードインタフェイス(I/F) 312は、CPU301の制御に従い、メモリカードなどに記録されたディジタルスチルカメラ(以下、DSC)が撮影した画像を読み込む。なお、カードI/F312を介して読み込まれる画像データの色空間は、必要があれば、CPU301による画像処理によって、DSCの色空間(例えばYCbCr)から標準的なRGB色空間(例えばsRGB)に変換される。また、画像データのヘッダ情報に基づき、読み込まれた画像データは、有効な画素数への解像度変換など、後述するアプリケーションに必要な様々な処理が施される。カメラポート207に対応するカメラI/F313は、DSCに直接接続して、DSCから画像を読み込むインタフェイスである。PC I/F311は、PCとMFP201のデータ通信を行う、USBなどの汎用インタフェイスである。外部装置であるPCは、PC I/F311を介してMFP201にプリントやスキャンなどの命令を発行し、データの送受信を行う。   The CPU 301 detects the state of these keys (whether or not they are pressed) and controls each component according to the detection state. A display unit 306 corresponding to the display panel 204 includes an LCD and an LCD drive, and performs various displays under the control of the CPU 301. Also, thumbnails of images recorded on a memory card attached to the card I / F 312 are displayed. A reading unit 208 having a CCD (charge coupled device) provided in the reading device 202 sequentially reads a document placed on a document table for each predetermined area under the control of the CPU 301. Then, RGB luminance data based on the electrical signal changed from the optical signal detected by the CCD sensor is sequentially output. Note that a contact image sensor may be used instead of the CCD. Further, if an ADF (automatic document feeder, not shown) is provided, images of a plurality of documents can be read continuously. A card interface (I / F) 312 corresponding to the camera port 207 reads an image taken by a digital still camera (hereinafter referred to as DSC) recorded on a memory card or the like under the control of the CPU 301. Note that the color space of image data read via the card I / F 312 is converted from a DSC color space (for example, YCbCr) to a standard RGB color space (for example, sRGB) by image processing by the CPU 301 if necessary. Is done. Also, based on the header information of the image data, the read image data is subjected to various processes necessary for an application described later, such as resolution conversion to an effective number of pixels. A camera I / F 313 corresponding to the camera port 207 is an interface that directly connects to the DSC and reads an image from the DSC. The PC I / F 311 is a general-purpose interface such as a USB that performs data communication between the PC and the MFP 201. A PC that is an external device issues commands such as printing and scanning to the MFP 201 via the PC I / F 311 to transmit and receive data.

またCPU301は、RAM303に格納された画像データに対して、後述する画像解析、変換特性の算出、輝度−濃度変換、スケーリング、ガンマ変換、誤差拡散などの画像処理を施す。そして、画像処理後の画像データ(印刷データ)をRAM303の所定領域に格納する。CPU301は、RAM303の所定領域に格納された印刷データが所定量に達すると、印刷装置203に対応する印刷部308に、画像データが表す画像を記録する動作を行わせる。 印刷装置203に含まれる印刷部308は、汎用ICなどによって構成され、インクジェットヘッドを備え、CPU301の制御に従い、RAM303の所定領域に格納された印刷データを読み出してプリント出力する。駆動部314は、読取部208と印刷部308の各動作における、給排紙ローラを駆動するためのステッピングモータ、ステッピングモータの駆動力を伝達するギヤ、ステッピングモータを制御するドライバなどを備える。また、CCDセンサを走査させるためのモータも駆動部314に属する。センサ群307は、記録紙の幅を検出するセンサ、記録媒体の有無を検出するセンサ、原稿の幅を検出するセンサ、原稿の有無を検出するセンサなどである。CPU301は、センサ群307のセンサから得られる情報に基づき、原稿および記録媒体の状態を検知することができる。読取部310は、読取装置202に設けられている。 CPU301は、外部PC、または操作パネル205を含む操作部305を介してコピーが指示されると、読取部310で読み取った画像(以下、読取画像とも称する)を、CPU301で画像処理し、印刷部308に印刷させる。   The CPU 301 performs image processing such as image analysis, calculation of conversion characteristics, luminance-density conversion, scaling, gamma conversion, and error diffusion, which will be described later, on the image data stored in the RAM 303. Then, the image data (print data) after image processing is stored in a predetermined area of the RAM 303. When the print data stored in the predetermined area of the RAM 303 reaches a predetermined amount, the CPU 301 causes the printing unit 308 corresponding to the printing apparatus 203 to perform an operation of recording an image represented by the image data. A printing unit 308 included in the printing apparatus 203 includes a general-purpose IC and the like, includes an inkjet head, reads out print data stored in a predetermined area of the RAM 303 and prints out the print data according to the control of the CPU 301. The driving unit 314 includes a stepping motor for driving the paper supply / discharge roller, a gear for transmitting the driving force of the stepping motor, a driver for controlling the stepping motor, and the like in each operation of the reading unit 208 and the printing unit 308. A motor for scanning the CCD sensor also belongs to the drive unit 314. The sensor group 307 includes a sensor that detects the width of a recording sheet, a sensor that detects the presence or absence of a recording medium, a sensor that detects the width of a document, and a sensor that detects the presence or absence of a document. The CPU 301 can detect the state of the document and the recording medium based on information obtained from the sensors of the sensor group 307. The reading unit 310 is provided in the reading device 202. When copying is instructed via the external PC or the operation unit 305 including the operation panel 205, the CPU 301 performs image processing on the image read by the reading unit 310 (hereinafter also referred to as a read image) and prints it. 308 is caused to print.

<読取動作>
図4は、本実施形態に係る原稿の読み取りから補正処理までの流れを示したフローチャートである。まず、ユーザは、褪色した写真を読取装置202の原稿台209にセットし、操作部305より褪色補正処理の指示を行う。指示を受け付けたCPU301は、駆動部314を制御して、読取部208のCCDセンサを備えたセンサユニットを所定量だけ移動させ、センサユニットを走査させることによりCCDセンサで原稿を読み取る(S401)。CPU301は、読み取り得られた画像の画像データ対し解析処理を行い(S402)、解析情報をRAM303に記憶する。解析処理の詳細については、後述する。そして、解析処理と並行して、読取画像データもRAM303に記憶する(S403)。その後、その後、センサユニットが所定の位置まで移動したかどうかを判定することで、原稿の読取ページの全域が読み取られたかどうかを判定する(S404)。判定した結果、全域読み取りが完了していなければ、継続して原稿の読み取りを行う。そして、原稿の全域が読み取られた後、補正処理を実施する(S405)。補正処理は、CPU301がRAM303から解析情報及び読取画像データを取得して処理を実施する。補正処理の詳細については後述する。コピーモードが実行されていれば、補正後の画像データに基づく画像を、印刷部308が印刷してもよく、スキャナモードが実行されていれば、補正後の画像データをPC I/F311を介して外部装置であるPCに送信してもよい。また、補正後の画像データを外部メモリに送信してもよくこのときにはカードI/F312が用いられる。
<Reading operation>
FIG. 4 is a flowchart showing a flow from reading a document to correction processing according to the present embodiment. First, the user sets the faded photograph on the document table 209 of the reading apparatus 202 and instructs the fader correction process from the operation unit 305. Receiving the instruction, the CPU 301 controls the drive unit 314 to move the sensor unit including the CCD sensor of the reading unit 208 by a predetermined amount, and scans the sensor unit to read the document with the CCD sensor (S401). The CPU 301 performs an analysis process on the image data of the read image (S402), and stores the analysis information in the RAM 303. Details of the analysis processing will be described later. In parallel with the analysis process, the read image data is also stored in the RAM 303 (S403). Thereafter, it is determined whether or not the entire reading page of the document has been read by determining whether or not the sensor unit has moved to a predetermined position (S404). As a result of the determination, if the entire area reading is not completed, the original is continuously read. Then, after the entire area of the original is read, correction processing is performed (S405). In the correction process, the CPU 301 acquires analysis information and read image data from the RAM 303 and performs the process. Details of the correction processing will be described later. If the copy mode is executed, the printing unit 308 may print an image based on the corrected image data. If the scanner mode is executed, the corrected image data is sent via the PC I / F 311. May be transmitted to a PC which is an external device. Further, the corrected image data may be transmitted to an external memory, and at this time, the card I / F 312 is used.

[解析処理]
S405の補正処理では褪色補正を実行する。褪色補正では、入力された原稿の褪色度合いに応じて、動的に補正パラメータを生成し、補正する。つまり、入力された原稿の読取値を解析することで、各入力原稿に応じて最適な補正パラメータを生成する必要がある。そのため、入力原稿の読取値を、入力される単位毎に、順次、解析する。前述したとおり、褪色処理は入力原稿の全体色の傾きを補正し、褪色前の原稿に復元する処理である。これを実現するための方法として、無彩色に該当する色の傾向を探索し、全体色の傾きの傾向を取得し、補正すればよい。具体的には、読取原稿の中で、黒色に該当する色(以下、褪色黒色)と白に該当する色(褪色白色)を決定することで、全体の傾きを推定する。この探索は、例えば、褪色黒色の決定の場合、読取信号をsRGB色空間に変換しL*、a*、b*を取得し、L*が予め設定された第2の明度(L*_k)以下となる複数画素の信号値を平均化すれば良い。L*_kは黒色近傍の明度を適宜設定すればよい。予め設定されたL*_k値以下であれば、無彩色の暗い色と限定しやすいため、的確に無彩色を特定することができる。例えば、図5は、色再現ガマット501に対し、予め設定されたL*_k以下の領域502とした場合に、褪色していたとしても褪色黒色を限定しやすいことが分かる。同様に、所定の第1の明度(L*_w)値以上(第1の明度は第2の明度より高い)となる信号値を平均化することで、褪色白色を決定することができる。L*_wは白色近傍の明度を適宜設定すればよい。その他の解析方法として、ヒストグラムを用いて褪色黒色と褪色白色を特定しても構わない。
[Analysis processing]
In the correction process of S405, fading correction is executed. In the fading correction, correction parameters are dynamically generated and corrected in accordance with the fading degree of the input document. That is, it is necessary to generate an optimum correction parameter for each input document by analyzing the read value of the input document. Therefore, the reading value of the input document is sequentially analyzed for each input unit. As described above, the fading process is a process of correcting the inclination of the entire color of the input document and restoring the original document before fading. As a method for realizing this, a tendency of a color corresponding to an achromatic color is searched, and a tendency of the inclination of the whole color is acquired and corrected. Specifically, the overall inclination is estimated by determining a color corresponding to black (hereinafter, amber black) and a color corresponding to white (amber white) in the read document. In this search, for example, in the case of determining dark blue, the read signal is converted into the sRGB color space to obtain L *, a *, and b *, and L * is set to a second lightness (L * _k) that is set in advance. What is necessary is just to average the signal value of the several pixels used as follows. For L * _k, the brightness near black may be set as appropriate. If it is less than or equal to a preset L * _k value, it is easy to limit the color to an achromatic dark color, and therefore the achromatic color can be specified accurately. For example, FIG. 5 shows that when the region 502 is set to L * _k or less that is set in advance with respect to the color reproduction gamut 501, it is easy to limit the dark black even if it is faded. Similarly, amber white can be determined by averaging signal values that are equal to or higher than a predetermined first lightness (L * _w) value (the first lightness is higher than the second lightness). For L * _w, the brightness near white may be set as appropriate. As another analysis method, amber black and amber white may be specified using a histogram.

[補正処理]
ここでは、褪色補正について具体的に述べる。褪色補正は、L*,a*,b*空間の色情報の傾きを用いて算出する。したがって、読み取った原稿のRGB信号値をスキャナガマットで表現されるL*,a*,b*値に変換し、補正を行う。補正後L*,a*,b*値に対し、スキャナガマット内で実現するRGB信号値に変換を行う。具体的な褪色補正の方法は、まず褪色黒点を目標の黒点に並行移動する。そして、解析処理で取得した褪色黒点と褪色白点から推定した色再現全体の傾きを補正する回転量を算出すればよい。この並行移動量と回転角が補正パラメータとなり、このパラメータを用いて補正を行う。以上を踏まえ、具体的に図6のフローチャートを用いて褪色補正を説明する。補正処理の全体フローは、図6(a)に示すように補正式の作成(S601a)を行い、その後、補正処理(S602a)を実施する流れとなる。始めに、補正式の作成のフローについて図6(b)を参照して述べる。補正式の作成に際し、まず、解析処理によって得られた褪色黒点と褪色白点を取得する(S601b)。その後、目標の黒色と褪色黒色を比較して、並行移動量を算出する(S602b)。ここで、目標の黒色は、例えばグレイライン軸上のニュートラルな黒点(a*値及びb*値がともに0である。)であってもよいし、スキャナ色域で表現可能な最も明度の低い黒点であってもよい。ここでは、ニュートラルな黒点を目標の黒色として説明する。次に褪色黒点と褪色白点の関係から、L*a*b*空間上の傾きを算出し、その傾きを垂直に補正するための、a*軸を中心として回転量の算出(S603b)とb*軸を中心として回転量の算出(S604b)を行う。そして、以上で算出した並行移動量及び、回転量を元に補正式を作成する(S605b)。補正式は、例えば、黒点のa方向、b方向の並行移動量da,dbとa*軸回りの回転量をθ、b*軸回りの回転量をφとした場合、下記の式(1)、(2)、(3)のようになる。
[Correction process]
Here, the fading correction will be specifically described. The fading correction is calculated using the slope of the color information in the L *, a *, b * space. Therefore, the RGB signal values of the read document are converted into L *, a *, and b * values expressed in scanner gamut, and correction is performed. The corrected L *, a *, and b * values are converted into RGB signal values realized in the scanner gamut. As a specific fading correction method, first, the fading black spot is moved in parallel to the target black spot. Then, a rotation amount for correcting the inclination of the entire color reproduction estimated from the dark blue point and the dark white point acquired by the analysis process may be calculated. The parallel movement amount and the rotation angle become correction parameters, and correction is performed using these parameters. Based on the above, the fading correction will be specifically described using the flowchart of FIG. As shown in FIG. 6A, the overall flow of the correction process is to create a correction formula (S601a) and then perform the correction process (S602a). First, the flow of creating a correction formula will be described with reference to FIG. In creating the correction formula, first, the dark blue point and the dark white point obtained by the analysis process are acquired (S601b). Thereafter, the target black and amber black are compared to calculate the amount of parallel movement (S602b). Here, the target black may be, for example, a neutral black point on the gray line axis (both a * value and b * value are 0) or the lowest brightness that can be expressed in the scanner color gamut. It may be a sunspot. Here, the neutral black spot is described as the target black color. Next, an inclination in the L * a * b * space is calculated from the relationship between the amber black point and the amber white point, and the rotation amount is calculated around the a * axis for correcting the inclination vertically (S603b); The rotation amount is calculated around the b * axis (S604b). Then, a correction formula is created based on the parallel movement amount and the rotation amount calculated above (S605b). The correction formula is, for example, the following formula (1) when the parallel movement amounts da, db of the black spot in the a direction and the b direction, the rotation amount around the a * axis is θ, and the rotation amount around the b * axis is φ: , (2), (3).

(黒点の並行移動)   (Parallel movement of sunspots)

以上のように補正式を作成した上で、読み取られた各画素に対し、補正処理を行う。   After creating the correction formula as described above, correction processing is performed on each read pixel.

図6(c)に示すように、補正処理は、まず読取画像データを取得し(S601c)、読取値であるRGB値をスキャナガマットに対するL*a*b*値に変換する(S602c)。そして、前述した補正式を適用し、褪色補正処理を行う(S603c)。最後にL*a*b*値をスキャナガマットに対するRGB値に変換する(S604c)。以上のように変換を行うことで褪色補正を実行することができる。   As shown in FIG. 6C, in the correction process, first, read image data is acquired (S601c), and the RGB values as read values are converted into L * a * b * values for the scanner gamut (S602c). Then, the correction formula described above is applied to perform a fading correction process (S603c). Finally, the L * a * b * values are converted into RGB values for the scanner gamut (S604c). By performing the conversion as described above, the fading correction can be executed.

<効果>
以下、本実施形態の効果について図7を用いて説明する。横軸は図7(a)〜(d)で共通で時間(t)であり、時間の経過と行われる処理の関係を示している。図7(a)は、逐次処理を実施せず、原稿全域の読み取りが終了してから解析処理を実行する比較形態の場合の処理に係る時間を示している。図7(b)は本実施形態を示している。図7(b)に示すように、画像の読取処理と解析処理を並行して行うことで、図7(a)と比較し、解析を完了するまでにかかる時間を短縮することができる。よって、褪色処理全体としての処理時間を短縮するという効果を得ることができる。
<Effect>
Hereinafter, the effect of this embodiment will be described with reference to FIG. The horizontal axis is time (t) common to FIGS. 7A to 7D, and shows the relationship between the passage of time and the processing to be performed. FIG. 7A shows the time for processing in the comparative example in which the sequential processing is not performed and the analysis processing is executed after the reading of the entire document is completed. FIG. 7B shows this embodiment. As shown in FIG. 7B, by performing the image reading process and the analysis process in parallel, the time required to complete the analysis can be shortened as compared with FIG. 7A. Therefore, it is possible to obtain an effect of shortening the processing time of the entire fading process.

(第2の実施形態)
本実施形態では、画像の読取処理と解析処理を同時に行い、かつ解析処理を途中で停止することでさらに早期に処理を完了することを実現する形態を説明する。なお特段の断りがない限り、以下の第2〜第5の実施形態で行われる各ステップの処理については、第1の実施形態と同様にして行うことができるものとする。
(Second Embodiment)
In the present embodiment, an embodiment will be described in which an image reading process and an analysis process are performed at the same time, and the analysis process is stopped halfway to complete the process at an earlier stage. Unless otherwise noted, the processing of each step performed in the following second to fifth embodiments can be performed in the same manner as in the first embodiment.

<ハードウェア構成>
第1の実施形態と同様のハードウェア構成をとる。
<Hardware configuration>
The hardware configuration is the same as that of the first embodiment.

<動作>
図8は、本実施形態に係る読み取りから補正処理までの流れを示したフローチャートである。S801での原稿の読み取りについては第1の実施形態のS401と同様である。続いてCPU301は、読み取られたて得た画像データ対して解析処理の継続判定を行う(S802)、解析処理が継続と判定された場合に解析処理を実施し(S803)、解析情報をRAM303に記憶する。解析処理の継続判定の詳細については、後述する。そして、解析処理とともに読取画像データをRAM303で記憶する(S804)。その後、センサユニットが所定の位置まで移動したかどうかを判定することで、原稿の全域に対し読み取り完了したかどうかを判定(S805)する。判定の結果、原稿の全域の読み取りが完了していないとなった場合は、継続して原稿の読み取りを行う。そして、原稿の全面が読み取られた後、RAM303から画像データを読み出し補正処理を実施する(S806)。なお、解析処理及び補正処理は、実施形態1と同様の処理であり、以下では、解析処理における継続判定について、詳細を述べる。
<Operation>
FIG. 8 is a flowchart showing a flow from reading to correction processing according to the present embodiment. The reading of the original in S801 is the same as S401 in the first embodiment. Subsequently, the CPU 301 determines whether or not the analysis process is continued for the image data obtained after the reading (S802). When the analysis process is determined to be continued, the CPU 301 performs the analysis process (S803) and stores the analysis information in the RAM 303. Remember. Details of the continuation determination of the analysis process will be described later. Then, the read image data is stored in the RAM 303 together with the analysis processing (S804). Thereafter, it is determined whether or not reading has been completed for the entire area of the document by determining whether or not the sensor unit has moved to a predetermined position (S805). As a result of the determination, if the reading of the entire area of the original is not completed, the original is continuously read. Then, after the entire surface of the original is read, image data is read from the RAM 303 and correction processing is performed (S806). The analysis process and the correction process are the same as those in the first embodiment, and the details of the continuation determination in the analysis process will be described below.

[解析処理の継続判定]
ここでは、解析処理の継続判定について(以下、解析継続判定)詳細を述べる。第1の実施形態では、褪色黒点と褪色白点の判定は、L*によって設けられた所定の閾値によって判定することを説明した。解析継続判定では、例えば、閾値によって判定された褪色黒点の候補画素と褪色白点の候補画素を、読取画像の全画素に対して所定の比率(以下、判定比率)となる数以上検出した時点で解析を継続しないと判断する。例えば所定の明度以下である画素と、所定の明度以上である画素とを所定数検出した時点で解析を中止する。
[Continuation of analysis processing]
Here, the details of the analysis process continuation determination (hereinafter, analysis continuation determination) will be described. In the first embodiment, it has been described that the determination of the dark blue point and the dark white point is based on a predetermined threshold provided by L *. In the analysis continuation determination, for example, when a dark blue spot candidate pixel and a dark white spot candidate pixel determined by the threshold are detected in a predetermined ratio (hereinafter referred to as a determination ratio) or more with respect to all pixels of the read image. It is determined that the analysis is not continued. For example, the analysis is stopped when a predetermined number of pixels having a predetermined brightness or less and a predetermined number of pixels or more are detected.

具体的に、A4サイズの画像を72dpiで読み取る場合を例に挙げる。ここで読み取られる全画素数は、517275画素(=855画素×605画素)となる。   Specifically, a case where an A4 size image is read at 72 dpi will be described as an example. The total number of pixels read here is 517275 pixels (= 855 pixels × 605 pixels).

例えば、解析により明度がL*_k以下である画素と、明度がL*_w以上である画素とが共に、全体の10%となる51727画素となった時点で、解析を継続しないと判断する。解析継続判定の閾値となるための画素数について、褪色白点についての第1の数と褪色黒点についての第2の数とは異なっていてもよい。   For example, it is determined that the analysis is not continued when both pixels having a lightness of L * _k or less and pixels having a lightness of L * _w or more are 51727 pixels, which is 10% of the total. As for the number of pixels to be used as the threshold value for the analysis continuation determination, the first number for the dark blue white point and the second number for the dark black point may be different.

<効果>
以下、本実施形態の効果について図7を用いて説明する。図7(c)は、第2の実施形態の処理速度を表現している。図7(c)に示すように、画像の読取処理と解析処理を並行して行い、条件に応じて解析を停止することで、第1の実施形態と比較して、さらに補正処理の開始時間を早めることができる。よって、褪色処理全体として処理時間を短縮するという効果をさらに高めることができる。
<Effect>
Hereinafter, the effect of this embodiment will be described with reference to FIG. FIG. 7C expresses the processing speed of the second embodiment. As shown in FIG. 7C, the image reading process and the analysis process are performed in parallel, and the analysis is stopped according to the conditions, so that the start time of the correction process is further compared with the first embodiment. Can be expedited. Therefore, the effect of shortening the processing time of the entire fading process can be further enhanced.

(第3の実施形態)
本実施形態では、画像の読取処理と解析処理を同時に行い、かつ解析処理を途中で停止し、さらに解析停止と同時に補正処理を実施することでさらなる早期処理を実現する例を説明する。
(Third embodiment)
In the present embodiment, an example will be described in which image reading processing and analysis processing are performed simultaneously, analysis processing is stopped halfway, and further early processing is realized by performing correction processing simultaneously with analysis stop.

<ハードウェア構成>
第1の実施形態と同様のハードウェア構成をとる。
<Hardware configuration>
The hardware configuration is the same as that of the first embodiment.

<動作>
図9は、第3の実施形態に係る読み取りから補正処理までの流れを示したフローチャートである。S901での原稿の読み取りについては第1の実施形態のS401と同様である。CPU301は、原稿が読み取られることで得られた画像データ対して解析処理の継続判定を行う(S902)。解析処理を継続すると判定された場合には、解析処理を実施(S903)する。そしてS905に進み、解析処理で得た情報および画像データをRAM303に記憶する。また、S902で解析処理を継続しないと判定された場合は、既にRAM303より解析情報及び既に読み取りが完了した画像データを取得し、画像データに対して画像の補正処理を行う(S904)。そしてS905に進み、解析処理で得た情報および画像データをRAM303に記憶する。
<Operation>
FIG. 9 is a flowchart showing a flow from reading to correction processing according to the third embodiment. The document reading in S901 is the same as S401 in the first embodiment. The CPU 301 determines whether to continue the analysis process on the image data obtained by reading the document (S902). If it is determined that the analysis process is to be continued, the analysis process is performed (S903). In step S905, the information and image data obtained by the analysis process are stored in the RAM 303. If it is determined in S902 that the analysis process is not continued, analysis information and image data that has already been read are acquired from the RAM 303, and an image correction process is performed on the image data (S904). In step S905, the information and image data obtained by the analysis process are stored in the RAM 303.

その後、センサユニットが所定の位置まで移動したかどうかを判定することで、原稿の全域の読み取りが完了したかどうかを判定(S906)する。判定した結果、全域の読み取りが完了していないとされた場合、S901に戻り、継続して原稿の読み取りを行う。S906で原稿の全域を読み取ったと判定された場合には、既に開始している補正処理(S904)で補正が完了していない読取データに対して、補正処理を実施する(S907)。   Thereafter, it is determined whether or not reading of the entire area of the document has been completed by determining whether or not the sensor unit has moved to a predetermined position (S906). As a result of the determination, if it is determined that reading of the entire area has not been completed, the process returns to S901, and the document is continuously read. If it is determined in S906 that the entire area of the document has been read, the correction process is performed on the read data that has not been corrected in the correction process (S904) that has already been started (S907).

なお、解析処理及び補正処理は、第1の実施形態と同様の処理であり、以下では、解析処理の継続判定について具体的に述べる。   The analysis process and the correction process are the same as those in the first embodiment, and the analysis process continuation determination will be specifically described below.

[解析処理の継続判定]
第2の実施形態では、解析処理の継続判定は固定値を条件として判定するものであった。具体的には、解析により褪色黒点の候補画素と褪色白点の候補画素と判定された画素が共に、全体読取画素の10%となった場合といった具合である。本実施形態で説明する構成では、解析処理の継続判定により、継続しないと判断されたと同時に補正処理を開始する。つまり、解析処理の停止が早ければ早ほど、全体の処理速度を早くすることができる。よって、例えば、継続判定の条件をユーザ好みによって、変更する構成をとればよい。具体的には、図10の例のようにユーザの選択に合わせて判定比率が変更する。ユーザが急いで処理したい場合は、速いモードを選択することで、より補正処理の開始を早めることができる。
[Continuation of analysis processing]
In the second embodiment, the continuation determination of the analysis process is performed using a fixed value as a condition. Specifically, a case where both of the pixels determined to be a dark blue spot candidate pixel and a dark white spot candidate pixel by analysis are 10% of the entire read pixel. In the configuration described in the present embodiment, the correction process is started at the same time as it is determined that the analysis process is not continued due to the continuation determination of the analysis process. That is, the earlier the analysis process stops, the faster the overall processing speed can be. Therefore, for example, a configuration may be adopted in which the continuation determination condition is changed according to user preference. Specifically, the determination ratio is changed according to the user's selection as in the example of FIG. If the user wants to process quickly, the correction process can be started earlier by selecting the fast mode.

<効果>
以下、本実施形態の効果について図7を用いて説明する。図7(d)は、本実施形態の処理速度の例を示している。図7(d)に示すように、画像を読取処理と解析処理を並行して行い、条件に応じて解析を停止し、解析を停止したと同時に補正処理を行うことで、実施形態2の図7(c)の構成と比較し、補正処理完了までの処理時間を短縮することができる。よって、褪色処理全体として処理時間を短縮するという効果を得ることができる。
<Effect>
Hereinafter, the effect of this embodiment will be described with reference to FIG. FIG. 7D shows an example of the processing speed of this embodiment. As illustrated in FIG. 7D, the image reading process and the analysis process are performed in parallel, the analysis is stopped according to the conditions, and the correction process is performed at the same time as the analysis is stopped. Compared with the configuration of 7 (c), the processing time until the completion of the correction processing can be shortened. Therefore, it is possible to obtain an effect of shortening the processing time as the entire fading process.

(第4の実施形態)
本実施形態では、読取装置が画像をメモリに記憶する際に、非可逆圧縮をする構成を説明する。
(Fourth embodiment)
In the present embodiment, a configuration will be described in which lossy compression is performed when the reading device stores an image in a memory.

<ハードウェア構成>
実施形態1と同様のハードウェア構成であり、図3に示すMFPの機能構成例を示すブロック図のうちCPU301が、読み込取った画像に非可逆圧縮処理をすることが異なる。
<Hardware configuration>
The hardware configuration is the same as that of the first embodiment, but the CPU 301 in the block diagram illustrating the functional configuration example of the MFP illustrated in FIG. 3 is different in that the CPU 301 performs irreversible compression processing on the read image.

<動作>
図11は、第4の実施形態に係る読み取りから補正処理までの流れを示したフローチャートである。S1101での原稿の読み取りについては第1の実施形態のS401と同様である。CPU301は、原稿が読み取られることで得られた画像データ対して解析処理行い(S1102)、解析情報をRAM303に記憶する。そして、読取画像データを、CPU301にて非可逆圧縮(S1103)した後にRAM303に記憶する(S1104)。その後、原稿の全域が読み取られたかどうかを判定し(S1105)、読み取られていなければ、S1101に戻って原稿の読み取りを行う。そして、原稿の全域が読み取られた後、第1の実施形態と同様に補正処理を実施する(S1107)。なお、褪色補正について、実施形態2及び3で解析処理の継続判定の構成を含めることも可能である。
<Operation>
FIG. 11 is a flowchart showing a flow from reading to correction processing according to the fourth embodiment. The reading of the original in S1101 is the same as S401 in the first embodiment. The CPU 301 performs analysis processing on the image data obtained by reading the document (S1102), and stores the analysis information in the RAM 303. The read image data is irreversibly compressed by the CPU 301 (S1103) and then stored in the RAM 303 (S1104). Thereafter, it is determined whether or not the entire area of the document has been read (S1105). If not, the process returns to S1101 to read the document. Then, after the entire area of the document is read, correction processing is performed in the same manner as in the first embodiment (S1107). For fading correction, it is also possible to include a configuration for determining whether to continue analysis processing in the second and third embodiments.

<効果>
読み取った画像をメモリに記憶する場合、画像のデータ量が膨大になるため、非可逆圧縮によりデータ量を圧縮し、記憶することが可能である。よって、プレスキャンをせずに一度ページデータとしてメモリに記憶し、解析及び補正を行う場合、解析処理は圧縮データで行わなければならない。その結果、褪色補正で判定処理する黒点探索処理の際、誤判定が発生する。本実施形態では、逐次処理で解析し、解析後のデータを非可逆圧縮しメモリに記憶することで、黒点探索処理の誤判定を回避しつつ、処理の高速化を図ることが可能となる。
<Effect>
When the read image is stored in the memory, the data amount of the image becomes enormous, so that the data amount can be compressed and stored by irreversible compression. Therefore, when storing in the memory as page data once without performing pre-scanning and performing analysis and correction, the analysis processing must be performed with compressed data. As a result, an erroneous determination occurs during the black spot search process that is determined by fading correction. In the present embodiment, analysis is performed by sequential processing, and the analyzed data is irreversibly compressed and stored in a memory, so that it is possible to increase the processing speed while avoiding erroneous determination of the black spot search processing.

(第5の実施形態)
本実施形態では、原稿である写真画像に対し補正処理が必要ない場合と判定された場合に、解析処理を停止し、補正処理を行わない場合の実施形態について説明する。
(Fifth embodiment)
In this embodiment, an embodiment will be described in which analysis processing is stopped and correction processing is not performed when it is determined that correction processing is not necessary for a photographic image that is a document.

<ハードウェア構成>
実施形態1と同様のハードウェア構成であり、写真原稿をコピーする形について説明する。
<Hardware configuration>
A form of copying a photographic document having the same hardware configuration as that of the first embodiment will be described.

<動作>
図12は、第5の実施形態に係る読み取りから補正処理までの流れを示したフローチャートである。まず、ユーザは、原稿台209にコピーするための元原稿をセットし、操作部305より原稿のコピーおよび褪色補正処理の指示を行う。次いで行われるS1201での原稿の読み取りについては第1の実施形態のS401と同様である。CPU301は、読み取られた画像データ対し褪色色域外判定(S1202)を実施する。褪色色域外判定は、読み取られた原稿が褪色していないかどうかを判定するために実施する。褪色した場合の色域は、図1(a)の褪色していない色域に対し、図1(b)の色域のようになる。つまり、図1(b)に存在しない色(以下、褪色色域外色)を検出した場合は、その原稿は褪色していないと判断できる。褪色色域外判定(S1202)により、褪色色域外色が存在した場合は、非褪色画像と判断し、補正処理(S1207)を経ずに直ちに印刷部308にコピー印刷物を印刷させるための印字処理(S1203)を開始する。また、褪色色域外判定(S1202)により、褪色色域外色が存在しない場合は、解析処理(S1204)に移る。その後、原稿の全域が読み取られたかどうかを判定し(S1205)、上記のフローを原稿の全域が読み取られるまで実施する。そしてS1206で原稿全域にて褪色色域外色が存在しないとされた場合には、補正処理(S1207)を実施して褪色補正を行う。そして補正後の画像の印字処理(S1208)を行う。S1203で既に印字処理を開始している場合には、S1208では、褪色色域外色が存在した場合には、残りの読取データを印字する。
<Operation>
FIG. 12 is a flowchart showing a flow from reading to correction processing according to the fifth embodiment. First, the user sets an original document to be copied on the document table 209, and instructs the copy of the document and the fading correction process from the operation unit 305. The subsequent reading of the original in S1201 is the same as S401 in the first embodiment. The CPU 301 performs a dark color gamut determination (S1202) on the read image data. The determination of out of the fading color gamut is performed in order to determine whether the read document is not fading. The color gamut in the case of fading is similar to the color gamut of FIG. 1B with respect to the non-fading color gamut of FIG. That is, when a color that does not exist in FIG. 1B (hereinafter, a color outside the fading color gamut) is detected, it can be determined that the document is not fading. If there is an out-of-color gamut color according to the out-of-color gamut determination (S1202), it is determined as a non-fading image, and the printing process (S1207) for causing the printing unit 308 to print a copy print immediately without going through the correction processing (S1207). S1203) is started. If no out-of-gamut color gamut exists due to the out-of-gamut color gamut determination (S1202), the process proceeds to analysis processing (S1204). Thereafter, it is determined whether or not the entire area of the document has been read (S1205), and the above-described flow is performed until the entire area of the document is read. If it is determined in S1206 that no color outside the fading color gamut exists in the entire document, correction processing (S1207) is performed to perform fading correction. Then, the corrected image printing process (S1208) is performed. If the printing process has already started in S1203, the remaining read data is printed in S1208 if there is a fading out-of-gamut color.

なお、非褪色画像と判断した場合には、補正後の画像データの値が変わらないような補正値を用いて補正処理(S1207)を行うなど、補正処理のロジックを使いながらも実質的に補正無しと同等の結果を得られる方法を用いても構わない。なお、補正処理(S1207)そのものをスキップしても構わない。   If it is determined that the image is a non-fading image, the correction process (S1207) is performed using a correction value that does not change the value of the corrected image data. You may use the method of obtaining the result equivalent to nothing. Note that the correction process (S1207) itself may be skipped.

<効果>
褪色補正処理をユーザが選択した場合、褪色の程度がほとんどない原稿の読取データに対しても補正を適用することはできる。その際には補正量はわずかであるが、処理時間は褪色が大きい画像と同様の時間がかかってしまう。本実施形態の形態では、逐次処理にて褪色色域外色を判定するため、最速であれば、1ライン目の読取情報により、解析処理及び補正処理の中止に切り替えることができるため、印刷速度面でのメリットが大きい。とりわけ、大量の写真原稿を読み取り、コピーなど読み取り後に処理が必要な場合は、読み取り後すぐに次の処理へと移行することができる。
<Effect>
When the user selects the fading correction process, the correction can be applied to read data of a document having almost no fading. In this case, the correction amount is small, but the processing time takes the same time as an image with a large discoloration. In this embodiment, since the out-of-gamut color gamut color is determined by sequential processing, if it is the fastest, it can be switched to stop the analysis processing and correction processing based on the reading information of the first line. The benefits are great. In particular, when a large number of photographic originals are read and processing is required after reading, such as copying, it is possible to proceed to the next processing immediately after reading.

Claims (11)

原稿の読み取りを行う読み取り手段と、読取手段によって原稿を読み取り得られた読取画像の褪色補正を行うためのパラメータを決定するために、前記読取画像の領域毎の画像データを、順次、解析する解析手段と、前記解析手段による解析結果に基づく前記パラメータを用いて、前記読取画像の褪色補正がなされるように前記画像データの補正を行う補正手段と、を備えた読取装置であって、
前記読取手段による原稿の読み取りの途中で前記解析手段による前記画像データの解析を始め、前記読取手段による原稿の読み取りと並行して前記解析手段による前記画像データの解析を行うことを特徴とする読取装置。
An analysis that sequentially analyzes image data for each area of the read image in order to determine a reading unit that reads the original and a parameter for performing fading correction of the read image obtained by reading the original by the reading unit And a correction unit that corrects the image data so that the read image is faded using the parameter based on the analysis result of the analysis unit,
The reading is characterized in that the analysis of the image data is started by the analyzing means in the middle of reading of the original by the reading means, and the image data is analyzed by the analyzing means in parallel with the reading of the original by the reading means. apparatus.
前記読取手段による原稿の読み取りの途中に、前記解析手段による前記解析結果に基づいて前記解析手段による解析を継続するか否かを決定する決定手段をさらに備え、前記決定手段により前記解析を継続しないと決定された場合には、前記解析手段は前記読取手段による原稿の読み取りの途中に前記解析を中止することを特徴とする請求項1に記載の読取装置。   In the middle of reading of the original by the reading means, it further comprises a determining means for determining whether or not to continue the analysis by the analyzing means based on the analysis result by the analyzing means, and does not continue the analysis by the determining means 2. The reading apparatus according to claim 1, wherein the analysis unit stops the analysis during reading of the original by the reading unit. 前記決定手段により前記解析を継続しないと決定された場合には、前記解析手段は前記読取手段による原稿の読み取りの途中に前記解析を終了し、前記補正手段は前記前記読取手段による読み取りが終了するのに応じて前記画像データの補正を開始することを特徴とする請求項2に記載の読取装置。   When the determination unit determines that the analysis is not continued, the analysis unit ends the analysis in the middle of reading the document by the reading unit, and the correction unit ends reading by the reading unit. The reading apparatus according to claim 2, wherein the correction of the image data is started in response to the above. 前記決定手段により前記解析を継続しないと決定された場合には、前記解析手段は前記読取手段による原稿の読み取りの途中に前記解析を終了し、前記補正手段は前記解析の終了に応じて、前記読取手段による原稿の読み取りの途中に前記画像データの補正を開始することを特徴とする請求項2に記載の読取装置。   When it is determined by the determining means that the analysis is not continued, the analyzing means ends the analysis in the middle of reading the document by the reading means, and the correcting means determines the analysis in response to the end of the analysis. The reading apparatus according to claim 2, wherein the correction of the image data is started during reading of the document by the reading unit. 前記解析手段は、前記読取画像の黒点および白点を決定し、前記補正手段は、決定された前記黒点および白点に基づいて前記パラメータを決定することを特徴とする請求項2乃至4のいずれか1項に記載の読取装置。   The analysis unit determines a black point and a white point of the read image, and the correction unit determines the parameter based on the determined black point and white point. The reading device according to claim 1. 前記解析手段は、前記読取画像において、前記白点を決定するための、第1の明度以上の明度の画素が第1の数以上検出されたこと、および、前記黒点を決定するための、前記第1の明度より小さい第2の明度以下の明度の画素が第2の数以上検出されたことに応じて前記解析を終了することを特徴とする請求項5に記載の読取装置。   The analyzing means detects, in the read image, the first number or more of pixels having a brightness equal to or higher than the first brightness for determining the white spot, and the black spot for determining the black spot. The reading apparatus according to claim 5, wherein the analysis is terminated in response to detection of a second or more number of pixels having a lightness equal to or lower than a second lightness lower than the first lightness. 前記補正手段によって補正された補正後の画像データを記憶する記憶手段と、前記記憶手段に記憶された補正後の画像データを外部装置に送信する送信手段と、を有することを特徴とする請求項1乃至6のいずれか1項に記載の読取装置。   The storage means for storing the corrected image data corrected by the correction means, and the transmission means for transmitting the corrected image data stored in the storage means to an external device. The reading device according to any one of 1 to 6. 前記補正手段によって補正された画像データに基づいて画像を記録媒体に記録するための記録手段を備えることを特徴とする請求項1乃至7のいずれか1項に記載の読取装置。   The reading apparatus according to claim 1, further comprising a recording unit configured to record an image on a recording medium based on the image data corrected by the correcting unit. 褪色色域外の色の画素を検知する検知手段をさらに有し、前記検知手段が前記読取画像において褪色色域外の色の画素を検知したことに応じて、前記解析手段は前記解析を実行せず、かつ、前記補正手段による前記読取画像の褪色補正のための前記画像データの補正を行わず、前記記録手段は前記画像データに基づく画像を記録媒体に記録することを特徴とする請求項8に記載の読取装置。   The image processing apparatus further includes a detection unit that detects pixels of a color outside the amber color gamut, and the analysis unit does not perform the analysis in response to the detection unit detecting a pixel of a color outside the amber color gamut in the read image. 9. The recording unit records an image based on the image data on a recording medium without correcting the image data for fading correction of the read image by the correcting unit. The reading device described. 原稿の読み取りを行う読み取り手段によって原稿を読み取り得られた読取画像の褪色補正を行うためのパラメータを決定するために、前記読取画像の領域毎の画像データを、順次、解析する解析手段と、前記解析手段による解析結果に基づく前記パラメータを用いて、前記読取画像の褪色補正がなされるように前記画像データの補正を行う補正手段と、を備えた画像処理装置であって、
前記読取手段による原稿の読み取りの途中で前記解析手段による前記画像データの解析を始め、前記読取手段による原稿の読み取りと並行して前記解析手段による前記画像データの解析を行うことを特徴とする画像処理装置。
Analysis means for sequentially analyzing image data for each area of the read image in order to determine parameters for performing fading correction of the read image obtained by reading the original by the reading means for reading the original; and A correction unit that corrects the image data so that the read image is faded using the parameter based on the analysis result by the analysis unit, and an image processing apparatus comprising:
The image is analyzed by the analyzing unit in parallel with the reading of the document by the reading unit, and the image data is analyzed by the analyzing unit in parallel with the reading of the document by the reading unit. Processing equipment.
原稿の読み取りを行う読取工程と、前記読取工程において原稿を読み取り得られた読取画像の褪色補正を行うためのパラメータを決定するために、前記読取画像の領域毎の画像データを、順次、解析する解析工程と、前記解析工程による解析結果に基づく前記パラメータを用いて、前記読取画像の褪色補正がなされるように前記画像データの補正を行う補正工程と、を含む読取方法であって、
前記読取工程における原稿の読み取りの途中で前記解析工程を始め、前記読取工程による原稿の読み取りと並行して前記画像データの解析を行うことを特徴とする読取方法。
In order to determine a reading process for reading a document and a parameter for performing fading correction of a read image obtained by reading the document in the reading process, image data for each area of the read image is sequentially analyzed. An analysis process, and a correction process that corrects the image data so that the read image is faded using the parameters based on the analysis result of the analysis process,
A reading method comprising: starting the analysis step in the middle of reading a document in the reading step, and analyzing the image data in parallel with reading the document in the reading step.
JP2015193825A 2015-09-30 2015-09-30 Reading device, image processing device and reading method Active JP6650717B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2015193825A JP6650717B2 (en) 2015-09-30 2015-09-30 Reading device, image processing device and reading method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2015193825A JP6650717B2 (en) 2015-09-30 2015-09-30 Reading device, image processing device and reading method

Publications (2)

Publication Number Publication Date
JP2017069785A true JP2017069785A (en) 2017-04-06
JP6650717B2 JP6650717B2 (en) 2020-02-19

Family

ID=58492980

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2015193825A Active JP6650717B2 (en) 2015-09-30 2015-09-30 Reading device, image processing device and reading method

Country Status (1)

Country Link
JP (1) JP6650717B2 (en)

Also Published As

Publication number Publication date
JP6650717B2 (en) 2020-02-19

Similar Documents

Publication Publication Date Title
US11308318B2 (en) Image processing apparatus, image processing method, and storage medium
US8199357B2 (en) Image processing apparatus and method detecting and storing areas within band images and cutting out an image from the resulting stored partial image
EP2234383B1 (en) Image processing apparatus, control method, and program
US8553250B2 (en) Printing device, system and method for image forming
US11736641B2 (en) Apparatus and method for creating images from documents
US8941900B2 (en) Image forming apparatus and method of processing image thereof
US8593686B2 (en) Image scanning apparatus, computer readable medium, and image storing method add scanned image data into an image file storing an existing image data associated with an attribute value of the existing image data
JP4743180B2 (en) Image display control device, photographing device, image display method and program thereof
US20090073463A1 (en) Image processing apparatus, image processing method, and computer-readable recording medium
JP2008301114A (en) Image processor
US8189235B2 (en) Apparatus, method and program product that calculates a color blending ratio so security dots reproduced in a monochrome image are substantially undetectable
US8390880B2 (en) Printing apparatus, method and program for automatic image quality adjustment based on combination of correction amounts and display of image and correction information
US7420717B2 (en) Method and apparatus for scanning image
JP4948069B2 (en) Image processing apparatus, image processing method, and program
JP6650717B2 (en) Reading device, image processing device and reading method
US20080094648A1 (en) Raw data processing apparatus and raw data processing method
US8416469B2 (en) Image processing apparatus, image processing method and computer program
US8134731B2 (en) Printing device that prioritizes processing of raw and JPEG data according to amount of print data in standby state
US11863717B2 (en) Image reading apparatus and image reading method
JP5489679B2 (en) Image processing apparatus, image processing apparatus control method, and program
JP2010041595A (en) Image reader, image forming apparatus, image reading method, and computer program
JP6632303B2 (en) Image processing apparatus and image processing method
JP6394060B2 (en) Image processing apparatus and computer program
JP4467019B2 (en) Image processing device
JP5005734B2 (en) Image processing apparatus, image processing method, and image processing program

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20180925

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20190719

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20190730

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20190927

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20200121

R151 Written notification of patent or utility model registration

Ref document number: 6650717

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R151