JP3733241B2 - Image reading apparatus and computer-readable storage medium - Google Patents
Image reading apparatus and computer-readable storage medium Download PDFInfo
- Publication number
- JP3733241B2 JP3733241B2 JP18427398A JP18427398A JP3733241B2 JP 3733241 B2 JP3733241 B2 JP 3733241B2 JP 18427398 A JP18427398 A JP 18427398A JP 18427398 A JP18427398 A JP 18427398A JP 3733241 B2 JP3733241 B2 JP 3733241B2
- Authority
- JP
- Japan
- Prior art keywords
- coefficient
- image
- color signal
- color
- image 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.)
- Expired - Fee Related
Links
Images
Landscapes
- Color Image Communication Systems (AREA)
- Image Input (AREA)
- Facsimile Scanning Arrangements (AREA)
Description
【0001】
【発明の属する技術分野】
本発明は、RGB3ラインセンサを有する画像読み取り装置に用いて好適な画像読み取り装置及びこの装置に用いられるコンピュ−タ読み取り可能な記憶媒体に関するものである。
【0002】
【従来の技術】
従来、RGBの3ラインカラーセンサを走査して移動させながら原稿画像を読み取る画像読み取り装置においては、走査時の速度むら、振動、センサ配置の取り付け精度等により、出力されるRGB信号間に位相ずれが生じる。この位相ずれは、組み立て時の部品精度、温度、経時変化等により生じたり、変化する可能性がある。その結果、出力された画像のエッジ部分に色にじみ、文字領域の判定回路の誤動作等の障害が現れる。このため読み取り画素精度が上がるほど精度を厳格にすることが必要である。
【0003】
これに対して従来は、第1には部品精度を上げることで対応していた。第2には、原稿を走査しながらRGB信号を装置外部へ取り出し、コンピュータへ取り込んでRGBの位相を測定し、補正のための情報を得ることが行われていた。
【0004】
【発明が解決しようとする課題】
しかしながら、上記第1の部品精度を上げる方法は、部品のコストアップにつながる。また今後、画素読み取り密度の高密度化が進むにつれて部品精度も向上させることが必要であり、密度に依存しない解決方法が必要とされているという問題があった。
【0005】
また、上記RGB信号を製品の外部へ取り出してコンピュータに処理させる方法は、製品としては不要な信号取り出し用のインタフェース回路を設ける必要があり、製品のコストアップと大型化を招くことになる。また、コンピュータへ画像を取り込んで、位相ずれ量を計算し、補正量を製品側に入力するという操作が煩雑で時間もかかるため、製造工場での調整工数がかさみ、製品のコストアップにつながるという問題があった。
【0006】
本発明は、上記の問題を解決するために成されたもので、3ラインセンサが同一画素を読み取る際の、読み取り精度を向上させることを目的としている。
【0007】
【課題を解決するための手段】
上記の目的を達成するために、本発明による画像読み取り装置においては、画像をそれぞれ主走査して読み取り、第1、第2、第3の色信号を出力する第1、第2、第3の画像読み取り手段と、上記第1の色信号における副走査方向に隣接する画素値にそれぞれ係数を乗じて加算する第1の演算手段と、上記第2の色信号における副走査方向に隣接する画素値にそれぞれ係数を乗じて加算する第2の演算手段と、上記第1、第2の演算手段の出力と上記第3の色信号とから得られる信号の絶対値を閾値と比較して上記画像が有彩色か無彩色かを判定し、判定信号を出力する判定手段と、上記有彩色を判定した判定信号をカウントするカウント手段と、無彩色の画像を上記係数を順次に変化させながら上記各画像読み取り手段に読み取らせ、そのときの上記カウント手段のカウント値と上記係数との関係を示すテーブルを作成し、このテーブルから上記カウント値が最小となる係数を検出する制御手段とを設けている。
【0008】
また、本発明によるコンピュータ読み取り可能な記憶媒体においては、画像を第1、第2、第3の画像読み取り手段によりそれぞれ主走査して読み取り、第1、第2、第3の色信号を出力する画像読み取り処理と、上記第1の色信号における副走査方向に隣接する画素値にそれぞれ係数を乗じて加算する第1の演算処理と、上記第2の色信号における副走査方向に隣接する画素値にそれぞれ係数を乗じて加算する第2の演算処理と、上記第1、第2の演算処理の出力と上記第3の色信号とから得られる信号の絶対値を閾値と比較して上記画像が有彩色か無彩色かを判定し、判定信号を出力する判定処理と、上記有彩色を判定した判定信号をカウントするカウント処理と、無彩色の画像を上記係数を順次に変化させながら上記各画像読み取り手段に読み取らせ、そのときの上記カウント処理のカウント値と上記係数との関係を示すテーブルを作成し、このテーブルから上記カウント値が最小となる係数を検出する制御処理とをコンピュータに実行させるためのプログラムを記憶している。
【0009】
【発明の実施の形態】
以下、本発明の実施の形態を図面と共に説明する。
図1は、本発明の実施の形態によるカラー複写機の読み取り部の構成を示すブロック図である。
図2は、図1のCCDラインセンサ101〜103の構成を示すもので、DBはBセンサとGセンサ間の距離であり、ここでは等倍走査時に8画素分の距離とする。DRはRセンサとGセンサ間の距離であり、ここでは等倍走査時に8画素分の距離とする。
【0010】
図1において、101〜103は主走査方向に原稿の画像を読み取るCCDラインセンサであり、それぞれR、G、B信号を出力する。104〜106は増幅器で、ラインセンサ101〜103の出力を増幅する。107〜109はA/D変換器で、増幅器104〜106の出力信号を8ビットのデジタル信号に変換する。110〜112はシェーディング補正回路で、センサと光学系の輝度むらを補正する。
【0011】
113はR信号のライン遅延器で、等倍走査時にはラインセンサ101、102のRG間の距離が8画素分、GBの距離が8画素分であるので、ここで8+8=16ライン分の遅延を行う。この遅延ライン数はCPU135により変更することができる。
【0012】
114はG信号のライン遅延器で、等倍走査時にはラインセンサ102、103のGB間の距離が8画素分であるので、ここで8ライン分の遅延を行う。この遅延ライン数はCPU135により変更することができる。
【0013】
これらの構成によって、理想的な光学系の場合には、遅延器113の出力(R:第1の色信号)と、遅延器114の出力(G:第3の色信号)と、シェーディング補正回路112の出力(B:第2の色信号)とが同一タイミングで同一画素に対する出力となる。即ち、RGBの副走査方向の位相が一致する。
【0014】
Rライン遅延器113の出力R信号は次に1ライン遅延器115へ入力され、その出力値と係数レジスタ117の値(1−p)とが乗算器121で乗算される。また、1ライン遅延されていないR信号は、係数レジスタ118の値(p)と乗算器122で乗算される。乗算器121、122の各出力値は加算器125で加算される。
【0015】
シェーディング補正回路112の出力B信号は次に1ライン遅延器116へ入力され、その出力値と係数レジスタ119の値(1−q)とが乗算器123で乗算される。また、1ライン遅延されていないB信号は、係数レジスタ120の値(q)と乗算器124で乗算される。乗算器123、124の各出力値は加算器126で加算される。上記係数レジスタ117〜120は、CPU135により書き換えることができるものである。
【0016】
次に、加算器125の出力値(R)と遅延器114の出力値(G)と加算器126の出力値(B)とが入力マスキング回路127に入力され、下記の演算が行われる。
R′=a00×R+a01×G+a02×B
G′=a10×R+a11×G+a12×B
B′=a20×R+a21×G+a22×B ───(1)
ここで、a00、a01、a02、a10、a11、a12、a20、a21、a22は係数である。
【0017】
入力マスキング回路127の出力値は色空間変換回路128へ入力され、下記演算が行われてL、CA、CB信号が得られる。
L=(R+2G+B)/4
CA=(R−G)/2
CB=(R+G−2B)/4 ───(2)
色空間変換回路128の出力値は空間フィルタ回路129と色判定回路133に入力される。
【0018】
色判定回路133では、CA、CBの絶対値を所定のしきい値Tca、Tcbと比較して、双方ともこれらのしきい値以上なら有彩色としてIRO信号を1として出力する。無彩色時は、IRO信号を0として出力する。
このIRO信号はカウンタ回路134へ入力され、IRO信号の1の数をカウントされる。
【0019】
また、IRO信号は空間フィルタ129へも入力される。空間フィルタ129ではエッジ強調あるいはスムージング処理が行われる。空間フィルタの係数はIRO信号で切り換えることができるようになされている。
【0020】
空間フィルタ129の出力信号は色空間変換回路130へ入力され、下記演算が行われてRGBの出力が得られる。
R=(4L+5CA+2CB)/4
G=(4L−3CA+2CB)/4
B=(4L+CA+6CB)/4 ───(3)
【0021】
色空間変換回路130の出力信号はLOG変換、出力マスキング回路131によってデータ変換が行われてC、M、Y、K信号が得られる。これはテーブル変換により行われる。これらのCMYK信号はプリンタ132へ出力されて印刷される。尚、CPU135は、本発明を構成する記憶媒体136に格納されている制御プログラムにより処理を実行する。
【0022】
次に、色ずれ自動補正動作について説明する。これは、工場での光学系の組み立て時、あるいは市場での光学系の部品交換等により色ずれ量が変化する可能性のある場合に使用する動作モードである。
まず、白地に平行な黒線が複数本入ったテスト用の原稿を、上記黒線がラインセンサと平行になるようにして原稿台に載せる。そして等倍画像がが得られる速度でラインセンサを、このラインセンサに垂直な方向(副走査方向)に走査する。ここで、原稿の輝度に対して光学系が理想的であれば、RGBの各信号は重なるはずであるが、現実には各信号はある距離分だけずれている。また、MTFが3色で異なるために3色が重ならないことも考えられる。
【0023】
図3は、上記黒の線を読み込んだときのRGBのラインセンサの出力例である。この図3の例では、Gを中心にRとBがそれぞれ3画素づつずれている。図3で1アドレスを0.1画素とすると、R信号がG信号に対して0.3画素、B信号がG信号に対して0.3画素ずれていることになる。
【0024】
この場合、このまま読み取り画像を再生すると、黒線の両側に色成分が現れることになる。従って、このような原稿画像を走査して読み取ると、カウンタ回路134では有彩色画素がカウントされることになる。
【0025】
以上の情報は、Rライン遅延器113を後述により16ライン遅延とし、Gライン遅延器114を8ライン遅延とし、係数レジスタの係数p、qを1とすることにより得られたものである。
この例では、RGBの順で画像が読み込まれているので、RをGへ0.3画素近づけるように、即ち、RとGの画素距離を7.7画素とすれば、RとGの位相が一致することになる。同様に、BをGへ0.3画素近づけるように、即ち、GとBの画素距離を7.7画素とすれば、GとBの位相が一致することになる。このようにして色ずれがない状態にすることができる。
【0026】
これを2ラインでの補間の行い方で示すと、Rについては、7ライン目の画素に0.3の係数を乗じ、8ライン目の画素に0.7の係数を乗じ、それらを加算することにより得られる。Gについては、7ライン目の画素に0.3の係数を乗じ、8ライン目の画素に0.7の係数を乗じ、それらを加算することにより得られる。
この結果を得るためには、Rライン遅延器113の遅延量を16ラインとし、係数レジスタ117、118のpを0.7とし、Gライン遅延器114の遅延量を8ラインとし、係数レジスタ119、120のqを0.7とすることで対応できる。
【0027】
上記説明によれば、色ずれが発生しているときは、白黒原稿を読み取ったときでも、副走査方向の画像エッジ部で有彩色がカウントされ、色ずれが発生していないときは、有彩色がカウントされないことになる。実際の画像読み取り装置では、センサが移動するときは振動が生じる。このため、振動がないときの色ずれ量(走査速度精度、光学系の倍率精度に起因する)に加えて、振動に起因する色ずれが加わる。
【0028】
このため、pとqの値を最適化したとしても、白黒原稿を読み取ったときに、ある量の有彩色がカウントされることになる。即ち、カウント値が0でなくても最小となる条件が、色ずれが最小となる条件と考えることができる。本発明の実施の形態は、この有彩色のカウント値から、色ずれが最小となる係数p、qを、特にハードウェアを追加することなく求めるものである。
【0029】
次に、本発明の第1の実施の形態について説明する。
まず、RとGの画素距離を7.5画素、BとGの画素距離を7.5画素として、上記テスト用の原稿を読み取り、このときの上記カウント値を読み取る。これを4回繰り返してカウント値を加算する。複数回読み取るのは、読み取りにより得られるカウント値が、電気的雑音と光学系の振動により一定しないので、平均化するためである。次に、RとGの画素距離を7.5画素としたままBとGの画素距離を7.6画素として、上記カウント値を読み取り、これを4回繰り返してカウント値を加算する。
【0030】
同様に、RとGの画素距離を7.5画素から8.5画素まで変えながら、順次BとGの画素距離を7.5画素から8.5画素まで変えて、それぞれの条件でのカウント値の加算値を求める。
そして、上記の手順により作成されたテーブルから、カウント値が最小となる条件を見つけて、それを補正すべき画素距離とする。
【0031】
これらの求められた補正値を電源を切っても消去されないメモリに記憶しておく。これにより、次に電源を投入したときに再び補正値を求める必要がなくなる。また、RGB信号を製品の外部へ取り出すことが不要なので、信号取り出し用のインタフェース回路を設ける必要がなく、さらにコンピュータへ画像を取り込んで、位相ずれ量を計算し、補正量を製品側に入力するという操作が不要になり、操作を簡単にできると共に、作業時間を短縮することができる。
【0032】
尚、このとき使用する上記テスト用の原稿は、本装置が接続されているプリンタから特定のパターンとして出力することもできる。これにより市場で上記の調整を行うときにも特定の原稿を持っている必要がなく、また誤った原稿を使用することを防止できる。
また、上記調整用の原稿は、単に黒の直線が描かれているだけなので、低解像度のプリンタを用いてもジャギーの影響が出ないため、問題なく使用できる。
【0033】
コピー動作時には、原稿が有彩色画素を含むか否かによって、カラーコピー動作を行うか、白黒コピー動作を行うかを決定する。そのためにコピー動作を行う前に原稿を走査して、カウンタ回路134のカウント値をCPUで読み取る。このカウント値が所定値以上ならカラー原稿と判断してカラーコピー動作を行い、カウント値が所定値以下なら白黒原稿と判断して白黒コピー動作を行う。これは従来より行われているカラー/白黒自動識別動作である。
【0034】
次に本発明の第2の実施の形態について説明する。
上記第1の実施の形態においては、上記カウント値のテーブルから最小値を求めるとき、カウント値が一定しなくて、サンプリングごとに大きく異なる結果が得られることがある。原因としては電気的雑音と光学系の振動が大きいことが考えられるが、この場合、カウント値の最小値のところが真の補正値ではないということが生じる可能性が大きくなる。
【0035】
このような場合は、サンプリングされた値を隣接の条件のときのカウント値と平均化することにより解決することができる。これにより最小値を正確に求めることができる。
【0036】
次に本発明の第3の実施の形態について説明する。
上記第1実施の形態では、RとGの画素距離とBとGの画素距離の両方を変えながらカウント値を求めたが、本実施の形態では、RとGの画素距離を8画素に固定して、BとGの画素距離を7.5画素から8.5画素に順次変化させてカウント値を求め、その最小値をRとGの画素距離の補正値とする。
本実施の形態によれば、カウント値を求める動作回数を少なくすることができ、このため工場での製品出荷効率が向上し、製品コストを下げることができる。
【0037】
尚、本発明の目的は、上述した実施の形態を実現するソフトウェアのプログラムコードを記憶した記憶媒体を、システムや装置で用い、そのシステムや装置のCPUが上記記憶媒体に格納されたプログラムコードを読み出し、実行することによっても達成することができる。
その場合、上記記憶媒体から読み出されたプログラムコード自体が上述した実施の形態の機能を実現することになり、そのプログラムコードを記憶した例えば図1に示す記憶媒体136のような記憶媒体は、本発明を構成することになる。
【0038】
また、この記憶媒体としては、ROM、RAM等の半導体メモリ、光ディスク、光磁気ディスク、磁気媒体等を用いてよく、これらをCD−ROM、フロッピィディスク、磁気媒体、磁気カード、不揮発性メモリカード等に構成して用いてよい。
【0039】
従って、この記憶媒体を図1に示したシステムや装置以外の他のシステムや装置で用い、そのシステムあるいはコンピュータがこの記憶媒体に格納されたプログラムコードを読み出し、実行することによっても、前述した実施の形態と同等の機能を実現できると共に、同等の効果を得ることができ、本発明の目的を達成することができる。
【0040】
また、コンピュータ上で稼働しているOS等が処理の一部又は全部を行う場合、あるいは記憶媒体から読み出されたプログラムコードが、コンピュータに挿入された拡張機能ボードやコンピュータに接続された拡張機能ユニットに備わるメモリに書き込まれた後、そのプログラムコードの指示に基づいて、上記拡張機能ボードや拡張機能ユニットに備わるCPU等が処理の一部又は全部を行う場合にも、実施の形態と同等の機能を実現できると共に、同等の効果を得ることができ、本発明の目的を達成することができる。
【0041】
【発明の効果】
以上説明したように、本発明によれば、部品精度を上げることなく、色ずれ補正を行うことができ、このためコストアップすることがなく、しかも画素密度に依存することもない。
【図面の簡単な説明】
【図1】本発明の実施の形態による画像読み取り装置の構成を示すブロック図である。
【図2】CCDラインセンサの構成図である。
【図3】RGBの各ラインセンサの出力特性図である。
【符号の説明】
101、102、103 CCDラインセンサ
113〜116 ライン遅延器
117〜120 係数器
121〜124 乗算器
125、126 加算器
127 入力マスキング回路
128 色空間変換回路
133 色判定回路
134 カウンダ回路
135 CPU
136 記憶媒体[0001]
BACKGROUND OF THE INVENTION
The present invention relates to an image reading apparatus suitable for use in an image reading apparatus having an RGB 3 line sensor and a computer-readable storage medium used in the apparatus.
[0002]
[Prior art]
Conventionally, in an image reading apparatus that reads an original image while scanning and moving an RGB three-line color sensor, a phase shift occurs between output RGB signals due to uneven scanning speed, vibration, sensor placement accuracy, and the like. Occurs. This phase shift may occur or change due to component accuracy during assembly, temperature, changes with time, and the like. As a result, the color blurs at the edge portion of the output image, and a failure such as a malfunction of the character area determination circuit appears. For this reason, it is necessary to make the accuracy stricter as the read pixel accuracy increases.
[0003]
On the other hand, in the past, firstly, it has been dealt with by increasing the accuracy of parts. Secondly, RGB signals are taken out of the apparatus while scanning a document, taken into a computer, and RGB phases are measured to obtain information for correction.
[0004]
[Problems to be solved by the invention]
However, the first method for increasing the accuracy of the component leads to an increase in the cost of the component. Further, in the future, as the pixel reading density increases, it is necessary to improve the component accuracy, and there is a problem that a solution that does not depend on the density is required.
[0005]
In addition, the method of extracting the RGB signals from the outside of the product and causing the computer to process it is necessary to provide an interface circuit for signal extraction that is not necessary for the product, leading to an increase in cost and size of the product. In addition, it takes a lot of time and effort to import the image into a computer, calculate the amount of phase shift, and input the correction amount to the product side. There was a problem.
[0006]
The present invention has been made to solve the above-described problem, and aims to improve reading accuracy when a three-line sensor reads the same pixel.
[0007]
[Means for Solving the Problems]
In order to achieve the above object, in the image reading apparatus according to the present invention, the first, second, and third color signals are respectively scanned and read to output first, second, and third color signals. Image reading means, first calculation means for multiplying and adding each pixel value adjacent to the sub-scanning direction in the first color signal by a coefficient, and pixel value adjacent to the sub-scanning direction in the second color signal The image is obtained by comparing the absolute value of the signal obtained from the second calculation means for multiplying and adding each by a coefficient, the outputs of the first and second calculation means and the third color signal with a threshold value. A determination unit that determines whether the color is chromatic or achromatic, and outputs a determination signal; a count unit that counts the determination signal that determines the chromatic color; and each image while sequentially changing the coefficient of the achromatic image Let the reading means read The Create a counting means count value and a table showing the relationship between the coefficient of, are provided and control means for said count value to detect a coefficient which minimizes this table when.
[0008]
In the computer-readable storage medium according to the present invention, the image is main-scanned and read by the first, second, and third image reading means, and the first, second, and third color signals are output. Image reading processing, first calculation processing for multiplying each pixel value adjacent in the sub-scanning direction in the first color signal by a coefficient, and pixel value adjacent in the sub-scanning direction in the second color signal The image is obtained by comparing the absolute value of a signal obtained from the second calculation process for multiplying and adding each by a coefficient, the output of the first and second calculation processes, and the third color signal with a threshold value. A determination process for determining a chromatic color or an achromatic color and outputting a determination signal; a count process for counting the determination signal for determining the chromatic color; and each image while sequentially changing the coefficient of the achromatic image Reader To create a table showing the relationship between the count value of the count process at that time and the coefficient, and to cause the computer to execute a control process for detecting the coefficient that minimizes the count value from the table. I remember the program.
[0009]
DETAILED DESCRIPTION OF THE INVENTION
Embodiments of the present invention will be described below with reference to the drawings.
FIG. 1 is a block diagram showing a configuration of a reading unit of a color copying machine according to an embodiment of the present invention.
FIG. 2 shows the configuration of the
[0010]
In FIG. 1,
[0011]
[0012]
[0013]
With these configurations, in the case of an ideal optical system, the output of the delay unit 113 (R: first color signal), the output of the delay unit 114 (G: third color signal), and the
[0014]
The output R signal of the R
[0015]
The output B signal of the
[0016]
Next, the output value (R) of the
R ′ = a00 × R + a01 × G + a02 × B
G ′ = a10 × R + a11 × G + a12 × B
B ′ = a20 × R + a21 × G + a22 × B (1)
Here, a00, a01, a02, a10, a11, a12, a20, a21, a22 are coefficients.
[0017]
The output value of the
L = (R + 2G + B) / 4
CA = (RG) / 2
CB = (R + G-2B) / 4 (2)
The output value of the color
[0018]
The color determination circuit 133 compares the absolute values of CA and CB with predetermined threshold values Tca and Tcb, and if both are equal to or greater than these threshold values, outputs an IRO signal as 1 as a chromatic color. When the color is achromatic, the IRO signal is output as 0.
This IRO signal is input to the
[0019]
The IRO signal is also input to the
[0020]
The output signal of the
R = (4L + 5CA + 2CB) / 4
G = (4L-3CA + 2CB) / 4
B = (4L + CA + 6CB) / 4 ─── (3)
[0021]
The output signal of the color
[0022]
Next, the color misregistration automatic correction operation will be described. This is an operation mode used when the amount of color misregistration is likely to change when an optical system is assembled at a factory, or when parts of the optical system are replaced on the market.
First, a test document containing a plurality of black lines parallel to a white background is placed on the document table so that the black lines are parallel to the line sensor. Then, the line sensor is scanned in a direction (sub-scanning direction) perpendicular to the line sensor at a speed at which an equal-magnification image is obtained. Here, if the optical system is ideal with respect to the luminance of the document, the RGB signals should overlap, but in reality, the signals are shifted by a certain distance. It is also conceivable that the three colors do not overlap because the MTF is different for the three colors.
[0023]
FIG. 3 shows an output example of the RGB line sensor when the black line is read. In the example of FIG. 3, R and B are shifted by 3 pixels each centering on G. In FIG. 3, if one address is 0.1 pixel, the R signal is shifted by 0.3 pixel from the G signal, and the B signal is shifted by 0.3 pixel from the G signal.
[0024]
In this case, when the read image is reproduced as it is, color components appear on both sides of the black line. Therefore, when such a document image is scanned and read, the
[0025]
The above information is obtained by setting the R
In this example, since the images are read in the order of RGB, if R is brought closer to G by 0.3 pixels, that is, if the pixel distance between R and G is 7.7 pixels, the phase of R and G Will match. Similarly, if B is brought closer to G by 0.3 pixels, that is, if the pixel distance between G and B is 7.7 pixels, the phases of G and B match. In this way, there can be no color misregistration.
[0026]
In terms of R, the interpolation is performed on two lines. For R, the pixel on the seventh line is multiplied by a coefficient of 0.3, the pixel on the eighth line is multiplied by a coefficient of 0.7, and these are added. Can be obtained. G can be obtained by multiplying the pixel on the seventh line by a coefficient of 0.3, multiplying the pixel on the eighth line by a coefficient of 0.7, and adding them.
In order to obtain this result, the delay amount of the R
[0027]
According to the above description, when color misregistration occurs, even when a black and white document is read, chromatic colors are counted at the image edge portion in the sub-scanning direction. Will not be counted. In an actual image reading apparatus, vibration occurs when the sensor moves. For this reason, in addition to the amount of color shift when there is no vibration (due to scanning speed accuracy and magnification accuracy of the optical system), color shift due to vibration is added.
[0028]
For this reason, even if the values of p and q are optimized, a certain amount of chromatic colors are counted when a black and white document is read. That is, even if the count value is not 0, the minimum condition can be considered as the minimum color shift condition. In the embodiment of the present invention, the coefficients p and q that minimize the color misregistration are obtained from the chromatic color count value without adding any hardware.
[0029]
Next, a first embodiment of the present invention will be described.
First, the test document is read with the R and G pixel distance of 7.5 pixels and the B and G pixel distance of 7.5 pixels, and the count value at this time is read. This is repeated 4 times and the count value is added. The reason for reading a plurality of times is that the count value obtained by reading is not constant due to electrical noise and vibration of the optical system, and is averaged. Next, with the pixel distance between R and G being 7.5 pixels, the pixel distance between B and G is 7.6 pixels, the count value is read, this is repeated four times, and the count value is added.
[0030]
Similarly, while changing the pixel distance of R and G from 7.5 pixels to 8.5 pixels, the pixel distance of B and G is sequentially changed from 7.5 pixels to 8.5 pixels, and counting is performed under each condition. Find the sum of values.
Then, a condition that minimizes the count value is found from the table created by the above procedure, and is set as the pixel distance to be corrected.
[0031]
These obtained correction values are stored in a memory that is not erased even when the power is turned off. This eliminates the need to obtain the correction value again when the power is turned on next time. In addition, since it is not necessary to extract the RGB signal to the outside of the product, it is not necessary to provide an interface circuit for signal extraction. Further, an image is captured into the computer, the phase shift amount is calculated, and the correction amount is input to the product side. Thus, the operation can be simplified and the working time can be shortened.
[0032]
The test document used at this time can be output as a specific pattern from a printer to which the present apparatus is connected. Accordingly, it is not necessary to have a specific document even when the above adjustment is performed in the market, and it is possible to prevent an erroneous document from being used.
Further, since the original for adjustment is merely drawn with a black straight line, even if a low-resolution printer is used, it is not affected by jaggies and can be used without any problem.
[0033]
At the time of the copy operation, whether to perform the color copy operation or the monochrome copy operation is determined depending on whether or not the document includes chromatic color pixels. Therefore, the original is scanned before the copying operation is performed, and the count value of the
[0034]
Next, a second embodiment of the present invention will be described.
In the first embodiment, when the minimum value is obtained from the count value table, the count value is not constant, and a different result may be obtained for each sampling. The cause is considered to be large electrical noise and vibration of the optical system. In this case, there is a high possibility that the minimum value of the count value is not a true correction value.
[0035]
Such a case can be solved by averaging the sampled value with the count value in the adjacent condition. Thereby, the minimum value can be obtained accurately.
[0036]
Next, a third embodiment of the present invention will be described.
In the first embodiment, the count value is obtained while changing both the R and G pixel distances and the B and G pixel distances. However, in this embodiment, the R and G pixel distances are fixed to 8 pixels. Then, the count value is obtained by sequentially changing the pixel distance of B and G from 7.5 pixels to 8.5 pixels, and the minimum value is set as the correction value of the pixel distance of R and G.
According to the present embodiment, the number of operations for obtaining the count value can be reduced, so that the product shipment efficiency at the factory can be improved and the product cost can be reduced.
[0037]
Note that the object of the present invention is to use a storage medium storing software program codes for realizing the above-described embodiments in a system or apparatus, and the program code stored in the storage medium by the CPU of the system or apparatus. It can also be achieved by reading and executing.
In that case, the program code itself read from the storage medium realizes the functions of the above-described embodiment, and a storage medium such as the storage medium 136 shown in FIG. This constitutes the present invention.
[0038]
As the storage medium, a semiconductor memory such as ROM or RAM, an optical disk, a magneto-optical disk, a magnetic medium, or the like may be used. These may be a CD-ROM, a floppy disk, a magnetic medium, a magnetic card, a nonvolatile memory card, or the like. It may be configured and used.
[0039]
Therefore, the above-described implementation is also possible when this storage medium is used in another system or apparatus other than the system or apparatus shown in FIG. 1, and the system or computer reads and executes the program code stored in this storage medium. A function equivalent to this embodiment can be realized, and an equivalent effect can be obtained, thereby achieving the object of the present invention.
[0040]
Further, when an OS or the like running on the computer performs part or all of the processing, or an extended function board in which a program code read from a storage medium is inserted into the computer or an extended function connected to the computer Even when the CPU or the like provided in the extended function board or the extended function unit performs part or all of the processing based on the instruction of the program code after being written in the memory provided in the unit, it is equivalent to the embodiment. A function can be realized and an equivalent effect can be obtained, and the object of the present invention can be achieved.
[0041]
【The invention's effect】
As described above, according to the present invention, it is possible to perform color misregistration correction without increasing the accuracy of components, and therefore, there is no cost increase and there is no dependence on pixel density.
[Brief description of the drawings]
FIG. 1 is a block diagram showing a configuration of an image reading apparatus according to an embodiment of the present invention.
FIG. 2 is a configuration diagram of a CCD line sensor.
FIG. 3 is an output characteristic diagram of each line sensor of RGB.
[Explanation of symbols]
101, 102, 103 CCD line sensors 113-116 Line delay units 117-120 Coefficient units 121-124
136 storage media
Claims (18)
上記第1の色信号における副走査方向に隣接する画素値にそれぞれ係数を乗じて加算する第1の演算手段と、
上記第2の色信号における副走査方向に隣接する画素値にそれぞれ係数を乗じて加算する第2の演算手段と、
上記第1、第2の演算手段の出力と上記第3の色信号とから得られる信号の絶対値を閾値と比較して上記画像が有彩色か無彩色かを判定し、判定信号を出力する判定手段と、
上記有彩色を判定した判定信号をカウントするカウント手段と、
無彩色の画像を上記係数を順次に変化させながら上記各画像読み取り手段に読み取らせ、そのときの上記カウント手段のカウント値と上記係数との関係を示すテーブルを作成し、このテーブルから上記カウント値が最小となる係数を検出する制御手段とを備えた画像読み取り装置。First, second, and third image reading means for reading images by main scanning and outputting first, second, and third color signals;
First computing means for multiplying and adding pixel values adjacent to each other in the sub-scanning direction in the first color signal, respectively;
Second computing means for multiplying each pixel value adjacent in the sub-scanning direction in the second color signal by a coefficient,
The absolute value of the signal obtained from the outputs of the first and second arithmetic means and the third color signal is compared with a threshold value to determine whether the image is chromatic or achromatic, and a determination signal is output. A determination means;
Counting means for counting the determination signal for determining the chromatic color;
The achromatic color image is read by each of the image reading means while sequentially changing the coefficient, and a table showing the relationship between the count value of the count means and the coefficient at that time is created. An image reading apparatus comprising: a control unit that detects a coefficient that minimizes the coefficient.
上記第1の色信号における副走査方向に隣接する画素値にそれぞれ係数を乗じて加算する第1の演算処理と、
上記第2の色信号における副走査方向に隣接する画素値にそれぞれ係数を乗じて加算する第2の演算処理と、
上記第1、第2の演算処理の出力と上記第3の色信号とから得られる信号の絶対値を閾値と比較して上記画像が有彩色か無彩色かを判定し、判定信号を出力する判定処理と、
上記有彩色を判定した判定信号をカウントするカウント処理と、
無彩色の画像を上記係数を順次に変化させながら上記各画像読み取り手段に読み取らせ、そのときの上記カウント処理のカウント値と上記係数との関係を示すテーブルを作成し、このテーブルから上記カウント値が最小となる係数を検出する制御処理とをコンピュータに実行させるためのプログラムを記憶したコンピュ−タ読み取り可能な記憶媒体。An image reading process in which an image is read by main scanning by first, second, and third image reading means, respectively, and first, second, and third color signals are output;
A first calculation process for multiplying and adding a pixel value adjacent to each other in the sub-scanning direction in the first color signal;
A second calculation process of multiplying and adding a pixel value adjacent to each other in the sub-scanning direction in the second color signal;
The absolute value of the signal obtained from the outputs of the first and second arithmetic processing and the third color signal is compared with a threshold value to determine whether the image is chromatic or achromatic, and a determination signal is output. Judgment processing,
A count process for counting the determination signal for determining the chromatic color;
The achromatic image is read by each of the image reading means while sequentially changing the coefficient, and a table showing the relationship between the count value of the count process at that time and the coefficient is created. A computer-readable storage medium storing a program for causing a computer to execute a control process for detecting a coefficient with a minimum value.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP18427398A JP3733241B2 (en) | 1998-06-30 | 1998-06-30 | Image reading apparatus and computer-readable storage medium |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP18427398A JP3733241B2 (en) | 1998-06-30 | 1998-06-30 | Image reading apparatus and computer-readable storage medium |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JP2000022964A JP2000022964A (en) | 2000-01-21 |
| JP3733241B2 true JP3733241B2 (en) | 2006-01-11 |
Family
ID=16150443
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP18427398A Expired - Fee Related JP3733241B2 (en) | 1998-06-30 | 1998-06-30 | Image reading apparatus and computer-readable storage medium |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP3733241B2 (en) |
Families Citing this family (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP4332374B2 (en) | 2003-06-17 | 2009-09-16 | キヤノン株式会社 | Image reading device |
-
1998
- 1998-06-30 JP JP18427398A patent/JP3733241B2/en not_active Expired - Fee Related
Also Published As
| Publication number | Publication date |
|---|---|
| JP2000022964A (en) | 2000-01-21 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JP4054184B2 (en) | Defective pixel correction device | |
| US20080123153A1 (en) | Image correction processing apparatus, image correction processing method, program, and storage medium | |
| KR20080053168A (en) | Image forming apparatus and its quality improvement method | |
| JP5666852B2 (en) | Color determination apparatus, image processing apparatus, color determination method, and color determination program | |
| US7515298B2 (en) | Image processing apparatus and method determining noise in image data | |
| JPH1185978A (en) | Image processing apparatus and method | |
| JP3179528B2 (en) | Color image processing apparatus and method | |
| JP2000115533A (en) | Image reading device | |
| JP3733241B2 (en) | Image reading apparatus and computer-readable storage medium | |
| JP2000134483A (en) | Image reader | |
| JP2000022966A (en) | Image reading device and computer readable storage medium | |
| JP2000022968A (en) | Image reading apparatus, method, and computer-readable storage medium | |
| JP2000022965A (en) | Image reading device and computer readable storage medium | |
| JP2000022967A (en) | Image reading device and computer readable storage medium | |
| US20050088673A1 (en) | Image processing apparatus, image processing method, and image processing program | |
| JP2001016442A (en) | Image processing method and apparatus | |
| JP4314141B2 (en) | Document image identification device, color copying machine, and document image identification method | |
| JPH10327321A (en) | Image reading apparatus and image reading method | |
| JP3210031B2 (en) | Image processing apparatus and image processing method | |
| JPS59119969A (en) | Communication device | |
| JP2004193742A (en) | Image reading apparatus, image data processing method, and control program | |
| JPH04205277A (en) | Image processor | |
| JP2004096625A (en) | Image processing apparatus and method | |
| JP4056275B2 (en) | Image processing device | |
| JPH07262377A (en) | Color image processing method and apparatus thereof |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20050301 |
|
| A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20050405 |
|
| A521 | Written amendment |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20050603 |
|
| 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: 20051004 |
|
| A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20051017 |
|
| R150 | Certificate of patent or registration of utility model |
Free format text: JAPANESE INTERMEDIATE CODE: R150 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20091021 Year of fee payment: 4 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20091021 Year of fee payment: 4 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20101021 Year of fee payment: 5 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20101021 Year of fee payment: 5 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20111021 Year of fee payment: 6 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20111021 Year of fee payment: 6 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20121021 Year of fee payment: 7 |
|
| LAPS | Cancellation because of no payment of annual fees |