JP4539546B2 - Image processing apparatus and program - Google Patents

Image processing apparatus and program Download PDF

Info

Publication number
JP4539546B2
JP4539546B2 JP2005352011A JP2005352011A JP4539546B2 JP 4539546 B2 JP4539546 B2 JP 4539546B2 JP 2005352011 A JP2005352011 A JP 2005352011A JP 2005352011 A JP2005352011 A JP 2005352011A JP 4539546 B2 JP4539546 B2 JP 4539546B2
Authority
JP
Japan
Prior art keywords
density
pixel
pixels
predetermined number
scanning direction
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
JP2005352011A
Other languages
Japanese (ja)
Other versions
JP2007158782A (en
Inventor
孝亮 清水
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.)
Fujifilm Business Innovation Corp
Original Assignee
Fuji Xerox Co Ltd
Fujifilm Business Innovation Corp
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 Fuji Xerox Co Ltd, Fujifilm Business Innovation Corp filed Critical Fuji Xerox Co Ltd
Priority to JP2005352011A priority Critical patent/JP4539546B2/en
Publication of JP2007158782A publication Critical patent/JP2007158782A/en
Application granted granted Critical
Publication of JP4539546B2 publication Critical patent/JP4539546B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

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

Description

この発明は、原稿から画像を読み取る画像読取位置におけるゴミの付着を検出し、このゴミに起因したノイズ画像を読取画像から除去するための技術に関する。   The present invention relates to a technique for detecting adhesion of dust at an image reading position for reading an image from a document and removing a noise image caused by the dust from a read image.

画像処理装置は、搬送装置によって搬送される原稿の画像を所定の読取位置においてCCD等のラインセンサを用いてプラテンガラス越しに読み取る。ところが、プラテンガラス上の読取位置にゴミが付着していると、そのゴミに起因したスジ状のノイズ画像が読み取った画像に入り込んでしまう。このような問題を解決するべく、特許文献1には、原稿を読み取る前に背景板を読み取っておき、原稿画像の濃度と背景板の濃度とを比較してゴミに起因するノイズ画像を検知し、これを除去する技術が開示されている。また、特許文献2には、画像データを二次微分することでノイズ画像の存在を検知する技術が開示されている。
特開2005−64913号公報 特許第3554130号公報
The image processing apparatus reads an image of a document conveyed by the conveying device through a platen glass using a line sensor such as a CCD at a predetermined reading position. However, if dust adheres to the reading position on the platen glass, a streak-like noise image caused by the dust enters the read image. In order to solve such problems, Patent Document 1 reads a background plate before reading a document, compares the density of the document image with the density of the background plate, detects a noise image caused by dust, A technique for removing this is disclosed. Patent Document 2 discloses a technique for detecting the presence of a noise image by second-order differentiation of image data.
JP-A-2005-64913 Japanese Patent No. 3554130

特許文献1に記載の技術は、背景板との濃度の違いに基づいてノイズ画像の存在を検出しているため、その比較基準である背景板の濃度とノイズ画像の濃度とがほぼ同じ場合には、ノイズ画像を検知することができない。例えば背景板として白色のものを用いた場合、白色のゴミ(例えば紙粉)は背景板との濃度差が極めて小さいために検出することができない虞がある。また、特許文献2の二次微分を用いた方法では、ゴミに起因するスジ状のノイズ画像と、原稿にもともとあった線画像とを区別することができない虞がある。   Since the technology described in Patent Document 1 detects the presence of a noise image based on the difference in density from the background board, the density of the background board and the density of the noise image, which are the comparison standards, are almost the same. Cannot detect noise images. For example, when a white background plate is used, white dust (for example, paper dust) may not be detected because the density difference from the background plate is extremely small. Further, in the method using the second derivative of Patent Document 2, there is a possibility that a streak-like noise image caused by dust cannot be distinguished from a line image originally associated with the document.

本発明は、上述した背景に鑑みてなされたものであり、その目的は、原稿の読取位置におけるゴミの存在をより正確に検出し、これに起因したノイズ画像を読取画像から除去することにある。   The present invention has been made in view of the above-described background, and an object of the present invention is to more accurately detect the presence of dust at a reading position of a document and to remove a noise image resulting therefrom from the read image. .

上記課題を解決するため、この発明は、原稿上の像を走査ライン単位で読み取って得られた画像データに含まれる各画素の濃度に基づき、自画素の位置から所定範囲内に存在する画素群の濃度よりも低濃度側に閾値以上乖離した濃度を有し、且つ、前記走査ラインにおいて連続して並んだ所定数以下の画素を異常画素として抽出する抽出手段と、前記抽出手段によって抽出された異常画素の濃度を、当該濃度よりも高い濃度に補正する補正手段と、前記補正手段によって補正された濃度を含む画像データを出力する出力手段とを備え、前記抽出手段は、ある注目画素の走査方向手前側に連続して位置する所定数の画素群の濃度の平均値を算出し、当該平均値が閾値以上である場合には、当該注目画素が前記異常画素であるか否かを判定し、その結果に基づいて当該注目画素を異常画素として抽出することを特徴とする画像処理装置を提供する。 In order to solve the above problems, the present invention provides a pixel group existing within a predetermined range from the position of its own pixel based on the density of each pixel included in image data obtained by reading an image on a document in units of scanning lines. An extraction means for extracting, as abnormal pixels, pixels having a density that deviates by more than a threshold value on the lower density side than the density and having a predetermined number of pixels continuously arranged in the scanning line, and extracted by the extraction means A correction unit that corrects the density of the abnormal pixel to a density higher than the density; and an output unit that outputs image data including the density corrected by the correction unit. The extraction unit scans a certain target pixel. An average value of the density of a predetermined number of pixel groups continuously located on the front side in the direction is calculated, and when the average value is equal to or greater than a threshold value, it is determined whether or not the target pixel is the abnormal pixel. , That To provide an image processing apparatus characterized by extracting the pixel of interest as an abnormal pixel based on the result.

この画像処理装置によれば、抽出手段が、自画素の位置から所定範囲内に存在する画素群の濃度よりも低濃度側に閾値以上乖離した濃度を有し、且つ、走査ラインにおいて連続して並んだ所定数以下の画素を異常画素として抽出し、補正手段が、抽出された異常画素の濃度を、当該濃度よりも高い濃度に補正する。このように周囲の画素の濃度よりも低い異常画素の濃度を高濃度に補正して、所定範囲内に存在する周囲の画素の濃度に近づけることで、読取手段の読取位置に紙粉などのゴミが付着した場合であっても、そのゴミに起因したノイズ画像を読み取った像から除去することができる。なお、自画素の位置から所定範囲内に存在する画素群の濃度よりも低濃度側に閾値以上乖離した濃度を有し、且つ、前記走査ラインにおいて連続して並んだ所定数以下の画素とは、複数画素だけではなく、1つの画素である場合も含む。   According to this image processing apparatus, the extracting means has a density that deviates by more than a threshold from the position of the own pixel to a lower density side than the density of the pixel group existing within a predetermined range, and continuously in the scanning line. A predetermined number or less of the aligned pixels are extracted as abnormal pixels, and the correction unit corrects the density of the extracted abnormal pixels to a density higher than the density. In this way, the density of abnormal pixels lower than the density of surrounding pixels is corrected to a high density and brought close to the density of surrounding pixels existing within a predetermined range, so that dust such as paper dust is present at the reading position of the reading unit. Even if the toner adheres, the noise image caused by the dust can be removed from the read image. The number of pixels having a density that deviates by more than a threshold value from the position of the own pixel to a lower density side than the density of a pixel group existing within a predetermined range, and that is continuously arranged in the scanning line. This includes not only a plurality of pixels but also a single pixel.

また、本発明は、原稿上の像を走査ライン単位で読み取って得られた画像データに含まれる各画素の濃度に基づいて各々の走査ライン上に連なる画素群のライン方向の濃度変化を検出し、各走査ライン上で自画素から所定範囲内に存在する画素群の濃度から低濃度側に閾値以上乖離した濃度を有し、且つ、前記走査ラインにおいて連続して並んだ所定数以下の画素を異常画素として抽出する抽出手段と、前記抽出手段によって抽出された異常画素の濃度を、当該濃度よりも高い濃度に補正する補正手段と、前記補正手段によって補正された濃度を含む画像データを出力する出力手段とを備え、前記抽出手段は、ある注目画素の走査方向手前側に連続して位置する所定数の画素群の濃度の平均値を算出し、当該平均値が閾値以上である場合には、当該注目画素が前記異常画素であるか否かを判定し、その結果に基づいて当該注目画素を異常画素として抽出することを特徴とする画像処理装置を提供する。 The present invention also detects a change in density in the line direction of a group of pixels connected to each scanning line based on the density of each pixel included in image data obtained by reading an image on a document in units of scanning lines. A pixel having a density that deviates by more than a threshold from the density of a pixel group existing within a predetermined range from its own pixel on each scanning line and having a predetermined number or less continuously arranged in the scanning line. Extraction means for extracting as abnormal pixels, correction means for correcting the density of the abnormal pixels extracted by the extraction means to a density higher than the density, and image data including the density corrected by the correction means are output. and output means, said extraction means calculates a mean value of the concentration of a predetermined number of pixel groups located continuously in the scanning direction front side of the pixel of interest in the case that the average value is greater than or equal to the threshold The target pixel is equal to or said abnormal pixel, to provide an image processing apparatus characterized by extracting the pixel of interest as an abnormal pixel based on the result.

この画像処理装置によれば、抽出手段は、各走査ライン上で自画素から所定範囲内に存在する画素群の濃度から低濃度側に閾値以上乖離した濃度を有し、且つ、前記走査ラインにおいて連続して並んだ所定数以下の画素を異常画素として抽出する抽出手段と、前記抽出手段によって抽出された異常画素の濃度を、当該濃度よりも高い濃度に補正する。このように所定範囲内に存在する周囲の画素の濃度よりも低い異常画素の濃度を高濃度に補正して、周囲の画素の濃度に近づけることで、読取手段の読取位置に紙粉などのゴミが付着した場合であっても、そのゴミに起因したノイズ画像を読み取った像から除去することができる。なお、自画素の位置から所定範囲内に存在する画素群の濃度よりも低濃度側に閾値以上乖離した濃度を有し、且つ、前記走査ラインにおいて連続して並んだ所定数以下の画素とは、複数画素だけではなく、1つの画素である場合も含む。   According to this image processing apparatus, the extracting means has a density that deviates from the density of the pixel group existing within a predetermined range from the own pixel on each scanning line to a low density side by a threshold or more, and in the scanning line Extraction means for extracting a predetermined number or less of pixels arranged in succession as abnormal pixels, and the density of abnormal pixels extracted by the extraction means are corrected to a density higher than the density. In this way, the density of abnormal pixels lower than the density of surrounding pixels existing within a predetermined range is corrected to a high density and brought close to the density of surrounding pixels, so that dust such as paper dust is present at the reading position of the reading unit. Even if the toner adheres, a noise image caused by the dust can be removed from the read image. The number of pixels having a density that deviates by more than a threshold value from the position of the own pixel to a lower density side than the density of a pixel group existing within a predetermined range, and that is continuously arranged in the scanning line. This includes not only a plurality of pixels but also a single pixel.

