JPH11250247A - Isolated area judging device - Google Patents

Isolated area judging device

Info

Publication number
JPH11250247A
JPH11250247A JP10073100A JP7310098A JPH11250247A JP H11250247 A JPH11250247 A JP H11250247A JP 10073100 A JP10073100 A JP 10073100A JP 7310098 A JP7310098 A JP 7310098A JP H11250247 A JPH11250247 A JP H11250247A
Authority
JP
Japan
Prior art keywords
filter
value
pixel
determination
isolated area
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
JP10073100A
Other languages
Japanese (ja)
Other versions
JP4008093B2 (en
Inventor
Hisafumi Naruse
尚史 成瀬
Takeshi Shioiri
健 塩入
Yoshifumi Takahashi
良文 高橋
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.)
Anritsu Corp
Original Assignee
Anritsu 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 Anritsu Corp filed Critical Anritsu Corp
Priority to JP07310098A priority Critical patent/JP4008093B2/en
Publication of JPH11250247A publication Critical patent/JPH11250247A/en
Application granted granted Critical
Publication of JP4008093B2 publication Critical patent/JP4008093B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To provide a highly sensitive isolated area judging device for operating high speed isolated area judgement without any erroneous judgment due to the influence of the edge of an object to be measured. SOLUTION: Each picture element of a gradation picture inputted from an input terminal 1 is operated by a first filter arithmetic means 2 so that a first output value can be calculated, and the first output value is compared with a first judgement reference value by a first judging means 5 so that whether or not the picture element is an isolated area can be judged. The first output value is compared with a second judgement reference value by a second judging means 6 so that whether or not the picture element is an isolated area candidate can be judged, and only the picture element which is judged to be the isolated area candidate is operated by a second filter arithmetic means 7, and the output value is compared with a third judgment reference value so that whether or not the picture element is the isolated area can be judged. The logical sum of the the results of the first and third judging means is obtained as a judged result.

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】本発明は、濃淡画像中の各画
素が、近傍より濃度が高く孤立した領域である孤立領域
であるか否かを判定する孤立領域判定装置に関するもの
であり、より詳細には、X線透過画像を用いて食品など
の被測定物に混入する金属、石、ガラス等の微小異物を
検出する異物検出機等に使用する、リアルタイムな画像
のディジタル信号処理を行う孤立領域判定装置に関す
る。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an isolated area judging apparatus for judging whether each pixel in a grayscale image is an isolated area having a density higher than that of an adjacent area and an isolated area. An isolated area for digital signal processing of a real-time image used for a foreign object detector that detects minute foreign matter such as metal, stone, glass, etc. mixed into an object such as food using an X-ray transmission image It relates to a determination device.

【0002】[0002]

【従来の技術】X線透過画像を用いて、被測定物への異
物の混入の有無を判定する方法には、種々の画像処理手
法が提案されている。X線透過画像中において異物は孤
立領域とみなせる。そのため、ほとんどの手法は前記X
線透過画像と、前記X線透過画像の各画素に平滑化フィ
ルタ処理を行い平滑化した画像との差分値を算出し、前
記差分値とあらかじめ定められた判定基準値とを比較し
孤立領域であるか否かを判定する方法である。
2. Description of the Related Art Various image processing methods have been proposed as methods for determining the presence or absence of foreign matter in an object to be measured using an X-ray transmission image. Foreign matter can be regarded as an isolated area in the X-ray transmission image. Therefore, most methods use the X
A difference value between the X-ray transmission image and the image obtained by performing a smoothing filter process on each pixel of the X-ray transmission image is calculated, and the difference value is compared with a predetermined determination reference value. This is a method of determining whether or not there is.

【0003】ここで、図10に平滑化フィルタに移動平
均フィルタを用いた孤立領域判定装置の構成を示す。移
動平均フィルタとは濃淡画像の各画素について注目画素
を中心とした局所領域の領域平均値を前記注目画素の出
力値とする処理であり、低域通過フィルタの一つであ
る。移動平均フィルタは高速に処理を行えるため、リア
ルタイム処理が要求される場合によく使用される。
FIG. 10 shows a configuration of an isolated area determining apparatus using a moving average filter as a smoothing filter. The moving average filter is a process of setting a region average value of a local region of each pixel of the grayscale image around the pixel of interest as an output value of the pixel of interest, and is one of low-pass filters. Since the moving average filter can perform processing at high speed, it is often used when real-time processing is required.

【0004】移動平均フィルタを用いた孤立領域判定装
置の動作を以下に示す。入力端子1に入力されたX線透
過画像は、平均値算出手段3で各画素について当該画素
周辺の局所領域の領域平均値が計算される。この操作に
より平均値算出手段3から出力される画像は高周波成分
が除去され、滑らかな画像になる。次に前記X線透過画
像の各画素の濃度値と当該画素の前記領域平均値との差
分値が差分値算出手段4により計算される。この操作に
より前記平均値算出手段3で除去された前記透過画像の
高周波成分が抽出され、急峻な濃度変化をする孤立領域
などが強調される。最後に、判定手段5で前記差分値と
あらかじめ定められた判定基準値との比較を行い孤立領
域であるか否かを判定し、判定結果が出力端子10から
出力される。
[0004] The operation of the isolated area determination device using the moving average filter will be described below. With respect to the X-ray transmission image input to the input terminal 1, the average value of the local area around the pixel is calculated for each pixel by the average value calculation unit 3. This operation removes high-frequency components from the image output from the average value calculation means 3 and makes the image smooth. Next, a difference value between the density value of each pixel of the X-ray transmission image and the average value of the area of the pixel is calculated by the difference value calculation means 4. By this operation, the high-frequency component of the transmission image removed by the average value calculation means 3 is extracted, and an isolated region or the like where a steep change in density is emphasized. Finally, the determination means 5 compares the difference value with a predetermined determination reference value to determine whether or not the area is an isolated area, and outputs the determination result from the output terminal 10.

