JP2005354192A - Image reader - Google Patents

Image reader Download PDF

Info

Publication number
JP2005354192A
JP2005354192A JP2004170154A JP2004170154A JP2005354192A JP 2005354192 A JP2005354192 A JP 2005354192A JP 2004170154 A JP2004170154 A JP 2004170154A JP 2004170154 A JP2004170154 A JP 2004170154A JP 2005354192 A JP2005354192 A JP 2005354192A
Authority
JP
Japan
Prior art keywords
data
shading
component
color
difference
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
JP2004170154A
Other languages
Japanese (ja)
Other versions
JP4400321B2 (en
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 JP2004170154A priority Critical patent/JP4400321B2/en
Publication of JP2005354192A publication Critical patent/JP2005354192A/en
Application granted granted Critical
Publication of JP4400321B2 publication Critical patent/JP4400321B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Landscapes

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

Abstract

<P>PROBLEM TO BE SOLVED: To provide an image reader provided with the color image reading function of an original capable of reducing the capacity of a memory for storing data used for applying shading correction to read color image data. <P>SOLUTION: The image reader 1 includes: a color line sensor 21 for reading color image data comprising data of a plurality of color components from the original; a shading RAM 30 for storing difference shading data whose pixel values are differences between pixel values of the shading data and pixel values of the shading data of other color component data; and a shading correction circuit 29 for applying shading correction to the other color component data, by using the shading data of the one color component data and the difference shading data. <P>COPYRIGHT: (C)2006,JPO&NCIPI

Description

本発明は、画像読取装置に関し、詳しくは原稿のカラー画像データを複数の色成分のデータに分解して読取るカラー読取り機能を備えた画像読取装置に関するものである。   The present invention relates to an image reading apparatus, and more particularly, to an image reading apparatus having a color reading function for reading color image data of a document by dividing it into data of a plurality of color components.

原稿のカラー画像データを読取る機能を備えた画像読取装置では、一般に、カラーラインセンサ(CCD:Charge Coupled Device)により、原稿の画像をR(Red)、G(Green)、及びB(Blue)の3成分のデータからなるRGB表色系のカラー画像データとして読取っている。このようにして読取られた原稿のカラー画像データには、通常、光量ムラや光学部品の影響、及びカラーラインセンサの画素感度のバラツキを補正するためにシェーディング補正が行われる。   In an image reading apparatus having a function of reading color image data of a document, generally, an image of the document is converted into R (Red), G (Green), and B (Blue) by a color line sensor (CCD: Charge Coupled Device). It is read out as RGB color system color image data consisting of three component data. The color image data of the original read in this way is usually subjected to shading correction to correct the unevenness in light quantity, the influence of optical components, and the variation in pixel sensitivity of the color line sensor.

具体的には、図9に示すように、原稿読取り前に予めカラーラインセンサ50により白基準板(不図示)の画像を読取ってR、G、B3成分についてそれぞれの1ライン(主走査ライン)分のデータをシェーディングデータとしてシェーディングメモリ51R、51G、及び51Bに格納する。そして、カラーラインセンサ50により原稿のカラー画像データを読取った際に、各色成分のデータに対して、シェーディングメモリ51R、51G、及び51Bからシェーディングデータを読み出して各色成分毎にシェーディング補正回路52R、52G、52Bにおいてシェーディング補正を行っている。   Specifically, as shown in FIG. 9, an image on a white reference plate (not shown) is read in advance by the color line sensor 50 before reading the document, and one line (main scanning line) for each of the R, G, and B3 components. Are stored in the shading memories 51R, 51G, and 51B as shading data. When the color image data of the original is read by the color line sensor 50, the shading data is read from the shading memories 51R, 51G, and 51B for the data of each color component, and the shading correction circuits 52R, 52G for each color component. , 52B, shading correction is performed.

ところで、上記のような画像読取装置では、1画素の濃淡を表現するビット幅を増やして各画素データの画素値を表現することにより、原稿のカラー画像データを高階調で読取っている。そのため、読取った原稿のカラー画像データのみならず、そのカラー画像データに対してシェーディング補正を行うために必要なシェーディングデータのデータサイズも当然増加する。また、原稿の読取幅、すなわち主走査方向の画素データ数が増加した場合にも、同様にシェーディングデータのデータサイズが増加する。このように、原稿の読取りが高階調になるにつれてシェーディングデータのデータサイズが増加するため、それに併せてシェーディングデータを格納するシェーディングメモリのメモリ容量を増加させる必要があるのに対し、モノクロ画像用のシェーディングデータ及びカラー画像用のシェーディングデータの格納に必要なメモリ容量を最小限に抑えることができる画像読取装置が特許文献1に開示されている。   By the way, in the image reading apparatus as described above, the color image data of the original is read at a high gradation by increasing the bit width expressing the density of one pixel and expressing the pixel value of each pixel data. Therefore, not only the color image data of the read original but also the data size of the shading data necessary for performing shading correction on the color image data naturally increases. Similarly, the data size of the shading data also increases when the document reading width, that is, the number of pixel data in the main scanning direction increases. As described above, since the data size of the shading data increases as the original reading becomes higher gradation, it is necessary to increase the memory capacity of the shading memory for storing the shading data. Japanese Patent Application Laid-Open No. 2004-228688 discloses an image reading apparatus capable of minimizing the memory capacity required for storing shading data and shading data for color images.

この特許文献1の画像読取装置55は、図10に示すように、原稿の画像データを読取るカラーセンサ部56、読取った原稿の画像データをA/D変換するA/D変換部57、A/D変換した原稿の画像データをシェーディング補正するシェーディング補正部58、シェーディングデータを格納する第1記憶部59、モノクロ画像データに画像処理を行うモノクロ画像処理部60、前記画像処理の作業領域として機能する第2記憶部61、制御部62が画像読取装置55の各部を制御するための作業領域として機能する第3記憶部63等を備えている。   As shown in FIG. 10, an image reading device 55 of Patent Document 1 includes a color sensor unit 56 for reading image data of a document, an A / D conversion unit 57 for A / D converting the image data of a read document, and A / It functions as a shading correction unit 58 that performs shading correction on image data of a D-converted document, a first storage unit 59 that stores shading data, a monochrome image processing unit 60 that performs image processing on monochrome image data, and a work area for the image processing. The second storage unit 61 and the control unit 62 include a third storage unit 63 that functions as a work area for controlling each unit of the image reading device 55.

この画像読取装置55において、原稿のモノクロ画像データを読取る場合、図11に示すように、まず、原稿の読取り開始前に白基準板(不図示)の画像を読取り、原稿のモノクロ画像データに対してシェーディング補正を行うためのBW成分用シェーディングデータを取得して第1記憶部59に格納する。そして、原稿の読取り開始後、A/D変換回路57は、カラーセンサ部56が読取った原稿のモノクロ画像データをA/D変換し、シェーディング補正部58は、第1記憶部59に格納されているBW成分用シェーディングデータを用いてそのモノクロ画像データをシェーディング補正し、モノクロ画像処理部60は、シェーディング補正されたモノクロ画像データに対して第2記憶部61を使用してN値化処理等の画像処理を行う。   In the case where the image reading device 55 reads monochrome image data of a document, as shown in FIG. 11, first, an image on a white reference plate (not shown) is read before the document reading is started, and the monochrome image data of the document is read. BW component shading data for performing shading correction is acquired and stored in the first storage unit 59. After the reading of the document is started, the A / D conversion circuit 57 performs A / D conversion on the monochrome image data of the document read by the color sensor unit 56, and the shading correction unit 58 is stored in the first storage unit 59. The monochrome image data is subjected to shading correction using the BW component shading data, and the monochrome image processing unit 60 uses the second storage unit 61 for the shading-corrected monochrome image data to perform N-value processing or the like. Perform image processing.

一方、原稿のカラー画像データを読取る場合には、まず、原稿の読取り開始前に白基準板の画像を読取り、原稿のカラー画像データに対してシェーディング補正を行うためのRGB3成分のシェーディングデータを取得し、そのうちのG成分用シェーディングデータを第1記憶部59に格納するとともに残りのR成分用及びB成分用シェーディングデータをカラー読取り時には使用しない第2記憶部61に格納する。そして、原稿の読取り開始後、A/D変換回路57は、カラーセンサ部56が読取った原稿のカラー画像データをA/D変換し、シェーディング補正部58は、第1記憶部59に格納されているG成分用シェーディングデータと第2記憶部61に格納されているR成分用及びB成分シェーディングデータを用いてA/D変換されたカラー画像データのRGB3成分のデータを各色成分毎にシェーディング補正する。   On the other hand, when reading the color image data of the original, first, the image of the white reference plate is read before starting the reading of the original, and the RGB three-component shading data for performing the shading correction on the color image data of the original is obtained. The G component shading data is stored in the first storage unit 59, and the remaining R component and B component shading data is stored in the second storage unit 61 that is not used during color reading. Then, after starting the reading of the document, the A / D conversion circuit 57 A / D converts the color image data of the document read by the color sensor unit 56, and the shading correction unit 58 is stored in the first storage unit 59. The RGB three-component data of the color image data A / D converted using the G-component shading data and the R-component and B-component shading data stored in the second storage unit 61 is subjected to shading correction for each color component. .

このように、カラー画像データのシェーディング補正に必要なシェーディングデータの一部を、カラー読取り時には使用しない第2記憶部61に格納することにより、シェーディングデータのデータサイズが増加したとしても、シェーディングデータ専用の第1記憶部59のメモリ容量の増加を最小限に抑えることができる。また、原稿のモノクロ読取り時には第2記憶部61のカラー画像用のシェーディングデータが消去され、原稿のカラー読取り時には第1記憶部59のモノクロ画像用のシェーディングデータが消去されるが、第3記憶部63にバックアップ領域を設けてモノクロ及びカラー双方のシェーディングデータを格納しておくことにより、原稿読取り前にシェーディングデータを取得するための読取り動作を行う必要がないという利点がある。
特開2000−295486号公報
Thus, even if the data size of the shading data is increased by storing a part of the shading data necessary for the shading correction of the color image data in the second storage unit 61 that is not used during color reading, the shading data is dedicated The increase in the memory capacity of the first storage unit 59 can be minimized. Further, when the original is read in monochrome, the shading data for the color image in the second storage unit 61 is erased, and when reading the color of the original, the shading data for the monochrome image in the first storage unit 59 is deleted. By providing a backup area in 63 and storing both monochrome and color shading data, there is an advantage that it is not necessary to perform a reading operation for acquiring shading data before reading a document.
JP 2000-295486 A

しかしながら、特許文献1の画像読取装置55では、上記の通りシェーディングデータ専用の第1記憶部59の容量を削減することが可能であるが、第1記憶部59とともにシェーディングデータ専用ではない第2記憶部61の記憶領域の一部をカラー画像用のシェーディングメモリとして使用しているため、本質的には、カラー画像データのシェーディング補正に必要なデータを格納するシェーディングメモリのメモリ容量が削減されているわけではない。   However, in the image reading device 55 of Patent Document 1, it is possible to reduce the capacity of the first storage unit 59 dedicated to shading data as described above, but the second storage that is not dedicated to shading data together with the first storage unit 59. Since a part of the storage area of the unit 61 is used as a shading memory for color images, the memory capacity of the shading memory for storing data necessary for shading correction of color image data is essentially reduced. Do not mean.

また、第1記憶部59と第2記憶部61をカラーとモノクロの共用のシェーディングメモリとして使用しているために、原稿のモノクロ読取りを行った後にカラー読取りを行う場合には、カラー画像用のシェーディングデータを第1記憶部59及び第2記憶部61に格納し直さなければならない。   In addition, since the first storage unit 59 and the second storage unit 61 are used as a shading memory for both color and monochrome, when performing color reading after monochrome reading of an original, The shading data must be stored again in the first storage unit 59 and the second storage unit 61.

本発明は、かかる課題に鑑みてなされたものであり、原稿のカラー画像読取り機能を備えた画像読取装置において、他のメモリを使用することなく、読取ったカラー画像データのシェーディング補正に使用するデータを格納するシェーディングメモリのメモリ容量を削減することができる画像読取装置を提供することを目的とする。   The present invention has been made in view of the above problems, and in an image reading apparatus having a color image reading function of a document, data used for shading correction of the read color image data without using another memory. An object of the present invention is to provide an image reading apparatus capable of reducing the memory capacity of a shading memory for storing image data.

上記目的を達成するために、請求項1記載の画像読取装置は、複数の色成分のデータからなるカラー画像データを原稿から読取る読取手段と、1の色成分のデータについてのシェーディングデータ、及び、該シェーディングデータの画素値とその他の色成分のデータについてのシェーディングデータの画素値の差分を画素値とした差分シェーディングデータを格納する格納手段と、前記1の色成分のデータについてのシェーディングデータと前記差分シェーディングデータを用いて、前記その他の色成分のデータに対してシェーディング補正を行うシェーディング補正手段と、を備えることを特徴としている。   In order to achieve the above object, an image reading apparatus according to claim 1, reading means for reading color image data composed of a plurality of color component data from a document, shading data for one color component data, and Storage means for storing differential shading data in which a pixel value is a difference between the pixel value of the shading data and the pixel value of the other color component, and the shading data for the data of the one color component; And shading correction means for performing shading correction on the data of the other color components using difference shading data.

請求項2記載の画像読取装置は、3つの色成分のデータからなるカラー画像データを原稿から読取る読取手段と、1の色成分のデータについてのシェーディングデータ、及び、該シェーディングデータの画素値とその他の色成分のデータについてのシェーディングデータの画素値の差分を画素値とした差分シェーディングデータを前記1の色成分とは異なる残りの2つの色成分のデータについて格納する格納手段と、前記1の色成分のデータについてのシェーディングデータと前記差分シェーディングデータを用いて、前記2つの色成分のデータに対してそれぞれシェーディング補正を行うシェーディング補正手段と、を備えることを特徴としている。   The image reading apparatus according to claim 2, a reading unit that reads color image data including three color component data from a document, shading data for one color component data, pixel values of the shading data, and others Storage means for storing difference shading data in which the difference between the pixel values of the shading data for the color component data is a pixel value for the remaining two color component data different from the one color component; and the one color Shading correction means for performing shading correction on the two color component data using the shading data for the component data and the differential shading data, respectively.

請求項1に記載の画像読取装置によれば、読取った複数の色成分のデータからなるカラー画像データのシェーディング補正に必要なシェーディングデータを全ての色成分のデータについて格納しておく必要がないため、シェーディング補正に必要なデータを格納する格納手段のメモリ容量を削減することができる。   According to the image reading apparatus of the first aspect, it is not necessary to store shading data necessary for shading correction of color image data including a plurality of read color component data for all color component data. The memory capacity of the storage means for storing data necessary for shading correction can be reduced.

請求項2に記載の画像読取装置によれば、3つの色成分のデータのうちの2つの色成分のデータについては差分シェーディングデータが格納されているので、3つの色成分のデータ全てについてシェーディングデータを格納する従来の画像読取装置に比べて、カラー画像データのシェーディング補正に必要なデータを格納する格納手段のメモリ容量を大幅に削減することができる。   According to the image reading device of claim 2, since the difference shading data is stored for the data of two color components among the data of the three color components, the shading data for all the data of the three color components is stored. As compared with the conventional image reading apparatus that stores the image data, the memory capacity of the storage means for storing the data necessary for the shading correction of the color image data can be greatly reduced.

以下、本発明の実施の形態に係る画像読取装置について、図面に基づき説明する。図1は、この画像読取装置1の構成例を示したブロック図である。画像読取装置1は、図示するように制御部(MPU:Microprocessing Unit)2、原稿読取部3、シェーディング補正部4、ライン補正メモリ5、色空間変換回路6、画像処理回路7、コーデック(CODEC:Coder and Decoder)8、画像メモリ9、記録部10、操作部11、表示部12、ROM(Read Only Memory)13、及びRAM(Random Access Memory)14を備えたものであって、各部2乃至14は、バス15によって通信可能に接続されている。   Hereinafter, an image reading apparatus according to an embodiment of the present invention will be described with reference to the drawings. FIG. 1 is a block diagram illustrating a configuration example of the image reading apparatus 1. As shown in the figure, the image reading apparatus 1 includes a control unit (MPU: Microprocessing Unit) 2, a document reading unit 3, a shading correction unit 4, a line correction memory 5, a color space conversion circuit 6, an image processing circuit 7, a codec (CODEC). (Coder and Decoder) 8, image memory 9, recording unit 10, operation unit 11, display unit 12, ROM (Read Only Memory) 13, and RAM (Random Access Memory) 14. Are communicably connected via a bus 15.

制御部2は、画像読取装置1の各部の動作を制御する。原稿読取部3は、原稿のカラー画像データ又はモノクロ画像データを読取るものであり、フラットベッド読取部(FBS:Flat Bed Scanner)17を備えている。図2は、このフラットベッド読取部17の構成を示した概略斜視図である。このフラットベッド読取部17は、図示するように、読取るべき原稿を載置するための透明な原稿載置板18と、載置された原稿に光を照射する光源(不図示)及び原稿からの反射光を所定の方向へ導くための反射ミラー(不図示)を備え且つ原稿載置板18に対して水平方向(副走査方向)に往復移動する走査キャリッジ19と、反射光を収束する集光レンズ20と、収束光を電気信号に変換して出力するカラーラインセンサ(CCD:Charge Coupled Device)21と、を備えてなる縮小光学系の画像読取ユニットである。   The control unit 2 controls the operation of each unit of the image reading apparatus 1. The document reading unit 3 reads color image data or monochrome image data of a document, and includes a flat bed scanner (FBS) 17. FIG. 2 is a schematic perspective view showing the configuration of the flatbed reading unit 17. As shown in the figure, the flatbed reading unit 17 includes a transparent document placing plate 18 for placing a document to be read, a light source (not shown) for irradiating light on the placed document, and from the document. A scanning carriage 19 that includes a reflecting mirror (not shown) for guiding the reflected light in a predetermined direction and reciprocates in the horizontal direction (sub-scanning direction) with respect to the document placing plate 18, and a condensing light that converges the reflected light. An image reading unit of a reduction optical system including a lens 20 and a color line sensor (CCD: Charge Coupled Device) 21 that converts convergent light into an electric signal and outputs the electric signal.

このフラットベッド読取部17の上方には、フラットベッド読取部17本体の上面奥に設けられた支持部22を軸として原稿載置板18に対して開閉可能な原稿押圧部材23が設けられており、図示していないが、この原稿押圧部材23には原稿トレイに載置された原稿を所定の搬送路に沿って搬送する自動原稿搬送装置(ADF:Automatic Document Feeder)が設けられている。また、この原稿押圧部材23には、自動原稿搬送装置によって搬送される原稿を透光板24に近接させるガイドとして、透光板24と対向する位置に白色テープを貼り付けられたり、白色に塗装されることにより白色に形成された白基準板(シェーディングプレート)25が設けられている。   A document pressing member 23 that can be opened and closed with respect to the document placing plate 18 is provided above the flat bed reading unit 17 with a support unit 22 provided at the back of the upper surface of the main body of the flat bed reading unit 17 as an axis. Although not shown, the document pressing member 23 is provided with an automatic document feeder (ADF) that transports a document placed on a document tray along a predetermined transport path. Further, a white tape is attached to the original pressing member 23 at a position facing the translucent plate 24 or painted in white as a guide for bringing the original conveyed by the automatic original conveying apparatus close to the translucent plate 24. Thus, a white reference plate (shading plate) 25 formed in white is provided.

原稿載置板18に原稿が載置されて原稿押圧部材23が閉じられた後、操作部11の所定操作により原稿の読取り開始命令があった場合に、走査キャリッジ19が原稿載置板18に対して図中の矢印で示すように水平に移動しながら原稿載置板18上の原稿を走査し、原稿からの反射光をカラーラインセンサ21へ導いて該カラーラインセンサ21がそれを結像することにより、原稿載置板18に載置された原稿の画像データが主走査ライン毎に読取られる。   After the document is placed on the document placement plate 18 and the document pressing member 23 is closed, the scanning carriage 19 is placed on the document placement plate 18 when a document read start command is issued by a predetermined operation of the operation unit 11. On the other hand, the document on the document placing plate 18 is scanned while moving horizontally as indicated by an arrow in the figure, and the reflected light from the document is guided to the color line sensor 21, and the color line sensor 21 forms an image thereof. As a result, the image data of the document placed on the document placement plate 18 is read for each main scanning line.

自動原稿搬送装置の原稿トレイに原稿が載置された後、操作部11の所定操作により原稿の読取り開始命令があった場合に、走査キャリッジ19が透光板24の下方に固定された状態で前記自動原稿搬送装置によって搬送される原稿を前記透光板24の上方の所定の読取位置にて走査し、原稿からの反射光をカラーラインセンサ21へ導いて該カラーラインセンサ21がそれを結像することにより、自動原稿搬送装置によって搬送される原稿の画像データが主走査ライン毎に読取られる。   After the document is placed on the document tray of the automatic document feeder, the scanning carriage 19 is fixed below the translucent plate 24 when a document reading start command is issued by a predetermined operation of the operation unit 11. The original conveyed by the automatic original conveying apparatus is scanned at a predetermined reading position above the translucent plate 24, the reflected light from the original is guided to the color line sensor 21, and the color line sensor 21 connects it. By imaging, the image data of the document conveyed by the automatic document conveying device is read for each main scanning line.

原稿読取部3は、図1に示すように、前記カラーラインセンサ21、AFE(Analog Front End)回路27、及びA/Dコンバータ28を備えている。カラーラインセンサ21は、複数の色成分のデータからなるカラー画像データを原稿から読取る読取手段として機能する。このカラーラインセンサ21は、図1には示していないが、R(Red)、G(Green)、B(Blue)の3つのラインセンサ21R、21G、及び21Bにより構成されており、ここではRGBの3つの色成分のデータからなるカラー画像データ、いわゆるRGB表色系(RGB color system)のカラー画像データを原稿から読取って所定の出力先に出力する。   As shown in FIG. 1, the document reading unit 3 includes the color line sensor 21, an AFE (Analog Front End) circuit 27, and an A / D converter 28. The color line sensor 21 functions as a reading unit that reads color image data including data of a plurality of color components from a document. Although not shown in FIG. 1, the color line sensor 21 is composed of three line sensors 21R, 21G, and 21B of R (Red), G (Green), and B (Blue). The color image data composed of the three color component data, that is, the color image data of the so-called RGB color system is read from the document and output to a predetermined output destination.

なお、これらの3つのラインセンサ21R、21G、及び21Bは、所定ライン分の間隔を隔てて並設されているため、原稿読取部3からはそのラインギャップにより、ずれのある状態のRGBの各色成分のデータが線順次で出力され、その位置ずれは、ライン補正メモリ5により補正される。また、カラーラインセンサ21は原稿のカラー画像データを読取るためのものであるが、RGB3成分のうち例えばG成分のみをモノクロと見なして出力したり、又はカラーラインセンサ21を上記RGBの3つのラインセンサ21R、21G、及び21Bにモノクロ画像データを読取るラインセンサを加えた4ライン型のものとすることにより、原稿のモノクロ画像データを読取ることも当然可能である。このように、原稿読取部3は、原稿のカラー及びモノクロの双方の画像データを読取ることが可能であるが、本実施の形態では、カラー画像データを読取る場合について主に説明する。   Since these three line sensors 21R, 21G, and 21B are arranged in parallel at a predetermined line interval, each color of RGB in a state of deviation from the document reading unit 3 due to the line gap. The component data is output line-sequentially, and the positional deviation is corrected by the line correction memory 5. The color line sensor 21 is for reading the color image data of the original. For example, only the G component of the RGB three components is output as monochrome, or the color line sensor 21 outputs the three RGB lines. Of course, it is also possible to read the monochrome image data of the document by using a 4-line type sensor in which a line sensor that reads monochrome image data is added to the sensors 21R, 21G, and 21B. As described above, the document reading unit 3 can read both color and monochrome image data of a document. In this embodiment, the case of reading color image data will be mainly described.

AFE回路27は、カラーラインセンサ21が白基準板25の画像を読取って出力したRGBの各色成分のデータに基づいてゲイン設定値を取得し、読取られた原稿のカラー画像データに対してゲイン調整を行う。取得したRGBの各色成分のゲイン設定値は、AFE回路27が備えるレジスタ(不図示)に格納され、カラーラインセンサ21によって原稿のカラー画像データが読取られた場合、AFE回路27は、レジスタに格納されている各色成分のゲイン設定値に基づいて各色成分のデータを増幅する処理を行う。A/Dコンバータ28は、AFE回路27においてゲイン調整されたカラー画像データの各色成分のデータをA/D変換(Analog to Digital Conversion)する。   The AFE circuit 27 acquires a gain setting value based on data of each color component of RGB output by the color line sensor 21 reading the image of the white reference plate 25, and adjusts the gain for the color image data of the read document. I do. The acquired gain setting values for the respective RGB color components are stored in a register (not shown) provided in the AFE circuit 27. When the color image data of the original is read by the color line sensor 21, the AFE circuit 27 stores the gain setting value in the register. A process of amplifying the data of each color component is performed based on the gain setting value of each color component. The A / D converter 28 performs A / D conversion (Analog to Digital Conversion) on the data of each color component of the color image data whose gain is adjusted in the AFE circuit 27.

シェーディング補正部4は、原稿読取部3から出力された原稿のカラー画像データに対して、光量ムラや光学部品の影響、及びカラーラインセンサ21の画素感度のバラツキを補正するためにシェーディング補正を行うものであり、例えば、ASIC(Application Specific Integrated Circuit)等で構成されている。このシェーディング補正部4は、シェーディング補正回路29とシェーディングRAM(シェーディングメモリ)30を備えている。シェーディング補正回路29は、図3(a)に示すように、RGB表色系のカラー画像データのG成分のデータに対してシェーディング補正を行うシェーディング補正回路29G、R成分のデータに対してシェーディング補正を行うシェーディング補正回路29R、及びB成分のデータに対してシェーディング補正を行うシェーディング補正回路29B、から構成されている。   The shading correction unit 4 performs shading correction on the color image data of the document output from the document reading unit 3 in order to correct the light amount unevenness, the influence of optical components, and the variation in pixel sensitivity of the color line sensor 21. For example, it is configured by an application specific integrated circuit (ASIC) or the like. The shading correction unit 4 includes a shading correction circuit 29 and a shading RAM (shading memory) 30. As shown in FIG. 3A, the shading correction circuit 29 performs a shading correction on the G component data of the RGB color system color image data, and the shading correction on the R component data. And a shading correction circuit 29B for performing shading correction on the B component data.

シェーディングRAM30は、カラーラインセンサ21が読取った原稿のカラー画像データに対してシェーディング補正回路29G、29R、及び29Bがシェーディング補正を行うために必要なデータを格納する。このシェーディングRAM30は、1の色成分のデータについてのシェーディングデータ、及び、該シェーディングデータの画素値とその他の色成分のデータについてのシェーディングデータの画素値の差分を画素値とした差分シェーディングデータ(以下、「差分データ」ともいう。)を格納する格納手段として機能する。ここでは、カラーラインセンサ21によってRGBの3つの色成分のデータからなるカラー画像データが読取られるため、シェーディングRAM30は、1の色成分のデータについてのシェーディングデータ、及び、該シェーディングデータの画素値とその他の色成分のデータについてのシェーディングデータの画素値の差分を画素値とした差分データを前記1の色成分とは異なる残りの2つの色成分のデータについて格納している。なお、シェーディングデータが格納される1の色成分のデータと差分データが格納される残りの2つの色成分のデータの組み合せは特に限定されるものではなく、本実施形態においては、シェーディングRAM30にG成分のデータについてのシェーディングデータ(G成分用シェーディングデータ)、R成分のデータ及びB成分のデータについて差分データ(R成分用差分データ及びB成分用差分データ)が格納される場合について説明する。   The shading RAM 30 stores data necessary for the shading correction circuits 29G, 29R, and 29B to perform shading correction on the color image data of the original read by the color line sensor 21. This shading RAM 30 is a difference shading data (hereinafter referred to as a pixel value) which is a shading data for one color component data and a difference between a pixel value of the shading data and a pixel value of the shading data for other color component data. , Also referred to as “difference data”). Here, since the color line sensor 21 reads the color image data composed of the data of the three color components of RGB, the shading RAM 30 has the shading data for the data of one color component and the pixel value of the shading data. Difference data in which the difference between the pixel values of the shading data for the other color component data is the pixel value is stored for the remaining two color component data different from the one color component. Note that the combination of the data of one color component in which shading data is stored and the data of the remaining two color components in which difference data is stored is not particularly limited. In the present embodiment, G is stored in the shading RAM 30. A case will be described in which shading data (G component shading data) for component data, and difference data (R component difference data and B component difference data) are stored for R component data and B component data.

