JP2005130207A - Image processing apparatus - Google Patents

Image processing apparatus Download PDF

Info

Publication number
JP2005130207A
JP2005130207A JP2003363721A JP2003363721A JP2005130207A JP 2005130207 A JP2005130207 A JP 2005130207A JP 2003363721 A JP2003363721 A JP 2003363721A JP 2003363721 A JP2003363721 A JP 2003363721A JP 2005130207 A JP2005130207 A JP 2005130207A
Authority
JP
Japan
Prior art keywords
data
unit
value
reflected light
image
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP2003363721A
Other languages
Japanese (ja)
Inventor
Hiroshi Namikawa
浩史 並川
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.)
Murata Machinery Ltd
Original Assignee
Murata Machinery Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Murata Machinery Ltd filed Critical Murata Machinery Ltd
Priority to JP2003363721A priority Critical patent/JP2005130207A/en
Publication of JP2005130207A publication Critical patent/JP2005130207A/en
Pending legal-status Critical Current

Links

Images

Abstract

<P>PROBLEM TO BE SOLVED: To provide an image processing apparatus for carrying out an adjustment processing for adjusting the data value of each color component of reference data acquired on the basis of reflected light from a white reference board according to the value of comparison data acquired on the basis of the reflected light from the prescribed area of the white reference board. <P>SOLUTION: When a shading correction section 44 uses a comparison circuit 44a to discriminate that the value of comparison data generated by CCD line sensors 41r, 41g, 41b, AFEs 42r, 42g, 42b, and A/D converters 43r, 43g, 43b on the basis of reflected light from the prescribed area of the white reference board is not within a preset prescribed range, a control section executes a white balance adjustment processing program in a ROM to execute white balance adjustment processing for adjusting the bias and the gain of amplifiers of the AFEs 42r, 42g, 42b. <P>COPYRIGHT: (C)2005,JPO&NCIPI

Description

本発明は、基準部材からの反射光に基づく基準データが有する色成分の夫々のデータ値を調整する調整処理を行なう画像処理装置に関するものである。   The present invention relates to an image processing apparatus that performs an adjustment process for adjusting each data value of color components included in reference data based on reflected light from a reference member.

近年、ファクシミリ装置にプリンタ機能を搭載した複合機が普及しており、このような装置において、プリンタ機能の拡張に伴い、カラー複写機能及びカラーファクシミリ通信機能等も搭載されつつある。このような装置は、モノクロ及びカラーの原稿画像を読み取り、画像データを取得する画像読取装置を備えている。画像読取装置は、載置ガラス等の原稿載置台上に載置された原稿に光を照射する光源、原稿からの反射光の光路を変更するミラー、前記光源及びミラーを移動させる移動機構、光電変換素子を主走査方向に多数並べ、結像レンズを通してミラーからの光が入射されるCCD(Charge Coupled Device )ラインセンサ等を備えている。このような構成の画像読取装置は、光源等を搭載したキャリッジを前記原稿載置台に沿って、副走査方向に移動させながら、主走査方向を長手方向とするCCDラインセンサ(主走査方向と平行に配置されたCCDラインセンサ)により1ラインずつ原稿画像の読み取りを行なっている。   In recent years, multifunction peripherals equipped with a printer function in a facsimile apparatus have become widespread. In such an apparatus, a color copying function, a color facsimile communication function, and the like are being installed along with the expansion of the printer function. Such an apparatus includes an image reading apparatus that reads monochrome and color document images and acquires image data. An image reading apparatus includes: a light source that irradiates light on a document placed on a document placing table such as a placement glass; a mirror that changes an optical path of reflected light from the document; a moving mechanism that moves the light source and the mirror; A number of conversion elements are arranged in the main scanning direction, and a CCD (Charge Coupled Device) line sensor or the like on which light from a mirror is incident through an imaging lens is provided. The image reading apparatus having such a configuration is a CCD line sensor (parallel to the main scanning direction) having the main scanning direction as the longitudinal direction while moving the carriage on which the light source and the like are mounted in the sub scanning direction along the document table. The original image is read line by line by a CCD line sensor).

尚、カラー画像読取装置は、上述したCCDラインセンサを3つ備えており、R(赤)成分用のCCDラインセンサ、G(緑)成分用のCCDラインセンサ及びB(青)成分用のCCDラインセンサの夫々にて読み取ったR成分、G成分及びB成分の画像データに基づいてカラー画像データを生成する。このようなカラー画像読取装置は、3つのCCDラインセンサの夫々から出力される出力値にばらつきが生じた場合、生成したカラー画像データのホワイトバランスが崩れてしまうため、3つのCCDラインセンサの夫々から出力される出力値の大きさを調整するホワイトバランス調整処理を実行するように構成されている(例えば、特許文献1参照)。   The color image reading apparatus includes the above-described three CCD line sensors. The CCD line sensor for the R (red) component, the CCD line sensor for the G (green) component, and the CCD for the B (blue) component. Color image data is generated based on image data of the R component, G component, and B component read by each of the line sensors. In such a color image reading apparatus, when the output value output from each of the three CCD line sensors varies, the white balance of the generated color image data is lost. Is configured to execute a white balance adjustment process for adjusting the magnitude of the output value output from (see, for example, Patent Document 1).

上述したカラー画像読取装置では、ホワイトバランス調整処理として、例えば、CCDラインセンサから夫々出力される各色成分のアナログ信号のオフセット電圧を調整する処理を行なっている。しかし、アナログ信号のオフセット電圧は、周囲の温度変化、及びCCDラインセンサ自体の温度変化等によって変動する。従って、これらの温度変化の影響を最小限に止めるために、カラー画像読取装置は、原稿の読取処理を開始する直前にホワイトバランス調整処理を実行することが望ましい。
特開2001−77990号公報
In the color image reading apparatus described above, as the white balance adjustment process, for example, a process for adjusting the offset voltage of the analog signal of each color component output from each CCD line sensor is performed. However, the offset voltage of the analog signal varies depending on the ambient temperature change, the temperature change of the CCD line sensor itself, and the like. Therefore, in order to minimize the influence of these temperature changes, it is desirable for the color image reading apparatus to execute the white balance adjustment process immediately before starting the document reading process.
JP 2001-77990 A

しかし、ホワイトバランス調整処理においては、夫々のCCDラインセンサから出力されるアナログ信号のオフセット電圧を、適切なオフセット電圧となるまで、夫々適宜の大きさを1単位として増減させるため、適切に調整するまでにある程度の時間が必要である。従って、原稿の読取処理を開始する直前にホワイトバランス調整処理を実行した場合には、読取処理を開始するまでに時間がかかり、読取処理の開始時間が遅くなるという問題がある。   However, in the white balance adjustment processing, the offset voltage of the analog signal output from each CCD line sensor is increased or decreased by an appropriate amount as one unit until the offset voltage becomes an appropriate offset voltage. A certain amount of time is required until. Therefore, when the white balance adjustment process is executed immediately before starting the document reading process, it takes time to start the reading process, and there is a problem that the start time of the reading process is delayed.

本発明は斯かる事情に鑑みてなされたものであり、基準部材からの反射光に基づく基準データが有する夫々の色成分のデータ値を調整する調整処理を実行する必要がある時点で適宜実行することで、原稿の読取処理を開始する直前に前記調整処理を実行する必要がなく、常に調整処理にて調整された状態で、原稿の読取処理を開始することが可能な画像処理装置を提供することを目的とする。   The present invention has been made in view of such circumstances, and is appropriately executed when adjustment processing for adjusting the data values of the respective color components included in the reference data based on the reflected light from the reference member needs to be executed. Thus, there is provided an image processing apparatus that does not need to execute the adjustment process immediately before starting the document reading process and can start the document reading process in a state of being always adjusted by the adjustment process. For the purpose.

本発明の他の目的は、光源にて照射された光による基準部材からの反射光に基づいて取得した比較データのデータ値に基づいて、基準データが有する夫々の色成分のデータ値を調整する調整処理を行なうか否かの判断を行なうことにより、調整処理を実行すべきか否かをより正確に判断することが可能な画像処理装置を提供することにある。   Another object of the present invention is to adjust the data value of each color component included in the reference data based on the data value of the comparison data acquired based on the reflected light from the reference member by the light emitted from the light source. An object of the present invention is to provide an image processing apparatus capable of more accurately determining whether or not adjustment processing should be executed by determining whether or not to perform adjustment processing.

本発明の更に他の目的は、上述したような調整処理を行なった場合に、補正処理に用いる情報を取得することで、調整処理にて基準データが有する夫々の色成分のデータ値が調整された状態で取得した情報に基づいて精度の良い補正処理を実行することが可能な画像処理装置を提供することにある。   Still another object of the present invention is to obtain information used for the correction process when the adjustment process as described above is performed, thereby adjusting the data value of each color component included in the reference data in the adjustment process. It is an object of the present invention to provide an image processing apparatus capable of executing a highly accurate correction process based on information acquired in a state.

