JP2014192636A - Image processing device - Google Patents

Image processing device Download PDF

Info

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
Application number
JP2013065223A
Other languages
Japanese (ja)
Other versions
JP5901559B2 (en
Inventor
Shinji Hayashi
信二 林
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 Document Solutions Inc
Original Assignee
Kyocera Document Solutions Inc
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 Kyocera Document Solutions Inc filed Critical Kyocera Document Solutions Inc
Priority to JP2013065223A priority Critical patent/JP5901559B2/en
Publication of JP2014192636A publication Critical patent/JP2014192636A/en
Application granted granted Critical
Publication of JP5901559B2 publication Critical patent/JP5901559B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

PROBLEM TO BE SOLVED: To reduce deterioration of image quality due to stripe removal.SOLUTION: In a stripe detection unit 31, a stripe extending in the sub-scanning direction is detected in an original image, and a stripe range in the main-scanning direction of the stripe is specified. In a correction processing unit 32, a pixel value in the stripe range is corrected in the sub-scanning direction in order to remove the stripe in the original image. Then, in a correction stop determination unit 33, a final end of the strip is detected on the basis of the pixel value in the strip strange, and when the final end of the strip is detected, correction of the pixel value in the stripe range due to a correction processing unit 32 is stopped.

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, Patent Documents 1 and 2).

特開2007−142671号公報JP 2007-142671 A 特開2011−023920号公報JP 2011-023920 A

上述のように補間によって黒スジを除去すると、黒スジの幅が広くなるほど、黒スジのあった箇所の画質が低下する可能性が高くなる。例えば、原稿画像が網点のような反復的な画像である場合、黒スジの幅が広くなると、黒スジのあった箇所で網点の規則性が失われるため、黒スジは除去されるものの画質が低くなり、目立ちやすくなってしまう。   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.

図1は、本発明の実施の形態に係る画像処理装置の内部構成を示す側面図である。FIG. 1 is a side view showing an internal configuration of an image processing apparatus according to an embodiment of the present invention. 図2は、本発明の実施の形態に係る画像処理装置の電気的な構成を示すブロック図である。FIG. 2 is a block diagram showing an electrical configuration of the image processing apparatus according to the embodiment of the present invention. 図3は、図2におけるスジ検出部31によるスジ検出について説明する図である。FIG. 3 is a diagram for explaining the streak detection by the streak detection unit 31 in FIG. 図4は、実施の形態1における修正中止判定部33の動作を説明するフローチャートである。FIG. 4 is a flowchart for explaining the operation of the correction cancellation determination unit 33 in the first embodiment. 図5は、実施の形態1における修正中止判定部33による修正中止の一例を説明する図である。FIG. 5 is a diagram illustrating an example of correction cancellation by the correction cancellation determination unit 33 according to the first embodiment. 図6は、実施の形態1における修正中止判定部33による修正中止の別の例を説明する図である。FIG. 6 is a diagram for explaining another example of correction cancellation by the correction cancellation determination unit 33 in the first embodiment. 図7は、実施の形態2における修正中止判定部33の動作を説明するフローチャートである。FIG. 7 is a flowchart for explaining the operation of the correction cancellation determination unit 33 according to the second embodiment. 図8は、実施の形態2における修正中止判定部33による修正中止の一例を説明する図である。FIG. 8 is a diagram for explaining an example of correction cancellation by the correction cancellation determination unit 33 according to the second embodiment. 図9は、実施の形態2における修正中止判定部33による修正中止の別の例を説明する図である。FIG. 9 is a diagram for explaining another example of correction cancellation by the correction cancellation determination unit 33 according to the second embodiment.

以下、図に基づいて本発明の実施の形態を説明する。   Hereinafter, embodiments of the present invention will be described with reference to the drawings.

実施の形態1. Embodiment 1 FIG.

図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 contact glasses 1 a and 1 b, carriages 2 and 3, an imaging lens 4, an image sensor 5, a white reference patch 6, and a document cover 7.

コンタクトガラス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 original cover 7.

また、コンタクトガラス1bは、当該画像処理装置本体の上面に設置され、原稿カバー7のADFで原稿を自動的に搬送しつつ画像読取を行う際に、原稿がその上を通過する。   Further, the contact glass 1b is installed on the upper surface of the image processing apparatus main body, and when the image is read while the document is automatically conveyed by the ADF of the document cover 7, the document passes therethrough.

