JPH0583576A - Color reader - Google Patents

Color reader

Info

Publication number
JPH0583576A
JPH0583576A JP3241346A JP24134691A JPH0583576A JP H0583576 A JPH0583576 A JP H0583576A JP 3241346 A JP3241346 A JP 3241346A JP 24134691 A JP24134691 A JP 24134691A JP H0583576 A JPH0583576 A JP H0583576A
Authority
JP
Japan
Prior art keywords
color
image data
image
extraction
reading
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.)
Withdrawn
Application number
JP3241346A
Other languages
Japanese (ja)
Inventor
Tadakazu Kusunoki
忠和 楠
Yoshiharu Suzuki
祥治 鈴木
Masahiro Mori
雅博 森
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.)
Fujitsu Ltd
Original Assignee
Fujitsu 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 Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP3241346A priority Critical patent/JPH0583576A/en
Publication of JPH0583576A publication Critical patent/JPH0583576A/en
Withdrawn legal-status Critical Current

Links

Landscapes

  • Color Image Communication Systems (AREA)

Abstract

PURPOSE:To correct color slurring at black and white edge parts. CONSTITUTION:This device is equipped with an image reading means 112 to read black and white images in a linear area on an original 101 while decomposing the colors into plural color components, extracting means 113 to successively extract image data for the prescribed number of picture elements having respective picture elements at the heads from the image data corresponding to the linear area obtained by the image reading means 112, holding means 114 to hold the image data of the picture elements at the starting point and ending points of the extracted range, a judging means 115 to judge whether the value of one component at least in the image data is fixed at both terminal parts of the extracted range or not, and a replacing means 116 to replace the image data of the respective picture elements contained in the starting point side area and the ending point side area with the image data of the picture elements at the starting point and ending point held in the holding means 114 respectively corresponding to the judged result showing that the value is fixed at both terminal parts of the extracted range, and to transmit the replaced image data.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明は、カラー読取装置に関
し、特に、読み取り画像の補正を行うようにしたカラー
読取装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a color reading device, and more particularly to a color reading device for correcting a read image.

【0002】カラー読取装置は、ファクシミリ装置やコ
ンピュータへの画像入力装置として用いられており、例
えば電荷結合素子(CCD)などを用いたイメージセン
サによって、カラー画像をR(赤),G(緑),B
(青)の各成分の強度分布として測定して読み取るもの
が知られている。
A color reading device is used as an image input device for a facsimile machine or a computer. For example, an image sensor using a charge-coupled device (CCD) or the like is used to convert a color image into R (red) and G (green). , B
What is measured and read as the intensity distribution of each component of (blue) is known.

【0003】このようなカラー読取装置においては、例
えば、カタログやパンフレットなどのように、カラー画
像と白黒で表現された文書や線画などとが混在したもの
を読み取る場合があり、カラー画像とともに文書などの
白黒の二値画像を高精度で読み取ることが要望されてい
る。
In such a color reading apparatus, there is a case where a color image and a document expressed in black and white or a line drawing are mixed, such as a catalog or a pamphlet, and the document is read together with the color image. There is a demand for highly accurate reading of the black and white binary image.

【0004】[0004]

【従来の技術】図14に従来のフィルタ切換型カラー読
取装置の構成を示す。図14において、原稿611上の
線状の部分(以下、読取ラインと称する)613は、蛍
光灯などの照明装置612によって照明されている。こ
の読取ライン613からの反射光は、レンズ614によ
ってセンサ(例えばCCDラインイメージセンサ)61
5上に結像されている。
2. Description of the Related Art FIG. 14 shows the structure of a conventional filter switching type color reading device. In FIG. 14, a linear portion (hereinafter, referred to as a reading line) 613 on the original 611 is illuminated by a lighting device 612 such as a fluorescent lamp. The reflected light from the reading line 613 is sent to a sensor (for example, CCD line image sensor) 61 by a lens 614.
5 is imaged.

【0005】また、それぞれ赤色(R)成分,緑色
(G)成分,青色(B)成分を透過させるフィルタ62
1r,621g,621bを備えており、原稿611か
らセンサ615への光路に、上述したフィルタ621
r,621g,621bのいずれかを選択的に挿入する
構成となっている(図14は、フィルタ621gが光路
中に挿入された状態を示している)。すなわち、光路中
に挿入するフィルタを切り換えることにより、センサ6
15に到達する光の色成分を切り換えて、読取ライン6
13からの反射光の各色成分の強度分布を時分割で測定
し、読取ライン613上のカラー画像の読み取りを行う
構成となっている。
Further, a filter 62 for transmitting a red (R) component, a green (G) component and a blue (B) component, respectively.
1r, 621g, 621b, and the filter 621 described above in the optical path from the document 611 to the sensor 615.
Any of r, 621g, and 621b is selectively inserted (FIG. 14 shows a state in which the filter 621g is inserted in the optical path). That is, by switching the filter to be inserted in the optical path, the sensor 6
The color components of the light reaching 15 are switched, and the reading line 6
The intensity distribution of each color component of the reflected light from 13 is measured in a time division manner, and the color image on the reading line 613 is read.

【0006】また、その後、原稿611を読取ライン6
13に垂直な副走査方向(図14において矢印Aで示
す)に所定の長さだけ移動し、同様の処理を繰り返して
2次元のカラー画像の読み取りを行う。
After that, the original 611 is read on the reading line 6
A two-dimensional color image is read by moving a predetermined length in the sub-scanning direction perpendicular to 13 (indicated by arrow A in FIG. 14) and repeating the same processing.

【0007】別のカラー読取装置の例として、図15に
フィルタ密着型のカラー読取装置の構成を示す。上述し
たフィルタ切換型のカラー読取装置と同様に、原稿61
1上の読取ライン613が、蛍光灯などの照明装置61
2によって照明されている。この読取ライン613に密
着して、直径1mm程度の複数のレンズを一列に並べて構
成されたロッドレンズアレイ714が配置されており、
このロッドレンズアレイ714が、上述した読取ライン
613からの反射光をCCDラインイメージセンサなど
のセンサ715上に結像する構成となっている。
As an example of another color reading device, FIG. 15 shows the configuration of a filter-adhesion type color reading device. Similar to the filter switching type color reading device described above, the document 61
The reading line 613 on the upper part 1 is the lighting device 61 such as a fluorescent lamp.
Illuminated by 2. A rod lens array 714 configured by arranging a plurality of lenses having a diameter of about 1 mm in a line is arranged in close contact with the reading line 613,
The rod lens array 714 is configured to form an image of the reflected light from the reading line 613 described above on a sensor 715 such as a CCD line image sensor.

【0008】ここで、上述したセンサ715の各素子の
並びの方向の長さは、原稿611の幅と同等となってい
る。また、図16に示すように、読取ライン713上の
各画素には、センサ715上の3つの素子の組が対応し
ており、これらの3つの素子のそれぞれは、R,G,B
成分をそれぞれ分解色とするフィルタで覆われている。
従って、これらの3つの素子は、読取ライン613上の
対応する画素からの反射光の強度を測定するカラーセン
サとなっており、これらの3つの素子により、対応する
画素のカラー画像をR,G,B成分に色分解して読み取
る構成となっている。
Here, the length of each element of the above-mentioned sensor 715 in the arrangement direction is equal to the width of the original 611. In addition, as shown in FIG. 16, each pixel on the read line 713 corresponds to a set of three elements on the sensor 715, and each of these three elements corresponds to R, G, and B.
Each component is covered with a filter that has a separated color.
Therefore, these three elements are color sensors that measure the intensity of the reflected light from the corresponding pixels on the read line 613, and the color image of the corresponding pixels is R, G by these three elements. , B components are color-separated and read.

【0009】この場合は、読取ライン613上の各画素
のカラー画像からの反射光のR,G,B成分の強度分布
を同時に読み取ることができるので、カラー画像の読取
の高速化が可能である。
In this case, the intensity distribution of the R, G, B components of the reflected light from the color image of each pixel on the reading line 613 can be read at the same time, so that the reading of the color image can be speeded up. ..

【0010】また、1ラインの読取動作の終了後、原稿
611を読取ライン613に垂直な副走査方向(図15
において矢印Bで示す)に所定の長さだけ移動し、同様
の処理を繰り返して2次元のカラー画像の読み取りが行
われる。
After the reading operation for one line is completed, the original 611 is read in the sub-scanning direction perpendicular to the reading line 613 (see FIG. 15).
(Indicated by arrow B in FIG. 2) by a predetermined length, and the same process is repeated to read a two-dimensional color image.

【0011】[0011]