本発明に係る画像処理装置は、基準部材と、該基準部材からの反射光に基づいて、複数の色成分を有する基準データを取得する取得手段と、該取得手段が取得した基準データが有する夫々の色成分のデータ値を調整する調整処理を行なう調整手段とを備える画像処理装置において、前記取得手段は、前記基準部材からの反射光に基づいて比較データを取得するように構成されており、前記取得手段が取得した比較データのデータ値を所定の範囲と比較する比較手段を備え、前記調整手段は、前記比較データのデータ値が所定の範囲内にない場合に、前記調整処理を行なうように構成されていることを特徴とする。   The image processing apparatus according to the present invention includes a reference member, acquisition means for acquiring reference data having a plurality of color components based on reflected light from the reference member, and reference data acquired by the acquisition means. And an adjustment unit that performs an adjustment process for adjusting the data value of the color component of the image processing apparatus, wherein the acquisition unit is configured to acquire comparison data based on reflected light from the reference member, Comparing means for comparing the data value of the comparison data acquired by the acquiring means with a predetermined range is provided, and the adjusting means performs the adjustment processing when the data value of the comparative data is not within the predetermined range. It is comprised by these.

本発明による場合は、基準部材からの反射光に基づいて取得した比較データのデータ値が予め設定された所定の範囲内にない場合に、基準部材からの反射光に基づいて取得した基準データが有する夫々の色成分のデータ値を調整する調整処理を行なうことにより、例えば、原稿画像の読取処理を行なっていない待機中に取得した比較データのデータ値と所定の範囲との比較処理を行ない、必要に応じて前記調整処理を実行する。   In the case of the present invention, when the data value of the comparison data acquired based on the reflected light from the reference member is not within a predetermined range set in advance, the reference data acquired based on the reflected light from the reference member is By performing an adjustment process for adjusting the data values of the respective color components, for example, a comparison process is performed between the data value of the comparison data acquired during the standby period during which the document image reading process is not performed and a predetermined range, The adjustment process is executed as necessary.

本発明に係る画像処理装置は、所定の時間間隔を隔てて前記基準部材の所定の領域に光を照射する光源を備え、前記比較手段は、前記光源が照射した光による前記基準部材からの反射光に基づいて前記取得手段が取得した比較データのデータ値を所定の範囲と比較するように構成されていることを特徴とする。   The image processing apparatus according to the present invention includes a light source that irradiates a predetermined region of the reference member with a predetermined time interval, and the comparison unit reflects the light emitted from the light source from the reference member. The data value of the comparison data acquired by the acquisition unit based on light is configured to be compared with a predetermined range.

本発明による場合は、基準部材の所定の領域に所定の時間間隔を隔てて光源にて光を照射させ、この光による基準部材からの反射光に基づいて取得した比較データのデータ値が予め設定された所定の範囲内にない場合に、基準部材からの反射光に基づいて取得した基準データが有する夫々の色成分のデータ値を調整する調整処理を行なうことにより、調整処理を実行すべきか否かの判断をより正確に行なうことができ、必要に応じて前記調整処理を実行する。   In the case of the present invention, light is irradiated by a light source at a predetermined time interval to a predetermined region of the reference member, and a data value of comparison data acquired based on reflected light from the reference member by this light is set in advance. Whether or not the adjustment process should be executed by adjusting the data value of each color component of the reference data acquired based on the reflected light from the reference member when it is not within the predetermined range. Can be determined more accurately, and the adjustment process is executed as necessary.

本発明に係る画像処理装置は、前記取得手段は、原稿からの反射光に基づいて画像データを取得するように構成されており、前記取得手段が取得した画像データに補正処理を行なう補正手段を備え、前記調整手段は、前記調整処理を行なった場合に、前記補正手段が行なう補正処理に係る情報を取得する手段を備えることを特徴とする。   In the image processing apparatus according to the present invention, the acquisition unit is configured to acquire image data based on reflected light from a document, and includes a correction unit that performs correction processing on the image data acquired by the acquisition unit. And the adjusting means includes means for acquiring information relating to the correction processing performed by the correction means when the adjustment processing is performed.

本発明による場合は、原稿からの反射光に基づいて取得した画像データに補正処理を行なう構成において、上述した調整処理を行なった場合に、前記画像データに行なうべき補正処理に係る情報を取得する。   In the case of the present invention, in the configuration in which the correction process is performed on the image data acquired based on the reflected light from the document, the information related to the correction process to be performed on the image data is acquired when the adjustment process described above is performed. .

本発明によれば、複数の色成分を有する比較データのデータ値が予め設定された所定の範囲内にない場合、例えば、比較データが有する色成分の夫々のデータ値にばらつきが生じてホワイトバランスが崩れた場合に、基準部材からの反射光に基づいて取得した基準データが有する夫々の色成分のデータ値を調整する調整処理を実行することができ、原稿の読取処理を開始する直前に前記調整処理を行なう必要がなく、適切なタイミングで調整処理を実行することができる。   According to the present invention, when the data value of the comparison data having a plurality of color components is not within the predetermined range set in advance, for example, the data values of the color components of the comparison data vary to cause white balance. In the case where the image data collapses, adjustment processing for adjusting the data value of each color component included in the reference data acquired based on the reflected light from the reference member can be executed. There is no need to perform the adjustment process, and the adjustment process can be executed at an appropriate timing.

本発明によれば、基準部材の所定の領域に所定の時間間隔を隔てて光源にて照射された光による基準部材からの反射光に基づいて取得した比較データのデータ値が予め設定された所定の範囲内にない場合に、基準部材からの反射光に基づいて取得した基準データが有する夫々の色成分のデータ値を調整する調整処理を行なうことにより、調整処理を実行すべきか否かの判断をより正確に行なうことができる。   According to the present invention, the data value of the comparison data acquired based on the reflected light from the reference member by the light irradiated by the light source at a predetermined time interval in a predetermined region of the reference member is set in advance. When the adjustment processing is not performed, the adjustment processing for adjusting the data values of the respective color components included in the reference data acquired based on the reflected light from the reference member is performed, thereby determining whether the adjustment processing should be executed. Can be performed more accurately.

本発明によれば、原稿からの反射光に基づいて取得した画像データに補正処理を行なう構成において、上述したような調整処理を行なった場合に、補正処理に係る情報を取得することにより、例えば、カラー画像データについてホワイトバランスが調整された状態で取得した情報に基づいて補正処理を実行することができ、画質の劣化を防止することができる。   According to the present invention, in the configuration in which the correction processing is performed on the image data acquired based on the reflected light from the document, when the adjustment processing as described above is performed, by acquiring the information related to the correction processing, for example, The correction processing can be executed based on the information acquired with the white balance adjusted for the color image data, and the deterioration of the image quality can be prevented.

以下に、本発明に係る画像処理装置を、複合機における実施の形態を示す図面に基づいて詳述する。図1は本発明に係る複合機の構成例を示すブロック図であり、図中1は複合機を示している。複合機1は、制御部10、ROM11、RAM12、NCU(Network Control Unit)13、モデム14、読取部15、入力画像処理部16、画像メモリ17、出力画像処理部18、操作部19、表示部20、記録部21、通信インタフェース22、JPEG−CODEC23、CODEC24等を備えており、夫々はバス25を介して相互に接続されている。   Hereinafter, an image processing apparatus according to the present invention will be described in detail with reference to the drawings illustrating an embodiment of a multifunction machine. FIG. 1 is a block diagram showing an example of the configuration of a multifunction machine according to the present invention. In FIG. The multifunction device 1 includes a control unit 10, a ROM 11, a RAM 12, an NCU (Network Control Unit) 13, a modem 14, a reading unit 15, an input image processing unit 16, an image memory 17, an output image processing unit 18, an operation unit 19, and a display unit. 20, a recording unit 21, a communication interface 22, a JPEG-CODEC 23, a CODEC 24, and the like, which are connected to each other via a bus 25.