また、本発明は、原稿上の像を走査ライン単位で読み取って得られた画像データに含まれる各画素の濃度に基づき、自画素の位置から所定範囲内に存在する画素群の濃度よりも低濃度側に閾値以上乖離した濃度を有し、且つ、前記走査ラインにおいて連続して並んだ所定数以下の画素を異常画素として抽出する抽出手段と、前記抽出手段によって抽出された異常画素の濃度を、当該濃度よりも高い濃度に補正する補正手段と、前記補正手段によって補正された濃度を含む画像データを出力する出力手段とを備え、前記抽出手段は、ある注目画素の走査方向手前側に連続して位置する所定数の画素群の濃度の平均値と、当該注目画素の走査方向奥側に位置する画素の濃度または当該注目画素の走査方向奥側に連続して位置する所定数の画素群の濃度の平均値とを算出し、当該注目画素の濃度が走査方向手前側に位置する前記画素群の濃度の平均値よりも閾値以上低く、且つ、当該注目画素の濃度が走査方向奥側に位置する画素の濃度または所定数の画素群の濃度の平均値よりも閾値以上低い場合には、当該注目画素を前記異常画素であると判定して抽出し、前記注目画素の走査方向手前側に連続して位置する所定数の画素群の画素数が、当該注目画素の走査方向奥側に連続して位置する所定数の画素群の画素数よりも多いことを特徴とする画像処理装置を提供する。 Further, the present invention is based on the density of each pixel included in image data obtained by reading an image on a document in units of scanning lines, and is lower than the density of a pixel group existing within a predetermined range from the position of the own pixel. Extraction means for extracting, as abnormal pixels, a predetermined number or less of pixels continuously arranged in the scanning line and having a density that deviates by more than a threshold on the density side, and the density of abnormal pixels extracted by the extraction means , A correction unit that corrects the density higher than the density, and an output unit that outputs image data including the density corrected by the correction unit. The extraction unit is continuously on the front side in the scanning direction of a certain target pixel. The average value of the density of a predetermined number of pixel groups positioned in the same direction and the density of pixels positioned on the back side in the scanning direction of the target pixel or the predetermined number of pixel groups positioned continuously on the back side in the scanning direction of the target pixel of And the density of the target pixel is lower than the average value of the density of the pixel group positioned on the front side in the scanning direction, and the density of the target pixel is positioned on the back side in the scanning direction. If the density of the target pixel or the average value of the density of the predetermined number of pixel groups is lower than the threshold value, the target pixel is determined to be the abnormal pixel and extracted, and continuously to the front side in the scanning direction of the target pixel. There is provided an image processing apparatus characterized in that the number of pixels in a predetermined number of pixel groups positioned in a row is larger than the number of pixels in a predetermined number of pixel groups continuously located on the back side in the scanning direction of the target pixel. .

また、本発明は原稿上の像を走査ライン単位で読み取って得られた画像データに含まれる各画素の濃度に基づいて各々の走査ライン上に連なる画素群のライン方向の濃度変化を検出し、各走査ライン上で自画素から所定範囲内に存在する画素群の濃度から低濃度側に閾値以上乖離した濃度を有し、且つ、前記走査ラインにおいて連続して並んだ所定数以下の画素を異常画素として抽出する抽出手段と、前記抽出手段によって抽出された異常画素の濃度を、当該濃度よりも高い濃度に補正する補正手段と、前記補正手段によって補正された濃度を含む画像データを出力する出力手段とを備え、前記抽出手段は、ある注目画素の走査方向手前側に連続して位置する所定数の画素群の濃度の平均値と、当該注目画素の走査方向奥側に位置する画素の濃度または当該注目画素の走査方向奥側に連続して位置する所定数の画素群の濃度の平均値とを算出し、当該注目画素の濃度が走査方向手前側に位置する前記画素群の濃度の平均値よりも閾値以上低く、且つ、当該注目画素の濃度が走査方向奥側に位置する画素の濃度または所定数の画素群の濃度の平均値よりも閾値以上低い場合には、当該注目画素を前記異常画素であると判定して抽出し、前記注目画素の走査方向手前側に連続して位置する所定数の画素群の画素数が、当該注目画素の走査方向奥側に連続して位置する所定数の画素群の画素数よりも多いことを特徴とする画像処理装置を提供する。 The present invention also detects a change in density in the line direction of a group of pixels connected to each scanning line based on the density of each pixel included in image data obtained by reading an image on a document in units of scanning lines. A pixel having a density that deviates by more than a threshold from the density of a pixel group existing within a predetermined range from its own pixel on each scanning line and having a predetermined number or less continuously arranged in the scanning line. Extraction means for extracting as abnormal pixels, correction means for correcting the density of the abnormal pixels extracted by the extraction means to a density higher than the density, and image data including the density corrected by the correction means are output. Output means, and the extracting means includes an average value of the density of a predetermined number of pixel groups continuously located on the front side in the scanning direction of a certain target pixel and a pixel located on the back side in the scanning direction of the target pixel. Calculating a density or an average value of the density of a predetermined number of pixel groups continuously located on the back side in the scanning direction of the pixel of interest, and calculating the density of the pixel group on the near side in the scanning direction. When the density of the target pixel is lower than the average value by a threshold value or more and lower than the average value of the density of pixels located on the far side in the scanning direction or the density of a predetermined number of pixel groups, the target pixel is It is determined that the pixel is an abnormal pixel and extracted, and the number of pixels in a predetermined number of pixel groups continuously located on the front side in the scanning direction of the target pixel is continuously located on the back side in the scanning direction of the target pixel. There is provided an image processing apparatus characterized in that the number is larger than the number of pixels of a predetermined number of pixel groups.

また、本発明は、コンピュータに、原稿上の像を走査ライン単位で読み取って得られた画像データに含まれる各画素の濃度に基づき、自画素の位置から所定範囲内に存在する画素群の濃度よりも低濃度側に閾値以上乖離した濃度を有し、且つ、前記走査ラインにおいて連続して並んだ所定数以下の画素を異常画素として抽出する機能と、抽出された前記異常画素の濃度を、当該濃度よりも高い濃度に補正する機能と、補正された濃度を含む画像データを出力する機能とを実現させ、前記抽出する機能は、ある注目画素の走査方向手前側に連続して位置する所定数の画素群の濃度の平均値を算出し、当該平均値が閾値以上である場合には、当該注目画素が前記異常画素であるか否かを判定し、その結果に基づいて当該注目画素を異常画素として抽出することを特徴とするプログラムを提供する。また、本発明は、コンピュータに、原稿上の像を走査ライン単位で読み取って得られた画像データに含まれる各画素の濃度に基づいて各々の走査ライン上に連なる画素群のライン方向の濃度変化を検出し、各走査ライン上で自画素から所定範囲内に存在する画素群の濃度から低濃度側に閾値以上乖離した濃度を有し、且つ、前記走査ラインにおいて連続して並んだ所定数以下の画素を異常画素として抽出する機能と、抽出された前記異常画素の濃度を、当該濃度よりも高い濃度に補正する機能と、補正された濃度を含む画像データを出力する機能とを実現させ、前記抽出する機能は、ある注目画素の走査方向手前側に連続して位置する所定数の画素群の濃度の平均値を算出し、当該平均値が閾値以上である場合には、当該注目画素が前記異常画素であるか否かを判定し、その結果に基づいて当該注目画素を異常画素として抽出することを特徴とするプログラムを提供する。The present invention also provides a computer based on the density of each pixel included in image data obtained by reading an image on a document in units of scanning lines, and the density of a pixel group existing within a predetermined range from the position of the own pixel. A function of extracting a predetermined number or less of pixels continuously arranged in the scanning line as abnormal pixels, and a density of the extracted abnormal pixels. The function of correcting to a density higher than the density and the function of outputting image data including the corrected density are realized, and the extraction function is a predetermined position continuously located in front of a certain pixel in the scanning direction. An average value of the density of a number of pixel groups is calculated, and when the average value is equal to or greater than a threshold value, it is determined whether or not the target pixel is the abnormal pixel, and the target pixel is determined based on the result. As an abnormal pixel It is out to provide a program characterized. The present invention also provides a computer with a density change in a line direction of a group of pixels connected to each scanning line based on the density of each pixel included in image data obtained by reading an image on a document in units of scanning lines. And having a density that deviates by more than a threshold value from the density of a pixel group existing within a predetermined range from its own pixel on each scan line, and is equal to or less than a predetermined number continuously arranged on the scan line A function of extracting the pixel as an abnormal pixel, a function of correcting the density of the extracted abnormal pixel to a density higher than the density, and a function of outputting image data including the corrected density, The extraction function calculates an average value of the density of a predetermined number of pixel groups continuously located in front of a certain pixel in the scanning direction, and when the average value is equal to or greater than a threshold value, Abnormalities It determines whether or not there prime, provides a program characterized by extracting the pixel of interest as an abnormal pixel based on the result.