上述のADFは、コンタクトガラス1b上を通過するように原稿を通過させ、画像読取部21が、コンタクトガラス1b上を通過する原稿の画像を読み取る。   The ADF described above passes the document so as to pass over the contact glass 1b, and the image reading unit 21 reads the image of the document passing over the contact glass 1b.

画像読取部21において、キャリッジ2は、図示せぬ駆動源によって副走査方向に移動可能に設置されている。キャリッジ2は、光源11とミラー12とを有する。光源11は、主走査方向に沿って配置され、例えば配列された複数の発光ダイオードで光を出射する。光源11から出射された光は、キャリッジ2の位置に応じて、コンタクトガラス1a上に載置された原稿、コンタクトガラス1b上を通過する原稿などで反射する。ミラー12は、原稿などからの反射光を反射する。原稿カバー7のADFを使用して原稿の画像読取を行う場合、キャリッジ2は、コンタクトガラス1bの下に固定的に配置される。   In the image reading unit 21, the carriage 2 is installed so as to be movable in the sub-scanning direction by a drive source (not shown). The carriage 2 has a light source 11 and a mirror 12. The light source 11 is arranged along the main scanning direction, and emits light with, for example, a plurality of light emitting diodes arranged. The light emitted from the light source 11 is reflected by an original placed on the contact glass 1a, an original passing through the contact glass 1b, or the like according to the position of the carriage 2. The mirror 12 reflects reflected light from a document or the like. When the image of a document is read using the ADF of the document cover 7, the carriage 2 is fixedly disposed below the contact glass 1b.

また、キャリッジ3は、図示せぬ駆動源によってキャリッジ2とともに副走査方向に移動可能に設置されている。キャリッジ3は、ミラー13,14を有する。ミラー13,14は、キャリッジ2のミラー12からの光を反射して副走査方向に沿って出射する。   The carriage 3 is installed so as to be movable in the sub-scanning direction together with the carriage 2 by a drive source (not shown). The carriage 3 has mirrors 13 and 14. The mirrors 13 and 14 reflect the light from the mirror 12 of the carriage 2 and emit it along the sub-scanning direction.

結像レンズ4は、ミラー14からの光をイメージセンサー5に結像させる。イメージセンサー5は、主走査方向に配列された所定の画素数の受光素子を有する一次元イメージセンサーであり、ラインごとに、その画素数の画素についての受光量に対応する電気信号を出力する。イメージセンサー5としては、例えば、CCD(Charge Coupled Device)が使用される。   The imaging lens 4 focuses the light from the mirror 14 on the image sensor 5. The image sensor 5 is a one-dimensional image sensor having light receiving elements with a predetermined number of pixels arranged in the main scanning direction, and outputs an electrical signal corresponding to the amount of light received for the pixels with the number of pixels for each line. For example, a CCD (Charge Coupled Device) is used as the image sensor 5.

白基準パッチ6は、装置内部の天面に配置され、白色の基準データを取得するために使用される板状の部材である。   The white reference patch 6 is a plate-like member that is disposed on the top surface inside the apparatus and is used to acquire white reference data.

原稿カバー7は、コンタクトガラス1aに面接触可能で回動自在に設置されている部材であって、原稿をコンタクトガラス1aに密着させるとともに、画像読取時に環境光がコンタクトガラス1から装置内部へ入射することを防ぐ。また、原稿カバー7は、ADFを有しており、原稿トレイ7aに載置された原稿を1枚ずつ搬送ローラー7bによって搬送し、コンタクトガラス1b上を通過させる。   The document cover 7 is a member that can be brought into surface contact with the contact glass 1a and is rotatably mounted. The document cover 7 closely contacts the document with the contact glass 1a, and ambient light is incident on the inside of the apparatus from the contact glass 1 during image reading. To prevent. Further, the document cover 7 has an ADF, and the documents placed on the document tray 7a are conveyed one by one by the conveyance roller 7b and passed over the contact glass 1b.

図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 image reading unit 21 is supplied to the line correction unit 22.