制御部10は、具体的にはCPU(Central Processing Unit) 等で構成されており、バス25を介して接続される上述したようなハードウェア各部を制御すると共に、ROM11に格納された制御プログラムに従って、種々のソフトウェア的機能を実現する。ROM11は、本実施の形態に係る複合機1としての動作に必要な種々の制御プログラム、及び読取部15におけるホワイトバランスを調整するためのホワイトバランス調整処理プログラムを予め記憶している。RAM12は、SRAM又はフラッシュメモリ等で構成され、制御部10による制御プログラムの実行時に発生するデータを一時的に記憶する。   Specifically, the control unit 10 is configured by a CPU (Central Processing Unit) or the like, and controls each of the above-described hardware units connected via the bus 25, and in accordance with a control program stored in the ROM 11. Various software functions are realized. The ROM 11 stores in advance various control programs necessary for operation as the multifunction device 1 according to the present embodiment and a white balance adjustment processing program for adjusting white balance in the reading unit 15. The RAM 12 is configured by SRAM, flash memory, or the like, and temporarily stores data generated when the control unit 10 executes the control program.

モデム14は、ファクシミリ通信が可能なファックスモデムで構成されており、NCU13と直接的にも接続されている。NCU13は、公衆電話回線網Lと接続されており、必要に応じてモデム14を公衆電話回線網Lと接続し、公衆電話回線網Lを介して外部の装置との間でのファクシミリ通信を可能としている。   The modem 14 is a fax modem capable of facsimile communication, and is directly connected to the NCU 13. The NCU 13 is connected to the public telephone line network L. If necessary, the NCU 13 can connect the modem 14 to the public telephone line network L to enable facsimile communication with an external device via the public telephone line network L. It is said.

読取部15は、CCD(Charge Coupled Device)等を利用したスキャナで原稿を読み取ることにより、例えばRGB表色系等の複数の色成分を有するカラー画像データを取得する取得手段として動作し、取得した画像データを入力画像処理部16に入力する。入力画像処理部16は、読取部15から入力されたRGB表色系の画像データを、必要に応じて例えばLab(L:明度情報,a:赤〜緑の色情報,b:黄〜青の色情報)表色系の画像データ又はYCrCb(Y:輝度成分、CrCb:色差成分)表色系の画像データに変換する。   The reading unit 15 operates as an acquisition unit that acquires color image data having a plurality of color components such as an RGB color system by reading an original with a scanner using a CCD (Charge Coupled Device) or the like. The image data is input to the input image processing unit 16. The input image processing unit 16 converts the RGB color system image data input from the reading unit 15 into, for example, Lab (L: lightness information, a: red to green color information, b: yellow to blue color). Color information) is converted into color system image data or YCrCb (Y: luminance component, CrCb: color difference component) color system image data.

JPEG−CODEC23は、カラー多値データにJPEG方式に基づく符号化処理を行なうものであり、入力画像処理部16により生成されたYCrCb表色系の画像データにJPEG方式に基づく符号化処理を行ない、JPEG圧縮した画像データを画像メモリ17に記憶させる。画像メモリ17は、DRAMにより構成されており、JPEG−CODEC23にて圧縮された画像データ及び入力画像処理部16から取得したLab表色系の画像データを記憶する。   The JPEG-CODEC 23 performs encoding processing based on the JPEG method on color multilevel data, performs encoding processing based on the JPEG method on the YCrCb color system image data generated by the input image processing unit 16, JPEG compressed image data is stored in the image memory 17. The image memory 17 is constituted by a DRAM, and stores image data compressed by the JPEG-CODEC 23 and Lab color system image data acquired from the input image processing unit 16.

また、画像メモリ17に記憶してある画像データは、必要に応じて出力画像処理部18又はJPEG−CODEC23に読み出される。JPEG−CODEC23は、画像メモリ17から読み出されたJPEG圧縮された画像データに復号処理を行ない、伸張した画像データを出力画像処理部18へ出力する。出力画像処理部18は、画像メモリ17から読み出されたLab表色系の画像データ又はJPEG−CODEC23により復号されたYCrCb表色系の画像データを、例えばCMYK(C:シアン、M:マゼンタ、Y:イエロー、K:ブラック)表色系の画像出力用の画像データに変換する。   Further, the image data stored in the image memory 17 is read by the output image processing unit 18 or the JPEG-CODEC 23 as necessary. The JPEG-CODEC 23 performs a decoding process on the JPEG-compressed image data read from the image memory 17 and outputs the decompressed image data to the output image processing unit 18. The output image processing unit 18 converts the Lab color system image data read from the image memory 17 or the YCrCb color system image data decoded by the JPEG-CODEC 23 into, for example, CMYK (C: cyan, M: magenta, Y: yellow, K: black) are converted into image data for color image output.

出力画像処理部18が生成する画像出力用のCMYK表色系の画像データは、順次CODEC24に入力される。CODEC24は、モノクロ2値データに例えばMH,MR,MMR,JBIG等の方式に基づく符号化処理を行なうものであり、出力画像処理部18から取得した画像データに所定の符号化処理を行ない、得られた画像データを画像メモリ17に一旦記憶させる。また、制御部10は、CODEC24にて符号化された画像データを画像メモリ17から読み出し、CODEC24にて復号処理を行なった後、記録部21に入力する。記録部21は、電子写真方式のプリンタ装置であって、出力画像処理部18にて変換された画像出力用の画像データに基づく画像を、ハードコピーとしてA3縦,B4縦,A4縦,B5横及びA5横等の各サイズの記録紙又はOHPシートから最適なサイズのものを選択して記録する。   The CMYK color system image data for image output generated by the output image processing unit 18 is sequentially input to the CODEC 24. The CODEC 24 performs encoding processing based on a method such as MH, MR, MMR, JBIG or the like on monochrome binary data, performs predetermined encoding processing on the image data acquired from the output image processing unit 18, and obtains the obtained binary data. The obtained image data is temporarily stored in the image memory 17. Further, the control unit 10 reads out the image data encoded by the CODEC 24 from the image memory 17, performs decoding processing by the CODEC 24, and then inputs the decoded data to the recording unit 21. The recording unit 21 is an electrophotographic printer device, and an image based on the image data for image output converted by the output image processing unit 18 is A3 vertical, B4 vertical, A4 vertical, B5 horizontal as a hard copy. And A5 horizontal recording paper or OHP sheet of each size is selected and recorded.

一方、出力画像処理部18は、画像データを通信インタフェース22を介して外部の装置へ送信する場合、画像メモリ17から読み出された画像データを所定のフォーマットに変換して通信インタフェース22に入力する。通信インタフェース22は、図示しないネットワークを介して接続される外部のコンピュータ等の装置へ、出力画像処理部18から入力された画像データを送信し、また、ネットワークを介して外部の装置から画像データを受信する。   On the other hand, when transmitting the image data to an external device via the communication interface 22, the output image processing unit 18 converts the image data read from the image memory 17 into a predetermined format and inputs it to the communication interface 22. . The communication interface 22 transmits the image data input from the output image processing unit 18 to an external computer or the like connected via a network (not shown), and receives the image data from the external device via the network. Receive.

表示部20は、液晶ディスプレイ(LCD)で構成されており、複合機1の動作状況、複合機1として表示すべき表示画面、操作部19から入力された文字等を表示する。操作部19は、複合機1を操作するために必要な各種のキーを備えている。尚、表示部20をタッチパネル方式のものとすることにより、操作部19の各種のキーのうちの一部又は全部を代用することも可能である。   The display unit 20 is configured by a liquid crystal display (LCD), and displays an operation status of the multifunction device 1, a display screen to be displayed as the multifunction device 1, characters input from the operation unit 19, and the like. The operation unit 19 includes various keys necessary for operating the multifunction device 1. In addition, it is also possible to substitute a part or all of the various keys of the operation unit 19 by using the display unit 20 of a touch panel type.

図2は読取部15の構成例を示す図であり、図2(a)の概観斜視図に示すように、読取部15は、直方体型の筺体30と、筺体30上面の一辺に開閉自在に取り付けられたプラテンカバー31と、筺体30上面に設けられた長方形型のプラテンガラス(原稿載置台)32とを備えている。この読取部15は、FBS(Flat Bed Scanner)方式の読み取りが可能であるが、ADF(Automatic Document Feeder) 方式のスキャナを備えて、原稿を自動的に搬送して読み取ることも可能である。   FIG. 2 is a diagram illustrating a configuration example of the reading unit 15. As illustrated in the perspective view of FIG. 2A, the reading unit 15 can be opened and closed to a rectangular parallelepiped type housing 30 and one side of the upper surface of the housing 30. An attached platen cover 31 and a rectangular platen glass (original placement table) 32 provided on the upper surface of the housing 30 are provided. The reading unit 15 can read an FBS (Flat Bed Scanner) method, but can also include an ADF (Automatic Document Feeder) method scanner to automatically convey and read an original.

