JPH11215371A - Shading correction device and shading correction method - Google Patents

Shading correction device and shading correction method

Info

Publication number
JPH11215371A
JPH11215371A JP10014514A JP1451498A JPH11215371A JP H11215371 A JPH11215371 A JP H11215371A JP 10014514 A JP10014514 A JP 10014514A JP 1451498 A JP1451498 A JP 1451498A JP H11215371 A JPH11215371 A JP H11215371A
Authority
JP
Japan
Prior art keywords
value
pixel
shading
reference value
normal
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP10014514A
Other languages
Japanese (ja)
Other versions
JP3589847B2 (en
Inventor
Katsuya Honda
勝也 本田
Arinori Hikosaka
有儀 彦阪
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.)
Kyocera Mita Industrial Co Ltd
Original Assignee
Mita Industrial Co 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 Mita Industrial Co Ltd filed Critical Mita Industrial Co Ltd
Priority to JP01451498A priority Critical patent/JP3589847B2/en
Publication of JPH11215371A publication Critical patent/JPH11215371A/en
Application granted granted Critical
Publication of JP3589847B2 publication Critical patent/JP3589847B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Image Input (AREA)
  • Facsimile Image Signal Circuits (AREA)

Abstract

PROBLEM TO BE SOLVED: To provide a device and method by which a fault in a shading reference value is discriminated properly, even when there are steps in shading reference values for consecutive pixels. SOLUTION: A mean value A of white reference values (however normal values only) of a pixel block F0, including 4 pixels P-4-P-1 that have been processed immediately before a noted pixel P0 is calculated and a range of normal white reference values of the noted pixel P is set based thereon. Then a mean value B of white reference values of a pixel block F1 consisting of 4 pixels, including the noted pixel P0 and three successive unprocessed pixels P+1 to P+3, a mean value C of white reference values of a pixel block F2 succeeding the block F1, and a mean value C of white reference values of a pixel block F3 succeeding the block F3 are calculated. Based on the mean values A, B, C, D, whether or not the noted pixel P0 is a pixel resident in a step is discriminated. When the noted pixel P0 is resident in the step, a range of the normal white reference values of the noted pixel P0 is set, based on the mean value B.

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】この発明は、たとえば、ファ
クシミリ装置やイメージスキャナ等の画像読み取り装置
における読み取り画像中の濃度むらを低減するためのシ
ェーディング補正装置およびシェーディング補正方法に
関する。
[0001] 1. Field of the Invention [0002] The present invention relates to a shading correction device and a shading correction method for reducing density unevenness in a read image in an image reading device such as a facsimile device and an image scanner.

【0002】[0002]

【従来の技術】ファクシミリ装置やイメージスキャナ等
のような画像読み取り装置では、読み取り用光源の照明
むらなどに起因する画素間濃度むらを補償するために、
いわゆるシェーディング補正が行われる。シェーディン
グ補正では、イメージセンサの出力アナログ信号をアナ
ログ/ディジタル変換器で変換したディジタルデータに
対して、下記第(1) 式に基づく補正が施される。
2. Description of the Related Art In an image reading apparatus such as a facsimile apparatus or an image scanner, in order to compensate for uneven pixel density caused by uneven illumination of a reading light source, etc.
So-called shading correction is performed. In the shading correction, correction based on the following equation (1) is performed on digital data obtained by converting an analog signal output from an image sensor by an analog / digital converter.

【0003】[0003]

【数1】 (Equation 1)

【0004】この第(1) 式において、「黒基準値」とは
真っ黒な黒基準画像を読み取ったときにイメージセンサ
から出力される画素信号をディジタルデータに変換した
値であり、「白基準値」とは真っ白な白基準画像を読み
取ったときにイメージセンサから出力される画素信号を
ディジタルデータに変換した値である。たとえば、黒基
準値はイメージセンサの読み取り用光源を消灯して読み
取り動作を行わせることにより得ることができ、白基準
値は読み取り用光源を点灯させて予め備えられた白基準
板の読み取りを行わせることにより得ることができる。
In the equation (1), the "black reference value" is a value obtained by converting a pixel signal output from the image sensor into digital data when a black black reference image is read, and a "white reference value". "Is a value obtained by converting a pixel signal output from the image sensor into a digital data when a pure white reference image is read. For example, the black reference value can be obtained by turning off the reading light source of the image sensor and performing a reading operation, and the white reference value can be obtained by turning on the reading light source and reading the previously provided white reference plate. Can be obtained.

【0005】こうして、イメージセンサの各読み取り画
素ごとに白基準値および黒基準値が求まるから、原稿を
読み取る際にイメージセンサの各読み取り画素から出力
される画素データに対して、その画素に対応した白基準
値および黒基準値を用いて上記第(1) 式の補正を施すこ
とにより、読み取り画素間の濃度むらを補償できる。と
ころが、画像読み取り装置の使用に伴って白基準板に局
所的な汚れが付着すると、その汚れの箇所に対応した画
素については正確な白基準値を得ることができない。そ
の結果、シェーディング補正が不良になる。
In this manner, the white reference value and the black reference value are obtained for each pixel read by the image sensor. Therefore, when reading an original, the pixel data output from each pixel read out of the image sensor corresponds to the pixel. By performing the correction of the above equation (1) using the white reference value and the black reference value, it is possible to compensate for uneven density between read pixels. However, if local stains adhere to the white reference plate with use of the image reading apparatus, an accurate white reference value cannot be obtained for a pixel corresponding to the spot of the stain. As a result, shading correction becomes poor.

【0006】そこで、たとえば、特開平7−21258
8号公報に開示されているように、異常な値を有する白
基準値を補正するための処理が行われる。具体的には、
或る画素の白基準値が一定のしきい値を超える場合に
は、その画素の白基準値を所定の補正値に置き換えるよ
うにしている。この公開公報には、さらに、白基準板の
全体に汚れが付着したときの問題を解決するために、上
記しきい値および補正値をそれぞれ補正することが開示
されているが、これらのしきい値および補正値はイメー
ジセンサの全ての画素に対して一律に適用されるように
なっている。
Accordingly, for example, Japanese Patent Application Laid-Open No.
As disclosed in Japanese Patent Application Laid-Open No. 8-208, processing for correcting a white reference value having an abnormal value is performed. In particular,
When the white reference value of a certain pixel exceeds a certain threshold value, the white reference value of that pixel is replaced with a predetermined correction value. This publication further discloses that the threshold value and the correction value are respectively corrected in order to solve the problem when dirt adheres to the entire white reference plate. The value and the correction value are uniformly applied to all pixels of the image sensor.

【0007】[0007]

【発明が解決しようとする課題】画像を読み取るための
イメージセンサには、密着型イメージセンサが適用され
る場合がある。密着型イメージセンサは、読み取り対象
の全幅をカバーすることができる長さに渡って読み取り
画素を配列した構成を有している。しかし、1チップの
半導体素子でこのような大きなイメージセンサを構成す
ることはできないから、複数の一次元イメージセンサチ
ップを直列に結合することにより、全体として大きなイ
メージセンサユニットを構成している。
As an image sensor for reading an image, a contact type image sensor is sometimes applied. The contact type image sensor has a configuration in which read pixels are arrayed over a length that can cover the entire width of a read target. However, since such a large image sensor cannot be constituted by a single chip semiconductor element, a large image sensor unit is constituted as a whole by connecting a plurality of one-dimensional image sensor chips in series.

【0008】ところが、複数のイメージセンサチップの
特性を厳密に揃えることはできないから、上述のように
して白基準値を検出した場合には、図6において参照符
号60で示すように、チップの結合部に対応した段差が
生じることは回避できない。このようなチップ間段差が
生じている白基準値に対して、一定のしきい値を用いて
白基準値の正常/異常を判定しても、このような判定を
すべての画素に対して正確に行うことはできない。同様
に、異常な白基準値を一定の補正値に補正したとして
も、このような補正が適正であるとは限らない。
However, since the characteristics of a plurality of image sensor chips cannot be strictly matched, when the white reference value is detected as described above, as shown by reference numeral 60 in FIG. The occurrence of a step corresponding to the part cannot be avoided. Even if a normal / abnormal judgment of the white reference value is made using a fixed threshold value for the white reference value having such a step between the chips, such judgment is correctly performed for all the pixels. Can not be done. Similarly, even if the abnormal white reference value is corrected to a fixed correction value, such correction is not always appropriate.

【0009】一方、ある注目画素の白基準値に対する処
理を行う際に、その注目画素の近傍の複数の画素の白基
準値の平均値を異常判定のためのしきい値として用い、
また、その平均値を補正値として用いれば、注目画素の
近傍の局所的な状況を反映した異常判定および白基準値
補正が可能であると考えられる。しかし、白基準値の段
差の付近では、平均値は注目画素を順次更新していくに
従って緩やかに段差に追従していくから、段差の付近に
おいては、平均値といえども適切な異常判定値または補
正値とはなり得ない。
On the other hand, when performing a process on a white reference value of a certain pixel of interest, an average value of white reference values of a plurality of pixels near the pixel of interest is used as a threshold value for abnormality determination,
If the average value is used as a correction value, it is considered that abnormality determination and white reference value correction reflecting a local situation near the pixel of interest can be performed. However, in the vicinity of the step of the white reference value, the average value gradually follows the step as the pixel of interest is sequentially updated. Therefore, in the vicinity of the step, even if the average value is an appropriate abnormality determination value or It cannot be a correction value.

【0010】そこで、この発明の目的は、上述の技術的
課題を解決し、連続する画素のシェーディング基準値に
段差がある場合であっても、シェーディング基準値の異
常判定を適正に行うことができ、これにより、良好なシ
ェーディング補正を行うことができるシェーディング補
正装置およびシェーディング補正方法を提供することで
ある。
Accordingly, an object of the present invention is to solve the above-mentioned technical problem, and it is possible to appropriately determine whether the shading reference value is abnormal even when there is a step in the shading reference value of successive pixels. Accordingly, an object of the present invention is to provide a shading correction device and a shading correction method that can perform good shading correction.

