Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JP7225858B2 - Inspection device, inspection method and inspection program - Google Patents
[go: Go Back, main page]

JP7225858B2 - Inspection device, inspection method and inspection program - Google Patents

Inspection device, inspection method and inspection program Download PDF

Info

Publication number
JP7225858B2
JP7225858B2 JP2019017441A JP2019017441A JP7225858B2 JP 7225858 B2 JP7225858 B2 JP 7225858B2 JP 2019017441 A JP2019017441 A JP 2019017441A JP 2019017441 A JP2019017441 A JP 2019017441A JP 7225858 B2 JP7225858 B2 JP 7225858B2
Authority
JP
Japan
Prior art keywords
pixel
pixels
interest
noise
region
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.)
Active
Application number
JP2019017441A
Other languages
Japanese (ja)
Other versions
JP2020127096A (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.)
Konica Minolta Inc
Original Assignee
Konica Minolta 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 Konica Minolta Inc filed Critical Konica Minolta Inc
Priority to JP2019017441A priority Critical patent/JP7225858B2/en
Publication of JP2020127096A publication Critical patent/JP2020127096A/en
Application granted granted Critical
Publication of JP7225858B2 publication Critical patent/JP7225858B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Accessory Devices And Overall Control Thereof (AREA)
  • Facsimile Image Signal Circuits (AREA)
  • Image Analysis (AREA)

Description

この発明は、検査装置、検査方法および検査プログラムに関し、特に、記録媒体に形成された画像のノイズを検出する検査装置、その検査装置で実行される検査方法およびその検査方法をコンピューターに実行させる検査プログラムに関する。 The present invention relates to an inspection device, an inspection method, and an inspection program, and more particularly, to an inspection device for detecting noise in an image formed on a recording medium, an inspection method executed by the inspection device, and an inspection that causes a computer to execute the inspection method. Regarding the program.

MFP(Multi Function Peripheral)等の画像形成装置で用紙などの記録媒体に形成された画像を検査する装置が知られている。例えば、特開2009-43111号公報には、透過原稿に付着したごみ・傷に起因する画素欠損を画像データから検出する画像処理方法が記載されている。この画像処理法は、カラーの画像データからグレイスケールの画像データを生成する工程と、前記グレイスケールの画像データを複数のブロックに分割する工程と、前記ブロックの各々に対して、各ブロックの内の画素の前記グレイスケールの画像データの標準偏差を算出する工程と、前記ブロックの各々に対して、各ブロックの内の画素の前記グレイスケールの画像データの平均値を算出する工程と、前記ブロックの各々に対して、前記標準偏差と、前記標準偏差に応じて定める係数と、前記平均値を用いて閾値を算出する工程と、前記閾値と前記グレイスケールの画像データとを比較して画素欠損を検出する工程とを有することを特徴とする。 2. Description of the Related Art An apparatus for inspecting an image formed on a recording medium such as paper in an image forming apparatus such as an MFP (Multi Function Peripheral) is known. For example, Japanese Patent Application Laid-Open No. 2009-43111 describes an image processing method for detecting, from image data, pixel defects caused by dust or scratches adhering to a transparent original. This image processing method includes the steps of generating grayscale image data from color image data, dividing the grayscale image data into a plurality of blocks, and for each of the blocks, a block within each block. calculating a standard deviation of the grayscale image data of pixels in each of said blocks; calculating an average value of said grayscale image data of pixels within each block; calculating a threshold value using the standard deviation, a coefficient determined according to the standard deviation, and the average value; and detecting.

しかしながら、特開2009-43111号公報に記載の画像処理方法では、ブロックの内の画素のグレイスケールの画像データの平均値と標準偏差とからしきい値を決定しているため、検出精度を高くすると誤検出が多くなるといった問題がある。具体的には、ハーフトーンの均一な濃度部分にも画像形成装置で画像を形成するエンジンが原因となる濃度むらが存在する場合に、その濃度むらを画素欠陥として誤検出してしまう場合がある。 However, in the image processing method described in Japanese Patent Application Laid-Open No. 2009-43111, the threshold value is determined from the average value and standard deviation of the grayscale image data of the pixels in the block. There is a problem that false detection increases. Specifically, if density unevenness caused by an engine that forms an image in an image forming apparatus exists even in a halftone uniform density portion, the density unevenness may be erroneously detected as a pixel defect. .

特開2009-43111号公報Japanese Patent Application Laid-Open No. 2009-43111

この発明は上述した問題点を解決するためになされたもので、この発明の目的の一つは、検出精度を高めることが可能な検査装置を提供することである。 SUMMARY OF THE INVENTION The present invention has been made to solve the above-described problems, and one of the objects of the present invention is to provide an inspection apparatus capable of improving detection accuracy.

この発明の他の目的は、検出精度を高めることが可能な検査方法を提供することである。 Another object of the present invention is to provide an inspection method capable of improving detection accuracy.

この発明のさらに他の目的は、検出精度を高めることが可能な検査プログラムを提供することである。 Still another object of the present invention is to provide an inspection program capable of improving detection accuracy.

上述した目的を達成するために、この発明のある局面によれば、検査装置は、複数の画素が二次元に配列された処理対象データを構成する複数の画素それぞれを注目画素として処理することにより、処理対象データからノイズを検出するノイズ検出手段を備え、ノイズ検出手段は、注目画素と所定の相対位置で定まる周辺領域に含まれる複数の画素の画素値に基づいて周辺領域の特徴を示す特徴量を決定する特徴量決定手段と、特徴量に基づいて注目画素に対するしきい値を決定するしきい値決定手段と、決定されたしきい値と注目画素の画素値とを比較する比較手段と、注目画素の画素値が注目画素に対して決定されたしきい値で定まる範囲外となる場合に注目画素を候補画素に決定する候補決定手段と、
所定数以上が連続する候補画素の集合からなる領域をノイズが現れるノイズ領域に決定するノイズ領域決定手段と、を含
In order to achieve the above object, according to one aspect of the present invention, an inspection apparatus processes each of a plurality of pixels constituting processing target data in which a plurality of pixels are arranged two-dimensionally as a pixel of interest. and noise detection means for detecting noise from the data to be processed, wherein the noise detection means indicates the characteristics of the surrounding area based on the pixel values of a plurality of pixels included in the surrounding area determined by a predetermined relative position to the pixel of interest. feature amount determining means for determining a quantity; threshold value determining means for determining a threshold value for a pixel of interest based on the feature amount; and comparing means for comparing the determined threshold value with the pixel value of the pixel of interest. candidate determination means for determining the target pixel as a candidate pixel when the pixel value of the target pixel is out of the range determined by the threshold value determined for the target pixel;
a noise region determining means for determining, as a noise region in which noise appears, a region consisting of a set of candidate pixels in which a predetermined number or more are consecutive .

この局面に従えば、注目画素と所定の相対位置で定まる周辺領域の特徴量が決定され、特徴量に基づいて注目画素に対するしきい値が決定され、しきい値と注目画素の画素値とが比較される。このため、注目画素の画素値を用いることなくしきい値が決定されるので、しきい値が適切な値に決定される。その結果、検出精度を高めることが可能な検出装置を提供することができる。 According to this aspect, the feature amount of the target pixel and the surrounding area determined by the predetermined relative position is determined, the threshold value for the target pixel is determined based on the feature amount, and the threshold value and the pixel value of the target pixel are determined. be compared. Therefore, the threshold value is determined without using the pixel value of the pixel of interest, so that the threshold value is determined to be an appropriate value. As a result, it is possible to provide a detection device capable of improving detection accuracy.

好ましくは、周辺領域に含まれる複数のブロック毎にブロックの特徴を示すサブ特徴量を決定するサブ特徴量決定手段と、複数のブロック毎に決定されたサブ特徴量に基づいて、複数のブロックのうちから1以上の候補ブロックを決定する候補ブロック決定手段と、をさらに備え、特徴量決定手段は、1以上の候補ブロックそれぞれに含まれる複数の画素の画素値に基づいて、周辺領域の特徴量を決定する。 Preferably, sub-feature determining means for determining a sub-feature representing a block feature for each of a plurality of blocks included in the peripheral region; candidate block determining means for determining one or more candidate blocks from among them, wherein the feature amount determining means determines the feature amount of the surrounding area based on pixel values of a plurality of pixels included in each of the one or more candidate blocks. to decide.

この局面に従えば、周辺領域に含まれる複数のブロック毎に決定されたサブ特徴量に基づいて、複数のブロックのうちから1以上の候補ブロックが決定され、1以上の候補ブロックそれぞれに含まれる複数の画素の画素値に基づいて、周辺領域の特徴量が決定される。このため、周辺領域に含まれる複数の画素のうち、画素値が他の画素と異なる画素を除外して特徴量が決定されるので、しきい値の精度を向上させることができる。 According to this aspect, one or more candidate blocks are determined from among the plurality of blocks based on sub-feature amounts determined for each of the plurality of blocks included in the peripheral region, and are included in each of the one or more candidate blocks. A feature amount of the peripheral area is determined based on the pixel values of the plurality of pixels. Therefore, the feature amount is determined by excluding pixels whose pixel values are different from those of other pixels among the plurality of pixels included in the peripheral region, so that the accuracy of the threshold value can be improved.

好ましくは、それぞれが注目画素と所定の相対位置で定まる複数のサンプリング領域ごとに、サンプリング領域に含まれる複数の画素の画素値に基づいてサンプリング領域の特徴を示すサンプリング特徴量を決定するサンプリング特徴量決定手段と、複数のサンプリング領域ごとに決定されたサンプリング特徴量に基づいて、複数のサンプリング領域のうち1以上を周辺領域に決定する周辺領域決定手段と、をさらに備える。 Preferably, for each of a plurality of sampling regions each determined by a predetermined relative position to the pixel of interest, a sampling feature quantity for determining a sampling feature quantity representing a feature of the sampling region based on pixel values of a plurality of pixels included in the sampling region. The apparatus further comprises determining means, and peripheral area determining means for determining one or more of the plurality of sampling areas as the peripheral area based on the sampling feature amount determined for each of the plurality of sampling areas.

この局面に従えば、注目画素と所定の相対位置で定まる複数のサンプリング領域のサンプリング特徴量に基づいて、複数のサンプリング領域のうち1以上が周辺領域に決定される。このため、複数のサンプリング領域のうちから文字等を含むサンプリング領域を除外することができるので、しきい値の精度を向上させることができる。 According to this aspect, one or more of the plurality of sampling regions are determined as the peripheral region based on the sampling feature amounts of the plurality of sampling regions determined by the pixel of interest and the predetermined relative position. For this reason, the sampling areas containing characters or the like can be excluded from among the plurality of sampling areas, so that the precision of the threshold value can be improved.

好ましくは、サンプリング特徴量は、複数の画素の画素値の標準偏差、または、標準偏差および平均値である。 Preferably, the sampling feature amount is the standard deviation or the standard deviation and average value of pixel values of a plurality of pixels.

この局面に従えば、注目画素が周辺領域に含まれる複数の画素と比較して特異な値か否かを判断することができる。 According to this aspect, it is possible to determine whether or not the pixel of interest has a unique value in comparison with a plurality of pixels included in the surrounding area.

好ましくは、画像形成装置が画像を形成した記録媒体を読み取り、画像データを出力する読取手段と、画像データから処理対象データを生成する処理対象データ生成手段と、をさらに備える。 Preferably, the image forming apparatus further comprises reading means for reading a recording medium on which an image is formed and outputting image data, and processing target data generating means for generating processing target data from the image data.

この局面に従えば、画像形成装置による画像形成における不良を検出することができる。 According to this aspect, a defect in image formation by the image forming apparatus can be detected.

好ましくは、画像形成装置が記録媒体に形成した画像の元になる元データを取得する元データ取得手段と、元データ中で所定の特徴が表された特徴領域を決定する特徴領域決定手段と、をさらに備え、特徴量決定手段は、周辺領域のうち特徴領域以外の領域に含まれる複数の画素に基づいて周辺領域の特徴量を決定する。 Preferably, an original data obtaining means for obtaining original data that is the basis of an image formed on a recording medium by the image forming apparatus; a characteristic area determining means for determining a characteristic area in which a predetermined characteristic is expressed in the original data; wherein the feature quantity determination means determines the feature quantity of the peripheral region based on a plurality of pixels included in a region other than the feature region in the peripheral region.

この局面に従えば、周辺領域のうち元データ中で所定の特徴が表された特徴領域以外の領域に含まれる複数の画素に基づいて周辺領域の特徴量が決定される。このため、元データに含まれる特徴領域が周辺領域から除外されるので、しきい値の精度を向上させることができる。 According to this aspect, the feature amount of the peripheral region is determined based on the plurality of pixels included in the peripheral region other than the feature region in which the predetermined feature is expressed in the original data. Therefore, since the feature area included in the original data is excluded from the peripheral area, it is possible to improve the accuracy of the threshold value.

好ましくは、処理対象データ生成手段は、読取手段が出力する画像データの解像度を変更することにより処理対象データを生成する。 Preferably, the processing target data generating means generates the processing target data by changing the resolution of the image data output by the reading means.

この局面に従えば、画像データの解像度を変更することにより処理対象データが生成されるので、画像データに含まれる高周波のノイズを除去することができる。 According to this aspect, the processing target data is generated by changing the resolution of the image data, so high-frequency noise contained in the image data can be removed.

この発明の他の局面によれば、検査装置は、複数の画素が二次元に配列された処理対象データを構成する複数の画素それぞれを注目画素として処理することにより、処理対象データからノイズを検出するノイズ検出手段と、画像形成装置が画像を形成した記録媒体を読み取り、画像データを出力する読取手段と、画像データから処理対象データを生成する処理対象データ生成手段と、を備え、処理対象データ生成手段は、読取手段が出力する画像データの解像度を変更することにより処理対象データを生成し、ノイズ検出手段は、注目画素と所定の相対位置で定まる周辺領域に含まれる複数の画素の画素値に基づいて周辺領域の特徴を示す特徴量を決定する特徴量決定手段と、特徴量に基づいて注目画素に対するしきい値を決定するしきい値決定手段と、決定されたしきい値と注目画素の画素値とを比較する比較手段と、を含み、ノイズ検出手段は、注目画素の画素値が注目画素に対して決定されたしきい値で定まる範囲外となる場合に注目画素をノイズが現れるノイズ領域に決定する。 According to another aspect of the present invention, the inspection apparatus detects noise from the data to be processed by processing each of a plurality of pixels constituting the data to be processed in which a plurality of pixels are arranged two-dimensionally as a pixel of interest. a noise detection means for reading a recording medium on which an image is formed by an image forming apparatus, and a reading means for outputting image data; and a processing target data generating means for generating processing target data from the image data; The generating means generates data to be processed by changing the resolution of the image data output by the reading means, and the noise detecting means detects pixel values of a plurality of pixels included in a peripheral area determined by a predetermined relative position to the target pixel. feature amount determination means for determining a feature amount indicating a feature of a peripheral region based on the threshold value determination means for determining a threshold value for a target pixel based on the feature amount; and the determined threshold value and the target pixel and a comparison means for comparing the pixel value of the target pixel with the pixel value of the target pixel, and the noise detection means determines that noise appears in the target pixel when the pixel value of the target pixel is outside the range determined by the threshold value determined for the target pixel. Decide on the noise region.