また、本発明は、コンピュータに、原稿上の像を走査ライン単位で読み取って得られた画像データに含まれる各画素の濃度に基づき、自画素の位置から所定範囲内に存在する画素群の濃度よりも低濃度側に閾値以上乖離した濃度を有し、且つ、前記走査ラインにおいて連続して並んだ所定数以下の画素を異常画素として抽出する機能と、抽出された前記異常画素の濃度を、当該濃度よりも高い濃度に補正する機能と、補正された濃度を含む画像データを出力する機能とを実現させ、前記抽出する機能は、ある注目画素の走査方向手前側に連続して位置する所定数の画素群の濃度の平均値と、当該注目画素の走査方向奥側に位置する画素の濃度または当該注目画素の走査方向奥側に連続して位置する所定数の画素群の濃度の平均値とを算出し、当該注目画素の濃度が走査方向手前側に位置する前記画素群の濃度の平均値よりも閾値以上低く、且つ、当該注目画素の濃度が走査方向奥側に位置する画素の濃度または所定数の画素群の濃度の平均値よりも閾値以上低い場合には、当該注目画素を前記異常画素であると判定して抽出し、前記注目画素の走査方向手前側に連続して位置する所定数の画素群の画素数が、当該注目画素の走査方向奥側に連続して位置する所定数の画素群の画素数よりも多いことを特徴とするプログラムを提供する。また、本発明は、コンピュータに、原稿上の像を走査ライン単位で読み取って得られた画像データに含まれる各画素の濃度に基づいて各々の走査ライン上に連なる画素群のライン方向の濃度変化を検出し、各走査ライン上で自画素から所定範囲内に存在する画素群の濃度から低濃度側に閾値以上乖離した濃度を有し、且つ、前記走査ラインにおいて連続して並んだ所定数以下の画素を異常画素として抽出する機能と、抽出された前記異常画素の濃度を、当該濃度よりも高い濃度に補正する機能と、補正された濃度を含む画像データを出力する機能とを実現させ、前記抽出する機能は、ある注目画素の走査方向手前側に連続して位置する所定数の画素群の濃度の平均値と、当該注目画素の走査方向奥側に位置する画素の濃度または当該注目画素の走査方向奥側に連続して位置する所定数の画素群の濃度の平均値とを算出し、当該注目画素の濃度が走査方向手前側に位置する前記画素群の濃度の平均値よりも閾値以上低く、且つ、当該注目画素の濃度が走査方向奥側に位置する画素の濃度または所定数の画素群の濃度の平均値よりも閾値以上低い場合には、当該注目画素を前記異常画素であると判定して抽出し、前記注目画素の走査方向手前側に連続して位置する所定数の画素群の画素数が、当該注目画素の走査方向奥側に連続して位置する所定数の画素群の画素数よりも多いことを特徴とするプログラムを提供する。 The present invention also provides a computer based on the density of each pixel included in image data obtained by reading an image on a document in units of scanning lines, and the density of a pixel group existing within a predetermined range from the position of the own pixel. A function of extracting a predetermined number or less of pixels continuously arranged in the scanning line as abnormal pixels, and a density of the extracted abnormal pixels. The function of correcting to a density higher than the density and the function of outputting image data including the corrected density are realized, and the extraction function is a predetermined position continuously located in front of a certain pixel in the scanning direction. The average value of the density of a number of pixel groups and the average value of the density of pixels located on the back side in the scanning direction of the target pixel or the density values of a predetermined number of pixel groups continuously located on the back side in the scanning direction of the target pixel And The density of the pixel of interest is lower than the average value of the density of the pixel group located on the front side in the scanning direction, and the density of the pixel of interest located on the back side in the scanning direction or a predetermined number of pixels When the threshold value is lower than the average value of the group density, the pixel of interest is determined to be the abnormal pixel and extracted, and a predetermined number of pixel groups continuously located on the front side in the scanning direction of the pixel of interest There is provided a program characterized in that the number of pixels is larger than the number of pixels of a predetermined number of pixel groups that are continuously located on the back side in the scanning direction of the target pixel. The present invention also provides a computer with a density change in a line direction of a group of pixels connected to each scanning line based on the density of each pixel included in image data obtained by reading an image on a document in units of scanning lines. And having a density that deviates by more than a threshold value from the density of a pixel group existing within a predetermined range from its own pixel on each scan line, and is equal to or less than a predetermined number continuously arranged on the scan line A function of extracting the pixel as an abnormal pixel, a function of correcting the density of the extracted abnormal pixel to a density higher than the density, and a function of outputting image data including the corrected density, The extraction function includes the average value of the density of a predetermined number of pixel groups continuously located on the front side in the scanning direction of a certain target pixel, the density of the pixel located on the back side in the scanning direction of the target pixel, or the target pixel. The average value of the density of a predetermined number of pixel groups continuously located on the back side in the scanning direction is calculated, and the density of the target pixel is greater than the threshold value than the average value of the density of the pixel group located on the near side in the scanning direction If the density of the pixel of interest is lower than the threshold value or the average value of the density of the pixels located on the far side in the scanning direction or the density of a predetermined number of pixel groups, the pixel of interest is the abnormal pixel. The number of pixels of a predetermined number of pixel groups continuously located on the front side in the scanning direction of the target pixel is determined and extracted, and the number of pixels of the predetermined number of pixel groups continuously located on the back side in the scanning direction of the target pixel is determined. Provided is a program characterized by being larger than the number of pixels .

以下、図面を参照し、本発明の実施の形態について説明する。
図1はこの発明の一実施形態である画像処理装置の構成を示すブロック図である。この画像処理装置においては、シェーディング補正を経て位相補正された画像データに対して、ゴミに起因したノイズ画像の検出が試みられ、ノイズ画像が検出されると、そのノイズ画像が除去される。ノイズ画像が除去された画像は、必要に応じて拡大縮小等の画像処理が施されてこの画像処理装置から出力されることになる。
Embodiments of the present invention will be described below with reference to the drawings.
FIG. 1 is a block diagram showing a configuration of an image processing apparatus according to an embodiment of the present invention. In this image processing apparatus, detection of a noise image caused by dust is tried for image data that has undergone shading correction and phase correction, and when a noise image is detected, the noise image is removed. The image from which the noise image has been removed is subjected to image processing such as enlargement / reduction as necessary, and is output from the image processing apparatus.

図1において、CPU100は、この画像処理装置の各部を制御する手段である。具体的には、CPU100は、CCD駆動回路2によって行われるCCD部1の駆動の周期を設定し、出力増幅回路4A〜4Cの利得の制御を行ったり、シェーディング補正回路6A〜6C、ゴミ検出回路9、ノイズ除去回路10、画像処理回路11などの各種制御を行う。CCD部1は、原稿の搬送経路上の最上流側読取位置から最下流側読取位置までの3箇所の読取位置の各々において、図示しない搬送装置によって搬送される原稿上の像を主走査ライン単位で読み取り、読み取った像の濃度に応じたアナログ画像信号R,G,Bを出力する。   In FIG. 1, a CPU 100 is means for controlling each part of the image processing apparatus. Specifically, the CPU 100 sets the driving period of the CCD unit 1 performed by the CCD driving circuit 2 and controls the gains of the output amplifier circuits 4A to 4C, the shading correction circuits 6A to 6C, and the dust detection circuit. 9. Various controls such as the noise removal circuit 10 and the image processing circuit 11 are performed. The CCD unit 1 scans an image on a document conveyed by a conveying device (not shown) at each of three reading positions from the most upstream reading position to the most downstream reading position on the document conveyance path in units of main scanning lines. The analog image signals R, G, and B corresponding to the density of the read image are output.

ここで、図2は、原稿の搬送装置の構成および原稿の搬送経路上の読取位置からCCD部1に至るまでの光学系の構成を示す図である。図2において、原稿13は、引き込みローラ14により、1枚ずつ搬送ローラ15まで運ばれる。搬送ローラ15は、原稿搬送方向を変えてプラテンガラス16に向けて原稿13を搬送する。このようにして搬送される原稿13は、バックプラテン18によってプラテンガラス16に押さえつけられ、最後に排出ローラ19によって搬送装置から排出される。上述した上流側読取位置から下流側読取位置までの3箇所の読取位置は、プラテンガラス16上に各々設けられている。これらの各読取位置における各原稿画像は、第1ミラー20、第2ミラー21、第3ミラー22により光路を変え、レンズ23により縮小され、CCD部1を構成する3個のCCDラインセンサ1A、1B、1Cに至る。   Here, FIG. 2 is a diagram showing the configuration of the document conveying device and the configuration of the optical system from the reading position on the document conveying path to the CCD unit 1. In FIG. 2, the document 13 is conveyed by the drawing roller 14 to the conveyance roller 15 one by one. The transport roller 15 transports the document 13 toward the platen glass 16 while changing the document transport direction. The document 13 conveyed in this manner is pressed against the platen glass 16 by the back platen 18 and is finally discharged from the conveying device by the discharge roller 19. The three reading positions from the upstream reading position to the downstream reading position are provided on the platen glass 16, respectively. Each original image at each reading position is changed by the first mirror 20, the second mirror 21, and the third mirror 22, and is reduced by the lens 23, and the three CCD line sensors 1 A constituting the CCD unit 1. 1B, 1C.

CCDラインセンサ1Cは、プラテンガラス16上の最上流側の読取位置Cにおいて、原稿搬送方向を横切る方向(走査方向)に一直線(ライン)上に並んだN個の画素のB色成分の濃度を表す画像信号Bを出力する。また、CCDラインセンサ1Bは、最上流側の読取位置から主走査線4本分の距離(以下、単に4ライン相当という)だけ下流に進んだ読取位置Bにおいて、走査方向に一直線上に並んだN個の画素のG色成分の濃度を表す画像信号Gを出力する。そして、CCDラインセンサ1Aは、画像信号Gに対応した読取位置からさらに4ライン相当下流に進んだ最下流側の読取位置Aにおいて、主走査ラインにおいて走査方向に一直線上に並んだN個の画素のR色成分の濃度を表す画像信号Rを出力する。   The CCD line sensor 1C calculates the density of the B color component of N pixels aligned on a straight line (line) in a direction (scanning direction) crossing the document conveyance direction at the reading position C on the most upstream side on the platen glass 16. The image signal B to be expressed is output. Further, the CCD line sensor 1B is aligned in the scanning direction at a reading position B that has traveled downstream from the reading position on the most upstream side by a distance of four main scanning lines (hereinafter simply referred to as four lines). An image signal G representing the density of the G color component of N pixels is output. Then, the CCD line sensor 1A has N pixels arranged in a straight line in the scanning direction on the main scanning line at the reading position A on the most downstream side that has advanced further downstream by 4 lines from the reading position corresponding to the image signal G. An image signal R representing the density of the R color component is output.