【0011】また、この発明のさらなる目的は、連続す
る画素のシェーディング基準値に段差がある場合であっ
ても、シェーディング基準値の補正を適正に行うことが
でき、これにより、良好なシェーディング補正を達成す
ることができるシェーディング補正装置およびシェーデ
ィング補正方法を提供することである。
It is a further object of the present invention to correct the shading reference value properly even when there is a step in the shading reference value of successive pixels, thereby achieving good shading correction. It is an object of the present invention to provide a shading correction device and a shading correction method that can be achieved.

【0012】[0012]

【課題を解決するための手段および発明の効果】上記の
目的を達成するための請求項1記載の発明は、画像を画
素ごとに読み取り、各画素の濃度データを出力する読み
取り手段(1) の出力データを、シェーディング基準値
(WST,BST)に基づいて補正するシェーディング
補正装置であって、上記読み取り手段により濃度基準板
(24)を読み取らせたときにこの読み取り手段から出力さ
れる各画素の濃度データをシェーディング基準値として
記憶するシェーディング基準値記憶手段(41)と、個々の
画素を所定の処理方向に沿って順次注目画素とし、その
注目画素の近傍の所定の位置関係の複数の画素のシェー
ディング基準値を上記シェーディング基準値記憶手段か
ら読み出し、この読み出された複数の画素のシェーディ
ング基準値に基づいて、注目画素ごとにシェーディング
基準値の正常値の範囲を定める正常値範囲設定手段(44,
S7) と、注目画素のシェーディング基準値が上記正常値
範囲設定手段によって設定された正常値の範囲値であれ
ば、そのシェーディング基準値は正常値であると判定
し、注目画素のシェーディング基準値が上記正常値範囲
設定手段によって設定された正常値の範囲外の値であれ
ば、そのシェーディング基準値は異常値であると判定す
る異常基準値判定手段(43,S7) と、注目画素の近傍の所
定の位置関係にあり、かつ、上記異常基準値判定手段に
よる判定処理が終了した処理済みの画素を含む処理済み
画素ブロックの構成画素のシェーディング基準値の平均
値を求める第1ブロック平均値演算手段(44,S1) と、注
目画素の近傍の所定の位置関係にあり、かつ、上記異常
基準値判定手段による処理が未処理である未処理画素を
含む未処理画素ブロックの構成画素のシェーディング基
準値の平均値を求める第2ブロック平均値演算手段(47,
S2) と、上記第1および第2ブロック平均値演算手段に
よってそれぞれ求められた平均値に基づいて、注目画素
がシェーディング基準値の段差部に相当すかどうかを判
定する段差判定手段(48,S3,S4)とを含み、上記正常値範
囲設定手段は、上記段差判定手段によって、注目画素が
段差部の画素であると判定されたならば、上記第2ブロ
ック平均値演算手段によって演算された平均値に基づい
て、正常値の範囲を変更する手段(44,S5) を含むもので
あることを特徴とするシェーディング補正装置である。
なお、括弧内は、後述の実施形態における対応構成要素
または処理ステップの参照符号を示す。以下、この項お
いて同様である。
According to the first aspect of the present invention, there is provided a reading means for reading an image for each pixel and outputting density data of each pixel. A shading correction device for correcting output data based on a shading reference value (WST, BST), wherein a density reference plate is read by the reading means.
(24) a shading reference value storage means (41) for storing the density data of each pixel output from the reading means as a shading reference value when reading the individual pixels, and sequentially outputting individual pixels along a predetermined processing direction. As the target pixel, the shading reference values of a plurality of pixels having a predetermined positional relationship in the vicinity of the target pixel are read from the shading reference value storage means, and based on the read shading reference values of the plurality of pixels, the target pixel Normal value range setting means (44,
S7), if the shading reference value of the pixel of interest is the normal value range value set by the normal value range setting means, the shading reference value is determined to be a normal value, and the shading reference value of the pixel of interest is If the value is out of the range of the normal value set by the normal value range setting means, the shading reference value is determined to be an abnormal value by the abnormal reference value determining means (43, S7); A first block average value calculating means for calculating an average value of shading reference values of constituent pixels of a processed pixel block including a processed pixel having a predetermined positional relationship and having undergone the determination processing by the abnormal reference value determining means; (44, S1) and an unprocessed pixel block including an unprocessed pixel that has a predetermined positional relationship in the vicinity of the pixel of interest and has not been processed by the abnormal reference value determination unit. The second block average value calculating means (47 for determining the average value of the shading reference value adult pixels,
S2) and the step determining means (48, S3, S4), the normal value range setting means, if the step determining means determines that the target pixel is a pixel of the step portion, the average value calculated by the second block average value calculating means A shading correction device characterized by including means (44, S5) for changing the range of the normal value based on
Note that the reference numerals in parentheses indicate corresponding components or processing steps in the embodiment described later. Hereinafter, the same applies in this section.

【0013】上記読み取り手段は、複数の半導体チップ
を組み合わせて構成されたスキャナユニットであっても
よい。また、上記未処理画素ブロックは、注目画素を含
んでも含まなくてもよい。さらに、上記第2ブロック平
均値演算手段は、複数個(好ましくは3個以上)の未処
理画素ブロックについてそれぞれ構成画素のシェーディ
ング基準値の平均値を求めるものであることが好まし
く、この場合に、段差判定手段は、上記複数個の未処理
画素ブロックについてそれぞれ求められた複数の平均値
に基づいて、注目画素がシェーディング基準値の段差部
に相当する画素かどうかを判定するものであることが好
ましい。
The reading means may be a scanner unit formed by combining a plurality of semiconductor chips. The unprocessed pixel block may or may not include the target pixel. Further, it is preferable that the second block average value calculation means obtains an average value of shading reference values of constituent pixels for a plurality of (preferably three or more) unprocessed pixel blocks. The step determining means preferably determines whether or not the pixel of interest is a pixel corresponding to a step portion of the shading reference value based on the plurality of average values obtained for the plurality of unprocessed pixel blocks. .

【0014】さらに具体的には、段差判定手段は、上記
複数の未処理画素ブロックの平均値がいずれも所定の上
限しきい値よりも大きい場合に注目画素を段差部の画素
と判定する手段(S3)と、上記複数の未処理画素ブロック
の平均値がいずれも所定の下限しきい値よりも小さい場
合に注目画素を段差部の画素と判定する手段(S4)とを含
むものであってもよい。この場合に、上記上限しきい値
は、第1ブロック平均値演算手段によって求められた未
処理画素ブロックの平均値に所定の正の定数(β)を加
算した値であってもよい。また、上記下限しきい値は、
第1ブロック平均値演算手段によって求められた未処理
画素ブロックの平均値から所定の正の定数(γ)を減じ
た値であってもよい。
More specifically, the step determining means determines the target pixel as the pixel of the step portion when the average value of the plurality of unprocessed pixel blocks is all larger than a predetermined upper threshold value. S3) and means (S4) for determining the target pixel as a pixel of the step portion when the average value of the plurality of unprocessed pixel blocks is all smaller than a predetermined lower threshold value. Good. In this case, the upper threshold value may be a value obtained by adding a predetermined positive constant (β) to the average value of the unprocessed pixel blocks obtained by the first block average value calculation means. The lower threshold is
It may be a value obtained by subtracting a predetermined positive constant (γ) from the average value of the unprocessed pixel blocks obtained by the first block average value calculation means.

【0015】また、上記処理済み画素ブロックおよび未
処理画素ブロックは、それぞれ、少なくとも1つ、好ま
しくは複数の画素(さらに好ましくは4個以上の画素)
を含む。また、上記正常値範囲設定手段は、注目画素の
近傍の所定の位置関係の複数の画素のシェーディング基
準値の平均値に基づいて正常値の範囲を設定するもので
あってもよい。この場合には、正常値範囲設定手段は、
第1ブロック平均値演算手段によって演算される処理済
み画素ブロックのシェーディング基準値の平均値を利用
して、たとえばこの平均値を中心とした一定の範囲を正
常値の範囲として設定するものであってもよい。
The processed pixel block and the unprocessed pixel block each have at least one, preferably a plurality of pixels (more preferably four or more pixels).
including. The normal value range setting means may set a normal value range based on an average value of shading reference values of a plurality of pixels having a predetermined positional relationship in the vicinity of the target pixel. In this case, the normal value range setting means:
Using a mean value of the shading reference values of the processed pixel blocks calculated by the first block mean value calculating means, for example, a certain range around the mean value is set as a normal value range. Is also good.

【0016】上記請求項1の発明によれば、シェーディ
ング基準値の正常値の範囲が、注目画素の近傍の複数の
画素のシェーディング基準値に基づいて定められるの
で、注目画素の近傍の状況を反映した局所的な基準値が
定められることになる。そのため、読み取り手段の読み
取り範囲内においてシェーディング基準値が大きくばら
ついている場合であっても、注目画素のシェーディング
基準値が正常か異常かの判定を適切に行うことができ
る。これにより、異常なシェーディング基準値を確実に
排除できるので、良好なシェーディング補正が可能にな
る。
According to the first aspect of the present invention, the range of the normal value of the shading reference value is determined based on the shading reference values of a plurality of pixels near the target pixel. The determined local reference value is determined. Therefore, even if the shading reference value greatly varies within the reading range of the reading unit, it is possible to appropriately determine whether the shading reference value of the target pixel is normal or abnormal. As a result, an abnormal shading reference value can be reliably eliminated, and good shading correction can be performed.

【0017】しかも、注目画素の近傍の処理済み画素ブ
ロックのシェーディング基準値の平均値と、未処理画素
ブロックのシェーディング基準値の平均値とに基づき、
注目画素が段差部の画素がどうかが判定される。そし
て、注目画素が段差部の画素である場合には、未処理画
素ブロックのシェーディング基準値の平均値に基づき、
正常値の範囲が変更される。これにより、段差の影響を
排除して、正常値の範囲を適切に設定することができる
ので、異常なシェーディング基準値を確実に排除するこ
とができ、適正なシェーディング補正を達成できる。
Moreover, based on the average of the shading reference values of the processed pixel blocks near the pixel of interest and the average of the shading reference values of the unprocessed pixel blocks,
It is determined whether the pixel of interest is a pixel in the step portion. If the pixel of interest is a pixel in the step, based on the average value of the shading reference values of the unprocessed pixel blocks,
The range of normal values is changed. As a result, the range of the normal value can be appropriately set by eliminating the influence of the step, so that the abnormal shading reference value can be reliably eliminated, and proper shading correction can be achieved.