【発明が解決しようとする課題】ところで、上述した従
来方式にあっては、カラー画像を一旦R,G,Bの各成
分に分解して各成分の強度分布を測定し、その後、これ
らの測定結果を合成することにより、カラー画像を得て
いる。ここで、各分解色の測定結果には、レンズ614
およびロッドレンズアレイ714などの結像用光学系の
収差などによる誤差が含まれており、これらの誤差は、
各分解色ごとに異なっている。
By the way, in the above-mentioned conventional method, a color image is once decomposed into R, G, and B components, the intensity distribution of each component is measured, and then these measurements are performed. A color image is obtained by combining the results. Here, the lens 614 is included in the measurement result of each separated color.
And errors due to aberrations of the imaging optical system such as the rod lens array 714 are included.
It is different for each separation color.

【0012】例えば、図14に示したフィルタ切換型の
カラー読取装置は、読取ライン613を縮小した像をセ
ンサ615上に結ぶ縮小光学系である。このため、レン
ズ614の色収差により、センサ615上における結像
状態および結像位置が、各分解色ごとに変化し、読取誤
差を生じている。また、各分解色ごとの読み取りが時間
差をもって行われるため、原稿611を副走査方向に移
動させながら読み取りを行う場合には、各分解色ごとに
副走査方向の読取位置が異なっている。
For example, the filter switching type color reading apparatus shown in FIG. 14 is a reduction optical system for connecting an image obtained by reducing the reading line 613 on the sensor 615. Therefore, due to the chromatic aberration of the lens 614, the image formation state and the image formation position on the sensor 615 change for each separated color, and a reading error occurs. Further, since the reading for each separated color is performed with a time difference, when the original 611 is read while moving in the sub-scanning direction, the reading position in the sub-scanning direction differs for each separated color.

【0013】また、図15に示したフィルタ密着型のカ
ラー読取装置においては、読取ライン713上の各画素
に対応するセンサ715の3つの素子の読取位置が、主
走査方向にそれぞれ1/3画素ずつ異なっているため、
ロッドレンズアレイ714の収差に加えて、各色成分の
読取位置の違いが読取誤差となっている。
In the filter contact type color reading apparatus shown in FIG. 15, the reading positions of the three elements of the sensor 715 corresponding to each pixel on the reading line 713 are 1/3 pixel in the main scanning direction. Because each is different,
In addition to the aberration of the rod lens array 714, the difference in the reading position of each color component is the reading error.

【0014】このように、各分解色の測定結果はさまざ
まな測定誤差を含んでいるため、これらの測定結果を合
成して得たカラー画像には、必然的に色ずれが発生す
る。この色ずれは、風景写真や人物などのカラー画像を
読み取った際にはあまり目立たないが、文書や線画など
の二値画像においては、読取画像の顕著な劣化として人
間の眼に捉えられてしまう。
As described above, since the measurement results of each separated color include various measurement errors, a color shift is inevitably generated in the color image obtained by combining these measurement results. This color shift is not so noticeable when reading a color image such as a landscape photograph or a person, but in a binary image such as a document or a line drawing, it is perceived by the human eye as a remarkable deterioration of the read image. ..

【0015】特に、上述した密着型のカラー読取機構を
用いて、文書や線画などの白黒のエッジを有する画像を
読み取った場合は、R,G,B成分に対応する素子の読
取位置の違いによって生ずる色ずれにより、各分解色ご
とに白色に対応する白レベルから黒色に対応する黒レベ
ルに変化する位置が異なってしまう。例えば、図17
(a) に示すようなステップ画像の読取画像は、図17
(b) に示すように、ロッドレンズアレイ714の収差に
よって鈍った各色成分の読取結果を読取位置のずれに応
じてずらして合成したものとなる。このため、読取画像
においては、少なくとも1つの色成分が中間レベルとな
っている色ずれ領域(図7(b) において矢印を付して示
す)では、本来ないはずの色(偽色)が発生してしま
う。
In particular, when an image having a black and white edge such as a document or a line drawing is read by using the contact type color reading mechanism described above, the reading positions of the elements corresponding to the R, G and B components are different. Due to the generated color shift, the position at which the white level corresponding to white changes to the black level corresponding to black differs for each separated color. For example, in FIG.
The read image of the step image as shown in FIG.
As shown in (b), the reading result of each color component blunted by the aberration of the rod lens array 714 is shifted and synthesized according to the shift of the reading position. Therefore, in the read image, a color that should not be present (false color) occurs in the color shift area where at least one color component is at an intermediate level (indicated by an arrow in FIG. 7 (b)). Resulting in.

【0016】この偽色は、図18に斜線を付して示すよ
うに、文字や線画を構成するパターンのエッジ部分を縁
取るように現れ、人間の視覚によって捉えられやすいの
で、文書やグラフなどの読取画像の品質を大きく低下さ
せてしまう。
As shown by hatching in FIG. 18, this false color appears so as to border the edge portion of the pattern forming the character or line drawing, and is easily recognized by the human visual sense. , The quality of the read image is greatly reduced.

【0017】上述したような色ずれを防止する方法とし
ては、各分解色ごとの誤差の要因(色収差など)を究明
し、これらの要因に基づいて、各分解色ごとの誤差を解
析的に評価して、測定結果を補正する方法がある。しか
しながら、カラー読取装置は、多数の構成要素から構成
されているため、多数の要因があり、全ての要因を考慮
して、補正量を解析的に求めることは困難である。
As a method for preventing the color shift as described above, the factors of the error (chromatic aberration, etc.) for each separated color are investigated, and the error for each separated color is analytically evaluated based on these factors. Then, there is a method of correcting the measurement result. However, since the color reading device is composed of a large number of constituent elements, there are a large number of factors, and it is difficult to analytically determine the correction amount in consideration of all the factors.

【0018】本発明は、各分解色の読取誤差から生じる
エッジ部の色ずれを補正するカラー読取装置を提供する
ことを目的とする。
It is an object of the present invention to provide a color reading device that corrects a color shift of an edge portion caused by a reading error of each separated color.

【0019】[0019]

【課題を解決するための手段】図1は、請求項1のカラ
ー読取装置の構成を示す図である。請求項1の発明は、
複数の受光素子を1列に配列したラインイメージセンサ
111を有し、ラインイメージセンサ111の各受光素
子に対応する画素ごとに、原稿101上の線状の領域の
白黒画像を複数の色成分に色分解して読み取って、各分
解色の強度を示す複数成分からなる画像データを出力す
る画像読取手段112と、線状の領域に対応する画像デ
ータから、各画素を先頭とする所定の画素数分の画像デ
ータを順次に抽出する抽出手段113と、抽出手段11
3による抽出範囲の起点および終点の画素の画像データ
を保持する保持手段114と、抽出手段113で抽出さ
れた画像データが入力され、画像データの少なくとも1
つの成分の値が抽出範囲の両端部分においてともに一定
であるか否かを判定する判定手段115と、抽出範囲の
両端部分の該当する成分の値が一定である旨の判定結果
に応じて、抽出範囲を起点側の領域と終点側の領域とに
分割し、各領域に含まれる各画素の画像データを保持手
段114に保持された起点および終点の画素の画像デー
タでそれぞれ置き換えて送出する置換手段116とを備
えたことを特徴とする。
FIG. 1 is a view showing the arrangement of a color reading apparatus according to the first aspect of the present invention. The invention of claim 1 is
A line image sensor 111 in which a plurality of light receiving elements are arranged in one row is provided, and a black and white image of a linear region on the original 101 is converted into a plurality of color components for each pixel corresponding to each light receiving element of the line image sensor 111. An image reading unit 112 that reads out by color separation and outputs image data composed of a plurality of components indicating the intensity of each separated color, and a predetermined number of pixels starting from each pixel from the image data corresponding to the linear area. Extracting means 113 for sequentially extracting minute image data, and extracting means 11
The holding unit 114 for holding the image data of the pixels at the start and end points of the extraction range by 3 and the image data extracted by the extracting unit 113 are input, and at least one of the image data is input.
Extraction is performed according to the determination means 115 that determines whether the values of the two components are constant at both ends of the extraction range and the determination result that the values of the corresponding components at both ends of the extraction range are constant. A replacing unit that divides the range into a region on the starting point side and a region on the ending point side, and replaces the image data of each pixel included in each region with the image data of the starting point and the ending point pixel held in the holding unit 114 and sends the replacement data. 116 and are provided.

【0020】図2は、請求項2のカラー読取装置の構成
を示す図である。請求項2の発明は、請求項1に記載の
カラー読取装置において、画像読取手段111で得られ
た画像データを色差空間において該当する色を表す色差
データに変換し、原稿101上の線状の領域に対応する
画像データとして抽出手段113に送出する色変換手段
121と、置換手段116からの画像データを画像読取
手段112における分解色に対応する成分からなる画像
データに変換して送出する色逆変換手段122とを備え
たことを特徴とする。
FIG. 2 is a view showing the arrangement of the color reading apparatus according to the second aspect. According to a second aspect of the present invention, in the color reading apparatus according to the first aspect, the image data obtained by the image reading unit 111 is converted into color difference data representing a corresponding color in the color difference space, and the linear data on the original 101 is converted. A color conversion unit 121 for sending to the extraction unit 113 as image data corresponding to the area, and a color reverse for sending the image data from the replacement unit 116 after converting it into image data composed of components corresponding to the separated colors in the image reading unit 112. And a conversion means 122.