再び図1の説明に戻る。CCD部1の後段には、サンプルホールド回路3A、出力増幅回路4A、A/D変換回路5Aおよびシェーデイング補正回路6Aからなる信号処理系Aと、サンプルホールド回路3B、出力増幅回路4B、A/D変換回路5Bおよびシェーデイング補正回路6Bからなる信号処理系Bと、サンプルホールド回路3C、出力増幅回路4C、A/D変換回路5Cおよびシェーデイング補正回路6Cからなる信号処理系Cが設けられている。信号処理系A〜Cは、読取位置A、B、Cにおいて各々得られた画像信号R、画像信号G、画像信号Bに各々対応した信号処理系である。   Returning to the description of FIG. 1 again. In the subsequent stage of the CCD unit 1, a signal processing system A including a sample hold circuit 3A, an output amplifier circuit 4A, an A / D conversion circuit 5A, and a shading correction circuit 6A, a sample hold circuit 3B, an output amplifier circuit 4B, A / A signal processing system B including a D conversion circuit 5B and a shading correction circuit 6B, and a signal processing system C including a sample hold circuit 3C, an output amplification circuit 4C, an A / D conversion circuit 5C, and a shading correction circuit 6C are provided. Yes. The signal processing systems A to C are signal processing systems respectively corresponding to the image signal R, the image signal G, and the image signal B obtained at the reading positions A, B, and C, respectively.

ここで、CCD部1から得られるアナログ画像信号R,G,Bは、サンプルホールド回路3A〜3Cにより各々サンプリングされた後、出力増幅回路4A〜4Cによって各々適正なレベルに増幅され、A/D変換回路5A〜5Cにより各々デジタル画像データR,G,Bに変換される。これらのデジタル画像データR,G,Bに対し、シェーデイング補正回路6A〜6Cによって、CCDラインセンサ1A〜1Cの感度バラツキや光学系の光量分布特性に対応した補正が施される。このようにして、原稿画像を表す各画素の濃度を含むデジタル画像データが生成されることになる。   Here, the analog image signals R, G, and B obtained from the CCD unit 1 are sampled by the sample hold circuits 3A to 3C, respectively, and then amplified to appropriate levels by the output amplifier circuits 4A to 4C, respectively. The signals are converted into digital image data R, G, and B by conversion circuits 5A to 5C, respectively. These digital image data R, G, and B are corrected by the shading correction circuits 6A to 6C according to the sensitivity variations of the CCD line sensors 1A to 1C and the light quantity distribution characteristics of the optical system. In this way, digital image data including the density of each pixel representing the document image is generated.

出力遅延回路7B,7Cは、シェーデイング補正回路6B,6Cから出力される画像データG,Bをそれぞれ4ライン相当、8ライン相当の遅延時間だけ遅延させ、画像データRと同相の画像データとして出力する。ラインメモリ8は、シェーデイング補正回路6Aから出力される画像データR、出力遅延回路7B,7Cから出力される画像データG,Bを各々所定ライン数分だけ記憶するメモリである。   The output delay circuits 7B and 7C delay the image data G and B output from the shading correction circuits 6B and 6C by delay times corresponding to 4 lines and 8 lines, respectively, and output them as image data in phase with the image data R. To do. The line memory 8 is a memory for storing the image data R output from the shading correction circuit 6A and the image data G and B output from the output delay circuits 7B and 7C by a predetermined number of lines.

ゴミ検出回路9は、シェーデイング補正回路6A、出力遅延回路7B,7Cのそれぞれからラインメモリ8内に書き込まれた画像データに基づいて、ゴミの影響を受けている画素を異常画素として抽出し、抽出した異常画素の主走査ライン上の位置を示すゴミ検出データを出力する。   The dust detection circuit 9 extracts pixels affected by dust as abnormal pixels based on the image data written in the line memory 8 from each of the shading correction circuit 6A and the output delay circuits 7B and 7C. Dust detection data indicating the position of the extracted abnormal pixel on the main scanning line is output.

ここで、ゴミ検出回路9が異常画素を抽出するアルゴリズムについて説明する。
まず、ゴミ検出回路9は、画像データB,G,Rに含まれる各画素の濃度に基づいて、各々の走査ラインで並んだ各画素の濃度を検出する。これにより、図3に示すように、走査(主走査)方向に連なる各画素の濃度変化が検出されることになる。ゴミ検出回路9の目的は、図3に示すような、周囲にある画素の濃度よりも低濃度側に著しく変化し、且つ、所定数以内(本実施形態では2画素以内)で連続して並ぶ画素群Pを特定することにある。本実施形態では、画像読取位置に付着するゴミとして、記録紙から発生した紙粉を想定しており、上述したような並ぶ画素群Pは、この紙粉のような低濃度の色のゴミの影響を受けている画素である。なお、図3においては、濃度が256ビットで表されているものとする。
Here, an algorithm by which the dust detection circuit 9 extracts abnormal pixels will be described.
First, the dust detection circuit 9 detects the density of each pixel arranged in each scanning line based on the density of each pixel included in the image data B, G, and R. As a result, as shown in FIG. 3, a change in density of each pixel connected in the scanning (main scanning) direction is detected. The purpose of the dust detection circuit 9, as shown in FIG. 3, is remarkably changed to a lower density side than the density of surrounding pixels, and is continuously arranged within a predetermined number (in this embodiment, within two pixels). The purpose is to specify the pixel group P. In the present embodiment, paper dust generated from recording paper is assumed as dust adhering to the image reading position, and the above-described pixel group P is arranged with low density color dust such as paper dust. A pixel that is affected. In FIG. 3, it is assumed that the density is represented by 256 bits.

ゴミ検出回路9は、各画素の濃度を検出すると、図4に示すように主走査ライン上のある画素p1に注目し、その注目画素p1の位置から走査方向手前側の所定範囲内に位置する画素群(ここでは走査方向手前側に位置するの16個の画素群Pf)の濃度の平均値a1を算出する。そして、算出された画素群Pfの濃度平均値a1が、予め決められた閾値以上であれば、ゴミ検出回路9は画素群Pfの濃度平均値a1と、注目画素p1の濃度z1とを比較する。   When the dust detection circuit 9 detects the density of each pixel, as shown in FIG. 4, the dust detection circuit 9 pays attention to a certain pixel p1 on the main scanning line, and is located within a predetermined range on the front side in the scanning direction from the position of the target pixel p1. The average value a1 of the density of the pixel group (here, the 16 pixel groups Pf located on the front side in the scanning direction) is calculated. If the calculated density average value a1 of the pixel group Pf is equal to or greater than a predetermined threshold value, the dust detection circuit 9 compares the density average value a1 of the pixel group Pf with the density z1 of the target pixel p1. .

ここで、算出された画素群Pfの濃度平均値a1が、予め決められた閾値以上であるか否かを判定する理由は以下の通りである。ゴミ検出回路9の目的は前述したように、周囲にある画素の濃度よりも低濃度側に著しく変化する画素群を特定することにあるが、それを実現するためには、周囲の画素群が比較的高い濃度であることが必要である。なぜなら、周囲の画素群が例えば白色に近いような相当低い濃度であれば、それよりも著しく低い濃度の画素群を見つけ出すことは困難だからである。従って、ゴミ検出回路9は、画素群Pfの濃度平均値a1を閾値と比較し、周囲にある画素の濃度よりも低濃度側に著しく変化する画素群を抽出することができる程度の濃度であるかどうかを確認してから、画素群Pfの濃度平均値a1と、注目画素p1の濃度z1とを比較するというわけである。   Here, the reason for determining whether or not the calculated density average value a1 of the pixel group Pf is greater than or equal to a predetermined threshold is as follows. As described above, the purpose of the dust detection circuit 9 is to specify a pixel group that significantly changes to a lower density side than the density of the surrounding pixels. A relatively high concentration is required. This is because it is difficult to find a pixel group having a significantly lower density if the surrounding pixel group has a considerably low density such as close to white. Therefore, the dust detection circuit 9 compares the density average value a1 of the pixel group Pf with the threshold value, and the density is such that it can extract a pixel group that changes significantly to a lower density side than the density of surrounding pixels. After confirming whether or not, the density average value a1 of the pixel group Pf is compared with the density z1 of the target pixel p1.

そして、ゴミ検出回路9は、注目画素p1の濃度z1が画素群Pfの濃度平均値a1から低濃度側に閾値s1以上乖離している場合には、“低濃度側に濃度の段差がある”と判定する。   When the density z1 of the pixel of interest p1 deviates from the density average value a1 of the pixel group Pf by the threshold value s1 or more on the low density side, the dust detection circuit 9 “has a density step on the low density side”. Is determined.

次に、ゴミ検出回路9は、注目画素p1から走査方向に2画素分だけ奥に存在する画素から連なる4個の画素群Pbの濃度の平均値a2を算出する。そして、ゴミ検出回路9は、注目画素p1の濃度z1と、画素群Pbの濃度平均値a2とを比較し、注目画素p1の濃度z1が画素群Pbの濃度平均値a2から低濃度側に閾値s2以上乖離している場合には、“高濃度側に濃度の段差がある”と判定する。ゴミ検出回路9は、このように低濃度側及び高濃度側に段差があると判定された注目画素p1を、ゴミの影響によって原稿画像の濃度を正確に表していない「異常画素」と判定する。さらに、ゴミ検出回路9は、異常画素と判定した注目画素p1の1画素分奥に存在する隣の画素p2の濃度z2を、画素群Pfの濃度平均値a1及び画素群Pbの濃度平均値a2と比較する。この比較の結果、注目画素p2の濃度z2が、画素群Pfの濃度平均値a1から低濃度側に閾値s1以上乖離し、且つ、画素群Pfの濃度平均値a2から低濃度側に閾値s2以上乖離している場合には、ゴミ検出回路9は注目画素p2も「異常画素」であると判定する。なお、注目画素p2の濃度z2がこれらの濃度条件を満たさない場合には、注目画素p1のみが異常画素として判定されることになる。   Next, the dust detection circuit 9 calculates the average value a2 of the densities of the four pixel groups Pb connected from the pixel of interest p1 that is two pixels behind in the scanning direction. Then, the dust detection circuit 9 compares the density z1 of the target pixel p1 with the average density value a2 of the pixel group Pb, and the density z1 of the target pixel p1 is a threshold value from the density average value a2 of the pixel group Pb to the lower density side. If the difference is more than s2, it is determined that “there is a density step on the high density side”. The dust detection circuit 9 determines the pixel of interest p1 determined to have a step on the low density side and the high density side as an “abnormal pixel” that does not accurately represent the density of the document image due to the influence of dust. . Further, the dust detection circuit 9 uses the density z2 of the adjacent pixel p2 existing one pixel behind the target pixel p1 determined as an abnormal pixel, as the density average value a1 of the pixel group Pf and the density average value a2 of the pixel group Pb. Compare with As a result of this comparison, the density z2 of the pixel of interest p2 deviates from the density average value a1 of the pixel group Pf by a threshold value s1 or more to the low density side, and the threshold value s2 or more from the density average value a2 of the pixel group Pf to the low density side. If there is a divergence, the dust detection circuit 9 determines that the pixel of interest p2 is also an “abnormal pixel”. If the density z2 of the target pixel p2 does not satisfy these density conditions, only the target pixel p1 is determined as an abnormal pixel.