【0018】請求項2記載の発明は、上記正常値範囲設
定手段によって設定される正常値の範囲に対応した補正
値を求める補正値演算手段(44,S1) と、上記異常基準値
判定手段によって異常値であると判定されたシェーディ
ング基準値を上記補正値演算手段によって求められた補
正値に補正するシェーディング基準値補正手段(45,S10)
とをさらに含み、上記補正値演算手段は、上記段差判定
手段によって、注目画素が段差部の画素であると判定さ
れたならば、上記第2ブロック平均値演算手段によって
演算された平均値に基づいて、補正値を変更する手段(4
4,S6) を含むものであることを特徴とする請求項1記載
のシェーディング補正装置である。
According to a second aspect of the present invention, the correction value calculating means (44, S1) for obtaining a correction value corresponding to the normal value range set by the normal value range setting means, and the abnormal reference value determining means. Shading reference value correction means (45, S10) for correcting the shading reference value determined to be an abnormal value to the correction value obtained by the correction value calculation means
And the correction value calculating means, based on the average value calculated by the second block average value calculating means, when the step determining means determines that the pixel of interest is a pixel of the step portion. To change the correction value (4
4. The shading correction device according to claim 1, wherein the shading correction device includes:

【0019】この構成によれば、注目画素の周辺の複数
の画素のシェーディング基準値に基づいて定められる正
常値の範囲に対応して補正値が求められ、異常値のシェ
ーディング基準値は、この補正値に補正される。したが
って、補正値は、注目画素の周辺の局所的状況を反映し
た値を取り得るから、シェーディング基準値の適切な補
正が可能になる。
According to this configuration, the correction value is obtained in accordance with the range of the normal value determined based on the shading reference values of a plurality of pixels around the pixel of interest. Corrected to the value. Therefore, since the correction value can take a value reflecting the local situation around the pixel of interest, it is possible to appropriately correct the shading reference value.

【0020】しかも、段差部の画素については、未処理
画素ブロックのシェーディング基準値の平均値に基づい
て、補正値が変更されるので、段差の影響を排除して、
適正な補正値を設定することができる。これにより、良
好なシェーディング補正を行うことができる。なお、補
正値演算手段は、正常値の範囲の中心値を補正値とする
ものであってもよい。
In addition, since the correction value for the pixel in the step portion is changed based on the average value of the shading reference values of the unprocessed pixel blocks, the influence of the step is eliminated.
An appropriate correction value can be set. Thereby, good shading correction can be performed. Note that the correction value calculating means may use the center value of the normal value range as the correction value.

【0021】また、補正値演算手段は、正常値の範囲に
関係なく、注目画素の近傍の所定の位置関係の複数の画
素のシェーディング基準値の平均値を補正値として求め
るものであってもよい。請求項3記載の発明は、上記第
1ブロック平均値演算手段は、上記異常基準値判定手段
によって正常値であると判定されたシェーディング基準
値のみを用いて平均値演算を行うものであり(S7,S8) 、
上記正常値範囲設定手段は、上記第1ブロック平均値演
算手段によって演算された平均値に基づいて上記正常値
の範囲を定めるものであることを特徴とする請求項1ま
たは2記載のシェーディング補正装置である。
Further, the correction value calculating means may determine the average value of the shading reference values of a plurality of pixels having a predetermined positional relationship in the vicinity of the pixel of interest irrespective of the normal value range as the correction value. . According to a third aspect of the present invention, the first block average value calculation means performs an average value calculation using only the shading reference value determined to be a normal value by the abnormal reference value determination means (S7). , S8),
3. The shading correction device according to claim 1, wherein the normal value range setting means determines the normal value range based on the average value calculated by the first block average value calculation means. It is.

【0022】この構成によれば、正常値とされたシェー
ディング基準値のみを用いて正常値の範囲が定められる
ことになるので、さらに適切に正常値の範囲を定めるこ
とができる。しかも、正常値の範囲の設定に第1ブロッ
ク平均値演算手段によって求められた平均値を利用でき
るので、装置の構成および処理を簡単にすることができ
る。
According to this configuration, the range of the normal value is determined by using only the shading reference value determined as the normal value, so that the range of the normal value can be determined more appropriately. Moreover, since the average value obtained by the first block average value calculation means can be used for setting the normal value range, the configuration and processing of the apparatus can be simplified.

【0023】請求項4記載の発明は、画像を画素ごとに
読み取り、各画素の濃度データを出力する読み取り手段
の出力データを、シェーディング基準値に基づいて補正
するシェーディング補正方法であって、上記読み取り手
段により濃度基準板を読み取らせたときにこの読み取り
手段から出力される各画素の濃度データをシェーディン
グ基準値として取得するステップと、個々の画素を所定
の処理方向に沿って順次注目画素とし、その注目画素の
近傍の所定の位置関係の複数の画素の上記取得されたシ
ェーディング基準値に基づいて、注目画素ごとにシェー
ディング基準値の正常値の範囲を定める正常値範囲設定
ステップ(S7)と、注目画素のシェーディング基準値が上
記設定された正常値の範囲内の値であれば、そのシェー
ディング基準値は正常値であると判定し、注目画素のシ
ェーディング基準値が上記正常値範囲設定ステップによ
って設定された正常値の範囲外の値であれば、そのシェ
ーディング基準値は異常値であると判定する異常基準値
判定ステップ(S7)と、注目画素の近傍の所定の位置関係
にあり、かつ、上記異常基準値判定ステップによる判定
処理が終了した処理済みの画素を含む処理済み画素ブロ
ックの構成画素のシェーディング基準値の平均値を求め
る第1ブロック平均値演算ステップ(S1)と、注目画素の
近傍の所定の位置関係にあり、かつ、上記異常基準値判
定ステップによる処理が未処理である未処理画素を含む
未処理画素ブロックの構成画素のシェーディング基準値
の平均値を求める第2ブロック平均値演算ステップ(S2)
と、上記第1および第2ブロック平均値演算ステップに
よってそれぞれ求められた平均値に基づいて、注目画素
がシェーディング基準値の段差部に相当する画素かどう
かを判定する段差判定ステップ(S3,S4) とを含み、上記
正常値範囲設定ステップは、上記段差判定ステップによ
って、注目画素が段差部の画素であると判定されたなら
ば、上記第2ブロック平値演算ステップによって演算さ
れた平均値に基づいて、正常値の範囲を変更するステッ
プ(S5)を含むことを特徴とするシェーディング補正方法
である。
According to a fourth aspect of the present invention, there is provided a shading correction method for reading an image for each pixel and correcting output data of reading means for outputting density data of each pixel based on a shading reference value. Acquiring density data of each pixel output from the reading means when the density reference plate is read by the means as a shading reference value, and sequentially setting individual pixels as target pixels along a predetermined processing direction. A normal value range setting step (S7) of determining a normal value range of a shading reference value for each pixel of interest based on the obtained shading reference values of a plurality of pixels having a predetermined positional relationship in the vicinity of the pixel of interest; If the shading reference value of the pixel is a value within the range of the normal value set above, the shading reference value is positive. If the shading reference value of the target pixel is determined to be a normal value and the value of the shading reference value of the pixel of interest is out of the range of the normal value set in the normal value range setting step, the shading reference value is determined to be an abnormal value. A value determination step (S7) and a shading reference of constituent pixels of a processed pixel block including a processed pixel that has a predetermined positional relationship in the vicinity of the pixel of interest and has been subjected to the determination processing by the abnormal reference value determination step. A first block average value calculation step (S1) for obtaining an average value of the values, and an unprocessed pixel which has a predetermined positional relationship near the pixel of interest and has not been processed by the abnormal reference value determination step. Second block average value calculation step (S2) for obtaining the average value of the shading reference values of the constituent pixels of the unprocessed pixel block
And a step determining step (S3, S4) for determining whether the pixel of interest is a pixel corresponding to a step of the shading reference value based on the average values obtained in the first and second block average value calculation steps, respectively. The normal value range setting step is based on the average value calculated in the second block flat value calculation step if the target pixel is determined to be a pixel in the step portion in the step determination step. And a step (S5) of changing the range of the normal value.

【0024】この方法により、請求項1の発明と同様な
効果が達成される。請求項5記載の発明は、上記正常値
範囲設定ステップによって設定される正常値の範囲に対
応した補正値を求める補正値演算ステップ(S1)と、上記
異常基準値判定ステップによって異常値であると判定さ
れたシェーディング基準値を上記補正値演算ステップよ
って求められた補正値に補正するシェーディング基準値
補正ステップ(S10) とをさらに含み、上記補正値演算ス
テップは、上記段差判定ステップによって、注目画素が
段差部の画素であると判定されたならば、上記第2ブロ
ック平均値演算ステップによって演算された平均値に基
づいて、補正値を変更するステップ(S6)を含むことを特
徴とする請求項4記載のシェーディング補正方法であ
る。
According to this method, the same effect as that of the first aspect is achieved. According to a fifth aspect of the present invention, there is provided a correction value calculating step (S1) for obtaining a correction value corresponding to a normal value range set in the normal value range setting step, and an abnormal value is determined in the abnormal reference value determining step. A shading reference value correction step (S10) of correcting the determined shading reference value to a correction value obtained by the correction value calculation step, wherein the correction value calculation step includes: 5. The method according to claim 4, further comprising the step of: (S6) changing a correction value based on the average value calculated in the second block average value calculation step if the pixel is determined to be a pixel in the step portion. It is a shading correction method described.