【0005】[0005]

【発明が解決しようとする課題】しかしながら、移動平
均フィルタを用いた孤立領域判定装置は平均値を求める
局所領域の大きさを大きくすると、孤立領域だけでな
く、背景に含まれる被測定物のエッジなども強調してし
まい、これが誤判定の要因となる。エッジなどを孤立領
域と判定しないような判定基準値を設定して孤立領域の
有無を判定すると、孤立領域である異物の検出感度が低
下してしまうという問題がある。
However, in an isolated area determination apparatus using a moving average filter, when the size of a local area for which an average value is obtained is increased, not only the isolated area but also the edge of the DUT included in the background are increased. Are also emphasized, and this is a factor of erroneous determination. If a determination reference value is set so that an edge or the like is not determined as an isolated area and the presence or absence of an isolated area is determined, there is a problem that the detection sensitivity of a foreign substance that is an isolated area is reduced.

【0006】例えばエッジを強調することなく、孤立領
域のみを強調するためには、孤立領域判定装置の平滑化
フィルタに、注目画素を中心とした局所領域の領域中央
値を前記注目画素の出力値とするメディアンフィルタ、
あるいは、注目画素の周囲でエッジを含まない局所領域
を探し、前記局所領域の領域平均値を前記注目画素の出
力値とする選択的局所平均化、などの非線形フィルタを
使用すれば良い。しかし、非線形フィルタは移動平均フ
ィルタなどの線形フィルタに比べ処理が複雑になり、処
理時間が長くなることが多い。
For example, in order to emphasize only an isolated area without emphasizing an edge, the smoothing filter of the isolated area determination device applies the center value of the local area centered on the target pixel to the output value of the target pixel. Median filter,
Alternatively, a non-linear filter may be used, such as searching for a local region that does not include an edge around the target pixel, and using a local average of the local region as an output value of the target pixel. However, the processing of a nonlinear filter is more complicated than that of a linear filter such as a moving average filter, and the processing time is often longer.

【0007】本発明は、以上のような問題点を解決する
ためになされたもので、移動平均フィルタを用いた孤立
領域判定装置とほぼ同等の処理時間で、エッジなどの影
響による誤判定のない孤立領域判定が行える、高感度な
孤立領域判定装置を提供することを目的としている。
SUMMARY OF THE INVENTION The present invention has been made to solve the above problems, and has almost the same processing time as that of an isolated area determination apparatus using a moving average filter, without erroneous determination due to the influence of edges and the like. It is an object of the present invention to provide a highly sensitive isolated region determination device capable of performing isolated region determination.

【0008】[0008]

【課題を解決するための手段】本発明の孤立領域判定装
置は、濃淡画像の注目画素の周辺の局所領域の画素の濃
度値に所定の係数行列を用いて積和演算を行って第1の
フィルタ出力値を算出する第1のフィルタ演算手段と、
前記第1のフィルタ出力値を受けて、該第1のフィルタ
出力値とあらかじめ定められた第1の判定基準値とを比
較して、前記注目画素が前記濃淡画像において近傍より
濃度が高く孤立した領域である孤立領域であるか否かを
判定する第1の判定手段と、前記第1のフィルタ出力値
を受けて、該第1のフィルタ出力値とあらかじめ定めら
れた第2の判定基準値とを比較して、前記注目画素が前
記濃淡画像において近傍より濃度が高い領域である孤立
領域候補であるか否かを判定する第2の判定手段と、該
第2の判定手段からの判定結果と前記濃淡画像の各画素
のデータを受けて、前記各画素のうち、孤立領域候補と
判定された画素については、当該画素の周辺の局所領域
の画素の濃度値を用いてフィルタ演算を行って第2のフ
ィルタ出力値を算出する第2のフィルタ演算手段と、前
記第2のフィルタ出力値を受けて、該第2のフィルタ出
力値とあらかじめ定められた第3の判定基準値とを比較
して、前記注目画素が孤立領域であるか否かを判定する
第3の判定手段とを備え、第1の判定手段の判定結果と
第3の判定手段の判定結果とに基づいて、前記注目画素
が孤立領域であるか否かを判定する。
An isolated area determination apparatus according to the present invention performs a product-sum operation on a density value of a pixel in a local area around a pixel of interest in a grayscale image by using a predetermined coefficient matrix. First filter calculating means for calculating a filter output value;
Receiving the first filter output value, comparing the first filter output value with a predetermined first determination reference value, the pixel of interest is isolated higher in density than the neighborhood in the grayscale image. First determining means for determining whether or not the area is an isolated area; receiving the first filter output value, determining whether the first filter output value is equal to a predetermined second determination reference value; A second determination unit that determines whether the target pixel is an isolated region candidate that is a region having a higher density than the vicinity in the grayscale image, and a determination result from the second determination unit. Receiving data of each pixel of the grayscale image, among the pixels, for a pixel determined to be an isolated region candidate, a filter operation is performed by using a density value of a pixel in a local region around the pixel. Calculate the filter output value of 2 Receiving the second filter output value, and comparing the second filter output value with a predetermined third determination reference value to determine whether the pixel of interest is an isolated region. And a third determination means for determining whether or not the target pixel is an isolated area based on a determination result of the first determination means and a determination result of the third determination means. Is determined.