このシェーディングRAM30は、本実施の形態においては、図3の(b)に示すように、シェーディングデータ領域31、第1差分データ領域32、及び第2差分データ領域33の3つの領域に分割されている。シェーディングデータ領域31は、1の色成分のデータについてのシェーディングデータを格納する領域であり、複数の色成分のデータのうちのいずれか1つの色成分のデータのシェーディングデータを格納することができるだけのメモリ容量を備えた領域である。したがって、このシェーディングデータ領域31には、R成分、G成分、又はB成分用シェーディングデータのいずれのシェーディングデータであっても格納することができるが、本実施の形態においては、G成分用シェーディングデータが格納される場合について説明する。ここで、G成分用シェーディングデータは、ラインセンサ21Gが読取ったG成分のデータに対してシェーディング補正を行うために必要な1ライン(主走査ライン)のデータである。   In this embodiment, the shading RAM 30 is divided into three areas, a shading data area 31, a first difference data area 32, and a second difference data area 33, as shown in FIG. Yes. The shading data area 31 is an area for storing shading data for one color component data, and can only store shading data for one color component data among a plurality of color component data. This area has a memory capacity. Therefore, any shading data of R component, G component, or B component shading data can be stored in this shading data area 31, but in this embodiment, G component shading data is stored. The case where is stored will be described. Here, the G component shading data is data of one line (main scanning line) necessary for performing shading correction on the G component data read by the line sensor 21G.