【0025】この方法により、請求項2の発明と同様な
効果が達成される。請求項6記載の発明は、上記第1ブ
ロック平均値演算ステップは、上記異常基準値判定ステ
ップによって正常値であると判定されたシェーディング
基準値のみを用いて平均値演算を行うステップ(S7,S8)
を含み、上記正常値範囲設定ステップは、上記第1ブロ
ック平均値演算ステップによって演算された平均値に基
づいて上記正常値の範囲を定めるステップ(S8)を含むこ
とを特徴とする請求項4または5記載のシェーディング
補正方法である。
According to this method, the same effect as that of the second aspect is achieved. According to a sixth aspect of the present invention, in the first block average value calculation step, an average value calculation is performed using only the shading reference value determined to be a normal value in the abnormal reference value determination step (S7, S8). )
The normal value range setting step includes a step (S8) of determining the range of the normal value based on the average value calculated in the first block average value calculation step. 5. The shading correction method according to 5.

【0026】この方法により、請求項3の発明と同様な
効果が達成される。
According to this method, the same effect as the third aspect of the invention is achieved.

【0027】[0027]

【発明の実施の形態】以下では、この発明の実施の形態
を、添付図面を参照して詳細に説明する。図1は、この
発明の一実施形態が適用されたファクシミリ装置の画像
処理に関連する部分の電気的構成を示すブロック図であ
る。ファクシミリ装置にセットされた原稿は、スキャナ
1で読み取られる。スキャナ1には、密着型イメージス
キャナユニットが含まれている。
Embodiments of the present invention will be described below in detail with reference to the accompanying drawings. FIG. 1 is a block diagram showing an electrical configuration of a portion related to image processing of a facsimile apparatus to which an embodiment of the present invention is applied. The document set on the facsimile machine is read by the scanner 1. The scanner 1 includes a contact image scanner unit.

【0028】スキャナ1で読み取られた原稿のイメージ
データは、入力インタフェース部2へ与えられ、このイ
ンタフェース部2で信号のサンプルホールド処理等が行
われる。入力インタフェース部2は、この実施形態にお
いては、アナログ回路で構成されており、上記処理はア
ナログ的に行われる。入力インタフェース部2で処理さ
れたイメージデータは、ディジタルAGC回路3へ与え
られて、信号(イメージデータ)のレベルを所望の範囲
に納めるためのゲインコントロールが行われ、かつ、ア
ナログ信号からディジタル信号への変換が行われる。
The image data of the document read by the scanner 1 is supplied to an input interface unit 2, where the sample and hold processing of the signal is performed. In this embodiment, the input interface unit 2 is configured by an analog circuit, and the above processing is performed in an analog manner. The image data processed by the input interface unit 2 is applied to a digital AGC circuit 3, where a gain control for keeping the level of a signal (image data) within a desired range is performed, and an analog signal is converted to a digital signal. Is performed.

【0029】次いで、ゲインコントロールされたイメー
ジデータは、シェーディング補正回路4へ与えられ、シ
ェーディング歪みが軽減または除去される。シェーディ
ング歪みとは、スキャナ1で原稿を読み取る際の読み取
り用光源の照明むらやその他の原因による画素間濃度む
らをいう。この実施形態は、このシェーディング補正回
路4の構成および処理に特徴がある。
Next, the gain-controlled image data is applied to a shading correction circuit 4 to reduce or eliminate shading distortion. The shading distortion refers to unevenness in illumination of a reading light source when reading an original by the scanner 1 or unevenness in density between pixels due to other causes. This embodiment is characterized by the configuration and processing of the shading correction circuit 4.

【0030】シェーディング歪みが軽減または除去され
たイメージデータは、次に、領域分離回路5へ与えられ
る。領域分離回路5では、入力されるイメージデータが
文字を読み取ったイメージデータ(文字データ)である
か、写真を読み取ったイメージデータ(写真データ)で
あるか、または、印刷写真、たとえば新聞紙や雑誌等の
写真画像を読み取った網点のイメージデータ(網点デー
タ)であるのかの判別か行われる。
The image data from which the shading distortion has been reduced or removed is next supplied to the area separating circuit 5. In the region separating circuit 5, the input image data is image data (character data) obtained by reading characters, image data (photo data) obtained by reading a photograph, or a printed photograph, such as newspaper or magazine. It is determined whether the image data is image data (halftone data) of halftone dots obtained by reading the photographic image.

【0031】もし、入力されるイメージデータ中に、文
字データ、写真データおよび網点データが混在している
場合には、各データの領域分離が行われる。領域分離回
路5の出力側には、領域分離されたデータの種類別に異
なる処理を施すフィルタ部6が接続されている。フィル
タ部6は、微分フィルタ6A、積分フィルタ6B、積分
微分フィルタ6Cおよびデータスルーフィルタ6Dを備
えている。そして、フィルタ部6は、領域分離回路5か
ら各画素がいずれの領域のデータであるかを表す領域分
離信号を受けて、各画素に対して適切なフィルタによる
処理を施す。すなわち、文字データは、微分フィルタ6
Aに与えられ、輪郭を鮮明にするための処理が施され
る。網点データは、積分フィルタ6Bに与えられ、デー
タの平滑化がされる。また、各領域の境界画素は、積分
微分フィルタ6Cに与えられ、異なる画素情報の急激な
濃度変化を緩和するための処理が施される。さらに、文
字データおよび網点データ以外のデータ、すなわち、写
真データは、データスルーフィルタ6Dに与えられ、そ
のまま、次の回路に送られる。
If character data, photograph data, and halftone data are mixed in the input image data, area separation of each data is performed. On the output side of the region separation circuit 5, a filter unit 6 that performs different processing for each type of region-separated data is connected. The filter unit 6 includes a differentiation filter 6A, an integration filter 6B, an integration differentiation filter 6C, and a data through filter 6D. Then, the filter unit 6 receives, from the region separation circuit 5, a region separation signal indicating which region each pixel belongs to, and performs an appropriate filter process on each pixel. That is, the character data is stored in the differential filter 6.
A, and a process for sharpening the outline is performed. The halftone data is supplied to the integration filter 6B, and the data is smoothed. Also, the boundary pixels of each area are provided to the integral / differential filter 6C, and are subjected to processing for alleviating a sudden change in the density of different pixel information. Further, data other than the character data and the halftone dot data, that is, the photographic data, is given to the data through filter 6D and sent to the next circuit as it is.

【0032】フィルタ部6からのデータは、ズーム・ス
ムージング回路9へ与えられる。ズーム・スムージング
回路9では、画像を拡大または縮小する場合に、その拡
大または縮小処理およびそれに伴う画像の歪みを補正す
る処理が行われる。もし、画像を拡大または縮小しない
場合には、ズーム・スムージング回路9は、イメージデ
ータに何らの処理も施さない。
The data from the filter section 6 is supplied to a zoom / smoothing circuit 9. In the case of enlarging or reducing an image, the zoom / smoothing circuit 9 performs an enlarging or reducing process and a process of correcting image distortion accompanying the enlarging or reducing process. If the image is not enlarged or reduced, the zoom / smoothing circuit 9 does not perform any processing on the image data.