【0009】[0009]

【作用】本発明の孤立領域判定装置は、濃淡画像の注目
画素の周辺の局所領域の画素の濃度値に所定の係数行列
を用いて積和演算を行って第1のフィルタ出力値を算出
し、前記第1のフィルタ出力値と前記第1の判定基準値
とを比較して前記注目画素が孤立領域であるか否かを判
定するとともに、前記第1のフィルタ出力値と前記第2
の判定基準値とを比較して前記注目画素が孤立領域候補
であるか否かを高速に判定することができる。その後、
孤立領域候補と判定された画素についてのみ前記注目画
素の周辺の局所領域の濃度値を用いてフィルタ演算を行
って第2のフィルタ出力値を算出し、孤立領域候補と判
定されなかった画素については所定の値を第2のフィル
タ出力値として出力する。前記第2のフィルタ出力値と
前記第3の判定基準値とを比較して前記注目画素が孤立
領域であるか否かを判定することにより、前記第1の判
定基準値で孤立領域と判定されなかった検出すべき孤立
領域を孤立領域と判定することができる。
The isolated region determination apparatus of the present invention calculates a first filter output value by performing a product-sum operation on a density value of a pixel in a local region around a target pixel of a grayscale image using a predetermined coefficient matrix. Comparing the first filter output value with the first determination reference value to determine whether or not the pixel of interest is an isolated area, and comparing the first filter output value with the second
, It can be determined at a high speed whether or not the pixel of interest is an isolated region candidate. afterwards,
For only pixels determined as isolated region candidates, a second filter output value is calculated by performing a filter operation using the density value of the local region around the pixel of interest, and for pixels not determined as isolated region candidates, A predetermined value is output as a second filter output value. By comparing the second filter output value with the third determination reference value to determine whether or not the pixel of interest is an isolated region, it is determined that the target pixel is an isolated region based on the first determination reference value. An isolated region to be detected that has not been detected can be determined as an isolated region.

【0010】処理時間については、例として1フレーム
の濃淡画像のうちの1%の画素が孤立領域候補であった
とし、前記第2のフィルタ演算手段が前記第1のフィル
タ演算手段の5倍の処理時間であり、前記第1のフィル
タ演算手段が従来の移動平均フィルタを用いたフィルタ
である場合について考える。このとき、本発明の孤立領
域判定装置の1フレームの処理時間は判定処理などの時
間を無視できるとすると,従来の移動平均フィルタを用
いた孤立領域判定装置の、 1+1/100×5=1.05(倍) となり、従来の移動平均フィルタを用いた孤立領域判定
装置の処理時間とほとんど変わらず、高速である。
Regarding the processing time, for example, it is assumed that 1% of the pixels in a grayscale image of one frame are isolated region candidates, and the second filter operation means is five times as long as the first filter operation means. It is processing time, and the case where the first filter operation means is a filter using a conventional moving average filter is considered. At this time, assuming that the processing time of one frame of the isolated region determination device of the present invention can ignore the time of the determination process, etc., the conventional isolated region determination device using the moving average filter has the following relationship: 1 + 1/100 × 5 = 1. 05 (times), which is almost the same as the processing time of the isolated region determination device using the conventional moving average filter, and is high speed.

【0011】[0011]

【発明の実施の形態】本発明の第1の実施の形態を図1
を用いて説明する。入力端子1に入力された濃淡画像
は、第1のフィルタ演算手段2で各画素について当該画
素周辺の局所領域の画素の濃度値に所定の係数行列を用
いて積和演算を行って第1のフィルタ出力値が算出され
る。
FIG. 1 shows a first embodiment of the present invention.
This will be described with reference to FIG. The grayscale image input to the input terminal 1 is subjected to the first filter operation means 2 to perform a product-sum operation on the density values of the pixels in the local area around the pixel using a predetermined coefficient matrix. A filter output value is calculated.

【0012】ここで移動平均フィルタを使用した第1の
フィルタ演算手段2について説明する。入力端子1に入
力された濃淡画像は、平均値算出手段3で各画素につい
て当該画素周辺の局所領域の領域平均値が計算される。
次に前記濃淡画像の当該画素の濃度値と当該画素の前記
領域平均値との差分値が差分値算出手段4により計算さ
れ、第1のフィルタ出力値として出力される。
Here, the first filter calculating means 2 using a moving average filter will be described. In the grayscale image input to the input terminal 1, the average value of the local area around the pixel is calculated by the average value calculation means 3 for each pixel.
Next, a difference value between the density value of the pixel of the grayscale image and the average value of the area of the pixel is calculated by the difference value calculation means 4 and output as a first filter output value.