この局面に従えば、注目画素と同じサイズのノイズ領域を検出することができる。 According to this aspect, a noise region having the same size as the pixel of interest can be detected.

好ましくは、処理対象データ生成手段は、読取手段が出力する画像データに含まれる複数の画素の画素値に代えて当該画素を含む所定範囲の複数の画素の画素値の平均値設定したデータを処理対象データとして生成する。 Preferably, the processing target data generating means generates data obtained by setting an average value of pixel values of a plurality of pixels in a predetermined range including the pixel in place of the pixel values of the plurality of pixels included in the image data output by the reading means. Generate as data to be processed.

この局面に従えば、画像データに含まれる複数の画素の画素値がその画素を含む所定範囲の複数の画素の画素値の平均値に設定したデータが処理対象データとして生成される。このため、画像データに含まれる高周波の変動成分を除去することができる。 According to this aspect, data in which the pixel values of the plurality of pixels included in the image data are set to the average value of the pixel values of the plurality of pixels in the predetermined range including the pixel is generated as the processing target data. Therefore, it is possible to remove high-frequency fluctuation components included in the image data.

好ましくは、ノイズ検出手段は、注目画素の画素値が注目画素に対して決定されたしきい値で定まる範囲外となる場合に注目画素を候補画素に決定する候補決定手段と、所定数以上が連続する候補画素の集合からなる領域をノイズが現れるノイズ領域に決定するノイズ領域決定手段と、をさらに含む。 Preferably, the noise detection means includes candidate determination means for determining the pixel of interest as a candidate pixel when the pixel value of the pixel of interest is outside the range determined by the threshold value determined for the pixel of interest; A noise area determining means for determining an area consisting of a set of consecutive candidate pixels as a noise area in which noise appears.

この局面に従えば、注目画素よりサイズの大きなノイズ領域を検出することができる。 According to this aspect, it is possible to detect a noise region that is larger in size than the pixel of interest.

好ましくは、周辺領域は、注目画素を除く注目画素の周辺の領域である。 Preferably, the peripheral area is an area around the pixel of interest excluding the pixel of interest.

この局面に従えば、注目画素の画素値がしきい値を決定するための母数とならないので、しきい値の精度を高めることができる。 According to this aspect, the pixel value of the pixel of interest does not serve as a parameter for determining the threshold value, so the accuracy of the threshold value can be improved.

好ましくは、周辺領域は、注目画素から第1距離の距離以上離れた領域である。 Preferably, the peripheral area is an area that is at least the first distance away from the pixel of interest.

この局面に従えば、注目画素のサイズより大きなサイズのノイズを検出することができる。 According to this aspect, it is possible to detect noise having a size larger than the size of the pixel of interest.

好ましくは、周辺領域は、注目画素から第2距離の以下の領域である。 Preferably, the peripheral area is an area below the second distance from the pixel of interest.

好ましくは、周辺領域は、注目画素から所定の方向に第2距離以下の領域である。 Preferably, the peripheral area is an area within a second distance in a predetermined direction from the pixel of interest.

この局面に従えば、所定の方向に直行するすじのノイズを検出することができる。 According to this aspect, it is possible to detect streak noise that is orthogonal to a predetermined direction.

好ましくは、周辺領域は、注目画素から第1方向に第2距離以下の第1領域と、注目画素から第1方向と交わる第2方向に第2距離以下の第2領域と、を含む。 Preferably, the peripheral area includes a first area at a second distance or less in a first direction from the pixel of interest, and a second area at a second distance or less in a second direction intersecting the first direction from the pixel of interest.

この局面に従えば、第1方向平行なすじのノイズおよび第2方向に平行なすじのノイズを検出することができる。 According to this aspect, noise of stripes parallel to the first direction and noise of stripes parallel to the second direction can be detected.

この発明のさらに他の局面によれば、検査方法は、検査装置で実行される検査方法であって、複数の画素が二次元に配列された処理対象データを構成する複数の画素それぞれを注目画素として処理することにより、処理対象データからノイズを検出するノイズ検出ステップを含み、ノイズ検出ステップは、注目画素と所定の相対位置で定まる周辺領域に含まれる複数の画素の画素値に基づいて周辺領域の特徴を示す特徴量を決定する特徴量決定ステップと、特徴量に基づいて注目画素に対するしきい値を決定するしきい値決定ステップと、決定されたしきい値と注目画素の画素値とを比較する比較ステップと、比較ステップにおける比較結果に基づいて処理対象データからノイズを検出するステップと、を含む。 According to still another aspect of the present invention, an inspection method is an inspection method executed by an inspection apparatus, wherein each of a plurality of pixels constituting processing target data in which a plurality of pixels are two-dimensionally arranged is a pixel of interest. The noise detection step includes a noise detection step of detecting noise from the data to be processed by processing as, the noise detection step detects the surrounding area based on the pixel values of a plurality of pixels included in the surrounding area determined by the pixel of interest and a predetermined relative position a feature amount determination step of determining a feature amount indicating the feature of a pixel of interest; a threshold determination step of determining a threshold for a pixel of interest based on the feature amount; It includes a comparison step of comparing, and a step of detecting noise from the processing target data based on the comparison result in the comparison step .

この局面に従えば、検出精度を高めることが可能な検査方法を提供することができる。 According to this aspect, it is possible to provide an inspection method capable of improving detection accuracy.

この発明のさらに他の局面によれば、検査プログラムは、複数の画素が二次元に配列された処理対象データを構成する複数の画素それぞれを注目画素として処理することにより、処理対象データからノイズを検出するノイズ検出ステップを、コンピューターに実行させ、ノイズ検出ステップは、注目画素と所定の相対位置で定まる周辺領域に含まれる複数の画素の画素値に基づいて周辺領域の特徴を示す特徴量を決定する特徴量決定ステップと、特徴量に基づいて注目画素に対するしきい値を決定するしきい値決定ステップと、決定されたしきい値と注目画素の画素値とを比較する比較ステップと、注目画素の画素値が注目画素に対して決定されたしきい値で定まる範囲外となる場合に注目画素を候補画素に決定する候補決定ステップと、
所定数以上が連続する候補画素の集合からなる領域をノイズが現れるノイズ領域に決定するノイズ領域決定ステップと、を含む。
According to still another aspect of the present invention, the inspection program removes noise from the data to be processed by processing each of the plurality of pixels constituting the data to be processed in which the plurality of pixels are arranged two-dimensionally as a pixel of interest. A noise detection step is executed by a computer, and the noise detection step determines a feature amount indicating the characteristics of the surrounding area based on the pixel values of a plurality of pixels included in the surrounding area determined by the pixel of interest and a predetermined relative position. a threshold value determination step of determining a threshold value for a pixel of interest based on the feature value; a comparison step of comparing the determined threshold value with the pixel value of the pixel of interest; a candidate determination step of determining the pixel of interest as a candidate pixel when the pixel value of is out of the range determined by the threshold value determined for the pixel of interest;
and a noise region determination step of determining a region formed by a set of candidate pixels in which a predetermined number or more of consecutive pixels is a noise region in which noise appears.

この局面に従えば、検出精度を高めることが可能な検査プログラムを提供することができる。 According to this aspect, it is possible to provide an inspection program capable of improving detection accuracy.

本発明の実施の形態の1つにおける画像形成システムの外観を示す斜視図である。1 is a perspective view showing the appearance of an image forming system according to one embodiment of the present invention; FIG. 検査装置のハードウェア構成の概要の一例を示すブロック図である。It is a block diagram which shows an example of the outline|summary of the hardware configuration of an inspection apparatus. 検査装置が備えるCPUが有する機能の一例を示すブロック図である。It is a block diagram which shows an example of the function which CPU with which an inspection apparatus has. 周辺領域の一例を示す図である。It is a figure which shows an example of a surrounding area. 周辺領域に含まれる複数のブロックの一例を示す図である。FIG. 4 is a diagram showing an example of a plurality of blocks included in a peripheral area; FIG. 画素値の一例を示す図である。It is a figure which shows an example of a pixel value. 検出処理の流れの一例を示すフローチャートである。6 is a flowchart showing an example of the flow of detection processing; ノイズ検出処理の流れの一例を示すフローチャートである。4 is a flowchart showing an example of the flow of noise detection processing; サンプリング領域の一例を示す図である。FIG. 4 is a diagram showing an example of a sampling area; 第2の変形例における検査装置が備えるCPUが有する機能の一例を示すブロック図である。FIG. 11 is a block diagram showing an example of functions of a CPU included in an inspection apparatus according to a second modified example; 第2の変形例におけるノイズ検出処理の流れの一例を示すフローチャートである。FIG. 11 is a flowchart showing an example of the flow of noise detection processing in the second modified example; FIG. 第3の変形例における周辺領域の一例を示す図である。FIG. 11 is a diagram showing an example of a peripheral area in a third modified example; 第4の変形例における周辺領域の一例を示す図である。FIG. 14 is a diagram showing an example of a peripheral area in a fourth modified example;

以下、本発明の実施の形態における画像形成装置について図面を参照して説明する。以下の説明では同一の部品には同一の符号を付してある。それらの名称および機能も同じである。したがってそれらについての詳細な説明は繰返さない。 An image forming apparatus according to embodiments of the present invention will be described below with reference to the drawings. In the following description, the same parts are given the same reference numerals. Their names and functions are also the same. A detailed description thereof will therefore not be repeated.

図1は、本発明の実施の形態の1つにおける画像形成システムの外観を示す斜視図である。図1を参照して、画像形成システムは、複合機であるMFP100と、検査装置200と、後処理装置300と、を含む。MFP100は、画像形成装置として機能し、画像データに基づいて記録媒体に画像を形成する。MFP100は、画像を形成する対象となる記録媒体として、複数種類の記録媒体のいずれにも画像を形成することが可能である。記録媒体は、紙などの用紙の他、OHP(Overhead projector)シート、布等を含む。また、以下の説明では、特に言及しない限り、記録媒体を用紙とする場合を例に説明する。 FIG. 1 is a perspective view showing the appearance of an image forming system according to one embodiment of the present invention. Referring to FIG. 1, the image forming system includes an MFP 100 which is a multi-function machine, an inspection device 200 and a post-processing device 300 . MFP 100 functions as an image forming apparatus and forms an image on a recording medium based on image data. The MFP 100 can form an image on any of a plurality of types of recording medium as a recording medium on which an image is to be formed. The recording medium includes paper such as paper, OHP (overhead projector) sheet, cloth, and the like. Also, in the following description, unless otherwise specified, a case where paper is used as a recording medium will be described as an example.

検査装置200は、MFP100から画像が形成された用紙が供給され、用紙に形成された画像に、ゴミ、汚れ、画像形成時の不良が原因で発生する部分をノイズとして検出する。検査装置200は、光電変換素子である第1スキャナ206および第2スキャナ207を備えている。第1スキャナ206および第2スキャナ207は、MFP100から供給される用紙の搬送経路を挟んで配置される。したがって、検査装置200は、MFP100から供給される用紙の表裏にそれぞれ形成された画像を同時に読み取ることが可能である。 The inspection apparatus 200 is supplied with a sheet having an image formed thereon from the MFP 100, and detects, as noise, portions of the image formed on the sheet that are caused by dust, dirt, and defects during image formation. The inspection apparatus 200 includes a first scanner 206 and a second scanner 207, which are photoelectric conversion elements. The first scanner 206 and the second scanner 207 are arranged across a transport path for paper supplied from the MFP 100 . Therefore, the inspection apparatus 200 can simultaneously read the images formed on the front and back sides of the paper supplied from the MFP 100 .

後処理装置300は、検査装置200から用紙が供給される。後処理装置300は、複数の排紙トレイを有し、複数の用紙を並べ替えて複数の排紙トレイのいずれかに排紙するソート機能を有する。また、後処理装置300は、検査装置200により用紙に形成された画像からノイズが検出された用紙を、ノイズが検出されない用紙とは別の排紙トレイに排紙する。具体的には、検査装置200からエラー信号が入力される場合、そのエラー信号に対応する用紙を、予め定められた排紙トレイに排紙する。なお、後処理装置300は、パンチ機構およびステープル機構を備えてもよい。パンチ機構は、複数の用紙をまとめた束にパンチ穴をあける機構である。ステープル機構は、複数の用紙をまとめた束にステープル針を打ち込む機構である。 Post-processing device 300 is supplied with paper from inspection device 200 . The post-processing device 300 has a plurality of paper discharge trays, and has a sorting function of rearranging a plurality of sheets and discharging them to one of the plurality of paper discharge trays. Further, the post-processing device 300 discharges the paper on which noise is detected from the image formed on the paper by the inspection device 200 to a paper discharge tray different from the paper on which noise is not detected. Specifically, when an error signal is input from the inspection device 200, the paper corresponding to the error signal is ejected to a predetermined paper ejection tray. Post-processing device 300 may include a punching mechanism and a stapling mechanism. The punch mechanism is a mechanism that punches holes in a bundle of sheets of paper. The stapling mechanism is a mechanism for driving staples into a bundle of a plurality of sheets.

図2は、検査装置のハードウェア構成の概要の一例を示すブロック図である。図2を参照して、検査装置200は、検査装置200の全体を制御するための中央演算処理装置(CPU)201と、CPU201が実行するためのプログラムを記憶するROM(Read Only Memory)202と、CPU201の作業領域として使用されるRAM(Random Access Memory)203と、データを不揮発的に記憶するEPROM(Erasable Programmable ROM)204と、CPU201をMFP100および後処理装置300に接続する通信部205と、第1スキャナ206と、第2スキャナ207と、シリアルインターフェース210と、を含む。 FIG. 2 is a block diagram showing an example of an overview of the hardware configuration of the inspection device. Referring to FIG. 2, inspection apparatus 200 includes a central processing unit (CPU) 201 for controlling the entire inspection apparatus 200, and a ROM (Read Only Memory) 202 for storing programs to be executed by CPU 201. , a RAM (Random Access Memory) 203 used as a work area for the CPU 201, an EPROM (Erasable Programmable ROM) 204 for storing data in a nonvolatile manner, a communication unit 205 for connecting the CPU 201 to the MFP 100 and the post-processing device 300, A first scanner 206 , a second scanner 207 and a serial interface 210 are included.