【0033】ズーム・スムージング回路9までの処理を
経たイメージデータは、その後、種類に応じて次のいず
れかの回路での処理が施され、多値データ(たとえば、
8ビット(0〜255))から二値データ(「0」また
は「1」)への変換が行われる。すなわち、イメージデ
ータが写真データまたは網点データであって、中間調処
理を施すべきものである場合には、γ補正回路10へ与
えられ、人間の目の特性に合わせるようにデータの感度
特性が補正される。さらに、誤差拡散回路11へ与えら
れて良好な中間調表現のための処理が施されたうえで、
二値化される。
The image data that has undergone the processing up to the zoom / smoothing circuit 9 is then subjected to processing in one of the following circuits depending on the type, and multi-valued data (for example,
Conversion from 8 bits (0 to 255) to binary data ("0" or "1") is performed. That is, when the image data is photograph data or halftone data and is to be subjected to halftone processing, the image data is supplied to the γ correction circuit 10 and the sensitivity characteristics of the data are adjusted to match the characteristics of human eyes. Will be corrected. Further, after being given to the error diffusion circuit 11 and subjected to a process for good halftone expression,
It is binarized.

【0034】他方、イメージデータが文字データであ
り、単純二値化処理を施すべきデータの場合には、二値
化回路12へ与えられる。二値化回路12は、二値化の
ためのスライスレベルを調整して、背景と文字や線画等
とを区別する。このとき、濃度が適正になるよう、自動
濃度調整処理も行われる。そして二値化回路12の出力
は、孤立点除去回路13へ与えられて、ノイズ等のため
に現れた孤立した黒点や白点等の除去がなされる。
On the other hand, if the image data is character data and data to be subjected to simple binarization processing, it is supplied to the binarization circuit 12. The binarization circuit 12 adjusts a slice level for binarization to distinguish a background from characters, line drawings, and the like. At this time, an automatic density adjustment process is also performed so that the density becomes appropriate. The output of the binarizing circuit 12 is supplied to an isolated point removing circuit 13 to remove isolated black points and white points that appear due to noise or the like.

【0035】以上の処理により生成された二値化データ
は、出力回路14へ与えられ、図示しない送信回路へ出
力され、或いは印刷回路へ出力される。図2は、シェー
ディング補正回路4の構成を説明するための図である。
この実施形態に係るファクシミリ装置では、ローラ21
により搬送される原稿の搬送経路22上の所定の位置が
読み取り位置23とされている。読み取り位置23に
は、たとえば、原稿搬送経路22の搬送方向に直交する
方向に延びる濃度基準板としての白基準板24が配置さ
れている。また、この白基準板24または原稿搬送経路
22を搬送される原稿を読み取り位置23において照明
するためのランプ25と、このランプ25で照明された
白基準板24または読み取り位置23における原稿内容
を読み取るための密着型イメージスキャナユニット26
が配置されている。
The binarized data generated by the above processing is supplied to the output circuit 14 and output to a transmission circuit (not shown) or to a printing circuit. FIG. 2 is a diagram for explaining the configuration of the shading correction circuit 4.
In the facsimile apparatus according to this embodiment, the roller 21
A predetermined position on the conveyance path 22 of the document conveyed by is set as a reading position 23. At the reading position 23, for example, a white reference plate 24 as a density reference plate extending in a direction perpendicular to the transport direction of the document transport path 22 is arranged. Further, a lamp 25 for illuminating the original conveyed through the white reference plate 24 or the original conveyance path 22 at the reading position 23, and reading the original content at the white reference plate 24 or the reading position 23 illuminated by the lamp 25. Image scanner unit 26 for
Is arranged.

【0036】密着型イメージスキャナユニット26は、
原稿の全幅をカバーする長さの範囲に渡って一直線状に
読み取り画素を配列して構成されている。このような密
着型イメージスキャナユニット26は、単一の半導体チ
ップで構成することができないので、複数のラインセン
サチップを直列に結合して構成されている。ところが、
複数のラインセンサチップは、異なる特性を有している
のが通常であるから、チップの結合部付近において、密
着型イメージスキャナユニット26の出力レベルには段
差が生じることになる。
The contact type image scanner unit 26 includes:
Read pixels are arranged in a straight line over a range of length covering the entire width of the document. Since such a contact type image scanner unit 26 cannot be constituted by a single semiconductor chip, it is constituted by connecting a plurality of line sensor chips in series. However,
Since a plurality of line sensor chips usually have different characteristics, a step occurs in the output level of the contact image scanner unit 26 near the junction of the chips.

【0037】イメージスキャナユニット26で読み取ら
れたイメージデータは、図1で説明したように、入力イ
ンタフェース部2およびディジタルAGC回路3を経
て、シェーディング補正回路4へ与えられる。シェーデ
ィング補正回路4は、イメージスキャナユニット26の
複数の読み取り画素にそれぞれ対応した白基準値WST
および黒基準値BSTを記憶するためのラインメモリ4
1と、このラインメモリ41に格納された白基準値WS
Tおよび黒基準値BSTに基づいて、入力画像データD
に対して、下記第(2) 式によるシェーディング補正演算
を施し、シェーディング補正後のデータSOUTを演算
する補正演算部42とを備えている。
The image data read by the image scanner unit 26 is supplied to the shading correction circuit 4 via the input interface unit 2 and the digital AGC circuit 3 as described with reference to FIG. The shading correction circuit 4 includes a white reference value WST corresponding to each of the plurality of read pixels of the image scanner unit 26.
And a line memory 4 for storing the black reference value BST
1 and the white reference value WS stored in the line memory 41.
T and the input image data D based on the black reference value BST.
And a correction calculation unit 42 that performs shading correction calculation according to the following equation (2) to calculate data SOUT after shading correction.

【0038】[0038]

【数2】 (Equation 2)

【0039】上記第(2) 式において、OFFSETは、オフセ
ット値を表す。たとえば、ディジタルAGC回路3に備
えられたアナログ/ディジタル変換器が7ビットのデー
タ深さを有している場合に、白基準値の最小値が「00
00111」であるとすると、実質的には4ビットで階
調表現が行われていることになる。そこで、シェーディ
ング補正演算式の除数および被除数から一定のオフセッ
ト値OFFSETを減じておくことにより、濃度を7ビットで
階調表現したデータをシェーディング補正後のデータS
OUTとして得ることができる。つまり、アナログ/デ
ィジタル変換器のデータ深さを有効に利用して、補正後
のデータSOUTのダイナミックレンジを大きくとるこ
とができる。
In the above equation (2), OFFSET represents an offset value. For example, when the analog / digital converter provided in the digital AGC circuit 3 has a data depth of 7 bits, the minimum value of the white reference value is “00”.
If it is "00111", it means that the gradation expression is substantially performed by 4 bits. Therefore, by subtracting a constant offset value OFFSET from the divisor and the dividend in the shading correction operation expression, the data representing the density in 7-bit gradation is represented by the data S after the shading correction.
OUT can be obtained. That is, the dynamic range of the corrected data SOUT can be increased by effectively utilizing the data depth of the analog / digital converter.

【0040】シェーディング補正回路4には、さらに、
白基準値WSTの異常判定を行うための異常判定部43
と、白基準値WSTの正常値の範囲を定めるための正常
値範囲設定部44と、異常値の白基準値WSTを補正す
るための白基準値補正部45とが備えられている。さら
にまた、シェーディング補正回路4は、イメージセンサ
ユニット26の読み取り画素を一方端から順に注目画素
として白基準値WSTの異常判定および補正を行う際
に、一連の数画素(この実施形態では4画素)からなる
画素ブロックの各構成画素の白基準値WSTの平均値を
演算するブロック平均値演算部47と、このブロック平
均値演算部47によって演算された平均値に基づいて、
注目画素が段差部の画素であるかどうかを判断する段差
判定部48とを有している。
The shading correction circuit 4 further includes:
Abnormality determination unit 43 for performing abnormality determination of white reference value WST
A normal value range setting unit 44 for determining a normal value range of the white reference value WST; and a white reference value correction unit 45 for correcting the abnormal white reference value WST. Furthermore, the shading correction circuit 4 performs a series of several pixels (four pixels in this embodiment) when performing an abnormality determination and correction of the white reference value WST using pixels read from the image sensor unit 26 as a pixel of interest sequentially from one end. A block average value calculator 47 for calculating the average value of the white reference value WST of each constituent pixel of the pixel block composed of
A step determining unit 48 for determining whether or not the target pixel is a pixel of the step.

【0041】図3は、シェーディング補正回路4におけ
る白基準値WSTの補正の原理を説明するための図解図
である。シェーディング補正回路4では、イメージスキ
ャナユニット26からの白基準値WSTがラインメモリ
41に格納された後、複数の画素を一方端の画素から順
次1つずつ注目画素とし、その注目画素の白基準値WS
Tが正常値か否かを判定し、異常値であれば適当な補正
値と置き換えるための処理が行われる。
FIG. 3 is an illustrative view for explaining the principle of correction of the white reference value WST in the shading correction circuit 4. In the shading correction circuit 4, after the white reference value WST from the image scanner unit 26 is stored in the line memory 41, a plurality of pixels are sequentially set as a target pixel one by one from one end pixel, and the white reference value of the target pixel is set. WS
It is determined whether or not T is a normal value, and if it is abnormal, a process for replacing it with an appropriate correction value is performed.

【0042】たとえば、図3の画素P10が注目画素の
場合、正常値範囲設定部44は、直前の数画素(たとえ
ば、4画素)P9,P8,P7,P6からなる処理済み
画素ブロックの構成画素の白基準値WSTの平均値Aを
求め、この平均値Aを中心とした一定の範囲、すなわ
ち、A−α(αは正の定数)からA+αまでの範囲を、
注目画素P10の正常値の範囲として設定する。言い換
えれば、A+αが正常値の上限しきい値とされ、A−α
が、正常値の下限しきい値とされる。
For example, when the pixel P10 in FIG. 3 is the pixel of interest, the normal value range setting unit 44 sets the constituent pixels of the processed pixel block consisting of the immediately preceding pixels (for example, four pixels) P9, P8, P7, and P6. The average value A of the white reference value WST is calculated, and a certain range centered on the average value A, that is, a range from A-α (α is a positive constant) to A + α,
This is set as the range of the normal value of the target pixel P10. In other words, A + α is the upper limit threshold of the normal value, and A−α
Is set as the lower threshold of the normal value.

【0043】異常判定部43は、ラインメモリ41から
読み出した注目画素P10の白基準値WSTと、上限し
きい値A+αおよび下限しきい値A−αとを比較し、そ
の白基準値WSTが正常値の範囲内の値かどうかを判断
する。白基準値WSTが正常値の範囲内の値であれば、
異常判定部43は、その白基準値WSTが正常値である
ものと判定し、その注目画素P10についての処理を終
え、次の画素P11を注目画素として同様な処理が行わ
れる。
The abnormality determination unit 43 compares the white reference value WST of the pixel of interest P10 read from the line memory 41 with the upper threshold value A + α and the lower threshold value A-α, and the white reference value WST is normal. Determines if the value is within the value range. If the white reference value WST is a value within the range of the normal value,
The abnormality determination unit 43 determines that the white reference value WST is a normal value, ends the process for the target pixel P10, and performs the same process using the next pixel P11 as the target pixel.

【0044】一方、図3において参照符号P10a,P
10bで示すように、白基準板24の表面の局所的な汚
れや、ゴミの付着または電気的ノイズなどに起因して、
注目画素P10の白基準値WSTが上記正常値の範囲外
の値をとっているときには、異常判定部43は、その白
基準値WSTを異常値であるものと判定し、そのことを
表す異常判定信号を白基準値補正部45に与える。これ
を受けて、白基準値補正部45は、白基準値WSTを補
正値CVに置き換え、この補正値CVを注目画素P10
の白基準値としてラインメモリ41に書き込む。その後
は、次の画素P11を注目画素として同様な処理が行わ
れることになる。
On the other hand, in FIG.
As shown by 10b, due to local contamination on the surface of the white reference plate 24, adhesion of dust, or electrical noise,
When the white reference value WST of the pixel of interest P10 is out of the range of the normal value, the abnormality determining unit 43 determines that the white reference value WST is an abnormal value, and determines that the abnormality is abnormal. The signal is given to the white reference value correction unit 45. In response to this, the white reference value correction unit 45 replaces the white reference value WST with the correction value CV, and replaces the correction value CV with the target pixel P10.
Is written into the line memory 41 as the white reference value of the. After that, similar processing is performed with the next pixel P11 as a target pixel.

【0045】補正値CVは、上記の平均値Aと等しくて
もよく、この場合には、平均値Aが正常値範囲設定部4
4から白基準値補正部45に与えられることになる。な
お、正常値範囲設定部44は、直前の数画素の平均値を
求める際に、当初の白基準値WSTが異常値であると判
定された画素の白基準値データを用いず、正常値の白基
準値WSTを数画素分用いて平均値演算を行う。具体的
には、正常値範囲設定部44は、注目画素の白基準値W
STが正常値であるとの判定結果を異常判定部43から
受けたときに、これに応じて、次の画素の正常値範囲を
設定するために、そのときの注目画素およびその直前の
数画素の平均値を求める。その一方、異常判定部43か
ら注目画素の白基準値WSTが異常であるとの判定結果
を受けたときには、平均値演算を行わず、正常値範囲の
更新を行わない。
The correction value CV may be equal to the average value A. In this case, the average value A is set to the normal value range setting unit 4.
4 to the white reference value correction unit 45. Note that the normal value range setting unit 44 does not use the white reference value data of the pixel for which the initial white reference value WST is determined to be an abnormal value when calculating the average value of the immediately preceding pixels. An average value calculation is performed using the white reference value WST for several pixels. Specifically, the normal value range setting unit 44 determines the white reference value W of the pixel of interest.
When the determination result that ST is a normal value is received from the abnormality determination unit 43, in order to set the normal value range of the next pixel, the target pixel at that time and several pixels immediately before it are set. Find the average value of On the other hand, when the determination result that the white reference value WST of the target pixel is abnormal is received from the abnormality determination unit 43, the average value calculation is not performed and the normal value range is not updated.

【0046】正常値範囲設定部44における平均値演算
は、注目画素およびその直前の数画素の単純平均値を求
める演算であってもよいし、下記第(3) 式により求めら
れる移動平均値を求める演算であってもよい。 (移動平均値)=Total −(前回の移動平均値)+(注目画素の白基準値) ・・・・・・ (3) ただし、Total は、注目画素およびその直前の数画素の
白基準値の合計値である。
The average value calculation in the normal value range setting section 44 may be a calculation for obtaining a simple average value of the pixel of interest and several pixels immediately before it, or a moving average value obtained by the following equation (3). The required calculation may be used. (Moving average value) = Total− (previous moving average value) + (white reference value of target pixel) (3) Here, Total is the white reference value of the target pixel and several pixels immediately before it. Is the sum of

【0047】処理開始当初の数画素については、平均値
演算のための画素数が不足しているので、これらの画素
については、白基準値の正常/異常の判定および補正を
行わないか、または、予め定めた一定の正常値範囲およ
び一定の補正値に基づいて、正常/異常の判定および補
正を行うようにすればよい。図4は、イメージセンサチ
ップの結合部における白基準値の段差の検出原理を説明
するための図解図である。ブロック平均値演算部47
は、注目画素P0とそれに引き続く3個の未処理の画素
P+1,P+2,P+3とを含む合計4画素のブロック
F1の白基準値WSTの平均値Bと、画素P+3に続く
4個の未処理の画素P+4,P+5,P+6,P+7を
含むブロックF2の白基準値WSTの平均値Cと、画素
P+7に続く4個の未処理の画素P+8,P+9,P+
10,P+11を含むブロックF3の白基準値WSTの平均
値Dとを演算する。これらの演算された平均値B,Cお
よびDは、段差判定部48に与えられる。この段差判定
部48にはまた、正常値範囲設定部44で演算された上
述の平均値A(注目画素の直前の処理済みの4個の画素
P−1,P−2,P−3,P−4を含む画素ブロックF
0の白基準値(ただし正常値のみ)の平均値)が与えら
れる。
For some pixels at the beginning of the process, the number of pixels for calculating the average value is insufficient, so that the normal / abnormal judgment and correction of the white reference value are not performed for these pixels, or The normal / abnormal judgment and correction may be performed based on a predetermined normal value range and a predetermined correction value. FIG. 4 is an illustrative view for explaining a principle of detecting a step of a white reference value in a joint portion of the image sensor chip. Block average value calculator 47
Is the average value B of the white reference value WST of the block F1 of a total of four pixels including the pixel of interest P0 and the three unprocessed pixels P + 1, P + 2, and P + 3 that follow it, and the four unprocessed pixels following the pixel P + 3. Average value C of white reference value WST of block F2 including pixels P + 4, P + 5, P + 6, P + 7, and four unprocessed pixels P + 8, P + 9, P + following pixel P + 7.
The average value D of the white reference value WST of the block F3 including 10, P + 11 is calculated. The calculated average values B, C, and D are provided to the level difference determination unit 48. The step determining unit 48 also includes the above-described average value A (the four processed pixels P-1, P-2, P-3, P-3 immediately before the pixel of interest) calculated by the normal value range setting unit 44. -4 containing -4
The white reference value of 0 (however, only the normal value) is given.

【0048】段差判定部48は、次の条件またはが
満足されると、注目画素が段差部の画素であるものと判
定し、段差検出信号を出力する。 A+β<B かつ、A+β<C かつ、A+β<D ただし、βは正の定数。
When the following condition or the following condition is satisfied, the step determining section 48 determines that the target pixel is a pixel of the step section, and outputs a step detection signal. A + β <B and A + β <C and A + β <D where β is a positive constant.

【0049】 A−γ>B かつ、A−γ>C かつ、A−γ>D ただし、γは正の定数。 上記の条件は、図4(a) のように、注目画素P0の白
基準値WSTがそれまでの画素の白基準値WSTよりも
急激に大きくなる段差部の先頭画素である場合成立す
る。
A−γ> B and A−γ> C and A−γ> D where γ is a positive constant. The above condition is satisfied when the white reference value WST of the target pixel P0 is the first pixel of the step portion where the white reference value WST of the pixel of interest rapidly increases, as shown in FIG.

【0050】また、上記の条件は、図4(b) のよう
に、注目画素P0が白基準値WSTがそれまでの画素の
白基準値WSTよりも急激に小さくなる段差部の先頭画
素である場合に成立する。図4(c) のように、注目画素
P0が段差部の画素でない場合には、上記およびの
条件はいずれも満たされない。この場合には、次の条件
が満たされるはずである。
The above condition is that the target pixel P0 is the top pixel of the step where the white reference value WST is sharply smaller than the white reference value WST of the previous pixel as shown in FIG. 4 (b). Holds if. As shown in FIG. 4C, when the target pixel P0 is not a pixel in the step portion, none of the above conditions is satisfied. In this case, the following condition should be satisfied.

【0051】 A+β≧B≧A−γ 上記ないしのいずれの条件も満たされない場合に
は、平均値Bに相当するブロック(すなわち注目画素を
含むブロック)の画素の基準値のなかに異常値が含まれ
ているために平均値Bが異常値をとっているものと判断
される。段差判定部48が段差検出信号を出力すると、
正常値範囲設定部44は、段差判定部48から上記の平
均値Bを取り込み、この平均値Bを正常値の範囲を設定
する際の平均値Aと置き換えて用いる。この場合、補正
値CVも平均値Bに等しくされる。
A + β ≧ B ≧ A−γ When none of the above conditions is satisfied, the abnormal value is included in the reference value of the pixel of the block corresponding to the average value B (that is, the block including the target pixel). Therefore, it is determined that the average value B is an abnormal value. When the level difference determination section 48 outputs a level difference detection signal,
The normal value range setting unit 44 fetches the above average value B from the step determining unit 48, and uses this average value B in place of the average value A when setting the normal value range. In this case, the correction value CV is also made equal to the average value B.

【0052】図5は、シェーディング補正回路4による
上述の処理をまとめて示すフローチャートである。正常
値範囲設定部44により、注目画素の直前の数画素(た
とえば4画素)の白基準値WSTの平均値Aが算出され
(ステップS1)、ブロック平均演算部47により、注
目画素以降の3ブロックの白基準値WSTの平均値B,
C,Dが演算される(ステップS2)。
FIG. 5 is a flowchart showing the above-mentioned processing by the shading correction circuit 4 collectively. The average value A of the white reference value WST of several pixels (for example, four pixels) immediately before the pixel of interest is calculated by the normal value range setting unit 44 (step S1), and the three blocks after the pixel of interest are calculated by the block average calculation unit 47. Average value B of white reference value WST of
C and D are calculated (step S2).

【0053】そして、上述の条件が成立するかどうか
が判断され(ステップS3)、この条件が成立しなけ
れば、さらに上述の条件が成立するかどうかが判断さ
れる(ステップS4)。条件またはのいずれかが成
立する場合には、平均値Aが平均値Bに置き換えられ
(ステップS5)、また、補正値CVも平均値Bに置き
換えられて(ステップS6)、注目画素の白基準値WS
Tが正常値の範囲A±αの範囲内かどうかが判断される
(ステップS7)。注目画素の白基準値WSTが正常値
の範囲A±αの範囲内であれば、その注目画素の白基準
値WSTを用いて次の画素の処理のための平均値Aが求
められ(ステップS8)、注目画素を更新して(ステッ
プS9)、ステップS2に戻る。一方、注目画素の白基
準値WSTが正常値の範囲A±αの範囲外であれば、そ
の注目画素の白基準値WSTを補正値CVに補正し(ス
テップS10)、この補正値CVをラインメモリ41に
書き込むとともに、注目画素を更新して(ステップS
9)、ステップS2に戻る。この際、平均値Aの更新は
行われない。
Then, it is determined whether or not the above condition is satisfied (step S3). If this condition is not satisfied, it is further determined whether or not the above condition is satisfied (step S4). If either of the conditions is satisfied, the average value A is replaced with the average value B (step S5), and the correction value CV is also replaced with the average value B (step S6), and the white reference of the target pixel is set. Value WS
It is determined whether T is within the normal value range A ± α (step S7). If the white reference value WST of the target pixel is within the normal value range A ± α, an average value A for processing the next pixel is obtained using the white reference value WST of the target pixel (step S8). ), Update the target pixel (step S9), and return to step S2. On the other hand, if the white reference value WST of the target pixel is out of the normal value range A ± α, the white reference value WST of the target pixel is corrected to a correction value CV (step S10), and the correction value CV is set to a line. While writing to the memory 41, the pixel of interest is updated (step S
9) Return to step S2. At this time, the average value A is not updated.