【0013】処理の例として図4に食品に異物が混入し
たX線透過画像を示す。図4(a)、(b)、(c)は
異物、図4(d)は食品の重なり、図4(e)は食品の
エッジである。図5に前記第1のフィルタ出力値により
得られる濃淡画像を示す。ただし、負の値は0とし、前
記濃淡画像中の最大値を255に規格化し、255を
黒、0を白で表している。前記第1のフィルタ出力値は
高域通過フィルタの出力値となり、図5(a)、
(b)、(c)の異物、図5(d)の食品の重なり、図
5(e)の食品のエッジなどのように急峻な濃度変化を
する画素が強調されている。
As an example of the processing, FIG. 4 shows an X-ray transmission image in which a foreign substance is mixed in food. 4 (a), 4 (b) and 4 (c) show foreign matters, FIG. 4 (d) shows overlapping food products, and FIG. 4 (e) shows the food edges. FIG. 5 shows a grayscale image obtained by the first filter output value. Here, the negative value is set to 0, the maximum value in the grayscale image is normalized to 255, 255 is represented by black, and 0 is represented by white. The first filter output value becomes the output value of the high-pass filter, and FIG.
Pixels having a sharp change in density, such as the foreign matter in (b) and (c), the overlap of the food in FIG. 5 (d), and the edge of the food in FIG. 5 (e) are emphasized.

【0014】次に、第1の判定手段5で前記各画素につ
いて前記第1のフィルタ出力値とあらかじめ定められた
第1の判定基準値とを比較して、当該画素が孤立領域で
あるか否かが判定され、出力される。第1の判定基準値
はエッジなどが誤判定されないように設定する。また、
第2の判定手段6で前記各画素について前記第1のフィ
ルタ出力値とあらかじめ定められた第2の判定基準値と
を比較して、当該画素が孤立領域候補であるか否かが判
定され、出力される。第2の判定基準値によりエッジな
どが誤判定されても構わない。
Next, the first judgment means 5 compares the first filter output value of each pixel with a predetermined first judgment reference value to determine whether the pixel is an isolated area. Is determined and output. The first determination reference value is set so that an edge or the like is not erroneously determined. Also,
The second determination means 6 compares the first filter output value for each pixel with a predetermined second determination reference value to determine whether the pixel is an isolated area candidate, Is output. An edge or the like may be erroneously determined based on the second determination reference value.

【0015】第1の判定基準値の設定は、例えば異物検
出機では異物の存在しない被判定画像を第1のフィルタ
演算手段3で処理し、全ての画素の処理結果の値の中で
最大の値に余裕をもたせた値を判定基準値に設定する方
法等がある。また、第2の判定基準値の設定は、異物の
み存在する被判定画像を第1のフィルタ演算手段で処理
し、異物画素の処理結果の値の中で最小の値に余裕をも
たせた値を判定基準値に設定する方法等がある。
The first determination criterion value is set, for example, in the foreign matter detector, by processing the image to be determined in which no foreign matter is present by the first filter calculating means 3, and setting the largest among the processing result values of all the pixels. There is a method of setting a value having a margin to the determination reference value. Further, the setting of the second determination reference value is performed by processing the image to be determined in which only foreign matter is present by the first filter calculating means, and setting a value obtained by giving a margin to the minimum value among the processing results of the foreign matter pixels. There is a method of setting a judgment reference value.

【0016】処理の例として図6に図5の濃淡画像を第
1の判定手段で孤立領域判定した画像を示す。本来は孤
立領域であるか否かを判定するだけでよいが、視覚的に
わかりやすいように孤立領域と判定された画素を黒と
し、判定されなかった画素のうち、前記第1のフィルタ
出力値が正のものを灰色とし、負のものを白とした。第
1の判定基準値は誤判定されないように設定してあるた
め、図6(b)のように検出できない異物がある。ま
た、図7に図5の濃淡画像を第2の判定手段で孤立領域
候補判定した結果の画像を示す。図5と同様に孤立領域
候補と判定された画素を黒とし、判定されなかった画素
のうち、前記第1のフィルタ出力値が正のものを灰色と
し、負のものを白とした。図6では検出できなかった図
6(b)のような異物が図7では図7(b)のようにす
べて検出できている。しかし、図7(d)のような食品
の重なりや、図7(e)のような食品のエッジなどが誤
判定されている。
As an example of the processing, FIG. 6 shows an image in which the grayscale image of FIG. 5 is determined as an isolated area by the first determining means. Originally, it is only necessary to determine whether or not the pixel is an isolated region. However, pixels that are determined to be isolated regions are set to black for easy understanding visually, and among the pixels that are not determined, the first filter output value is Positive ones were gray and negative ones were white. Since the first determination reference value is set so as not to be erroneously determined, there is a foreign substance that cannot be detected as shown in FIG. FIG. 7 shows an image obtained as a result of the isolated area candidate determination of the grayscale image of FIG. 5 by the second determination means. As in FIG. 5, pixels determined as isolated region candidates are set to black, and among the pixels not determined, those having a positive first filter output value are set to gray and those having a negative first filter output value are set to white. In FIG. 7, all foreign substances that could not be detected in FIG. 6 as shown in FIG. 6B can be detected as in FIG. 7B. However, the overlapping of foods as shown in FIG. 7D and the edge of the food as shown in FIG. 7E are erroneously determined.