スジ修正部22は、スジ検出部31、修正処理部32、修正中止判定部33、および記憶部34を有する。なお、スジ修正部22は、ASIC(Application Specific Integrated Circuit)などでハードウェアとして実現してもよいし、コンピューターでプログラムを実行することで、ソフトウェアとして実現してもよい。   The streak correction unit 22 includes a streak detection unit 31, a correction processing unit 32, a correction stop determination unit 33, and a storage unit 34. The streak correction unit 22 may be realized as hardware such as an ASIC (Application Specific Integrated Circuit) or may be realized as software by executing a program on a computer.

スジ検出部31は、原稿画像内で副走査方向に延びるスジを検出しそのスジの主走査方向におけるスジ範囲を特定する。   The streak detection unit 31 detects a streak extending in the sub-scanning direction in the document image and specifies a streak range in the main scanning direction of the streak.

図3は、図2におけるスジ検出部31によるスジ検出について説明する図である。   FIG. 3 is a diagram for explaining the streak detection by the streak detection unit 31 in FIG.

例えば、スジ検出部31は、原稿画像内の所定の複数のラインL1〜LNで、画素値が所定の閾値以下である範囲を特定し、その範囲のうち、それらのラインL1〜LNに共通する部分を、スジ範囲として検出する。   For example, the streak detection unit 31 specifies a range in which the pixel value is equal to or less than a predetermined threshold among a plurality of predetermined lines L1 to LN in the document image, and is common to the lines L1 to LN among the ranges. The part is detected as a streak range.

また、スジ検出部31は、検出した1または複数のスジごとに、主走査方向におけるスジ範囲を指定するスジ範囲データを生成する。例えば、スジ範囲データは、主走査方向におけるスジ範囲の開始位置の画素位置PS、およびスジ範囲の幅Wを有する。   In addition, the streak detection unit 31 generates streak range data that designates a streak range in the main scanning direction for each detected one or more streaks. For example, the stripe range data has a pixel position PS at the start position of the stripe range in the main scanning direction and a width W of the stripe range.

なお、スジ検出部31は、RGBの色プレーンのそれぞれに対して、スジの検出を行うようにしてもよいし、スジ検出部31は、各画素のRGB値から輝度値を特定し、その輝度値を画素値として、スジの検出を行うようにしてもよい。   The streak detection unit 31 may perform streak detection for each of the RGB color planes, or the streak detection unit 31 specifies a luminance value from the RGB value of each pixel, and the luminance A streak may be detected using the value as a pixel value.

修正処理部32は、原稿画像内のスジを除去するために副走査方向に沿ってスジ範囲内の画素値を修正する。例えば、修正処理部32は、スジ範囲周辺の画素値に基づく補間によって得られる画素値へスジ範囲内の画素値を変更する。   The correction processing unit 32 corrects the pixel values in the streak range along the sub-scanning direction in order to remove the streaks in the document image. For example, the correction processing unit 32 changes the pixel value in the stripe range to the pixel value obtained by interpolation based on the pixel values around the stripe range.

修正処理部32は、原稿画像の1ラインを順番に注目ラインとして選択し、その注目ライン内において、スジ範囲データにより指定される1または複数のスジ範囲内の画素値を修正する。   The correction processing unit 32 sequentially selects one line of the document image as a target line, and corrects the pixel value in one or a plurality of line ranges specified by the line range data in the target line.

なお、スジの検出がRGBの色プレーンのそれぞれに対して行われる場合、修正処理部32は、RGBのそれぞれの色プレーンごとに、原稿画像内のスジを除去するために副走査方向に沿ってスジ範囲内の画素値を修正する。   When the streak detection is performed for each of the RGB color planes, the correction processing unit 32 performs along the sub-scanning direction to remove the streaks in the document image for each of the RGB color planes. Correct the pixel value within the streak range.

修正中止判定部33は、スジ範囲内の画素の値に基づき、副走査方向におけるスジの終端を検出し、スジの終端を検出したときに、修正処理部32によるスジ範囲内の画素値の修正を中止させる。つまり、副走査方向における、修正中止判定部33が中止させた位置以降の、スジ範囲内の画素については、画素値の修正が行われない。   The correction cancellation determination unit 33 detects the end of the streak in the sub-scanning direction based on the value of the pixel within the streak range. When the end of the streak is detected, the correction processing unit 32 corrects the pixel value within the streak range. To cancel. In other words, pixel values are not corrected for pixels within the streak range after the position where the correction cancellation determination unit 33 cancels in the sub-scanning direction.