走査方向手前側の画素群Pfの画素数が16個であるのに対し、走査方向奥側の画素群Pbの画素数が4個である理由は以下の通りである。
走査方向手前側の画素群Pfの濃度平均値が閾値以上であることを確認する理由は、前述したとおり、周囲の画素の濃度よりも低濃度側に著しく変化する画素群を抽出するためである。つまり、注目画素の周囲の画像の分布状況を調べて、比較的高い密度で画像が分布していることを確認するということである。このような画像の分布状況を調べるためには、比較的多くの画素群の濃度平均値を採る必要がある。これに対し、走査方向奥側の画素群Pbと注目画素との濃度を比較する理由は、走査方向奥側の画素群Pbと注目画素との間に濃度の段差があるか否かを調べるためである。このように濃度の段差があるか否かを調べるためには、比較的少ない画素数で足りる。このような理由から、走査方向手前側の画素群Pfの画素数は、走査方向奥側の画素群Pbの画素数よりも多いのである。
The reason why the number of pixels in the pixel group Pf on the front side in the scanning direction is 16 while the number of pixels in the pixel group Pb on the far side in the scanning direction is four is as follows.
The reason for confirming that the average density value of the pixel group Pf on the near side in the scanning direction is equal to or greater than the threshold is to extract a pixel group that changes significantly to the lower density side than the density of the surrounding pixels as described above. . That is, the distribution state of the image around the pixel of interest is checked to confirm that the image is distributed at a relatively high density. In order to examine such an image distribution state, it is necessary to take a density average value of a relatively large number of pixels. On the other hand, the reason why the density of the pixel group Pb on the back side in the scanning direction is compared with the target pixel is to check whether there is a density difference between the pixel group Pb on the back side in the scanning direction and the target pixel. It is. In order to check whether there is a density step in this way, a relatively small number of pixels is sufficient. For this reason, the number of pixels in the pixel group Pf on the near side in the scanning direction is larger than the number of pixels in the pixel group Pb on the far side in the scanning direction.

前述したように、画像読取位置に付着するゴミとして、記録紙から発生した紙粉を想定している。例えばCCD部1の読み取り解像度を600dpiとしたとき、紙粉の大きさはおおよそ2/600inch以内に収まる。このため、走査方向に連続して並んだ2画素がその周囲の画素群の濃度と比較して上記のような濃度条件を満たす場合には、その画素群を「異常画素」と判定する。従って、仮に走査方向に連続して並んだ3画素が上記のような濃度条件を満たしたとしても、その画素群が異常画素と判定されることはない。原稿上の画像には低濃度の線分画像が含まれている場合(例えば比較的暗い背景画像中に白っぽい線分が引かれているような場合)があるが、そのような線分画像のうち最も細い線分画像は3画素程度の太さしかないものも存在する。このような低濃度で細い線分画像とノイズ画像とを区別するために、ゴミ検出回路9は、上記のような濃度条件を満たす連続画素群が2画素以内であれば異常画素と判定する一方、上記のような濃度条件を満たす連続画素群が3画素以上であれば異常画素とは判定しない。なお、本実施形態では、画像読み取り時の解像度600dpiであるから、異常画素と判定する連続画素数を最高2画素としているが、画像読み取り時の解像度が変われば、異常画素と判定する連続画素数も変わる。よって、異常画素の判定基準となる連続画素数は、画像読み取り時の解像度や、用いる用紙から発生する紙粉の大きさなどを勘案して適宜定めればよい。特に紙粉の大きさは、使用される原稿の用紙の種類などに依存するので、異常画素の判定基準となる連続画素数を、用紙の種類などに応じて適宜変えるようにしてもよい。   As described above, paper dust generated from the recording paper is assumed as dust attached to the image reading position. For example, when the reading resolution of the CCD unit 1 is 600 dpi, the size of the paper powder is approximately within 2/600 inch. For this reason, when two pixels arranged continuously in the scanning direction satisfy the above-described density condition as compared with the density of the surrounding pixel group, the pixel group is determined as an “abnormal pixel”. Therefore, even if three pixels arranged continuously in the scanning direction satisfy the above-described density condition, the pixel group is not determined to be an abnormal pixel. The image on the document may contain a low-density line segment image (for example, a whitish line segment is drawn in a relatively dark background image). Some of the thinnest line segment images have a thickness of only about 3 pixels. In order to distinguish such a low-density thin line segment image from a noise image, the dust detection circuit 9 determines that the pixel is abnormal if the number of continuous pixels satisfying the above-described density condition is within two pixels. If the number of continuous pixels satisfying the above-described density condition is 3 pixels or more, it is not determined as an abnormal pixel. In this embodiment, since the resolution at the time of image reading is 600 dpi, the maximum number of continuous pixels determined as abnormal pixels is two pixels. However, if the resolution at the time of image reading changes, the number of continuous pixels determined as abnormal pixels. Will also change. Therefore, the number of continuous pixels that is a criterion for determining abnormal pixels may be appropriately determined in consideration of the resolution at the time of image reading, the size of paper dust generated from the paper to be used, and the like. In particular, since the size of the paper dust depends on the type of paper used for the document, the number of continuous pixels serving as a criterion for determining abnormal pixels may be appropriately changed according to the type of paper.

このように、ゴミ検出回路9は、画像データに含まれる各画素の濃度に基づいて各々の主走査ラインにおいて連なる複数画素のライン方向の濃度変化を検出し、当該ライン上で注目画素の位置から所定範囲内に存在する画素群(走査方向手前側の16個の画素群と走査方向奥側の4画素群)の濃度から低濃度側に閾値以上乖離した濃度の画素で、且つ、主走査ラインにおいて連続して並んだ所定数(2画素)以下の画素を異常画素として抽出する。そして、ゴミ検出回路9は、抽出した異常画素の主走査ライン上の位置を示すゴミ検出データをノイズ除去回路10に出力する。   As described above, the dust detection circuit 9 detects a change in density in the line direction of a plurality of pixels connected in each main scanning line based on the density of each pixel included in the image data, and starts from the position of the target pixel on the line. A pixel having a density that deviates from the density of a pixel group (16 pixel groups on the front side in the scanning direction and 4 pixel group on the back side in the scanning direction) existing within a predetermined range to a low density side by a threshold or more, and the main scanning line The pixels of a predetermined number (2 pixels) or less that are continuously arranged in are extracted as abnormal pixels. The dust detection circuit 9 outputs dust detection data indicating the position of the extracted abnormal pixel on the main scanning line to the noise removal circuit 10.

ノイズ除去回路10は、ゴミ検出回路9からのゴミ検出データに基づいて異常画素の位置を特定し、その異常画素の濃度をより高濃度に補正することで、画像データB,G,Rからノイズ画像を除去する。ここで、図5は、ノイズ除去回路10によって行われるノイズ除去のための処理の内容を示している。図5に示すように、ノイズ除去回路10は、異常画素として抽出された注目画素p1の濃度を走査方向手前側に位置する画素p1’の濃度に置換し、異常画素として抽出された注目画素p2の濃度を走査方向奥側に位置する画素p2’の濃度に置換する。仮に、異常画素として1つの注目画素p1のみが抽出された場合は、走査方向手前側に位置する画素p1’の濃度で置換してもよいし、走査方向奥に位置する画素p2’の濃度に置換してもよい。このような処理が、ゴミ検出データによって示される全ての異常画素について実行されることにより、ラインメモリ8に格納された画像データからゴミに起因したスジ状のノイズ画像が除去される。そして、このノイズ除去の行われた画像データが画像処理回路11に送られる。   The noise removal circuit 10 specifies the position of the abnormal pixel based on the dust detection data from the dust detection circuit 9, and corrects the density of the abnormal pixel to a higher density, thereby removing noise from the image data B, G, and R. Remove the image. Here, FIG. 5 shows the contents of processing for noise removal performed by the noise removal circuit 10. As shown in FIG. 5, the noise removal circuit 10 replaces the density of the pixel of interest p1 extracted as the abnormal pixel with the density of the pixel p1 ′ located on the front side in the scanning direction, and extracts the pixel of interest p2 extracted as the abnormal pixel. Is replaced with the density of the pixel p2 ′ located on the far side in the scanning direction. If only one pixel of interest p1 is extracted as an abnormal pixel, it may be replaced with the density of the pixel p1 ′ located on the front side in the scanning direction, or the density of the pixel p2 ′ located on the far side in the scanning direction. It may be replaced. Such processing is executed for all abnormal pixels indicated by the dust detection data, so that streak-like noise images due to dust are removed from the image data stored in the line memory 8. Then, the image data from which the noise is removed is sent to the image processing circuit 11.

画像処理回路11は、ノイズ除去回路10から出力される画像データに対し、この画像処理装置が搭載された装置(デジタル複写機、スキャナなど)が必要とする画像処理、例えば拡大縮小処理、地肌除去処理、2値化処理などを施す。そして、画像処理回路11は、これらの処理を施した画像データを出力する。この画像データに基づいて画像形成が行われるなどの各種処理がなされる。   The image processing circuit 11 performs image processing required for a device (digital copying machine, scanner, etc.) on which the image processing device is mounted, for example, enlargement / reduction processing, background removal, on the image data output from the noise removal circuit 10. Processing, binarization processing, etc. are performed. Then, the image processing circuit 11 outputs the image data subjected to these processes. Various processes such as image formation are performed based on the image data.

以上説明したように、本実施形態によれば、周囲の画素群の濃度よりも著しく低い濃度の画素を異常画素として抽出し、この異常画素の濃度を適切に補正する。従来は、背景板との濃度差で異常画素を検出していたが故に背景板と同程度の濃度の異常画素を検出することが出来なかったが、本実施形態によれば画像中の濃度差に着目して異常画素を見つけ出すので、紙粉などの白色のゴミの影響を受けた異常画素であってもより正確に検出することが可能となる。また、本実施形態で説明した方法によって紙粉などの白色のゴミの影響を受けた異常画素を除去するとともに、特開2005−64913号公報に開示された方法によって異物等の黒色のゴミ影響を受けた異常画素を除去することで、如何なる種類のゴミが画像読み取り位置に付着したとしても、その影響を受けずに済む。   As described above, according to the present embodiment, pixels having a density significantly lower than the density of the surrounding pixel group are extracted as abnormal pixels, and the density of the abnormal pixels is appropriately corrected. In the past, abnormal pixels were detected based on the density difference from the background plate, and thus abnormal pixels having the same density as that of the background plate could not be detected. Since the abnormal pixel is found by paying attention to the above, even an abnormal pixel affected by white dust such as paper dust can be detected more accurately. Further, abnormal pixels affected by white dust such as paper dust are removed by the method described in the present embodiment, and black dust such as foreign matter is affected by the method disclosed in Japanese Patent Laid-Open No. 2005-64913. By removing the received abnormal pixels, any kind of dust attached to the image reading position is not affected by the influence.