【0021】図3は、請求項3および請求項4のカラー
読取装置の構成を示す図である。請求項3の発明は、請
求項1に記載のカラー読取装置において、点光源に相当
するパターンを少なくとも1つ有する基準パターン10
2と、画像読取手段112によって基準パターン102
を読み取って得られる画像データの入力に応じて、点光
源に相当するパターンからの光が到達するラインイメー
ジセンサ111の範囲を求め、この範囲に対応する画素
数を抽出幅として、抽出手段113による抽出処理に供
する抽出幅決定手段131とを備えたことを特徴とす
る。
FIG. 3 is a view showing the arrangement of the color reading device according to the third and fourth aspects. According to a third aspect of the present invention, in the color reading apparatus according to the first aspect, the reference pattern 10 has at least one pattern corresponding to a point light source.
2 and the reference pattern 102 by the image reading means 112.
The range of the line image sensor 111 to which the light from the pattern corresponding to the point light source arrives is determined according to the input of the image data obtained by reading, and the extraction unit 113 uses the number of pixels corresponding to this range as the extraction width. An extraction width determining means 131 used for extraction processing is provided.

【0022】請求項4の発明は、請求項1に記載のカラ
ー読取装置において、白色と黒色とで表されるエッジパ
ターンを少なくとも1つ有する基準パターン103と、
画像読取手段112によって基準パターン103を読み
取って得られる画像データが入力され、白色に対応する
白レベルと黒色に対応する黒レベルとの間のレベルを有
する画像データが得られるラインイメージセンサ111
の範囲を求め、この範囲に対応する画素数を抽出幅とし
て、抽出手段113による抽出処理に供する抽出幅決定
手段132とを備えたことを特徴とする。
According to a fourth aspect of the invention, in the color reading apparatus according to the first aspect, a reference pattern 103 having at least one edge pattern represented by white and black,
The image data obtained by reading the reference pattern 103 by the image reading unit 112 is input, and the line image sensor 111 that obtains image data having a level between a white level corresponding to white and a black level corresponding to black.
Is obtained, and the number of pixels corresponding to this range is used as the extraction width, and the extraction width determination means 132 to be used for the extraction processing by the extraction means 113 is provided.

【0023】[0023]

【作用】請求項1の発明は、判定手段115による判定
結果に応じて、置換手段116が、抽出手段113によ
って抽出された各画素の画像データを保持手段114に
保持された起点および終点のいずれかの画素の画像デー
タを用いて置き換えるものである。ここで、画像データ
の少なくとも1つの成分の値が複数画素について一定と
なる部分は、色ずれが発生していない部分であるから、
上述した抽出手段113と判定手段115とにより、両
端に色ずれが発生していない部分を含んだ領域を判別す
ることができる。この領域を起点側の領域と終点側の領
域とに分割し、これらの領域の境にエッジがあると仮定
して、各領域に含まれる画像データの置き換えを行うこ
とにより、画像読取手段112における各分解色の読取
誤差から生じるエッジ部の色ずれを除去して、鋭いエッ
ジ画像を再生することができる。
According to the first aspect of the present invention, the replacement unit 116 stores the image data of each pixel extracted by the extraction unit 113 in the holding unit 114 according to the determination result of the determination unit 115. The pixel data is used for replacement. Here, the portion where the value of at least one component of the image data is constant for a plurality of pixels is the portion where no color misregistration occurs,
By the extraction unit 113 and the determination unit 115 described above, it is possible to determine the region including the portions where the color misregistration does not occur at both ends. This area is divided into an area on the starting point side and an area on the ending point side, and it is assumed that there is an edge at the boundary of these areas, and the image data included in each area is replaced, whereby the image reading unit 112 It is possible to reproduce the sharp edge image by removing the color shift of the edge portion caused by the reading error of each separated color.

【0024】請求項2の発明は、色変換手段121によ
って得られた色差データが、画像データとして抽出手段
113に送出されるので、判定手段115は、色差デー
タの各成分で示される各画素の色あるいは明るさに基づ
いて、上述した判定処理を行うことができる。一般に、
* * * 表色系などの色差データにおいては、各成
分の値が一定の値となる傾向が強いので、両端部分が白
レベルあるいは黒レベルであるか否かを正確に判定する
ことができる。
According to the second aspect of the present invention, the color difference data obtained by the color conversion means 121 is sent to the extraction means 113 as image data. Therefore, the determination means 115 determines each pixel indicated by each component of the color difference data. The determination process described above can be performed based on color or brightness. In general,
In color difference data such as the L * a * b * color system, the value of each component tends to be a constant value, so it is necessary to accurately determine whether both ends are at the white level or the black level. You can

【0025】請求項3の発明は、基準パターン102が
有する点光源に相当するパターンからの光が到達するイ
メージセンサ111の範囲が、画像読取手段112によ
る各分解色の読取誤差による像の拡がりに相当している
ことを利用して、抽出幅決定手段131により、適切な
抽出幅を求めることができる。
According to the third aspect of the present invention, the range of the image sensor 111 to which the light from the pattern corresponding to the point light source of the reference pattern 102 reaches reaches the spread of the image due to the reading error of each separated color by the image reading means 112. The extraction width determining means 131 can determine an appropriate extraction width by utilizing the corresponding fact.

【0026】また、請求項4の発明は、白レベルと黒レ
ベルとの中間のレベルを有する画像データが得られるラ
インイメージセンサ111の範囲が、画像読取手段11
2による基準パターン103が有するエッジパターンの
像の拡がりに相当していることを利用して、抽出幅決定
手段132により、適切な抽出幅を求めることができ
る。
According to the invention of claim 4, the range of the line image sensor 111 in which the image data having an intermediate level between the white level and the black level is obtained is the image reading means 11.
It is possible to obtain an appropriate extraction width by the extraction width determining unit 132 by utilizing the fact that the image width of the edge pattern of the reference pattern 103 according to 2 corresponds.

【0027】[0027]

【実施例】以下、図面に基づいて本発明の実施例につい
て詳細に説明する。図4は、本発明のカラー読取装置の
実施例構成を示す。
Embodiments of the present invention will now be described in detail with reference to the drawings. FIG. 4 shows the configuration of an embodiment of the color reading device of the present invention.

【0028】図4において、画像読取手段112は、図
15に示したフィルタ密着型のカラー読取機構211に
よって原稿101を読み取り、ラインイメージセンサ1
11に相当するセンサ715のアナログ出力をアナログ
−デジタル(A/D)変換部213がデジタル値に変換
する。また、このアナログ−デジタル変換部213で得
られた変換結果は、シェーディング補正部220に入力
され、このシェーディング補正部220により、メモリ
221に予め保持された標準画像データを用いて正規化
された後に、RGB各成分の読取結果からなる画像デー
タを得る構成となっている。
In FIG. 4, the image reading means 112 reads the original 101 by the filter contact type color reading mechanism 211 shown in FIG.
The analog output of the sensor 715 corresponding to 11 is converted into a digital value by the analog-digital (A / D) converter 213. Further, the conversion result obtained by the analog-digital conversion unit 213 is input to the shading correction unit 220, and is normalized by the shading correction unit 220 using the standard image data stored in the memory 221 in advance. , R, G, and B components are obtained to obtain image data.

【0029】ここで、上述した標準画像データとして
は、原稿101の読み取りに先立って、カラー読取機構
211によって白色の板などの読み取りを行い、このと
き得られた1ライン分の画像データをメモリ221に保
持しておけばよい。
Here, as the standard image data described above, a white plate or the like is read by the color reading mechanism 211 prior to reading the original 101, and the image data for one line obtained at this time is stored in the memory 221. You can keep it in.

【0030】これにより、カラー読取機構211に備え
られた照明装置612の光量の不均一やセンサ715の
各素子の感度のばらつきなどによる影響を取り除き、こ
のような特性によって現れる画像の濃淡(シェーディン
グ)を補正して、原稿101上の読取ライン613の画
像の色および明るさを忠実に反映する画像データを得る
ことができる。
As a result, the influence of the unevenness of the light amount of the illumination device 612 provided in the color reading mechanism 211 and the variation of the sensitivity of each element of the sensor 715 is removed, and the shading of the image appearing due to such characteristics. Can be corrected to obtain image data that faithfully reflects the color and brightness of the image on the reading line 613 on the original 101.

【0031】このようにして正規化された各画素の画像
データは、色ずれ補正部230に順次に入力される。図
4において、色ずれ補正部230は、色変換手段121
に相当する色変換部231が、各画素の画像データの表
色系をRGB表色系からL* * * 表色系に変換し、
得られた色差データをバッファ232に保持し、この色
差データに対して後述する補正処理を行った後に、色逆
変換手段122に相当する色変換部233が、RGB表
色系の画像データに逆変換して送出する構成となってい
る。
The image data of each pixel thus normalized is sequentially input to the color misregistration correction unit 230. In FIG. 4, the color misregistration correction unit 230 includes a color conversion unit 121.
The color conversion unit 231 corresponding to converts the color system of the image data of each pixel from the RGB color system to the L * a * b * color system,
The obtained color difference data is held in the buffer 232, and after the color difference data is subjected to the correction processing described later, the color conversion unit 233 corresponding to the color reverse conversion means 122 reverses the RGB color system image data. It is configured to be converted and transmitted.