実施の形態1では、修正中止判定部33は、(a)副走査方向に沿って、スジ範囲内の画素位置ごとに、画素位置の画素値が、スジと判定される値であるか否かを判定し、(b)副走査方向に沿って、画素位置ごとに、スジと判定される値ではないと判定された画素をカウントしていき、(c)スジ範囲内のすべての画素位置についてのカウントされた画素の数が所定の閾値以上になったときに、修正処理部32によるそのスジ範囲内の画素値の修正を中止させる。   In the first embodiment, the correction cancellation determination unit 33 determines whether or not the pixel value at the pixel position is a value determined as a streak for each pixel position within the streak range along the sub-scanning direction (a). (B) for each pixel position along the sub-scanning direction, the pixels determined to be not the value determined to be a streak are counted, and (c) for all the pixel positions within the streak range When the number of counted pixels becomes equal to or greater than a predetermined threshold, the correction processing unit 32 stops the correction of the pixel value within the stripe range.

なお、「スジと判定される値」とは、スジ検出部31によって検出されるスジの色値である。以下、「スジと判定される値」の色のことを、スジ色という。例えば、スジ検出部31が、原稿画像内の所定の複数のラインL1〜LNで、画素値が所定の閾値以下である範囲を特定し、その範囲のうち、それらのラインL1〜LNに共通する部分を、スジ範囲として検出する場合、「スジと判定される値」は、その所定の閾値以下の値となる。   The “value determined as a streak” is a color value of a streak detected by the streak detection unit 31. Hereinafter, the color of “value determined to be a streak” is referred to as a streak color. For example, the streak detection unit 31 identifies a range in which the pixel value is equal to or less than a predetermined threshold among a plurality of predetermined lines L1 to LN in the document image, and is common to those lines L1 to LN in the range. When a portion is detected as a streak range, the “value determined to be a streak” is a value equal to or less than the predetermined threshold.

修正処理部32がRGBのそれぞれの色プレーンごとに原稿画像内のスジを除去するために副走査方向に沿ってスジ範囲内の画素値を修正する場合、修正中止判定部33は、色プレーンごとに、スジ範囲内の画素の値に基づきスジの終端を検出し、すべての色プレーンにおいてスジの終端を検出したときに、修正処理部32によるスジ範囲内の画素値の修正をすべての色プレーンについて中止させる。   When the correction processing unit 32 corrects the pixel value in the streak range along the sub-scanning direction in order to remove the streaks in the original image for each of the RGB color planes, the correction cancellation determination unit 33 When the end of the streak is detected based on the value of the pixel in the streak range and the end of the streak is detected in all the color planes, the correction processing unit 32 corrects the pixel value in the streak range for all the color planes. Let's stop about.

なお、修正処理部32がRGBのそれぞれの色プレーンごとに原稿画像内のスジを除去するために副走査方向に沿ってスジ範囲内の画素値を修正する場合、修正中止判定部33は、色プレーンごとに、スジ範囲内の画素の値に基づきスジの終端を検出し、いずれか1つの色プレーンにおいてスジの終端を検出したときに、修正処理部32によるスジ範囲内の画素値の修正をすべての色プレーンについて中止させるようにしてもよい。   When the correction processing unit 32 corrects the pixel value in the streak range along the sub-scanning direction in order to remove the streaks in the original image for each of the RGB color planes, the correction stop determination unit 33 For each plane, the end of the streak is detected based on the value of the pixel in the streak range, and when the end of the streak is detected in any one color plane, the correction processing unit 32 corrects the pixel value in the streak range. You may make it cancel about all the color planes.