上述した実施形態は次のような変形が可能である。
例えば異常画素の検出精度を向上させるために、図6のような構成としてもよい。この図6に示した各構成のうち、図1に示した構成と同じものには同一の符号を付している。図6の構成においては次のような動作となる。
ゴミ検出回路9aは、走査ライン毎に上記のような異常画素の検出処理を試みるが、これら各走査ラインについての異常画素の検出結果を複数ライン分にわたってラインメモリ8aに記憶しておく。そして、ゴミ検出回路9aは、複数の走査ラインにわたって、各走査ラインの同一位置から異常画素が抽出された頻度又は回数が閾値を超えるか否かを判断し、閾値を超えると判断した場合には、ノイズ除去回路10がそれら複数の走査ラインにわたって異常画素の濃度を補正する。各々の走査ライン単位では異常画素の検出結果に多少ばらつきが生じる可能性があるが、複数の走査ライン分の検出結果に基づいて異常画素の検出を試みるようにすれば、その検出精度を高くすることができる。なお、異常画素の濃度を補正する際には、異常画素の検出対象となった複数の走査ラインの全てに遡って補正してもよいし、異常画素が検出されたラインのみにおいて補正するだけでもよい。
The embodiment described above can be modified as follows.
For example, a configuration as shown in FIG. 6 may be used in order to improve the detection accuracy of abnormal pixels. Among the components shown in FIG. 6, the same components as those shown in FIG. 1 are denoted by the same reference numerals. The following operation is performed in the configuration of FIG.
The dust detection circuit 9a attempts to detect abnormal pixels as described above for each scanning line, but stores abnormal pixel detection results for each scanning line in the line memory 8a over a plurality of lines. Then, the dust detection circuit 9a determines whether or not the frequency or the number of times that abnormal pixels are extracted from the same position of each scanning line over a plurality of scanning lines exceeds a threshold value. The noise removal circuit 10 corrects the density of abnormal pixels over the plurality of scanning lines. Although there may be some variation in the detection results of abnormal pixels in each scanning line unit, if detection of abnormal pixels is attempted based on the detection results for a plurality of scanning lines, the detection accuracy is increased. be able to. When correcting the density of abnormal pixels, correction may be made retroactively to all of the plurality of scanning lines that are the detection target of abnormal pixels, or only by correcting the lines where abnormal pixels are detected. Good.

また、実施形態では、R,G,Bの画像データを処理対象としているが、これに限らず、例えばR,G,BをLabへと色空間変換して得られる画像データL,a,bであっても、多値画像データであれば、実施形態の説明と同様に異常画素を検出し、それを補正することができる。つまり、画像データの色空間の種類は特に限定されない。   In the embodiment, R, G, and B image data are processed. However, the present invention is not limited to this. For example, image data L, a, and b obtained by color space conversion of R, G, and B into Lab. Even so, if it is multi-valued image data, abnormal pixels can be detected and corrected as in the description of the embodiment. That is, the type of color space of the image data is not particularly limited.

また、実施形態では、注目画素p1の位置から走査方向手前側の所定範囲内に位置する画素群Pfを16個の画素としたが、画素数はこれに限らない。同様に、実施形態では、注目画素p1の位置から走査方向奥側の所定範囲内に位置する画素群Pbを4個の画素としたが、画素数はこれに限らない。画素群Pfは、前述したように比較的高い密度で画像が分布していることを確認するという目的から、比較的多くの画素であることが望ましいが、画素群Pbは最低1つであってもよい。画素(群)Pbが1つの画素からなる場合には、ゴミ検出回路9は、画素(群)Pbの平均値を算出する必要はなく、その画素そのものの濃度を注目画素の濃度を比較すればよい。   In the embodiment, the pixel group Pf located within the predetermined range on the near side in the scanning direction from the position of the target pixel p1 is 16 pixels, but the number of pixels is not limited to this. Similarly, in the embodiment, the pixel group Pb positioned within a predetermined range on the back side in the scanning direction from the position of the target pixel p1 is four pixels, but the number of pixels is not limited thereto. The pixel group Pf is desirably a relatively large number of pixels for the purpose of confirming that the image is distributed at a relatively high density as described above, but the pixel group Pb is at least one. Also good. When the pixel (group) Pb is composed of one pixel, the dust detection circuit 9 does not need to calculate the average value of the pixel (group) Pb, and compares the density of the pixel itself with the density of the target pixel. Good.

上述した実施形態では、ハードウェア(回路)によって、異常画素の検出とその除去を行っていたが、これをソフトウェア(コンピュータプログラム)によって実現するようにしてもよい。つまり、図7のブロック図に示すように、画像処理装置が画像データを記憶可能な大容量の画像メモリ110を備え、且つ、図示せぬ記憶部にソフトウェア120を記憶している。なお、この図7に示した各構成のうち、図1に示した構成と同じものには同一の符号を付している。CPU100がソフトウェア120を実行することで、画像メモリ110に記憶された画像データに対して、上述のゴミ検出回路9及びノイズ除去回路10と同等の処理を実行する。つまり、このソフトウェア120には、コンピュータに原稿上の像を走査ライン単位で読み取って得られた画像データに含まれる各画素の濃度に基づき、各々の走査ライン上に連なる画素群のライン方向の濃度変化を検出する機能と、各走査ライン上で自画素から所定範囲内に存在する画素群の濃度から低濃度側に閾値以上乖離した濃度を有し、且つ、その走査ラインにおいて連続して並んだ所定数以下の画素を異常画素として抽出する機能と、抽出された前記異常画素の濃度を、当該濃度よりも高い濃度に補正し、補正された前記異常画素の濃度を含む画像データを出力する機能とを実現させるものである。なお、このソフトウェアは、磁気テープ、磁気ディスク、フロッピー(登録商標)ディスク、光記録媒体、光磁気記録媒体、CD(Compact Disk)−ROM、DVD(Digital Versatile Disk)、RAMなどの記録媒体に記録した状態で画像処理装置に提供し得る。また、インターネットのようなネットワークを介して画像処理装置に提供することも可能である。   In the above-described embodiment, detection and removal of abnormal pixels are performed by hardware (circuit), but this may be realized by software (computer program). That is, as shown in the block diagram of FIG. 7, the image processing apparatus includes a large-capacity image memory 110 capable of storing image data, and software 120 is stored in a storage unit (not shown). Of the components shown in FIG. 7, the same components as those shown in FIG. When the CPU 100 executes the software 120, processing equivalent to that of the dust detection circuit 9 and the noise removal circuit 10 described above is executed on the image data stored in the image memory 110. That is, the software 120 uses the density of each pixel group on the scanning line in the line direction based on the density of each pixel included in the image data obtained by reading the image on the document in units of scanning lines by the computer. A function for detecting a change and a density that deviates from the density of a pixel group existing within a predetermined range from its own pixel to a low density side on each scanning line by a threshold value or more and is continuously arranged on the scanning line A function of extracting a predetermined number or less of pixels as abnormal pixels, a function of correcting the density of the extracted abnormal pixels to a density higher than the density, and outputting image data including the corrected density of the abnormal pixels To achieve this. The software is recorded on a recording medium such as a magnetic tape, a magnetic disk, a floppy (registered trademark) disk, an optical recording medium, a magneto-optical recording medium, a CD (Compact Disk) -ROM, a DVD (Digital Versatile Disk), or a RAM. In such a state, the image processing apparatus can be provided. It is also possible to provide the image processing apparatus via a network such as the Internet.

この発明の一実施形態である画像処理装置の構成を示すブロック図である。1 is a block diagram illustrating a configuration of an image processing apparatus according to an embodiment of the present invention. 同実施形態における原稿の搬送装置および原稿の読取位置からCCD部に至るまでの光学系の構成を示す図である。2 is a diagram illustrating a configuration of an optical system from a document conveying device and a document reading position to a CCD unit in the embodiment. FIG. ゴミ検出回路によって1ライン分の画素群の濃度変化が検出される様子を説明する図である。It is a figure explaining a mode that the density change of the pixel group for 1 line is detected by the dust detection circuit. 1ライン分の画素群の濃度変化に基づいて異常画素を判定する仕組みを説明する図である。It is a figure explaining the mechanism which determines an abnormal pixel based on the density change of the pixel group for 1 line. ノイズ除去回路が行う補正処理を説明する図である。It is a figure explaining the correction process which a noise removal circuit performs. 変形例に係る画像処理装置の構成を示すブロック図である。It is a block diagram which shows the structure of the image processing apparatus which concerns on a modification. 変形例に係る画像処理装置の構成を示すブロック図である。It is a block diagram which shows the structure of the image processing apparatus which concerns on a modification.

符号の説明Explanation of symbols

1…CCD部、2…CCD駆動回路、7B,7C…出力遅延回路、9…ゴミ検出回路、10…ノイズ除去回路、11…画像処理回路。 DESCRIPTION OF SYMBOLS 1 ... CCD part, 2 ... CCD drive circuit, 7B, 7C ... Output delay circuit, 9 ... Dust detection circuit, 10 ... Noise removal circuit, 11 ... Image processing circuit.

Claims (8)