【0017】次に、入力端子1に入力された濃淡画像
は、第2のフィルタ演算手段7で各画素について前記第
2の判定手段6で孤立領域候補と判定された画素につい
ては当該画素周辺の局所領域の画素の濃度値を用いてフ
ィルタ演算を行って第2のフィルタ出力値が算出され、
第2の判定手段6で孤立領域候補と判定されなかった画
素については、次に説明する第3の判定手段8で孤立領
域であると判定されないような所定値が第2のフィルタ
出力値として出力される。
Next, the grayscale image input to the input terminal 1 is processed by the second filter operation means 7 for each pixel determined as an isolated area candidate by the second determination means 6 for the vicinity of the pixel. A second filter output value is calculated by performing a filter operation using the density values of the pixels in the local area,
For a pixel that is not determined as an isolated region candidate by the second determination unit 6, a predetermined value that is not determined to be an isolated region by the third determination unit 8 described below is output as a second filter output value. Is done.

【0018】ここで、第2のフィルタ演算手段7の一例
としてメディアンフィルタを使用したフィルタの構成を
図2に示す。入力端子11に入力された濃淡画像は、各
画素について入力端子12に入力される第2の判定手段
6で判定された孤立領域候補の判定結果を受けて、前記
第2の判定手段6で孤立領域候補と判定された画素につ
いては選択手段13で13aの経路に送られ、中央値算
出手段14で当該画素周辺の局所領域の領域中央値が計
算される。次に前記濃淡画像の当該画素の濃度値と当該
画素の前記領域中央値との差分値が差分値算出手段15
で計算され、第2のフィルタ出力値として出力端子17
に出力される。前記第2の判定手段で孤立領域と判定さ
れなかった画素については選択手段13で13bの経路
に送られ、零値出力手段16で0が出力され、出力端子
17に出力される。0は次で説明する第3の判定手段8
で孤立領域と判定されないような値の具体例である。
FIG. 2 shows a configuration of a filter using a median filter as an example of the second filter operation means 7. The grayscale image input to the input terminal 11 receives the determination result of the isolated area candidate determined by the second determination unit 6 input to the input terminal 12 for each pixel, and the second determination unit 6 The pixel determined to be a region candidate is sent to the path 13a by the selecting means 13, and the median value of the local area around the pixel is calculated by the median value calculating means 14. Next, a difference value between the density value of the pixel of the grayscale image and the central value of the area of the pixel is calculated by a difference value calculating unit 15.
At the output terminal 17 as the second filter output value.
Is output to The pixel which is not determined as an isolated area by the second determination unit is sent to the path 13 b by the selection unit 13, 0 is output by the zero value output unit 16, and is output to the output terminal 17. 0 is the third determination means 8 described below.
Is a specific example of a value that is not determined to be an isolated area.

【0019】処理の例として図8に図4のX線透過画像
をフィルタ入力端子11に入力し、図7の異物候補判定
結果を入力端子12に入力したときの前記第2のフィル
タ出力値により得られる濃淡画像を示す。ただし、負の
値は0とし、前記濃淡画像中の最大値を255に規格化
し、255を黒、0を白で表している。前記第2のフィ
ルタ出力値は図5の第1のフィルタ出力値による濃淡画
像と比較すると、図8(a)、(b)のような異物は同
じように強調されているが、図8(e)のような食品の
エッジなどは強調されていないことがわかる。
As an example of the processing, the X-ray transmission image shown in FIG. 4 is input to the filter input terminal 11 in FIG. 8 and the foreign matter candidate determination result shown in FIG. The resulting gray image is shown. Here, the negative value is set to 0, the maximum value in the grayscale image is normalized to 255, 255 is represented by black, and 0 is represented by white. When the second filter output value is compared with the grayscale image based on the first filter output value in FIG. 5, foreign matters as shown in FIGS. 8A and 8B are similarly emphasized. It can be seen that the edge of the food as in e) is not emphasized.

【0020】次に第3の判定手段8で前記第2のフィル
タ出力値とあらかじめ定められた第3の判定基準値とを
比較して、当該画素が孤立領域であるか否かが判定さ
れ、出力される。第3の判定基準値は、例えば異物検出
機では異物の存在しない被判定画像を第2のフィルタ演
算手段7で処理し、全ての画素の処理結果の値の中で最
大の値に余裕をもたせた値を判定基準値に設定する方法
等がある。
Next, the third judgment means 8 compares the output value of the second filter with a predetermined third judgment reference value to judge whether or not the pixel is an isolated area. Is output. The third determination criterion value is, for example, that the foreign object detector processes an image to be determined in which no foreign object is present by the second filter operation means 7 so that the maximum value among the processing results of all pixels has a margin. There is a method of setting the determined value as a determination reference value.

【0021】処理の例として図9に図8の濃淡画像を第
3の判定手段8で孤立領域判定した結果の画像を示す。
孤立領域と判定された画素を黒とし、判定されなかった
画素のうち、前記第2のフィルタ出力値が正のものを灰
色とし、負のものを白とした。図6の第1の判定手段5
で検出することのできなかった図6(b)の異物が図9
(b)のように検出できている。しかし、第1の判定手
段5で検出できた図6(c)の異物は図9(c)のよう
に検出できなくなっている。
As an example of the processing, FIG. 9 shows an image obtained as a result of the third determining means 8 determining the shaded image of FIG.
Pixels determined to be isolated areas were set to black, and pixels not determined to have the second filter output value positive were set to gray, and negative pixels were set to white. First determining means 5 in FIG.
The foreign matter in FIG. 6B that could not be detected in FIG.
It can be detected as shown in FIG. However, the foreign matter shown in FIG. 6C which can be detected by the first determination means 5 cannot be detected as shown in FIG. 9C.