【0054】上記およびの条件がいずれも成立しな
い場合には、さらに、条件が成立するかどうかが判断
される(ステップS11)。そして、条件が成立すれ
ば、ステップS7からの処理が行われる。一方、条件
が成立しない場合にも、ステップS7と同様な判断が行
われるが(ステップS12)、この場合には、平均値A
の更新を行うことなく、注目画素が次の画素に更新され
る(ステップS9)。これは、条件が成立しない場合
には、平均値Bに対応する画素ブロックの中の画素の白
基準値WSTに異常値が含まれている可能性が高いの
で、このような異常な白基準値WSTの影響が次の画素
の白基準値の正常/異常の判定に及ばないようにするた
めである。平均値Bは、正常/異常の判定を行う以前の
白基準値WSTの平均値であるから、このような処理を
行うことが好ましいのである。
If none of the above conditions are satisfied, it is further determined whether the conditions are satisfied (step S11). Then, if the condition is satisfied, the processing from step S7 is performed. On the other hand, when the condition is not satisfied, the same determination as in step S7 is made (step S12).
The pixel of interest is updated to the next pixel without updating (step S9). This is because if the condition is not satisfied, there is a high possibility that the white reference value WST of the pixel in the pixel block corresponding to the average value B contains an abnormal value. This is to prevent the influence of WST from affecting the normal / abnormal determination of the white reference value of the next pixel. Since the average value B is an average value of the white reference value WST before the determination of normality / abnormality, it is preferable to perform such processing.