原稿上の像を走査ライン単位で読み取って得られた画像データに含まれる各画素の濃度に基づき、自画素の位置から所定範囲内に存在する画素群の濃度よりも低濃度側に閾値以上乖離した濃度を有し、且つ、前記走査ラインにおいて連続して並んだ所定数以下の画素を異常画素として抽出する抽出手段と、
前記抽出手段によって抽出された異常画素の濃度を、当該濃度よりも高い濃度に補正する補正手段と、
前記補正手段によって補正された濃度を含む画像データを出力する出力手段と
を備え
前記抽出手段は、ある注目画素の走査方向手前側に連続して位置する所定数の画素群の濃度の平均値を算出し、当該平均値が閾値以上である場合には、当該注目画素が前記異常画素であるか否かを判定し、その結果に基づいて当該注目画素を異常画素として抽出する
ことを特徴とする画像処理装置。
Based on the density of each pixel included in the image data obtained by scanning the image on the original in units of scanning lines, the threshold value deviates from the own pixel position to a lower density side than the density of the pixel group existing within the predetermined range. Extraction means for extracting, as abnormal pixels, a predetermined number or less of pixels having the above-mentioned density and continuously arranged in the scanning line;
Correction means for correcting the density of the abnormal pixels extracted by the extraction means to a density higher than the density;
And output means for outputting image data including the density corrected by the correction means ,
The extraction unit calculates an average value of the density of a predetermined number of pixel groups continuously located on the near side in the scanning direction of a certain target pixel. If the average value is equal to or greater than a threshold value, the target pixel is An image processing apparatus that determines whether or not the pixel is an abnormal pixel and extracts the pixel of interest as an abnormal pixel based on the result .
原稿上の像を走査ライン単位で読み取って得られた画像データに含まれる各画素の濃度に基づいて各々の走査ライン上に連なる画素群のライン方向の濃度変化を検出し、各走査ライン上で自画素から所定範囲内に存在する画素群の濃度から低濃度側に閾値以上乖離した濃度を有し、且つ、前記走査ラインにおいて連続して並んだ所定数以下の画素を異常画素として抽出する抽出手段と、
前記抽出手段によって抽出された異常画素の濃度を、当該濃度よりも高い濃度に補正する補正手段と、
前記補正手段によって補正された濃度を含む画像データを出力する出力手段と
を備え
前記抽出手段は、ある注目画素の走査方向手前側に連続して位置する所定数の画素群の濃度の平均値を算出し、当該平均値が閾値以上である場合には、当該注目画素が前記異常画素であるか否かを判定し、その結果に基づいて当該注目画素を異常画素として抽出する
ことを特徴とする画像処理装置。
Based on the density of each pixel included in the image data obtained by reading the image on the document in units of scanning lines, the density change in the line direction of the pixel group connected to each scanning line is detected, and on each scanning line Extraction that extracts a predetermined number or fewer pixels as abnormal pixels that have a density that deviates more than a threshold value from the density of a pixel group existing within a predetermined range from the own pixel to a low density side. Means,
Correction means for correcting the density of the abnormal pixels extracted by the extraction means to a density higher than the density;
And output means for outputting image data including the density corrected by the correction means ,
The extraction unit calculates an average value of the density of a predetermined number of pixel groups continuously located on the near side in the scanning direction of a certain target pixel. If the average value is equal to or greater than a threshold value, the target pixel is An image processing apparatus that determines whether or not the pixel is an abnormal pixel and extracts the pixel of interest as an abnormal pixel based on the result .
原稿上の像を走査ライン単位で読み取って得られた画像データに含まれる各画素の濃度に基づき、自画素の位置から所定範囲内に存在する画素群の濃度よりも低濃度側に閾値以上乖離した濃度を有し、且つ、前記走査ラインにおいて連続して並んだ所定数以下の画素を異常画素として抽出する抽出手段と、
前記抽出手段によって抽出された異常画素の濃度を、当該濃度よりも高い濃度に補正する補正手段と、
前記補正手段によって補正された濃度を含む画像データを出力する出力手段と
を備え
前記抽出手段は、ある注目画素の走査方向手前側に連続して位置する所定数の画素群の濃度の平均値と、当該注目画素の走査方向奥側に位置する画素の濃度または当該注目画素の走査方向奥側に連続して位置する所定数の画素群の濃度の平均値とを算出し、当該注目画素の濃度が走査方向手前側に位置する前記画素群の濃度の平均値よりも閾値以上低く、且つ、当該注目画素の濃度が走査方向奥側に位置する画素の濃度または所定数の画素群の濃度の平均値よりも閾値以上低い場合には、当該注目画素を前記異常画素であると判定して抽出し、
前記注目画素の走査方向手前側に連続して位置する所定数の画素群の画素数が、当該注目画素の走査方向奥側に連続して位置する所定数の画素群の画素数よりも多い
ことを特徴とする画像処理装置。
Based on the density of each pixel included in the image data obtained by scanning the image on the original in units of scanning lines, the threshold value deviates from the own pixel position to a lower density side than the density of the pixel group existing within the predetermined range. Extraction means for extracting, as abnormal pixels, a predetermined number or less of pixels having the above-mentioned density and continuously arranged in the scanning line;
Correction means for correcting the density of the abnormal pixels extracted by the extraction means to a density higher than the density;
And output means for outputting image data including the density corrected by the correction means ,
The extracting means calculates the average value of the density of a predetermined number of pixel groups continuously located on the front side in the scanning direction of a certain target pixel and the density of the pixel located on the back side in the scanning direction of the target pixel or the target pixel. The average value of the density of a predetermined number of pixel groups continuously located on the back side in the scanning direction is calculated, and the density of the target pixel is greater than the threshold value than the average value of the density of the pixel group located on the near side in the scanning direction If the density of the pixel of interest is lower than the threshold value or the average value of the density of the pixels located on the far side in the scanning direction or the density of a predetermined number of pixel groups, the pixel of interest is the abnormal pixel. Judgment and extraction,
The number of pixels in the predetermined number of pixel groups continuously located on the front side in the scanning direction of the target pixel is greater than the number of pixels in the predetermined number of pixel groups continuously located on the back side in the scanning direction of the target pixel. An image processing apparatus.
原稿上の像を走査ライン単位で読み取って得られた画像データに含まれる各画素の濃度に基づいて各々の走査ライン上に連なる画素群のライン方向の濃度変化を検出し、各走査ライン上で自画素から所定範囲内に存在する画素群の濃度から低濃度側に閾値以上乖離した濃度を有し、且つ、前記走査ラインにおいて連続して並んだ所定数以下の画素を異常画素として抽出する抽出手段と、
前記抽出手段によって抽出された異常画素の濃度を、当該濃度よりも高い濃度に補正する補正手段と、
前記補正手段によって補正された濃度を含む画像データを出力する出力手段と
を備え
前記抽出手段は、ある注目画素の走査方向手前側に連続して位置する所定数の画素群の濃度の平均値と、当該注目画素の走査方向奥側に位置する画素の濃度または当該注目画素の走査方向奥側に連続して位置する所定数の画素群の濃度の平均値とを算出し、当該注目画素の濃度が走査方向手前側に位置する前記画素群の濃度の平均値よりも閾値以上低く、且つ、当該注目画素の濃度が走査方向奥側に位置する画素の濃度または所定数の画素群の濃度の平均値よりも閾値以上低い場合には、当該注目画素を前記異常画素であると判定して抽出し、
前記注目画素の走査方向手前側に連続して位置する所定数の画素群の画素数が、当該注目画素の走査方向奥側に連続して位置する所定数の画素群の画素数よりも多い
ことを特徴とする画像処理装置。
Based on the density of each pixel included in the image data obtained by reading the image on the document in units of scanning lines, the density change in the line direction of the pixel group connected to each scanning line is detected, and on each scanning line Extraction that extracts a predetermined number or fewer pixels as abnormal pixels that have a density that deviates more than a threshold value from the density of a pixel group existing within a predetermined range from the own pixel to a low density side. Means,
Correction means for correcting the density of the abnormal pixels extracted by the extraction means to a density higher than the density;
And output means for outputting image data including the density corrected by the correction means ,
The extracting means calculates the average value of the density of a predetermined number of pixel groups continuously located on the front side in the scanning direction of a certain target pixel and the density of the pixel located on the back side in the scanning direction of the target pixel or the target pixel. The average value of the density of a predetermined number of pixel groups continuously located on the back side in the scanning direction is calculated, and the density of the target pixel is greater than the threshold value than the average value of the density of the pixel group located on the near side in the scanning direction If the density of the pixel of interest is lower than the threshold value or the average value of the density of the pixels located on the far side in the scanning direction or the density of a predetermined number of pixel groups, the pixel of interest is the abnormal pixel. Judgment and extraction,
The number of pixels in the predetermined number of pixel groups continuously located on the front side in the scanning direction of the target pixel is greater than the number of pixels in the predetermined number of pixel groups continuously located on the back side in the scanning direction of the target pixel. An image processing apparatus.
コンピュータに、
原稿上の像を走査ライン単位で読み取って得られた画像データに含まれる各画素の濃度に基づき、自画素の位置から所定範囲内に存在する画素群の濃度よりも低濃度側に閾値以上乖離した濃度を有し、且つ、前記走査ラインにおいて連続して並んだ所定数以下の画素を異常画素として抽出する機能と、
抽出された前記異常画素の濃度を、当該濃度よりも高い濃度に補正する機能と、
補正された濃度を含む画像データを出力する機能と
を実現させ
前記抽出する機能は、ある注目画素の走査方向手前側に連続して位置する所定数の画素群の濃度の平均値を算出し、当該平均値が閾値以上である場合には、当該注目画素が前記異常画素であるか否かを判定し、その結果に基づいて当該注目画素を異常画素として抽出する
ことを特徴とするプログラム。
On the computer,
Based on the density of each pixel included in the image data obtained by scanning the image on the original in units of scanning lines, the threshold value deviates from the own pixel position to a lower density side than the density of the pixel group existing within the predetermined range. A function of extracting a predetermined number or less of pixels that are continuously arranged in the scanning line as abnormal pixels.
A function of correcting the density of the extracted abnormal pixels to a density higher than the density;
To realize the function of outputting the image data including the corrected density,
The extraction function calculates an average value of the density of a predetermined number of pixel groups continuously located in front of a certain pixel in the scanning direction, and when the average value is equal to or greater than a threshold value, It is determined whether or not the pixel is an abnormal pixel, and the pixel of interest is extracted as an abnormal pixel based on the result
A program characterized by that .
コンピュータに、
原稿上の像を走査ライン単位で読み取って得られた画像データに含まれる各画素の濃度に基づいて各々の走査ライン上に連なる画素群のライン方向の濃度変化を検出し、各走査ライン上で自画素から所定範囲内に存在する画素群の濃度から低濃度側に閾値以上乖離した濃度を有し、且つ、前記走査ラインにおいて連続して並んだ所定数以下の画素を異常画素として抽出する機能と、
抽出された前記異常画素の濃度を、当該濃度よりも高い濃度に補正する機能と、
補正された濃度を含む画像データを出力する機能と
を実現させ
前記抽出する機能は、ある注目画素の走査方向手前側に連続して位置する所定数の画素群の濃度の平均値を算出し、当該平均値が閾値以上である場合には、当該注目画素が前記異常画素であるか否かを判定し、その結果に基づいて当該注目画素を異常画素として抽出する
ことを特徴とするプログラム。
On the computer,
Based on the density of each pixel included in the image data obtained by reading the image on the document in units of scanning lines, the density change in the line direction of the pixel group connected to each scanning line is detected, and on each scanning line A function of extracting, as an abnormal pixel, a predetermined number or less of pixels that have a density that deviates more than a threshold value from the density of a pixel group existing within a predetermined range from the own pixel and that are continuously arranged on the scanning line. When,
A function of correcting the density of the extracted abnormal pixels to a density higher than the density;
To realize the function of outputting the image data including the corrected density,
The extraction function calculates an average value of the density of a predetermined number of pixel groups continuously located in front of a certain pixel in the scanning direction, and when the average value is equal to or greater than a threshold value, It is determined whether or not the pixel is an abnormal pixel, and the pixel of interest is extracted as an abnormal pixel based on the result
A program characterized by that .
コンピュータに、
原稿上の像を走査ライン単位で読み取って得られた画像データに含まれる各画素の濃度に基づき、自画素の位置から所定範囲内に存在する画素群の濃度よりも低濃度側に閾値以上乖離した濃度を有し、且つ、前記走査ラインにおいて連続して並んだ所定数以下の画素を異常画素として抽出する機能と、
抽出された前記異常画素の濃度を、当該濃度よりも高い濃度に補正する機能と、
補正された濃度を含む画像データを出力する機能と
を実現させ
前記抽出する機能は、ある注目画素の走査方向手前側に連続して位置する所定数の画素群の濃度の平均値と、当該注目画素の走査方向奥側に位置する画素の濃度または当該注目画素の走査方向奥側に連続して位置する所定数の画素群の濃度の平均値とを算出し、当該注目画素の濃度が走査方向手前側に位置する前記画素群の濃度の平均値よりも閾値以上低く、且つ、当該注目画素の濃度が走査方向奥側に位置する画素の濃度または所定数の画素群の濃度の平均値よりも閾値以上低い場合には、当該注目画素を前記異常画素であると判定して抽出し、
前記注目画素の走査方向手前側に連続して位置する所定数の画素群の画素数が、当該注目画素の走査方向奥側に連続して位置する所定数の画素群の画素数よりも多い
ことを特徴とするプログラム。
On the computer,
Based on the density of each pixel included in the image data obtained by scanning the image on the original in units of scanning lines, the threshold value deviates from the own pixel position to a lower density side than the density of the pixel group existing within the predetermined range. A function of extracting a predetermined number or less of pixels that are continuously arranged in the scanning line as abnormal pixels.
A function of correcting the density of the extracted abnormal pixels to a density higher than the density;
To realize the function of outputting the image data including the corrected density,
The extraction function includes the average value of the density of a predetermined number of pixel groups continuously located on the front side in the scanning direction of a certain target pixel, the density of the pixel located on the back side in the scanning direction of the target pixel, or the target pixel. The average value of the density of a predetermined number of pixel groups continuously located on the back side in the scanning direction is calculated, and the density of the pixel of interest is a threshold value than the average value of the density of the pixel group located on the front side in the scanning direction. If the density of the target pixel is lower than the threshold value or lower than the average value of the density of the pixel located on the back side in the scanning direction or the density of the predetermined number of pixel groups, the target pixel is the abnormal pixel. And extract
The number of pixels in the predetermined number of pixel groups continuously located on the front side in the scanning direction of the target pixel is larger than the number of pixels in the predetermined number of pixel groups continuously located on the back side in the scanning direction of the target pixel.
A program characterized by that .
コンピュータに、
原稿上の像を走査ライン単位で読み取って得られた画像データに含まれる各画素の濃度に基づいて各々の走査ライン上に連なる画素群のライン方向の濃度変化を検出し、各走査ライン上で自画素から所定範囲内に存在する画素群の濃度から低濃度側に閾値以上乖離した濃度を有し、且つ、前記走査ラインにおいて連続して並んだ所定数以下の画素を異常画素として抽出する機能と、
抽出された前記異常画素の濃度を、当該濃度よりも高い濃度に補正する機能と、
補正された濃度を含む画像データを出力する機能と
を実現させ
前記抽出する機能は、ある注目画素の走査方向手前側に連続して位置する所定数の画素群の濃度の平均値と、当該注目画素の走査方向奥側に位置する画素の濃度または当該注目画素の走査方向奥側に連続して位置する所定数の画素群の濃度の平均値とを算出し、当該注目画素の濃度が走査方向手前側に位置する前記画素群の濃度の平均値よりも閾値以上低く、且つ、当該注目画素の濃度が走査方向奥側に位置する画素の濃度または所定数の画素群の濃度の平均値よりも閾値以上低い場合には、当該注目画素を前記異常画素であると判定して抽出し、
前記注目画素の走査方向手前側に連続して位置する所定数の画素群の画素数が、当該注目画素の走査方向奥側に連続して位置する所定数の画素群の画素数よりも多い
ことを特徴とするプログラム。
On the computer,
Based on the density of each pixel included in the image data obtained by reading the image on the document in units of scanning lines, the density change in the line direction of the pixel group connected to each scanning line is detected, and on each scanning line A function of extracting, as an abnormal pixel, a predetermined number or less of pixels that have a density that deviates more than a threshold value from the density of a pixel group existing within a predetermined range from the own pixel and that are continuously arranged on the scanning line. When,
A function of correcting the density of the extracted abnormal pixels to a density higher than the density;
To realize the function of outputting the image data including the corrected density,
The extraction function includes the average value of the density of a predetermined number of pixel groups continuously located on the front side in the scanning direction of a certain target pixel, the density of the pixel located on the back side in the scanning direction of the target pixel, or the target pixel. The average value of the density of a predetermined number of pixel groups continuously located on the back side in the scanning direction is calculated, and the density of the pixel of interest is a threshold value than the average value of the density of the pixel group located on the front side in the scanning direction. If the density of the target pixel is lower than the threshold value or lower than the average value of the density of the pixel located on the back side in the scanning direction or the density of the predetermined number of pixel groups, the target pixel is the abnormal pixel. And extract
The number of pixels in the predetermined number of pixel groups continuously located on the front side in the scanning direction of the target pixel is larger than the number of pixels in the predetermined number of pixel groups continuously located on the back side in the scanning direction of the target pixel.
A program characterized by that .
JP2005352011A 2005-12-06 2005-12-06 Image processing apparatus and program Expired - Fee Related JP4539546B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2005352011A JP4539546B2 (en) 2005-12-06 2005-12-06 Image processing apparatus and program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2005352011A JP4539546B2 (en) 2005-12-06 2005-12-06 Image processing apparatus and program