なお、シェーディングデータ(ここでは、G成分用シェーディングデータ)は、カラーラインセンサ21が白基準板25の画像を読取って得た1ライン(主走査ライン)のデータであり、白補正データと黒補正データから構成されている。白補正データは、前記光源の点灯時にカラーラインセンサ21が白基準板25の画像を読取って得た1ラインのデータであり、黒補正データは、前記光源の消灯時にカラーラインセンサ21が白基準板25の画像を読取って得た1ラインのデータである。このように、白補正データと黒補正データから構成されるシェーディングデータがカラーラインセンサ21によって色成分毎に読取られるようになっており、読取られたR成分用シェーディングデータ、G成分用シェーディングデータ、及びB成分用シェーディングデータのうちのG成分用シェーディングデータが上記のようにシェーディングデータ領域31に格納される。   The shading data (here, the G component shading data) is data of one line (main scanning line) obtained by the color line sensor 21 reading the image of the white reference plate 25, and the white correction data and the black correction data. Consists of data. The white correction data is one line data obtained by the color line sensor 21 reading the image of the white reference plate 25 when the light source is turned on, and the black correction data is the white reference data when the color line sensor 21 is turned off when the light source is turned off. This is one line of data obtained by reading the image on the plate 25. In this way, shading data composed of white correction data and black correction data is read for each color component by the color line sensor 21, and the read R component shading data, G component shading data, The G component shading data of the B component shading data is stored in the shading data area 31 as described above.

第1差分データ領域32及び第2差分データ領域33は、シェーディングデータ領域31に格納される1の色成分のデータについてのシェーディングデータの画素値とその他の色成分のデータについてのシェーディングデータの画素値の差分を画素値とした差分データ(差分シェーディングデータ)が格納される領域であり、ここでは、第1差分データ領域32にR成分用差分データが、第2差分データ領域33にB成分用差分データが格納されるようになっている。ここで、差分データは、具体的には、それぞれ1ラインの画素データから構成される2つの色成分のシェーディングデータの対応する各画素データについて、各々の画素値を比較し、一方の画素データの画素値から他方の画素データの画素値を差引くことによって得られた1ライン(主走査ライン)のデータである。   The first difference data area 32 and the second difference data area 33 include a pixel value of shading data for one color component data stored in the shading data area 31 and a pixel value of shading data for other color component data. Is a region in which difference data (difference shading data) with pixel values as the pixel values is stored. Here, R component difference data is stored in the first difference data region 32 and B component difference is stored in the second difference data region 33. Data is stored. Here, specifically, the difference data is obtained by comparing the pixel values of the corresponding pixel data of the shading data of two color components each composed of one line of pixel data, This is one line (main scanning line) data obtained by subtracting the pixel value of the other pixel data from the pixel value.