【0022】最後に論理和算出手段9で各画素について
前記第1の判定手段5の孤立領域判定結果と前記第3の
判定手段8の孤立領域判定結果の論理和が算出され、出
力端子10に出力される。第1の判定手段5と第3の判
定手段8のどちらか一方でも孤立領域と判定された画素
が孤立領域と判定されるため、一つの判定手段で孤立領
域判定を行うのに比べ、孤立領域の判定感度が向上す
る。
Finally, the logical sum calculating means 9 calculates the logical sum of the isolated area judgment result of the first judgment means 5 and the isolated area judgment result of the third judgment means 8 for each pixel. Is output. Since the pixel determined to be an isolated area by either one of the first determining means 5 and the third determining means 8 is determined to be an isolated area, the isolated area is determined as compared with performing the isolated area determination by one determining means. Is improved.

【0023】本発明の第2の実施の形態を図3を用いて
説明する。第1の実施の形態との相違点は第2の判定手
段6の孤立領域候補の判定結果が第2のフィルタ演算部
7だけでなく、第3の判定手段8および論理和算出手段
9にも送られることである。前記第2の判定手段6で孤
立領域候補と判定された画素については当該画素の周辺
の局所領域の画素の濃度値を用いてフィルタ演算を行っ
て第2のフィルタ出力値が算出され、第3の判定手段8
で前記第2のフィルタ出力値とあらかじめ定められた第
3の判定基準値とを比較して、当該画素が孤立領域であ
るか否かが判定され、論理和算出手段9で前記第1の判
定手段5の孤立領域判定結果と前記第3の孤立領域判定
結果との論理和が算出され、出力端子10に出力され
る。前記第2の判定手段6で孤立領域と判定されなかっ
た画素については第2のフィルタ演算部および第3の判
定手段8では処理を行う必要はなく、論理和算出部9で
前記第1の判定手段5での判定結果がそのまま出力さ
れ、出力端子10に出力される。
A second embodiment of the present invention will be described with reference to FIG. The difference from the first embodiment is that the determination result of the isolated region candidate by the second determination means 6 is not only sent to the second filter operation unit 7 but also to the third determination means 8 and the OR calculation means 9. Is to be sent. For the pixel determined as the isolated region candidate by the second determination means 6, a filter operation is performed using the density values of the pixels in the local region around the pixel, and a second filter output value is calculated. Determination means 8
The second filter output value is compared with a predetermined third determination reference value to determine whether or not the pixel is an isolated area. The logical sum of the isolated area determination result of the means 5 and the third isolated area determination result is calculated and output to the output terminal 10. The second filter operation unit and the third determination unit 8 do not need to perform processing on the pixels that are not determined as an isolated region by the second determination unit 6, and the first OR determination unit 9 performs the first determination. The result of the determination by the means 5 is output as it is and output to the output terminal 10.

【0024】上記の説明では移動平均フィルタを使用し
た第1のフィルタ演算手段について説明したが、すべて
の孤立領域を強調し、高速に演算を行うことができるフ
ィルタであれば同様に実現できる。単純な移動平均フィ
ルタは平均値算出を高速に行うアルゴリズムが知られて
いるため、畳み込み演算を行う通常の線形フィルタより
も高速に演算を行うことができる。
In the above description, the first filter calculating means using the moving average filter has been described. However, any filter that can emphasize all the isolated regions and can perform the calculation at high speed can be similarly realized. Since a simple moving average filter has a known algorithm for calculating the average value at a high speed, the operation can be performed at a higher speed than an ordinary linear filter that performs a convolution operation.

【0025】また、上記の説明ではメディアンフィルタ
を使用した第2のフィルタ演算手段について説明した
が、孤立領域を強調するようなフィルタであれば同様に
実現できる。例えば、モルフォロジー演算による孤立領
域抽出フィルタとして、トップハット変換や輪なげフィ
ルタ(Quoitフィルタ)などがある。第1のフィル
タ演算手段のフィルタ演算を行う係数行列を変えたフィ
ルタでも第1のフィルタ演算手段とフィルタ特性が異な
るため、該フィルタを第2のフィルタ演算手段に使用し
ても、孤立領域の判定感度を向上させることができる。
In the above description, the second filter operation means using a median filter has been described. However, any filter that enhances an isolated area can be similarly realized. For example, as an isolated region extraction filter by a morphological operation, there are a top-hat transform, a loop filter (Quoit filter), and the like. Even if a filter in which the coefficient matrix for performing the filter operation of the first filter operation unit is changed has a different filter characteristic from that of the first filter operation unit, even if the filter is used as the second filter operation unit, the determination of the isolated region can be performed. Sensitivity can be improved.

【0026】[0026]