図2(b)は読取部15の内部構成例を示すブロック図であり、図2(b)は図2(a)において矢符Aで示す方向から見た図を示している。読取部15の筺体30は、プラテンガラス32を備える上面板の内側に、矢符yで示す方向(副走査方向)でのプラテンガラス32の一端辺(図2においては左側端辺)に沿って、白い板からなる白基準板(基準部材)33が、長手方向を図2(a)の矢符xで示す方向(主走査方向)に平行に配置してある。   FIG. 2B is a block diagram illustrating an example of the internal configuration of the reading unit 15, and FIG. 2B illustrates a diagram viewed from the direction indicated by the arrow A in FIG. The housing 30 of the reading unit 15 is arranged on the inner side of the upper plate including the platen glass 32 along one end side (left end side in FIG. 2) of the platen glass 32 in the direction indicated by the arrow y (sub-scanning direction). A white reference plate (reference member) 33 made of a white plate is arranged in parallel to the direction (main scanning direction) indicated by the arrow x in FIG.

また、筺体30の内部には、白色蛍光灯又は冷陰極管等からなり、白基準板33及びプラテンガラス32上に載置された原稿に光を照射する光源ランプ(光源)34、白基準板33及び原稿からの反射光の光路lを変更する板状の第1ミラー35、第2ミラー37及び第3ミラー38を、夫々所定の位置で、長手方向を主走査方向(図2(a)中のxで示す方向)に平行に配置してある。光源ランプ34及び第1ミラー35は、副走査方向yに、プラテンガラス32の一端部をホームポジションとして、このホームポジションから他端部までの移動が可能な第1キャリッジ36に搭載されている。また、第2ミラー37及び第3ミラー38は、第1キャリッジ36の移動に対応して、副走査方向yに、プラテンガラス32の中央部から前記他端部までの移動を行なう第2キャリッジ39に搭載されている。   The housing 30 includes a white fluorescent lamp, a cold cathode tube, or the like, and a light source lamp (light source) 34 for irradiating a document placed on the white reference plate 33 and the platen glass 32, and a white reference plate. 33 and the plate-like first mirror 35, second mirror 37, and third mirror 38 that change the optical path l of the reflected light from the original, respectively, at a predetermined position and the longitudinal direction in the main scanning direction (FIG. 2A). (Direction indicated by x in the middle). The light source lamp 34 and the first mirror 35 are mounted on a first carriage 36 that can move from the home position to the other end in the sub-scanning direction y with one end of the platen glass 32 as a home position. The second mirror 37 and the third mirror 38 move in the sub-scanning direction y from the center of the platen glass 32 to the other end in response to the movement of the first carriage 36. It is mounted on.

更に、筺体30の内部には、第1ミラー35、第2ミラー37及び第3ミラー38により光路lが変更された白基準板33及び原稿からの反射光を集光する結像レンズ40を備え、結像レンズ40を通して前記反射光が入射されるCCDラインセンサ41も、長手方向を主走査方向xに平行に配置してある。このような構成により、読取部15は、第1キャリッジ36及び第2キャリッジ39を副走査方向yに移動させながら、主走査方向xを長手方向としたCCDラインセンサ41により副走査方向yに1ラインずつ原稿画像の読取を行なう。   Further, the housing 30 includes a white reference plate 33 whose optical path l has been changed by the first mirror 35, the second mirror 37, and the third mirror 38 and an imaging lens 40 that condenses the reflected light from the document. The CCD line sensor 41 to which the reflected light is incident through the imaging lens 40 is also arranged with the longitudinal direction parallel to the main scanning direction x. With such a configuration, the reading unit 15 moves the first carriage 36 and the second carriage 39 in the sub-scanning direction y while the CCD line sensor 41 sets the main scanning direction x as the longitudinal direction to 1 in the sub-scanning direction y. The original image is read line by line.

上述した構成により、第1キャリッジ36は、プラテンガラス32上に載置された原稿の下面に沿って副走査方向yに移動しながら原稿により反射された反射光を第1ミラー35により反射させる。また、この反射光を第2ミラー37及び第3ミラー38により反射させて所定の光路lに変更し、この所定の光路lで入射された光を結像レンズ40を介してCCDラインセンサ41が取得する。尚、本実施の形態における読取部15は、図3に示すように、RGB表色系において、夫々R成分,G成分及びB成分に対応した反射光を取得すべく、3つのCCDラインセンサ41r,41g,41bを備えており、夫々取得した光の大きさに基づきアナログ信号を生成し、生成したアナログ信号を夫々対応するAFE(Analog Front End:アナログ・フロント・エンド)42r,42g,42bに入力する。   With the above-described configuration, the first carriage 36 reflects the reflected light reflected by the document by the first mirror 35 while moving in the sub-scanning direction y along the lower surface of the document placed on the platen glass 32. The reflected light is reflected by the second mirror 37 and the third mirror 38 to change to a predetermined optical path l, and the CCD line sensor 41 passes the light incident on the predetermined optical path l via the imaging lens 40. get. As shown in FIG. 3, the reading unit 15 according to the present embodiment includes three CCD line sensors 41r to obtain reflected light corresponding to the R component, the G component, and the B component, respectively, in the RGB color system. , 41g, and 41b, respectively, generate analog signals based on the obtained light magnitudes, and generate the analog signals in corresponding AFEs (Analog Front Ends) 42r, 42g, and 42b, respectively. input.

CCDラインセンサ41r,41g,41bは、第1キャリッジ36及び第2キャリッジ39が移動を開始する所定時間前から、光源ランプ34から照射された光を取得しており、筺体30の上面内側に設けられた白基準板33からの反射光も取得している。従って、CCDラインセンサ41r,41g,41bにより取得した反射光に基づいて、AFE42r,42g,42b及びA/D変換器43r,43g,43bにて生成されるデータには、原稿からの反射光に基づく原稿画像データ、及び白基準板33からの反射光に基づく基準データが含まれ、読取部15は基準データを取得する取得手段としても動作する。   The CCD line sensors 41r, 41g, and 41b acquire light emitted from the light source lamp 34 from a predetermined time before the first carriage 36 and the second carriage 39 start moving, and are provided inside the upper surface of the housing 30. The reflected light from the obtained white reference plate 33 is also acquired. Therefore, based on the reflected light acquired by the CCD line sensors 41r, 41g, and 41b, the data generated by the AFEs 42r, 42g, and 42b and the A / D converters 43r, 43g, and 43b include the reflected light from the document. The original document image data and the reference data based on the reflected light from the white reference plate 33 are included, and the reading unit 15 also operates as an acquisition unit that acquires the reference data.

図3は読取部15の構成例を示すブロック図であり、読取部15は、CCDラインセンサ41r,41g,41bが夫々出力するR成分、G成分、B成分のアナログ信号に対応して、AFE42r,42g,42bと、A/D(アナログ/デジタル)変換器43r,43g,43bとを有しており、更にシェーディング補正部(補正手段)44を備えている。CCDラインセンサ41r,41g,41bは、第1ミラー35,第2ミラー37及び第3ミラー38により反射された反射光を、R成分,G成分及びB成分夫々のアナログ信号に変換し、変換したアナログ信号を夫々AFE42r,42g,42bへ出力する。   FIG. 3 is a block diagram illustrating a configuration example of the reading unit 15. The reading unit 15 corresponds to the analog signals of the R component, the G component, and the B component that are output from the CCD line sensors 41r, 41g, and 41b, respectively. , 42g, 42b, and A / D (analog / digital) converters 43r, 43g, 43b, and further includes a shading correction unit (correction means) 44. The CCD line sensors 41r, 41g, and 41b convert the reflected light reflected by the first mirror 35, the second mirror 37, and the third mirror 38 into analog signals of R component, G component, and B component, respectively. Analog signals are output to the AFEs 42r, 42g, and 42b, respectively.

AFE42r,42g,42bは夫々、増幅器(図示せず)、サンプルホールド回路(図示せず)等を備え、CCDラインセンサ41r,41g,41bから出力されたアナログ信号を夫々、増幅器により所定の大きさに増幅し、増幅されたアナログ信号を、サンプルホールド回路により一定のタイミング毎にサンプルホールドし、この各値をA/D変換器43r,43g,43bへ出力する。A/D変換器43r,43g,43bは、AFE42r,42g,42bから取得したアナログ信号をデジタル信号に変換し、シェーディング補正部44へ出力する。尚、本実施の形態においては、A/D変換器43r,43g,43bは、8ビットのデジタル信号を出力している。   Each of the AFEs 42r, 42g, and 42b includes an amplifier (not shown), a sample hold circuit (not shown), and the like, and the analog signals output from the CCD line sensors 41r, 41g, and 41b are respectively given a predetermined magnitude by the amplifier. The analog signal thus amplified is sampled and held at a certain timing by a sample and hold circuit, and each value is output to the A / D converters 43r, 43g, and 43b. The A / D converters 43r, 43g, and 43b convert the analog signals acquired from the AFEs 42r, 42g, and 42b into digital signals, and output the digital signals to the shading correction unit 44. In the present embodiment, the A / D converters 43r, 43g, and 43b output 8-bit digital signals.