図4は、G成分用シェーディングデータ、R成分用シェーディングデータ、及びR成分用差分データの関係の一例を示した図であり、実線がG成分用シェーディングデータ、破線がR成分用シェーディングデータ、一点鎖線がR成分用差分データを示している。図示するように、R成分用差分データは、基準となるシェーディングデータであるG成分用シェーディングデータとR成分用シェーディングデータとの差に相当するデータであり、G成分の画素データの画素値からR成分の画素データの画素値を差引く演算処理を各々対応する画素データ毎に行って得られた1ライン分のデータである。また、B成分用差分データは、基準となるシェーディングデータであるG成分用シェーディングデータとB成分用シェーディングデータとの差に相当するデータであり、G成分の画素データの画素値からB成分の画素データの画素値を差引く演算処理を各々対応する画素データ毎に行って得られた1ライン分のデータである。   FIG. 4 is a diagram illustrating an example of the relationship between G component shading data, R component shading data, and R component difference data, where a solid line indicates G component shading data, a broken line indicates R component shading data, and one point. A chain line indicates difference data for the R component. As shown in the drawing, the R component difference data is data corresponding to the difference between the G component shading data, which is the reference shading data, and the R component shading data. This is data for one line obtained by performing the calculation process for subtracting the pixel value of the component pixel data for each corresponding pixel data. The B component difference data is data corresponding to the difference between the G component shading data, which is the reference shading data, and the B component shading data. From the pixel value of the G component pixel data to the B component pixel This is data for one line obtained by performing calculation processing for subtracting pixel values of data for each corresponding pixel data.

なお、各色成分のシェーディングデータは、上記のようにそれぞれ白補正データと黒補正データによって表されるものである。したがって、差分データは、2つの色成分のシェーディングデータの白補正データ同士の差をとったデータ(以下、「白差分データ」という。)と、黒補正データ同士の差をとったデータ(以下、「黒差分データ」という。)の2つのデータによって構成されている。また、後に詳細に説明するが、R成分用差分データとB成分用差分データのデータサイズは、1成分のシェーディングデータ(ここでは、G成分用シェーディングデータ)のデータサイズよりも少ないため、第1差分データ領域32及び第2差分データ領域33のメモリ容量は、シェーディングデータ領域31よりも少なくなっている。   Note that the shading data of each color component is represented by white correction data and black correction data, respectively, as described above. Therefore, the difference data is data obtained by taking a difference between white correction data of shading data of two color components (hereinafter referred to as “white difference data”) and data obtained by taking a difference between black correction data (hereinafter referred to as “white difference data”). "Black difference data")). As will be described in detail later, the data size of the R component difference data and the B component difference data is smaller than the data size of one component shading data (here, G component shading data). The memory capacity of the difference data area 32 and the second difference data area 33 is smaller than that of the shading data area 31.

前記シェーディング補正回路29は、カラーラインセンサ21が読取った複数の色成分のデータのうち、1の色成分のデータについてのシェーディングデータと差分データを用いて、その他の色成分のデータに対してシェーディング補正を行うシェーディング補正手段として機能する。なお、シェーディングRAM30に1の色成分のデータについてのシェーディングデータと残りの2つの色成分のデータについてのシェーディングデータが格納されているので、ここでは1の色成分についてのシェーディングデータと差分データを用いて、残りの2つの色成分のデータに対してそれぞれシェーディング補正を行う。   The shading correction circuit 29 uses the shading data and difference data for one color component data among a plurality of color component data read by the color line sensor 21 to perform shading on the other color component data. It functions as a shading correction means for performing correction. Since shading data for one color component data and shading data for the remaining two color component data are stored in the shading RAM 30, the shading data and difference data for one color component are used here. Thus, shading correction is performed on the remaining two color component data.

具体的には、ラインセンサ21Rが読取ったR成分のデータをシェーディング補正回路29Rにおいてシェーディングデータ領域31のG成分用シェーディングデータと第1差分データ領域32のR成分用差分データを用いてシェーディング補正し、ラインセンサ21Bが読取ったB成分のデータをシェーディング補正回路29Bにおいてシェーディングデータ領域31のG成分用シェーディングデータと第2差分データ領域33のB成分用差分データを用いてシェーディング補正する。なお、読取ったG成分のデータについては、シェーディングデータ領域31にシェーディングデータがそのまま格納されているので、ラインセンサ21Gが読取ったG成分のデータは、シェーディング補正回路29Gにおいてシェーディングデータ領域31のG成分用シェーディングデータを用いてシェーディング補正される。   Specifically, the R component data read by the line sensor 21R is subjected to shading correction by using the G component shading data in the shading data region 31 and the R component difference data in the first difference data region 32 in the shading correction circuit 29R. The B component data read by the line sensor 21B is subjected to shading correction in the shading correction circuit 29B using the G component shading data in the shading data area 31 and the B component difference data in the second difference data area 33. As for the read G component data, since the shading data is stored as it is in the shading data area 31, the G component data read by the line sensor 21G is converted into the G component in the shading data area 31 by the shading correction circuit 29G. The shading correction is performed using the shading data for use.

ライン補正メモリ5は、原稿読取部3からずれのある状態で出力されたカラー画像データのRGBの各色成分のデータ間の位置ずれ補正を行うためのメモリであり、ここでは、R成分のデータとG成分のデータがこのライン補正メモリ5に一旦格納されてから所定のタイミングでそれぞれ出力されることにより、RGBの各色成分間の位置ずれが補正されたカラー画像データが所定の出力先に出力される。   The line correction memory 5 is a memory for correcting misregistration between the RGB color component data of the color image data output from the document reading unit 3 in a misaligned state. The G component data is temporarily stored in the line correction memory 5 and then output at a predetermined timing, whereby color image data in which the positional deviation between the RGB color components is corrected is output to a predetermined output destination. The

色空間変換回路6は、ライン補正メモリ5によって位置ずれ補正されたRGB表色系のカラー画像データを、L*a*b*表色系のカラー画像データ又はYCrCb表色系のカラー画像データに色空間変換する。画像処理回路7は、色空間変換回路6が色空間変換したカラー画像データに対して、その画像を用紙に記録するために必要な画像処理を行うものであり、具体的には、γ補正、2値化処理、2値化処理されたカラー画像データを例えばC(シアン)、M(マゼンタ)、Y(イエロー)、K(ブラック)等の画像を用紙に記録するための出力色に変換する色空間変換処理等を行う。   The color space conversion circuit 6 converts the RGB color system color image data, which has been subjected to positional deviation correction by the line correction memory 5, into L * a * b * color system color image data or YCrCb color system color image data. Convert color space. The image processing circuit 7 performs image processing necessary for recording the image on the paper with respect to the color image data subjected to the color space conversion by the color space conversion circuit 6. Specifically, the image processing circuit 7 performs γ correction, The binarized and binarized color image data is converted into an output color for recording an image such as C (cyan), M (magenta), Y (yellow), K (black), etc. on paper. Perform color space conversion processing.

コーデック8は、原稿の画像データを符号化(エンコード)・復号(デコード)するものである。具体的には、原稿のカラー画像データをJPEG(Joint Photographic Experts Group)方式により符号化し、2値化処理された原稿の画像データをMH(Modified Huffman)、MR(Modified Read)、MMR(Modified Modified Read)、JBIG(Joint Bi-level Image Group)方式等により符号化し、符号化されている画像データを復号する。   The codec 8 encodes / decodes image data of a document. Specifically, color image data of a document is encoded by a JPEG (Joint Photographic Experts Group) method, and binarized document image data is converted into MH (Modified Huffman), MR (Modified Read), MMR (Modified Modified). Read), JBIG (Joint Bi-level Image Group) method and the like, and the encoded image data is decoded.

画像メモリ9は、図示しないが、多値メモリ、二値メモリ、及び符号化メモリから構成されており、ライン補正メモリ5で位置ずれ補正されたカラー画像データ、色空間変換回路6で色空間変換されたカラー画像データ、コーデック8において符号化された画像データ等を格納する。記録部10は、画像メモリ9から読み出された画像データの画像を用紙に記録するものであって、画像データの画像をカラー及びモノクロの双方により記録することができるものである。この記録部10における記録方式としては、例えば、電子写真方式やインクジェット記録方式等の各種の記録方式を用いることができる。   Although not shown, the image memory 9 is composed of a multi-value memory, a binary memory, and an encoding memory. The color image data corrected for misregistration by the line correction memory 5 and the color space conversion circuit 6 perform color space conversion. The color image data, the image data encoded by the codec 8 and the like are stored. The recording unit 10 records the image of the image data read from the image memory 9 on a sheet, and can record the image of the image data in both color and monochrome. As a recording method in the recording unit 10, various recording methods such as an electrophotographic method and an ink jet recording method can be used.

操作部11は、図2に例示するように、原稿読取部3に原稿の読取り開始を指示するためのスタートキー34、コピー部数等を入力するためのテンキー35など、表示部12と連動した各種操作キーを備えている。表示部12は、各種の設定画面や画像読取装置1の動作状態などを文字や図形などで表示する液晶表示装置(LCD:Liquid Crystal Display)36や、点灯又は消灯で表示するLEDランプ37などを備えている。   As illustrated in FIG. 2, the operation unit 11 includes various keys linked to the display unit 12 such as a start key 34 for instructing the document reading unit 3 to start reading a document and a numeric keypad 35 for inputting the number of copies. Operation keys are provided. The display unit 12 includes a liquid crystal display (LCD) 36 that displays various setting screens and operation states of the image reading device 1 in characters and graphics, an LED lamp 37 that is turned on or off, and the like. I have.

ROM13は、制御部2によりこの画像読取装置1の各部の動作が制御されるための各種プログラムを格納している。RAM14は、画像読取装置1の処理動作に用いる設定情報や動作情報等の各種データを読み出し及び書込み可能な状態で格納している。また、このRAM14は、システムメモリ38を備えており、カラーラインセンサ21が白基準板25の画像を読取って取得したG成分用シェーディングデータ、R成分用シェーディングデータ、及びB成分用シェーディングデータは、シェーディングRAM30に一旦格納された後、システムメモリ38へと転送されて該システムメモリ38に格納される。制御部2は、このRGB3成分のシェーディングデータがシステムメモリ38に格納された後、RGB3成分のシェーディングデータに基づいてR成分用差分データ及びB成分用差分データを生成し、R成分用差分データを第1差分データ領域32に格納し、B成分用差分データを第2差分データ領域33に格納し、G成分用シェーディングデータをシェーディングデータ領域31に格納する処理を行う。   The ROM 13 stores various programs for the operation of each unit of the image reading apparatus 1 to be controlled by the control unit 2. The RAM 14 stores various data such as setting information and operation information used for the processing operation of the image reading device 1 in a readable and writable state. The RAM 14 includes a system memory 38. The G component shading data, the R component shading data, and the B component shading data acquired by the color line sensor 21 reading the image of the white reference plate 25 are: Once stored in the shading RAM 30, it is transferred to the system memory 38 and stored in the system memory 38. After the RGB three-component shading data is stored in the system memory 38, the control unit 2 generates R-component difference data and B-component difference data based on the RGB three-component shading data. The first difference data area 32 is stored, the B component difference data is stored in the second difference data area 33, and the G component shading data is stored in the shading data area 31.

以下、上記のように構成された画像読取装置1において、原稿読取部3で白基準板25の画像が読取られてから、G成分用シェーディングデータ、R成分用差分データ、及びB成分用差分データがシェーディングRAM30に格納されるまでに、画像読取装置1において行われる処理動作について、図5及び図6に基づいて説明する。   Hereinafter, in the image reading apparatus 1 configured as described above, after the image of the white reference plate 25 is read by the document reading unit 3, the G component shading data, the R component difference data, and the B component difference data are read. The processing operation performed in the image reading apparatus 1 until the image is stored in the shading RAM 30 will be described with reference to FIGS.