記憶部34は、上述のスジ範囲データを保持するメモリーなどの記憶装置である。スジ検出部31は、1または複数のスジ範囲を指定するスジ範囲データを記憶部34に書き込む。修正処理部32は、記憶部34に記憶されているスジ範囲データをラインごとに読み出してスジ範囲を特定し、そのスジ範囲に対して上述の修正処理を行う。修正中止判定部33は、記憶部34に記憶されているスジ範囲データを読み出してスジ範囲を特定し、そのスジ範囲に対して上述のように修正処理を中止するか否かを判定する。   The storage unit 34 is a storage device such as a memory that holds the above-described stripe range data. The streak detector 31 writes streak range data specifying one or a plurality of streak ranges in the storage unit 34. The correction processing unit 32 reads the line range data stored in the storage unit 34 for each line, specifies the line range, and performs the above-described correction process on the line range. The correction cancellation determination unit 33 reads the streak range data stored in the storage unit 34, identifies the streak range, and determines whether or not to cancel the correction process for the streak range as described above.

なお、スジ検出部31が第1ページの原稿画像でスジを検出し、第2ページ以降の原稿画像に対して、修正処理部32による修正処理および修正中止判定部33による判定を行うようにしてもよいし、スジ検出部31が第1ページの原稿画像の所定部分でスジを検出し、その所定部分より後の原稿画像に対して、修正処理部32による修正処理および修正中止判定部33による判定を行うようにしてもよい。   The streak detection unit 31 detects a streak in the original image of the first page, and performs correction processing by the correction processing unit 32 and determination by the correction stop determination unit 33 on the original image of the second page and thereafter. Alternatively, the streak detection unit 31 detects a streak in a predetermined portion of the original image of the first page, and the correction processing by the correction processing unit 32 and the correction stop determination unit 33 for the original image after the predetermined portion. You may make it perform determination.

次に、実施の形態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 cancellation determination unit 33 in the first embodiment.

コンタクトガラス1bにゴミなどが付着し原稿画像内にスジが発生すると、そのスジがスジ検出部31により検出され、スジ範囲内の画素値が修正処理部32による修正される。   When dust or the like adheres to the contact glass 1b and a streak occurs in the original image, the streak detection unit 31 detects the streak, and the pixel value within the streak range is corrected by the correction processing unit 32.

修正処理部32による修正処理が開始されると、修正中止判定部33は、まず、スジ範囲データを記憶部34から取得し(ステップS1)、1または複数のスジ範囲を特定し、各スジ範囲(つまり、各スジ)に対して、以下の処理を行う。   When the correction processing by the correction processing unit 32 is started, the correction cancellation determination unit 33 first acquires the line range data from the storage unit 34 (Step S1), specifies one or a plurality of line ranges, and sets each line range. The following processing is performed for (that is, each stripe).

まず、修正中止判定部33は、1つのスジ範囲内の各画素位置に対応するカウンターデータに、初期値0にセットする。   First, the correction cancellation determination unit 33 sets the initial value 0 to the counter data corresponding to each pixel position within one stripe range.

修正中止判定部33は、修正処理が開始されたラインを注目ラインとして、スジ範囲内の各画素位置の画素が、スジ色であるか否かを判定する(ステップS2)。   The correction cancellation determination unit 33 determines whether the pixel at each pixel position within the streak range is a streak color, with the line where the correction process has been started as the target line (step S2).

修正中止判定部33は、スジ色であると判定されなかった画素位置(つまり、スジ色ではない画素の画素位置)に対応するカウンターデータの値を1だけ増加する(ステップS3)。   The correction cancellation determination unit 33 increases the value of the counter data corresponding to the pixel position that is not determined to be the streak color (that is, the pixel position of the pixel that is not the streak color) by 1 (step S3).

そして、修正中止判定部33は、スジ範囲内の画素位置に対応するカウンターデータの値がすべて所定の中止閾値(例えば4)以上であるか否かを判定する(ステップS4)。   Then, the correction cancellation determination unit 33 determines whether or not all the values of the counter data corresponding to the pixel positions within the stripe range are equal to or greater than a predetermined cancellation threshold (for example, 4) (step S4).

スジ範囲内の画素位置に対応するカウンターデータの値のうちの少なくとも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 stop determination unit 33 sets the next line as the attention line (step S5), and steps S2 to S2. The process of S4 is executed.

一方、スジ範囲内の画素位置に対応するカウンターデータの値がすべて所定の中止閾値以上である場合、修正中止判定部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 stop determination unit 33 determines that the streak is over, and the correction processing unit 32 corrects the streak. Is stopped (step S6). Specifically, the correction cancellation determination unit 33 deletes the line range data for the line from the storage unit 34. As a result, the correction processing unit 32 does not perform correction processing for the streak.