【0032】上述したバッファ232は、入力される連
続するm画素分の色差データを入力順のアドレスに保持
するとともに、新しい色差データの入力に応じて、最も
古い色差データを出力する構成となっており、抽出手段
113の機能を果たしている。以下、このバッファ23
2の各アドレスを入力順に『1』〜『m』の番号を付し
て示す。また、このバッファ232に対する書込処理お
よび読出処理は、それぞれ読出処理部234および書込
処理部235によって行われる構成となっている。
The above-mentioned buffer 232 is configured to hold the input color difference data for m pixels at the addresses in the input order and output the oldest color difference data in response to the input of new color difference data. And functions as the extraction unit 113. Below, this buffer 23
Each address of No. 2 is shown in the order of input with numbers "1" to "m". The writing process and the reading process for the buffer 232 are performed by the reading processing unit 234 and the writing processing unit 235, respectively.

【0033】また、図4において、4つのレジスタ23
1 〜2364 と2つの比較器237a,237bとア
ンドゲート238とは、判定手段115を形成してお
り、レジスタ2361 ,2362 およびレジスタ236
3 ,2364 の内容を比較器237a,237bがそれ
ぞれ比較し、アンドゲート238が、この比較結果の論
理積を判定結果として出力する構成となっている。
Further, in FIG. 4, four registers 23 are provided.
6 1-236 4 and two comparators 237a, and 237b and the AND gate 238 forms a judgment unit 115, registers 236 1, 236 2 and the register 236
3, 236 compare 4 of the inner container 237a, 237b are respectively compared, AND gate 238 has a configuration for outputting a logical product of the comparison result as the determination result.

【0034】上述したレジスタ2361 〜2364 は、
バッファ232のアドレス『1』,『2』,『m−
1』,『m』にそれぞれ対応しており、読出処理部23
4により、これらのアドレスから読み出された色差デー
タの成分がそれぞれ設定される構成となっている。ま
た、上述した比較器237a,237bそれぞれは、対
応するレジスタ236の内容が等しい場合に比較結果と
して論理“1”を出力し、異なる場合は論理“0”を出
力する構成とすればよい。
[0034] register 236 1-236 4 described above,
Addresses "1", "2", "m- of the buffer 232"
1 ”and“ m ”respectively, and the read processing unit 23
4, the components of the color difference data read from these addresses are set respectively. Further, each of the comparators 237a and 237b described above may be configured to output a logical "1" as a comparison result when the contents of the corresponding registers 236 are equal and output a logical "0" when the contents are different.

【0035】以下、図5に示す色ずれ補正動作を表す流
れ図と図4とを参照しながら、色ずれ補正処理について
説明する。各ラインの画像データに対する色ずれ補正処
理を開始する際には、まず、バッファ232の各アドレ
スを初期化し、その後、以下の処理を開始する。
The color misregistration correction process will be described below with reference to the flowchart showing the color misregistration correction operation shown in FIG. 5 and FIG. When starting the color misregistration correction processing for the image data of each line, first, each address of the buffer 232 is initialized, and then the following processing is started.

【0036】まず、色変換部231により、シェーディ
ング補正部220からの1画素分の画像データを順次に
色差データに変換してバッファ232に入力し、バッフ
ァ232にm画素分の色差データが保持されるまで、ス
テップ302の否定判定として、ステップ301〜ステ
ップ302を繰り返す。
First, the color conversion unit 231 sequentially converts the image data for one pixel from the shading correction unit 220 into color difference data and inputs it to the buffer 232, and the buffer 232 holds the color difference data for m pixels. Until step 302, step 301 to step 302 are repeated as a negative determination in step 302.

【0037】バッファ232にm画素分の色差データが
保持されたときに、ステップ302の肯定判定となり、
これに応じて、読出処理部234は、バッファ232に
保持されたm画素幅の色差データから両端のそれぞれ2
画素分の明度指数L* を読み出して、上述したレジスタ
2361 〜2364 に設定する(ステップ303)。こ
のとき、読出処理部234は、バッファ232のアドレ
ス『1』,『2』から読み出した明度指数L* をレジス
タ2361 ,2362 にそれぞれ設定し、アドレス『m
−1』,『m』から読み出した明度指数L* をレジスタ
2363 ,2364 にそれぞれ設定すればよい。
When m pixels of color difference data are held in the buffer 232, an affirmative decision is made in step 302,
In response to this, the read processing unit 234 determines that the color difference data of the m pixel width stored in the buffer 232 is 2 at both ends.
Reads the lightness of pixels L *, is set in the register 236 1 to 236 4 described above (step 303). At this time, the read processing unit 234 sets the lightness index L * read from the addresses “1” and “2” of the buffer 232 in the registers 236 1 and 236 2 , respectively, and the address “m” is set.
The brightness index L * read from "-1" and "m" may be set in the registers 236 3 and 236 4 , respectively.

【0038】これにより、比較器237a,237bに
より、それぞれ対応するレジスタ236に設定された明
度指数L* の比較が行われ(ステップ304)、それぞ
れの比較結果がアンドゲート238に送出される。
As a result, the comparators 237a and 237b compare the lightness index L * set in the corresponding registers 236 (step 304), and the respective comparison results are sent to the AND gate 238.

【0039】従って、2つの比較器237a,237b
の出力がともに論理“1”となり、アンドゲート237
により、判定結果として論理“1”が出力されたとき
に、上述した抽出範囲の両端の明度指数L* のレベルが
一定に保たれているとして、ステップ305における肯
定判定とすればよい。
Therefore, the two comparators 237a and 237b are provided.
Output of both become logic "1", and AND gate 237
Thus, when the logical "1" is output as the determination result, the level of the lightness index L * at both ends of the extraction range described above is kept constant, and an affirmative determination in step 305 may be made.

【0040】この場合に、書込処理部235は、バッフ
ァ232のアドレス『2』〜アドレス『k』にアドレス
『1』の色差データを複写し、アドレス『k+1』〜ア
ドレス『m−1』にアドレス『m』の色差データを複写
する(ステップ306)。このとき、書込処理部235
は、まず、読出処理部234にアドレス『1』およびア
ドレス『m』の色差データの読み出しを依頼し、得られ
た色差データを上述した各アドレスにそれぞれ書き込め
ばよい。また、上述したアドレス『k』は、例えば、m
画素の中央の画素に対応するアドレスとすればよい。
In this case, the writing processor 235 copies the color difference data of the address "1" to the address "2" to the address "k" of the buffer 232, and copies it to the address "k + 1" to the address "m-1". The color difference data of the address "m" is copied (step 306). At this time, the write processing unit 235
First, the read processing unit 234 may be requested to read the color difference data at the address “1” and the address “m”, and the obtained color difference data may be written in each of the addresses described above. Further, the above-mentioned address "k" is, for example, m
The address may correspond to the pixel at the center of the pixels.

【0041】これにより、バッファ232に保持された
m画素の色差データは、上述したk番目の画素を境に、
前半はアドレス『1』の色差データに置き換えられ、後
半はアドレス『m』の色差データに置き換えられる。こ
のように、書込処理部235が、上述したステップ30
6の処理を行って、各画素の色差データの書換えを行う
ことにより、置換手段116の機能が実現されている。
また、この場合は、バッファ232によって、保持手段
114の機能が果たされている。
As a result, the color difference data of the m pixels held in the buffer 232 is divided by the above-mentioned kth pixel.
The first half is replaced with the color difference data of the address "1", and the second half is replaced with the color difference data of the address "m". As described above, the writing processing unit 235 performs the above-described step 30.
The function of the replacement unit 116 is realized by performing the process of 6 and rewriting the color difference data of each pixel.
In this case, the buffer 232 serves the function of the holding unit 114.

【0042】ここで、文書や線画などの白黒画像を読み
取って得られる読取画像において、色差データの少なく
とも1つの成分が複数画素にわたって一定である部分
は、色ずれが発生していない部分であるから、上述した
ステップ305により、両端に色ずれが発生していない
部分を含む領域を判別することができる。
Here, in a read image obtained by reading a black-and-white image such as a document or a line drawing, a portion where at least one component of the color difference data is constant over a plurality of pixels is a portion in which no color misregistration occurs. By the above-mentioned step 305, it is possible to discriminate the area including the portions where the color misregistration does not occur at both ends.