原稿読取部3は、画像読取装置1の工場出荷時や、画像読取装置1の電源が投入(ON)された時や、原稿の読取り開始前等特に限定されないが、制御部2からシェーディングデータを取得するための所定の制御命令があった場合、図5に示すように、まず、カラーラインセンサ21によりRGB各色成分に対する白基準板25の1ライン(主走査ライン)の画像データを読取る。すなわち、R成分用シェーディングデータ、G成分用シェーディングデータ、及びB成分用シェーディングデータの3成分のシェーディングデータを各ラインセンサ21R、21G、及び21Bにより読取る。   The document reading unit 3 is not particularly limited when the image reading device 1 is shipped from the factory, when the power of the image reading device 1 is turned on (ON), or before the reading of the document is started. When there is a predetermined control command for acquisition, as shown in FIG. 5, first, the color line sensor 21 reads image data of one line (main scanning line) of the white reference plate 25 for each RGB color component. That is, the three component shading data of the R component shading data, the G component shading data, and the B component shading data is read by each of the line sensors 21R, 21G, and 21B.

カラーラインセンサ21によって読取られた各色成分のシェーディングデータは、原稿読取り時と同様に、RGBの各色成分毎に、AFE回路27においてゲイン調整された後、A/Dコンバータ28においてA/D変換される。その後、A/D変換されたRGB3成分のシェーディングデータは、シェーディング補正部4が備えるシェーディングRAM30に一旦格納された後、システムメモリ38へと転送される。ところで、シェーディングRAM30は、カラー画像データの色成分毎に、上記のようにシェーディングデータ領域31、第1差分データ領域32、及び第2差分データ領域33の3つの領域に分割されているが、この中で1ライン(主走査ライン)分のシェーディングデータを格納することができる領域は、シェーディングデータ領域31のみである。したがって、RGB各色成分のシェーディングデータは、ここでは図示していないが、セレクタによって選択的にシェーディングデータ領域31へと転送されて該シェーディングデータ領域31に一旦格納された後、各色成分毎にシステムメモリ38へ転送される。   The shading data of each color component read by the color line sensor 21 is gain-adjusted by the AFE circuit 27 for each of the RGB color components and A / D converted by the A / D converter 28 in the same manner as when reading the original. The Thereafter, the A / D converted RGB three-component shading data is temporarily stored in the shading RAM 30 included in the shading correction unit 4 and then transferred to the system memory 38. By the way, the shading RAM 30 is divided into the three areas of the shading data area 31, the first difference data area 32, and the second difference data area 33 as described above for each color component of the color image data. Of these, only the shading data area 31 can store shading data for one line (main scanning line). Therefore, the shading data of each RGB color component is not shown here, but is selectively transferred to the shading data area 31 by the selector and temporarily stored in the shading data area 31, and then the system memory for each color component. 38.

具体的には、原稿読取部3は、まず、G成分用シェーディングデータをラインセンサ21Gにより読取り、読取ったG成分用シェーディングデータをAFE回路27Gにおいてゲイン調整し、ゲイン調整したG成分用シェーディングデータをA/Dコンバータ28GにおいてA/D変換し、これを一旦シェーディングRAM30のシェーディングデータ領域31に格納する。そして、制御部2は、シェーディングデータ領域31に格納されたG成分用シェーディングデータを該領域31から読み出してRAM14のシステムメモリ38へ転送する。このようにして、シェーディングデータ領域31に空き領域が確保された後に、R成分用シェーディングデータを同様に一旦シェーディングデータ領域31に格納してからシステムメモリ38へと転送する。そして、最後に、B成分用シェーディングデータについても同様にシェーディングデータ領域31に一旦格納してからシステムメモリ38へと転送する。なお、ここでは、RGB3成分のシェーディングデータをG、R、Bの順でシステムメモリ38へ転送する場合について説明したが、システムメモリ38へ各色成分のシェーディングデータを転送する順序はこれに限定されるものではなく、例えばB、R、Gの順でシステムメモリ38へ転送するようにしてもよい。   Specifically, the document reading unit 3 first reads the G component shading data by the line sensor 21G, adjusts the gain of the read G component shading data in the AFE circuit 27G, and outputs the gain adjusted G component shading data. The A / D converter 28G performs A / D conversion, and this is temporarily stored in the shading data area 31 of the shading RAM 30. Then, the control unit 2 reads the G component shading data stored in the shading data area 31 from the area 31 and transfers it to the system memory 38 of the RAM 14. In this way, after an empty area is secured in the shading data area 31, the R component shading data is once stored in the shading data area 31 in the same manner and then transferred to the system memory 38. Finally, the B component shading data is similarly stored once in the shading data area 31 and then transferred to the system memory 38. Here, the case where the RGB three-component shading data is transferred to the system memory 38 in the order of G, R, and B has been described, but the order of transferring the shading data of each color component to the system memory 38 is limited to this. For example, the data may be transferred to the system memory 38 in the order of B, R, and G.

図6は、システムメモリ38に格納されたRGB3成分のシェーディングデータと、これらのシェーディングデータに基づいて生成された差分データ及び1成分のシェーディングデータを格納するシェーディングRAM30を例示した図である。図示するように、上記の処理によりシステムメモリ38にG成分用シェーディングデータ、R成分用シェーディングデータ、及びB成分用シェーディングデータが格納されると、制御部2は、これら3成分のシェーディングデータに基づいて、R成分用差分データ及びB成分用差分データを生成する。本実施形態においては、G成分用シェーディングデータを基準のシェーディングデータとして使用するため、図4に基づいて説明したように、この基準となるG成分用シェーディングデータからR成分用シェーディングデータを差引き、R成分用差分データ(差分値)を生成する。そして、これと同様に、基準となるG成分用シェーディングデータからB成分用シェーディングデータを差引き、B成分用差分データを生成する。   FIG. 6 is a diagram illustrating a shading RAM 30 that stores the RGB three-component shading data stored in the system memory 38, the difference data generated based on these shading data, and the one-component shading data. As shown in the figure, when the G component shading data, the R component shading data, and the B component shading data are stored in the system memory 38 by the above processing, the control unit 2 performs processing based on these three component shading data. Thus, R component difference data and B component difference data are generated. In this embodiment, since the G component shading data is used as the reference shading data, as described based on FIG. 4, the R component shading data is subtracted from the reference G component shading data. R component difference data (difference value) is generated. Similarly, the B component shading data is subtracted from the reference G component shading data to generate B component difference data.

制御部2は、このようにして2つの色成分のデータについての差分データを生成した後に、生成したR成分用差分データとB成分用差分データ、及びG成分用シェーディングデータをシェーディングRAM30に転送し、該シェーディングRAM30に格納する。具体的には、シェーディングデータ領域31にG成分用シェーディングデータを格納し、第1差分データ領域32にR成分用差分データを格納し、第2差分データ領域33にB成分用差分データを格納する。なお、第1差分データ領域32と第2差分データ領域33は、同じ領域サイズに構成されているため、第1差分データ領域32にB成分用差分データを格納し、第2差分データ領域33にR成分用差分データを格納してもよい。   After generating the difference data for the two color component data in this manner, the control unit 2 transfers the generated R component difference data, B component difference data, and G component shading data to the shading RAM 30. And stored in the shading RAM 30. Specifically, G component shading data is stored in the shading data area 31, R component difference data is stored in the first difference data area 32, and B component difference data is stored in the second difference data area 33. . Since the first difference data area 32 and the second difference data area 33 are configured to have the same area size, B component difference data is stored in the first difference data area 32, and the second difference data area 33 is stored in the second difference data area 33. R component difference data may be stored.

このようにして、カラーラインセンサ21によって白基準板25の画像が読取られた後、読取った原稿のカラー画像データに対してシェーディング補正を行うために必要なデータがシェーディングRAM30に格納される。なお、ここでは、シェーディングデータ領域31に一旦格納した各色成分のシェーディングデータをシステムメモリ38へと転送し、該システムメモリ38上で制御部2が差分データを生成する場合について説明したが、各色成分のシェーディングデータをシステムメモリ38へ転送することなく差分データを生成することも当然可能である。その場合、例えば2つの色成分のシェーディングデータが入力された場合に、一方のシェーディングデータを基準のシェーディングデータとしてもう一方のシェーディングデータを前記一方のシェーディングデータから差引いて差分データを出力する演算処理回路をA/Dコンバータ28の後段に設け、該演算処理回路から出力された差分データが第1差分データ領域32又は第2差分データ領域33に格納されるようにすればよい。   In this way, after the image of the white reference plate 25 is read by the color line sensor 21, data necessary for performing shading correction on the color image data of the read original is stored in the shading RAM 30. Here, the case where shading data of each color component once stored in the shading data area 31 is transferred to the system memory 38 and the control unit 2 generates difference data on the system memory 38 has been described. Naturally, it is possible to generate the difference data without transferring the shading data to the system memory 38. In this case, for example, when shading data of two color components is input, an arithmetic processing circuit that outputs difference data by subtracting the other shading data from the one shading data using one shading data as reference shading data Is provided in the subsequent stage of the A / D converter 28, and the differential data output from the arithmetic processing circuit may be stored in the first differential data area 32 or the second differential data area 33.

次に、原稿の読取り開始命令があった場合の画像読取装置1の各部の処理動作について説明する。図7は、カラーラインセンサ21が読取った原稿のカラー画像データの各色成分のデータのデータ転送の流れを示した図である。フラットベッド読取部17の原稿載置板18に原稿が載置されて原稿押圧部材23が閉じられた後、又は自動原稿搬送装置の原稿トレイに原稿が載置された後に、操作部11のスタートキー34が押下されることにより原稿の読取り開始命令があった場合、図示するように、カラーラインセンサ21を構成するラインセンサ21R、21G、及び21Bによって原稿のカラー画像データが主走査ライン毎に読取られる。このようにしてラインセンサ21Rによって読取られたR成分のデータは、AFE回路27R(27)へと転送され、該AFE回路27R(27)においてゲイン調整された後、A/Dコンバータ28R(28)においてA/D変換され、シェーディング補正回路29R(29)へと転送される。また、R成分のデータとともにカラー画像データを構成する残りのG成分のデータ及びB成分のデータについても同様に、各色成分毎に設けられたAFE回路27においてゲイン調整された後、A/Dコンバータ28においてA/D変換され、シェーディング補正回路29へと転送される。   Next, the processing operation of each part of the image reading apparatus 1 when there is a document reading start command will be described. FIG. 7 is a diagram showing the flow of data transfer of each color component data of the color image data of the original read by the color line sensor 21. After the document is placed on the document placing plate 18 of the flatbed reading unit 17 and the document pressing member 23 is closed, or after the document is placed on the document tray of the automatic document feeder, the operation unit 11 is started. When an instruction to start reading a document is issued when the key 34 is pressed, the color image data of the document is read for each main scanning line by the line sensors 21R, 21G, and 21B constituting the color line sensor 21, as shown in the figure. Read. The R component data read by the line sensor 21R in this way is transferred to the AFE circuit 27R (27), and after the gain is adjusted in the AFE circuit 27R (27), the A / D converter 28R (28). Are A / D converted and transferred to the shading correction circuit 29R (29). Similarly, the remaining G component data and B component data constituting the color image data together with the R component data are similarly subjected to gain adjustment in the AFE circuit 27 provided for each color component, and then the A / D converter. A / D conversion is carried out at 28 and transferred to the shading correction circuit 29.

