JP2014192636A - Image processing device - Google Patents
Image processing device Download PDFInfo
- Publication number
- JP2014192636A JP2014192636A JP2013065223A JP2013065223A JP2014192636A JP 2014192636 A JP2014192636 A JP 2014192636A JP 2013065223 A JP2013065223 A JP 2013065223A JP 2013065223 A JP2013065223 A JP 2013065223A JP 2014192636 A JP2014192636 A JP 2014192636A
- Authority
- JP
- Japan
- Prior art keywords
- streak
- range
- correction
- pixel
- value
- 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
Links
- 238000001514 detection method Methods 0.000 claims abstract description 23
- 239000011521 glass Substances 0.000 claims description 19
- 230000006866 deterioration Effects 0.000 abstract description 4
- 238000000034 method Methods 0.000 description 15
- 238000010586 diagram Methods 0.000 description 12
- 239000000428 dust Substances 0.000 description 5
- 230000015556 catabolic process Effects 0.000 description 2
- 238000006731 degradation reaction Methods 0.000 description 2
- 238000003384 imaging method Methods 0.000 description 2
- 230000006870 function Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000002093 peripheral effect Effects 0.000 description 1
- 230000003252 repetitive effect Effects 0.000 description 1
Images
Abstract
Description
本発明は、画像処理装置に関するものである。 The present invention relates to an image processing apparatus.
例えば原稿自動送り装置を有する画像読取装置において、コンタクトガラスなどにゴミが付着すると、原稿へ入射すべき光がそのゴミによって遮られるため、原稿に関係なく、画像読取装置から出力される原稿画像に黒スジなどのスジが発生する。 For example, in an image reading apparatus having an automatic document feeder, if dust adheres to contact glass or the like, the light to be incident on the document is blocked by the dust, so that the document image output from the image reading apparatus is not related to the document. Black streaks and other streaks occur.
ある画像処理装置では、このような黒スジの周辺画素の値で黒スジ内の画素値を補間して、画像内の黒スジを除去している(例えば特許文献1,2参照)。
In a certain image processing apparatus, the pixel value in the black stripe is interpolated with the values of the peripheral pixels of such a black stripe to remove the black stripe in the image (see, for example,
上述のように補間によって黒スジを除去すると、黒スジの幅が広くなるほど、黒スジのあった箇所の画質が低下する可能性が高くなる。例えば、原稿画像が網点のような反復的な画像である場合、黒スジの幅が広くなると、黒スジのあった箇所で網点の規則性が失われるため、黒スジは除去されるものの画質が低くなり、目立ちやすくなってしまう。 When the black streak is removed by interpolation as described above, as the black streak becomes wider, there is a higher possibility that the image quality of the portion where the black streak has deteriorated. For example, when the original image is a repetitive image such as a halftone dot, if the width of the black stripe becomes wide, the regularity of the halftone dot is lost at the location where the black stripe is present, so the black stripe is removed. The image quality will be low and will be noticeable.
したがって、黒スジ除去のための補間処理は、黒スジの箇所以外では行わないほうが好ましい。しかしながら、上述の画像処理装置では、黒スジを一旦検出すると、その黒スジの箇所に対して継続的に補間処理を行うため、付着していたゴミがなくなり黒スジが途中からなくなっても継続的に補間処理が行われ、黒スジの箇所以外でも補間処理が行われ、画質低下を招いてしまう可能性がある。 Therefore, it is preferable not to perform the interpolation process for black stripe removal except at the black stripe portion. However, in the above-described image processing apparatus, once a black streak is detected, interpolation processing is continuously performed on the black streak portion. Therefore, even if the adhering dust disappears and the black streak disappears from the middle, it continues. There is a possibility that the interpolation process is performed at other points and the interpolation process is performed at a portion other than the black streak portion, and the image quality is deteriorated.
本発明は、上記の問題に鑑みてなされたものであり、スジ除去に起因する画質低下を軽減する画像処理装置を得ることを目的とする。 The present invention has been made in view of the above problems, and an object of the present invention is to obtain an image processing apparatus that reduces image quality degradation caused by streak removal.
本発明に係る画像処理装置は、原稿画像内で副走査方向に延びるスジを検出し前記スジの主走査方向におけるスジ範囲を特定するスジ検出部と、前記原稿画像内の前記スジを除去するために副走査方向に沿って前記スジ範囲内の画素値を修正する修正処理部と、前記スジ範囲内の画素の値に基づき前記スジの終端を検出し、前記スジの終端を検出したときに、前記修正処理部による前記スジ範囲内の画素値の修正を中止させる修正中止判定部とを備える。 An image processing apparatus according to the present invention detects a streak extending in a sub-scanning direction in a document image and specifies a streak range in the main scanning direction of the streak, and removes the streak in the document image. A correction processing unit for correcting a pixel value in the streak range along the sub-scanning direction, and detecting the end of the streak based on the value of the pixel in the streak range, and detecting the end of the streak, A correction cancellation determination unit that cancels correction of the pixel values within the stripe range by the correction processing unit.
本発明によれば、スジ除去に起因する画質低下を軽減する画像処理装置が得られる。 According to the present invention, it is possible to obtain an image processing apparatus that reduces the deterioration in image quality caused by streak removal.
以下、図に基づいて本発明の実施の形態を説明する。 Hereinafter, embodiments of the present invention will be described with reference to the drawings.
実施の形態1.
図1は、本発明の実施の形態に係る画像処理装置の内部構成を示す側面図である。図1に示す画像処理装置は、スキャナー機、コピー機、ファクシミリ機、複合機などといった装置である。 FIG. 1 is a side view showing an internal configuration of an image processing apparatus according to an embodiment of the present invention. The image processing apparatus shown in FIG. 1 is an apparatus such as a scanner, a copier, a facsimile machine, or a multifunction machine.
図1に示す画像処理装置は、コンタクトガラス1a,1b、キャリッジ2,3、結像レンズ4、イメージセンサー5、白基準パッチ6、および原稿カバー7を有する。
The image processing apparatus shown in FIG. 1 includes
コンタクトガラス1aは、当該画像処理装置本体の上面に設置され、原稿カバー7の原稿自動送り装置(ADF:Auto Document Feeder)を使用せずに画像読取を行う場合に原稿を載置される。
The contact glass 1 a is installed on the upper surface of the image processing apparatus main body, and is used to place an original when reading an image without using an automatic document feeder (ADF) of the
また、コンタクトガラス1bは、当該画像処理装置本体の上面に設置され、原稿カバー7のADFで原稿を自動的に搬送しつつ画像読取を行う際に、原稿がその上を通過する。
Further, the
上述のADFは、コンタクトガラス1b上を通過するように原稿を通過させ、画像読取部21が、コンタクトガラス1b上を通過する原稿の画像を読み取る。
The ADF described above passes the document so as to pass over the
画像読取部21において、キャリッジ2は、図示せぬ駆動源によって副走査方向に移動可能に設置されている。キャリッジ2は、光源11とミラー12とを有する。光源11は、主走査方向に沿って配置され、例えば配列された複数の発光ダイオードで光を出射する。光源11から出射された光は、キャリッジ2の位置に応じて、コンタクトガラス1a上に載置された原稿、コンタクトガラス1b上を通過する原稿などで反射する。ミラー12は、原稿などからの反射光を反射する。原稿カバー7のADFを使用して原稿の画像読取を行う場合、キャリッジ2は、コンタクトガラス1bの下に固定的に配置される。
In the
また、キャリッジ3は、図示せぬ駆動源によってキャリッジ2とともに副走査方向に移動可能に設置されている。キャリッジ3は、ミラー13,14を有する。ミラー13,14は、キャリッジ2のミラー12からの光を反射して副走査方向に沿って出射する。
The
結像レンズ4は、ミラー14からの光をイメージセンサー5に結像させる。イメージセンサー5は、主走査方向に配列された所定の画素数の受光素子を有する一次元イメージセンサーであり、ラインごとに、その画素数の画素についての受光量に対応する電気信号を出力する。イメージセンサー5としては、例えば、CCD(Charge Coupled Device)が使用される。
The
白基準パッチ6は、装置内部の天面に配置され、白色の基準データを取得するために使用される板状の部材である。
The
原稿カバー7は、コンタクトガラス1aに面接触可能で回動自在に設置されている部材であって、原稿をコンタクトガラス1aに密着させるとともに、画像読取時に環境光がコンタクトガラス1から装置内部へ入射することを防ぐ。また、原稿カバー7は、ADFを有しており、原稿トレイ7aに載置された原稿を1枚ずつ搬送ローラー7bによって搬送し、コンタクトガラス1b上を通過させる。
The
図2は、本発明の実施の形態に係る画像処理装置の電気的な構成を示すブロック図である。 FIG. 2 is a block diagram showing an electrical configuration of the image processing apparatus according to the embodiment of the present invention.
図2に示すように、画像読取部21により得られる原稿画像の画像データがスジ修正部22に供給される。
As shown in FIG. 2, the image data of the original image obtained by the
スジ修正部22は、スジ検出部31、修正処理部32、修正中止判定部33、および記憶部34を有する。なお、スジ修正部22は、ASIC(Application Specific Integrated Circuit)などでハードウェアとして実現してもよいし、コンピューターでプログラムを実行することで、ソフトウェアとして実現してもよい。
The
スジ検出部31は、原稿画像内で副走査方向に延びるスジを検出しそのスジの主走査方向におけるスジ範囲を特定する。
The
図3は、図2におけるスジ検出部31によるスジ検出について説明する図である。
FIG. 3 is a diagram for explaining the streak detection by the
例えば、スジ検出部31は、原稿画像内の所定の複数のラインL1〜LNで、画素値が所定の閾値以下である範囲を特定し、その範囲のうち、それらのラインL1〜LNに共通する部分を、スジ範囲として検出する。
For example, the
また、スジ検出部31は、検出した1または複数のスジごとに、主走査方向におけるスジ範囲を指定するスジ範囲データを生成する。例えば、スジ範囲データは、主走査方向におけるスジ範囲の開始位置の画素位置PS、およびスジ範囲の幅Wを有する。
In addition, the
なお、スジ検出部31は、RGBの色プレーンのそれぞれに対して、スジの検出を行うようにしてもよいし、スジ検出部31は、各画素のRGB値から輝度値を特定し、その輝度値を画素値として、スジの検出を行うようにしてもよい。
The
修正処理部32は、原稿画像内のスジを除去するために副走査方向に沿ってスジ範囲内の画素値を修正する。例えば、修正処理部32は、スジ範囲周辺の画素値に基づく補間によって得られる画素値へスジ範囲内の画素値を変更する。
The
修正処理部32は、原稿画像の1ラインを順番に注目ラインとして選択し、その注目ライン内において、スジ範囲データにより指定される1または複数のスジ範囲内の画素値を修正する。
The
なお、スジの検出がRGBの色プレーンのそれぞれに対して行われる場合、修正処理部32は、RGBのそれぞれの色プレーンごとに、原稿画像内のスジを除去するために副走査方向に沿ってスジ範囲内の画素値を修正する。
When the streak detection is performed for each of the RGB color planes, the
修正中止判定部33は、スジ範囲内の画素の値に基づき、副走査方向におけるスジの終端を検出し、スジの終端を検出したときに、修正処理部32によるスジ範囲内の画素値の修正を中止させる。つまり、副走査方向における、修正中止判定部33が中止させた位置以降の、スジ範囲内の画素については、画素値の修正が行われない。
The correction
実施の形態1では、修正中止判定部33は、(a)副走査方向に沿って、スジ範囲内の画素位置ごとに、画素位置の画素値が、スジと判定される値であるか否かを判定し、(b)副走査方向に沿って、画素位置ごとに、スジと判定される値ではないと判定された画素をカウントしていき、(c)スジ範囲内のすべての画素位置についてのカウントされた画素の数が所定の閾値以上になったときに、修正処理部32によるそのスジ範囲内の画素値の修正を中止させる。
In the first embodiment, the correction
なお、「スジと判定される値」とは、スジ検出部31によって検出されるスジの色値である。以下、「スジと判定される値」の色のことを、スジ色という。例えば、スジ検出部31が、原稿画像内の所定の複数のラインL1〜LNで、画素値が所定の閾値以下である範囲を特定し、その範囲のうち、それらのラインL1〜LNに共通する部分を、スジ範囲として検出する場合、「スジと判定される値」は、その所定の閾値以下の値となる。
The “value determined as a streak” is a color value of a streak detected by the
修正処理部32がRGBのそれぞれの色プレーンごとに原稿画像内のスジを除去するために副走査方向に沿ってスジ範囲内の画素値を修正する場合、修正中止判定部33は、色プレーンごとに、スジ範囲内の画素の値に基づきスジの終端を検出し、すべての色プレーンにおいてスジの終端を検出したときに、修正処理部32によるスジ範囲内の画素値の修正をすべての色プレーンについて中止させる。
When the
なお、修正処理部32がRGBのそれぞれの色プレーンごとに原稿画像内のスジを除去するために副走査方向に沿ってスジ範囲内の画素値を修正する場合、修正中止判定部33は、色プレーンごとに、スジ範囲内の画素の値に基づきスジの終端を検出し、いずれか1つの色プレーンにおいてスジの終端を検出したときに、修正処理部32によるスジ範囲内の画素値の修正をすべての色プレーンについて中止させるようにしてもよい。
When the
記憶部34は、上述のスジ範囲データを保持するメモリーなどの記憶装置である。スジ検出部31は、1または複数のスジ範囲を指定するスジ範囲データを記憶部34に書き込む。修正処理部32は、記憶部34に記憶されているスジ範囲データをラインごとに読み出してスジ範囲を特定し、そのスジ範囲に対して上述の修正処理を行う。修正中止判定部33は、記憶部34に記憶されているスジ範囲データを読み出してスジ範囲を特定し、そのスジ範囲に対して上述のように修正処理を中止するか否かを判定する。
The
なお、スジ検出部31が第1ページの原稿画像でスジを検出し、第2ページ以降の原稿画像に対して、修正処理部32による修正処理および修正中止判定部33による判定を行うようにしてもよいし、スジ検出部31が第1ページの原稿画像の所定部分でスジを検出し、その所定部分より後の原稿画像に対して、修正処理部32による修正処理および修正中止判定部33による判定を行うようにしてもよい。
The
次に、実施の形態1に係る画像処理装置の動作について説明する。 Next, the operation of the image processing apparatus according to the first embodiment will be described.
図4は、実施の形態1における修正中止判定部33の動作を説明するフローチャートである。
FIG. 4 is a flowchart for explaining the operation of the correction
コンタクトガラス1bにゴミなどが付着し原稿画像内にスジが発生すると、そのスジがスジ検出部31により検出され、スジ範囲内の画素値が修正処理部32による修正される。
When dust or the like adheres to the
修正処理部32による修正処理が開始されると、修正中止判定部33は、まず、スジ範囲データを記憶部34から取得し(ステップS1)、1または複数のスジ範囲を特定し、各スジ範囲(つまり、各スジ)に対して、以下の処理を行う。
When the correction processing by the
まず、修正中止判定部33は、1つのスジ範囲内の各画素位置に対応するカウンターデータに、初期値0にセットする。
First, the correction
修正中止判定部33は、修正処理が開始されたラインを注目ラインとして、スジ範囲内の各画素位置の画素が、スジ色であるか否かを判定する(ステップS2)。
The correction
修正中止判定部33は、スジ色であると判定されなかった画素位置(つまり、スジ色ではない画素の画素位置)に対応するカウンターデータの値を1だけ増加する(ステップS3)。
The correction
そして、修正中止判定部33は、スジ範囲内の画素位置に対応するカウンターデータの値がすべて所定の中止閾値(例えば4)以上であるか否かを判定する(ステップS4)。
Then, the correction
スジ範囲内の画素位置に対応するカウンターデータの値のうちの少なくとも1つが所定の中止閾値未満である場合、修正中止判定部33は、次のラインを注目ラインとし(ステップS5)、ステップS2〜S4の処理を実行する。
When at least one of the values of the counter data corresponding to the pixel position within the streak range is less than the predetermined stop threshold, the correction
一方、スジ範囲内の画素位置に対応するカウンターデータの値がすべて所定の中止閾値以上である場合、修正中止判定部33は、スジが終わったと判定し、修正処理部32によるそのスジに対する修正処理を中止させる(ステップS6)。具体的には、修正中止判定部33は、そのスジについてのスジ範囲データを記憶部34から削除する。これにより、修正処理部32は、そのスジについての修正処理を行わなくなる。
On the other hand, when the values of the counter data corresponding to the pixel positions in the streak range are all equal to or greater than the predetermined stop threshold, the correction
図5は、実施の形態1における修正中止判定部33による修正中止の一例を説明する図である。なお、図中のハッチの画素は、スジ色の画素であり、白ヌキの画素は、スジ色ではない画素であり、白ヌキの画素内の数字は、上述のカウンターデータのカウント値である。
FIG. 5 is a diagram illustrating an example of correction cancellation by the correction
図5に示す例では、中止閾値が4にセットされており、ラインY20で、画素位置X4に対応するカウンターデータの値が4となり、すべての画素位置X1〜X6に対応するカウンターデータの値が4以上となっているため、修正中止判定部33は、ラインY21以降について、修正処理部32による修正処理を中止させる。なお、図5に示すライン16、Y17のように、原稿画像内に罫線が存在していても、スジの終端を適切に検出することができる。
In the example shown in FIG. 5, the stop threshold is set to 4, the value of the counter data corresponding to the pixel position X4 is 4 on the line Y20, and the values of the counter data corresponding to all the pixel positions X1 to X6 are Since it is 4 or more, the correction
図6は、実施の形態1における修正中止判定部33による修正中止の別の例を説明する図である。なお、図中のハッチの画素は、スジ色の画素であり、白ヌキの画素は、スジ色ではない画素である。図5に示す例では、スジ範囲の両端からスジがなくなっていっているが、図6に示す例では、スジ範囲の中央からスジがなくなっていっている。図6に示す例では、中止閾値が4にセットされており、修正中止判定部33は、ラインY19で、画素位置X1に対応するカウンターデータの値が4となり、すべての画素位置X1〜X6に対応するカウンターデータの値が4以上となるため、修正中止判定部33は、ラインY20以降について、修正処理部32による修正処理を中止させる。
FIG. 6 is a diagram for explaining another example of correction cancellation by the correction
以上のように、上記実施の形態1によれば、スジ検出部31は、原稿画像内で副走査方向に延びるスジを検出しスジの主走査方向におけるスジ範囲を特定し、修正処理部32は、原稿画像内のスジを除去するために副走査方向に沿ってスジ範囲内の画素値を修正する。そして、修正中止判定部33は、スジ範囲内の画素の値に基づきスジの終端を検出し、スジの終端を検出したときに、修正処理部32によるスジ範囲内の画素値の修正を中止させる。
As described above, according to the first embodiment, the
これにより、例えばコンタクトガラス1b上のゴミがなくなり、スジが終わると、スジ除去が中止されるため、スジ除去に起因する画質低下が軽減される。
Thereby, for example, when there is no dust on the
実施の形態2.
実施の形態1では、スジ範囲の全域の修正処理を中止させているが、実施の形態2では、スジ範囲内の1画素位置ずつ修正処理を中止させる。 In the first embodiment, the correction process for the entire stripe range is stopped. In the second embodiment, the correction process is stopped for each pixel position in the stripe range.
実施の形態2に係る画像処理装置の基本的な構成および動作は、実施の形態1の場合と同様であるが、修正中止判定部33は、以下のように動作する。
The basic configuration and operation of the image processing apparatus according to the second embodiment are the same as those in the first embodiment, but the correction
実施の形態2では、修正中止判定部33は、(a)副走査方向に沿って、スジ範囲内の画素位置ごとに、画素位置の画素値が、スジと判定される値であるか否かを判定し、(b)副走査方向に沿って、画素位置ごとに、スジと判定される値ではないと判定された画素をカウントしていき、(c)カウントされた画素の数が所定の閾値以上になった画素位置における、修正処理部32による画素値の修正を中止させる。
In the second embodiment, the correction
また、実施の形態2では、修正中止判定部33は、カウントされた画素の数(つまり、カウンターデータの値)が所定の閾値以上になった画素位置における、修正処理部32による画素値の修正を中止させた場合、元の1つのスジが複数のスジに分かれたときには、スジ範囲データを、その複数のスジのスジ範囲を指定するように変更する。
In the second embodiment, the correction
次に、実施の形態2に係る画像処理装置の動作について説明する。 Next, the operation of the image processing apparatus according to the second embodiment will be described.
図7は、実施の形態2における修正中止判定部33の動作を説明するフローチャートである。
FIG. 7 is a flowchart for explaining the operation of the correction
修正処理部32による修正処理が開始されると、修正中止判定部33は、まず、スジ範囲データを記憶部34から取得し(ステップS21)、1または複数のスジ範囲を特定し、各スジ範囲(つまり、各スジ)に対して、以下の処理を行う。
When the correction process by the
まず、修正中止判定部33は、1つのスジ範囲内の各画素位置に対応するカウンターデータに、初期値0にセットする。
First, the correction
修正中止判定部33は、修正処理が開始されたラインを注目ラインとして、スジ範囲内の各画素位置の画素が、スジ色であるか否かを判定する(ステップS22)。
The correction
修正中止判定部33は、スジ色であると判定されなかった画素位置(つまり、スジ色ではない画素の画素位置)に対応するカウンターデータの値を1だけ増加する(ステップS23)。
The correction
そして、修正中止判定部33は、カウンターデータの値が所定の中止閾値(例えば4)以上であるスジ範囲内の画素位置があるか否かを判定する(ステップS24)。
Then, the correction
カウンターデータの値が所定の中止閾値以上である画素位置がスジ範囲内にない場合、修正中止判定部33は、次のラインを注目ラインとし(ステップS25)、ステップS22以降の処理を実行する。
When the pixel position where the value of the counter data is equal to or greater than the predetermined stop threshold is not within the streak range, the correction
一方、カウンターデータの値が所定の中止閾値以上であるスジ範囲内の画素位置がある場合、修正中止判定部33は、スジ範囲データを更新する(ステップS26)。
On the other hand, when there is a pixel position in the streak range where the value of the counter data is equal to or greater than the predetermined stop threshold, the correction
例えば、スジ範囲の開始位置の画素位置についてのカウンターデータの値が所定の中止閾値以上となった場合、修正中止判定部33は、スジ範囲データ内の、そのスジ範囲の開始位置PSを1画素ずらすとともに、スジ範囲の幅Wを1画素小さくする。
For example, when the value of the counter data regarding the pixel position at the start position of the streak range is equal to or greater than a predetermined stop threshold, the correction
また、例えば、スジ範囲の終了位置の画素位置についてのカウンターデータの値が所定の中止閾値以上となった場合、修正中止判定部33は、スジ範囲データ内の、そのスジ範囲の幅Wを1画素小さくする。
For example, when the value of the counter data for the pixel position at the end position of the streak range is equal to or greater than a predetermined stop threshold value, the correction
また、例えば、スジ範囲の中央の画素位置についてのカウンターデータの値が所定の中止閾値以上となった場合、修正中止判定部33は、スジ範囲データ内の、そのスジ範囲の幅Wを、開始位置からその画素位置の(開始位置側の)隣りの画素位置までの画素数に変更し、さらに、元のスジから分かれて発生したスジについてのスジ範囲の開始位置PS(その画素位置の、終了位置側の隣りの画素位置)および幅Wをスジ範囲データに追加する。なお、追加されたスジ範囲についても1つのスジ範囲として同様に処理される。
Further, for example, when the value of the counter data for the pixel position at the center of the streak range becomes equal to or greater than a predetermined stop threshold, the correction
このようにして、カウンターデータの値が中止閾値以上である画素位置はスジ範囲から除外されていき、修正処理が行われないようになる。 In this way, pixel positions whose counter data value is equal to or greater than the stop threshold are excluded from the streak range, and correction processing is not performed.
そして、修正中止判定部33は、スジ範囲データ更新後のスジ範囲の幅Wがゼロであるか否かを判定し(ステップS27)、スジ範囲データ更新後のスジ範囲の幅Wがゼロである場合、そのスジが終わったと判定し、そのスジ範囲のスジ範囲データを削除する。
Then, the correction
一方、スジ範囲データ更新後のスジ範囲の幅Wがゼロではない場合、修正中止判定部33は、次のラインを注目ラインとし(ステップS25)、ステップS22以降の処理を実行する。
On the other hand, when the width W of the streak range after the streak range data is updated is not zero, the correction
図8は、実施の形態2における修正中止判定部33による修正中止の一例を説明する図である。なお、図中のハッチの画素は、スジ色の画素であり、白ヌキの画素は、スジ色ではない画素であり、白ヌキの画素内の数字は、上述のカウンターデータのカウント値である。図8に示す例では、中止閾値が4にセットされている。図8に示す例では、初期状態では、スジ範囲の開始位置PSがX1であり、幅Wが6(6画素)である。
FIG. 8 is a diagram for explaining an example of correction cancellation by the correction
そして、ラインY12において、画素位置X6のカウンターデータの値が4になると、スジ範囲の幅Wが5へ変更される。つまり、この時点での修正対象となるスジ範囲は、画素位置X1から画素位置X5までとなる。 Then, when the value of the counter data at the pixel position X6 becomes 4 in the line Y12, the width W of the stripe range is changed to 5. That is, the streak range to be corrected at this time is from the pixel position X1 to the pixel position X5.
次に、ラインY13において、画素位置X1のカウンターデータの値が4になると、スジ範囲の開始位置PSがX2に変更され幅Wが4へ変更される。つまり、この時点での修正対象となるスジ範囲は、画素位置X2から画素位置X5までとなる。 Next, on the line Y13, when the value of the counter data at the pixel position X1 becomes 4, the start position PS of the stripe range is changed to X2, and the width W is changed to 4. That is, the streak range to be corrected at this time is from the pixel position X2 to the pixel position X5.
その後、ラインY15において、画素位置X2のカウンターデータの値が4になると、スジ範囲の開始位置PSがX3に変更され幅Wが3へ変更される。つまり、この時点での修正対象となるスジ範囲は、画素位置X3から画素位置X5までとなる。 Thereafter, when the value of the counter data at the pixel position X2 becomes 4 in the line Y15, the start position PS of the streak range is changed to X3 and the width W is changed to 3. That is, the streak range to be corrected at this time is from the pixel position X3 to the pixel position X5.
その後、ラインY17において、画素位置X5のカウンターデータの値が4になると、スジ範囲の幅Wが2へ変更される。つまり、この時点での修正対象となるスジ範囲は、画素位置X3から画素位置X4までとなる。 Thereafter, when the value of the counter data at the pixel position X5 becomes 4 in the line Y17, the width W of the stripe range is changed to 2. That is, the streak range to be corrected at this time is from the pixel position X3 to the pixel position X4.
その後、ラインY18において、画素位置X3のカウンターデータの値が4になると、スジ範囲の開始位置PSがX4に変更され幅Wが1へ変更される。つまり、この時点での修正対象となるスジ範囲は、画素位置X4のみとなる。 Thereafter, when the value of the counter data at the pixel position X3 becomes 4 on the line Y18, the start position PS of the streak range is changed to X4 and the width W is changed to 1. That is, the streak range to be corrected at this time is only the pixel position X4.
その後、ラインY20において、画素位置X4のカウンターデータの値が4になると、スジ範囲の幅Wが0となり、このスジについての修正処理が完全に中止される。 Thereafter, when the value of the counter data at the pixel position X4 becomes 4 in the line Y20, the width W of the streak area becomes 0, and the correction process for this streak is completely stopped.
図9は、実施の形態2における修正中止判定部33による修正中止の別の例を説明する図である。なお、図中のハッチの画素は、スジ色の画素であり、白ヌキの画素は、スジ色ではない画素であり、白ヌキの画素内の数字は、上述のカウンターデータのカウント値である。図9に示す例では、中止閾値が4にセットされている。図9に示す例では、初期状態では、スジ範囲の開始位置PSがX1であり、幅Wが6(6画素)である。
FIG. 9 is a diagram for explaining another example of correction cancellation by the correction
そして、ラインY12において、画素位置X6のカウンターデータの値が4になると、スジ範囲の幅Wが5へ変更される。つまり、この時点での修正対象となるスジ範囲は、画素位置X1から画素位置X5までとなる。 Then, when the value of the counter data at the pixel position X6 becomes 4 in the line Y12, the width W of the stripe range is changed to 5. That is, the streak range to be corrected at this time is from the pixel position X1 to the pixel position X5.
次に、ラインY14において、画素位置X1のカウンターデータの値が4になると、スジ範囲の開始位置PSがX2に変更され幅Wが4へ変更される。つまり、この時点での修正対象となるスジ範囲は、画素位置X2から画素位置X5までとなる。 Next, on the line Y14, when the value of the counter data at the pixel position X1 becomes 4, the start position PS of the streak range is changed to X2, and the width W is changed to 4. That is, the streak range to be corrected at this time is from the pixel position X2 to the pixel position X5.
その後、ラインY17において、画素位置X3および画素位置X4のカウンターデータの値が4になると、まず、スジ範囲の幅Wが1へ変更される。つまり、この時点での修正対象となるスジ範囲は、画素位置X2のみとなる。そして、このときのスジ範囲X2〜X5内において、画素位置X4にスジが残っているので、この画素位置X4のスジについて、スジ範囲の開始位置PSがX4であり、幅が1であるスジ範囲データを追加する。なお、画素位置X4のカウンターデータの値は、そのまま引き継がれる。 Thereafter, when the value of the counter data at the pixel position X3 and the pixel position X4 becomes 4 in the line Y17, the width W of the stripe range is first changed to 1. That is, the stripe range to be corrected at this time is only the pixel position X2. Then, since the streak remains at the pixel position X4 in the streak range X2 to X5 at this time, the streak range where the start position PS of the streak range is X4 and the width is 1 for the streak at the pixel position X4. Add data. Note that the value of the counter data at the pixel position X4 is inherited as it is.
ラインY18以降では、画素位置X2のスジ範囲と、画素位置X4のスジ範囲とは、別々に処理される。 After the line Y18, the stripe range at the pixel position X2 and the stripe range at the pixel position X4 are processed separately.
画素位置X4のスジ範囲については、ラインY18において、画素位置X4のカウンターデータの値が4になると、このスジ範囲の幅Wは0となり、このスジについての修正処理が完全に中止され、このスジ範囲のスジ範囲データはこの時点で削除される。 With respect to the streak range at the pixel position X4, when the counter data value at the pixel position X4 reaches 4 in the line Y18, the width W of the streak range becomes 0, and the correction processing for this streak is completely stopped. Range streak data is deleted at this point.
一方、画素位置X2のスジ範囲については、ラインY19において、画素位置X2のカウンターデータの値が4になると、このスジ範囲の幅Wは0となり、このスジについての修正処理が完全に中止され、このスジ範囲のスジ範囲データはこの時点で削除される。 On the other hand, for the line range at the pixel position X2, when the counter data value at the pixel position X2 becomes 4 in the line Y19, the width W of the line range becomes 0, and the correction process for this line is completely stopped. The stripe range data of this stripe range is deleted at this point.
以上のように、実施の形態2によれば、画素位置ごとに修正を中止させていくので、修正箇所の幅が狭くなり、補間などによる修正による画質低下が軽減されるため、よりスジ除去に起因する画質低下が軽減される。 As described above, according to the second embodiment, the correction is stopped for each pixel position. Therefore, the width of the correction portion is narrowed, and the deterioration in image quality due to the correction by interpolation or the like is reduced. The resulting degradation in image quality is reduced.
なお、上述の各実施の形態は、本発明の好適な例であるが、本発明は、これらに限定されるものではなく、本発明の要旨を逸脱しない範囲において、種々の変形、変更が可能である。 Each embodiment described above is a preferred example of the present invention, but the present invention is not limited to these, and various modifications and changes can be made without departing from the scope of the present invention. It is.
本発明は、例えば、画像読取機能を有するスキャナー機、ファクシミリ機、コピー機、複合機などの画像形成装置に適用可能である。 The present invention can be applied to, for example, an image forming apparatus such as a scanner machine, a facsimile machine, a copier, or a multifunction machine having an image reading function.
1b コンタクトガラス
21 画像読取部
31 スジ検出部
32 修正処理部
33 修正中止判定部
Claims (7)
前記原稿画像内の前記スジを除去するために副走査方向に沿って前記スジ範囲内の画素値を修正する修正処理部と、
前記スジ範囲内の画素の値に基づき前記スジの終端を検出し、前記スジの終端を検出したときに、前記修正処理部による前記スジ範囲内の画素値の修正を中止させる修正中止判定部と、
を備えることを特徴とする画像処理装置。 A streak detection unit for detecting streaks extending in the sub-scanning direction in the document image and identifying a streak range in the main scanning direction of the streaks;
A correction processing unit that corrects pixel values in the streak range along the sub-scanning direction in order to remove the streaks in the document image;
A correction stop determination unit that detects the end of the streak based on the value of the pixel in the streak range, and stops the correction of the pixel value in the streak range by the correction processing unit when the end of the streak is detected; ,
An image processing apparatus comprising:
前記修正中止判定部は、前記色プレーンごとに、前記スジ範囲内の画素の値に基づき前記スジの終端を検出し、すべての前記色プレーンにおいて前記スジの終端を検出したときに、前記修正処理部による前記スジ範囲内の画素値の修正を中止させること、
を特徴とする請求項1または請求項2記載の画像処理装置。 The correction processing unit corrects the pixel value in the streak range along the sub-scanning direction in order to remove the streaks in the document image for each color plane of RGB,
The correction cancellation determination unit detects the end of the streak based on the value of the pixel within the streak range for each color plane, and detects the end of the streak in all the color planes. Stopping correction of pixel values within the streak range by the unit,
The image processing apparatus according to claim 1, wherein:
前記修正中止判定部は、前記色プレーンごとに、前記スジ範囲内の画素の値に基づき前記スジの終端を検出し、いずれか1つの前記色プレーンにおいて前記スジの終端を検出したときに、前記修正処理部による前記スジ範囲内の画素値の修正を中止させること、
を特徴とする請求項1または請求項2記載の画像処理装置。 The correction processing unit corrects the pixel value in the streak range along the sub-scanning direction in order to remove the streaks in the document image for each color plane of RGB,
The correction cancellation determination unit detects, for each color plane, the end of the streak based on the value of a pixel in the streak range, and detects the end of the streak in any one of the color planes. Stopping correction of pixel values in the streak range by the correction processing unit;
The image processing apparatus according to claim 1, wherein:
前記修正処理部は、前記スジ範囲データにより指定される1または複数の前記スジ範囲内の画素値を修正し、
前記修正中止判定部は、カウントされた前記画素の数が所定の閾値以上になった画素位置における、前記修正処理部による画素値の修正を中止させた場合に、1つの前記スジが複数のスジに分かれたときには、前記スジ範囲データを、前記複数のスジの前記スジ範囲を指定するように変更すること、
を特徴とする請求項5記載の画像処理装置。 The streak detection unit generates streak range data that specifies the streak range in the main scanning direction for each of the detected one or more streaks,
The correction processing unit corrects a pixel value in one or a plurality of the streak ranges specified by the streak range data,
The correction cancellation determination unit, when stopping the correction of the pixel value by the correction processing unit at the pixel position where the counted number of pixels is equal to or greater than a predetermined threshold, The line range data is changed to specify the line range of the plurality of lines,
The image processing apparatus according to claim 5.
前記スジ検出部は、前記原稿読取部により読み取られた前記画像を前記原稿画像として、前記原稿画像内で副走査方向に延びるスジを検出し前記スジの主走査方向におけるスジ範囲を特定すること、
を特徴とする請求項1から請求項6のうちのいずれか1項記載の画像処理装置。 A contact glass; an automatic document feeder that passes a document so as to pass over the contact glass; and an image reading unit that reads an image of the document that passes over the contact glass;
The streak detection unit detects a streak extending in the sub-scanning direction in the document image by using the image read by the document reading unit as the document image, and specifies a streak range in the main scanning direction of the streak;
The image processing apparatus according to claim 1, wherein:
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2013065223A JP5901559B2 (en) | 2013-03-26 | 2013-03-26 | Image processing device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2013065223A JP5901559B2 (en) | 2013-03-26 | 2013-03-26 | Image processing device |
Publications (2)
Publication Number | Publication Date |
---|---|
JP2014192636A true JP2014192636A (en) | 2014-10-06 |
JP5901559B2 JP5901559B2 (en) | 2016-04-13 |
Family
ID=51838549
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2013065223A Active JP5901559B2 (en) | 2013-03-26 | 2013-03-26 | Image processing device |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP5901559B2 (en) |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2001238053A (en) * | 2000-02-25 | 2001-08-31 | Fuji Xerox Co Ltd | Picture reader |
JP2004297691A (en) * | 2003-03-28 | 2004-10-21 | Ricoh Co Ltd | Image reader and image processor |
JP2006229719A (en) * | 2005-02-18 | 2006-08-31 | Ricoh Co Ltd | Image processing apparatus |
JP2009239358A (en) * | 2008-03-25 | 2009-10-15 | Canon Inc | Image reading apparatus and control method thereof |
-
2013
- 2013-03-26 JP JP2013065223A patent/JP5901559B2/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2001238053A (en) * | 2000-02-25 | 2001-08-31 | Fuji Xerox Co Ltd | Picture reader |
JP2004297691A (en) * | 2003-03-28 | 2004-10-21 | Ricoh Co Ltd | Image reader and image processor |
JP2006229719A (en) * | 2005-02-18 | 2006-08-31 | Ricoh Co Ltd | Image processing apparatus |
JP2009239358A (en) * | 2008-03-25 | 2009-10-15 | Canon Inc | Image reading apparatus and control method thereof |
Also Published As
Publication number | Publication date |
---|---|
JP5901559B2 (en) | 2016-04-13 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP5014224B2 (en) | Image reading apparatus and image processing method | |
JP6849323B2 (en) | Image reader and image forming device | |
JP5899970B2 (en) | Image reading apparatus and white reference data abnormality determination program | |
JP2015198389A (en) | Image reader and control method | |
US10389911B2 (en) | Original reading apparatus | |
JP5901559B2 (en) | Image processing device | |
JP3985985B2 (en) | Image reading apparatus and image processing apparatus including the image reading apparatus | |
JP2008028699A (en) | Image reading apparatus and image reading method | |
JP5968263B2 (en) | Image processing device | |
JP5901560B2 (en) | Image processing device | |
JP6252221B2 (en) | Image reading device | |
JP2008005192A (en) | Image processor, image processing method, and image processing program | |
JP2009224829A (en) | Image reading apparatus | |
JP5984780B2 (en) | Image processing device | |
JP6642037B2 (en) | Scanner and image production method | |
JP5797102B2 (en) | Image reading device | |
US10805492B2 (en) | Image reading device | |
JP4864029B2 (en) | Document reader | |
US20130028535A1 (en) | Image Scanning Apparatus | |
JP2017118193A (en) | Image reader and image forming apparatus | |
JP2017199998A (en) | Scanner and production method for scanning image | |
JP6165092B2 (en) | Image reading device | |
JP2013128219A (en) | Image reading device and image reading method | |
JP6168971B2 (en) | Image reading apparatus and image processing apparatus | |
JP6081874B2 (en) | Image reading device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20150119 |
|
A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20151120 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20151126 |
|
A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20160118 |
|
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: 20160212 |
|
A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20160308 |
|
R150 | Certificate of patent or registration of utility model |
Ref document number: 5901559 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R150 |