【0043】また、白黒画像を理想的に読み取った読取
画像においては、エッジ部においてのみ色差データが白
レベルと黒レベルとの間で不連続に変化し、エッジ部以
外の部分では、連続する複数の画素の色差データは白色
あるいは黒色を示す一定の値となる。すなわち、ステッ
プ306において、アドレス『k』に対応する画素を仮
想的なエッジの位置とし、この画素を境として各画素の
色差データをそれぞれ置き換えて、両端の画素にそれぞ
れ連続する各画素の色差データを一定値とすることによ
り、色ずれを除去することができる。
In a read image obtained by ideally reading a black-and-white image, the color difference data changes discontinuously between the white level and the black level only at the edge portion, and at the portion other than the edge portion, a plurality of continuous color difference data is obtained. The pixel color difference data has a constant value indicating white or black. That is, in step 306, the pixel corresponding to the address “k” is set as a virtual edge position, the color difference data of each pixel is replaced with this pixel as a boundary, and the color difference data of each pixel that is continuous with the pixels at both ends is replaced. The color shift can be removed by keeping the value of a constant value.

【0044】図6に、本発明の色ずれ補正動作の説明図
を示す。図6(a) は、図17(b) に示したエッジ部分の
画像データを色変換して得られる色差データを示す。こ
のように、色ずれ領域の両側に、色ずれが発生していな
い領域に色ずれ領域を含んだ色差データが抽出された場
合は、上述したステップ305における肯定判定とな
り、ステップ306の置き換え処理が行われる。これに
より、この抽出範囲に含まれる各画素の色差データは、
図6(b) に示すように、中央の画素を境として、一方は
黒レベルの色差データに置き換えられ、他方は白レベル
の色差データに置き換えられる。
FIG. 6 shows an explanatory diagram of the color misregistration correction operation of the present invention. FIG. 6A shows color difference data obtained by color-converting the image data of the edge portion shown in FIG. 17B. In this way, when the color difference data including the color misregistration area in the area where the color misregistration does not occur is extracted on both sides of the color misregistration area, the affirmative determination is made in step 305 described above, and the replacement process of step 306 is performed. Done. As a result, the color difference data of each pixel included in this extraction range is
As shown in FIG. 6B, one of the pixels is replaced with black-level color difference data and the other is replaced with white-level color difference data with the central pixel as a boundary.

【0045】この色差データは、抽出範囲の中央にエッ
ジを有する画像の理想的な読取結果に相当するものであ
り、このm画素分の色差データを色変換部233に送出
し(ステップ307)、RGB表色系に逆変換すること
により、図6(c) に示すように、RGB各成分が中央の
画素を境に黒レベルから白レベルにステップ状に変化す
る画像データが得られる。
This color difference data corresponds to an ideal reading result of an image having an edge at the center of the extraction range, and this m pixel worth of color difference data is sent to the color conversion section 233 (step 307). By inversely converting into the RGB color system, as shown in FIG. 6 (c), image data in which each RGB component changes stepwise from the black level to the white level with the central pixel as a boundary is obtained.

【0046】すなわち、上述した処理により、RGB各
成分の読取誤差によって生じる色ずれを補正してステッ
プ画像を再生することができる。その後、1ライン分の
処理が終了したか否かを判定し(ステップ309)、否
定判定の場合は、ステップ301に戻って、上述した処
理を繰り返す。この場合は、上述したステップ301,
302がm回だけ繰り返され、m画素分の色差データが
バッファ232に保持されたときに、再び、ステップ3
03以下の処理が開始され、新しく抽出されたm画素分
の色差データの両端の明度指数L* のレベルが判定され
る。
That is, by the above-described processing, it is possible to correct the color shift caused by the reading error of each of the RGB components and reproduce the step image. After that, it is determined whether or not the processing for one line is completed (step 309), and in the case of a negative determination, the processing returns to step 301 and the above-described processing is repeated. In this case, the above step 301,
302 is repeated m times, and when the color difference data for m pixels is held in the buffer 232, step 3 is executed again.
The process starting from 03 is started, and the levels of the brightness index L * at both ends of the newly extracted color difference data for m pixels are determined.

【0047】一方、ステップ303における否定判定の
場合は、バッファ232のアドレス『1』に保持されて
いた色差データを色変換部233によってRGB表色系
の画像データに逆変換して(ステップ308)出力した
後にステップ309に進み、ステップ309の肯定判定
となるまで、ステップ301〜ステップ309の処理が
繰り返される。これにより、抽出範囲を1画素ずつずら
しながら両端の明度指数L* が一定となっている部分を
もれなく見つけ、この部分の色差データを両端の色差デ
ータを用いて置き換えることができる。
On the other hand, in the case of a negative determination in step 303, the color difference data held in the address "1" of the buffer 232 is inversely converted into image data of the RGB color system by the color conversion section 233 (step 308). After the output, the process proceeds to step 309, and the processes of step 301 to step 309 are repeated until the positive determination of step 309 is obtained. With this, it is possible to find all the portions where the lightness index L * is constant at both ends while shifting the extraction range by one pixel, and replace the color difference data at this portion with the color difference data at both ends.

【0048】また、ステップ309の肯定判定となった
ときは、1ライン分の処理が終了したとして、バッファ
232に保持されている色差データを順次に画像データ
に逆変換して出力し、バッファ232を初期化した後
に、次の1ライン分の画像データの処理を開始すればよ
い。
When the affirmative determination is made in step 309, it is determined that the processing for one line is completed, and the color difference data held in the buffer 232 is sequentially reverse-converted into image data and output, and the buffer 232 is output. After initializing, the processing of the image data for the next one line may be started.

【0049】このようにして、全ライン分の画像データ
の補正処理を行うことにより、主走査方向の色ずれを補
正し、副走査方向のエッジ部に伴う偽色を除去して、高
品質の読取画像を出力することができる。
In this way, by correcting the image data for all lines, the color misregistration in the main scanning direction is corrected, and the false color associated with the edge portion in the sub-scanning direction is removed to obtain a high quality image. The read image can be output.

【0050】更に、副走査方向についても同様の処理を
行って、副走査方向の色ずれを補正すれば、主走査方向
のエッジ部に伴う偽色を除去することができ、より高品
質の読取画像を出力することができる。
Further, by performing the same processing in the sub-scanning direction to correct the color misregistration in the sub-scanning direction, it is possible to remove the false color associated with the edge portion in the main scanning direction, so that a higher quality reading can be performed. Images can be output.

【0051】ここで、色差データの明度指数L* は、R
GB各成分を反映しているので、明度指数L* の変動に
基づいてエッジの位置を決めて置き換え処理を行うこと
により、RGB各成分の読取誤差を考慮しながら色ずれ
を補正することができる。
Here, the lightness index L * of the color difference data is R
Since each of the GB components is reflected, by determining the position of the edge based on the variation of the lightness index L * and performing the replacement process, the color misregistration can be corrected while considering the reading error of each of the RGB components. ..

【0052】また、L* * * 表色系などで表される
色差空間においては、白黒画像を読み取って得られる画
像データに対応する色差データの各成分の値が一定値と
なる傾向が特に強いので、上述した抽出手段113と判
定手段115とにより、両端に色ずれが発生していない
領域を有する部分を正確に判別することができる。
Further, in the color difference space represented by the L * a * b * color system or the like, the value of each component of the color difference data corresponding to the image data obtained by reading a black and white image tends to be a constant value. Since it is particularly strong, the extraction unit 113 and the determination unit 115 described above can accurately determine a portion having a region where color misregistration does not occur at both ends.

【0053】なお、明度指数L* の代わりに、知覚色度
*,b* を用いて上述した処理を行ってもよい。ま
た、RGB表色系で表された画像データをそのまま補正
してもよい。
The above-mentioned processing may be performed using the perceptual chromaticities a * and b * instead of the lightness index L * . Further, the image data represented by the RGB color system may be directly corrected.

【0054】例えば、図7に示すように、図4に示した
色ずれ補正部230から2つの色変換部231,233
を除去し、シェーディング補正部220からの画像デー
タをそのままバッファ232に保持する構成とし、読出
処理部234は、バッファ232から画像データのG成
分を読み出して、判定手段115に送出する構成とすれ
ばよい。
For example, as shown in FIG. 7, the color shift correction unit 230 shown in FIG.
And the image data from the shading correction unit 220 is retained in the buffer 232 as it is, and the read processing unit 234 reads the G component of the image data from the buffer 232 and sends it to the determination unit 115. Good.

【0055】この場合は、色変換部が不要となるので、
装置の構成を簡単とし、補正処理の高速化を図ることが
できる。但し、R成分およびB成分の読取結果の変動に
かかわらず、G成分の読取結果の変動に基づいてエッジ
の位置が決定され、このエッジの位置を境に画像データ
の置き換え処理が行われるので、R成分あるいはB成分
の読取誤差が極端に大きい場合などに、色ずれを補正し
きれない可能性がある。
In this case, since the color conversion section is unnecessary,
It is possible to simplify the configuration of the device and speed up the correction process. However, the position of the edge is determined based on the variation of the reading result of the G component regardless of the variation of the reading result of the R component and the B component, and the image data replacement process is performed with the edge position as a boundary. When the reading error of the R component or the B component is extremely large, there is a possibility that the color misregistration cannot be completely corrected.