シェーディング補正部44にはRAM44bが接続されており、シェーディング補正部44は、A/D変換器43r,43g,43bの夫々から入力される基準データに基づき生成するシェーディングデータをRAM44bに記憶する。また、シェーディング補正部44は、A/D変換器43r,43g,43bの夫々から入力される原稿画像データに対して、RAM44bに記憶してあるシェーディングデータに基づいて、読取部15に含まれる照明系、結像系及び撮像系で生じた各種の歪みを取り除くシェーディング補正処理を行ない、処理した画像データを入力画像処理部16へ出力する。   A RAM 44b is connected to the shading correction unit 44, and the shading correction unit 44 stores shading data generated based on reference data input from the A / D converters 43r, 43g, and 43b in the RAM 44b. Further, the shading correction unit 44 illuminates the reading unit 15 based on the shading data stored in the RAM 44b with respect to the document image data input from the A / D converters 43r, 43g, and 43b. A shading correction process for removing various distortions generated in the system, the imaging system, and the imaging system is performed, and the processed image data is output to the input image processing unit 16.

ここで、読取部15は、例えば原稿画像の読取処理を行なっていない待機中に、所定のタイミングで、第1キャリッジ36及び第2キャリッジ39を移動させずに白基準板33の所定の領域からの光を、CCDラインセンサ41r,41g,41bにて取得し、AFE42r,42g,42b及びA/D変換器43r,43g,43bにて生成される比較データを取得する取得手段としても動作している。尚、比較データは、白基準板33からの反射光に基づいて生成される基準データにおいて、主走査方xの1ライン分全ての画素データに基づいて生成する必要はなく、1ライン中の一部の画素データのみに基づいて生成すればよい。例えば、主走査方向xに隣合う4画素が夫々副走査方向yに隣合う4画素による16画素の平均値を比較データとしてもよい。   Here, the reading unit 15 starts from a predetermined region of the white reference plate 33 without moving the first carriage 36 and the second carriage 39 at a predetermined timing, for example, during a standby period when the document image reading process is not performed. Is obtained by the CCD line sensors 41r, 41g, 41b, and operates as an acquisition means for acquiring comparison data generated by the AFEs 42r, 42g, 42b and the A / D converters 43r, 43g, 43b. Yes. In the reference data generated based on the reflected light from the white reference plate 33, the comparison data need not be generated based on all the pixel data for one line in the main scanning method x. It may be generated based only on the pixel data of the part. For example, an average value of 16 pixels by four pixels adjacent in the main scanning direction x and four pixels adjacent in the sub-scanning direction y may be used as the comparison data.

また、シェーディング補正部44は、このように取得した比較データのデータ値を、予めROM11に設定してありRAM44bに読み出した所定の範囲と比較する比較回路(比較手段)44aを備えており、A/D変換器43r,43g,43bの夫々から入力される比較データのデータ値が所定の範囲内の値でない場合に、その旨を制御部10に通知する。   Further, the shading correction unit 44 includes a comparison circuit (comparison means) 44a that compares the data value of the comparison data acquired in this way with a predetermined range set in advance in the ROM 11 and read out to the RAM 44b. When the data value of the comparison data input from each of the / D converters 43r, 43g, and 43b is not within a predetermined range, the control unit 10 is notified accordingly.

制御部10は、読取部15が取得した比較データのデータ値が所定の範囲内の値でないことを通知された場合、ROM11に記憶してあるホワイトバランス調整処理プログラムをRAM12に読み出して実行し、ホワイトバランス調整処理を行なう調整手段として動作する。ホワイトバランス調整処理は、具体的には、制御部10が、CCDラインセンサ41r,41g,41b、AFE42r,42g,42b及びA/D変換器43r,43g,43bにて生成された白基準板33からの反射光に基づく基準データにおける夫々の色成分のデータ値が同程度になるように、AFE42r,42g,42bにおける増幅器のバイアス及びゲインを調整する処理である。より具体的には、基準データにおいて、各色成分毎に主走査方向xに隣合う4画素が夫々副走査方向yに隣合う4画素による16画素の平均値を算出し、算出したデータ値を予めROM11に記憶してある目標値となるようにAFE42r,42g,42bが備える各増幅器のバイアス及びゲインを調整する。   When notified that the data value of the comparison data acquired by the reading unit 15 is not within a predetermined range, the control unit 10 reads the white balance adjustment processing program stored in the ROM 11 into the RAM 12 and executes it. It operates as an adjustment means for performing white balance adjustment processing. Specifically, in the white balance adjustment processing, the control unit 10 generates the white reference plate 33 generated by the CCD line sensors 41r, 41g, 41b, the AFEs 42r, 42g, 42b, and the A / D converters 43r, 43g, 43b. This is a process of adjusting the bias and gain of the amplifiers in the AFEs 42r, 42g, and 42b so that the data values of the respective color components in the reference data based on the reflected light from the same level. More specifically, in the reference data, an average value of 16 pixels by four pixels adjacent to each other in the main scanning direction x for each color component is calculated, and the calculated data value is calculated in advance. The bias and gain of each amplifier included in the AFEs 42r, 42g, and 42b are adjusted so that the target values stored in the ROM 11 are obtained.

尚、ホワイトバランス調整処理において、CCDラインセンサ41r,41g,41b、AFE42r,42g,42b及びA/D変換器43r,43g,43bにて生成される基準データにおける夫々の色成分のデータ値の目標値は、増幅器のバイアスを調整する際に用いる黒データ用の目標値と、増幅器のゲインを調整する際に用いる白データ用の目標値として予めROM11に記憶してあり、夫々の色成分において共通で用いられる。また、本実施の形態の複合機1において、制御部10は、上述したようなホワイトバランス調整処理を実行した場合、シェーディング補正部44にて、A/D変換器43r,43g,43bから出力される基準データに基づくシェーディングデータ(補正処理に係る情報)を取得し、取得したシェーディングデータをRAM44bに記憶させる。   In the white balance adjustment processing, the target of the data value of each color component in the reference data generated by the CCD line sensors 41r, 41g, 41b, the AFEs 42r, 42g, 42b and the A / D converters 43r, 43g, 43b. The values are stored in the ROM 11 in advance as a target value for black data used for adjusting the bias of the amplifier and a target value for white data used for adjusting the gain of the amplifier, and are common to the respective color components. Used in Further, in the multifunction device 1 of the present embodiment, when the white balance adjustment process as described above is executed, the control unit 10 is output from the A / D converters 43r, 43g, and 43b by the shading correction unit 44. Shading data (information relating to correction processing) based on the reference data to be acquired is acquired, and the acquired shading data is stored in the RAM 44b.

ここで、シェーディング補正部44が行なうシェーディング補正処理に用いるシェーディングデータには、黒データB及び白データWがある。黒データBは、光源ランプ34の消灯時に、白基準板33からの光に基づいてCCDラインセンサ41r,41g,41b、AFE42r,42g,42b、A/D変換器43r,43g,43bを経て出力された基準データにおける複数の主走査方向のラインの平均値であり、白データWは、光源ランプ34の点灯時に、白基準板33からの反射光に基づいてCCDラインセンサ41r,41g,41b、AFE42r,42g,42b、A/D変換器43r,43g,43bを経て出力された基準データにおける複数の主走査方向のラインの平均値である。   Here, the shading data used in the shading correction processing performed by the shading correction unit 44 includes black data B and white data W. The black data B is output via the CCD line sensors 41r, 41g, 41b, AFEs 42r, 42g, 42b, and A / D converters 43r, 43g, 43b based on the light from the white reference plate 33 when the light source lamp 34 is turned off. The white data W is an average value of a plurality of lines in the main scanning direction in the reference data, and the white data W is based on the reflected light from the white reference plate 33 when the light source lamp 34 is turned on. It is an average value of a plurality of lines in the main scanning direction in the reference data output through the AFEs 42r, 42g, 42b and the A / D converters 43r, 43g, 43b.

シェーディング補正部44は、上述したように、制御部10によるホワイトバランス調整処理の実行後に取得してRAM44bに記憶されたシェーディングデータ(黒データB及び白データW)に基づいて、A/D変換器43r,43g,43b夫々から出力される原稿画像データに対してシェーディング補正処理を行なう。尚、シェーディング補正部44は、例えば以下のような(1)式に基づいた補正処理を行なう。   As described above, the shading correction unit 44 is an A / D converter based on the shading data (black data B and white data W) acquired after the white balance adjustment processing by the control unit 10 and stored in the RAM 44b. Shading correction processing is performed on the document image data output from 43r, 43g, and 43b. In addition, the shading correction | amendment part 44 performs the correction process based on the following (1) Formula, for example.