シリアルインターフェース210は、外部の装置とシリアル通信するためのインターフェースである。ここでは、シリアル通信は、USB(Universal Serial Bus)規格である。シリアルインターフェース210は、USB規格で通信可能な外部装置が接続可能である。CPU201は、シリアルインターフェース210を介して外部装置にアクセス可能である。外部装置は、USBメモリ211、CDドライブ等の記憶装置を含む。ここでは、外部装置をUSBメモリ211とする場合を例に説明する。USBメモリ211は、EPROMなどの半導体メモリと、シリアル通信回路と、を備えている。CPU201は、シリアルインターフェース210に装着されたUSBメモリ211に記録されたプログラムをRAM203にロードして実行する。 A serial interface 210 is an interface for serial communication with an external device. Here, the serial communication is the USB (Universal Serial Bus) standard. The serial interface 210 can be connected to an external device that can communicate according to the USB standard. The CPU 201 can access external devices via the serial interface 210 . The external device includes storage devices such as a USB memory 211 and a CD drive. Here, a case where the external device is the USB memory 211 will be described as an example. The USB memory 211 includes a semiconductor memory such as EPROM and a serial communication circuit. The CPU 201 loads a program recorded in the USB memory 211 attached to the serial interface 210 into the RAM 203 and executes it.

第1スキャナ206および第2スキャナ207それぞれは、光電変換素子であり、受光する光を電気信号としての画像データに変換して出力する。本実施の形態においては、第1スキャナ206および第2スキャナ207を、CCD(Charge Coupled Devices)としている。なお、光電変換素子は、CCDに限定されることなく、CMOSセンサー等の他の素子を用いてもよい。第1スキャナ206は、MFP100から供給される用紙の表面に形成された画像を光学的に読み取り、電子データである画像データをCPU201に出力する。第2スキャナ207は、MFP100から供給される用紙の裏面に形成された画像を光学的に読み取り、電子データである画像データをCPU201に出力する。CPU201は、第1スキャナ206が出力する画像データに基づいて、用紙の表面に形成された画像からノイズを検出するとともに、第2スキャナ207が出力する画像データに基づいて、用紙の表面に形成された画像からノイズを検出する。 Each of the first scanner 206 and the second scanner 207 is a photoelectric conversion element that converts received light into image data as an electrical signal and outputs the image data. In this embodiment, the first scanner 206 and the second scanner 207 are CCDs (Charge Coupled Devices). Note that the photoelectric conversion element is not limited to a CCD, and other elements such as a CMOS sensor may be used. First scanner 206 optically reads an image formed on the surface of a sheet supplied from MFP 100 and outputs image data, which is electronic data, to CPU 201 . Second scanner 207 optically reads an image formed on the back surface of a sheet supplied from MFP 100 and outputs image data, which is electronic data, to CPU 201 . Based on the image data output by the first scanner 206, the CPU 201 detects noise from the image formed on the surface of the paper, and based on the image data output by the second scanner 207, the CPU 201 detects noise formed on the surface of the paper. detect noise from the image.

なお、CPU201が実行するプログラムを記憶する媒体としては、USBメモリ211に限られず、光ディスク(CD-ROM(Compact Disk ROM)、MO(Magnetic Optical Disc)/MD(Mini Disc)/DVD(Digital Versatile Disc))、光カード、マスクROM、であってもよい。ここでいうプログラムは、CPU201により直接実行可能なプログラムだけでなく、ソースプログラム、圧縮処理されたプログラム、暗号化されたプログラム等を含む。 The medium for storing the program executed by the CPU 201 is not limited to the USB memory 211, and may be an optical disk (CD-ROM (Compact Disk ROM), MO (Magnetic Optical Disc)/MD (Mini Disc)/DVD (Digital Versatile Disc). )), optical card, mask ROM. The programs here include not only programs that can be directly executed by the CPU 201, but also source programs, compressed programs, encrypted programs, and the like.

また、通信部205またはシリアルインターフェース210を介して、検査装置200をインターネットに接続するようにしてもよい。この場合、CPU201は、インターネットに接続されたコンピューターからプログラムをダウンロードしてEPROM204に記憶することが可能である。また、インターネットに接続されたコンピューターによりプログラムがEPROM204に書込みされる場合がある。CPU201は、EPROM204に記憶されたプログラムをRAM203にロードして実行する。 Also, the inspection device 200 may be connected to the Internet via the communication unit 205 or the serial interface 210 . In this case, CPU 201 can download a program from a computer connected to the Internet and store it in EPROM 204 . Also, a program may be written to the EPROM 204 by a computer connected to the Internet. The CPU 201 loads a program stored in the EPROM 204 into the RAM 203 and executes it.

図3は、検査装置が備えるCPUが有する機能の一例を示すブロック図である。図3に示す機能は、検査装置200が備えるCPU201が、ROM202、EPROM204またはUSBメモリ211に記憶された検査プログラムを実行することにより、CPU201で実現される機能である。図3を参照して、CPU201は、読取制御部51と、処理対象データ生成部53と、ノイズ検出部55と、元データ取得部57と、特徴領域決定部59と、を含む。 FIG. 3 is a block diagram showing an example of functions of a CPU provided in the inspection apparatus. The functions shown in FIG. 3 are realized by the CPU 201 of the inspection apparatus 200 by executing the inspection program stored in the ROM 202 , the EPROM 204 or the USB memory 211 . Referring to FIG. 3 , CPU 201 includes a reading control portion 51 , a processing target data generation portion 53 , a noise detection portion 55 , an original data acquisition portion 57 and a characteristic region determination portion 59 .

読取制御部51は、第1スキャナ206および第2スキャナ207を制御する。読取制御部51は、MFP100が用紙の表面に画像を形成する場合、第1スキャナ206を制御して用紙の表面に形成された画像を読み取らせ、第1スキャナ206が出力する画像データを、処理対象データ生成部53に出力する。この場合、読取制御部51は、第2スキャナ207を駆動しない。読取制御部51は、MFP100が用紙の表面および裏面に画像を形成する場合、第1スキャナ206を制御して用紙の表面に形成された画像を読み取らせるとともに、第2スキャナ207を制御して用紙の裏面に形成された画像を読み取らせる。読取制御部51は、第1スキャナ206が出力する画像データと第2スキャナ207が出力する画像データとを処理対象データ生成部53に出力する。画像データは、2次元に画素が配列されたデータである。画素は、画素値を含む。画像データは、カラーであってもよいし、モノクロであってもよい。カラーの画像データは、赤(R),青(G),緑(G)それぞれの色の明度を示すデータである。モノクロの画像データは、明度を示すデータである。 The reading control unit 51 controls the first scanner 206 and the second scanner 207 . When MFP 100 forms an image on the surface of a sheet, reading control unit 51 controls first scanner 206 to read the image formed on the surface of the sheet, and processes the image data output by first scanner 206. Output to the target data generation unit 53 . In this case, the reading control unit 51 does not drive the second scanner 207 . When MFP 100 forms images on the front and back sides of a sheet, reading control unit 51 controls first scanner 206 to read the image formed on the front side of the sheet, and controls second scanner 207 to print the sheet. to read the image formed on the back surface of the The read control unit 51 outputs the image data output by the first scanner 206 and the image data output by the second scanner 207 to the processing target data generation unit 53 . Image data is data in which pixels are arranged two-dimensionally. A pixel contains a pixel value. The image data may be color or monochrome. The color image data is data indicating the lightness of each color of red (R), blue (G), and green (G). Monochrome image data is data indicating brightness.

第1スキャナ206が出力する画像データと、第2スキャナ207が出力する画像データとは、読取対象となる画像が異なるのみで、CPU201が実行する処理は同じである。このため、以下の説明では、特に言及しない限り、第1スキャナ206が出力する画像データを処理対象データ生成部53に出力する場合を例に説明する。 The image data output by the first scanner 206 and the image data output by the second scanner 207 differ only in the image to be read, and the processing executed by the CPU 201 is the same. Therefore, in the following description, the case where the image data output by the first scanner 206 is output to the processing target data generation unit 53 will be described as an example, unless otherwise specified.

処理対象データ生成部53は、読取制御部51から出力される画像データから処理対象データを生成する。処理対象データは、ノイズ検出部55が処理の対象とするデータである。読取制御部51からカラーの画像データが入力される場合、R,G,Bそれぞれの画像データそれぞれに対応する処理対象データを生成する。読取制御部51からモノクロの画像データが入力される場合、モノクロの画像データそれぞれに対応する処理対象データを生成する。R,G,Bそれぞれの画像データと、モノクロの画像データとは、色が異なるのみで画像データに対して実行される処理は同じなので、以下の説明では、読取制御部51からモノクロの画像データが入力される場合を例に説明する。 The processing target data generation unit 53 generates processing target data from the image data output from the reading control unit 51 . The data to be processed is data to be processed by the noise detection unit 55 . When color image data is input from the reading control unit 51, processing target data corresponding to each of the R, G, and B image data is generated. When monochrome image data is input from the read control unit 51, processing target data corresponding to each of the monochrome image data is generated. The R, G, and B image data and the monochrome image data differ only in color, and the same processing is performed on the image data. A case where is input will be described as an example.

MFP100は、用紙に画像を形成する際に、その画像の元になった元データに階調再現処理を実行した後に用紙に画像を形成する。階調再現処理は、例えば、誤差拡散処理およびスクリーン処理を含む。したがって、MFP100により用紙に形成された画像は高周波の変動成分を含む。処理対象データ生成部53は、画像データから高周波の変動成分を除去することにより処理対象データを生成する。処理対象データ生成部53は、解像度変換部61と、平均化部63と、を含む。解像度変換部61は、画像データの解像度を変換する。具体的には、解像度変換部61は、解像度を小さくするために画像データを縮小処理する。縮小処理することにより高周波の変動成分を除去することができるとともに、画素数が小さくなるので後段の処理の負荷を低減することができる。 When forming an image on a sheet of paper, the MFP 100 forms the image on the sheet of paper after performing tone reproduction processing on the original data that is the basis of the image. Tone reproduction processing includes, for example, error diffusion processing and screen processing. Therefore, the image formed on the paper by the MFP 100 contains high-frequency fluctuation components. The processing target data generation unit 53 generates processing target data by removing high-frequency fluctuation components from the image data. The processing target data generation unit 53 includes a resolution conversion unit 61 and an averaging unit 63 . The resolution converter 61 converts the resolution of image data. Specifically, the resolution conversion unit 61 reduces the image data to reduce the resolution. Reduction processing can remove high-frequency fluctuation components, and the number of pixels can be reduced, so the load of subsequent processing can be reduced.

平均化部63は、画像データを平均化処理する。平均化処理は、画像データに含まれる複数の画素それぞれの画素値を、その画素とその画素の周辺の複数の画素それぞれの画素値の平均値に設定する処理である。画素の周辺の画素は、画素に隣接する画素をいう。ここでは、3×3の矩形のフィルターを用いて、9つの画素の中心の画素の画素値を9つの画素の画素値の平均値に設定する。平均化処理を実行することにより、解像度変換部61により除去できなかった高周波成分を除去することができる。処理対象データ生成部53は、画像データに解像度変換処理および平均化処理を実行したデータを処理対象データとしてノイズ検出部55に出力する。なお、本実施の形態においては、解像度変換処理と平均化処理とを実行するようにしたが、画像データから高周波の変動成分を除去できれば、いずれか一方を実行するようにしてもよい。 The averaging unit 63 averages the image data. The averaging process is a process of setting the pixel value of each of a plurality of pixels included in image data to the average value of the pixel values of that pixel and a plurality of pixels surrounding that pixel. Pixels around a pixel refer to pixels adjacent to the pixel. Here, using a 3×3 rectangular filter, the pixel value of the central pixel of the nine pixels is set to the average value of the pixel values of the nine pixels. By executing the averaging process, high frequency components that could not be removed by the resolution conversion section 61 can be removed. Processing target data generation unit 53 outputs data obtained by performing resolution conversion processing and averaging processing on image data to noise detection unit 55 as processing target data. In this embodiment, the resolution conversion process and the averaging process are executed, but either one may be executed as long as the high-frequency fluctuation component can be removed from the image data.

元データ取得部57は、通信部205を制御して、MFP100から元データを取得する。元データは、MFP100が用紙に形成した画像の元になるデータである。元データ取得部57は、MFP100から取得された元データを特徴領域決定部59に出力する。 Original data obtaining portion 57 controls communication portion 205 to obtain original data from MFP 100 . The original data is the original data of the image formed on the paper by the MFP 100 . Original data acquiring portion 57 outputs the original data acquired from MFP 100 to characteristic region determining portion 59 .

特徴領域決定部59は、元データに含まれる特徴領域を決定する。特徴領域は、元データで表される画像に含まれる所定の特徴を有する領域である。ここでは、所定の特徴は、エッジと背景である。特徴領域決定部59は、元データ中で特徴領域の位置を示す位置情報をノイズ検出部55に出力する。特徴領域決定部59は、エッジ検出部65と、背景検出部67と、を含む。 Characteristic region determination unit 59 determines a characteristic region included in the original data. A characteristic region is a region having a predetermined characteristic included in the image represented by the original data. Here, the predetermined features are edges and background. Characteristic region determining portion 59 outputs position information indicating the position of the characteristic region in the original data to noise detecting portion 55 . Characteristic region determination portion 59 includes an edge detection portion 65 and a background detection portion 67 .

エッジ検出部65は、元データからエッジを構成する画素を検出し、エッジを構成する複数の画素を含む領域を特徴領域に決定する。エッジを構成する複数の画素の検出方法は、例えば、隣接する複数の画素の明度の差が所定値以上の複数の画素のうち明度が低い画素をエッジ画素に決定する。エッジを構成する画素を検出するためのフィルターを用いるようにしてもよい。 The edge detection unit 65 detects pixels forming an edge from the original data, and determines a region including a plurality of pixels forming the edge as a feature region. A method of detecting a plurality of pixels forming an edge, for example, determines a pixel having a low brightness among a plurality of pixels having a brightness difference equal to or greater than a predetermined value as an edge pixel. A filter for detecting pixels forming an edge may be used.