【0056】また、RGB各成分に対応して、レジスタ
2361 〜2364 と比較器237a,237bとアン
ドゲート238との組合せを3組備えて判定手段115
を構成し、RGB各成分についての判定結果の論理積を
全体の判定結果として、書込処理部235に送出する構
成とすれば、RGB各成分の読取結果の変動を考慮して
エッジの補正を行うことができる。
[0056] In correspondence to the RGB components, registers 236 1 to 236 4 and the comparator 237a, 3 pairs comprising by determination means a combination of 237b and AND gate 238 115
And the logical product of the determination results for each of the RGB components is sent to the writing processing unit 235 as the overall determination result, the edge correction is performed in consideration of the variation in the reading result of each of the RGB components. It can be carried out.

【0057】ところで、上述した抽出手段113による
色差データ(あるいは画像データ)の抽出幅が狭すぎる
と、図8(a) に示すように、エッジ部分の色差データを
抽出したときに、判定手段115により、少なくとも一
方の端のレベルが一定でないとされるので、エッジ部分
を補正することができない。一方、抽出幅を拡げすぎる
と、図8(b) に示すように、複数のエッジ部分を含んだ
色差データが抽出されたときに、上述した置き換え処理
が行われてしまい、文字や線画の線状のパターンが消え
てしまう可能性がある。
By the way, if the extraction width of the color difference data (or image data) by the above-mentioned extraction means 113 is too narrow, as shown in FIG. 8A, when the color difference data of the edge portion is extracted, the determination means 115 As a result, the level of at least one end is not constant, so that the edge portion cannot be corrected. On the other hand, if the extraction width is expanded too much, the replacement process described above will be performed when the color difference data including a plurality of edge portions is extracted, as shown in FIG. Pattern may disappear.

【0058】このため、エッジをもれなく補正するため
には、抽出手段113により、図8(c) に示すように、
色ずれ領域の幅に所定の余裕を加えた過不足ない抽出幅
で色差データ(あるいは画像データ)を抽出する必要が
ある。
Therefore, in order to correct all edges, the extraction means 113 can be used as shown in FIG. 8 (c).
It is necessary to extract the color difference data (or the image data) with an extraction width that is not excessive or insufficient by adding a predetermined margin to the width of the color shift area.

【0059】ここで、読取画像の各色成分は、原画像の
各色成分とカラー読取機構211の各色成分の読取誤差
を表す点広がり関数との畳み込み積分で表されるから、
各色成分の点広がり関数の拡がりを調べることにより、
エッジのぼけ像の拡がり、すなわち、色ずれ領域の幅を
求めることができる。
Here, each color component of the read image is represented by the convolution integral of each color component of the original image and the point spread function representing the reading error of each color component of the color reading mechanism 211.
By examining the spread of the point spread function of each color component,
The spread of the blurred image of the edge, that is, the width of the color shift area can be obtained.

【0060】図9に、請求項3のカラー読取装置の実施
例構成図を示す。図9において、カラー読取装置は、原
稿101の読み取りに先立って、画像読取手段112が
この基準パターン102を読み取り、得られた画像デー
タの各成分をそれぞれラインバッファ311r,311
g,311bに保持する構成となっている。
FIG. 9 shows a block diagram of an embodiment of the color reading apparatus of the third aspect. In the color reading apparatus shown in FIG. 9, the image reading unit 112 reads the reference pattern 102 prior to reading the original 101, and the components of the obtained image data are line buffers 311r and 311 respectively.
g, 311b.

【0061】この基準パターン102は、図10に斜線
を付して示すように、点光源に相当するパターンとし
て、センサ715の1画素に相当する大きさを有する黒
色のパターンを所定の間隔で主走査方向に配列して形成
されている。また、逆に、黒地に白色のパターンを配置
して、基準パターン102を形成してもよい。
As shown by hatching in FIG. 10, the reference pattern 102 is a pattern corresponding to a point light source, and a black pattern having a size corresponding to one pixel of the sensor 715 is mainly provided at predetermined intervals. It is formed so as to be arranged in the scanning direction. Conversely, a white pattern may be arranged on a black background to form the reference pattern 102.

【0062】また、抽出幅決定手段131は、拡がり幅
検出部312r,312g,312bが、入力される白
レベルと上述したラインバッファ311r,311g,
311bに保持された画像データとを順次に比較して、
白レベル以外の画像データが連続して分布している範囲
を上述した点光源に相当するパターンの像の拡がりとし
てそれぞれ検出し、この検出結果に基づいて、決定処理
部313が、抽出範囲を決定する構成となっている。上
述した拡がり幅検出部312r,312g,312b
は、点光源に相当するパターンのそれぞれに対応する像
の拡がりが開始する位置と終了する位置とを示すライン
バッファ311r,311g,311bのアドレスを求
め、このアドレスを像の拡がり範囲の検出結果として決
定処理部313に送出する構成とすればよい。
In the extraction width determining means 131, the spread width detecting sections 312r, 312g, 312b are supplied with the white level input thereto and the above-mentioned line buffers 311r, 311g,
The image data stored in 311b are sequentially compared,
The range in which the image data other than the white level is continuously distributed is detected as the spread of the image of the pattern corresponding to the point light source described above, and the determination processing unit 313 determines the extraction range based on the detection result. It is configured to do. The above-mentioned spread width detection units 312r, 312g, 312b
Is an address of the line buffers 311r, 311g, 311b indicating the start position and the end position of the image spread corresponding to each of the patterns corresponding to the point light sources, and this address is used as the detection result of the image spread range. The configuration may be such that it is sent to the decision processing unit 313.

【0063】これらの拡がり幅検出部312r,312
g,312bで得られる点光源に相当するパターンの像
の拡がりは、各色成分の点拡がり関数の拡がりであり、
また、上述したパターンの位置にある画素について読取
感度を有するセンサ715の受光素子の範囲を示してい
る。
These spread width detecting sections 312r, 312
The image spread of the pattern corresponding to the point light source obtained by g, 312b is the spread of the point spread function of each color component,
In addition, the range of the light receiving element of the sensor 715 having the reading sensitivity for the pixel at the position of the above-described pattern is shown.

【0064】ここで、上述したように、フィルタ密着型
のカラー読取機構においては、各色成分に対応する受光
素子の読取位置がずれているため、各色成分の読取感度
分布は、図11に示すように、それぞれ異なる位置を中
心として拡がっている。
As described above, in the filter contact type color reading mechanism, the reading position of the light receiving element corresponding to each color component is deviated, so that the reading sensitivity distribution of each color component is as shown in FIG. In addition, they are spread around different positions.

【0065】従って、決定処理部313は、各色成分の
像の拡がり範囲の交わりで与えられる範囲の両側に所定
の余裕を加えたものを抽出幅とすればよい。例えば、各
拡がり幅検出部312r,312g,312bにより、
点光源に相当するパターンのそれぞれに対応して得られ
たアドレスの最大値からアドレスの最少値を差し引い
て、対応する像の各色成分の拡がり範囲の交わりをそれ
ぞれ求め、これらの交わりの最大値に2画素分の余裕を
加えた値を抽出幅とし、色ずれ補正部230に備えるバ
ッファ232の容量を設定すればよい。
Therefore, the determination processing unit 313 may set the extraction width as a value obtained by adding a predetermined margin to both sides of the range given by the intersection of the image expansion ranges of the respective color components. For example, by the spread width detection units 312r, 312g, and 312b,
The minimum value of the address is subtracted from the maximum value of the address obtained for each of the patterns corresponding to the point light source, and the intersection of the spread range of each color component of the corresponding image is obtained, and the maximum value of these intersections is calculated. The value obtained by adding a margin for two pixels may be set as the extraction width, and the capacity of the buffer 232 included in the color misregistration correction unit 230 may be set.

【0066】これにより、カラー読取機構211の読取
誤差による色ずれ領域の幅を正確に評価し、過不足ない
抽出幅を設定することが可能となり、読取画像に含まれ
るエッジ部分の色ずれをもれなく補正することができ
る。
As a result, it is possible to accurately evaluate the width of the color misregistration area due to the reading error of the color reading mechanism 211 and set the extraction width that is just enough, so that the color misregistration of the edge portion included in the read image is not lost. Can be corrected.

【0067】また、点光源に相当するパターンのそれぞ
れに対応して、1ラインの画像データを複数の領域に分
割し、決定処理部313が、各領域ごとに抽出幅を決定
する構成としてもよい。
Further, the image data of one line may be divided into a plurality of areas corresponding to each of the patterns corresponding to the point light sources, and the determination processing unit 313 may determine the extraction width for each area. ..