ここで、上記のようにシェーディングRAM30には、G成分のデータについてのみシェーディングデータが格納されており、R成分及びB成分については差分データが格納されている。よって、シェーディングRAM30にシェーディングデータがそのまま格納されている色成分、すなわち、ここではG成分のデータに対してシェーディング補正を行うシェーディング補正回路29Gは、シェーディングデータ領域31からG成分用シェーディングデータを読み出し、それを用いて以下に示す数1の演算式に基づいてG成分のデータに対してシェーディング補正を行う。

Figure 2005354192
ここで、VINは、シェーディング補正回路29Gに入力されるG成分のデータ、VOUTは、シェーディング補正回路29Gから出力されるシェーディング補正後のG成分のデータ、Wは、G成分用シェーディングデータの白補正データ、Bは、G成分用シェーディングデータの黒補正データである。また、2のビット幅乗は、ラインセンサ21Gにより読取られたG成分のデータの階調数を表しており、例えばG成分のデータが512階調で表されるものである場合には、2のビット幅乗がこれと等しいため、ビット幅は9となる。シェーディング補正回路29Gにおいて、これらの各データの画素値及びビット幅がこの数1の演算式の右辺に代入された演算処理がラインセンサ21Gにより読取られたG成分のデータに対して各画素データ毎に行われることにより、ラインセンサ21Gが読取ったG成分のデータに対してシェーディング補正が行われる。 Here, as described above, the shading RAM 30 stores shading data only for the G component data, and stores difference data for the R component and the B component. Therefore, the shading correction circuit 29G that performs shading correction on the color component in which the shading data is stored in the shading RAM 30 as it is, that is, the G component data here, reads the G component shading data from the shading data area 31, Using this, shading correction is performed on the data of the G component based on the following equation (1).
Figure 2005354192
Here, V IN is the G component of the data input to the shading correction circuit 29G, V OUT is the G component data after the shading correction is output from the shading correction circuit 29G, W G is the shading data for G component The white correction data B G is black correction data of the G component shading data. The bit width power of 2 represents the number of gradations of the G component data read by the line sensor 21G. For example, when the G component data is represented by 512 gradations, 2 Is equal to this, the bit width is 9. In the shading correction circuit 29G, the calculation processing in which the pixel value and bit width of each of these data are substituted into the right side of the arithmetic expression of Equation 1 is performed for each pixel data with respect to the G component data read by the line sensor 21G. As a result, the shading correction is performed on the G component data read by the line sensor 21G.

このように、対応するシェーディングデータがそのままシェーディングRAM30に格納されているG成分のデータに対しては、シェーディングデータ領域31に格納されているG成分用シェーディングデータを構成する白差分データと黒差分データを用いて上記数1の演算処理がシェーディング補正回路29Gによって行われる。なお、ここではG成分のデータに対して上記数1に基づく演算処理が行われる場合について説明したが、シェーディングRAM30に他の色成分のデータについてのシェーディングデータがそのまま格納されている場合には、前記他の色成分のデータに対してシェーディング補正を行うシェーディング補正回路29において、上記数1と同じ演算処理を行うようにすればよい。   In this way, for the G component data in which the corresponding shading data is stored as it is in the shading RAM 30, the white difference data and the black difference data constituting the G component shading data stored in the shading data area 31 are used. The calculation processing of the above equation 1 is performed by the shading correction circuit 29G. Here, the case where the arithmetic processing based on the above equation 1 is performed on the G component data has been described, but when the shading data for the other color component data is stored in the shading RAM 30 as it is, In the shading correction circuit 29 that performs shading correction on the data of the other color components, the same arithmetic processing as the above equation 1 may be performed.

一方、シェーディングデータがそのまま格納されていない色成分のデータに対してシェーディング補正を行うシェーディング補正回路29R及び29Gは、シェーディングデータ領域31に格納されている基準となるシェーディングデータ、及び差分データを用いてシェーディング補正を行う。なお、シェーディング補正回路29RにおいてR成分のデータに対して行われるシェーディング補正と、シェーディング補正回路29BにおいてB成分のデータに対して行われるシェーディング補正は、同様に行われるものであるため、ここでは、シェーディング補正回路29Rにおいて行われるシェーディング補正について以下に説明する。   On the other hand, the shading correction circuits 29R and 29G that perform the shading correction on the data of the color component in which the shading data is not stored as it is, use the reference shading data stored in the shading data area 31 and the difference data. Perform shading correction. The shading correction performed on the R component data in the shading correction circuit 29R and the shading correction performed on the B component data in the shading correction circuit 29B are performed in the same manner. The shading correction performed in the shading correction circuit 29R will be described below.

シェーディング補正回路29Rは、読取られたR成分のデータに対して、シェーディングデータ領域31からG成分用シェーディングデータを読み出すとともに第1差分データ領域32からR成分用差分データを読み出し、以下に示す数2の演算式に基づいてR成分のデータに対してシェーディング補正を行う。

Figure 2005354192
ここで、VINは、シェーディング補正回路29Rに入力されるR成分のデータ、VOUTは、シェーディング補正回路29Rから出力されるシェーディング補正後のR成分のデータ、Wは、G成分用シェーディングデータの白補正データ、Bは、G成分用シェーディングデータの黒補正データ、dWは、R成分用差分データの白差分データ、dBは、R成分用差分データの黒差分データである。また、2のビット幅乗は、読取られたR成分のデータの階調数を表しており、上記のようにG成分のデータが512階調で表されるものである場合には、R成分のデータも同様に512階調で表されるため、ビット幅は同じ9となる。これらの各データの画素値及びビット幅がこの数2の演算式の右辺に代入された演算処理が各画素データ毎に行われることにより、カラーラインセンサ21が読取ったR成分のデータに対してシェーディング補正が行われる。 For the read R component data, the shading correction circuit 29R reads the G component shading data from the shading data region 31 and reads the R component difference data from the first difference data region 32. The shading correction is performed on the R component data based on the above equation.
Figure 2005354192
Here, V IN is R component of the input data to the shading correction circuit 29R, V OUT is R component of the data after the shading correction is output from the shading correction circuit 29R, W G is the shading data for G component the white correction data, B G, black correction data shading data for G component, dW R, white difference data of the difference data for the R component, dB R is black differential data of the differential data for R component. The bit width power of 2 represents the number of gradations of the read R component data. When the G component data is represented by 512 gradations as described above, the R component Similarly, the data is represented by 512 gradations, so the bit width is 9. An arithmetic process in which the pixel value and bit width of each data is substituted for the right side of the arithmetic expression of Equation 2 is performed for each pixel data, so that the R component data read by the color line sensor 21 is processed. Shading correction is performed.

このように、対応するシェーディングデータがそのままシェーディングRAM30に格納されていないR成分のデータに対しては、シェーディングデータ領域31に格納されているG成分用シェーディングデータを構成する白補正データと黒補正データ、及び第1差分データ領域32に格納されているR成分用差分データを構成する白差分データと黒差分データを用いて上記数2の演算処理がシェーディング補正回路29Rによって行われる。   As described above, for R component data in which the corresponding shading data is not stored in the shading RAM 30 as it is, white correction data and black correction data constituting the G component shading data stored in the shading data area 31 are used. And the arithmetic processing of the above equation 2 is performed by the shading correction circuit 29R using the white difference data and the black difference data constituting the R component difference data stored in the first difference data area 32.

なお、上記数2において、W+dWは、G成分用シェーディングデータの白補正データとR成分用差分データの白差分データを足し合せたものであり、言い換えればR成分用シェーディングデータの白補正データである。また、B+dBは、G成分用シェーディングデータの黒補正データとR成分用差分データの黒差分データを足し合せたものであり、言い換えればR成分用シェーディングデータの黒補正データである。したがって、上記数2に基づく演算処理は、G成分用シェーディングデータとR成分用差分データに基づいてR成分用シェーディングデータの白補正データと黒補正データを生成し、それらのデータに基づいてR成分のデータに対してシェーディング補正を行っていることと等しいことになる。 Note that in Equation 2, W G + dW R are those obtained by summing white difference data of the difference data for white correction data and the R component of the shading data for G components, white correction of shading data for R component in other words It is data. B G + dB R is the sum of the black correction data of the G component shading data and the black difference data of the R component difference data, in other words, the black correction data of the R component shading data. Therefore, the arithmetic processing based on Equation 2 generates white correction data and black correction data of the R component shading data based on the G component shading data and the R component difference data, and the R component based on these data. This is equivalent to performing shading correction on this data.

また、B成分のデータに対してシェーディング補正を行うシェーディング補正回路29Bは、読取られたB成分のデータに対して、シェーディングデータ領域31からG成分用シェーディングデータを読み出すとともに第2差分データ領域33からB成分用差分データを読み出し、ラインセンサ21Bが読取ったB成分のデータに対してシェーディング補正を行うが、このB成分のデータに対するシェーディング補正は、上記数2の演算式においてR成分に関するデータが全てB成分に関するデータに代わる点などを除いてはほぼ同様に行われるため、ここではその詳細な説明は省略する。   The shading correction circuit 29B that performs shading correction on the B component data reads the G component shading data from the shading data area 31 and reads from the second difference data area 33 with respect to the read B component data. The B component difference data is read out, and the shading correction is performed on the B component data read by the line sensor 21B. Since the process is substantially the same except that the data relating to the B component is replaced, detailed description thereof is omitted here.

続いて、シェーディング補正回路29Rにおいてシェーディング補正されたR成分のデータは、ライン補正メモリ5R(5)に一旦格納され、シェーディング補正回路29Gにおいてシェーディング補正されたG成分のデータは、ライン補正メモリ5G(5)に一旦格納される。そして、シェーディング補正回路29Bにおいてシェーディング補正されたB成分のデータがシェーディング補正回路29Bから出力されるタイミングに合わせてライン補正メモリ5RからR成分のデータが、ライン補正メモリ5GからG成分のデータが読み出されることにより、色空間変換回路6に位置ずれ補正されたカラー画像データが入力されるようになっている。   Subsequently, the R component data subjected to the shading correction by the shading correction circuit 29R is temporarily stored in the line correction memory 5R (5), and the G component data subjected to the shading correction by the shading correction circuit 29G is stored in the line correction memory 5G ( 5) is temporarily stored. The R component data is read from the line correction memory 5R and the G component data is read from the line correction memory 5G in accordance with the timing at which the B component data subjected to the shading correction by the shading correction circuit 29B is output from the shading correction circuit 29B. As a result, the color image data corrected for misregistration is input to the color space conversion circuit 6.

このようにして色空間変換回路6に入力されたRGB表色系のカラー画像データは、例えばL*a*b*表色系のカラー画像データに変換され、画像処理回路7において所定の画像処理が施された後、コーデック8において符号化され画像メモリ9に一旦格納される。そして、画像メモリ9に格納された画像データは、記録部10の処理動作に合わせて該画像メモリ9から読み出されるとともにコーデック8において復号され、記録部10においてその画像が用紙に記録される。   The RGB color system color image data input to the color space conversion circuit 6 in this way is converted into, for example, L * a * b * color system color image data, and the image processing circuit 7 performs predetermined image processing. , The codec 8 encodes the data and temporarily stores it in the image memory 9. The image data stored in the image memory 9 is read from the image memory 9 in accordance with the processing operation of the recording unit 10 and is decoded by the codec 8, and the image is recorded on a sheet by the recording unit 10.