背景検出部67は、元データから背景を構成する画素を検出し、背景を構成する複数の画素を含む領域を特徴領域に決定する。ここでの背景は、用紙のうちで画像が形成されなかった領域である。背景を構成する複数の画素の検出方法は、例えば、明度が所定のしきい値以上の画素を、背景を構成する画素に決定する。なお、背景を構成する画素を検出するためのフィルターを用いるようにしてもよい。 The background detection unit 67 detects pixels forming the background from the original data, and determines an area including a plurality of pixels forming the background as a feature area. The background here is the area of the paper where no image was formed. A method of detecting a plurality of pixels forming the background determines, for example, pixels whose lightness is equal to or higher than a predetermined threshold as pixels forming the background. It should be noted that a filter may be used to detect the pixels forming the background.

ノイズ検出部55は、処理対象データ生成部53により生成された処理対象データを処理し、ノイズ領域を構成する画素を検出することにより、画像データ中のノイズを検出する。ノイズ検出部55は、注目画素選択部71と、特徴量決定部73と、しきい値決定部75と、比較部77と、候補画素決定部79と、ノイズ領域決定部81と、を含む。 The noise detection unit 55 detects noise in the image data by processing the processing target data generated by the processing target data generation unit 53 and detecting pixels forming a noise region. Noise detection portion 55 includes a target pixel selection portion 71 , a feature quantity determination portion 73 , a threshold value determination portion 75 , a comparison portion 77 , a candidate pixel determination portion 79 , and a noise region determination portion 81 .

注目画素選択部71は、処理対象データに含まれる複数の画素のうちから1つを順に注目画素に選択する。注目画素選択部71は、注目画素に対して比較部77による比較が終了すると、処理対象データに含まれる複数の画素のうち注目画素に選択していない1以上の画素のうちから1つを新たな注目画素に選択する。注目画素選択部71は、注目画素を選択するごとに、その注目画素を識別するための画素識別情報を特徴量決定部73および比較部77に出力する。 The pixel-of-interest selection unit 71 sequentially selects one of a plurality of pixels included in the data to be processed as a pixel of interest. When the comparison by the comparison unit 77 is completed for the target pixel, the target pixel selection unit 71 newly selects one of the one or more pixels that are not selected as the target pixel from among the plurality of pixels included in the processing target data. the target pixel. The target pixel selection unit 71 outputs pixel identification information for identifying the target pixel to the feature amount determination unit 73 and the comparison unit 77 each time it selects the target pixel.

特徴量決定部73は、注目画素に対する相対位置が定められた周辺領域の特徴量を決定する。周辺領域は、注目画素を除く注目画素の周辺の領域である。好ましくは、周辺領域は、注目画素から第1距離以上離れた領域である。また、周辺領域は、注目画素から第2距離の以下領域である。第2距離は第1距離より大きい。 The feature quantity determination unit 73 determines the feature quantity of the peripheral region whose relative position to the pixel of interest is determined. The peripheral area is an area around the pixel of interest excluding the pixel of interest. Preferably, the peripheral area is an area that is at least the first distance away from the pixel of interest. Also, the peripheral area is an area below the second distance from the pixel of interest. The second distance is greater than the first distance.

図4は、周辺領域の一例を示す図である。図4を参照して、周辺領域511は、1辺がM画素からなる矩形の外枠と、1辺がN画素からなる矩形の内枠とで囲まれた領域である。周辺領域511は、注目画素501に対して相対位置が定められる。具体的には、周辺領域511の外枠の中心と内枠の中心に注目画素が位置するように、周辺領域511と注目画素501との相対位置が定められる。 FIG. 4 is a diagram showing an example of the peripheral area. Referring to FIG. 4, the peripheral area 511 is an area surrounded by a rectangular outer frame with one side of M pixels and a rectangular inner frame with one side of N pixels. The peripheral region 511 is positioned relative to the pixel of interest 501 . Specifically, the relative positions of the peripheral region 511 and the target pixel 501 are determined such that the target pixel is positioned at the center of the outer frame and the center of the inner frame of the peripheral region 511 .

周辺領域511の第1距離はM/√2であり、第2距離はN/2である。なお、単位は、画素のサイズである。Nは、画像データに存在するノイズが表れるノイズ領域のサイズにより定まる。注目画素がノイズ領域の端部に位置する場合にノイズ領域が周辺領域の内枠の内に納まるようにNの値を定めるのが好ましい。ノイズ領域は、ノイズ検出部55の検出対象である。例えば、実験によってノイズ領域のサイズが予め定まる場合、そのサイズの2倍のサイズからNが定まる。また、Mにより周辺領域511に含まれる画素の数が定まる。画素数が少ないと後述する特徴量の精度が低下し、画素数が多いと特徴量を算出するための負荷が増大する。このため、精度と負荷のバランスを考慮して定めるのが好ましい。 The first distance of the peripheral region 511 is M/√2 and the second distance is N/2. Note that the unit is the size of a pixel. N is determined by the size of the noise region in which the noise present in the image data appears. It is preferable to determine the value of N so that the noise region is contained within the inner frame of the surrounding region when the pixel of interest is positioned at the edge of the noise region. The noise region is a detection target of the noise detection section 55 . For example, when the size of the noise region is determined in advance by experiment, N is determined from the size twice that size. Also, M determines the number of pixels included in the peripheral region 511 . If the number of pixels is small, the accuracy of the feature amount described later is lowered, and if the number of pixels is large, the load for calculating the feature amount increases. For this reason, it is preferable to determine it by considering the balance between accuracy and load.

なお、処理対象データに含まれる複数の画素のサイズは、処理対象データ生成部53によって画像データが解像度変換されて処理対象データが生成される場合には、解像度変換における縮小率によって定まる。また、本実施の形態においては、注目画素に対して1種類の周辺領域を定めるが、内枠のサイズの異なる複数種類の周辺領域を定めてもよい。この場合には、サイズの異なる複数種類のノイズ領域を検出することができる。 Note that the size of a plurality of pixels included in the processing target data is determined by the reduction ratio in the resolution conversion when the processing target data is generated by resolution-converting the image data by the processing target data generation unit 53 . Further, in the present embodiment, one type of peripheral region is determined for the pixel of interest, but a plurality of types of peripheral regions having different inner frame sizes may be determined. In this case, it is possible to detect a plurality of types of noise regions with different sizes.

図5は、周辺領域に含まれる複数のブロックの一例を示す図である。図5を参照して、周辺領域511は、A~Pの16個のブロックを含む。16個のブロックのサイズおよび形状は同じである。なお、ここでは、複数のブロックのサイズおよび形状を同じにしたが、複数のブロックのサイズおよび形状は、同じでなくてもよい。 FIG. 5 is a diagram showing an example of a plurality of blocks included in the peripheral area. Referring to FIG. 5, the peripheral area 511 includes 16 blocks AP. The size and shape of the 16 blocks are the same. Note that although the plurality of blocks have the same size and shape here, the plurality of blocks may not have the same size and shape.

図3に戻って、特徴量決定部73は、サブ特徴量決定部85と、候補ブロック決定部87と、除外部89と、を含む。 Returning to FIG. 3 , the feature amount determination section 73 includes a sub-feature amount determination section 85 , a candidate block determination section 87 and an exclusion section 89 .

除外部89は、複数のブロックのうち特徴領域の少なくとも一部を含むブロックを除外する。特徴領域は、特徴領域決定部59により決定された領域であり、背景を構成する領域と、エッジを構成する領域である。元データにおいて背景を構成する領域は、本来は用紙にトナーが付着しない領域であり、用紙にすじまたは斑点が発生しない領域である。斑点は、用紙にトナーなどが付着した部分で発生し、円形であることが多い。エッジを構成する領域は明度の変化が大きく、文字などが表された領域である。 The excluding unit 89 excludes a block including at least part of the characteristic region from among the plurality of blocks. The characteristic regions are regions determined by the characteristic region determination unit 59, and include a region forming the background and a region forming the edge. The area that constitutes the background in the original data is originally an area where no toner adheres to the paper, and is an area where no streaks or spots occur on the paper. Spots are generated in areas where toner or the like adheres to the paper, and are often circular in shape. A region forming an edge has a large change in brightness, and is a region in which a character or the like is represented.

サブ特徴量決定部85は、複数のブロックのうち除外部89により除外されなかった残りの複数のブロックごとにサブ特徴量を決定する。サブ特徴量は、ブロックに含まれる複数の画素の画素値の平均および標準偏差である。除外部89により除外された複数のブロックのサブ特徴量を算出しないので、サブ特徴量が背景または文字の影響を受けないようにできるとともに、処理の負荷を低減することができる。 The sub-feature amount determination unit 85 determines a sub-feature amount for each of the plurality of remaining blocks that have not been excluded by the exclusion unit 89 among the plurality of blocks. A sub-feature amount is the average and standard deviation of the pixel values of a plurality of pixels included in the block. Since the sub-feature amounts of the plurality of blocks excluded by the exclusion unit 89 are not calculated, the sub-feature amounts can be prevented from being affected by the background or characters, and the processing load can be reduced.

候補ブロック決定部87は、複数のブロックのうち除外部89により除外されなかった残りの複数のブロックのうちから1以上の候補ブロックを決定する。候補ブロック決定部87は、サブ特徴量が所定の条件を満たすブロックを候補ブロックに決定する。所定の条件は、予め定められた条件である。本例においては、所定の条件を、標準偏差が第1しきい値以下としている。なお、所定の条件を、標準偏差が第1しきい値以下かつ平均値が第2しきい値以下としてもよいし、平均値が第2しきい値以下としてもよい。 The candidate block determination unit 87 determines one or more candidate blocks from among the plurality of remaining blocks that have not been excluded by the exclusion unit 89 among the plurality of blocks. The candidate block determination unit 87 determines a block whose sub-feature amount satisfies a predetermined condition as a candidate block. A predetermined condition is a predetermined condition. In this example, the predetermined condition is that the standard deviation is equal to or less than the first threshold. The predetermined condition may be that the standard deviation is equal to or less than the first threshold and the average value is equal to or less than the second threshold, or that the average value is equal to or less than the second threshold.

特徴量決定部73は、1以上の候補ブロックにそれぞれの複数の画素の画素値を母数として、周辺領域の特徴量を決定する。特徴量は、画素値の平均と標準偏差である。特徴量決定部73は、決定された特徴量を、しきい値決定部75に出力する。 The feature quantity determination unit 73 determines the feature quantity of the peripheral region using pixel values of a plurality of pixels in one or more candidate blocks as parameters. The feature amount is the average and standard deviation of pixel values. Feature amount determining portion 73 outputs the determined feature amount to threshold value determining portion 75 .

しきい値決定部75は、注目画素に対応する周辺領域の特徴量に基づいて注目画素に対するしきい値を決定する。しきい値は、上限値と下限値とを含む。しきい値決定部75は、平均値に標準偏差に係数を乗算した値を加算した値を上限値に決定し、平均値から標準偏差に係数を乗算した値を減算した値を下限値に決定する。しきい値決定部75は、しきい値を比較部77に出力する。本例においては、係数を3としている。なお、検出精度を向上される場合には、係数をより小さな値にすればよい。 The threshold determination unit 75 determines a threshold for the pixel of interest based on the feature amount of the surrounding area corresponding to the pixel of interest. The threshold includes an upper limit value and a lower limit value. The threshold determination unit 75 determines the value obtained by adding the value obtained by multiplying the standard deviation by the coefficient to the average value as the upper limit value, and determines the value obtained by subtracting the value obtained by multiplying the standard deviation by the coefficient from the average value as the lower limit value. do. Threshold determining portion 75 outputs the threshold to comparing portion 77 . In this example, the coefficient is 3. In order to improve the detection accuracy, the coefficient should be set to a smaller value.

比較部77は、注目画素の画素値をしきい値と比較する。比較部77は、比較が終了することに応じて、注目画素選択部71に選択指示を出力する。候補画素決定部79は、比較部77による比較の結果、注目画素の画素値がしきい値で定まる範囲から外れる場合に注目画素を候補画素に決定する。候補画素決定部79は、比較部77による比較の結果、注目画素の画素値がしきい値で定まる範囲内の場合は注目画素を候補画素に決定しない。候補画素決定部79は、注目画素を候補画素に決定する場合、その候補画素を識別するための候補画素識別情報をノイズ領域決定部81に出力する。 A comparison unit 77 compares the pixel value of the pixel of interest with a threshold value. The comparison unit 77 outputs a selection instruction to the pixel-of-interest selection unit 71 upon completion of the comparison. The candidate pixel determination unit 79 determines the target pixel as a candidate pixel when the pixel value of the target pixel is out of the range determined by the threshold as a result of the comparison by the comparison unit 77 . The candidate pixel determination unit 79 does not determine the target pixel as a candidate pixel when the pixel value of the target pixel is within the range determined by the threshold as a result of the comparison by the comparison unit 77 . When determining the pixel of interest as a candidate pixel, candidate pixel determination section 79 outputs candidate pixel identification information for identifying the candidate pixel to noise region determination section 81 .

注目画素選択部71は、比較部77から選択指示が入力されることに応じて新たな注目画素を選択する。このため、注目画素選択部71が処理対象データに含まれる複数の画素のすべてを選択すると、比較部77によって処理対象データに含まれる複数の画素の画素値がしきい値と比較される。 The pixel-of-interest selection unit 71 selects a new pixel of interest in response to a selection instruction being input from the comparison unit 77 . Therefore, when the target pixel selection unit 71 selects all of the plurality of pixels included in the processing target data, the comparison unit 77 compares the pixel values of the plurality of pixels included in the processing target data with the threshold value.

ノイズ領域決定部81は、候補画素決定部79により処理対象データに含まれるすべての複数の画素について候補画素か否かが判断された後に、ノイズ領域を決定する。ノイズ領域は、連続する複数の候補画素を所定数以上含む領域である。所定数は、ノイズ領域のサイズに基づいて予め定められている。例えばノイズ領域を円形と仮定して、その直径以上の円形の領域に含まれる画素の数とすればよい。ノイズ領域決定部81は、ノイズ領域を1つでも検出する場合、エラー信号を後処理装置300に出力する。 The noise region determination unit 81 determines the noise region after the candidate pixel determination unit 79 determines whether or not all the plurality of pixels included in the processing target data are candidate pixels. A noise region is a region containing a predetermined number or more of a plurality of continuous candidate pixels. The predetermined number is predetermined based on the size of the noise region. For example, assuming that the noise region is circular, the number of pixels included in the circular region having a diameter greater than or equal to that diameter may be used. If even one noise region is detected, noise region determination section 81 outputs an error signal to post-processing device 300 .