【発明の効果】本発明によれば、濃淡画像の各画素につ
いて、高速な第1のフィルタ演算手段により算出される
第1のフィルタ出力値とあらかじめ定められた第1の判
定基準値とを比較して、孤立領域であるか否かを判定す
るとともに、前記第1のフィルタ出力値とあらかじめ定
められた第2の判定基準値とを比較して孤立領域候補で
あるか否かを判定し、孤立領域候補と判定された画素に
ついてのみ第2のフィルタ演算手段により第2のフィル
タ出力値を算出し、前記第2のフィルタ出力値とあらか
じめ定められた第3の判定基準値とを比較して、孤立領
域であるか否かを判定し、第1の判定基準値と第3の判
定基準値のどちらか一方でも孤立領域と判定された画素
を孤立領域と判定することとしたから、従来の移動平均
フィルタを用いた孤立領域判定装置と同様に処理が高速
で、感度についてはより高感度な孤立領域判定装置を実
現することができる。
According to the present invention, the first filter output value calculated by the high-speed first filter operation means is compared with a predetermined first determination reference value for each pixel of the grayscale image. Then, while determining whether or not it is an isolated area, comparing the first filter output value and a predetermined second determination reference value, to determine whether or not it is an isolated area candidate, A second filter output value is calculated by the second filter operation means only for pixels determined as isolated region candidates, and the second filter output value is compared with a predetermined third determination reference value. It is determined whether or not the pixel is an isolated area, and a pixel determined to be an isolated area by either one of the first determination reference value and the third determination reference value is determined to be an isolated area. Using a moving average filter In the process similar to the standing area determination device fast, the sensitivity can be realized more sensitive isolation region judging device.

【図面の簡単な説明】[Brief description of the drawings]

【図1】本発明の第1の実施の形態の構成を示す図であ
る。
FIG. 1 is a diagram showing a configuration of a first exemplary embodiment of the present invention.

【図2】第2のフィルタ演算手段7の構成を示す図であ
る。
FIG. 2 is a diagram showing a configuration of a second filter operation means 7;

【図3】本発明の第2の実施の形態の構成を示す図であ
る。
FIG. 3 is a diagram showing a configuration of a second exemplary embodiment of the present invention.

【図4】異物を含んだ被測定物のX線透過画像を示す図
である。
FIG. 4 is a diagram showing an X-ray transmission image of an object to be measured including a foreign substance.

【図5】第1のフィルタ演算手段2の出力結果を示す図
である。
FIG. 5 is a diagram showing an output result of the first filter operation means 2.

【図6】第1の判定手段5の孤立領域の判定結果を示す
図である。
FIG. 6 is a diagram showing a result of determination of an isolated area by a first determination unit 5;

【図7】第2の判定手段6の孤立領域候補の判定結果を
示す図である。
FIG. 7 is a diagram showing a result of determination of an isolated area candidate by a second determination unit 6;

【図8】第2のフィルタ演算手段7の出力結果を示す図
である。
FIG. 8 is a diagram showing an output result of the second filter operation means 7;

【図9】第3の判定手段8の孤立領域の判定結果を示す
図である。
FIG. 9 is a diagram showing a determination result of an isolated area by a third determination unit 8;

【図10】従来の孤立領域判定装置の概略構成図であ
る。
FIG. 10 is a schematic configuration diagram of a conventional isolated region determination device.

【符号の説明】[Explanation of symbols]

1 入力端子 2 第1のフィルタ演算手段 3 平均値算出手段 4 差分値算出手段 5 第1の判定手段 6 第2の判定手段 7 第2のフィルタ演算手段 8 第3の判定手段 9 論理和算出手段 10 出力端子 11 入力端子 12 入力端子 13 選択手段 14 中央値算出手段 15 差分値算出手段 16 零値出力手段 17 出力端子 REFERENCE SIGNS LIST 1 input terminal 2 first filter calculating means 3 average value calculating means 4 difference value calculating means 5 first determining means 6 second determining means 7 second filter calculating means 8 third determining means 9 OR calculating means Reference Signs List 10 output terminal 11 input terminal 12 input terminal 13 selecting means 14 median value calculating means 15 difference value calculating means 16 zero value output means 17 output terminal

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】濃淡画像の注目画素の周辺の局所領域の画
素の濃度値に所定の係数行列を用いて積和演算を行って
第1のフィルタ出力値を算出する第1のフィルタ演算手
段(2)と、 前記第1のフィルタ出力値を受けて、該第1のフィルタ
出力値とあらかじめ定められた第1の判定基準値とを比
較して、前記注目画素が前記濃淡画像において近傍より
濃度が高く孤立した領域である孤立領域であるか否かを
判定する第1の判定手段(5)と、 前記第1のフィルタ出力値を受けて、該第1のフィルタ
出力値とあらかじめ定められた第2の判定基準値とを比
較して、前記注目画素が前記濃淡画像において近傍より
濃度が高い領域である孤立領域候補であるか否かを判定
する第2の判定手段(6)と、 該第2の判定手段からの判定結果と前記濃淡画像の各画
素のデータを受けて、前記各画素のうち、孤立領域候補
と判定された画素については、当該画素の周辺の局所領
域の画素の濃度値を用いてフィルタ演算を行って第2の
フィルタ出力値を算出する第2のフィルタ演算手段
(7)と、 前記第2のフィルタ出力値を受けて、該第2のフィルタ
出力値とあらかじめ定められた第3の判定基準値とを比
較して、前記注目画素が孤立領域であるか否かを判定す
る第3の判定手段(8)とを有し、第1の判定手段の判
定結果と第3の判定手段の判定結果とに基づいて、前記
注目画素が孤立領域であるか否かを判定する孤立領域判
定装置。
A first filter calculating means for calculating a first filter output value by performing a product-sum operation on a density value of a pixel in a local area around a pixel of interest in a grayscale image using a predetermined coefficient matrix; 2) receiving the first filter output value, comparing the first filter output value with a predetermined first determination reference value, and determining whether or not the pixel of interest has a higher density than the neighborhood in the grayscale image. A first determining means (5) for determining whether or not an isolated area is a highly isolated area; receiving the first filter output value and determining the first filter output value as a predetermined value A second determination unit (6) that compares the target pixel with the second determination reference value to determine whether the target pixel is an isolated region candidate that is a region having a higher density than the vicinity in the grayscale image; The determination result from the second determination means and the grayscale image Receiving the data of each of the pixels, the pixels determined as the isolated region candidates among the pixels are subjected to the filter operation using the density values of the pixels in the local region around the pixel, and the second filter A second filter calculating means (7) for calculating an output value, receiving the second filter output value, and comparing the second filter output value with a predetermined third determination reference value. A third determining unit (8) for determining whether the target pixel is an isolated region, and based on a determination result of the first determining unit and a determination result of the third determining unit. An isolated area determination device that determines whether the pixel of interest is an isolated area.
JP07310098A 1998-03-05 1998-03-05 Isolated area determination device Expired - Lifetime JP4008093B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP07310098A JP4008093B2 (en) 1998-03-05 1998-03-05 Isolated area determination device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP07310098A JP4008093B2 (en) 1998-03-05 1998-03-05 Isolated area determination device