以上説明したように、画像読取装置1によれば、原稿読取り前に取得したG成分用シェーディングデータ、R成分用差分データ、及びB成分用差分データを用いて、カラーラインセンサ21が読み取った原稿のカラー画像データに対して各色成分毎にシェーディング補正を行い、ここでは、その画像を用紙に記録することができるようになっている。   As described above, according to the image reading apparatus 1, a document read by the color line sensor 21 using the G component shading data, the R component difference data, and the B component difference data acquired before reading the document. The color image data is subjected to shading correction for each color component, and here, the image can be recorded on paper.

以下、3成分全てについてシェーディングデータを格納してシェーディング補正を行う従来の画像読取装置と本発明の実施の形態に係る画像読取装置1のシェーディングRAM30のメモリ容量を比較するために、シェーディングデータ領域31に格納されるG成分用シェーディングデータのデータサイズ、及び第1差分データ領域32に格納されるR成分用差分データのデータサイズ(B成分用差分データのデータサイズ)について説明する。なお、シェーディングデータと差分データは、それぞれ色成分間でそのデータサイズが異なることはないため、以下、G成分用シェーディングデータを単にシェーディングデータとし、R成分用差分データを単に差分データとして説明する。   Hereinafter, in order to compare the memory capacity of the shading RAM 30 of the image reading apparatus 1 according to the embodiment of the present invention and the conventional image reading apparatus that stores shading data for all three components and performs shading correction, the shading data area 31 is used. The data size of the G component shading data stored in 1 and the data size of the R component difference data stored in the first difference data area 32 (data size of the B component difference data) will be described. Since shading data and difference data do not differ in data size between color components, the G component shading data is simply referred to as shading data and the R component difference data is simply referred to as difference data.

例えば、A3(日本工業規格A列3番)サイズ(297mm×420mm)の原稿を600dpiの解像度で読取る場合、原稿の読取り幅(主走査方向の長さ)は297mmであるため、主走査方向の画素数は、600mm×1/25.4mm×297mmの計算式から、7016画素となる。すなわち、カラーラインセンサ21によって読取られるカラー画像データの1ライン(主走査ライン)分の画素データの数が7016であり、読取ったカラー画像データに対してシェーディング補正を行うために、主走査方向に7016画素の画素データからなるシェーディングデータが各色成分毎に必要となる。   For example, when a document of A3 (Japanese Industrial Standard A row 3) size (297 mm × 420 mm) is read at a resolution of 600 dpi, the reading width (length in the main scanning direction) of the document is 297 mm. The number of pixels is 7016 pixels based on a calculation formula of 600 mm × 1 / 25.4 mm × 297 mm. That is, the number of pixel data for one line (main scanning line) of the color image data read by the color line sensor 21 is 7016, and in order to perform shading correction on the read color image data, Shading data made up of 7016 pixel data is required for each color component.

次に、シェーディングデータの白補正データが9ビット(512階調)、黒補正データが7ビット(128階調)で表されるデータであるとすると、1成分当りのシェーディングデータのデータサイズは、7016画素×(9+7)ビットで112256ビットとなる。したがって、上記の読取り条件で原稿のカラー画像データを読取ることを想定すると、従来のようにRGB3成分全てについてシェーディングデータをそのままシェーディングRAMに格納する場合、少なくともこれ(112256ビット)を3倍した336768ビットのメモリ容量を有するシェーディングRAMが必要である。   Next, assuming that white correction data of shading data is data represented by 9 bits (512 gradations) and black correction data is represented by 7 bits (128 gradations), the data size of the shading data per component is It is 112256 bits with 7016 pixels × (9 + 7) bits. Accordingly, assuming that color image data of a document is read under the above-described reading conditions, when shading data for all three RGB components is stored as it is in the shading RAM as in the prior art, at least triple this (112256 bits) to 336768 bits. A shading RAM having the following memory capacity is required.

一方、差分データは、上記の通り2つの色成分のシェーディングデータの差に相当するデータであり、白差分データと黒差分データから構成されている。したがって、差分データのデータサイズは、白差分データのデータサイズと黒差分データのデータサイズを足し合せたものとなる。また、上記のように白補正データが9ビット、黒補正データが7ビットである場合、白差分データと黒差分データは、通常4ビット程度で表すことができる。したがって、1成分当りの差分データのデータサイズは、7016画素×(4+4)ビットで56128ビットとなる。   On the other hand, the difference data is data corresponding to the difference between the shading data of the two color components as described above, and is composed of white difference data and black difference data. Therefore, the data size of the difference data is the sum of the data size of the white difference data and the data size of the black difference data. Further, as described above, when the white correction data is 9 bits and the black correction data is 7 bits, the white difference data and the black difference data can be generally expressed by about 4 bits. Therefore, the data size of the difference data per component is 56128 bits with 7016 pixels × (4 + 4) bits.

すなわち、図3の(b)に示すように、シェーディングRAM30にRGB3成分のうちの1成分についてシェーディングデータを格納し、残り2成分について差分データを格納するようにした場合、RGB3成分のデータに対してシェーディング補正を行うために必要なデータの全データサイズは、1成分のシェーディングデータのデータサイズ(112256ビット)に2成分の差分データのデータサイズ(56128×2=112256ビット)を足し合せた224512ビットとなる。したがって、3成分全てのシェーディングデータのデータサイズ(336768ビット)と比較すると、カラー画像データのシェーディング補正に必要なデータのデータサイズが大幅に減少しており、結果としてシェーディングRAMのメモリ容量を大幅に削減することができ、且つ上記のように各色成分のデータに対してシェーディング補正を行うことが可能である。   That is, as shown in FIG. 3B, when the shading RAM 30 stores shading data for one of the RGB three components and stores difference data for the remaining two components, Thus, the total data size of data necessary for performing shading correction is 224512, which is the sum of the data size of one component shading data (112256 bits) and the data size of differential data of two components (56128 × 2 = 112256 bits). A bit. Therefore, compared with the data size of all three components of shading data (336768 bits), the data size of data required for shading correction of color image data is greatly reduced, resulting in a significant increase in the memory capacity of the shading RAM. In addition, the shading correction can be performed on the data of each color component as described above.

また、RGB3成分のシェーディングデータを格納することができるだけのメモリ容量を備えたシェーディングRAMを使用した場合、上記の通りシェーディング補正に必要なデータのデータサイズが減少してシェーディングRAMに空き領域を確保することができる。したがって、原稿のカラー画像データを更に高階調で読取る場合に、シェーディングRAMのメモリ容量が足らないために、シェーディングRAMを増設したり、シェーディングRAMを大容量のものに変更しなければならないという問題が生じることはなく、従来一般に使用されているシェーディングRAMを使用して、高階調読取りした原稿のカラー画像データに対してシェーディング補正を行うことができる。   Further, when a shading RAM having a memory capacity sufficient to store RGB3 component shading data is used, the data size of data necessary for shading correction is reduced as described above, and a free area is secured in the shading RAM. be able to. Accordingly, when reading color image data of a document at a higher gradation, there is a problem in that the shading RAM has a short memory capacity, so that the shading RAM must be increased or the shading RAM must be changed to a large capacity. This does not occur, and shading correction can be performed on color image data of a document read at a high gradation using a shading RAM that has been generally used.

なお、本実施の形態においては、シェーディングRAM30が3つの領域31乃至33に分割された構成のものについて説明したが、シェーディングRAM30の構成はこれに限定されるものではなく、シェーディングRAMを各色成分毎に3つ設けて、G成分用シェーディングデータ、R成分用差分データ、B成分用差分データをそれぞれ別個のシェーディングRAMに格納するようにしてもよい。   In the present embodiment, the configuration in which the shading RAM 30 is divided into the three regions 31 to 33 has been described. However, the configuration of the shading RAM 30 is not limited to this, and the shading RAM is separated for each color component. The G component shading data, the R component difference data, and the B component difference data may be stored in separate shading RAMs.

また、シェーディングデータ領域31に格納される基準となるシェーディングデータをG成分用シェーディングデータとして説明したが、基準となるシェーディングデータはこれに限定されるものではなく、例えば、シェーディングデータ領域31にR成分用シェーディングデータを、第1差分データ領域32にG成分用差分データを、第2差分データ領域33にB成分の差分データを格納するようにしてもよい。その場合、R成分のデータに対しては、R成分用シェーディングデータを用いてシェーディング補正が行われ、G成分のデータに対しては、R成分用シェーディングデータとG成分用差分データを用いてシェーディング補正が行われ、B成分のデータに対しては、R成分用シェーディングデータとB成分用差分データを用いてシェーディング補正が行われる。   The reference shading data stored in the shading data area 31 has been described as the G component shading data. However, the reference shading data is not limited to this. For example, the R shading data area 31 includes the R component. For example, G component difference data may be stored in the first difference data area 32, and B component difference data may be stored in the second difference data area 33. In this case, shading correction is performed on the R component data using the R component shading data, and shading is performed on the G component data using the R component shading data and the G component difference data. Correction is performed, and shading correction is performed on the B component data using the R component shading data and the B component difference data.

また、本実施形態においては、1つのシェーディングデータ領域31と2つの差分データ領域に分割された構成のシェーディングRAM30について説明したが、シェーディングRAM30の領域の構成はこれに限定されるものではなく、2つのシェーディングデータ領域と1つの差分データ領域に分割されたものであってもよい。この場合、シェーディングRAMには、RGB3成分のうちの2つの色成分のデータについてのシェーディングデータ、及び、これらのいずれか一方のシェーディングデータの画素値と残りの1成分のデータについてのシェーディングデータの画素値の差分を画素値とした差分シェーディングデータを格納するようにすればよい。具体的には、図8に示すように、シェーディングRAMを2つのシェーディングデータ領域と1つの差分データ領域に分割されたものとし、例えば、R成分用シェーディングデータとG成分用シェーディングデータを2つのシェーディングデータ領域に別々に格納し、残りのB成分のデータについては、R成分用シェーディングデータとの差分データを差分データ領域に格納する。この場合、2成分(ここでは、R成分とG成分)のデータに対して基準となるシェーディングデータ(ここでは、R成分用シェーディングデータとG成分用シェーディングデータ)を用いて各々シェーディング補正を行うとともに残りの1成分(ここでは、B成分)のデータに対して一方の基準となるシェーディングデータ(R成分用シェーディングデータ)とB成分用差分データを用いてシェーディング補正する。   In the present embodiment, the shading RAM 30 having a configuration divided into one shading data region 31 and two difference data regions has been described. However, the configuration of the region of the shading RAM 30 is not limited to this, and 2 It may be divided into one shading data area and one difference data area. In this case, in the shading RAM, the shading data for the data of two color components among the RGB three components, and the pixel value of the shading data for any one of the shading data and the remaining one component data are stored. What is necessary is just to store the difference shading data which made the difference of the value the pixel value. Specifically, as shown in FIG. 8, the shading RAM is divided into two shading data areas and one difference data area. For example, R component shading data and G component shading data are divided into two shading data. Separately stored in the data area, and with respect to the remaining B component data, difference data from the R component shading data is stored in the difference data area. In this case, shading correction is performed using shading data (here, R component shading data and G component shading data) as a reference for data of two components (here, R component and G component). The remaining one component (here, B component) data is subjected to shading correction by using one reference shading data (R component shading data) and B component difference data.