図5は、実施の形態1における修正中止判定部33による修正中止の一例を説明する図である。なお、図中のハッチの画素は、スジ色の画素であり、白ヌキの画素は、スジ色ではない画素であり、白ヌキの画素内の数字は、上述のカウンターデータのカウント値である。   FIG. 5 is a diagram illustrating an example of correction cancellation by the correction cancellation determination unit 33 according to the first embodiment. Note that hatched pixels in the figure are streak-colored pixels, white-brown pixels are pixels that are not streaked, and the numbers in the white-browned pixels are the count values of the counter data described above.

図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 cancellation determination unit 33 stops the correction processing by the correction processing unit 32 for the line Y21 and subsequent lines. Note that even if ruled lines are present in the document image as indicated by lines 16 and Y17 shown in FIG. 5, the end of the stripe can be detected appropriately.

図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 cancellation determination unit 33 in the first embodiment. Note that hatched pixels in the figure are streak-colored pixels, and whitened pixels are pixels that are not streaked. In the example shown in FIG. 5, the streak disappears from both ends of the streak range, but in the example shown in FIG. 6, the streak disappears from the center of the streak range. In the example illustrated in FIG. 6, the stop threshold is set to 4, and the correction stop determination unit 33 sets the counter data value corresponding to the pixel position X1 to 4 in the line Y19, and sets all the pixel positions X1 to X6. Since the corresponding counter data value is 4 or more, the correction cancellation determination unit 33 stops the correction processing by the correction processing unit 32 for the line Y20 and subsequent lines.

以上のように、上記実施の形態1によれば、スジ検出部31は、原稿画像内で副走査方向に延びるスジを検出しスジの主走査方向におけるスジ範囲を特定し、修正処理部32は、原稿画像内のスジを除去するために副走査方向に沿ってスジ範囲内の画素値を修正する。そして、修正中止判定部33は、スジ範囲内の画素の値に基づきスジの終端を検出し、スジの終端を検出したときに、修正処理部32によるスジ範囲内の画素値の修正を中止させる。   As described above, according to the first embodiment, the streak detection unit 31 detects a streak extending in the sub-scanning direction in the document image, specifies a streak range in the main scanning direction, and the correction processing unit 32 In order to remove streaks in the original image, the pixel values in the streaks are corrected along the sub-scanning direction. Then, the correction cancellation determination unit 33 detects the end of the stripe based on the value of the pixel in the streak range, and when the end of the streak is detected, the correction processing unit 32 cancels the correction of the pixel value in the streak range. .

これにより、例えばコンタクトガラス1b上のゴミがなくなり、スジが終わると、スジ除去が中止されるため、スジ除去に起因する画質低下が軽減される。   Thereby, for example, when there is no dust on the contact glass 1b and the streak is finished, the streak removal is stopped, so that the image quality deterioration due to the streak removal is reduced.

実施の形態2. Embodiment 2. FIG.

実施の形態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 cancellation determination unit 33 operates as follows.

実施の形態2では、修正中止判定部33は、(a)副走査方向に沿って、スジ範囲内の画素位置ごとに、画素位置の画素値が、スジと判定される値であるか否かを判定し、(b)副走査方向に沿って、画素位置ごとに、スジと判定される値ではないと判定された画素をカウントしていき、(c)カウントされた画素の数が所定の閾値以上になった画素位置における、修正処理部32による画素値の修正を中止させる。   In the second embodiment, the correction cancellation determination unit 33 determines whether or not the pixel value at the pixel position is a value determined as a streak for each pixel position within the streak range along the sub-scanning direction (a). (B) Count pixels determined not to be streaks for each pixel position along the sub-scanning direction, and (c) the number of counted pixels is a predetermined value. The correction of the pixel value by the correction processing unit 32 at the pixel position that is equal to or greater than the threshold is stopped.

また、実施の形態2では、修正中止判定部33は、カウントされた画素の数(つまり、カウンターデータの値)が所定の閾値以上になった画素位置における、修正処理部32による画素値の修正を中止させた場合、元の1つのスジが複数のスジに分かれたときには、スジ範囲データを、その複数のスジのスジ範囲を指定するように変更する。   In the second embodiment, the correction cancellation determination unit 33 corrects the pixel value by the correction processing unit 32 at the pixel position where the number of counted pixels (that is, the value of the counter data) is equal to or greater than a predetermined threshold. When the original one streak is divided into a plurality of streaks, the streak range data is changed so as to specify the streak ranges of the plurality of streaks.