図6は、画素値の一例を示す図である。図6を参照して、斑点を構成する画素とその周辺の画素の画素値を示している。斑点を構成する画素は、読取対象となった用紙にトナー等が付着することが原因で画像データに含まれるノイズ領域を構成する。実線が、斑点を構成する画素に対して図5に示した周辺領域511が定まる場合に、算出されるしきい値が示される。しきい値は、周辺領域511に含まれる複数の画素の画素値の平均値AV1と標準偏差から、平均値AV1に標準偏差の3倍を加算した上限値TH1と、平均値AV1から標準偏差の3倍を減算した下限値TL1として示される。なお、しきい値は注目画素ごとに定まるため、斑点を構成する画素以外の画素のしきい値は、斑点を構成する画素に対して定まるしきい値と異なるが近似する値となる。このため、図では、斑点を構成する画素以外の画素のしきい値は斑点を構成する画素のしきい値と同じ値として示される。 FIG. 6 is a diagram showing an example of pixel values. Referring to FIG. 6, the pixel values of the pixels forming the spots and their surrounding pixels are shown. The pixels that form the spots form a noise area that is included in the image data due to the adhesion of toner or the like to the paper that is the object of reading. A solid line indicates the threshold value calculated when the peripheral region 511 shown in FIG. 5 is determined for the pixels forming the spot. The threshold value is determined from the average value AV1 and the standard deviation of the pixel values of a plurality of pixels included in the peripheral region 511, the upper limit value TH1 obtained by adding three times the standard deviation to the average value AV1, and the standard deviation from the average value AV1. It is shown as the lower limit TL1 minus 3 times. Since the threshold value is determined for each pixel of interest, the threshold values of the pixels other than the pixels forming the spot are different from the threshold values determined for the pixels forming the spot, but are approximate values. Therefore, in the drawing, the threshold values of the pixels other than the pixels forming the spots are shown as the same values as the threshold values of the pixels forming the spots.

点線が従来の方法により定まるしきい値を示している。具体的には、斑点を構成する画素を中心に縦15画素で横15画素の矩形の領域が定まる場合に、算出されるしきい値が示される。しきい値は、矩形の領域に含まれる複数の画素の画素値の平均値AV2と標準偏差から、平均値AV2に標準偏差の3倍を加算した上限値TH2と、平均値AV2から標準偏差の3倍を減算した下限値TL2として示される。 A dotted line indicates the threshold determined by the conventional method. Specifically, when a rectangular area of 15 pixels vertically and 15 pixels horizontally is determined centering on the pixel forming the spot, the calculated threshold value is indicated. The threshold value is obtained from the average value AV2 and the standard deviation of the pixel values of a plurality of pixels included in the rectangular area, the upper limit value TH2 obtained by adding three times the standard deviation to the average value AV2, and the standard deviation from the average value AV2. It is shown as the lower limit TL2 with three times subtracted.

従来の方法によるしきい値は、斑点を構成する画素の画素値がしきい値を算出する母数に含まれるのに対して、本実施の形態における検査装置200は、斑点を構成する画素の画素値がしきい値を算出する母数に含まれない。具体的には、本実施の形態においては、斑点を構成する画素の画素値を除外して平均値が算出される。このため、注目画素の周辺部分の平均値が従来よりも真の値に近くなる。また、本実施の形態においては画素値のばらつきの範囲は従来のそれよりも小さくなる。換言すれば、上限値TH1と下限値TL1との差は上限値TH2と下限値TL2との差よりも小さな値となる。したがって、本実施の形態におけるしきい値は、従来のしきい値よりも精度が向上している。 In the threshold value of the conventional method, the pixel values of the pixels forming the spot are included in the parameters for calculating the threshold value. The pixel value is not included in the parameters for calculating the threshold. Specifically, in the present embodiment, the average value is calculated by excluding the pixel values of the pixels forming the spots. Therefore, the average value of the peripheral portion of the pixel of interest becomes closer to the true value than in the conventional case. Also, in this embodiment, the range of variation in pixel values is smaller than in the conventional case. In other words, the difference between the upper limit TH1 and the lower limit TL1 is smaller than the difference between the upper limit TH2 and the lower limit TL2. Therefore, the threshold in this embodiment is more accurate than the conventional threshold.

従来の方法によれば、斑点を構成する画素の画素値が上限値TH2より大きく、画素P1、画素P2、画素P3、画素P4、画素P5、画素P6それぞれを含む所定のサイズの部分で、画素値が下限値TL2よりも小さい。このため、画素P1、画素P2、画素P3、画素P4、画素P5、画素P6それぞれを含む部分がノイズとして検出される。 According to the conventional method, the pixel value of the pixel constituting the spot is larger than the upper limit value TH2, and the pixel The value is smaller than the lower limit value TL2. Therefore, a portion including pixels P1, P2, P3, P4, P5, and P6 is detected as noise.

これに対して、本実施の形態における検査装置200によれば、斑点を構成する画素の画素値が上限値TH1より大きく画素P1、画素P2、画素P3、画素P4、画素P5、画素P6それぞれを含む所定のサイズの部分で画素値が下限値TL1以上である。このため、画素P1、画素P2、画素P3、画素P4、画素P5、画素P6それぞれを含む周辺の部分がノイズとして検出されない。 On the other hand, according to the inspection apparatus 200 of the present embodiment, the pixel values of the pixels forming the spots are larger than the upper limit value TH1, and the pixels P1, P2, P3, P4, P5, and P6 are respectively selected. The pixel value is equal to or greater than the lower limit value TL1 in a portion of a predetermined size including the pixel value. Therefore, the peripheral portions including the pixel P1, pixel P2, pixel P3, pixel P4, pixel P5, and pixel P6 are not detected as noise.

また、本実施の形態における検査装置200によれば、上限値TH1が従来の方法における上限値TH2よりも小さいので、斑点として検出される領域のサイズが従来の方法により斑点として検出されるサイズよりも大きくなる。 Further, according to the inspection apparatus 200 of the present embodiment, since the upper limit TH1 is smaller than the upper limit TH2 in the conventional method, the size of the area detected as a spot is larger than the size detected as a spot in the conventional method. will also grow.

図7は、検出処理の流れの一例を示すフローチャートである。検出処理は、検査装置200が備えるCPU201が、ROM202、EPROM204またはUSBメモリ211に記憶された検査プログラムを実行することにより、CPU201により実行される処理である。図7を参照して、CPU201は、画像が読み取られたか否かを判断する。画像が読み取られるまで待機状態となり(ステップS01でNO)、画像が読み取られたならば(ステップS01でYES)、処理をステップS02に進める。MFP100から画像が形成された用紙が供給され、その用紙に形成された画像を第1スキャナ206が読み取ったか否かを判断する。 FIG. 7 is a flowchart showing an example of the flow of detection processing. The detection process is a process executed by CPU 201 of inspection apparatus 200 when CPU 201 executes an inspection program stored in ROM 202 , EPROM 204 or USB memory 211 . Referring to FIG. 7, CPU 201 determines whether an image has been read. The process waits until the image is read (NO in step S01), and if the image is read (YES in step S01), the process proceeds to step S02. A sheet on which an image is formed is supplied from the MFP 100, and it is determined whether or not the first scanner 206 has read the image formed on the sheet.

ステップS02においては、第1スキャナ206が出力する画像データを処理対象として、解像度変換処理が実行される。第1スキャナ206が出力する画像データの解像度が変換され、処理はステップS03に進む。ここでは、画像データに含まれる高周波成分を除去するために解像度を低下させる縮小処理が実行される。 In step S02, the image data output by the first scanner 206 is subjected to resolution conversion processing. The resolution of the image data output by the first scanner 206 is converted, and the process proceeds to step S03. Here, reduction processing is performed to reduce the resolution in order to remove high frequency components contained in the image data.

次のステップS03においては、平均化処理が実行され、処理はステップS04に進む。ステップS02において解像度が変換された画像データを処理対象とする。平均化処理は、画像データに含まれる複数の画素それぞれの画素値を、その画素および周辺の画素の画素値の平均値に変換する処理である。これにより、画像データに含まれる高周波成分のうち解像度変換処理により除去しきれなかった成分が除去される。なお、解像度変換処理により高周波成分が十分に除去される場合は、平均化処理を省略することができる。 In the next step S03, an averaging process is executed, and the process proceeds to step S04. The image data whose resolution has been converted in step S02 is to be processed. Averaging processing is processing for converting the pixel value of each of a plurality of pixels included in image data into the average value of the pixel values of that pixel and its surrounding pixels. As a result, high-frequency components included in the image data that could not be removed by the resolution conversion process are removed. Note that the averaging process can be omitted if the high frequency components are sufficiently removed by the resolution conversion process.

ステップS04においては、MFP100から元データが取得され、処理はステップS05に進む。元データは、ステップS01において読み取られた画像の元になったデータであり、MFP100がその画像を用紙に形成する元にしたデータである。ステップS05においては、元データからエッジが検出され、処理はステップS06に進む。隣接する画素の明度の差が所定のしきい値以上の画素がエッジとして検出される。ステップS06においては、元データから背景が検出され、処理はステップS07に進む。画素の画素値が所定のしきい値以上の画素が背景として検出される。 In step S04, original data is acquired from MFP 100, and the process proceeds to step S05. The original data is the data from which the image read in step S01 is based, and is the data from which the MFP 100 forms the image on paper. In step S05, edges are detected from the original data, and the process proceeds to step S06. A pixel whose difference in lightness between adjacent pixels is equal to or greater than a predetermined threshold value is detected as an edge. In step S06, the background is detected from the original data, and the process proceeds to step S07. A pixel whose pixel value is greater than or equal to a predetermined threshold value is detected as background.

ステップS07においては、ステップS05においてエッジとして検出された複数の画素を含む領域、およびステップS06において背景として検出された複数の画素を含む領域が特徴領域に決定され、処理はステップS08に進む。 In step S07, the region containing the pixels detected as the edge in step S05 and the region containing the pixels detected as the background in step S06 are determined as feature regions, and the process proceeds to step S08.

ステップS08においては、ステップS03において平均化処理が実行された画像データを処理対象データとして、ノイズ検出処理が実行される。ノイズ検出処理の詳細は後述するが、画像データ中に含まれるノイズ領域を検出する処理である。次のステップS09においては、ノイズ検出処理の結果により処理が分岐する。ノイズ領域が検出されたならば処理はステップS10に進み、ノイズ領域が検出されなければ処理はステップS11に進む。 In step S08, noise detection processing is performed using the image data on which the averaging processing has been performed in step S03 as processing target data. Details of the noise detection process will be described later, but this is a process of detecting a noise area included in image data. In the next step S09, the process branches depending on the result of the noise detection process. If the noise area is detected, the process proceeds to step S10, and if the noise area is not detected, the process proceeds to step S11.

ステップS10においては、後処理装置300を制御して、退避トレイに用紙を排紙させ、処理はステップS01に戻る。後処理装置300にエラー信号が出力されることにより、後処理装置300が用紙を退避トレイに排紙する。ステップS11においては、後処理装置300を制御して、通常搬送経路に用紙を排出させ、処理はステップS01に戻る。後処理装置300にエラー信号が出力されないことにより、後処理装置300が用紙を通常の搬送経路に用紙を排出する。 In step S10, post-processing device 300 is controlled to discharge the paper to the retraction tray, and the process returns to step S01. When the error signal is output to the post-processing device 300, the post-processing device 300 discharges the paper to the retraction tray. In step S11, post-processing device 300 is controlled to discharge the paper to the normal transport path, and the process returns to step S01. Since no error signal is output to the post-processing device 300, the post-processing device 300 discharges the paper to the normal transport path.

図8は、ノイズ検出処理の流れの一例を示すフローチャートである。ノイズ検出処理は、図7のステップS08において実行される処理であり、ノイズ検出処理が実行される前の段階で特徴領域が決定されている。また、ノイズ検出処理においては、処理対象データが処理の対象とされる。図8を参照して、処理対象データに含まれる複数の画素のうち1つが注目画素に選択され(ステップS21)、処理はステップS22に進む。ステップS22においては、周辺領域の複数のブロックが特定され、処理はステップS23に進む。注目画素に対応する周辺領域が決定され、周辺領域において予め定められたブロックA~Pが特定される。 FIG. 8 is a flowchart showing an example of the flow of noise detection processing. The noise detection process is a process executed in step S08 of FIG. 7, and the characteristic region is determined before the noise detection process is executed. Also, in the noise detection process, the data to be processed is the target of the process. Referring to FIG. 8, one of a plurality of pixels included in the data to be processed is selected as a pixel of interest (step S21), and the process proceeds to step S22. In step S22, a plurality of blocks in the peripheral area are specified, and the process proceeds to step S23. A peripheral area corresponding to the pixel of interest is determined, and predetermined blocks A to P are specified in the peripheral area.

次のステップS23においては、ステップS22において特定された複数のブロックのうちから特徴領域を含むブロックが処理対象から排除され、処理はステップS24に進む。これにより、エッジおよび背景の影響を除去したしきい値が決定される。 In the next step S23, blocks including characteristic regions are excluded from the processing targets from among the plurality of blocks specified in step S22, and the process proceeds to step S24. This determines a threshold that removes the effects of edges and background.

ステップS24においては、複数のブロックごとにサブ特徴量が決定され、処理はステップS25に進む。本実施の形態においては、サブ特徴量を標準偏差としている。複数のブロックごとに、そのブロックに含まれる複数の画素の画素値の標準偏差が算出される。ステップS25においては、サブ特徴量が所定の条件を満たすブロックが候補ブロックに決定され、処理はステップS26に進む。所定の条件は、標準偏差が第1しきい値以下としている。なお、所定の条件を、標準偏差が第1しきい値以下および平均値が第2しきい値以下の条件、または平均値が第2しきい値以下の条件としてもよい。 In step S24, sub-feature amounts are determined for each of a plurality of blocks, and the process proceeds to step S25. In this embodiment, the sub-feature amount is the standard deviation. The standard deviation of the pixel values of the pixels included in each block is calculated for each block. In step S25, a block whose sub-feature amount satisfies a predetermined condition is determined as a candidate block, and the process proceeds to step S26. The predetermined condition is that the standard deviation is equal to or less than the first threshold. The predetermined condition may be the condition that the standard deviation is equal to or less than the first threshold and the average value is equal to or less than the second threshold, or the condition that the average value is equal to or less than the second threshold.