【0055】以上のように、この実施形態によれば、注
目画素の前後の画素ブロックの白基準値WSTの平均値
A,B,C,Dに基づいて、チップの結合部に相当する
白基準値WSTの段差を検出し、段差部の画素について
は、その段差以降の複数の画素の白基準値WSTの平均
値に基づいて正常値の範囲および補正値を設定するよう
にしている。そのため、イメージスキャナユニット26
の出力レベルの段差によらずに白基準値の正常/異常の
判定およびその補正を適切に行うことができる。
As described above, according to this embodiment, based on the average values A, B, C, and D of the white reference values WST of the pixel blocks before and after the pixel of interest, the white reference corresponding to the joint portion of the chip is obtained. The level difference of the value WST is detected, and for the pixels in the level difference portion, the range of the normal value and the correction value are set based on the average value of the white reference values WST of a plurality of pixels after the level difference. Therefore, the image scanner unit 26
Irrespective of the level difference of the output level, it is possible to appropriately determine whether or not the white reference value is normal / abnormal and correct it.

【0056】しかも、この実施形態では、注目画素の近
傍の数画素の白基準値の平均値に基づき、注目画素ごと
に正常値の範囲および補正値を設定するようにしてい
る。すなわち、注目画素の周辺の状況を反映した局所的
な正常値の範囲および補正値が設定される。これによ
り、イメージスキャナユニット26の読み取り範囲内に
おける画素の出力レベルが一様でない場合であっても、
全ての読み取り画素についての白基準値の正常/異常の
判定および補正を適切に行うことができる。その結果、
良好なシェーディング補正が可能になる。
Further, in this embodiment, the range of the normal value and the correction value are set for each pixel of interest based on the average value of the white reference values of several pixels near the pixel of interest. That is, a local normal value range and a correction value reflecting the situation around the target pixel are set. Thereby, even when the output level of the pixel within the reading range of the image scanner unit 26 is not uniform,
It is possible to appropriately determine and correct the normal / abnormal of the white reference value for all the read pixels. as a result,
Good shading correction becomes possible.

【0057】この発明の一実施形態について説明した
が、この発明は他の形態で実施することも可能である。
たとえば、上述の実施形態では、白基準値の補正を行う
ための構成について説明したが、黒基準値についても同
様な正常/異常の判定および補正が行われてもよい。た
だし、黒基準値は、一般に、ランプ25を消灯した状態
で検出されるので、白基準値の場合のようなノイズが生
じる可能性が低いから、黒基準値についての正常/異常
の判定や補正は必ずしも必要ではない。
Although one embodiment of the present invention has been described, the present invention can be embodied in other forms.
For example, in the above-described embodiment, the configuration for correcting the white reference value has been described. However, similar normal / abnormal determination and correction may be performed for the black reference value. However, since the black reference value is generally detected in a state where the lamp 25 is turned off, there is a low possibility of noise as in the case of the white reference value. Is not necessary.

【0058】また、この発明は、ファクシミリ装置に限
らず、イメージスキャナおよびディジタル複写機などに
も適用することが可能である。その他、特許請求の範囲
に記載された技術的事項の範囲で種々の設計変更を施す
ことが可能である。
The present invention can be applied not only to a facsimile apparatus but also to an image scanner and a digital copying machine. In addition, it is possible to make various design changes within the technical scope described in the claims.

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

【図1】この発明の一実施形態が適用されたファクシミ
リ装置の画像処理に関連する構成を示すブロック図であ
る。
FIG. 1 is a block diagram showing a configuration related to image processing of a facsimile apparatus to which an embodiment of the present invention is applied.

【図2】シェーディング補正に関連する構成を示すブロ
ック図である。
FIG. 2 is a block diagram illustrating a configuration related to shading correction.

【図3】白基準値の正常/異常の判定および補正の原理
を説明するための図解図である。
FIG. 3 is an illustrative view for explaining the principle of normal / abnormal judgment and correction of a white reference value;

【図4】チップの結合部において生じる白基準値の段差
の検出原理を説明するための図解図である。
FIG. 4 is an illustrative view for explaining a principle of detecting a step of a white reference value generated in a joint portion of a chip;

【図5】白基準値の正常/異常の判定および補正のため
の処理の流れを説明するためのフローチャートである。
FIG. 5 is a flowchart illustrating a flow of a process for determining whether or not a white reference value is normal / abnormal and for correcting the white reference value.

【図6】密着型イメージスキャナによる白基準値の検出
結果例を示す図である。
FIG. 6 is a diagram illustrating an example of a detection result of a white reference value by a contact image scanner.

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

1 スキャナ 4 シェーディング補正回路 26 密着型イメージスキャナユニット 41 ラインメモリ 42 補正演算部 43 異常判定部 44 正常値範囲設定部 45 白基準値補正部 47 ブロック平均値演算部 48 段差判定部 Reference Signs List 1 scanner 4 shading correction circuit 26 contact image scanner unit 41 line memory 42 correction calculation unit 43 abnormality determination unit 44 normal value range setting unit 45 white reference value correction unit 47 block average value calculation unit 48 step difference determination unit

Claims (6)