次に、実施の形態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 cancellation determination unit 33 according to the second embodiment.

修正処理部32による修正処理が開始されると、修正中止判定部33は、まず、スジ範囲データを記憶部34から取得し(ステップS21)、1または複数のスジ範囲を特定し、各スジ範囲(つまり、各スジ)に対して、以下の処理を行う。   When the correction process by the correction processing unit 32 is started, the correction cancellation determination unit 33 first acquires the line range data from the storage unit 34 (step S21), specifies one or a plurality of line ranges, and sets each line range. The following processing is performed for (that is, each stripe).

まず、修正中止判定部33は、1つのスジ範囲内の各画素位置に対応するカウンターデータに、初期値0にセットする。   First, the correction cancellation determination unit 33 sets the initial value 0 to the counter data corresponding to each pixel position within one stripe range.

修正中止判定部33は、修正処理が開始されたラインを注目ラインとして、スジ範囲内の各画素位置の画素が、スジ色であるか否かを判定する(ステップS22)。   The correction cancellation determination unit 33 determines whether or not the pixel at each pixel position in the streak range is a streak color, with the line where the correction process has been started as the target line (step S22).

修正中止判定部33は、スジ色であると判定されなかった画素位置(つまり、スジ色ではない画素の画素位置)に対応するカウンターデータの値を1だけ増加する(ステップS23)。   The correction cancellation determination unit 33 increases the value of the counter data corresponding to the pixel position that is not determined to be a streak color (that is, the pixel position of a pixel that is not a streak color) by 1 (step S23).

そして、修正中止判定部33は、カウンターデータの値が所定の中止閾値(例えば4)以上であるスジ範囲内の画素位置があるか否かを判定する(ステップS24)。   Then, the correction cancellation determination unit 33 determines whether or not there is a pixel position within the streak range in which the value of the counter data is equal to or greater than a predetermined cancellation threshold (for example, 4) (step S24).

カウンターデータの値が所定の中止閾値以上である画素位置がスジ範囲内にない場合、修正中止判定部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 stop determination unit 33 sets the next line as the attention line (step S25), and executes the processes after step S22.

一方、カウンターデータの値が所定の中止閾値以上であるスジ範囲内の画素位置がある場合、修正中止判定部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 stop determination unit 33 updates the streak range data (step S26).

例えば、スジ範囲の開始位置の画素位置についてのカウンターデータの値が所定の中止閾値以上となった場合、修正中止判定部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 stop determination unit 33 sets the start position PS of the streak range in the streak range data to one pixel. While shifting, the width W of the streak range is reduced by one pixel.

また、例えば、スジ範囲の終了位置の画素位置についてのカウンターデータの値が所定の中止閾値以上となった場合、修正中止判定部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 stop determination unit 33 sets the width W of the streak range in the streak range data to 1 Make the pixel smaller.

また、例えば、スジ範囲の中央の画素位置についてのカウンターデータの値が所定の中止閾値以上となった場合、修正中止判定部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 stop determination unit 33 starts the width W of the streak range in the streak range data. The number of pixels is changed from the position to the adjacent pixel position (on the start position side) of the pixel position, and the start position PS (the end of the pixel position) of the streak range for the streaks generated separately from the original streak The adjacent pixel position on the position side) and the width W are added to the stripe range data. Note that the added stripe range is similarly processed as one stripe range.

このようにして、カウンターデータの値が中止閾値以上である画素位置はスジ範囲から除外されていき、修正処理が行われないようになる。   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 cancellation determination unit 33 determines whether or not the width W of the streak range after updating the streak range data is zero (step S27), and the width W of the streak range after updating the streak range data is zero. In this case, it is determined that the streak is finished, and the streak range data of the streak range is deleted.

一方、スジ範囲データ更新後のスジ範囲の幅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 cancellation determination unit 33 sets the next line as the target line (step S25), and executes the processes after step S22.

