JP2010093736A - Noise canceling method, and coating checking method and apparatus - Google Patents

Noise canceling method, and coating checking method and apparatus Download PDF

Info

Publication number
JP2010093736A
JP2010093736A JP2008264419A JP2008264419A JP2010093736A JP 2010093736 A JP2010093736 A JP 2010093736A JP 2008264419 A JP2008264419 A JP 2008264419A JP 2008264419 A JP2008264419 A JP 2008264419A JP 2010093736 A JP2010093736 A JP 2010093736A
Authority
JP
Japan
Prior art keywords
density
calculation
pixels
pixel
average
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP2008264419A
Other languages
Japanese (ja)
Other versions
JP5024897B2 (en
Inventor
Yasunari Asada
康徳 浅田
Norio Miyasato
憲夫 宮里
Eiji Yamazaki
英治 山崎
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.)
INTERNIX CORP
Toyota Motor Corp
Original Assignee
INTERNIX CORP
Toyota Motor Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by INTERNIX CORP, Toyota Motor Corp filed Critical INTERNIX CORP
Priority to JP2008264419A priority Critical patent/JP5024897B2/en
Publication of JP2010093736A publication Critical patent/JP2010093736A/en
Application granted granted Critical
Publication of JP5024897B2 publication Critical patent/JP5024897B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Image Processing (AREA)
  • Picture Signal Circuits (AREA)
  • Closed-Circuit Television Systems (AREA)
  • Facsimile Image Signal Circuits (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To provide a noise cancellation processing method reduced in influence on an image portion required for a user. <P>SOLUTION: A noise canceling method has: a step of capturing image data, containing a density for each pixel, obtained by an imaging apparatus; a dissimilar density average calculation step of calculating a moving average of dissimilar densities from the density for each pixel; and a differential data calculation step of subtracting the moving average of the dissimilar densities from the density for each pixel to determine a difference between both moving averages. <P>COPYRIGHT: (C)2010,JPO&INPIT

Description

本発明は、画像信号からノイズを除去する技術に関し、更に、ノイズ除去技術を利用する塗装検査技術に関する。   The present invention relates to a technique for removing noise from an image signal, and further relates to a coating inspection technique using a noise removal technique.

撮像素子から得られた画像信号には、ノイズが不可避的に含まれる。従来、画像信号からノイズを除去するための様々な方法が知られている。   The image signal obtained from the image sensor inevitably contains noise. Conventionally, various methods for removing noise from an image signal are known.

特許文献1には、画像信号を輝度信号と色差信号に分離し、輝度信号のノイズ除去と色差信号のノイズ除去を別個に行なうことが記載されている。特許文献2には、固定パターン雑音とランダム雑音のうち、固定パターン雑音に注目した雑音除去方法が記載されている。特許文献3には、デジタル覆い焼き処理を行なう画像処理装置が記載されている。デジタル覆い焼き処理とは、アナログ写真技術における覆い焼き処理、即ち、焼付け時に画像の一部を覆って適切な明るさのプリントを得る処理をデジタル画像処理に適用したものである。   Patent Document 1 describes that an image signal is separated into a luminance signal and a color difference signal, and noise removal of the luminance signal and noise removal of the color difference signal are performed separately. Patent Document 2 describes a noise removal method focusing on fixed pattern noise among fixed pattern noise and random noise. Patent Document 3 describes an image processing apparatus that performs digital dodging processing. The digital dodging process is an application of the dodging process in analog photographic technology, that is, a process of covering a part of an image to obtain a print with appropriate brightness at the time of printing.

特開2006−309524号公報JP 2006-309524 A 特開2004−015712号公報JP 2004-015712 A 特開2006−330938号公報JP 2006-330938 A

一般に、ノイズ除去処理では、画像信号の平滑化処理を行なう。従って、ノイズ除去処理を行なうと、ノイズが除去されるが、ノイズ以外の通常の画像信号も平滑化される。例えば、デジタル画像には、その用途によって、ユーザが残しておきたい画像部分とそうでない画像部分からなるものがある。このよう画像に対してノイズ除去処理を行なうと、ユーザが残しておきたい画像部分も影響を受ける。   In general, in the noise removal process, the image signal is smoothed. Therefore, noise removal processing removes noise, but normal image signals other than noise are also smoothed. For example, some digital images are composed of an image portion that the user wants to leave and an image portion that the user does not want to leave depending on the application. When noise removal processing is performed on such an image, the image portion that the user wants to leave is also affected.

本発明の目的は、ユーザにとって必要な画像部分に対して影響が少ないノイズ除去処理方法を提供することにある。   An object of the present invention is to provide a noise removal processing method that has little influence on an image portion necessary for a user.

本発明によるとノイズ除去方法は、撮像装置によって得られた画素毎の濃度を含む画像データを取得するステップと、演算処理装置によって、前記画素毎の濃度より非類似濃度の移動平均を算出する非類似濃度平均算出ステップと、演算処理装置によって、前記画素毎の濃度より前記非類似濃度の移動平均を減算し、両者の差分を求める差分データ算出ステップと、を有する。   According to the present invention, the noise removal method includes a step of obtaining image data including the density for each pixel obtained by the imaging device, and a non-similarity density calculating the moving average of the dissimilar density from the density for each pixel by the arithmetic processing unit. A similar density average calculating step; and a difference data calculating step of subtracting the moving average of the dissimilar density from the density of each pixel by the arithmetic processing unit to obtain a difference between the two.

非類似濃度算出ステップは、次のステップを含む。
先ず、前記画像データを構成する画素より、所定のピッチにて、順番に、1画素づつ取り出し、これを基準画素bi(i=1〜k)とする。
The dissimilar density calculation step includes the following steps.
First, pixels are sequentially extracted from the pixels constituting the image data at a predetermined pitch, and are set as reference pixels bi (i = 1 to k).

次に、前記基準画素bi(i=1〜k)の各々について、該基準画素を含む所定の領域を設定し、それを計算領域Biする。
次に、前記計算領域Biの各々について、該計算領域に含まれる画素のうち、前記基準画素biの濃度qiとの差が大きい濃度の画素を、濃度差が大きい順に所定の数だけ取り出す。
Next, for each of the reference pixels bi (i = 1 to k), a predetermined area including the reference pixel is set, and is set as a calculation area Bi.
Next, for each of the calculation areas Bi, a predetermined number of pixels having a large difference from the density qi of the reference pixel bi are extracted from the pixels included in the calculation area.

次に、前記計算領域Biの各々について、前記取り出した画素の濃度の平均値cmiを演算する。
最後に、前記基準画素の濃度qiの各々を、前記非類似濃度の平均値cmiの各々によって置き換える。
Next, the average value cmi of the density of the extracted pixels is calculated for each of the calculation areas Bi.
Finally, each density qi of the reference pixel is replaced by each of the average values cmi of the dissimilar densities.

本発明によると、ユーザにとって必要な画像部分に影響を与えることなく、必要でない画像部分のノイズを除去することができる。   According to the present invention, it is possible to remove noise in an unnecessary image portion without affecting the image portion necessary for the user.

図1を参照して、自動車の車体の塗装の検査方法の概略を説明する。塗装検査装置は、自動車の車体10に照明光を照射する照明装置11、車体の像を拡大又は縮小する光学系(レンズユニット)12、車体のデジタル像を撮像するカメラ13、及び、車体の像から塗装の欠陥を検出する画像処理装置14を有する。カメラ13はCCDカメラであってよい。画像処理装置14は、記憶装置、演算処理装置、及び、メモリを備えた通常のコンピュータであってよい。このようなコンピュータには、入力装置、表示装置及びプリンタが備えられている。本例の塗装検査装置は、自動車の車体の表面を小さな領域に分割し、各領域について、塗装の検査を自動的に行なうように構成されている。塗装検査装置は、図示しないロボットによって自動車の車体の周囲を移動する。   With reference to FIG. 1, the outline of the inspection method of the coating of the vehicle body of a motor vehicle is demonstrated. The coating inspection apparatus includes an illumination device 11 that irradiates an automobile body 10 with illumination light, an optical system (lens unit) 12 that enlarges or reduces an image of the vehicle body, a camera 13 that captures a digital image of the vehicle body, and an image of the vehicle body. An image processing device 14 for detecting coating defects. The camera 13 may be a CCD camera. The image processing device 14 may be a normal computer including a storage device, an arithmetic processing device, and a memory. Such a computer includes an input device, a display device, and a printer. The coating inspection apparatus of the present example is configured to divide the surface of the body of an automobile into small regions and automatically perform coating inspection for each region. The coating inspection apparatus moves around the vehicle body by a robot (not shown).

図2を参照して、画像処理装置における塗装の欠陥の検出処理の手順を説明する。先ず、ステップS101にて、画像処理装置14に設けられた演算処理装置は、カメラから画像データを取り込み、それをメモリ又は記憶装置に格納する。ステップS102にて、演算処理装置は、画像データに対して微分処理を行なう。それによって、画像データの濃度変化が得られる。この濃度変化が大きい領域は、欠陥である可能性があるが、欠陥以外の可能性もある。ドア、ドアノブ、窓ガラス、ヘッドランプ等の縁では、濃度変化が大きい。ステップS103にて、演算処理装置は、画像データに対してノイズ除去処理を行なう。ノイズ除去処理は、画像データの平滑化である。ノイズ除去処理は、以下に図3を参照して、詳細に説明する。ステップS104にて、演算処理装置は、画像データを2値化する。それによって、画像は、濃度が濃い領域と濃度が薄い領域の2つの領域に分けられる。例えば、画像は、黒色と白色に分けられる。この2値画像により、欠陥候補を検出することができる。例えば、白色の領域は、欠陥候補であると判定する。ステップS105にて、演算処理装置は、マスク処理を行なう。即ち、2値画像より、マスクエリアを除去する。ドアノブ、窓ガラス、ヘッドランプ等は、塗装を行なわないので、マスクエリアとなる。最後に、ステップS106にて、演算処理装置は、欠陥を検出する。ステップS104にて検出された欠陥候補のうち、マスクエリア以外のものを塗装の欠陥であると判定する。   With reference to FIG. 2, the procedure of a coating defect detection process in the image processing apparatus will be described. First, in step S101, the arithmetic processing device provided in the image processing device 14 takes in image data from the camera and stores it in a memory or a storage device. In step S102, the arithmetic processing unit performs differentiation processing on the image data. Thereby, the density change of the image data is obtained. The region where the density change is large may be a defect, but may be other than a defect. The density change is large at the edges of doors, door knobs, window glass, headlamps, and the like. In step S103, the arithmetic processing unit performs noise removal processing on the image data. Noise removal processing is smoothing of image data. The noise removal process will be described in detail below with reference to FIG. In step S104, the arithmetic processing device binarizes the image data. As a result, the image is divided into two areas, a high density area and a low density area. For example, the image is divided into black and white. A defect candidate can be detected from this binary image. For example, the white area is determined to be a defect candidate. In step S105, the arithmetic processing unit performs a mask process. That is, the mask area is removed from the binary image. Door knobs, window glass, headlamps, etc. are mask areas because they are not painted. Finally, in step S106, the arithmetic processing unit detects a defect. Of the defect candidates detected in step S104, those other than the mask area are determined to be paint defects.

図6はカメラから取り込んだ原画像601と、ノイズ除去を行い、2値化処理を行なった画像602の例を示す。原画像601には、ノイズ6012と、ユーザが残したい画像領域、即ち、塗装の欠陥6013が含まれる。ノイズ6012は、小さな灰色の丸によって表され、塗装の欠陥6013は白い丸によって表される。本発明によると、ノイズ除去処理後の画像602では、原画像601のうち、ノイズ6012が除去され、塗装の欠陥6023のみが残る。即ち、ノイズは除去されているが、ユーザが残したい画像は劣化することなく明確に残されている。   FIG. 6 shows an example of an original image 601 captured from a camera and an image 602 that has been subjected to binarization processing after noise removal. The original image 601 includes noise 6012 and an image region that the user wants to leave, that is, a coating defect 6013. Noise 6012 is represented by small gray circles and paint defects 6013 are represented by white circles. According to the present invention, in the image 602 after the noise removal process, the noise 6012 is removed from the original image 601 and only the coating defect 6023 remains. That is, the noise is removed, but the image that the user wants to leave is clearly left without deterioration.

図3を参照して本発明によるノイズ除去方法を説明する。ステップS201にて、画像処理装置14に設けられた演算処理装置は、画像データを取り込み、それをメモリ又は記憶装置に格納する。この画像データは、撮像装置から取り込んだ画像データであってもよい。この画像データによって、例えば、図6に示す原画像601が得られる。ステップS202にて、演算処理装置は、画素データの濃度の移動平均を算出する。濃度の移動平均の算出方法は、後に、図4を参照して詳細に説明する。濃度の移動平均を求めることによって、原画像601の濃度分布が平滑化される。ステップS203にて、演算処理装置は、非類似濃度の移動平均を算出する。非類似濃度平均の算出方法は、後に図5を参照して詳細に説明する。非類似濃度平均を求めることによって、原画像601の濃度は反転する。即ち、濃度の濃い領域では濃度が薄くなり、濃度が薄い領域では濃度が濃くなる。特に、濃度変化が大きい領域では、濃度の反転は顕著になる。最後に、ステップS204にて、演算処理装置は、原画像の画像データより、非類似濃度の移動平均を減算し、両者の差分を求める。こうして得られた差分データでは、原画像601におけるノイズは平滑化又は除去され、塗装の欠陥のみが平滑化されることなく残る。尚、本発明によるノイズ除去方法では、ステップS202の画素データの濃度の移動平均の算出処理を省略してもよい。この場合には、ステップS201とステップS203、ステップS204のみによって、ノイズを除去する。   The noise removal method according to the present invention will be described with reference to FIG. In step S201, the arithmetic processing device provided in the image processing device 14 takes in the image data and stores it in the memory or the storage device. This image data may be image data captured from the imaging device. With this image data, for example, an original image 601 shown in FIG. 6 is obtained. In step S202, the arithmetic processing unit calculates a moving average of the density of the pixel data. A method for calculating the moving average of the density will be described later in detail with reference to FIG. By obtaining the moving average of the density, the density distribution of the original image 601 is smoothed. In step S203, the arithmetic processing unit calculates a moving average of dissimilar densities. The method for calculating the dissimilar density average will be described in detail later with reference to FIG. By obtaining the dissimilar density average, the density of the original image 601 is inverted. That is, the density is low in the high density area, and the density is high in the low density area. In particular, in the region where the density change is large, the inversion of the density becomes remarkable. Finally, in step S204, the arithmetic processing unit subtracts the moving average of the dissimilar density from the image data of the original image to obtain the difference between the two. In the difference data obtained in this way, noise in the original image 601 is smoothed or removed, and only the coating defect remains without being smoothed. In the noise removal method according to the present invention, the process of calculating the moving average of the density of the pixel data in step S202 may be omitted. In this case, noise is removed only by step S201, step S203, and step S204.

図7のグラフ701〜704は、画像の濃度分布を示す。これらのグラフにおいて、横軸は、1つの走査線に沿った画素の位置、縦軸は、濃度の値である。図7のグラフ701の曲線7011は、ステップS201にて取り込んだ原画像601の濃度分布を示す。ピーク7012はノイズを表し、ピーク7013は塗装の欠陥を表す。図7のグラフ702の曲線7021は、ステップS202にて算出した濃度の移動平均の分布を示す。濃度の移動平均を求めることによって、原画像の濃度分布が平滑化される。図7のグラフ703の曲線7031は、ステップS203にて算出した非類似濃度の移動平均の分布を示す。非類似濃度平均を求めることによって、原画像601の濃度分布を表す曲線7011におけるピークの凹凸は反転する。図7のグラフ704の曲線7041は、ステップS204にて算出した差分の分布を示す。差分データでは、原画像601の濃度分布を表す曲線7011におけるノイズを示すピーク7012は平滑化又は除去され、塗装の欠陥7013は、平滑化されることなく残る。従って、図7のグラフ704の曲線7041のデータを用いて、2値化し、それを画像化すると、図6の画像602のように、ノイズ6012は除去され、ユーザによって必要である塗装の欠陥6023が残る。   Graphs 701 to 704 in FIG. 7 show the density distribution of the image. In these graphs, the horizontal axis represents pixel positions along one scanning line, and the vertical axis represents density values. A curve 7011 of the graph 701 in FIG. 7 indicates the density distribution of the original image 601 captured in step S201. Peak 7012 represents noise and peak 7013 represents a paint defect. A curve 7021 in the graph 702 in FIG. 7 shows the moving average distribution of the density calculated in step S202. By obtaining the moving average of the density, the density distribution of the original image is smoothed. A curve 7031 in the graph 703 in FIG. 7 shows the moving average distribution of dissimilar densities calculated in step S203. By calculating the dissimilar density average, the peak unevenness in the curve 7011 representing the density distribution of the original image 601 is inverted. A curve 7041 of the graph 704 in FIG. 7 indicates the distribution of differences calculated in step S204. In the difference data, the peak 7012 indicating noise in the curve 7011 representing the density distribution of the original image 601 is smoothed or removed, and the coating defect 7013 remains without being smoothed. Therefore, when binarization is performed using the data of the curve 7041 of the graph 704 in FIG. 7 and then imaged, the noise 6012 is removed as shown in the image 602 in FIG. Remains.

図4を参照して、図3のステップS202の濃度の移動平均の算出方法を説明する。ステップS301にて、画像処理装置14に設けられた演算処理装置は、濃度の移動平均の算出の対象となる画像データを取り込み、それをメモリ又は記憶装置に格納する。本例では、カメラから取り込んだ原画像601の画像データ、即ち、原画像データである。この画像データを構成する画素より、所定のピッチにて、順番に、1画素づつ取り出す。これを基準画素ai(i=1〜k)とする。これらの基準画素の濃度を、pi(i=1〜k)とする。ピッチが1画素なら、全ての画素を順に取り出すことになる。画素を取り出す順番は、画素データを構成する画素の走査順であってよい。   With reference to FIG. 4, the method for calculating the moving average of the density in step S202 of FIG. 3 will be described. In step S301, the arithmetic processing device provided in the image processing device 14 takes in image data that is a target of calculation of a moving average of density and stores it in a memory or a storage device. In this example, the image data of the original image 601 captured from the camera, that is, the original image data. From the pixels constituting the image data, pixels are sequentially extracted at a predetermined pitch. This is defined as a reference pixel ai (i = 1 to k). The density of these reference pixels is pi (i = 1 to k). If the pitch is one pixel, all pixels are taken out in order. The order of taking out the pixels may be the scanning order of the pixels constituting the pixel data.

ステップS302にて、演算処理装置は、こうして取り出した各基準画素について、その基準画素を含む所定の領域を設定する。これを計算領域Ai(i=1〜k)とする。計算領域Aiに含まれる画素数は、全ての計算領域において同一であることが好ましい。しかしながら、基準画素が、画像の縁に存在する場合には、計算領域に含まれる画素数は、それより少なくてもよい。ステップS303にて、演算処理装置は、各計算領域について、それに含まれる画素の濃度の平均値を算出する。これを濃度の平均値pmi(i=1〜k)とする。ステップS304にて、演算処理装置は、基準画素の濃度piを、濃度の平均値pmiによって置き換える。このような濃度の平均値の計算と、その置き換えを、全ての基準画素に対して、順に実施する。それによって、濃度の移動平均が得られる。   In step S302, the arithmetic processing unit sets a predetermined region including the reference pixel for each reference pixel thus extracted. This is defined as a calculation area Ai (i = 1 to k). The number of pixels included in the calculation area Ai is preferably the same in all calculation areas. However, when the reference pixel is present at the edge of the image, the number of pixels included in the calculation region may be smaller. In step S303, the arithmetic processing unit calculates an average value of the densities of the pixels included in each calculation region. This is the average density pmi (i = 1 to k). In step S304, the arithmetic processing unit replaces the density pi of the reference pixel with the density average value pmi. Such calculation of the average value of density and its replacement are sequentially performed for all the reference pixels. Thereby, a moving average of the concentration is obtained.

図5を参照して、図3のステップS203の非類似濃度平均の算出方法を説明する。ステップS401にて、画像処理装置14に設けられた演算処理装置は、非類似濃度の移動平均の算出の対象となる画像データを取り込み、それをメモリ又は記憶装置に格納する。本例では、この画像データは、ステップS202にて算出して濃度の移動平均である。演算処理装置は、この画像データを構成する画素より、所定のピッチにて、順番に、1画素づつ取り出す。これを基準画素bi(i=1〜k)とする。これらの基準画素の濃度を、qi(i=1〜k)とする。ピッチが1画素なら、全ての画素を順に取り出すことになる。画素を取り出す順番は、画素データを構成する画素の走査順であってよい。ステップS402にて、演算処理装置は、各基準画素bi(i=1〜k)について、その基準画素を含む所定の領域を設定する。これを計算領域Bi(i=1〜k)とする。但し、ここで設定する計算領域Biは、ステップS302にて設定した計算領域Aiより大きいことが好ましい。計算領域Biに含まれる画素数は、全ての計算領域において同一であることが好ましい。しかしながら、基準画素が、画像の縁に存在する場合には、計算領域に含まれる画素数は、それよい少なくてもよい。   With reference to FIG. 5, the method of calculating the dissimilar density average in step S203 of FIG. 3 will be described. In step S401, the arithmetic processing device provided in the image processing device 14 takes in the image data that is the target of calculation of the moving average of the dissimilar density, and stores it in the memory or the storage device. In this example, this image data is a moving average of density calculated in step S202. The arithmetic processing device extracts pixels one by one from the pixels constituting the image data in order at a predetermined pitch. This is set as a reference pixel bi (i = 1 to k). The density of these reference pixels is qi (i = 1 to k). If the pitch is one pixel, all pixels are taken out in order. The order of taking out the pixels may be the scanning order of the pixels constituting the pixel data. In step S402, the arithmetic processing unit sets a predetermined region including the reference pixel for each reference pixel bi (i = 1 to k). This is a calculation area Bi (i = 1 to k). However, the calculation area Bi set here is preferably larger than the calculation area Ai set in step S302. The number of pixels included in the calculation area Bi is preferably the same in all calculation areas. However, when the reference pixel is present at the edge of the image, the number of pixels included in the calculation region may be as small as possible.

ステップS403にて、演算処理装置は、各計算領域Biについて、それに含まれる画素のうち、基準画素biの濃度qiとの差が大きい濃度の画素を、濃度差が大きい順に所定の数だけ取り出す。即ち、基準画素biの濃度qiに対して非類似の濃度の画素を取りさす。例えば、n個の画素cij(j=1〜n、但し、nは領域Biに含まれる画素数より小さい)を取り出したものとする。ステップS404にて、演算処理装置は、n個の画素cij(j=1〜n)の濃度の平均値を算出する。この濃度の平均値を、cmi(i=1〜k)とする。これが、非類似濃度の平均値である。ステップS405にて、演算処理装置は、基準画素biの濃度qiを、非類似濃度の平均値cmiによって置き換える。このような非類似濃度の平均値の計算と、その置き換えを、全ての基準画素に対して、順に実施する。それによって、非類似濃度の移動平均が得られる。   In step S403, the arithmetic processing unit extracts a predetermined number of pixels having a large difference from the density qi of the reference pixel bi among the pixels included in each calculation region Bi in descending order of the density difference. That is, a pixel having a density that is not similar to the density qi of the reference pixel bi is taken. For example, it is assumed that n pixels cij (j = 1 to n, where n is smaller than the number of pixels included in the region Bi) are extracted. In step S404, the arithmetic processing unit calculates an average value of the densities of n pixels cij (j = 1 to n). Let the average value of this density | concentration be cmi (i = 1-k). This is the average value of dissimilar densities. In step S405, the arithmetic processing unit replaces the density qi of the reference pixel bi with the average value cmi of the dissimilar density. The calculation of the average value of such dissimilar densities and the replacement thereof are sequentially performed for all the reference pixels. Thereby, a moving average of dissimilar concentrations is obtained.

非類似濃度の平均値は、各計算領域Biにおいて、基準画素biの濃度qiと濃度が非類似の画素を取り出し、その平均値を求めることにより得られる。従って、非類似濃度の平均値は、基準画素biの濃度qiに対して反転した値をとる。非類似濃度平均値を計算するときに設定する計算領域Biは、濃度の移動平均値を計算するときに設定する計算領域Aiより大きいことが好ましい。計算領域Biが小さい場合には、その計算領域Biに、基準画素biに対して濃度が非類似の画素が存在する可能性が少なくなる。基準画素biに対して濃度が非類似の画素を得るには、計算領域Biを比較的大きくする必要がある。逆に計算領域Biが大きすぎると、非類似濃度平均を求める対象となる画像データの濃度勾配又は傾向が希釈される。   The average value of dissimilar densities is obtained by taking out pixels whose densities are not similar to the density qi of the reference pixel bi in each calculation area Bi and obtaining the average value. Therefore, the average value of the dissimilar densities takes a value that is inverted with respect to the density qi of the reference pixel bi. The calculation area Bi set when calculating the dissimilar density average value is preferably larger than the calculation area Ai set when calculating the moving average value of density. When the calculation area Bi is small, the possibility that a pixel having a density that is not similar to the reference pixel bi exists in the calculation area Bi is reduced. In order to obtain a pixel whose density is not similar to the reference pixel bi, the calculation area Bi needs to be relatively large. On the other hand, if the calculation area Bi is too large, the density gradient or tendency of the image data for which the dissimilar density average is obtained is diluted.

本例の非類似濃度の移動平均を求める方法では、ステップS401にて、非類似濃度の移動平均を求める対象となる画像データを取得する。この画像データは、図3のステップS202にて平滑化された画像データである。即ち、図7のグラフ702の曲線7021によって示される画像データである。しかしながら、この非類似濃度の移動平均を求める対象となる画像データは、図3のステップS201にて取得した原画像データであってよい。即ち、図7のグラフ701の曲線7011によって示される原画像データであってよい。   In the method of obtaining the moving average of the dissimilar density in this example, image data that is the target for obtaining the moving average of the dissimilar density is acquired in step S401. This image data is the image data smoothed in step S202 of FIG. That is, the image data indicated by the curve 7021 in the graph 702 of FIG. However, the image data for which the moving average of the dissimilar density is obtained may be the original image data acquired in step S201 in FIG. That is, it may be the original image data indicated by the curve 7011 of the graph 701 in FIG.

更に、ステップS404にて、各計算領域Biについて、それに含まれる画素のうち、基準画素biの濃度qiとの差が大きい濃度の画素を、濃度差が大きい順に所定の数だけ取り出した。この基準画素biは、図7のグラフ702の曲線7021によって示される平滑化された画像データから取り出したものである。しかしながら、各計算領域Biについて、それに含まれる画素のうち、原画像データの基準画素aiの濃度piとの差が大きい濃度の画素を、濃度差が大きい順に所定の数だけ取り出してもよい。即ち、図7のグラフ701の曲線7011によって示される原画像データより取り出した基準画素aiと比較して、濃度差が大きい画素を取り出してもよい。   Further, in step S404, a predetermined number of pixels having a large difference from the density qi of the reference pixel bi among the pixels included in each calculation region Bi are extracted in order of increasing density difference. The reference pixel bi is extracted from the smoothed image data indicated by the curve 7021 of the graph 702 in FIG. However, for each calculation area Bi, a predetermined number of pixels having a large difference from the density pi of the reference pixel ai of the original image data may be extracted from among the pixels included in the calculation area Bi. That is, a pixel having a large density difference as compared with the reference pixel ai extracted from the original image data indicated by the curve 7011 of the graph 701 in FIG. 7 may be extracted.

ステップS401にて、移動平均値を求める前の原画像データを取得し、且つ、ステップS404にて、移動平均値を求める前の原画像データより取得した基準画素を用いる場合には、ステップS202の濃度の移動平均を算出する処理は不要である。従って、本発明によると、図3のノイズの除去の処理において、ステップS202の処理を省略してもよい。   If the original image data before obtaining the moving average value is acquired in step S401 and the reference pixel obtained from the original image data before obtaining the moving average value in step S404 is used, the process proceeds to step S202. The process of calculating the moving average of density is not necessary. Therefore, according to the present invention, the process of step S202 may be omitted in the noise removal process of FIG.

以上本発明の例を説明したが、本発明は上述の例に限定されるものではなく、特許請求の範囲に記載された発明について様々な変更が可能であることは当業者によって容易に理解されよう。   Although the examples of the present invention have been described above, the present invention is not limited to the above-described examples, and it is easily understood by those skilled in the art that various modifications can be made to the invention described in the claims. Like.

本発明のノイズ除去装置及び方法は、自動車の車体の塗装検査装置における塗装の欠陥の検出処理に適用可能であるが、他の技術分野におけるノイズ除去技術に適用可能である。   The noise removal apparatus and method of the present invention can be applied to a processing for detecting a coating defect in a painting inspection apparatus for an automobile body, but can also be applied to noise removal techniques in other technical fields.

本発明による自動車の車体の塗装検査装置の概略を示す図である。It is a figure which shows the outline of the coating inspection apparatus of the vehicle body of the motor vehicle by this invention. 本発明による自動車の車体の塗装検査装置における塗装の欠陥の検出処理の概略を示す図である。It is a figure which shows the outline of the detection process of the defect of the coating in the coating inspection apparatus of the vehicle body of the motor vehicle by this invention. 本発明によるノイズ除去処理の概略を示す図である。It is a figure which shows the outline of the noise removal process by this invention. 本発明によるノイズ除去処理における濃度の移動平均の算出処理の概略を示す図である。It is a figure which shows the outline of the calculation process of the moving average of the density | concentration in the noise removal process by this invention. 本発明によるノイズ除去処理における非類似濃度の移動平均の算出処理の概略を示す図である。It is a figure which shows the outline of the calculation process of the moving average of dissimilar density in the noise removal process by this invention. 本発明によるノイズ除去処理の対象となる原画像とノイズ除去処理後の画像の例を示す図である。It is a figure which shows the example of the original image used as the object of the noise removal process by this invention, and the image after a noise removal process. 本発明によるノイズ除去処理における画像データの濃度分布の例を示す図である。It is a figure which shows the example of the density distribution of the image data in the noise removal process by this invention.

符号の説明Explanation of symbols

10…車体、11…照明装置、12…レンズユニット、13…カメラ、14…画像処理装置、601、602…画像、6012…ノイズ、6013、6023…塗装の欠陥 DESCRIPTION OF SYMBOLS 10 ... Car body, 11 ... Illuminating device, 12 ... Lens unit, 13 ... Camera, 14 ... Image processing device, 601, 602 ... Image, 6012 ... Noise, 6013, 6023 ... Defect of painting

Claims (7)

演算処理装置と記憶装置とを有する画像処理装置を用いて、画像データよりノイズを除去する方法において、
前記演算処理装置によって、撮像装置によって得られた画素毎の濃度を含む画像データを取得する画像データ取得ステップと、
前記演算処理装置によって、前記画素毎の濃度より非類似濃度の移動平均を算出する非類似濃度平均算出ステップと、
前記演算処理装置によって、前記画素毎の濃度より前記非類似濃度の移動平均を減算し、両者の差分を求める差分データ算出ステップと、を有し、
前記非類似濃度算出ステップは、
前記画像データを構成する画素より、所定のピッチにて、順番に、1画素づつ取り出し、これを基準画素bi(i=1〜k)とする基準画素取得ステップと、
前記基準画素bi(i=1〜k)の各々について、該基準画素を含む所定の領域を設定し、それを計算領域Biとする計算領域設定ステップと、
前記計算領域Biの各々について、該計算領域に含まれる画素のうち、前記基準画素biの濃度qiとの差が大きい濃度の画素を、濃度差が大きい順に所定の数だけ取り出す非類似濃度画素取得ステップと、
前記計算領域Biの各々について、前記取り出した画素の濃度の平均値cmiを演算するステップと、
前記基準画素の濃度qiの各々を、前記非類似濃度の平均値cmiの各々によって置き換えるステップ、
を含むことを特徴とするノイズ除去方法。
In a method for removing noise from image data using an image processing device having an arithmetic processing device and a storage device,
An image data acquisition step of acquiring image data including the density of each pixel obtained by the imaging device by the arithmetic processing device;
A non-similar density average calculating step of calculating a moving average of non-similar density from the density of each pixel by the arithmetic processing unit;
Subtracting the moving average of the dissimilar density from the density for each pixel by the arithmetic processing unit, and obtaining a difference data calculation step for obtaining a difference between the two,
The dissimilar density calculation step includes:
A reference pixel acquisition step in which pixels are sequentially extracted from the pixels constituting the image data at a predetermined pitch, and are set as reference pixels bi (i = 1 to k).
For each of the reference pixels bi (i = 1 to k), a calculation area setting step for setting a predetermined area including the reference pixel and setting it as a calculation area Bi;
For each of the calculation areas Bi, non-similar density pixel acquisition that extracts a predetermined number of pixels having a large difference from the density qi of the reference pixel bi among the pixels included in the calculation area in order of increasing density difference Steps,
For each of the calculation areas Bi, calculating an average value cmi of the density of the extracted pixels;
Replacing each of the reference pixel densities qi with each of the average density cmi of the dissimilar densities;
The noise removal method characterized by including.
請求項1記載のノイズ除去方法において、
前記画像データ取得ステップと前記非類似濃度平均算出ステップの間に更に濃度平均算出ステップを有し、
前記濃度平均算出ステップは、
前記画像データを構成する画素より、所定のピッチにて、順番に、1画素づつ取り出し、これを基準画素ai(i=1〜k)とする基準画素取得ステップと、
前記基準画素ai(i=1〜k)の各々について、該基準画素を含む所定の領域を設定し、それを計算領域Aiとする計算領域設定ステップと、
前記計算領域Aiの各々について、該計算領域に含まれる画素の濃度の平均値pmiを算出する平均値算出ステップと、
前記基準画素の濃度piの各々を、前記濃度の平均値pmiの各々によって置き換えるステップと、
を含み、前記非類似濃度算出ステップの前記計算領域設定ステップによって設定された計算領域Biは、前濃度平均算出ステップの前記計算領域設定ステップによって設定された計算領域Aiより大きいことを特徴とするノイズ除去方法。
In the noise removal method of Claim 1,
A density average calculation step further between the image data acquisition step and the dissimilar density average calculation step;
The concentration average calculation step includes:
A reference pixel acquisition step in which pixels are sequentially extracted from the pixels constituting the image data at a predetermined pitch, and are referred to as reference pixels ai (i = 1 to k).
For each of the reference pixels ai (i = 1 to k), a predetermined region including the reference pixel is set, and a calculation region setting step using the predetermined region as the calculation region Ai;
An average value calculating step for calculating an average value pmi of the density of pixels included in the calculation area for each of the calculation areas Ai;
Replacing each density pi of the reference pixel with each of the average values pmi of the densities;
And the calculation area Bi set by the calculation area setting step of the dissimilar density calculation step is larger than the calculation area Ai set by the calculation area setting step of the previous density average calculation step Removal method.
請求項2記載のノイズ除去方法において、
前記非類似濃度平均算出ステップにて用いられる前記画像データは、前記濃度平均算出ステップによって処理された後の画像データであることを特徴とするノイズ除去方法。
In the noise removal method of Claim 2,
The noise removal method, wherein the image data used in the non-similar density average calculation step is image data after being processed in the density average calculation step.
請求項2記載のノイズ除去方法において、
前記非類似濃度画素取得ステップにて、前記計算領域Biの各々について、該計算領域に含まれる画素のうち、前記濃度平均算出ステップの基準画素取得ステップにて取得した前記基準画素aiの濃度piとの差が大きい濃度の画素を、濃度差が大きい順に所定の数だけ取り出すことを特徴とするノイズ除去方法。
In the noise removal method of Claim 2,
For each of the calculation areas Bi in the dissimilar density pixel acquisition step, out of the pixels included in the calculation area, the density pi of the reference pixel ai acquired in the reference pixel acquisition step of the density average calculation step A noise removal method characterized by extracting a predetermined number of pixels having a large density difference in descending order of density difference.
照明装置によって車両の車体に照明光を照射するステップと、
撮像装置によって車体のデジタル像を撮像するステップと、
メモリと演算処理装置と記憶装置とを有する画像処理装置によって、車体の像から塗装の欠陥を検出するステップと、を有する塗装検査方法において、
前記塗装の欠陥を検出するステップは、
前記演算処理装置によって、撮像装置から画素毎の濃度を含む画像データを取得する画像データ取得ステップと、
前記演算処理装置によって、前記画素毎の濃度より非類似濃度の移動平均を算出する非類似濃度平均算出ステップと、
前記演算処理装置によって、前記画素毎の濃度より前記非類似濃度の移動平均を減算し、両者の差分を求める差分データ算出ステップと、を有し、
前記非類似濃度算出ステップは、
前記画像データを構成する画素より、所定のピッチにて、順番に、1画素づつ取り出し、これを基準画素bi(i=1〜k)とする基準画素取得ステップと、
前記基準画素bi(i=1〜k)の各々について、該基準画素を含む所定の領域を設定し、それを計算領域する計算領域設定ステップと、
前記計算領域Biの各々について、該計算領域に含まれる画素のうち、前記基準画素biの濃度qiとの差が大きい濃度の画素を、濃度差が大きい順に所定の数だけ取り出すステップと、
前記計算領域Biの各々について、前記取り出した画素の濃度の平均値cmiを演算するステップと、
前記基準画素の濃度qiの各々を、前記非類似濃度の平均値cmiの各々によって置き換えるステップと、
を含むことを特徴とする塗装検査方法。
Illuminating the vehicle body of the vehicle with the illumination device; and
Capturing a digital image of the vehicle body with an imaging device;
Detecting a coating defect from an image of a vehicle body by an image processing apparatus having a memory, an arithmetic processing unit, and a storage device;
The step of detecting a defect in the coating includes
An image data acquisition step of acquiring image data including the density for each pixel from the imaging device by the arithmetic processing device;
A non-similar density average calculating step of calculating a moving average of non-similar density from the density of each pixel by the arithmetic processing unit;
Subtracting the moving average of the dissimilar density from the density for each pixel by the arithmetic processing unit, and obtaining a difference data calculation step for obtaining a difference between the two,
The dissimilar density calculation step includes:
A reference pixel acquisition step in which pixels are sequentially extracted from the pixels constituting the image data at a predetermined pitch, and are set as reference pixels bi (i = 1 to k).
For each of the reference pixels bi (i = 1 to k), a calculation area setting step for setting a predetermined area including the reference pixel and calculating the predetermined area;
For each of the calculation areas Bi, extracting a predetermined number of pixels having a large difference from the density qi of the reference pixel bi among the pixels included in the calculation area;
For each of the calculation areas Bi, calculating an average value cmi of the density of the extracted pixels;
Replacing each of the reference pixel densities qi with each of the dissimilar density averages cmi;
A coating inspection method characterized by comprising:
請求項5記載の塗装検査方法において、
前記画像データ取得ステップと前記非類似濃度平均算出ステップの間に更に濃度平均算出ステップを有し、
前濃度平均算出ステップは、
前記画像データを構成する画素より、所定のピッチにて、順番に、1画素づつ取り出し、これを基準画素ai(i=1〜k)とする基準画素取得ステップと、
前記基準画素ai(i=1〜k)の各々について、該基準画素を含む所定の領域を設定し、それを計算領域する計算領域設定ステップと、
前記計算領域Aiの各々について、該計算領域に含まれる画素の濃度の平均値pmiを算出する平均値算出ステップと、
前記基準画素の濃度piの各々を、前記濃度の平均値pmiの各々によって置き換えるステップと、
を含み、前記計算領域設定ステップによって設定された計算領域Biは、前記計算領域設定ステップによって設定された計算領域Aiより大きいことを特徴とする塗装検査方法。
In the coating inspection method according to claim 5,
A density average calculation step further between the image data acquisition step and the dissimilar density average calculation step;
The pre-concentration average calculation step is:
A reference pixel acquisition step in which pixels are sequentially extracted from the pixels constituting the image data at a predetermined pitch, and are referred to as reference pixels ai (i = 1 to k).
For each of the reference pixels ai (i = 1 to k), a calculation area setting step for setting a predetermined area including the reference pixel and calculating the predetermined area;
An average value calculating step for calculating an average value pmi of the density of pixels included in the calculation area for each of the calculation areas Ai;
Replacing each density pi of the reference pixel with each of the average values pmi of the densities;
And the calculation area Bi set by the calculation area setting step is larger than the calculation area Ai set by the calculation area setting step.
車両の車体に照明光を照射する照明装置と、車両の車体の像を拡大又は縮小する光学系と、車体のデジタル像を撮像する撮像装置と、車体の像から塗装の欠陥を検出する画像処理装置と、を有し、該画像処理装置は、記憶装置、演算処理装置、及び、メモリを備えた塗装検査装置において、
前記演算処理装置は、撮像装置から画素毎の濃度を含む画像データを取得し、前記画素毎の濃度より非類似濃度の移動平均を算出し、前記画素毎の濃度より前記非類似濃度の移動平均を減算し、両者の差分を求めるように構成され、
前記非類似濃度の移動平均は、
前記画像データを構成する画素より、所定のピッチにて、順番に、1画素づつ取り出し、これを基準画素bi(i=1〜k)とし、
前記基準画素bi(i=1〜k)の各々について、該基準画素を含む所定の領域を設定し、それを計算領域し、
前記計算領域Biの各々について、該計算領域に含まれる画素のうち、前記基準画素biの濃度qiとの差が大きい濃度の画素を、濃度差が大きい順に所定の数だけ取り出し、前記計算領域Biの各々について、前記取り出した画素の濃度の平均値cmiを演算し、
前記基準画素の濃度qiの各々を、前記非類似濃度の平均値cmiの各々によって置き換えることを特徴とする塗装検査装置。
An illumination device that irradiates a vehicle body with illumination light, an optical system that enlarges or reduces an image of the vehicle body, an imaging device that captures a digital image of the vehicle, and image processing that detects a paint defect from the image of the vehicle And an image processing apparatus comprising: a storage device; an arithmetic processing device; and a coating inspection device including a memory.
The arithmetic processing unit acquires image data including the density for each pixel from the imaging device, calculates a moving average of the dissimilar density from the density for each pixel, and the moving average of the dissimilar density from the density for each pixel Is configured to obtain the difference between the two,
The moving average of the dissimilar concentrations is
From the pixels constituting the image data, one pixel is taken out in order at a predetermined pitch, and this is taken as a reference pixel bi (i = 1 to k),
For each of the reference pixels bi (i = 1 to k), a predetermined area including the reference pixel is set, and is calculated as a calculation area.
For each of the calculation areas Bi, out of the pixels included in the calculation area, a predetermined number of pixels having a large difference from the density qi of the reference pixel bi are extracted in descending order of density difference, and the calculation area Bi For each of the above, an average value cmi of the density of the extracted pixels is calculated,
A coating inspection apparatus, wherein each of the reference pixel densities qi is replaced by each of the dissimilar density average values cmi.
JP2008264419A 2008-10-10 2008-10-10 Noise removal method, paint inspection method and apparatus Expired - Fee Related JP5024897B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2008264419A JP5024897B2 (en) 2008-10-10 2008-10-10 Noise removal method, paint inspection method and apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2008264419A JP5024897B2 (en) 2008-10-10 2008-10-10 Noise removal method, paint inspection method and apparatus

Publications (2)

Publication Number Publication Date
JP2010093736A true JP2010093736A (en) 2010-04-22
JP5024897B2 JP5024897B2 (en) 2012-09-12

Family

ID=42255988

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2008264419A Expired - Fee Related JP5024897B2 (en) 2008-10-10 2008-10-10 Noise removal method, paint inspection method and apparatus

Country Status (1)

Country Link
JP (1) JP5024897B2 (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH1166322A (en) * 1997-08-11 1999-03-09 Tsukuba Soft Kenkyusho:Kk Communication equipment for color image and gradation image
JP2001092966A (en) * 1999-09-21 2001-04-06 Konica Corp Method and device for processing image
JP2002022668A (en) * 2000-07-10 2002-01-23 Toyota Motor Corp Method for extracting range processed in process for inspecting flaw of coating surface
JP2006292593A (en) * 2005-04-12 2006-10-26 Nippon Steel Corp Flaw detector, flaw detecting method, computer program and recording medium
JP2006309524A (en) * 2005-04-28 2006-11-09 Olympus Corp Image processor, image processing method, electronic camera, and scanner

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH1166322A (en) * 1997-08-11 1999-03-09 Tsukuba Soft Kenkyusho:Kk Communication equipment for color image and gradation image
JP2001092966A (en) * 1999-09-21 2001-04-06 Konica Corp Method and device for processing image
JP2002022668A (en) * 2000-07-10 2002-01-23 Toyota Motor Corp Method for extracting range processed in process for inspecting flaw of coating surface
JP2006292593A (en) * 2005-04-12 2006-10-26 Nippon Steel Corp Flaw detector, flaw detecting method, computer program and recording medium
JP2006309524A (en) * 2005-04-28 2006-11-09 Olympus Corp Image processor, image processing method, electronic camera, and scanner

Also Published As

Publication number Publication date
JP5024897B2 (en) 2012-09-12

Similar Documents

Publication Publication Date Title
EP1400922B1 (en) Print inspection method
JP2007285754A (en) Flaw detection method and flaw detector
JP4612088B2 (en) Image processing method, coating inspection method and apparatus
JP2005172559A (en) Method and device for detecting line defect on panel
CN107194886B (en) Dust detection method and device for camera sensor
JP4244046B2 (en) Image processing method and image processing apparatus
JP2004239733A (en) Defect detection method and apparatus of screen
JP2005165387A (en) Method and device for detecting stripe defective of picture and display device
JP2005345290A (en) Streak-like flaw detecting method and streak-like flaw detector
JP2009139133A (en) Flaw detection method and flaw detector
JP2007303830A (en) Painted face quality evaluation method
JP2008014842A (en) Method and apparatus for detecting stain defects
JP5024897B2 (en) Noise removal method, paint inspection method and apparatus
JP3695120B2 (en) Defect inspection method
JP2009281759A (en) Color filter defect inspection method, inspection apparatus, and color filter manufacturing method using it
JP2009174923A (en) Surface inspection device and surface inspection method
JPH06242013A (en) Pattern defect inspection system
JP2006226837A (en) Method and apparatus for inspecting stain
EP0816825A2 (en) Method and apparatus for inspecting streak
JP2000036033A (en) Brightness/darkness inspecting device/method
JP2008171142A (en) Spot defect detection method and device
JP2005140655A (en) Method of detecting stain flaw, and stain flaw detector
JP5190619B2 (en) Inspection method for inspection object and inspection apparatus therefor
US6335982B1 (en) Method and apparatus for inspecting streak
JPH0915168A (en) Inspecting equipment of printed matter

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20110221

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20120223

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20120228

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20120426

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

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

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20120614

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

Free format text: PAYMENT UNTIL: 20150629

Year of fee payment: 3

R151 Written notification of patent or utility model registration

Ref document number: 5024897

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R151

S111 Request for change of ownership or part of ownership

Free format text: JAPANESE INTERMEDIATE CODE: R313117

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

LAPS Cancellation because of no payment of annual fees