【特許請求の範囲】[Claims] 【請求項1】画像を画素ごとに読み取り、各画素の濃度
データを出力する読み取り手段の出力データを、シェー
ディング基準値に基づいて補正するシェーディング補正
装置であって、 上記読み取り手段により濃度基準板を読み取らせたとき
にこの読み取り手段から出力される各画素の濃度データ
をシェーディング基準値として記憶するシェーディング
基準値記憶手段と、 個々の画素を所定の処理方向に沿って順次注目画素と
し、その注目画素の近傍の所定の位置関係の複数の画素
のシェーディング基準値を上記シェーディング基準値記
憶手段から読み出し、この読み出された複数の画素のシ
ェーディング基準値に基づいて、注目画素ごとにシェー
ディング基準値の正常値の範囲を定める正常値範囲設定
手段と、 注目画素のシェーディング基準値が上記正常値範囲設定
手段によって設定された正常値の範囲内の値であれば、
そのシェーディング基準値は正常値であると判定し、注
目画素のシェーディング基準値が上記正常値範囲設定手
段によって設定された正常値の範囲外の値であれば、そ
のシェーディング基準値は異常値であると判定する異常
基準値判定手段と、 注目画素の近傍の所定の位置関係にあり、かつ、上記異
常基準値判定手段による判定処理が終了した処理済みの
画素を含む処理済み画素ブロックの構成画素のシェーデ
ィング基準値の平均値を求める第1ブロック平均値演算
手段と、 注目画素の近傍の所定の位置関係にあり、かつ、上記異
常基準値判定手段による処理が未処理である未処理画素
を含む未処理画素ブロックの構成画素のシェーディング
基準値の平均値を求める第2ブロック平均値演算手段
と、 上記第1および第2ブロック平均値演算手段によってそ
れぞれ求められた平均値に基づいて、注目画素がシェー
ディング基準値の段差部に相当する画素かどうかを判定
する段差判定手段とを含み、 上記正常値範囲設定手段は、上記段差判定手段によっ
て、注目画素が段差部の画素であると判定されたなら
ば、上記第2ブロック平均値演算手段によって演算され
た平均値に基づいて、正常値の範囲を変更する手段を含
むものであることを特徴とするシェーディング補正装
置。
1. A shading correction device for reading an image for each pixel and correcting output data of a reading means for outputting density data of each pixel based on a shading reference value. A shading reference value storage means for storing density data of each pixel outputted from the reading means as a shading reference value when reading is performed, and each pixel is sequentially set as a target pixel along a predetermined processing direction. The shading reference values of a plurality of pixels having a predetermined positional relationship in the vicinity of are read out from the shading reference value storage means, and based on the read out shading reference values of the plurality of pixels, the shading reference value of each pixel of interest is determined to be normal. A normal value range setting means for determining a value range, and a shading base for a pixel of interest. If the value is within the range of normal values set by the normal value range setting means,
It is determined that the shading reference value is a normal value, and if the shading reference value of the pixel of interest is a value outside the normal value set by the normal value range setting means, the shading reference value is an abnormal value. An abnormal reference value judging means for judging, and a constituent pixel of a processed pixel block including a processed pixel having a predetermined positional relationship in the vicinity of the pixel of interest and having undergone the judgment processing by the abnormal reference value judging means. A first block average value calculating means for calculating an average value of the shading reference value; and a non-processed pixel including an unprocessed pixel which is in a predetermined positional relationship near the pixel of interest and has not been processed by the abnormal reference value determining means. A second block average value calculating means for calculating an average value of shading reference values of constituent pixels of the processing pixel block; and the first and second block average value calculations A step determining means for determining whether the pixel of interest is a pixel corresponding to a step portion of the shading reference value, based on the average value obtained by each step, wherein the normal value range setting means is provided by the step determining means If it is determined that the pixel of interest is a pixel of the stepped portion, means for changing the range of normal values based on the average value calculated by the second block average value calculation means is included. Shading correction device.
【請求項2】上記正常値範囲設定手段によって設定され
る正常値の範囲に対応した補正値を求める補正値演算手
段と、 上記異常基準値判定手段によって異常値であると判定さ
れたシェーディング基準値を上記補正値演算手段によっ
て求められた補正値に補正するシェーディング基準値補
正手段とをさらに含み、 上記補正値演算手段は、上記段差判定手段によって、注
目画素が段差部の画素であると判定されたならば、上記
第2ブロック平均値演算手段によって演算された平均値
に基づいて、補正値を変更する手段を含むものであるこ
とを特徴とする請求項1記載のシェーディング補正装
置。
2. A correction value calculating means for obtaining a correction value corresponding to a normal value range set by the normal value range setting means; and a shading reference value determined to be an abnormal value by the abnormal reference value determining means. And a shading reference value correcting unit that corrects the correction value to the correction value obtained by the correction value calculating unit. The correction value calculating unit determines that the target pixel is a pixel of the step unit by the step determining unit. 2. The shading correction device according to claim 1, further comprising means for changing a correction value based on the average value calculated by said second block average value calculation means.
【請求項3】上記第1ブロック平均値演算手段は、上記
異常基準値判定手段によって正常値であると判定された
シェーディング基準値のみを用いて平均値演算を行うも
のであり、 上記正常値範囲設定手段は、上記第1ブロック平均値演
算手段によって演算された平均値に基づいて上記正常値
の範囲を定めるものであることを特徴とする請求項1ま
たは2記載のシェーディング補正装置。
3. The first block average value calculation means performs an average value calculation using only the shading reference value determined to be a normal value by the abnormal reference value determination means. 3. The shading correction device according to claim 1, wherein the setting means determines the range of the normal value based on the average value calculated by the first block average value calculation means.
【請求項4】画像を画素ごとに読み取り、各画素の濃度
データを出力する読み取り手段の出力データを、シェー
ディング基準値に基づいて補正するシェーディング補正
方法であって、 上記読み取り手段により濃度基準板を読み取らせたとき
にこの読み取り手段から出力される各画素の濃度データ
をシェーディング基準値として取得するステップと、 個々の画素を所定の処理方向に沿って順次注目画素と
し、その注目画素の近傍の所定の位置関係の複数の画素
の上記取得されたシェーディング基準値に基づいて、注
目画素ごとにシェーディング基準値の正常値の範囲を定
める正常値範囲設定ステップと、 注目画素のシェーディング基準値が上記設定された正常
値の範囲内の値であれば、そのシェーディング基準値は
正常値であると判定し、注目画素のシェーディング基準
値が上記正常値範囲設定ステップによって設定された正
常値の範囲外の値であれば、そのシェーディング基準値
は異常値であると判定する異常基準値判定ステップと、 注目画素の近傍の所定の位置関係にあり、かつ、上記異
常基準値判定ステップによる判定処理が終了した処理済
みの画素を含む処理済み画素ブロックの構成画素のシェ
ーディング基準値の平均値を求める第1ブロック平均値
演算ステップと、 注目画素の近傍の所定の位置関係にあり、かつ、上記異
常基準値判定ステップによる処理が未処理である未処理
画素を含む未処理画素ブロックの構成画素のシェーディ
ング基準値の平均値を求める第2ブロック平均値演算ス
テップと、 上記第1および第2ブロック平均値演算ステップによっ
てそれぞれ求められた平均値に基づいて、注目画素がシ
ェーディング基準値の段差部に相当する画素かどうかを
判定する段差判定ステップとを含み、 上記正常値範囲設定ステップは、上記段差判定ステップ
によって、注目画素が段差部の画素であると判定された
ならば、上記第2ブロック平均値演算ステップによって
演算された平均値に基づいて、正常値の範囲を変更する
ステップを含むことを特徴とするシェーディング補正方
法。
4. A shading correction method for reading an image for each pixel and correcting output data of a reading means for outputting density data of each pixel based on a shading reference value. Acquiring the density data of each pixel output from the reading unit as a shading reference value when reading the image data; and sequentially setting each pixel as a target pixel along a predetermined processing direction, and setting a predetermined pixel in the vicinity of the target pixel. A normal value range setting step of determining a normal value range of a shading reference value for each pixel of interest based on the obtained shading reference values of a plurality of pixels having a positional relationship of: If the value is within the range of the normal value, the shading reference value is determined to be a normal value, and If the shading reference value of the pixel is outside the normal value range set in the normal value range setting step, an abnormal reference value determining step of determining that the shading reference value is an abnormal value; A first block average value calculation for obtaining an average value of shading reference values of constituent pixels of a processed pixel block including a processed pixel having a predetermined positional relationship and having undergone the determination processing in the abnormal reference value determination step The average value of the shading reference values of the constituent pixels of the unprocessed pixel block including the unprocessed pixels that have a predetermined positional relationship in the vicinity of the target pixel and that have not been processed by the abnormal reference value determination step are calculated. The second block average value calculating step, and the first and second block average value calculating steps. A step of determining whether the pixel of interest is a pixel corresponding to a step portion of the shading reference value, based on the average value obtained, the normal value range setting step includes: A shading correction method characterized by including a step of changing a range of a normal value based on the average value calculated in the second block average value calculation step if the pixel is determined to be a pixel in the step portion.
【請求項5】上記正常値範囲設定ステップによって設定
される正常値の範囲に対応した補正値を求める補正値演
算ステップと、 上記異常基準値判定ステップによって異常値であると判
定されたシェーディング基準値を上記補正値演算ステッ
プよって求められた補正値に補正するシェーディング基
準値補正ステップとをさらに含み、 上記補正値演算ステップは、上記段差判定ステップによ
って、注目画素が段差部の画素であると判定されたなら
ば、上記第2ブロック平均値演算ステップによって演算
された平均値に基づいて、補正値を変更するステップを
含むことを特徴とする請求項4記載のシェーディング補
正方法。
5. A correction value calculating step for obtaining a correction value corresponding to a normal value range set by the normal value range setting step; and a shading reference value determined to be an abnormal value by the abnormal reference value determining step. And a shading reference value correction step of correcting the correction value to the correction value obtained by the correction value calculation step. In the correction value calculation step, the target pixel is determined to be a pixel of the step portion by the step determination step. The method according to claim 4, further comprising the step of changing a correction value based on the average value calculated in the second block average value calculation step.
【請求項6】上記第1ブロック平均値演算ステップは、
上記異常基準値判定ステップによって正常値であると判
定されたシェーディング基準値のみを用いて平均値演算
を行うステップを含み、 上記正常値範囲設定ステップは、上記第1ブロック平均
値演算ステップによって演算された平均値に基づいて上
記正常値の範囲を定めるステップを含むことを特徴とす
る請求項4または5記載のシェーディング補正方法。
6. The first block average value calculating step,
A step of performing an average value calculation using only the shading reference value determined to be a normal value by the abnormal reference value determination step, wherein the normal value range setting step is calculated by the first block average value calculation step. 6. The shading correction method according to claim 4, further comprising the step of determining the range of the normal value based on the average value obtained.
JP01451498A 1998-01-27 1998-01-27 Shading correction device and shading correction method Expired - Fee Related JP3589847B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP01451498A JP3589847B2 (en) 1998-01-27 1998-01-27 Shading correction device and shading correction method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP01451498A JP3589847B2 (en) 1998-01-27 1998-01-27 Shading correction device and shading correction method

Publications (2)

Publication Number Publication Date
JPH11215371A true JPH11215371A (en) 1999-08-06
JP3589847B2 JP3589847B2 (en) 2004-11-17

Family

ID=11863206

Family Applications (1)

Application Number Title Priority Date Filing Date
JP01451498A Expired - Fee Related JP3589847B2 (en) 1998-01-27 1998-01-27 Shading correction device and shading correction method

Country Status (1)

Country Link
JP (1) JP3589847B2 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009152920A (en) * 2007-12-21 2009-07-09 Murata Mach Ltd Image reader
JP2011039972A (en) * 2009-08-18 2011-02-24 Fuji Xerox Co Ltd Image processor and image processing program

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009152920A (en) * 2007-12-21 2009-07-09 Murata Mach Ltd Image reader
JP2011039972A (en) * 2009-08-18 2011-02-24 Fuji Xerox Co Ltd Image processor and image processing program

Also Published As

Publication number Publication date
JP3589847B2 (en) 2004-11-17

Similar Documents

Publication Publication Date Title
JP2683014B2 (en) Image processing method and apparatus
JP3222183B2 (en) Image processing device
JP3754870B2 (en) Image reading apparatus, shading correction method, and storage medium
JPS62172867A (en) Picture processor
JP2003101737A (en) Image-processing apparatus and image-reading apparatus
JP4940025B2 (en) Image reading apparatus and shading correction method in image reading apparatus
JP3589847B2 (en) Shading correction device and shading correction method
JP2008099129A (en) Image reading apparatus
JPH07212592A (en) Image processing method
JP4408771B2 (en) Image reading device
JPH10294870A (en) Image processing unit
JP2001086333A (en) Image reader and image processor provided with the image reader
JP2005094214A (en) Image scanner, and shading correction method thereof
JP3711755B2 (en) Image reading apparatus and image reading method
JPH08272952A (en) Image processor
JPH11215372A (en) Shading correction device and shading correction method
US6842267B1 (en) Image processing method
JP3480887B2 (en) Image processing apparatus and image processing method
JP3124168B2 (en) Shading correction device
JPH11275358A (en) Device and method for processing picture
JP3725255B2 (en) Digital image processing device
JPH11289456A (en) Image processor
JP2002290727A (en) Image processing method, its apparatus, its storage medium, and its program
JPH11215373A (en) Shading correction device and shading correction method
JP3368966B2 (en) Shading correction device and shading correction method

Legal Events

Date Code Title Description
A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20031216

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20031224

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20040219

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20040818

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

Year of fee payment: 3

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

Free format text: PAYMENT UNTIL: 20080827

Year of fee payment: 4

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

Free format text: PAYMENT UNTIL: 20080827

Year of fee payment: 4

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

Free format text: PAYMENT UNTIL: 20090827

Year of fee payment: 5

LAPS Cancellation because of no payment of annual fees