Vout=(Vin−B)×{2の(ビット数)乗}/(W−B) …(1)
Vin:補正前の原稿画像データ,Vout:補正後の原稿画像データ,
ビット数:A/D変換器の有効出力ビット数
Vout = (Vin−B) × {2 to the power of (number of bits)} / (W−B) (1)
Vin: original image data before correction, Vout: original image data after correction,
Number of bits: Number of effective output bits of the A / D converter

本実施の形態の読取部15では、CCDラインセンサ41r,41g,41b、AFE42r,42g,42b及びA/D変換器43r,43g,43bは、夫々並列に処理を行なっており、シェーディング補正部44は、A/D変換器43r,43g,43bから夫々出力されるR成分、G成分、B成分の画像データについて、例えば、R成分、G成分、B成分の順にシェーディング補正処理を実行する。尚、R成分、G成分、B成分の画像データに対応してシェーディング補正部44を3つ設けることにより、シェーディング補正処理もR成分、G成分、B成分毎に並列に実行する構成とすることもできる。   In the reading unit 15 of the present embodiment, the CCD line sensors 41r, 41g, 41b, the AFEs 42r, 42g, 42b, and the A / D converters 43r, 43g, 43b perform processing in parallel, and the shading correction unit 44. For example, the R component, G component, and B component image data output from the A / D converters 43r, 43g, and 43b are subjected to shading correction processing in the order of R component, G component, and B component, for example. By providing three shading correction units 44 corresponding to the R component, G component, and B component image data, the shading correction processing is also executed in parallel for each of the R component, G component, and B component. You can also.

以下に、上述した構成の複合機1において、待機中の読取部15によるホワイトバランス調整処理について説明する。図4は本発明に係る複合機1におけるホワイトバランス調整処理を実行するか否かの判断処理手順を示すフローチャートである。複合機1において、制御部10は、プラテンガラス32上に原稿が載置されて各種のボタンがオンされる等により、原稿画像の読取処理が指示されたか否かを判断する(S1)。ここで、原稿画像の読取処理が指示されたと判断した場合(S1:YES)、制御部10は、読取部15により原稿画像の読取処理を実行させる(S2)。具体的には、読取部15の光源ランプ34、CCDラインセンサ41r,41g,41b等を駆動させ、プラテンガラス32上に載置された原稿からの反射光に基づいて、AFE42r,42g,42b及びA/D変換器43r,43g,43bにて原稿画像データを生成し、得られた原稿画像データを入力画像処理部16へ入力する。   In the following, the white balance adjustment process by the reading unit 15 in standby in the multifunction device 1 having the above-described configuration will be described. FIG. 4 is a flowchart showing a determination processing procedure for determining whether or not to execute the white balance adjustment processing in the multifunction machine 1 according to the present invention. In the multi function device 1, the control unit 10 determines whether or not a document image reading process has been instructed by placing a document on the platen glass 32 and turning on various buttons (S1). If it is determined that the document image reading process has been instructed (S1: YES), the control unit 10 causes the reading unit 15 to execute the document image reading process (S2). Specifically, the light source lamp 34 of the reading unit 15, the CCD line sensors 41 r, 41 g, 41 b and the like are driven, and AFEs 42 r, 42 g, 42 b, and the like are based on the reflected light from the document placed on the platen glass 32. Document image data is generated by the A / D converters 43r, 43g, and 43b, and the obtained document image data is input to the input image processing unit 16.

一方、制御部10は、原稿画像の読取処理が指示されていないと判断した場合(S1:NO)、即ち、読取部15が待機状態である場合、所定のタイミングで第1キャリッジ36及び第2キャリッジ39を駆動させずに、CCDラインセンサ41r,41g,41bを駆動させる(S3)。従って、シェーディング補正部44は、CCDラインセンサ41r,41g,41bが取得した白基準板33の所定領域からの光に基づいて、AFE42r,42g,42b及びA/D変換器43r,43g,43bにて生成された比較データを取得する(S4)。また、シェーディング補正部44は、取得した比較データの夫々の色成分におけるデータ値を算出し(S5)、夫々のデータ値とRAM44bに記憶してある所定の範囲とを比較することで、夫々のデータ値が所定の範囲内の値であるか否かを判断する(S6)。尚、夫々の色成分におけるデータ値として、例えば、比較データの夫々の色成分における複数の画素データの平均値を算出する。   On the other hand, when the control unit 10 determines that the document image reading process is not instructed (S1: NO), that is, when the reading unit 15 is in a standby state, the first carriage 36 and the second carriage 36 at a predetermined timing. The CCD line sensors 41r, 41g, and 41b are driven without driving the carriage 39 (S3). Therefore, the shading correction unit 44 applies the AFEs 42r, 42g, 42b and the A / D converters 43r, 43g, 43b to the AFEs 42r, 42g, 42b based on the light from the predetermined area of the white reference plate 33 acquired by the CCD line sensors 41r, 41g, 41b. The comparison data generated in this way is acquired (S4). In addition, the shading correction unit 44 calculates data values for the respective color components of the acquired comparison data (S5), and compares each data value with a predetermined range stored in the RAM 44b, so that each data value is compared. It is determined whether or not the data value is within a predetermined range (S6). As the data value in each color component, for example, an average value of a plurality of pixel data in each color component of the comparison data is calculated.

シェーディング補正部44は、取得した比較データの夫々の色成分におけるデータ値が所定の範囲内の値であると判断した場合(S6:YES)、ステップS1の処理に戻り、所定の範囲内の値でないと判断した場合(S6:NO)、AFE42r,42g,42bに備える増幅器のバイアス及びゲインを調整するホワイトバランス調整処理を実行する(S7)。尚、ホワイトバランス調整処理については後に詳述する。   When the shading correction unit 44 determines that the data value in each color component of the acquired comparison data is a value within a predetermined range (S6: YES), the shading correction unit 44 returns to the process of step S1 and returns a value within the predetermined range. If not (S6: NO), white balance adjustment processing for adjusting the bias and gain of the amplifiers provided in the AFEs 42r, 42g, and 42b is executed (S7). The white balance adjustment process will be described in detail later.

上述したように、複合機1において、読取部15が待機状態である場合に、所定のタイミングでCCDラインセンサ41r,41g,41b、AFE42r,42g,42b及びA/D変換器43r,43g,43bにて生成される比較データのデータ値に基づいて、ホワイトバランスが崩れたことを検知し、ホワイトバランスが崩れたことを検知した場合に、ホワイトバランス調整処理を行なうことにより、常にホワイトバランスが調整された状態で原稿画像の読取処理を行なうことができる。   As described above, in the multi-function device 1, when the reading unit 15 is in the standby state, the CCD line sensors 41r, 41g, 41b, the AFEs 42r, 42g, 42b and the A / D converters 43r, 43g, 43b are provided at a predetermined timing. Based on the data value of the comparison data generated at, the white balance is always adjusted by detecting that the white balance has been lost and detecting that the white balance has been lost. In this state, the document image reading process can be performed.

以下に、上述した構成の複合機1におけるホワイトバランス調整処理について説明する。図5及び図6は本発明に係る複合機1におけるホワイトバランス調整処理手順を示すフローチャートである。複合機1において、シェーディング補正部44が、上述したように、A/D変換器43r,43g,43bの夫々から入力される比較データの夫々の色成分におけるデータ値が所定の範囲内の値ではなく、ホワイトバランスが崩れていると検知した場合、その旨を制御部10へ通知した場合、制御部10は、ROM11に記憶してあるホワイトバランス調整処理プログラムをRAM12に読み出して順次実行する。   Hereinafter, the white balance adjustment process in the multifunction device 1 having the above-described configuration will be described. 5 and 6 are flowcharts showing the white balance adjustment processing procedure in the multifunction machine 1 according to the present invention. In the multi function device 1, the shading correction unit 44 determines that the data value in each color component of the comparison data input from each of the A / D converters 43 r, 43 g, 43 b is a value within a predetermined range as described above. However, when it is detected that the white balance is lost, the control unit 10 reads out the white balance adjustment processing program stored in the ROM 11 to the RAM 12 and sequentially executes the white balance adjustment processing program.