Publications (2)

Publication Number Publication Date
JP2007158782A JP2007158782A (en) 2007-06-21
JP4539546B2 true JP4539546B2 (en) 2010-09-08

Family

ID=38242556

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2005352011A Expired - Fee Related JP4539546B2 (en) 2005-12-06 2005-12-06 Image processing apparatus and program

Country Status (1)

Country Link
JP (1) JP4539546B2 (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4609471B2 (en) * 2007-09-26 2011-01-12 富士ゼロックス株式会社 Data processing apparatus, image forming apparatus, system, and program
JP5132259B2 (en) * 2007-10-30 2013-01-30 株式会社東芝 Information processing apparatus and information processing method
JP4591531B2 (en) 2008-03-28 2010-12-01 コニカミノルタビジネステクノロジーズ株式会社 Image reading apparatus and image reading method
JP4591532B2 (en) * 2008-03-28 2010-12-01 コニカミノルタビジネステクノロジーズ株式会社 Image reading apparatus and image reading method

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002262083A (en) * 2001-03-06 2002-09-13 Ricoh Co Ltd Image processor
JP2003259094A (en) * 2002-03-04 2003-09-12 Ricoh Co Ltd Original reader with sheet-through type document feeder
JP2004289496A (en) * 2003-03-20 2004-10-14 Ricoh Co Ltd Image reproducing apparatus, image reproduction method and program for making computer implement the method
JP2004289648A (en) * 2003-03-24 2004-10-14 Ricoh Co Ltd Image reader and image processor

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002262083A (en) * 2001-03-06 2002-09-13 Ricoh Co Ltd Image processor
JP2003259094A (en) * 2002-03-04 2003-09-12 Ricoh Co Ltd Original reader with sheet-through type document feeder
JP2004289496A (en) * 2003-03-20 2004-10-14 Ricoh Co Ltd Image reproducing apparatus, image reproduction method and program for making computer implement the method
JP2004289648A (en) * 2003-03-24 2004-10-14 Ricoh Co Ltd Image reader and image processor

Also Published As

Publication number Publication date
JP2007158782A (en) 2007-06-21

Similar Documents

Publication Publication Date Title
JP4848742B2 (en) Image reading apparatus and noise detection method
JP4844247B2 (en) Image processing apparatus and image processing program
JP4051889B2 (en) Image reading device
JPH0877340A (en) Offset for scanning system and method for decision of gain correction
JP4539546B2 (en) Image processing apparatus and program
US6839153B1 (en) Image reader and image reading method
JP4513622B2 (en) Image reading device
JP4867564B2 (en) Image reading device
JP4998410B2 (en) Image processing apparatus and image processing program
JP4600350B2 (en) Image processing apparatus and program
JP2002152509A (en) Image reader
JP2007312233A (en) Image processor and program
JP4687626B2 (en) Image processing apparatus and program
JPH10294870A (en) Image processing unit
US20090091642A1 (en) Image defect correction system using directional detection
JPH10145556A (en) Image reader
JP2005064913A (en) Image reader
JP3480887B2 (en) Image processing apparatus and image processing method
JP2017175270A (en) Image reading apparatus
JP3614122B2 (en) Reading surface dust detection device for sheet-through document reading system
JP2002158835A (en) Image-reading device
KR101763647B1 (en) Method and Apparatus for Detecting Double Feeding
JP2006211054A (en) Image processor
JP2011023920A (en) Image reading apparatus and image forming apparatus
JP2002290727A (en) Image processing method, its apparatus, its storage medium, and its program

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20081120

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20100316

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20100511

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

A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20100614

R150 Certificate of patent or registration of utility model

Ref document number: 4539546

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

Free format text: JAPANESE INTERMEDIATE CODE: R150

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

Free format text: PAYMENT UNTIL: 20130702

Year of fee payment: 3

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

Free format text: PAYMENT UNTIL: 20140702

Year of fee payment: 4

LAPS Cancellation because of no payment of annual fees