【0068】なお、図12に示すように、基準パターン
102に代えて、エッジパターンを有する基準パターン
103を備え、この基準パターン103の読取結果に基
づいて、抽出幅決定手段132が、抽出幅を決定する構
成としてもよい。
As shown in FIG. 12, a reference pattern 103 having an edge pattern is provided in place of the reference pattern 102, and the extraction width determining means 132 determines the extraction width based on the reading result of the reference pattern 103. It may be configured to determine.

【0069】上述した基準パターン103としては、図
13に示すように、副走査方向に充分に長い黒色の帯状
パターンと白色の帯状パターンとを交互に配置したもの
を用いればよい。但し、図13において、黒色のパター
ンを斜線を付して示した。この帯状パターンとしては、
各色成分の読取感度分布に比べて充分に広い幅を有する
ものを用いればよい。
As the above-mentioned reference pattern 103, as shown in FIG. 13, a pattern in which black strip-shaped patterns and white strip-shaped patterns which are sufficiently long in the sub-scanning direction are alternately arranged may be used. However, in FIG. 13, a black pattern is shown by hatching. For this strip pattern,
What has a width sufficiently wider than the reading sensitivity distribution of each color component may be used.

【0070】また、抽出幅決定手段132は、図9に示
した拡がり幅検出部312r,312g,312bに代
えて、拡がり幅検出部314r,314g,314bを
備えて構成されている。この拡がり幅検出部314r,
314g,314bは、ラインバッファ311r,31
1g,311bに保持された各画素の画像データと白レ
ベルおよび黒レベルとを比較し、白レベルと黒レベルと
の中間のレベルを有する画像データが連続して分布する
範囲をエッジパターンの拡がり幅として求めて、決定処
理部313に送出する構成となっている。
The extraction width determining means 132 is provided with spread width detecting portions 314r, 314g, 314b instead of the spread width detecting portions 312r, 312g, 312b shown in FIG. This spread width detection unit 314r,
314g and 314b are line buffers 311r and 31
The image data of each pixel held in 1g and 311b is compared with the white level and the black level, and the range in which the image data having an intermediate level between the white level and the black level is continuously distributed is defined as the spread width of the edge pattern. And is sent to the decision processing unit 313.

【0071】これにより、カラー読取機構211の読取
感度分布によるエッジパターンの拡がり幅、すなわち色
ずれ領域の幅を直接に評価し、この色ずれ領域の幅に対
応する過不足ない抽出幅を求めることができる。
Thus, the spread width of the edge pattern due to the reading sensitivity distribution of the color reading mechanism 211, that is, the width of the color misregistration area is directly evaluated, and an extraction width that is just enough and corresponds to the width of the color misregistration area is obtained. You can

【0072】また、この場合は、副走査方向の所定の範
囲で同等の読取結果が得られるので、副走査方向の位置
合わせが容易である。従って、抽出幅決定手段132の
各ラインバッファ311に各色成分の読取強度分布に相
当する画像データを確実に保持し、拡がり幅検出部31
4による拡がり幅の評価処理に供することができるの
で、各色成分の読取強度分布の幅を正確に評価すること
が可能となる。これにより、決定処理部313によっ
て、過不足ない抽出幅を正確に求めることができるの
で、エッジ部分の色ずれをもれなく補正して、シャープ
なエッジを再生することができる。
Further, in this case, since the same reading result can be obtained within a predetermined range in the sub-scanning direction, the alignment in the sub-scanning direction is easy. Therefore, the line width 311 of the extraction width determining unit 132 surely holds the image data corresponding to the read intensity distribution of each color component, and the spread width detection unit 31.
Since it can be subjected to the spread width evaluation process of 4, the width of the read intensity distribution of each color component can be accurately evaluated. With this, the determination processing unit 313 can accurately obtain the extraction widths that are just enough, so that the color misregistration of the edge portion can be completely corrected, and a sharp edge can be reproduced.

【0073】なお、図14に示したフィルタ切換型のカ
ラー読取機構を用いて画像読取手段112を構成し、得
られた読取結果を色ずれ補正部230で補正する構成と
してもよい。
The image reading means 112 may be constructed by using the filter switching type color reading mechanism shown in FIG. 14, and the obtained reading result may be corrected by the color shift correcting section 230.

【0074】ここで、フィルタ切換型のカラー読取機構
においては、各色成分の主走査方向の読取位置は一致し
ているが、縮小光学系を含んでいるために、像高の大き
い原稿101の周辺部分の色収差が大きくなっている。
In the filter switching type color reading mechanism, the reading positions of the respective color components in the main scanning direction are the same, but since the reduction optical system is included, the periphery of the original 101 having a large image height is included. The chromatic aberration of the part is large.

【0075】このような色収差による色ずれは、上述し
た補正処理により同様に補正可能であるから、原稿10
1の周辺部分のエッジ部の色ずれを補正して、中央部と
同様にシャープなエッジを再生することができる。これ
により、画面全体にわたって良好な読取画像を得ること
ができる。
The color shift due to such chromatic aberration can be similarly corrected by the above-described correction processing, so that the original 10 is corrected.
It is possible to correct the color misregistration of the edge portion of the peripheral portion of No. 1 and reproduce the sharp edge as in the central portion. As a result, a good read image can be obtained over the entire screen.

【0076】[0076]

【発明の効果】以上説明したように本発明は、両端に色
ずれが発生していない部分を含んだ領域を判別し、該当
する領域に含まれる各画素の画像データを仮想的なエッ
ジを境として両端の画像データに置き換えることによ
り、画像読取手段における各分解色の読取誤差から生じ
るエッジ部の色ずれを除去し、偽色を伴わない鋭いエッ
ジ画像を再生して、高品質の読取画像を得ることができ
る。
As described above, according to the present invention, an area including a part where no color shift occurs at both ends is discriminated, and image data of each pixel included in the corresponding area is separated by a virtual edge. As a result, by replacing the image data at both ends with the color misregistration of the edge portion caused by the reading error of each separated color in the image reading means, a sharp edge image without false color is reproduced and a high quality read image is obtained. Obtainable.

【0077】また、判定手段が、色差データに基づいて
判定を行うことにより、両端に色ずれが発生していない
部分を含んだ領域を正確に判別することができる。ま
た、基準パターンの読取結果に基づいて、点光源に相当
するパターンあるいはエッジパターンの読取結果の拡が
りを考慮して、過不足ない抽出幅を決定することによ
り、エッジ部分をもれなく補正して、高品質の読取画像
を得ることができる。
Further, since the judging means makes the judgment based on the color difference data, it is possible to accurately judge the region including the portions where the color misregistration does not occur at both ends. In addition, based on the reading result of the reference pattern, the extraction width is determined in consideration of the spread of the reading result of the pattern corresponding to the point light source or the edge pattern, and the edge portion is corrected without omission, and high It is possible to obtain a quality read image.

【図面の簡単な説明】[Brief description of drawings]

【図1】請求項1のカラー読取装置の構成を示す図であ
る。
FIG. 1 is a diagram showing a configuration of a color reading apparatus according to claim 1.

【図2】請求項2のカラー読取装置の構成を示す図であ
る。
FIG. 2 is a diagram showing a configuration of a color reading device according to a second aspect of the invention.

【図3】請求項3および請求項4のカラー読取装置の構
成を示す図である。
FIG. 3 is a diagram showing a configuration of a color reading device according to claims 3 and 4;

【図4】請求項1のカラー読取装置の実施例構成を示す
図である。
FIG. 4 is a diagram showing a configuration of an embodiment of a color reading device according to claim 1;

【図5】色ずれ補正動作を表す流れ図である。FIG. 5 is a flowchart showing a color misregistration correction operation.

【図6】色ずれ補正動作の説明図である。FIG. 6 is an explanatory diagram of a color misregistration correction operation.

【図7】請求項1のカラー読取装置の別実施例構成を示
す図である。
FIG. 7 is a diagram showing the configuration of another embodiment of the color reading apparatus according to claim 1;

【図8】色ずれ領域の幅と抽出幅との関係を示す図であ
る。
FIG. 8 is a diagram showing a relationship between a width of a color shift area and an extraction width.

【図9】請求項3のカラー読取装置の実施例構成を示す
図である。
FIG. 9 is a diagram showing a configuration of an embodiment of a color reading device of claim 3;

【図10】基準パターンの例を示す図である。FIG. 10 is a diagram showing an example of a reference pattern.

【図11】読取感度分布の説明図である。FIG. 11 is an explanatory diagram of a reading sensitivity distribution.

【図12】請求項4のカラー読取装置の実施例構成を示
す図である。
FIG. 12 is a diagram showing a configuration of an embodiment of a color reading device according to claim 4;

【図13】基準パターンの例を示す図である。FIG. 13 is a diagram showing an example of a reference pattern.

【図14】フィルタ切換型のカラー読取装置の構成図で
ある。
FIG. 14 is a configuration diagram of a filter switching type color reading device.

【図15】フィルタ密着型のカラー読取装置の構成図で
ある。
FIG. 15 is a configuration diagram of a filter contact type color reading device.