制御部10は、まず、読取部15のAFE42r,42g,42bが備える増幅器の増幅率を予めROM11等に記憶してある初期値に設定することにより初期設定を行ない(S11)、光源ランプ34を点灯させずにCCDラインセンサ41r,41g,41bを駆動させる(S12)。読取部15においては、第1キャリッジ36、第2キャリッジ等の駆動を行なわず、白基準板33からの光をCCDラインセンサ41r,41g,41bにて取得し、取得した光に基づいてAFE42r,42g,42b及びA/D変換器43r,43g,43bにて生成される基準データを取得する(S13)。また、制御部10は、取得した基準データから1つの色成分を選択し、選択した色成分における平均値を算出する(S14)。具体的には、例えば、選択した色成分の基準データにおける複数の画素データにおける平均値を算出する。   First, the control unit 10 performs initial setting by setting the amplification factor of the amplifier included in the AFE 42r, 42g, 42b of the reading unit 15 to an initial value stored in advance in the ROM 11 or the like (S11), and the light source lamp 34 is set. The CCD line sensors 41r, 41g, and 41b are driven without lighting (S12). The reading unit 15 does not drive the first carriage 36, the second carriage, etc., and acquires light from the white reference plate 33 by the CCD line sensors 41r, 41g, 41b, and based on the acquired light, the AFE 42r, Reference data generated by 42g, 42b and the A / D converters 43r, 43g, 43b is acquired (S13). Further, the control unit 10 selects one color component from the acquired reference data, and calculates an average value in the selected color component (S14). Specifically, for example, an average value in a plurality of pixel data in the reference data of the selected color component is calculated.

制御部10は、算出した平均値が予めROM11に設定してある黒データ用の目標値よりも大きいか否かを判断し(S15)、目標値よりも小さいと判断した場合(S15:NO)、ステップS14で選択した色成分のデータを処理するAFE42r(又は42g,42b)における増幅器のバイアスを所定値増加させて(S16)ステップS13の処理に戻る。また制御部10は、バイアスの値が増加されたAFE42rを用いて、CCDラインセンサ41r,41g,41b、AFE42r,42g,42b及びA/D変換器43r,43g,43bにて基準データを取得し(S13)、同様に、取得した基準データのうちの1つの色成分における平均値を算出する(S14)。   The control unit 10 determines whether or not the calculated average value is larger than the target value for black data set in advance in the ROM 11 (S15), and determines that the calculated average value is smaller than the target value (S15: NO). The amplifier bias in the AFE 42r (or 42g, 42b) that processes the color component data selected in step S14 is increased by a predetermined value (S16), and the process returns to step S13. Further, the control unit 10 uses the AFE 42r with the increased bias value to acquire reference data by the CCD line sensors 41r, 41g, 41b, the AFE 42r, 42g, 42b, and the A / D converters 43r, 43g, 43b. (S13) Similarly, an average value of one color component in the acquired reference data is calculated (S14).

制御部10は、算出した平均値が予め設定してある黒データ用の目標値よりも大きくなるまで、ステップS13からS16までの処理を繰り返し、算出した平均値が目標値よりも大きいと判断した場合(S15:YES)、ステップS16で順次増加させたバイアスの値を、1つ前の値に設定する(S17)。   The control unit 10 repeats the processes from step S13 to S16 until the calculated average value becomes larger than the preset target value for black data, and determines that the calculated average value is larger than the target value. In the case (S15: YES), the bias value sequentially increased in step S16 is set to the previous value (S17).

次に制御部10は、光源ランプ34を点灯させ(S18)、白基準板33からの反射光に基づいてCCDラインセンサ41r,41g,41b、AFE42r,42g,42b及びA/D変換器43r,43g,43bにて生成される基準データを取得する(S19)。また、制御部10は、ステップS14と同様に、取得した基準データのうちの1つの色成分における平均値を算出し(S20)、算出した平均値が予めROM11に設定してある白データ用の目標値よりも大きいか否かを判断する(S21)。制御部10は、算出した平均値が目標値よりも小さいと判断した場合(S21:NO)、ステップS20で選択した色成分のデータを処理するAFE42r(又は42g,42b)における増幅器のゲインを所定値増加させて(S22)ステップS19の処理に戻る。   Next, the control unit 10 turns on the light source lamp 34 (S18), and based on the reflected light from the white reference plate 33, the CCD line sensors 41r, 41g, 41b, AFEs 42r, 42g, 42b, and A / D converters 43r, The reference data generated at 43g and 43b is acquired (S19). Further, similarly to step S14, the control unit 10 calculates an average value for one color component of the acquired reference data (S20), and the calculated average value is for white data that is set in the ROM 11 in advance. It is determined whether it is larger than the target value (S21). When it is determined that the calculated average value is smaller than the target value (S21: NO), the control unit 10 determines the gain of the amplifier in the AFE 42r (or 42g, 42b) that processes the data of the color component selected in step S20. The value is increased (S22), and the process returns to step S19.

制御部10は、ゲインの値が増加されたAFE42rを用いて、白基準板33からの反射光に基づいてCCDラインセンサ41r,41g,41b、AFE42r,42g,42b及びA/D変換器43r,43g,43bにて生成された基準データを取得し(S19)、同様に、取得した基準データのうちの1つの色成分における平均値を算出する(S20)。制御部10は、算出した平均値が予め設定してある白データ用の目標値よりも大きくなるまで、ステップS19からS22までの処理を繰り返し、算出した平均値が目標値よりも大きいと判断した場合(S21:YES)、ステップS22で順次増加させたゲインの値を、1つ前の値に設定する(S23)。   Based on the reflected light from the white reference plate 33, the control unit 10 uses the AFE 42r with the gain value increased, and the CCD line sensors 41r, 41g, 41b, AFEs 42r, 42g, 42b, and the A / D converter 43r, The reference data generated in 43g and 43b is acquired (S19), and similarly, an average value of one color component in the acquired reference data is calculated (S20). The control unit 10 repeats the processes from step S19 to S22 until the calculated average value becomes larger than the preset target value for white data, and determines that the calculated average value is larger than the target value. In the case (S21: YES), the gain value sequentially increased in step S22 is set to the previous value (S23).

制御部10は、光源ランプ34を消灯させ(S24)、R成分、G成分、B成分の全ての色成分について、対応するAFE42r,42g,42bの増幅器のバイアス及びゲインを調整する処理が終了したか否かを判断しており(S25)、全ての色成分についての処理が終了していないと判断した場合(S25:NO)、ステップS13の処理に戻り、夫々の色成分について、ステップS13からS24までの処理を繰り返す。また、夫々のAFE42r,42g,42bの増幅器のバイアス及びゲインを調整する処理が終了したと判断した場合(S25:YES)、即ちホワイトバランスが調整された場合、シェーディング補正部44は、光源ランプ34を点灯させずに白基準板33からの反射光に基づいてCCDラインセンサ41r,41g,41b、AFE42r,42g,42b及びA/D変換器43r,43g,43bにて生成される基準データを取得し、取得した基準データにおける平均値を算出して黒データBとして取得し(S26)RAM44bに記憶させる。   The control unit 10 turns off the light source lamp 34 (S24), and the process of adjusting the bias and gain of the corresponding AFEs 42r, 42g, and 42b for all of the R, G, and B color components is completed. If it is determined whether or not the processing for all the color components has not been completed (S25: NO), the processing returns to step S13, and for each color component, from step S13. The process up to S24 is repeated. In addition, when it is determined that the process of adjusting the bias and gain of the amplifiers of the respective AFEs 42r, 42g, and 42b is completed (S25: YES), that is, when the white balance is adjusted, the shading correction unit 44 performs the light source lamp 34. The reference data generated by the CCD line sensors 41r, 41g, 41b, the AFEs 42r, 42g, 42b and the A / D converters 43r, 43g, 43b are acquired based on the reflected light from the white reference plate 33 without turning on the LED. Then, an average value in the acquired reference data is calculated and acquired as black data B (S26) and stored in the RAM 44b.

次にシェーディング補正部44は、制御部10からの指示に従って光源ランプ34を点灯させ(S27)、白基準板33からの反射光に基づいてCCDラインセンサ41r,41g,41b、AFE42r,42g,42b及びA/D変換器43r,43g,43bにて生成される基準データを取得し、取得した基準データにおける平均値を算出して白データWとして取得し(S28)RAM44bに記憶させて処理を終了する。   Next, the shading correction unit 44 turns on the light source lamp 34 according to the instruction from the control unit 10 (S27), and the CCD line sensors 41r, 41g, 41b, AFEs 42r, 42g, 42b based on the reflected light from the white reference plate 33. The reference data generated by the A / D converters 43r, 43g, and 43b is acquired, the average value in the acquired reference data is calculated and acquired as white data W (S28), stored in the RAM 44b, and the process is terminated. To do.