ステップS26においては、周辺領域の特徴量が決定され、処理はステップS27に進む。ステップS25において候補領域に決定された1以上のブロックにそれぞれ含まれる複数の画素の平均値AV1および標準偏差が、周辺領域の特徴量として算出される。ステップS27においては、特徴量に基づいて、注目画素に対するしきい値が決定される。ここでは、しきい値として、平均値AV1に標準偏差の3倍を加算した上限値TH1と、平均値AV1から標準偏差の3倍を減算した下限値TL1が決定される。 In step S26, the feature amount of the peripheral area is determined, and the process proceeds to step S27. The average value AV1 and standard deviation of a plurality of pixels included in one or more blocks determined as the candidate area in step S25 are calculated as feature amounts of the peripheral area. In step S27, a threshold for the pixel of interest is determined based on the feature amount. Here, as the threshold values, an upper limit value TH1 obtained by adding three times the standard deviation to the average value AV1 and a lower limit value TL1 obtained by subtracting three times the standard deviation from the average value AV1 are determined.

ステップS28においては、注目画素の画素値がしきい値の範囲外か否かが判断される。注目画素の画素値が上限値TH1より大きい場合、または、下限値TL1より小さい場合にしきい値の範囲外と判断される。注目画素の画素値がしきい値の範囲外ならば処理はステップS29に進むが、そうでなければ処理はステップS30に進む。ステップS29においては、注目画素が候補画素に決定され、処理はステップS30に進む。 In step S28, it is determined whether or not the pixel value of the pixel of interest is outside the threshold range. If the pixel value of the pixel of interest is larger than the upper limit TH1 or smaller than the lower limit TL1, it is determined to be out of the threshold range. If the pixel value of the pixel of interest is outside the threshold range, the process proceeds to step S29; otherwise, the process proceeds to step S30. In step S29, the pixel of interest is determined as a candidate pixel, and the process proceeds to step S30.

ステップS30においては、注目画素に選択されていない未選択の画素が処理対象データに存在するか否かが判断される。未選択の画素が存在するならば処理はステップS21に戻るが、存在しなければ処理はステップS31に進む。 In step S30, it is determined whether or not there is an unselected pixel that has not been selected as the pixel of interest in the data to be processed. If there is an unselected pixel, the process returns to step S21, but if not, the process proceeds to step S31.

ステップS31においては、所定数以上が連続する候補画素の集合を抽出する。所定数は、処理対象データに含まれるノイズ領域のサイズにより定まる。換言すれば、画像データ中で検出の対象となる領域のサイズにより定まる。解像度変換処理による縮小率が解っているので、処理対象データのサイズが定まり、画像データ中の検出対象となる領域のサイズから処理対象データに含まれるノイズ領域のサイズが定まる。所定数は、一方向に連続する複数の画素の長さが、処理対象データに含まれるノイズ領域の直径の最小値となるように定められる。 In step S31, a set of candidate pixels in which a predetermined number or more of consecutive pixels are extracted. The predetermined number is determined by the size of the noise region included in the processing target data. In other words, it is determined by the size of the area to be detected in the image data. Since the reduction ratio of the resolution conversion process is known, the size of the data to be processed is determined, and the size of the noise area included in the data to be processed is determined from the size of the area to be detected in the image data. The predetermined number is determined so that the length of a plurality of pixels continuous in one direction is the minimum value of the diameter of the noise region included in the processing target data.

ステップS32においては、ステップS31において所定数以上が連続する候補画素の集合が抽出されたか否かを判断する。候補画素の集合が抽出されたならば処理はステップS33に進むが、そうでなければ処理は検出処理に戻る。ステップS33においては、候補画素が集合する領域をノイズ領域に決定し、処理は検出処理に戻る。 In step S32, it is determined whether or not a set of candidate pixels in which a predetermined number or more of consecutive pixels have been extracted in step S31. If the set of candidate pixels has been extracted, the process proceeds to step S33; otherwise, the process returns to the detection process. In step S33, the area where the candidate pixels gather is determined as the noise area, and the process returns to the detection process.

<第1の変形例>
第1の変形例における検査装置200は、サブ特徴量を算出する際に、ブロックを削除するのではなく、画素値を削除する。具体的には、第1の変形例におけるサブ特徴量決定部85は、サブ特徴量を算出する母数となる画素値を、ブロックに含まれる複数の画素のうち特徴領域に含まれる画素の以外画素の画素値とする。また、特徴量決定部73は、特徴量を算出する母数となる画素値を、候補ブロックに含まれる複数の画素のうち特徴領域に含まれる画素の以外画素の画素値とする。これにより、ブロックに背景またはエッジが含まれる場合であっても、背景またはエッジに含まれる画素の画素値がサブ特徴量および特徴領域の算出の母数とならない。このため、ブロックのサブ特徴量および周辺領域の特徴量が、背景またはエッジの影響を受けないようにできる。
<First modification>
The inspection apparatus 200 in the first modified example deletes pixel values instead of deleting blocks when calculating sub-feature amounts. Specifically, the sub-feature amount determination unit 85 in the first modified example selects the pixel values, which are the parameters for calculating the sub-feature amount, from the pixels other than the pixels included in the feature region among the plurality of pixels included in the block. Let it be the pixel value of the pixel. Further, the feature amount determination unit 73 sets the pixel values of the pixels other than the pixels included in the feature region among the plurality of pixels included in the candidate block as the pixel values used as the parameters for calculating the feature amount. As a result, even if a block includes a background or an edge, the pixel values of the pixels included in the background or edge do not serve as parameters for calculating sub-feature amounts and feature regions. Therefore, it is possible to prevent the sub-feature amount of the block and the feature amount of the surrounding area from being affected by the background or edge.

<第2の変形例>
第2の変形例における検査装置200は、注目画素に対する周辺領域を複数のサンプリング領域のうちから選択される1以上とする。
<Second modification>
The inspection apparatus 200 in the second modified example sets the peripheral area for the pixel of interest to one or more selected from among a plurality of sampling areas.

図9は、サンプリング領域の一例を示す図である。図9(A)は、第1サンプリング領域521を示す。第1サンプリング領域521は、注目画素501に対して相対位置が定められる。具体的には、第1サンプリング領域521は、図5に示した周辺領域のブロックA,B,C,F,Hを含む。図9(B)は、第2サンプリング領域522を示す。第2サンプリング領域522は、注目画素501に対して相対位置が定められる。具体的には、第2サンプリング領域522は、図5に示した周辺領域のブロックC,D,E,G,Iを含む。図9(C)は、第3サンプリング領域523を示す。第3サンプリング領域523は、注目画素501に対して相対位置が定められる。具体的には、第3サンプリング領域523は、図5に示した周辺領域のブロックH,J,L,M,Nを含む。図9(D)は、第4サンプリング領域524を示す。第4サンプリング領域524は、注目画素501に対して相対位置が定められる。具体的には、第4サンプリング領域524は、図5に示した周辺領域のブロックI,K,N,O,Pを含む。 FIG. 9 is a diagram showing an example of sampling regions. FIG. 9A shows the first sampling area 521. FIG. The first sampling area 521 is positioned relative to the pixel of interest 501 . Specifically, the first sampling area 521 includes the peripheral area blocks A, B, C, F, and H shown in FIG. FIG. 9B shows the second sampling area 522. FIG. The second sampling area 522 is positioned relative to the pixel of interest 501 . Specifically, the second sampling area 522 includes the peripheral area blocks C, D, E, G, and I shown in FIG. FIG. 9C shows the third sampling area 523. FIG. A third sampling area 523 is positioned relative to the pixel of interest 501 . Specifically, the third sampling area 523 includes the peripheral area blocks H, J, L, M, and N shown in FIG. FIG. 9D shows the fourth sampling area 524. FIG. A fourth sampling area 524 is positioned relative to the pixel of interest 501 . Specifically, the fourth sampling area 524 includes the peripheral area blocks I, K, N, O, and P shown in FIG.

図10は、第2の変形例における検査装置が備えるCPUが有する機能の一例を示すブロック図である。図10に示す機能が図3に示した機能と異なる点は、サンプリング特徴量決定部91および周辺領域決定部92が追加された点である。その他の機能は、図3に示した機能と同じなので、ここでは説明は繰り返さない。 FIG. 10 is a block diagram showing an example of functions of a CPU included in an inspection apparatus according to the second modification. The function shown in FIG. 10 is different from the function shown in FIG. 3 in that a sampling feature quantity determination unit 91 and a peripheral region determination unit 92 are added. Since other functions are the same as those shown in FIG. 3, the description will not be repeated here.

サンプリング特徴量決定部91は、第1サンプリング領域521~第4サンプリング領域524それぞれのサンプリング特徴量を決定する。サンプリング特徴量は、サンプリング領域に含まれる複数の画素の画素値の標準偏差である。 The sampling feature amount determination unit 91 determines sampling feature amounts of each of the first sampling region 521 to the fourth sampling region 524 . A sampling feature amount is a standard deviation of pixel values of a plurality of pixels included in the sampling area.

周辺領域決定部92は、第1サンプリング領域521~第4サンプリング領域524のうちから、サンプリング特徴量が所定の条件を満たすサンプリング領域を周辺領域に決定する。所定の条件は、標準偏差が第1しきい値以下の条件である。なお、所定の条件は、平均値が第1しきい値以下で、かつ、平均値が第2しきい値以下の条件、または、平均値が第2しきい値以下の条件でもよい。 The peripheral region determination unit 92 determines, as the peripheral region, a sampling region whose sampling feature amount satisfies a predetermined condition from among the first sampling region 521 to the fourth sampling region 524 . The predetermined condition is that the standard deviation is equal to or less than the first threshold. The predetermined condition may be the condition that the average value is equal to or less than the first threshold value and the average value is equal to or less than the second threshold value, or the condition that the average value is equal to or less than the second threshold value.

例えば、第1サンプリング領域521のみが所定の条件を満たし、他の第2サンプリング領域522~第4サンプリング領域524が所定の条件を満たさない場合、第1サンプリング領域521が周辺領域に決定される。また、第1サンプリング領域521~第4サンプリング領域524のすべてが所定の条件を満たす場合、第1サンプリング領域521~第4サンプリング領域524のすべてが周辺領域に決定される。この場合、図5に示した周辺領域511と同じになる。 For example, if only the first sampling area 521 satisfies the predetermined condition and the other second sampling area 522 to fourth sampling area 524 do not satisfy the predetermined condition, the first sampling area 521 is determined as the peripheral area. Also, when all of the first to fourth sampling regions 521 to 524 satisfy a predetermined condition, all of the first to fourth sampling regions 521 to 524 are determined as the peripheral region. In this case, it becomes the same as the peripheral region 511 shown in FIG.

第2の変形例における検査装置200が備えるCPU201において、図7に示した検出処理が実行される。ただし、ステップS08におけるノイズ検出処理が異なる。 The detection process shown in FIG. 7 is executed in the CPU 201 included in the inspection apparatus 200 in the second modified example. However, the noise detection process in step S08 is different.

図11は、第2の変形例におけるノイズ検出処理の流れの一例を示すフローチャートである。図11を参照して、図8に示したノイズ検出処理と異なる点は、ステップS21とステップS22との間に、ステップS41~ステップS43が追加された点である。その他の処理は図8に示した処理と同じなのでここでは説明は繰り返さない。 FIG. 11 is a flowchart showing an example of the flow of noise detection processing in the second modified example. 11, the difference from the noise detection process shown in FIG. 8 is that steps S41 to S43 are added between steps S21 and S22. Since other processing is the same as the processing shown in FIG. 8, the description will not be repeated here.

ステップS41においては、注目画素に対して複数のサンプリング領域が特定される。そして、複数のサンプリング領域ごとにサンプリング特徴量が決定される(ステップS42)。そして、サンプリング特徴量が第1条件を満たす1以上のサンプリング領域が周辺領域に決定される(ステップS43)。 In step S41, a plurality of sampling regions are specified for the pixel of interest. Then, a sampling feature amount is determined for each of the plurality of sampling regions (step S42). Then, one or more sampling regions whose sampling feature amount satisfies the first condition are determined as peripheral regions (step S43).

第2の変形例における検査装置200は、第1サンプリング領域521~第4サンプリング領域524のうちから周辺領域を決定するので、注目画素の周辺に、文字や背景などが存在する場合に、その文字や背景を含むサンプリング領域が周辺領域に決定されない。このため、しきい値から文字や背景の影響を除外することができる。 Since the inspection apparatus 200 in the second modification determines the surrounding area from among the first sampling area 521 to the fourth sampling area 524, if there is a character, background, or the like around the pixel of interest, the character and the sampling area including the background is not determined as the surrounding area. Therefore, the influence of characters and background can be excluded from the threshold value.

<第3の変形例>
図12は、第3の変形例における周辺領域の一例を示す図である。図12を参照して、第3の変形例における周辺領域531は、注目画素501から第1距離以上離れた領域で、かつ、注目画素501から第2距離の以下の領域である。第1距離は画素N/2個分のサイズであり、第2距離は画素M/2個分の距離である。第3の変形例における検査装置200においては、直径が第1距離以下のノイズ領域を検出する精度を高めることができる。第3の変形例における周辺領域は、第1の距離が異なる複数を用いるようにしてもよい。また、図4に示した周辺領域と、図12に示した周辺領域とを用いるようにしてもよい。
<Third Modification>
FIG. 12 is a diagram showing an example of the peripheral area in the third modified example. Referring to FIG. 12, a peripheral area 531 in the third modification is an area that is at least the first distance from the pixel of interest 501 and is at least the second distance from the pixel of interest 501 . The first distance is the size of N/2 pixels and the second distance is the distance of M/2 pixels. In the inspection apparatus 200 according to the third modification, it is possible to improve the accuracy of detecting a noise region whose diameter is equal to or less than the first distance. A plurality of peripheral regions having different first distances may be used in the third modification. Also, the peripheral area shown in FIG. 4 and the peripheral area shown in FIG. 12 may be used.

<第4の変形例>
図13は、第4の変形例における周辺領域の一例を示す図である。図13を参照して、第4の変形例における周辺領域541は、注目画素501からY軸方向に第1距離以上離れた領域で、かつ、注目画素501からY軸方向に第2距離の以下の領域である。第1距離は画素N/2個分のサイズであり、第2距離は画素M/2個分の距離である。これにより、X軸に平行なすじのノイズ領域を検出することができる。
<Fourth Modification>
FIG. 13 is a diagram showing an example of the peripheral area in the fourth modified example. Referring to FIG. 13 , peripheral region 541 in the fourth modification is a region that is at least a first distance away from target pixel 501 in the Y-axis direction and is at least a second distance away from target pixel 501 in the Y-axis direction. is the area of The first distance is the size of N/2 pixels and the second distance is the distance of M/2 pixels. As a result, it is possible to detect a noise area of streaks parallel to the X-axis.