Publications (2)

Publication Number Publication Date
JPH11250247A true JPH11250247A (en) 1999-09-17
JP4008093B2 JP4008093B2 (en) 2007-11-14

Family

ID=13508579

Family Applications (1)

Application Number Title Priority Date Filing Date
JP07310098A Expired - Lifetime JP4008093B2 (en) 1998-03-05 1998-03-05 Isolated area determination device

Country Status (1)

Country Link
JP (1) JP4008093B2 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007310635A (en) * 2006-05-18 2007-11-29 Akuseru:Kk Image processing device and image processing method
JP2008099129A (en) * 2006-10-13 2008-04-24 Fuji Xerox Co Ltd Image reading apparatus
US8103058B2 (en) 2008-10-17 2012-01-24 Visidon Oy Detecting and tracking objects in digital images

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007310635A (en) * 2006-05-18 2007-11-29 Akuseru:Kk Image processing device and image processing method
JP2008099129A (en) * 2006-10-13 2008-04-24 Fuji Xerox Co Ltd Image reading apparatus
US8103058B2 (en) 2008-10-17 2012-01-24 Visidon Oy Detecting and tracking objects in digital images

Also Published As

Publication number Publication date
JP4008093B2 (en) 2007-11-14

Similar Documents

Publication Publication Date Title
Wang et al. Modified switching median filter for impulse noise removal
KR960006477A (en) Error diffusion method binarization method and device
JPH0467275A (en) Recognizing method and recognizing device
US5237621A (en) Product appearance inspection methods and apparatus employing low variance filter
JP4542666B2 (en) Foreign object detection method and apparatus by image processing
US6999604B1 (en) Apparatus and method for detecting a moving object in a sequence of color frame images
Etemadnia et al. Automatic Image Shadow Identification using LPF in Homomorphic Processing System.
JP2005165387A (en) Method and device for detecting stripe defective of picture and display device
JPH07249128A (en) Picture processor for vehicle
JPH11250247A (en) Isolated area judging device
JP3871292B2 (en) Isolated region enhancement filter circuit
CN114596210A (en) Noise estimation method, device, terminal equipment and computer readable storage medium
Hossain et al. Hardware design and implementation of adaptive canny edge detection algorithm
Choudhary et al. A novel approach for edge detection for blurry images by using digital image processing
JP4253265B2 (en) Shadow detection apparatus, shadow detection method and shadow detection program, image processing apparatus using shadow detection apparatus, image processing method using shadow detection method, and image processing program using shadow detection program
JPH10208037A (en) Target detector
Adinarayana Edge detector for spectral image using new approach
JPH0844844A (en) Object detector
JP2940254B2 (en) Edge / region detection method and device
JPH0512440A (en) Edge detector
JPH0683959A (en) Area division system for image
Etemadnia et al. Homomorphic filtering approach using HSV color space in automatic image shadow segmentation
JPS63219081A (en) Image binarizing system
Naik et al. A Survey on Dynamic Edge Detection Techniques for Image Segmentation
JPH1153544A (en) Image processor

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20040630

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20070404

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20070515

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20070711

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20070829

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

Free format text: PAYMENT UNTIL: 20100907

Year of fee payment: 3

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

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

Free format text: PAYMENT UNTIL: 20110907

Year of fee payment: 4

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

Free format text: PAYMENT UNTIL: 20120907

Year of fee payment: 5

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

Free format text: PAYMENT UNTIL: 20130907

Year of fee payment: 6

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

S533 Written request for registration of change of name

Free format text: JAPANESE INTERMEDIATE CODE: R313533

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

EXPY Cancellation because of completion of term