【図16】センサの説明図である。FIG. 16 is an explanatory diagram of a sensor.

【図17】色ずれの説明図である。FIG. 17 is an explanatory diagram of color misregistration.

【図18】偽色の発生例を示す図である。FIG. 18 is a diagram showing an example of false color generation.

【符号の説明】[Explanation of symbols]

101 原稿 102,103 基準パターン 111 ラインイメージセンサ 112 画像読取手段 113 抽出手段 114 保持手段 115 判定手段 121 色変換手段 122 色逆変換手段 131,132 抽出幅決定手段 211 カラー読取機構 213 アナログ−デジタル変換部(A/D) 220 シェーディング補正部 221 メモリ 230 色ずれ補正部 231,233 色変換部 232 バッファ 234 読出処理部 235 書込処理部 236 レジスタ 237 比較器 238 アンドゲート 311 ラインバッファ 312,314 拡がり幅検出部 313 決定処理部 611 原稿 612 照明装置 613 読取ライン 621 フィルタ 614 レンズ 615,715 センサ 714 ロッドレンズアレイ 101 Originals 102, 103 Reference Pattern 111 Line Image Sensor 112 Image Reading Means 113 Extracting Means 114 Holding Means 115 Judging Means 121 Color Converting Means 122 Color Inverse Converting Means 131, 132 Extraction Width Determining Means 211 Color Reading Means 213 Analog-Digital Converter (A / D) 220 Shading correction unit 221 Memory 230 Color shift correction unit 231,233 Color conversion unit 232 Buffer 234 Read processing unit 235 Write processing unit 236 Register 237 Comparator 238 AND gate 311 Line buffer 312, 314 Spread width detection Part 313 Determination Processing Part 611 Original Document 612 Illumination Device 613 Reading Line 621 Filter 614 Lens 615, 715 Sensor 714 Rod Lens Array

Claims (4)

【特許請求の範囲】[Claims] 【請求項1】 複数の受光素子を1列に配列したライン
イメージセンサ(111)を有し、前記ラインイメージ
センサ(111)の各受光素子に対応する画素ごとに、
原稿(101)上の線状の領域の白黒画像を複数の色成
分に色分解して読み取って、各分解色の強度を示す複数
成分からなる画像データを出力する画像読取手段(11
2)と、 前記線状の領域に対応する画像データから、各画素を先
頭とする所定の画素数分の画像データを順次に抽出する
抽出手段(113)と、 前記抽出手段(113)による抽出範囲の起点および終
点の画素の画像データを保持する保持手段(114)
と、 前記抽出手段(113)で抽出された画像データが入力
され、前記画像データの少なくとも1つの成分の値が前
記抽出範囲の両端部分においてともに一定であるか否か
を判定する判定手段(115)と、 前記抽出範囲の両端部分の該当する成分の値が一定であ
る旨の判定結果に応じて、前記抽出範囲を起点側の領域
と終点側の領域とに分割し、各領域に含まれる各画素の
画像データを前記保持手段(114)に保持された起点
および終点の画素の画像データでそれぞれ置き換えて送
出する置換手段(116)とを備えたことを特徴とする
カラー読取装置。
1. A line image sensor (111) in which a plurality of light receiving elements are arranged in one line, and each pixel corresponding to each light receiving element of the line image sensor (111),
An image reading unit (11) that reads a black and white image of a linear region on a document (101) by separating it into a plurality of color components, and outputs image data consisting of a plurality of components indicating the intensity of each separated color.
2), extraction means (113) for sequentially extracting a predetermined number of pixels of image data starting from each pixel from the image data corresponding to the linear area, and extraction by the extraction means (113). Holding means (114) for holding image data of pixels at the start and end points of the range
And the image data extracted by the extraction means (113) is input, and a determination means (115) for determining whether or not the values of at least one component of the image data are constant at both ends of the extraction range. ), And the extraction range is divided into an area on the start side and an area on the end side according to the determination result that the values of the corresponding components at both ends of the extraction range are constant and included in each area. A color reading device comprising: a replacement unit (116) for replacing the image data of each pixel with the image data of the starting and ending pixels held in the holding unit (114) and transmitting the image data.
【請求項2】 請求項1に記載のカラー読取装置におい
て、 画像読取手段(111)で得られた画像データを色差空
間において該当する色を表す色差データに変換し、原稿
(101)上の線状の領域に対応する画像データとして
抽出手段(113)に送出する色変換手段(121)
と、 置換手段(116)からの画像データを前記画像読取手
段(112)における分解色に対応する成分からなる画
像データに変換して送出する色逆変換手段(122)と
を備えたことを特徴とするカラー読取装置。
2. The color reading device according to claim 1, wherein the image data obtained by the image reading means (111) is converted into color difference data representing a corresponding color in the color difference space, and the line on the original (101) is converted. Conversion means (121) for sending to the extraction means (113) as image data corresponding to the striped area
And a color reverse conversion means (122) for converting the image data from the replacement means (116) into image data composed of components corresponding to the separated color in the image reading means (112) and sending the image data. And a color reading device.
【請求項3】 請求項1に記載のカラー読取装置におい
て、 点光源に相当するパターンを少なくとも1つ有する基準
パターン(102)と、 画像読取手段(112)によって前記基準パターン(1
02)を読み取って得られる画像データの入力に応じ
て、前記点光源に相当するパターンからの光が到達する
ラインイメージセンサ(111)の範囲を求め、この範
囲に対応する画素数を抽出幅として、抽出手段(11
3)による抽出処理に供する抽出幅決定手段(131)
とを備えたことを特徴とするカラー読取装置。
3. The color reading device according to claim 1, wherein a reference pattern (102) having at least one pattern corresponding to a point light source, and the reference pattern (1) by an image reading means (112).
02), the range of the line image sensor (111) where the light from the pattern corresponding to the point light source reaches is determined according to the input of the image data, and the number of pixels corresponding to this range is set as the extraction width. , Extraction means (11
Extraction width determination means (131) used for the extraction process according to 3)
And a color reading device.
【請求項4】 請求項1に記載のカラー読取装置におい
て、 白色と黒色とで表されるエッジパターンを少なくとも1
つ有する基準パターン(103)と、 画像読取手段(112)によって前記基準パターン(1
03)を読み取って得られる画像データが入力され、白
色に対応する白レベルと黒色に対応する黒レベルとの間
のレベルを有する画像データが得られるラインイメージ
センサ(111)の範囲を求め、この範囲に対応する画
素数を抽出幅として、抽出手段(113)による抽出処
理に供する抽出幅決定手段(132)とを備えたことを
特徴とするカラー読取装置。
4. The color reading device according to claim 1, wherein at least one edge pattern represented by white and black is provided.
The reference pattern (103) having the two, and the reference pattern (1) by the image reading means (112).
03) is input, and the range of the line image sensor (111) from which image data having a level between a white level corresponding to white and a black level corresponding to black is obtained, A color reading device, comprising: an extraction width determining unit (132) that is used for extraction processing by the extraction unit (113), using the number of pixels corresponding to the range as an extraction width.
JP3241346A 1991-09-20 1991-09-20 Color reader Withdrawn JPH0583576A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP3241346A JPH0583576A (en) 1991-09-20 1991-09-20 Color reader

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP3241346A JPH0583576A (en) 1991-09-20 1991-09-20 Color reader

Publications (1)

Publication Number Publication Date
JPH0583576A true JPH0583576A (en) 1993-04-02

Family

ID=17072935

Family Applications (1)

Application Number Title Priority Date Filing Date
JP3241346A Withdrawn JPH0583576A (en) 1991-09-20 1991-09-20 Color reader

Country Status (1)

Country Link
JP (1) JPH0583576A (en)

Similar Documents

Publication Publication Date Title
JPS6198069A (en) Image processor
JP4280404B2 (en) Image processing apparatus and method
JPH05137000A (en) Picture reader
JPH0422070B2 (en)
JPS5911067A (en) Method for reproducing color picture
JPH0583576A (en) Color reader
JP2005173926A (en) Image processing apparatus, method, program, and storage medium
JPH05110881A (en) Color reader
JPH05110880A (en) Color reader
JPH05110878A (en) Color reader
JPH05110879A (en) Color reader
JPH0622159A (en) Picture reader
JPH04252667A (en) Color image reader
JP4328608B2 (en) Image processing apparatus, method, program, and storage medium
JPH07264406A (en) Gamma correction method for image reader
JPS62161256A (en) Picture reader
JP3147234B2 (en) Color image reader
JPS6169263A (en) Color reader
JP3096042B2 (en) Color image reader
JPH05110877A (en) Color reader
JPH02272878A (en) Original reading device
JPH0414960A (en) Color picture reader
JP2908662B2 (en) Color image reader
JP2766012B2 (en) Color image processing equipment
JPH0449773A (en) Color reading device

Legal Events

Date Code Title Description
A300 Application deemed to be withdrawn because no request for examination was validly filed

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 19981203