但し、このようにシェーディングRAMに2成分のシェーディングデータと残り1成分の差分データを格納するようにした場合、1成分のシェーディングデータと残り2成分の差分データを格納する場合に比べ、3成分のデータに対してシェーディング補正を行うために必要なデータのデータサイズは大きくなる。したがって、シェーディング補正に必要なデータのデータサイズを可能な限り小さくするためには、本実施形態において説明したように、1成分についてシェーディングデータを格納し、残り2成分について差分データを格納する方が好適である。   However, when the two-component shading data and the remaining one-component difference data are stored in the shading RAM as described above, the three-component shading data and the remaining two-component difference data are stored in comparison with the case where the one-component shading data and the remaining two-component difference data are stored. The data size of data necessary for performing shading correction on data increases. Therefore, in order to reduce the data size of the data necessary for the shading correction as much as possible, it is better to store the shading data for one component and store the difference data for the remaining two components as described in the present embodiment. Is preferred.

また、画像読取装置1に原稿の裏面読取りを行う画像読取ユニットを更に設けることにより、原稿読取部3をカラー原稿の両面読取機能を備えるものとした場合に、前記原稿の裏面読取りを行う画像読取ユニットが読取った原稿の裏面のカラー画像データに対してシェーディング補正を行うためのデータを格納するシェーディングRAMに本発明を適用することも当然可能である。   Further, when the image reading unit 3 is further provided with an image reading unit for reading the back side of the document, and the document reading unit 3 has a double-sided reading function for a color document, the image reading for reading the back side of the document is performed. Of course, the present invention can also be applied to a shading RAM that stores data for performing shading correction on the color image data on the back side of the document read by the unit.

なお、本実施の形態で示した画像読取装置1の構成は、本発明に係る画像読取装置の一態様にすぎず、本発明の要旨を逸脱しない範囲内で適宜設計変更できることは勿論であり、原稿のカラー画像データを読取ってその画像データに対してシェーディング補正を行う装置であれば、例えば、コピー装置、ファクシミリ装置、スキャナ装置、及びこれらの複合機としても実現可能である。   The configuration of the image reading apparatus 1 shown in the present embodiment is only one aspect of the image reading apparatus according to the present invention, and it is needless to say that the design can be changed as appropriate without departing from the gist of the present invention. Any apparatus that reads color image data of a document and performs shading correction on the image data can be realized as, for example, a copying apparatus, a facsimile apparatus, a scanner apparatus, or a complex machine thereof.

本発明は、例えばコピー装置やファクシミリ装置やこれらの複合機等が備えるカラーの原稿を読取る機能を備えた画像読取装置に適用することができる。   The present invention can be applied to, for example, an image reading apparatus having a function of reading a color document included in a copying apparatus, a facsimile apparatus, or a multifunction machine thereof.

本発明の実施の形態に係る画像読取装置の構成例を示したブロック図である。1 is a block diagram illustrating a configuration example of an image reading apparatus according to an embodiment of the present invention. 原稿読取部が備えるフラットベッド読取部の構成を示した概略斜視図である。It is the schematic perspective view which showed the structure of the flat bed reading part with which an original reading part is provided. シェーディング補正回路及びシェーディングRAMについて説明するための図である。It is a figure for demonstrating a shading correction circuit and shading RAM. G成分用シェーディングデータ、R成分用シェーディングデータ、及びR成分用差分データの関係の一例を示した図である。It is the figure which showed an example of the relationship of the shading data for G components, the shading data for R components, and the difference data for R components. カラーラインセンサによって各色成分のシェーディングデータが読取られてそのデータがシェーディングRAMに格納されるまでの画像読取装置の各部の処理動作及びシェーディングデータのデータ転送の流れについて説明するための図である。FIG. 5 is a diagram for explaining the processing operation of each unit of the image reading apparatus and the flow of data transfer of shading data until the shading data of each color component is read by the color line sensor and the data is stored in the shading RAM. システムメモリに格納されたRGB3成分のシェーディングデータと、これらのシェーディングデータに基づいて生成された差分データ及び1成分のシェーディングデータを格納するシェーディングRAMを例示した図である3 is a diagram exemplifying a shading RAM for storing RGB three-component shading data stored in a system memory, difference data generated based on these shading data, and one-component shading data; FIG. カラーラインセンサが読取った原稿のカラー画像データの各色成分のデータのデータ転送の流れを示した図である。FIG. 6 is a diagram illustrating a flow of data transfer of each color component of color image data of a document read by a color line sensor. 2つのシェーディングデータ領域と1つの差分データ領域に分割されたシェーディングRAMを示した図である。It is the figure which showed the shading RAM divided | segmented into two shading data areas and one difference data area. 従来のシェーディング補正回路及び該回路がカラー画像データに対してシェーディング補正を行うためのデータを格納するシェーディングRAMを示した図である。It is the figure which showed the shading RAM which stores the data for the conventional shading correction circuit and the said circuit for performing shading correction | amendment with respect to color image data. 従来の画像読取装置の構成を示したブロック図である。It is a block diagram showing a configuration of a conventional image reading apparatus. 従来の画像読取装置が備える第1記憶部、第2記憶部、及び第3記憶部に格納されるシェーディングデータを示した図である。It is the figure which showed the shading data stored in the 1st memory | storage part with which the conventional image reading apparatus is provided, a 2nd memory | storage part, and a 3rd memory | storage part.

符号の説明Explanation of symbols

1 画像読取装置
2 制御部(MPU)
3 原稿読取部
4 シェーディング補正部
21 カラーラインセンサ
21R、21G、21G ラインセンサ
29(29R、29G、29B) シェーディング補正回路
30 シェーディングRAM
31 シェーディングデータ領域
32 第1差分データ領域
33 第2差分データ領域
38 システムメモリ
DESCRIPTION OF SYMBOLS 1 Image reader 2 Control part (MPU)
3 Document Reading Unit 4 Shading Correction Unit 21 Color Line Sensor 21R, 21G, 21G Line Sensor 29 (29R, 29G, 29B) Shading Correction Circuit 30 Shading RAM
31 Shading data area 32 First difference data area 33 Second difference data area 38 System memory

Claims (2)

複数の色成分のデータからなるカラー画像データを原稿から読取る読取手段と、1の色成分のデータについてのシェーディングデータ、及び、該シェーディングデータの画素値とその他の色成分のデータについてのシェーディングデータの画素値の差分を画素値とした差分シェーディングデータを格納する格納手段と、前記1の色成分のデータについてのシェーディングデータと前記差分シェーディングデータを用いて、前記その他の色成分のデータに対してシェーディング補正を行うシェーディング補正手段と、を備えることを特徴とする画像読取装置。   Reading means for reading color image data composed of a plurality of color component data from a document, shading data for one color component data, and shading data for pixel values of the shading data and other color component data Storage means for storing differential shading data using pixel value differences as pixel values; shading data for the other color components using the shading data and the differential shading data for the one color component data An image reading apparatus comprising: a shading correction unit that performs correction. 3つの色成分のデータからなるカラー画像データを原稿から読取る読取手段と、1の色成分のデータについてのシェーディングデータ、及び、該シェーディングデータの画素値とその他の色成分のデータについてのシェーディングデータの画素値の差分を画素値とした差分シェーディングデータを前記1の色成分とは異なる残りの2つの色成分のデータについて格納する格納手段と、前記1の色成分のデータについてのシェーディングデータと前記差分シェーディングデータを用いて、前記2つの色成分のデータに対してそれぞれシェーディング補正を行うシェーディング補正手段と、を備えることを特徴とする画像読取装置。


Reading means for reading color image data consisting of three color component data from a document, shading data for one color component data, and shading data for pixel values of the shading data and other color component data Storage means for storing difference shading data in which the difference between pixel values is a pixel value for the remaining two color component data different from the one color component, and the shading data and the difference for the one color component data An image reading apparatus comprising: a shading correction unit that performs shading correction on the data of the two color components using shading data.


JP2004170154A 2004-06-08 2004-06-08 Image reading device Expired - Fee Related JP4400321B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2004170154A JP4400321B2 (en) 2004-06-08 2004-06-08 Image reading device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2004170154A JP4400321B2 (en) 2004-06-08 2004-06-08 Image reading device

Publications (2)

Publication Number Publication Date
JP2005354192A true JP2005354192A (en) 2005-12-22
JP4400321B2 JP4400321B2 (en) 2010-01-20

Family

ID=35588304

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2004170154A Expired - Fee Related JP4400321B2 (en) 2004-06-08 2004-06-08 Image reading device

Country Status (1)

Country Link
JP (1) JP4400321B2 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009193429A (en) * 2008-02-15 2009-08-27 Mitsubishi Electric Corp Image reading device
JP2010244331A (en) * 2009-04-07 2010-10-28 Mitsubishi Electric Corp Image reading device

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009193429A (en) * 2008-02-15 2009-08-27 Mitsubishi Electric Corp Image reading device
JP2010244331A (en) * 2009-04-07 2010-10-28 Mitsubishi Electric Corp Image reading device

Also Published As

Publication number Publication date
JP4400321B2 (en) 2010-01-20

Similar Documents

Publication Publication Date Title
JP4432504B2 (en) Image reading device
US7933049B2 (en) Multifunction printer and image processing method
US8625177B2 (en) Image processing apparatus, image forming apparatus, image processing method, and storage medium, each of which performs, on monochrome image data to image display device, or two-color image data, color matching process of reducing differences in color between image to be outputted by image display device and image to be outputted by printing apparatus
US8355177B2 (en) Image processing apparatus, image forming apparatus, image processing method, and computer-readable storage medium containing image processing program
US20080013133A1 (en) Contact-type color scanning unit, image scanning device, image scanning method, and computer program product
US9521281B2 (en) Image processing apparatus including first image processing section performing first image processing on image data to be supplied to image output apparatus and second image processing section performing second image processing on image data to be supplied to image display device, and image forming apparatus including the image processing apparatus
US8599456B2 (en) Image processing apparatus, image forming apparatus, image processing method, and computer-readable recording medium on which image processing program is recorded
JP4763026B2 (en) Image processing apparatus, image forming apparatus, image processing method, image processing program, and computer-readable recording medium
JP2010114578A (en) Image processing apparatus
JP5194885B2 (en) Image reading apparatus and image forming apparatus
JP4718399B2 (en) Image reading apparatus, image forming apparatus, and image reading method
JP2008227625A (en) Image processor, image processing method, image processing program and recording medium
JP4400321B2 (en) Image reading device
JP4795406B2 (en) Image processing apparatus, image forming apparatus, image processing apparatus control method, control program, and recording medium
JPH104481A (en) Image reader
JP2006303710A (en) Reading apparatus and control method of reading apparatus
JP2008236045A (en) Image processor, image forming apparatus, image processing method, image processing program and recording medium
JP3780134B2 (en) Image reading apparatus and method
JP2705944B2 (en) Image processing device
JPH06178111A (en) Image processor
JP3278412B2 (en) Color image processing apparatus and color image processing method
JP2004193741A (en) Image scanner
JPH06334863A (en) Picture processing unit
JP2007194955A (en) Image processing device
JP2005130207A (en) Image processing apparatus

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20070420

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20090810

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20090825

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20090904

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

A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20091019

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20121106

Year of fee payment: 3

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20131106

Year of fee payment: 4

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20131106

Year of fee payment: 4

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

LAPS Cancellation because of no payment of annual fees