なお、第4の変形例における周辺領域541は、注目画素501からX軸方向に第1距離以上離れた領域で、かつ、注目画素501からX軸方向に第2距離の以下の領域としてもよい。これにより、Y軸に平行なすじのノイズ領域を検出することができる。 Note that the peripheral area 541 in the fourth modification may be an area that is at least the first distance away from the pixel of interest 501 in the X-axis direction, and may be an area that is at least the second distance away from the pixel of interest 501 in the X-axis direction. . As a result, it is possible to detect a noise region of streaks parallel to the Y-axis.

第4の変形例における周辺領域は、第1の距離が異なる複数を用いるようにしてもよい。また、図4に示した周辺領域、図12に示した周辺領域および図13に示した周辺領域の1以上を組み合わせてノイズを検出するようにしてもよい。 A plurality of peripheral regions having different first distances may be used in the fourth modification. Further, noise may be detected by combining one or more of the peripheral areas shown in FIG. 4, the peripheral areas shown in FIG. 12, and the peripheral areas shown in FIG.

<第5の変形例>
本実施の形態における検査装置200は、画像形成装置として機能するMFP100に内蔵されてもよい。この場合、MFP100で画像が形成された用紙を、MFP100が備える原稿読取部に搬送する搬送経路を設け、原稿読取部で用紙に形成された画像を読み取らせるようにしてもよい。
<Fifth Modification>
Inspection apparatus 200 in the present embodiment may be incorporated in MFP 100 functioning as an image forming apparatus. In this case, a transport path may be provided for transporting a sheet on which an image is formed by MFP 100 to a document reading unit provided in MFP 100 so that the document reading unit can read the image formed on the sheet.

また、検査装置200は、原稿を読み取る機能を備えていればよく、例えば、スキャナ装置であってもよい。 Moreover, the inspection device 200 may be a scanner device as long as it has a function of reading a document.

以上説明したように本実施の形態における検査装置200は、処理対象データを構成する複数の画素それぞれを注目画素として処理する。具体的には、検査装置200は、注目画素と所定の相対位置で定まる周辺領域に含まれる複数の画素の画素値に基づいて特徴量を決定し、特徴量に基づいて注目画素に対するしきい値を決定し、しきい値と注目画素の画素値とを比較する。このため、注目画素が周辺領域の画素と異なる値の画素であるかを検出することができ、検出精度を高めることができる。 As described above, the inspection apparatus 200 according to the present embodiment processes each of a plurality of pixels forming the processing target data as a pixel of interest. Specifically, the inspection apparatus 200 determines a feature amount based on the pixel values of a plurality of pixels included in a peripheral area defined by a predetermined relative position to the target pixel, and determines a threshold value for the target pixel based on the feature amount. is determined and the pixel value of the pixel of interest is compared with the threshold value. Therefore, it is possible to detect whether the pixel of interest has a value different from that of the pixels in the surrounding area, thereby improving the detection accuracy.

また、検査装置は、周辺領域に含まれる複数のブロック毎にブロックの特徴を示すサブ特徴量を決定し、複数のブロック毎に決定されたサブ特徴量に基づいて、複数のブロックのうちから1以上の候補ブロックを決定し、1以上の候補ブロックそれぞれに含まれる複数の画素の画素値に基づいて、周辺領域の特徴量を決定する。このため、周辺領域に含まれる複数の画素のうち、画素値が他の画素と異なる画素を除外して特徴量が決定されるので、しきい値の精度を向上させることができる。 In addition, the inspection apparatus determines a sub-feature amount indicating a block feature for each of a plurality of blocks included in the peripheral area, and based on the sub-feature amount determined for each of the plurality of blocks, selects one of the plurality of blocks. The above candidate blocks are determined, and the feature amount of the surrounding area is determined based on the pixel values of a plurality of pixels included in each of the one or more candidate blocks. Therefore, the feature amount is determined by excluding pixels whose pixel values are different from those of other pixels among the plurality of pixels included in the peripheral region, so that the accuracy of the threshold value can be improved.

また、特徴量は、複数の画素の画素値の標準偏差、または、標準偏差および平均値である。このため、注目画素が周辺領域に含まれる複数の画素と比較して特異な値か否かを判断することができる。 Also, the feature amount is the standard deviation or the standard deviation and average value of the pixel values of a plurality of pixels. Therefore, it is possible to determine whether or not the pixel of interest has a peculiar value in comparison with a plurality of pixels included in the surrounding area.

また、検査装置200は、画像形成装置として機能するMFP100が画像を形成した用紙を読み取り、画像データを出力する第1スキャナ206を備え、画像データから処理対象データを生成する。このため、MFP100による画像形成における不良を検出することができる。 The inspection apparatus 200 also includes a first scanner 206 that reads a sheet on which an image is formed by the MFP 100 functioning as an image forming apparatus, outputs image data, and generates processing target data from the image data. Therefore, defects in image formation by the MFP 100 can be detected.

また、検査装置200は、MFP100が用紙に形成した画像の元になる元データを取得し、元データの特徴領域を決定し、周辺領域のうち特徴領域以外の領域に含まれる複数の画素に基づいて周辺領域の特徴量を決定する。このため、元データに含まれる特徴領域が周辺領域から除外されるので、しきい値の精度を向上させることができる。 Also, inspection apparatus 200 acquires original data that is the basis of an image formed on paper by MFP 100, determines a characteristic region of the original data, and determines a characteristic region of the original data based on a plurality of pixels included in a region other than the characteristic region in the peripheral region. to determine the feature value of the surrounding area. Therefore, since the feature area included in the original data is excluded from the peripheral area, it is possible to improve the accuracy of the threshold value.

また、検査装置200は、第1スキャナ206が出力する画像データの解像度を変更することにより処理対象データを生成するので、画像データに含まれる高周波のノイズを除去することができる。 In addition, since the inspection apparatus 200 generates processing target data by changing the resolution of the image data output by the first scanner 206, high-frequency noise included in the image data can be removed.

また、検査装置200は、注目画素がしきい値で定まる範囲外となる場合に注目画素をノイズが現れるノイズ領域に決定する。このため、注目画素と同じサイズのノイズ領域を検出することができる。 Also, when the pixel of interest is outside the range determined by the threshold value, the inspection apparatus 200 determines the pixel of interest as a noise region where noise appears. Therefore, a noise area having the same size as the pixel of interest can be detected.

また、検査装置200は、注目画素がしきい値で定まる範囲外となる場合に注目画素を候補画素に決定し、所定数以上が連続する候補画素の集合からなる領域をノイズが現れるノイズ領域に決定する。このため、注目画素よりサイズの大きなノイズ領域を検出することができる。 In addition, the inspection apparatus 200 determines the target pixel as a candidate pixel when the target pixel is out of the range determined by the threshold value, and sets an area formed by a set of candidate pixels in which a predetermined number or more are consecutive as a noise area where noise appears. decide. Therefore, it is possible to detect a noise area that is larger in size than the pixel of interest.

また、検査装置200は、第1スキャナ206が出力する画像データに含まれる複数の画素の画素値を当該画素を含む所定範囲の複数の画素の画素値の平均値に設定したデータを処理対象データとして生成する。このため、画像データに含まれる高周波のノイズを除去することができる。 In addition, the inspection apparatus 200 sets the pixel value of a plurality of pixels included in the image data output by the first scanner 206 to the average value of the pixel values of a plurality of pixels in a predetermined range including the pixel as the processing target data. Generate as Therefore, high-frequency noise contained in the image data can be removed.

第2の変形例における検査装置200は、それぞれが注目画素と所定の相対位置に配置された複数のサンプリング領域ごとに、サンプリング領域に含まれる複数の画素の画素値に基づいてサンプリング特徴量を決定し、複数のサンプリング領域ごとに決定されたサンプリング特徴量に基づいて、複数のサンプリング領域のうち1以上を周辺領域に決定する。このため、複数のサンプリング領域のうちから文字等を含むサンプリング領域を除外することができるので、しきい値の精度を向上させることができる。 The inspection apparatus 200 in the second modification determines a sampling feature value based on the pixel values of the pixels included in each of the plurality of sampling regions each arranged at a predetermined relative position to the pixel of interest. Then, one or more of the plurality of sampling regions are determined as peripheral regions based on the sampling feature amount determined for each of the plurality of sampling regions. For this reason, the sampling areas containing characters or the like can be excluded from among the plurality of sampling areas, so that the precision of the threshold value can be improved.

今回開示された実施の形態はすべての点で例示であって制限的なものではないと考えられるべきである。本発明の範囲は上記した説明ではなくて特許請求の範囲によって示され、特許請求の範囲と均等の意味および範囲内でのすべての変更が含まれることが意図される。 It should be considered that the embodiments disclosed this time are illustrative in all respects and not restrictive. The scope of the present invention is indicated by the scope of the claims rather than the above description, and is intended to include all modifications within the meaning and range of equivalents of the scope of the claims.

<付記>
(1)好ましくは、前記特徴領域決定手段は、前記元データからエッジを構成するエッジ画素を含む領域を前記特徴領域に決定する。この局面に従えば、しきい値が元データに存在するエッジの影響を受けないようにできる。
(2)好ましくは、前記特徴領域決定手段は、前記元データから背景を構成する背景画素を含む領域を前記特徴領域に決定する。この局面に従えば、しきい値が元データに存在する背景の影響を受けないようにできる。
(3)好ましくは、前記第1距離は、前記処理対象データ中に存在する検出対象のサイズに基づき決定される。この局面に従えば、検出対象であるノイズを正確に検出することができる。
<Appendix>
(1) Preferably, the characteristic region determining means determines, as the characteristic region, a region including edge pixels forming an edge from the original data. According to this aspect, the threshold value can be made unaffected by edges present in the original data.
(2) Preferably, the characteristic region determining means determines, from the original data, a region including background pixels forming a background as the characteristic region. According to this aspect, the threshold can be made immune to the background present in the original data.
(3) Preferably, the first distance is determined based on the size of a detection target present in the processing target data. According to this aspect, the noise to be detected can be accurately detected.

100 MFP、200 検査装置、300 後処理装置、201 CPU、202 ROM、203 RAM、204 EPROM、205 通信部、206 第1スキャナ、207 第2スキャナ、210 シリアルインターフェース、211 USBメモリ、51 読取制御部、53 処理対象データ生成部、55 ノイズ検出部、57 元データ取得部、59 特徴領域決定部、61 解像度変換部、63 平均化部、65 エッジ検出部、67 背景検出部、71 注目画素選択部、73 特徴量決定部、75 しきい値決定部、77 比較部、79 候補画素決定部、81 ノイズ領域決定部、85 サブ特徴量決定部、87 候補ブロック決定部、89 除外部、91 サンプリング特徴量決定部、92 周辺領域決定部、501 注目画素、511 周辺領域、521~524 第1~第4サンプリング領域、531 周辺領域、541 周辺領域。 100 MFP, 200 inspection device, 300 post-processing device, 201 CPU, 202 ROM, 203 RAM, 204 EPROM, 205 communication unit, 206 first scanner, 207 second scanner, 210 serial interface, 211 USB memory, 51 reading control unit , 53 processing target data generation unit, 55 noise detection unit, 57 original data acquisition unit, 59 characteristic region determination unit, 61 resolution conversion unit, 63 averaging unit, 65 edge detection unit, 67 background detection unit, 71 target pixel selection unit , 73 feature amount determination unit, 75 threshold value determination unit, 77 comparison unit, 79 candidate pixel determination unit, 81 noise region determination unit, 85 sub-feature amount determination unit, 87 candidate block determination unit, 89 exclusion unit, 91 sampling feature Quantity determining unit 92 Peripheral area determining unit 501 Pixel of interest 511 Peripheral area 521 to 524 First to fourth sampling areas 531 Peripheral area 541 Peripheral area.

Claims (17)