上述したように、シェーディング補正部44が、A/D変換器43r,43g,43bから出力される比較データのデータ値に基づいて、ホワイトバランスが崩れたと判断した場合に、ホワイトバランス調整処理を実行し、ホワイトバランス調整処理を実行した後に、シェーディング補正処理に用いるシェーディングデータを取得しておくことで、読取部15が、常にホワイトバランスが調整された状態で原稿画像の読取処理を開始することができるとともに、ホワイトバランスが調整された状態で取得したシェーディングデータに基づく補正処理を実行することができる。   As described above, when the shading correction unit 44 determines that the white balance is lost based on the data values of the comparison data output from the A / D converters 43r, 43g, and 43b, the white balance adjustment process is executed. Then, after executing the white balance adjustment process, by acquiring the shading data used for the shading correction process, the reading unit 15 may start the reading process of the document image with the white balance always adjusted. In addition, correction processing based on shading data acquired with white balance adjusted can be executed.

上述した実施の形態では、シェーディング補正部44は待機状態である場合に、所定のタイミングで、光源ランプ34を点灯させずに取得する比較データの夫々の色成分におけるデータ値に基づいて、ホワイトバランスが崩れたことを検知するように構成されているが、待機中に所定のタイミングで光源ランプ34を点灯させ、このときに取得する比較データのデータ値に基づいてホワイトバランスが崩れたことを検知するように構成することも可能であり、この場合には、より正確にホワイトバランスが崩れたことを検知することができる。尚、白基準板33において、比較データとして必要な所定領域に光を照射できる光源ランプを別途に備えることにより、白基準板33の全体を照射する光源ランプ34を点灯させた場合と比較して効率よく、より効果的な比較データを取得することができる。   In the above-described embodiment, when the shading correction unit 44 is in the standby state, the white balance is determined based on the data value of each color component of the comparison data acquired without lighting the light source lamp 34 at a predetermined timing. The light source lamp 34 is turned on at a predetermined timing during standby, and the white balance is detected based on the data value of the comparison data acquired at this time. In this case, it is possible to more accurately detect that the white balance has been lost. In addition, in the white reference plate 33, a light source lamp that can irradiate light to a predetermined area necessary as comparison data is separately provided, so that the light source lamp 34 that irradiates the entire white reference plate 33 is turned on. Efficient and more effective comparison data can be acquired.

本発明に係る複合機の構成例を示すブロック図である。1 is a block diagram illustrating a configuration example of a multifunction machine according to the present invention. 読取部の構成例を示す図である。It is a figure which shows the structural example of a reading part. 読取部の構成例を示すブロック図である。It is a block diagram which shows the structural example of a reading part. 本発明に係る複合機におけるホワイトバランス調整処理を実行するか否かの判断処理手順を示すフローチャートである。6 is a flowchart illustrating a determination processing procedure for determining whether or not to execute white balance adjustment processing in the multifunction peripheral according to the present invention. 本発明に係る複合機におけるホワイトバランス調整処理手順を示すフローチャートである。6 is a flowchart illustrating a white balance adjustment processing procedure in the multifunction peripheral according to the present invention. 本発明に係る複合機におけるホワイトバランス調整処理手順を示すフローチャートである。6 is a flowchart illustrating a white balance adjustment processing procedure in the multifunction peripheral according to the present invention.

符号の説明Explanation of symbols

1 複合機(画像処理装置)
10 制御部(調整手段)
15 読取部(取得手段)
32 プラテンガラス
33 白基準板(基準部材)
34 光源ランプ(光源)
44 シェーディング補正部(補正手段)
44a 比較回路(比較手段)
44b RAM
1 MFP (image processing device)
10 Control unit (adjustment means)
15 Reading unit (acquisition means)
32 Platen glass 33 White reference plate (reference member)
34 Light source lamp (light source)
44 Shading correction unit (correction means)
44a Comparison circuit (comparison means)
44b RAM

Claims (3)

基準部材と、
該基準部材からの反射光に基づいて、複数の色成分を有する基準データを取得する取得手段と、
該取得手段が取得した基準データが有する夫々の色成分のデータ値を調整する調整処理を行なう調整手段と
を備える画像処理装置において、
前記取得手段は、前記基準部材からの反射光に基づいて比較データを取得するように構成されており、
前記取得手段が取得した比較データのデータ値を所定の範囲と比較する比較手段を備え、
前記調整手段は、前記比較データのデータ値が所定の範囲内にない場合に、前記調整処理を行なうように構成されていることを特徴とする画像処理装置。
A reference member;
Obtaining means for obtaining reference data having a plurality of color components based on the reflected light from the reference member;
In an image processing apparatus comprising: adjustment means for performing adjustment processing for adjusting data values of respective color components included in reference data acquired by the acquisition means;
The acquisition means is configured to acquire comparison data based on reflected light from the reference member,
Comparing means for comparing the data value of the comparison data acquired by the acquiring means with a predetermined range,
The image processing apparatus, wherein the adjustment unit is configured to perform the adjustment process when a data value of the comparison data is not within a predetermined range.
所定の時間間隔を隔てて前記基準部材の所定の領域に光を照射する光源を備え、
前記比較手段は、前記光源が照射した光による前記基準部材からの反射光に基づいて前記取得手段が取得した比較データのデータ値を所定の範囲と比較するように構成されていることを特徴とする請求項1に記載の画像処理装置。
A light source for irradiating a predetermined area of the reference member with a predetermined time interval;
The comparison means is configured to compare a data value of comparison data acquired by the acquisition means based on light reflected from the reference member by light emitted from the light source with a predetermined range. The image processing apparatus according to claim 1.
前記取得手段は、原稿からの反射光に基づいて画像データを取得するように構成されており、
前記取得手段が取得した画像データに補正処理を行なう補正手段を備え、
前記調整手段は、前記調整処理を行なった場合に、前記補正手段が行なう補正処理に係る情報を取得する手段を備えることを特徴とする請求項1又は2に記載の画像処理装置。
The acquisition means is configured to acquire image data based on reflected light from a document,
Correction means for performing correction processing on the image data acquired by the acquisition means,
The image processing apparatus according to claim 1, wherein the adjustment unit includes a unit that acquires information related to a correction process performed by the correction unit when the adjustment process is performed.
JP2003363721A 2003-10-23 2003-10-23 Image processing apparatus Pending JP2005130207A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2003363721A JP2005130207A (en) 2003-10-23 2003-10-23 Image processing apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2003363721A JP2005130207A (en) 2003-10-23 2003-10-23 Image processing apparatus

Publications (1)

Publication Number Publication Date
JP2005130207A true JP2005130207A (en) 2005-05-19

Family

ID=34642958

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2003363721A Pending JP2005130207A (en) 2003-10-23 2003-10-23 Image processing apparatus

Country Status (1)

Country Link
JP (1) JP2005130207A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009010924A (en) * 2007-05-31 2009-01-15 Ricoh Co Ltd Image reading apparatus, image forming apparatus, and method of incorporating same
JP2013085132A (en) * 2011-10-11 2013-05-09 Kyocera Document Solutions Inc Image reader and image forming apparatus equipped with the same

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009010924A (en) * 2007-05-31 2009-01-15 Ricoh Co Ltd Image reading apparatus, image forming apparatus, and method of incorporating same
JP2013085132A (en) * 2011-10-11 2013-05-09 Kyocera Document Solutions Inc Image reader and image forming apparatus equipped with the same

Similar Documents

Publication Publication Date Title
US7123390B2 (en) Image scanner
JP3101304B2 (en) Image processing device
JP4596425B2 (en) Image reading apparatus, image forming apparatus, and image reading control method
KR101309369B1 (en) Image processing apparatus and control method
US20090219558A1 (en) Image processing apparatus and image processing method
JP4111118B2 (en) Image processing device
JP3923293B2 (en) Image processing method, image processing apparatus, and image forming apparatus
US8330999B2 (en) Image reading apparatus and method to correct images
JP2005130207A (en) Image processing apparatus
JP2007215076A (en) Image reading apparatus and calibration method thereof
JP3912376B2 (en) Image reading device
JP2005191886A (en) Image reading apparatus
US11863717B2 (en) Image reading apparatus and image reading method
JP2010041595A (en) Image reader, image forming apparatus, image reading method, and computer program
JP4917952B2 (en) Image reading device
JP2007019602A (en) Image input output apparatus
JP2007258997A (en) Image processing apparatus
EP2141904A2 (en) Image reading device, image forming apparatus, and image reading method
JP4186950B2 (en) Image processing device
JP3288696B2 (en) Image processing apparatus and image processing method
JP2004159003A (en) Image reading apparatus
JP2007166072A (en) Image processor and control method thereof
JP2011097477A (en) Image processing apparatus, image forming apparatus, image processing method, image processing program, and recording medium
JP2005269154A (en) Image processing apparatus
JP2004262074A (en) Image forming apparatus, image forming method, and image recording medium

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20060818

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20070626

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20070820

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20070925

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20071119

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20071218

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20080206

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20080311