図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 cancellation determination unit 33 according to the second embodiment. Note that hatched pixels in the figure are streak-colored pixels, white-brown pixels are pixels that are not streaked, and the numbers in the white-browned pixels are the count values of the counter data described above. In the example shown in FIG. 8, the stop threshold is set to 4. In the example shown in FIG. 8, in the initial state, the start position PS of the streak range is X1, and the width W is 6 (6 pixels).

そして、ライン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 cancellation determination unit 33 according to the second embodiment. Note that hatched pixels in the figure are streak-colored pixels, white-brown pixels are pixels that are not streaked, and the numbers in the white-browned pixels are the count values of the counter data described above. In the example shown in FIG. 9, the stop threshold is set to 4. In the example shown in FIG. 9, in the initial state, the start position PS of the streak range is X1, and the width W is 6 (6 pixels).

そして、ライン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 修正中止判定部
1b Contact Glass 21 Image Reading Unit 31 Line Detection Unit 32 Correction Processing Unit 33 Correction Cancellation Determination Unit

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:
前記修正中止判定部は、(a)副走査方向に沿って、前記スジ範囲内の画素位置ごとに、前記画素位置の画素値が、前記スジと判定される値であるか否かを判定し、(b)副走査方向に沿って、前記画素位置ごとに、前記スジと判定される値ではないと判定された画素をカウントしていき、(c)前記スジ範囲内のすべての画素位置についてのカウントされた前記画素の数が所定の閾値以上になったときに、前記修正処理部による前記スジ範囲内の画素値の修正を中止させることを特徴とする請求項1記載の画像処理装置。   The correction cancellation determination unit determines (a) whether the pixel value at the pixel position is a value determined as the streak for each pixel position within the stripe range along the sub-scanning direction. (B) Counting pixels determined not to be determined as the streak for each pixel position along the sub-scanning direction, and (c) for all pixel positions within the streak range. The image processing apparatus according to claim 1, wherein when the number of the counted pixels exceeds a predetermined threshold, the correction processing unit stops the correction of the pixel value in the stripe range. 前記修正処理部は、RGBのそれぞれの色プレーンごとに、前記原稿画像内の前記スジを除去するために副走査方向に沿って前記スジ範囲内の画素値を修正し、
前記修正中止判定部は、前記色プレーンごとに、前記スジ範囲内の画素の値に基づき前記スジの終端を検出し、すべての前記色プレーンにおいて前記スジの終端を検出したときに、前記修正処理部による前記スジ範囲内の画素値の修正を中止させること、
を特徴とする請求項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:
前記修正処理部は、RGBのそれぞれの色プレーンごとに、前記原稿画像内の前記スジを除去するために副走査方向に沿って前記スジ範囲内の画素値を修正し、
前記修正中止判定部は、前記色プレーンごとに、前記スジ範囲内の画素の値に基づき前記スジの終端を検出し、いずれか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:
前記修正中止判定部は、(a)副走査方向に沿って、前記スジ範囲内の画素位置ごとに、前記画素位置の画素値が、前記スジと判定される値であるか否かを判定し、(b)副走査方向に沿って、前記画素位置ごとに、前記スジと判定される値ではないと判定された画素をカウントしていき、(c)カウントされた前記画素の数が所定の閾値以上になった画素位置における、前記修正処理部による画素値の修正を中止させることを特徴とする請求項1記載の画像処理装置。   The correction cancellation determination unit determines (a) whether the pixel value at the pixel position is a value determined as the streak for each pixel position within the stripe range along the sub-scanning direction. (B) Counting pixels determined not to be determined as the streak for each pixel position along the sub-scanning direction, and (c) the number of counted pixels is a predetermined value. The image processing apparatus according to claim 1, wherein the correction of the pixel value by the correction processing unit is stopped at a pixel position that is equal to or greater than a threshold value. 前記スジ検出部は、検出した1または複数の前記スジごとに、主走査方向における前記スジ範囲を指定するスジ範囲データを生成し、
前記修正処理部は、前記スジ範囲データにより指定される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:
JP2013065223A 2013-03-26 2013-03-26 Image processing device Active JP5901559B2 (en)

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)

* Cited by examiner, † Cited by third party
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

Patent Citations (4)

* Cited by examiner, † Cited by third party
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