複数の画素が二次元に配列された処理対象データを構成する複数の前記画素それぞれを注目画素として処理することにより、前記処理対象データからノイズを検出するノイズ検出手段を備え、
前記ノイズ検出手段は、前記注目画素と所定の相対位置で定まる周辺領域に含まれる複数の前記画素の画素値に基づいて前記周辺領域の特徴を示す特徴量を決定する特徴量決定手段と、
前記特徴量に基づいて前記注目画素に対するしきい値を決定するしきい値決定手段と、
決定された前記しきい値と前記注目画素の画素値とを比較する比較手段と、
前記注目画素の画素値が前記注目画素に対して決定された前記しきい値で定まる範囲外となる場合に前記注目画素を候補画素に決定する候補決定手段と、
所定数以上が連続する前記候補画素の集合からなる領域をノイズが現れるノイズ領域に決定するノイズ領域決定手段と、を含、検査装置。
noise detection means for detecting noise from the data to be processed by processing each of the plurality of pixels constituting the data to be processed in which the plurality of pixels are arranged two-dimensionally as a pixel of interest;
The noise detection means includes a feature amount determination means for determining a feature amount indicating a feature of the surrounding area based on pixel values of a plurality of the pixels included in the surrounding area determined by a predetermined relative position to the target pixel;
threshold determination means for determining a threshold for the pixel of interest based on the feature quantity;
comparison means for comparing the determined threshold value with the pixel value of the pixel of interest;
candidate determination means for determining the target pixel as a candidate pixel when the pixel value of the target pixel is outside the range determined by the threshold value determined for the target pixel;
an inspection apparatus comprising : a noise region determination unit that determines a region formed by a set of said candidate pixels in which a predetermined number or more of consecutive pixels is a noise region in which noise appears.
前記周辺領域に含まれる複数のブロック毎に前記ブロックの特徴を示すサブ特徴量を決定するサブ特徴量決定手段と、
複数の前記ブロック毎に決定された前記サブ特徴量に基づいて、複数の前記ブロックのうちから1以上の候補ブロックを決定する候補ブロック決定手段と、をさらに備え、
前記特徴量決定手段は、1以上の前記候補ブロックそれぞれに含まれる複数の前記画素の画素値に基づいて、前記周辺領域の特徴量を決定する、請求項1に記載の検査装置。
sub-feature determining means for determining a sub-feature representing a feature of each of a plurality of blocks included in the peripheral area;
further comprising candidate block determination means for determining one or more candidate blocks from among the plurality of blocks based on the sub-feature amounts determined for each of the plurality of blocks;
2. The inspection apparatus according to claim 1, wherein said feature quantity determination means determines the feature quantity of said peripheral region based on pixel values of said plurality of pixels included in each of said one or more candidate blocks.
それぞれが前記注目画素と所定の相対位置で定まる複数のサンプリング領域ごとに、前記サンプリング領域に含まれる複数の前記画素の画素値に基づいて前記サンプリング領域の特徴を示すサンプリング特徴量を決定するサンプリング特徴量決定手段と、
複数の前記サンプリング領域ごとに決定された前記サンプリング特徴量に基づいて、複数の前記サンプリング領域のうち1以上を前記周辺領域に決定する周辺領域決定手段と、をさらに備えた請求項1または2に記載の検査装置。
Sampling feature for determining a sampling feature value indicating a feature of the sampling region based on pixel values of the plurality of pixels included in the sampling region for each of a plurality of sampling regions each determined by a predetermined relative position to the target pixel. a quantity determining means;
3. The apparatus according to claim 1, further comprising peripheral area determining means for determining one or more of said plurality of sampling areas as said peripheral area based on said sampling feature amount determined for each of said plurality of sampling areas. Inspection equipment as described.
前記サンプリング特徴量は、複数の前記画素の画素値の標準偏差、または、標準偏差および平均値である、請求項3に記載の検査装置。 4. The inspection apparatus according to claim 3, wherein said sampling feature amount is a standard deviation or a standard deviation and an average value of pixel values of said plurality of pixels. 画像形成装置が画像を形成した記録媒体を読み取り、画像データを出力する読取手段と、
前記画像データから前記処理対象データを生成する処理対象データ生成手段と、をさらに備えた、請求項1~4のいずれかに記載の検査装置。
reading means for reading a recording medium on which an image is formed by the image forming apparatus and outputting image data;
5. The inspection apparatus according to any one of claims 1 to 4, further comprising processing target data generating means for generating said processing target data from said image data.
前記画像形成装置が前記記録媒体に形成した前記画像の元になる元データを取得する元データ取得手段と、
前記元データ中で所定の特徴が表された特徴領域を決定する特徴領域決定手段と、をさらに備え、
前記特徴量決定手段は、前記周辺領域のうち前記特徴領域以外の領域に含まれる複数の前記画素に基づいて前記周辺領域の前記特徴量を決定する、請求項5に記載の検査装置。
an original data acquisition unit for acquiring original data that is the basis of the image formed on the recording medium by the image forming apparatus;
further comprising feature area determining means for determining a feature area in which a predetermined feature is expressed in the original data,
6. The inspection apparatus according to claim 5, wherein said feature quantity determining means determines said feature quantity of said peripheral region based on said plurality of pixels included in a region other than said feature region in said peripheral region.
前記処理対象データ生成手段は、前記読取手段が出力する前記画像データの解像度を変更することにより前記処理対象データを生成する、請求項5または6に記載の検査装置。 7. The inspection apparatus according to claim 5, wherein said processing target data generating means generates said processing target data by changing the resolution of said image data output by said reading means. 複数の画素が二次元に配列された処理対象データを構成する複数の前記画素それぞれを注目画素として処理することにより、前記処理対象データからノイズを検出するノイズ検出手段と、
画像形成装置が画像を形成した記録媒体を読み取り、画像データを出力する読取手段と、
前記画像データから前記処理対象データを生成する処理対象データ生成手段と、を備え、
前記処理対象データ生成手段は、前記読取手段が出力する前記画像データの解像度を変更することにより前記処理対象データを生成し、
前記ノイズ検出手段は、前記注目画素と所定の相対位置で定まる周辺領域に含まれる複数の前記画素の画素値に基づいて前記周辺領域の特徴を示す特徴量を決定する特徴量決定手段と、
前記特徴量に基づいて前記注目画素に対するしきい値を決定するしきい値決定手段と、
決定された前記しきい値と前記注目画素の画素値とを比較する比較手段と、を含み、
前記ノイズ検出手段は、前記注目画素の画素値が前記注目画素に対して決定された前記しきい値で定まる範囲外となる場合に前記注目画素をノイズが現れるノイズ領域に決定する、検査装置。
noise detection means for detecting noise from the data to be processed by processing each of the plurality of pixels constituting the data to be processed in which a plurality of pixels are arranged two-dimensionally as a pixel of interest;
reading means for reading a recording medium on which an image is formed by the image forming apparatus and outputting image data;
a processing target data generation means for generating the processing target data from the image data;
The processing target data generating means generates the processing target data by changing the resolution of the image data output by the reading means,
The noise detection means includes a feature amount determination means for determining a feature amount indicating a feature of the surrounding area based on pixel values of a plurality of the pixels included in the surrounding area determined by a predetermined relative position to the target pixel;
threshold determination means for determining a threshold for the pixel of interest based on the feature quantity;
a comparing means for comparing the determined threshold value with the pixel value of the pixel of interest;
The noise detection means determines the pixel of interest to be a noise region in which noise appears when the pixel value of the pixel of interest is outside the range determined by the threshold value determined for the pixel of interest.
前記処理対象データ生成手段は、前記読取手段が出力する前記画像データに含まれる複数の前記画素の画素値に代えて当該画素を含む所定範囲の複数の前記画素の画素値の平均値を設定したデータを前記処理対象データとして生成する、請求項6~8のいずれかに記載の検査装置。 The processing target data generation means sets an average value of the pixel values of the plurality of pixels in a predetermined range including the pixel in place of the pixel values of the plurality of pixels included in the image data output by the reading means. The inspection apparatus according to any one of claims 6 to 8, wherein data is generated as said processing target data. 前記ノイズ検出手段は、前記注目画素の画素値が前記注目画素に対して決定された前記しきい値で定まる範囲外となる場合に前記注目画素を候補画素に決定する候補決定手段と、
所定数以上が連続する前記候補画素の集合からなる領域をノイズが現れるノイズ領域に決定するノイズ領域決定手段と、をさらに含む請求項に記載の検査装置。
The noise detection means determines the target pixel as a candidate pixel when the pixel value of the target pixel is out of the range determined by the threshold value determined for the target pixel;
9. The inspection apparatus according to claim 8 , further comprising noise region determining means for determining, as a noise region in which noise appears, a region formed by a set of said candidate pixels in which a predetermined number or more are consecutive.
前記周辺領域は、前記注目画素を除く前記注目画素の周辺の領域である、請求項1~10のいずれかに記載の検査装置。 11. The inspection apparatus according to any one of claims 1 to 10, wherein said peripheral area is an area around said pixel of interest excluding said pixel of interest. 前記周辺領域は、前記注目画素から第1距離の距離以上離れた領域である、請求項1~10のいずれかに記載の検査装置。 11. The inspection apparatus according to any one of claims 1 to 10, wherein said peripheral area is an area at least a first distance away from said pixel of interest. 前記周辺領域は、前記注目画素から第2距離の以下の領域である、請求項1~12のいずれかに記載の検査装置。 13. The inspection apparatus according to claim 1, wherein said peripheral area is an area within a second distance from said pixel of interest. 前記周辺領域は、前記注目画素から所定の方向に第2距離以下の領域である、請求項1~12のいずれかに記載の検査装置。 13. The inspection apparatus according to claim 1, wherein said peripheral area is an area within a second distance in a predetermined direction from said pixel of interest. 前記周辺領域は、前記注目画素から第1方向に第2距離以下の第1領域と、前記注目画素から前記第1方向と交わる第2方向に前記第2距離以下の第2領域と、を含む請求項1~12のいずれかに記載の検査装置。 The peripheral region includes a first region within a second distance in a first direction from the pixel of interest, and a second region within the second distance in a second direction intersecting the first direction from the pixel of interest. The inspection device according to any one of claims 1 to 12. 検査装置で実行される検査方法であって、
複数の画素が二次元に配列された処理対象データを構成する複数の前記画素それぞれを注目画素として処理することにより、前記処理対象データからノイズを検出するノイズ検出ステップを含み、
前記ノイズ検出ステップは、前記注目画素と所定の相対位置で定まる周辺領域に含まれる複数の前記画素の画素値に基づいて前記周辺領域の特徴を示す特徴量を決定する特徴量決定ステップと、
前記特徴量に基づいて前記注目画素に対するしきい値を決定するしきい値決定ステップと、
決定された前記しきい値と前記注目画素の画素値とを比較する比較ステップと、
前記注目画素の画素値が前記注目画素に対して決定された前記しきい値で定まる範囲外となる場合に前記注目画素を候補画素に決定する候補決定ステップと、
所定数以上が連続する前記候補画素の集合からなる領域をノイズが現れるノイズ領域に決定するノイズ領域決定ステップと、を含む、検査方法。
An inspection method performed by an inspection device,
A noise detection step of detecting noise from the data to be processed by processing each of the plurality of pixels constituting the data to be processed in which a plurality of pixels are arranged two-dimensionally as a pixel of interest,
The noise detection step includes a feature amount determination step of determining a feature amount indicating a feature of the surrounding area based on pixel values of a plurality of the pixels included in the surrounding area determined by a predetermined relative position to the target pixel;
a threshold determination step of determining a threshold for the pixel of interest based on the feature quantity;
a comparing step of comparing the determined threshold value with the pixel value of the pixel of interest;
a candidate determination step of determining the target pixel as a candidate pixel when the pixel value of the target pixel is outside the range determined by the threshold value determined for the target pixel;
and a noise region determination step of determining a region formed by a set of said candidate pixels in which a predetermined number or more of said pixels are continuous as a noise region in which noise appears.
複数の画素が二次元に配列された処理対象データを構成する複数の前記画素それぞれを注目画素として処理することにより、前記処理対象データからノイズを検出するノイズ検出ステップを、コンピューターに実行させ、
前記ノイズ検出ステップは、前記注目画素と所定の相対位置で定まる周辺領域に含まれる複数の前記画素の画素値に基づいて前記周辺領域の特徴を示す特徴量を決定する特徴量決定ステップと、
前記特徴量に基づいて前記注目画素に対するしきい値を決定するしきい値決定ステップと、
決定された前記しきい値と前記注目画素の画素値とを比較する比較ステップと、
前記注目画素の画素値が前記注目画素に対して決定された前記しきい値で定まる範囲外となる場合に前記注目画素を候補画素に決定する候補決定ステップと、
所定数以上が連続する前記候補画素の集合からなる領域をノイズが現れるノイズ領域に決定するノイズ領域決定ステップと、を含む、検査プログラム。
causing a computer to execute a noise detection step of detecting noise from the data to be processed by processing each of the plurality of pixels constituting the data to be processed in which the plurality of pixels are arranged two-dimensionally as a pixel of interest;
The noise detection step includes a feature amount determination step of determining a feature amount indicating a feature of the surrounding area based on pixel values of a plurality of the pixels included in the surrounding area determined by a predetermined relative position to the target pixel;
a threshold determination step of determining a threshold for the pixel of interest based on the feature quantity;
a comparing step of comparing the determined threshold value with the pixel value of the pixel of interest;
a candidate determination step of determining the target pixel as a candidate pixel when the pixel value of the target pixel is outside the range determined by the threshold value determined for the target pixel;
and a noise region determination step of determining a region formed by a set of said candidate pixels in which a predetermined number or more of consecutive pixels are a noise region in which noise appears.
JP2019017441A 2019-02-01 2019-02-01 Inspection device, inspection method and inspection program Active JP7225858B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2019017441A JP7225858B2 (en) 2019-02-01 2019-02-01 Inspection device, inspection method and inspection program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2019017441A JP7225858B2 (en) 2019-02-01 2019-02-01 Inspection device, inspection method and inspection program

Publications (2)

Publication Number Publication Date
JP2020127096A JP2020127096A (en) 2020-08-20
JP7225858B2 true JP7225858B2 (en) 2023-02-21

Family

ID=72084313

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2019017441A Active JP7225858B2 (en) 2019-02-01 2019-02-01 Inspection device, inspection method and inspection program

Country Status (1)

Country Link
JP (1) JP7225858B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2022138685A1 (en) * 2020-12-24 2022-06-30 京セラドキュメントソリューションズ株式会社 Image processing method and image processing device

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008175558A (en) 2007-01-16 2008-07-31 Nec Corp Device and method for visual inspection
JP2009182735A (en) 2008-01-30 2009-08-13 Kyocera Corp Noise processing method, image processing apparatus, and information code reading apparatus
JP2018017673A (en) 2016-07-29 2018-02-01 富士フイルム株式会社 Printed matter inspection apparatus, printed matter inspection method and program

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008175558A (en) 2007-01-16 2008-07-31 Nec Corp Device and method for visual inspection
JP2009182735A (en) 2008-01-30 2009-08-13 Kyocera Corp Noise processing method, image processing apparatus, and information code reading apparatus
JP2018017673A (en) 2016-07-29 2018-02-01 富士フイルム株式会社 Printed matter inspection apparatus, printed matter inspection method and program

Also Published As

Publication number Publication date
JP2020127096A (en) 2020-08-20

Similar Documents

Publication Publication Date Title
US7130469B2 (en) Image processing apparatus, image processing method, program, recording medium, and image forming apparatus having the same
US7206461B2 (en) Digital image acquisition and processing system
US7369712B2 (en) Automated statistical self-calibrating detection and removal of blemishes in digital images based on multiple occurrences of dust in images
US7315658B2 (en) Digital camera
US7310450B2 (en) Method of detecting and correcting dust in digital images based on aura and shadow region analysis
US20040027618A1 (en) Image defect detecting method
JP5229328B2 (en) Character area extraction device, imaging device having character area extraction function, and character area extraction program
US9232109B2 (en) Image processing apparatus and image processing method specifying a type of original based on whether a high frequency component is included in an acquired spatial frequency feature including a feature of fiber of an original
JP2004318696A (en) Image processing method, image processor, and image processing program
JP5032895B2 (en) A method for binarizing a digital gray value image.
JP4931227B2 (en) Image processing apparatus and image processing program
JP2002084421A (en) Signal processing method, signal processing device, and image reading device
US7800661B2 (en) Programmable pattern matching device
JP7225858B2 (en) Inspection device, inspection method and inspection program
US20230056998A1 (en) Apparatus and method
US8330997B2 (en) Image processing apparatus, image forming apparatus and image processing method
JP5929282B2 (en) Image processing apparatus and image processing program
CN114937031A (en) Defect detection method and apparatus
JPH10294862A (en) Image processing device
JP4244046B2 (en) Image processing method and image processing apparatus
JP5121998B2 (en) Image processing apparatus and image processing program
CN100353381C (en) Image inspecting apparatus, image inspecting method, control program and computer-readable storage medium
JP2004318425A (en) Image processing method, image processor, and program
JP7672826B2 (en) Image processing device, image processing method, and program
JP4513006B2 (en) Emulsion scratch determination method and emulsion scratch determination system

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20210915

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20220523

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20220531

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20220713

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20221025

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20221219

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20230123

R150 Certificate of patent or registration of utility model

Ref document number: 7225858

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150