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
JP5896873B2 - Blur image detection method - Google Patents
[go: Go Back, main page]

JP5896873B2 - Blur image detection method - Google Patents

Blur image detection method Download PDF

Info

Publication number
JP5896873B2
JP5896873B2 JP2012223920A JP2012223920A JP5896873B2 JP 5896873 B2 JP5896873 B2 JP 5896873B2 JP 2012223920 A JP2012223920 A JP 2012223920A JP 2012223920 A JP2012223920 A JP 2012223920A JP 5896873 B2 JP5896873 B2 JP 5896873B2
Authority
JP
Japan
Prior art keywords
value
pixel
overlapping portion
pixel value
image
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
JP2012223920A
Other languages
Japanese (ja)
Other versions
JP2014077649A (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.)
Sumitomo Mitsui Construction Co Ltd
Original Assignee
Sumitomo Mitsui Construction Co Ltd
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 Sumitomo Mitsui Construction Co Ltd filed Critical Sumitomo Mitsui Construction Co Ltd
Priority to JP2012223920A priority Critical patent/JP5896873B2/en
Publication of JP2014077649A publication Critical patent/JP2014077649A/en
Application granted granted Critical
Publication of JP5896873B2 publication Critical patent/JP5896873B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Image Processing (AREA)
  • Image Analysis (AREA)
  • Investigating Materials By The Use Of Optical Means Adapted For Particular Applications (AREA)

Description

本発明は、被写体中の隣接する複数のエリアを連続撮影して取得した複数枚の画像からピンボケ画像を検出するボケ画像検出方法に関する。   The present invention relates to a blurred image detection method for detecting a blurred image from a plurality of images obtained by continuously photographing a plurality of adjacent areas in a subject.

従来、コンクリート表面(例えば、トンネル壁面)のひび割れや段差等の有無を検知するために該コンクリート表面をカメラで連続撮影することが行われている(例えば、特許文献1及び2参照)。   2. Description of the Related Art Conventionally, in order to detect the presence or absence of cracks or steps on a concrete surface (for example, a tunnel wall surface), the concrete surface is continuously photographed with a camera (see, for example, Patent Documents 1 and 2).

図4は、コンクリート表面を連続撮影する様子の一例を示す斜視図であり、符号100は、被写体であるトンネル壁面を示し、符号101は、該トンネル壁面100を撮影するためのカメラを示し、符号102は、該カメラ101を搭載して移動させる台車(車両)を示す。この装置では、該台車102を一定速度で走行させながらカメラ101のシャッターを一定間隔で切ることにより、トンネル壁面100を連続撮影できるようになっている。   FIG. 4 is a perspective view showing an example of a state in which a concrete surface is continuously photographed. Reference numeral 100 denotes a tunnel wall surface as a subject. Reference numeral 101 denotes a camera for photographing the tunnel wall surface 100. Reference numeral 102 denotes a carriage (vehicle) on which the camera 101 is mounted and moved. In this apparatus, the tunnel wall surface 100 can be continuously photographed by moving the carriage 102 at a constant speed and releasing the shutter of the camera 101 at a constant interval.

特開2011−117788号公報JP 2011-117788 A 特開2012−098170号公報JP 2012-098170 A

しかしながら、上述のようにして撮影した多数の画像の中には、いわゆるピンボケ画像(つまり、焦点が合わずに全体的にぼやけた画像であり、エッジ強度の弱い画像)が混ざってしまう場合もある。このようなピンボケ画像はひび割れ等の検出には利用できないので、ピンボケ画像かどうかを判定する必要があるが、人間が目視により判定していたのでは作業が煩雑になってしまうという問題がある。   However, there are cases where so-called out-of-focus images (that is, images that are totally out of focus and have low edge strength) are mixed in many images captured as described above. . Since such a defocused image cannot be used for detecting cracks or the like, it is necessary to determine whether or not it is a defocused image, but there is a problem that the work becomes complicated if it is determined by human eyes.

本発明は、上述の問題を解消することのできるボケ画像検出方法を提供することを目的とするものである。   An object of the present invention is to provide a blurred image detection method capable of solving the above-described problems.

請求項1に係る発明は、図1及び図2(a) (b) に例示するものであって、被写体中の隣接する複数のエリアを連続撮影して取得した複数枚の画像(図2(a)
中の符号Qi−2,Qi−1,Q,Qi+1,Qi+2参照)からピンボケ画像を検出するボケ画像検出方法において、
一部が重複するように連続撮影された2枚の画像(Qi−1,Q)を“第1撮影画像”及び“第2撮影画像”とし、該第1撮影画像(Qi−1)における該第2撮影画像(Q)との重複部(図2(b) の符号Ri−1参照)を“第1重複部”とし、該第2撮影画像(Q)における該第1撮影画像(Qi−1)との重複部(図2(b)
の符号R参照)を“第2重複部”とした場合に、
前記第1撮影画像(Qi−1)がピンボケ画像か否かを目視により判定する第1撮影画像判定工程(図1のS参照)と、
前記第1撮影画像(Qi−1)において前記第1重複部(Ri−1)を特定する第1重複部特定工程(S11)と、
前記第1重複部(Ri−1)における各画素の画素値(以下、“第1処理前画素値”とする)(P(j))を取得する第1処理前画素値取得工程(S12)と、
前記第1重複部(Ri−1)をフィルタ処理する第1フィルタ処理工程(S13)と、
該フィルタ処理された後の該第1重複部(Ri−1)における各画素の画素値(以下、“第1処理後画素値”とする)(P1m(j))を取得する第1処理後画素値取得工程(S14)と、
各画素について前記第1処理前画素値(P(j))と前記第1処理後画素値(P1m(j))との差分値の絶対値(以下、“第1差分値”とする)(|P1m(j)−P(j)|)を取得する第1差分値取得工程(S15)と、
各画素の前記第1差分値(|P1m(j)−P(j)|)を前記第1重複部(Ri−1)について積算する第1差分値積算工程(S16)と、
前記第2撮影画像(Q)において前記第2重複部(R)を特定する第2重複部特定工程(S21)と、
前記第2重複部(R)における各画素の画素値(以下、“第2処理前画素値”とする)(P(j))を取得する第2処理前画素値取得工程(S22)と、
前記第2重複部(R)をフィルタ処理する第2フィルタ処理工程(S23)と、
該フィルタ処理された後の該第2重複部(R)における各画素の画素値(以下、“第2処理後画素値”とする)(P2m(j))を取得する第2処理後画素値取得工程(S24)と、
各画素について前記第2処理前画素値(P(j))と前記第2処理後画素値(P2m(j))との差分値の絶対値(以下、“第2差分値”とする)(|P2m(j)−P(j)|)を取得する第2差分値取得工程(S25)と、
各画素の前記第2差分値を前記第2重複部(R)について積算する第2差分値積算工程(S26)と、
前記第1差分値積算工程(S16)で得られた値(以下、“第1積算値”とする)([i−1])と前記第2差分値積算工程(S26)で得られた値(以下、“第2積算値”とする)([i])とから該第1積算値([i−1])及び該第2積算値([i])を元にした値(以下、“特徴量”とする)を算出する特徴量算出工程(S)と、
該特徴量算出工程(S)にて算出された前記特徴量に基づき前記第2撮影画像(Q)がボケ画像であるか否かを判定するボケ画像判定工程(S)と、を備えたことを特徴とする。
The invention according to claim 1 is exemplified in FIGS. 1 and 2 (a) and 2 (b), and is a plurality of images obtained by continuously photographing a plurality of adjacent areas in a subject (FIG. 2 ( a)
In the blurred image detection method for detecting a defocused image from the codes Q i-2 , Q i−1 , Q i , Q i + 1 , and Q i + 2 in FIG.
Two images (Q i−1 , Q i ) continuously captured so as to partially overlap are referred to as “first captured image” and “second captured image”, and the first captured image (Q i−1). ) In the second captured image (Q i ) (refer to the reference symbol R i-1 in FIG. 2B) is the “first overlap portion”, and the second captured image (Q i ) Overlapping part with one captured image (Q i-1 ) (FIG. 2 (b)
) (Referring to the symbol R i ) of “second overlapping portion”,
The first captured image (Q i-1) is first captured image determination step of determining visually whether out-of-focus image (see S 0 in Fig. 1),
A first overlapping portion specifying step (S 11 ) for specifying the first overlapping portion (R i-1 ) in the first captured image (Q i-1 );
First pre-processing pixel value acquisition step (P 1 (j)) for acquiring a pixel value of each pixel (hereinafter referred to as “first pre-processing pixel value”) (P 1 (j)) in the first overlapping portion (R i-1 ) S 12 ),
A first filtering step (S 13 ) for filtering the first overlapping portion (R i-1 );
A first pixel value (P 1m (j)) for acquiring the pixel value of each pixel in the first overlap portion (R i-1 ) after the filter processing (hereinafter referred to as “first post-processing pixel value”) is obtained. A post-processing pixel value acquisition step (S 14 );
For each pixel, the absolute value of the difference value between the first pre-processing pixel value (P 1 (j)) and the first post-processing pixel value (P 1m (j)) (hereinafter referred to as “first difference value”). ) (| P 1m (j) −P 1 (j) |) to obtain a first difference value acquisition step (S 15 ),
A first difference value integrating step (S 16 ) for integrating the first difference value (| P 1m (j) −P 1 (j) |) of each pixel with respect to the first overlapping portion (R i-1 );
A second overlapping portion specifying step (S 21 ) for specifying the second overlapping portion (R i ) in the second captured image (Q i );
Second pre-processing pixel value acquisition step (S 22 ) for acquiring a pixel value of each pixel (hereinafter referred to as “second pre-processing pixel value”) (P 2 (j)) in the second overlapping portion (R i ). )When,
A second filtering step (S 23 ) for filtering the second overlapping portion (R i );
After the second process of obtaining the pixel value of each pixel in the second overlapping portion (R i ) after the filter process (hereinafter referred to as “second processed pixel value”) (P 2m (j)) A pixel value acquisition step (S 24 );
For each pixel, the absolute value of the difference value between the pre-second pixel value (P 2 (j)) and the post-second pixel value (P 2m (j)) (hereinafter referred to as “second differential value”). ) (| P 2m (j) −P 2 (j) |) second difference value acquisition step (S 25 ),
A second difference value integrating step (S 26 ) for integrating the second difference value of each pixel with respect to the second overlapping portion (R i );
The value obtained in the first difference value integration step (S 16 ) (hereinafter referred to as “first integration value”) ([i−1]) and the second difference value integration step (S 26 ). A value based on the first integrated value ([i-1]) and the second integrated value ([i]) from the value (hereinafter referred to as “second integrated value”) ([i]) ( Hereinafter, a feature amount calculating step (S 3 ) for calculating “a feature amount”),
A blur image determination step (S 4 ) for determining whether or not the second captured image (Q i ) is a blur image based on the feature amount calculated in the feature amount calculation step (S 3 ); It is characterized by having.

なお、括弧内の番号などは、図面における対応する要素を示す便宜的なものであり、従って、本記述は図面上の記載に限定拘束されるものではない。   Note that the numbers in parentheses are for the sake of convenience indicating the corresponding elements in the drawings, and therefore the present description is not limited to the descriptions on the drawings.

請求項1に係る発明によれば、前記第1撮影画像以外の画像(つまり、第2撮影画像や他の撮影画像)がピンボケ画像であるか否かの判定は人間の目視に頼らずに自動で行うことができるので、判定作業を簡素化することができる。   According to the first aspect of the present invention, whether or not an image other than the first photographed image (that is, the second photographed image or another photographed image) is an out-of-focus image is automatically determined without depending on human eyes. Therefore, the determination work can be simplified.

図1は、本発明に係るボケ画像検出方法の具体例を示すフローチャート図である。FIG. 1 is a flowchart showing a specific example of a blurred image detection method according to the present invention. 図2(a) は、撮影の様子の一例を示す斜視図であり、同図(b) は、2枚の画像(第1撮影画像と第2撮影画像)の位置関係等を説明するための斜視図である。FIG. 2A is a perspective view showing an example of shooting, and FIG. 2B is a diagram for explaining the positional relationship between two images (first and second shot images). It is a perspective view. 図3は、差分値取得工程の概略を説明するための図である。FIG. 3 is a diagram for explaining the outline of the difference value acquisition step. 図4は、コンクリート表面を連続撮影する様子の一例を示す斜視図である。FIG. 4 is a perspective view showing an example of a state in which a concrete surface is continuously photographed.

以下、図1乃至図3に沿って、本発明の実施の形態について説明する。   Hereinafter, embodiments of the present invention will be described with reference to FIGS. 1 to 3.

本発明に係るボケ画像検出方法は、被写体中の隣接する複数のエリアを連続撮影して取得した複数枚の画像(図2(a) 中の符号Qi−2,Qi−1,Q,Qi+1,Qi+2参照)からピンボケ画像を検出(特定)する方法である。 The blurred image detection method according to the present invention includes a plurality of images (symbols Q i-2 , Q i-1 , Q i in FIG. 2A) acquired by continuously photographing a plurality of adjacent areas in a subject. , Q i + 1 , Q i + 2 )).

ここで、前記被写体としてはトンネルのコンクリート壁面を挙げることができる。また、本明細書における「連続撮影」とは、いわゆる連写のように時間的に連続させて撮影する(つまり、立て続けにシャッターを切る)という意味ではなく、撮影エリアが位置的に連続するように 被写体中の“一のエリア”と“該一のエリアに隣接する他のエリア”とをそれぞれ撮影するという意味であり、時間的に連続させて撮影するかどうかは問わない。この連続撮影は、デジタルカメラ等の撮影手段(図2(a) 中の符号1参照)を搭載した車両(不図示)を移動させながら行うことが効率的であるが、そのような車両を使わない撮影を本発明の範囲から除外するものではない。また、該車両を用いて連続撮影をする場合は、車両の走行速度をほぼ一定とした状態でシャッターをほぼ一定の間隔で切ることが好ましいが、車両の走行速度やシャッターを切るタイミングを一定とはせずに変化させる場合を本発明の範囲から除外するものでは無い。さらに、本明細書における「ピンボケ画像」とは、焦点が合わずに全体的にぼやけて撮影された画像(エッジ強度の弱い画像)のことをいう。   Here, the subject may be a concrete wall surface of a tunnel. In addition, the term “continuous shooting” in this specification does not mean that shooting is performed continuously in time as in so-called continuous shooting (that is, the shutter is continuously released), but the shooting area is continuous in position. This means that “one area” and “other areas adjacent to the one area” in the subject are each photographed, regardless of whether or not they are photographed continuously in time. It is efficient to perform this continuous shooting while moving a vehicle (not shown) equipped with a photographing means such as a digital camera (see reference numeral 1 in FIG. 2 (a)). No photography is excluded from the scope of the present invention. In the case of continuous shooting using the vehicle, it is preferable to release the shutter at a substantially constant interval with the vehicle traveling speed being substantially constant. However, the vehicle traveling speed and the timing at which the shutter is released are constant. It does not exclude from the scope of the present invention the case where the change is made without doing. Further, the “out-of-focus image” in the present specification refers to an image (image with low edge strength) that is not focused and is entirely blurred.

ところで、本発明によるボケ画像の判定は、一部が重複するように連続撮影された2枚の画像(例えば、Qi−1,Q)を用いて行うが、説明の便宜上、該2枚の画像Qi−1,Qを“第1撮影画像”及び“第2撮影画像”と称することとし、該第1撮影画像Qi−1における該第2撮影画像Qとの重複部(図2(b) の符号Ri−1参照)を“第1重複部”と称し、該第2撮影画像Qにおける該第1撮影画像Qi−1との重複部(図2(b)
の符号R参照)を“第2重複部”と称することとする。
By the way, the determination of a blurred image according to the present invention is performed using two images (for example, Q i−1 , Q i ) that are continuously photographed so as to partially overlap. The images Q i-1 and Q i are referred to as “first photographed image” and “second photographed image”, and the first photographed image Q i-1 overlaps with the second photographed image Q i ( The reference R i-1 in FIG. 2B is referred to as a “first overlapping portion”, and the second captured image Q i overlaps with the first captured image Q i-1 (see FIG. 2B).
(Refer to the reference symbol Ri ).

<第1撮影画像判定工程>
本発明に係るボケ画像検出方法は、前記第1撮影画像Qi−1がピンボケ画像か否かを人間が目視により判定する第1撮影画像判定工程Sを備えている。
<First photographed image determination step>
Blurred image detecting method according to the present invention, the first captured image Q i-1 is the human whether out-of-focus image comprises a first captured image determination process S 0 is determined by visual observation.

<重複部特定工程>
本発明に係るボケ画像検出方法は、
・ 前記第1撮影画像Qi−1において前記第1重複部Ri−1を特定する第1重複部特定工程S11と、
・ 前記第2撮影画像Qにおいて前記第2重複部Rを特定する第2重複部特定工程S21と、
を備えている。
<Duplicate part identification process>
The blurred image detection method according to the present invention includes:
· In the first captured image Q i-1 and the first overlap portion specifying step S 11 for identifying the first overlapping portion R i-1,
A second overlap portion specifying step S 21 for identifying the second overlapping portion R i in - the second captured image Q i,
It has.

該第1重複部Ri−1及び該第2重複部Rは被写体の同じエリアを撮影している部分であるので、当然ながら前記第1撮影画像Qi−1と前記第2撮影画像Qとが同じサイズである限り、該第1重複部Ri−1と該第2重複部Rとは同じ形状で同じサイズである。なお、該第1重複部Ri−1及び該第2重複部Rの特定は、
・ 前記第1撮影画像Qi−1や前記第2撮影画像Qをパソコンのモニター上に表示させた状態で操作者がそれらの撮影画像を見ながら手動(つまり、マウス等の操作)で行うようにしても、或いは、
・ パソコンにより自動で行うようにしても、
どちらでも良い。なお、後者の方法(つまり、パソコン自体が前記重複部Ri−1,Rの特定を自動で行う方法)としては、
・ 前記車両の走行速度が略一定の場合において、該走行速度のデータとシャッターを切るタイミングについてのデータとから前記重複部Ri−1,Rを特定する方法、
・ 前記第1撮影画像Qi−1と前記第2撮影画像Qとをマッチング技術により比較して重複部Ri−1,Rの位置や形状等を特定する方法
を挙げることができる。また、前記第1重複部Ri−1及び前記第2重複部Rの特定は、
・ 前記第1重複部Ri−1や前記第2重複部Rを“画像”として各撮影画像Qi−1,Qから切り出すようにしても、或いは、
・ “画像”として切り出さずに、前記第1撮影画像Qi−1において前記第1重複部Ri−1の位置や形状を数値(例えば、画素のアドレス)で特定し、前記第2撮影画像Qにおいて前記第2重複部Rの位置や形状を数値(例えば、画素のアドレス)で特定するようにしても、
どちらでも良い。
Since the first overlapping portion R i-1 and the second overlapping portion R i are portions where the same area of the subject is imaged, of course, the first captured image Q i-1 and the second captured image Q As long as i is the same size, the first overlap portion R i-1 and the second overlap portion R i have the same shape and the same size. The identification of the first overlapping portion R i-1 and the second overlapping portion R i is as follows:
The operator performs the operation manually (that is, operation of the mouse or the like) while viewing the captured images while the first captured image Q i-1 and the second captured image Q i are displayed on the monitor of the personal computer. Or
・ Even if it is done automatically with a computer,
both are fine. In addition, as the latter method (that is, a method in which the personal computer itself automatically identifies the overlapping portions R i-1 and R i ),
A method of identifying the overlapping portions R i-1 and R i from the data on the traveling speed and the data on the timing of releasing the shutter when the traveling speed of the vehicle is substantially constant;
A method may be mentioned in which the first photographed image Q i-1 and the second photographed image Q i are compared by a matching technique to identify the positions and shapes of the overlapping portions R i-1 , R i . Further, the identification of the first overlap portion R i-1 and the second overlap portion R i is as follows:
The first overlapping portion R i-1 and the second overlapping portion R i may be cut out from the captured images Q i-1 and Q i as “images”, or
The position and shape of the first overlapping portion R i-1 in the first captured image Q i-1 is specified by a numerical value (for example, pixel address) without being cut out as an “image”, and the second captured image In Q i , the position and shape of the second overlapping portion R i may be specified by a numerical value (for example, a pixel address).
both are fine.

<処理前画素値取得工程>
また、本発明に係るボケ画像検出方法は、
・ 前記第1重複部Ri−1における各画素の画素値(以下、“第1処理前画素値”とする)P(j)を取得する第1処理前画素値取得工程S12と、
・ 前記第2重複部Rにおける各画素の画素値(以下、“第2処理前画素値”とする)P(j)を取得する第2処理前画素値取得工程S22と、
を備えている。
<Pixel value acquisition process before processing>
The blurred image detection method according to the present invention includes:
A first pre-processing pixel value acquisition step S 12 for acquiring a pixel value (hereinafter referred to as “first pre-processing pixel value”) P 1 (j) of each pixel in the first overlap portion R i−1 ;
A second pre-processing pixel value acquisition step S 22 for acquiring a pixel value (hereinafter referred to as “second pre-processing pixel value”) P 2 (j) of each pixel in the second overlapping portion R i ;
It has.

<フィルタ処理工程>
さらに、本発明に係るボケ画像検出方法は、
・ 前記第1重複部Ri−1をフィルタ処理する第1フィルタ処理工程S13と、
・ 前記第2重複部Rをフィルタ処理する第2フィルタ処理工程S23と、
を備えている。ここで、各重複部Ri−1,Rのフィルタ処理としては、例えば、メディアンフィルタ処理(つまり、周辺画素値の大きさを順に並べ、中央値(Median)を注目画素の画素値とするフィルタ処理であって、周辺画素値と比較して大きく異なる領域(画素値)を除去するための処理)を挙げることができる。このようなフィルタ処理を行った場合、重複部Ri−1,Rからはノイズやエッジ(例えば、被写体であるコンクリート壁面の微細な凹凸や、施工跡、クラック跡、遊離石灰などのエッジとなる部分で、画素値の変化が急峻な箇所)が除去・抑制されることとなる。
<Filtering process>
Furthermore, the blurred image detection method according to the present invention includes:
- said first overlap portion R i-1 and the first filtering step S 13 that filters,
- the second overlapping portion R i and the second filtering step S 23 that filters,
It has. Here, as the filter processing of each of the overlapping portions R i−1 and R i , for example, median filter processing (that is, the sizes of the peripheral pixel values are sequentially arranged, and the median value (Median) is set as the pixel value of the target pixel. Filter processing, which is a process for removing a region (pixel value) that is significantly different from the surrounding pixel values. When such a filtering process is performed, noise and edges (for example, fine irregularities on the concrete wall surface that is the subject, construction traces, crack traces, free lime edges, and the like are detected from the overlapping portions R i-1 and R i. That is, a portion where the change of the pixel value is steep) is removed and suppressed.

<処置後画素値取得工程>
また、本発明に係るボケ画像検出方法は、
・ 前記フィルタ処理された後の該第1重複部Ri−1における各画素の画素値(以下、“第1処理後画素値”とする)P1m(j)を取得する第1処理後画素値取得工程S14と、
・ 前記フィルタ処理された後の該第2重複部Rにおける各画素の画素値(以下、“第2処理後画素値”とする)P2m(j)を取得する第2処理後画素値取得工程S24と、
を備えている。
<Post-treatment pixel value acquisition process>
The blurred image detection method according to the present invention includes:
A first post-processing pixel that obtains a pixel value (hereinafter, referred to as “first post-processing pixel value”) P 1m (j) of each pixel in the first overlap portion R i−1 after the filtering process. a value acquisition step S 14,
The second post-processing pixel value acquisition for acquiring the pixel value (hereinafter referred to as “second post-processing pixel value”) P 2m (j) of each pixel in the second overlapping portion R i after the filtering process. a step S 24,
It has.

<差分値取得工程>
さらに、本発明に係るボケ画像検出方法は、
・ 各画素について前記第1処理前画素値P(j)と前記第1処理後画素値P1m(j)との差分値の絶対値(以下、“第1差分値”とする)“|P1m(j)−P(j)|”を取得する第1差分値取得工程S15と、
・ 各画素について前記第2処理前画素値P(j)と前記第2処理後画素値P2m(j)との差分値の絶対値(以下、“第2差分値”とする)“|P2m(j)−P(j)|”を取得する第2差分値取得工程S25と、
を備えている。図3は、該差分値取得工程の概略を説明するための図であり、横軸には画素(画素位置)を縦軸には画素値を取っている。また、図中に符号Dで示す折れ線(実線)は各画素の処理前画素値P(j)を示し、符号Eで示す折れ線(破線)は処理後画素値P(j)を示し、符号Fで示す折れ線(実線)は差分値|P(j)−P(j)|を示している。このようにして、前記第1差分値取得工程S15により、前記第1重複部Ri−1において、画素の変化が急峻な箇所(ノイズやエッジがある画素)が抽出(検出)され、前記第2差分値取得工程S25により、前記第2重複部Rにおいて、画素の変化が急峻な箇所(ノイズやエッジがある画素)が抽出(検出)される。
<Difference value acquisition process>
Furthermore, the blurred image detection method according to the present invention includes:
For each pixel, the absolute value of the difference value between the first pre-processing pixel value P 1 (j) and the first post-processing pixel value P 1m (j) (hereinafter referred to as “first difference value”) “| A first difference value acquisition step S 15 for acquiring P 1m (j) −P 1 (j) | ″;
For each pixel, an absolute value of a difference value between the second pre-processing pixel value P 2 (j) and the second post-processing pixel value P 2m (j) (hereinafter referred to as “second difference value”) “| A second difference value acquisition step S 25 for acquiring P 2m (j) −P 2 (j) | ″;
It has. FIG. 3 is a diagram for explaining the outline of the difference value acquisition step, where the horizontal axis represents pixels (pixel positions) and the vertical axis represents pixel values. In the drawing, a broken line (solid line) indicated by a symbol D indicates a pre-processing pixel value P (j) of each pixel, and a broken line (broken line) indicated by a symbol E indicates a post-processing pixel value P m (j). A broken line (solid line) indicated by F indicates a difference value | P m (j) −P (j) |. In this manner, by the first difference value acquiring step S 15, in the first overlapping portion R i-1, change of the pixel steep portion (pixel having a noise or edge) is extracted (detected), the the second difference value acquiring step S 25, in the second overlapping portion R i, change of the pixel steep portion (pixel having a noise or edge) is extracted (detected).

<差分値積算工程>
また、本発明に係るボケ画像検出方法は、
・ 各画素の前記第1差分値|P1m(j)−P(j)|を前記第1重複部Ri−1について積算する第1差分値積算工程S16と、
・ 各画素の前記第2差分値|P2m(j)−P(j)|を前記第2重複部Rについて積算する第2差分値積算工程S26と、
を備えている。なお、前記第1差分値積算工程S16にて前記第1差分値|P1m(j)−P(j)|を前記第1重複部Ri−1について積算した値(エッジ総量)[i−1]を“第1積算値”と称することとし、前記第2差分値積算工程S26にて前記第2差分値|P2m(j)−P(j)|を前記第2重複部Rについて積算した値(エッジ総量)[i]を“第2積算値”と称することとする。なお、該第1積算値[i−1]及び該第2積算値[i]は下式で示されるものである。

Figure 0005896873
<Differential value integration process>
The blurred image detection method according to the present invention includes:
A first difference value integration step S 16 for integrating the first difference value | P 1m (j) −P 1 (j) | of each pixel with respect to the first overlap portion R i−1 ;
A second difference value integration step S 26 for integrating the second difference value | P 2m (j) −P 2 (j) | of each pixel with respect to the second overlapping portion R i ;
It has. Incidentally, the first difference value by the first difference value integration process S 16 | P 1m (j) -P 1 (j) | of the first overlapping portion R i-1 integrated values for (edge amount) [ i-1] is referred to as a “first integrated value”, and the second difference value | P 2m (j) −P 2 (j) | is used as the second overlap value in the second difference value integrating step S 26 . The value (total edge amount) [i] integrated for the part R i is referred to as a “second integrated value”. The first integrated value [i-1] and the second integrated value [i] are represented by the following formulas.
Figure 0005896873

<特徴量算出工程>
さらに、本発明に係るボケ画像検出方法は、前記第1積算値[i−1]と前記第2積算値[i]とから該第1積算値[i−1]及び該第2積算値[i]を元にした値(以下、“特徴量”とする)を算出する特徴量算出工程Sを備えている。なお、この特徴量としては、
・ 前記第1積算値[i−1]と前記第2積算値[i]との差、すなわち、Ai=[i]−[i−1]
・ 前記第1積算値[i−1]を前記第2積算値[i]で割った値、すなわち、Bi=[i]÷[i−1]
・ [i−1]>[i]の場合はCi=−([i−1]÷[i])+1.0とし、[i−1]≦[i]の場合はCi=+([i]÷[i−1])−1.0
などを挙げることができる。
<Feature amount calculation process>
Furthermore, the blurred image detection method according to the present invention includes the first integrated value [i−1] and the second integrated value [i] from the first integrated value [i−1] and the second integrated value [i]. i] value based on (hereinafter referred to as "feature quantity") and a feature calculation step S 3 calculated. As this feature amount,
The difference between the first integrated value [i−1] and the second integrated value [i], that is, Ai = [i] − [i−1]
A value obtained by dividing the first integrated value [i−1] by the second integrated value [i], that is, Bi = [i] ÷ [i−1]
When [i−1]> [i], Ci = − ([i−1] ÷ [i]) + 1.0, and when [i−1] ≦ [i], Ci = + ([i ] ÷ [i−1]) − 1.0
And so on.

<ボケ画像判定工程>
また、本発明に係るボケ画像検出方法は、該特徴量算出工程Sにて算出された前記特徴量に基づき前記第2撮影画像Qがボケ画像であるか否かを判定するボケ画像判定工程Sを備えている。例えば、前記第1撮影画像判定工程Sにおいて前記第1撮影画像Qi−1がピンボケ画像であると目視により判定されると、前記第1処理前画素値P(j)と前記第1処理後画素値P1m(j)とはほぼ等しくなり、前記第1差分値|P1m(j)−P(j)|や前記第1積算値[i−1]は0に近い値となる。そして、例えば、前記特徴量算出工程SにおいてAi=[i]−[i−1]≒0と算出されたとすると、前記第2差分値|P2m(j)−P(j)|や前記第2積算値[i]はほぼ0であるということで、第2撮影画像Qiはピンボケ画像であると判定される。
<Bokeh image determination process>
Moreover, the blurred image detecting method according to the present invention determines blurred image determining whether the second captured image Q i based on the feature amount calculated by the feature value calculation step S 3 is blurred image which comprises the step S 4. For example, when it is visually determined in the first captured image determination step S 0 that the first captured image Q i-1 is a blurred image, the first pre-process pixel value P 1 (j) and the first The post-processing pixel value P 1m (j) is substantially equal, and the first difference value | P 1m (j) −P 1 (j) | and the first integrated value [i−1] are values close to 0. Become. For example, if Ai = [i] − [i−1] ≈0 is calculated in the feature amount calculation step S 3 , the second difference value | P 2m (j) −P 2 (j) | Since the second integrated value [i] is approximately 0, it is determined that the second captured image Qi is a defocused image.

なお、
・ 第1重複部特定工程S11は、第1処理前画素値取得工程S12や第1フィルタ処理工程S13や第1処理後画素値取得工程S14や第1差分値取得工程S15や第1差分値積算工程S16の前に実施する必要があり、
・ 第2重複部特定工程S21は、第2処理前画素値取得工程S22や第2フィルタ処理工程S23や第2処理後画素値取得工程S24や第2差分値取得工程S25や第2差分値積算工程S26の前に実施する必要があり、
・ 第1処理後画素値取得工程S14は第1フィルタ処理工程S13の後に実施する必要があり、
・ 第2処理後画素値取得工程S24は第2フィルタ処理工程S23の後に実施する必要があり、
・ 第1差分値取得工程S15は第1処理前画素値取得工程S12や第1処理後画素値取得工程S14の後に実施する必要があり、
・ 第2差分値取得工程S25は第2処理前画素値取得工程S22や第2処理後画素値取得工程S24の後に実施する必要があり、
・ 第1差分値積算工程S16は第1差分値取得工程S15の後に実施する必要があり、
・ 第2差分値積算工程S26は第2差分値取得工程S25の後に実施する必要があり、
・ 第1撮影画像判定工程Sはボケ画像判定工程Sの前に実施する必要がある
が、それ以外の工程の実施順序は適宜変更するようにしても良い。
In addition,
· First overlap portion specifying step S 11, the Ya first processing previous pixel value obtaining step S 12, the first filtering step S 13 or after the first processing pixel value obtaining step S 14, the first difference value acquiring step S 15 must be carried out before the first difference value integration process S 16,
· Second overlap portion specifying step S 21, the Ya second processing previous pixel value obtaining step S 22 and the second filtering step S 23 and the second processing after the pixel value obtaining step S 24 and the second difference value acquiring step S 25 must be carried out before the second difference value integration process S 26,
- the first processed pixel value obtaining step S 14 should be carried out after the first filtering step S 13,
- second processing after the pixel value obtaining step S 24 must be carried out after the second filtering step S 23,
- first difference value acquiring step S 15 must be carried out after the first pre-processing pixel value obtaining step S 12 or the first processed pixel value obtaining step S 14,
- second difference value acquiring step S 25 must be carried out after the second pre-processing pixel value obtaining step S 22 and the second processing after the pixel value obtaining step S 24,
- the first difference value integration process S 16 must be carried out after the first difference value acquiring step S 15,
- second difference value integration process S 26 must be carried out after the second difference value acquiring step S 25,
The first captured image determination step S 0 needs to be performed before the blurred image determination step S 4 , but the execution order of the other steps may be changed as appropriate.

一方、前記第2撮影画像Qに連続する他の撮影画像を“第3撮影画像Qi+1”とすると、該第2撮影画像Qと該第3撮影画像Qi+1との関係においても上述の工程S11,S12,…,S21,S22,…,S,Sを実施して前記第3撮影画像Qi+1のピンボケ判定を行うようにすると良い。また、該第3撮影画像Qi+1と第4撮影画像Qi+2の関係においても上述の工程S11,S12,…,S21,S22,…,S,Sを実施して前記第4撮影画像Qi+2のピンボケ判定を行うようにすると良い。 On the other hand, if another captured image that is continuous with the second captured image Q i is “third captured image Q i + 1 ”, the relationship between the second captured image Q i and the third captured image Q i + 1 is also described above. Steps S 11 , S 12 ,..., S 21 , S 22 ,..., S 3 , S 4 may be performed to determine the out of focus of the third captured image Q i + 1 . Further, the third captured image Q i + 1 and the fourth captured image Q i + 2 of the above-mentioned also in relation step S 11, S 12, ..., S 21, S 22, ..., said implement S 3, S 4 second The out-of-focus determination of the four captured images Q i + 2 may be performed.

本発明によれば、前記第1撮影画像以外の画像(つまり、第2撮影画像Q,第3撮影画像Qi+1,…)がピンボケ画像であるか否かの判定は人間の目視に頼らずに自動で行うことができるので、判定作業を簡素化することができる。 According to the present invention, it is possible to determine whether an image other than the first photographed image (that is, the second photographed image Q i , the third photographed image Q i + 1 ,...) Is a blurred image without depending on human eyes. Therefore, the determination work can be simplified.

[i−1] 第1積算値
[i] 第2積算値
(j) 第1処理前画素値
1m(j) 第1処理後画素値
|P1m(j)−P(j)| 第1差分値
(j) 第2処理前画素値
2m(j) 第2処理後画素値
|P2m(j)−P(j)| 第2差分値
i−1 第1撮影画像
第2撮影画像
i−1 第1重複部
第2重複部
第1撮影画像判定工程
11 第1重複部特定工程
12 第1処理前画素値取得工程
13 第1フィルタ処理工程
14 第1処理後画素値取得工程
15 第1差分値取得工程
16 第1差分値積算工程
21 第2重複部特定工程
22 第2処理前画素値取得工程
23 第2フィルタ処理工程
24 第2処理後画素値取得工程
25 第2差分値取得工程
26 第2差分値積算工程
特徴量算出工程
ボケ画像判定工程
[I-1] First integrated value [i] Second integrated value P 1 (j) First pre-processing pixel value P 1m (j) First post-processing pixel value | P 1m (j) −P 1 (j) | First difference value P 2 (j) second pre-processing pixel value P 2m (j) second post-processing pixel value | P 2m (j) −P 2 (j) | second difference value Q i−1 first Captured image Q i Second captured image R i-1 First overlap portion R i Second overlap portion S 0 First captured image determination step S 11 First overlap portion specifying step S 12 First pre-processing pixel value acquisition step S 13 first filtering step S 14 first processed pixel value obtaining step S 15 the first difference value acquiring step S 16 the first difference value integration process S 21 second overlap portion specifying step S 22 second processing previous pixel value acquisition step S 23 second filtering step S 24 second post-processing pixel value obtaining step S 25 second difference value acquiring step S 26 second difference value product Step S 3 feature quantity calculation step S 4 blurred image determination step

Claims (1)

被写体中の隣接する複数のエリアを連続撮影して取得した複数枚の画像からピンボケ画像を検出するボケ画像検出方法において、
一部が重複するように連続撮影された2枚の画像を“第1撮影画像”及び“第2撮影画像”とし、該第1撮影画像における該第2撮影画像との重複部を“第1重複部”とし、該第2撮影画像における該第1撮影画像との重複部を“第2重複部”とした場合に、
前記第1撮影画像がピンボケ画像か否かを目視により判定する第1撮影画像判定工程と、
前記第1撮影画像において前記第1重複部を特定する第1重複部特定工程と、
前記第1重複部における各画素の画素値(以下、“第1処理前画素値”とする)を取得する第1処理前画素値取得工程と、
前記第1重複部をフィルタ処理する第1フィルタ処理工程と、
該フィルタ処理された後の該第1重複部における各画素の画素値(以下、“第1処理後画素値”とする)を取得する第1処理後画素値取得工程と、
各画素について前記第1処理前画素値と前記第1処理後画素値との差分値の絶対値(以下、“第1差分値”とする)を取得する第1差分値取得工程と、
各画素の前記第1差分値を前記第1重複部について積算する第1差分値積算工程と、
前記第2撮影画像において前記第2重複部を特定する第2重複部特定工程と、
前記第2重複部における各画素の画素値(以下、“第2処理前画素値”とする)を取得する第2処理前画素値取得工程と、
前記第2重複部をフィルタ処理する第2フィルタ処理工程と、
該フィルタ処理された後の該第2重複部における各画素の画素値(以下、“第2処理後画素値”とする)を取得する第2処理後画素値取得工程と、
各画素について前記第2処理前画素値と前記第2処理後画素値との差分値の絶対値(以下、“第2差分値”とする)を取得する第2差分値取得工程と、
各画素の前記第2差分値を前記第2重複部について積算する第2差分値積算工程と、
前記第1差分値積算工程で得られた値(以下、“第1積算値”とする)と前記第2差分値積算工程で得られた値(以下、“第2積算値”とする)とから該第1積算値及び該第2積算値を元にした値(以下、“特徴量”とする)を算出する特徴量算出工程と、
該特徴量算出工程にて算出された前記特徴量に基づき前記第2撮影画像がボケ画像であるか否かを判定するボケ画像判定工程と、
を備えたことを特徴とするボケ画像検出方法。
In a blurred image detection method for detecting a blurred image from a plurality of images obtained by continuously shooting a plurality of adjacent areas in a subject,
Two images continuously photographed so as to partially overlap each other are referred to as a “first photographed image” and a “second photographed image”, and an overlapping portion of the first photographed image with the second photographed image is designated as “first photographed image”. In the case where the overlapping portion with the first captured image in the second captured image is the “second overlapping portion”,
A first captured image determination step for visually determining whether the first captured image is a defocused image;
A first overlapping portion specifying step for specifying the first overlapping portion in the first captured image;
A first pre-processing pixel value acquisition step of acquiring a pixel value of each pixel in the first overlapping portion (hereinafter referred to as “first pre-processing pixel value”);
A first filtering process for filtering the first overlapping portion;
A first post-processing pixel value acquisition step of acquiring a pixel value of each pixel in the first overlapping portion after the filter processing (hereinafter referred to as “first post-processing pixel value”);
A first difference value acquisition step of acquiring an absolute value of a difference value between the first pre-processing pixel value and the first post-processing pixel value (hereinafter referred to as “first difference value”) for each pixel;
A first difference value integrating step of integrating the first difference value of each pixel with respect to the first overlapping portion;
A second overlapping portion specifying step of specifying the second overlapping portion in the second captured image;
A second pre-processing pixel value acquisition step of acquiring a pixel value of each pixel in the second overlapping portion (hereinafter referred to as “second pre-processing pixel value”);
A second filter processing step of filtering the second overlapping portion;
A second post-processing pixel value acquisition step of acquiring a pixel value of each pixel in the second overlapping portion after the filter processing (hereinafter referred to as “second post-processing pixel value”);
A second difference value acquisition step of acquiring an absolute value (hereinafter referred to as “second difference value”) of a difference value between the pixel value before the second process and the pixel value after the second process for each pixel;
A second difference value integrating step of integrating the second difference value of each pixel with respect to the second overlapping portion;
The value obtained in the first difference value integrating step (hereinafter referred to as “first integrated value”) and the value obtained in the second difference value integrating step (hereinafter referred to as “second integrated value”) A feature amount calculating step for calculating a value based on the first integrated value and the second integrated value (hereinafter, referred to as “feature amount”);
A blurred image determination step of determining whether or not the second captured image is a blurred image based on the feature amount calculated in the feature amount calculation step;
A blurred image detection method comprising:
JP2012223920A 2012-10-09 2012-10-09 Blur image detection method Expired - Fee Related JP5896873B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2012223920A JP5896873B2 (en) 2012-10-09 2012-10-09 Blur image detection method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2012223920A JP5896873B2 (en) 2012-10-09 2012-10-09 Blur image detection method

Publications (2)

Publication Number Publication Date
JP2014077649A JP2014077649A (en) 2014-05-01
JP5896873B2 true JP5896873B2 (en) 2016-03-30

Family

ID=50783071

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2012223920A Expired - Fee Related JP5896873B2 (en) 2012-10-09 2012-10-09 Blur image detection method

Country Status (1)

Country Link
JP (1) JP5896873B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2015201260A (en) 2014-04-04 2015-11-12 矢崎総業株式会社 connector device

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH01291382A (en) * 1988-05-19 1989-11-22 Tokyo Electric Power Co Inc:The Image reading method
JP3577127B2 (en) * 1995-03-15 2004-10-13 オリンパス株式会社 Image handling apparatus and image composition method
JPH1169288A (en) * 1997-08-11 1999-03-09 Nikon Corp Image processing device
JP2007114843A (en) * 2005-10-18 2007-05-10 Denso Corp Pass / fail judgment device
JP2009053117A (en) * 2007-08-28 2009-03-12 Toyota Motor Corp Paint surface inspection device and paint surface inspection method
JP5429291B2 (en) * 2009-09-17 2014-02-26 富士通株式会社 Image processing apparatus and image processing method
JP5795850B2 (en) * 2010-11-02 2015-10-14 清水建設株式会社 Image data processing system

Also Published As

Publication number Publication date
JP2014077649A (en) 2014-05-01

Similar Documents

Publication Publication Date Title
JP5175528B2 (en) Tunnel lining crack inspection system
JP2010161744A5 (en)
JP2011041089A5 (en)
JP7230507B2 (en) Deposit detection device
KR101141811B1 (en) Image sensing apparatus and method
JP2015040941A5 (en)
JP6293505B2 (en) Tool inspection method and tool inspection apparatus
TWI583192B (en) Image processing device
JP2010020581A (en) Image synthesizing system eliminating unnecessary objects
JP2012058978A (en) Image processor, image processing method and program
JP5896873B2 (en) Blur image detection method
JP4751991B2 (en) Method and apparatus for detecting and discriminating defects inside a tube
JP6877233B2 (en) Bolt position detection method and system
JP2008199658A5 (en)
JP6801366B2 (en) Line width measurement method, line width measurement program, storage medium and information processing device
JP6002564B2 (en) Apparatus for measuring spheroidization rate of carbide in steel material, method for measuring spheroidization rate, and program
JP5490855B2 (en) Edge inspection device for plate substrate
JP4452793B2 (en) Illegal dumping point detection device, method, and program
JP6570219B2 (en) Object detection device
JP2016051236A (en) Image processing apparatus, image processing method, and inspection method using the same
JP2009250777A (en) Surface inspection device and surface inspection method
JP2017060133A5 (en)
JP2003346165A (en) Work boundary detection method
JP5853369B2 (en) Image processing apparatus, image processing method, and program
JP5015634B2 (en) Imaging system, imaging method and program

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20150605

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

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20160229

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20160301

R150 Certificate of patent or registration of utility model

Ref document number: 5896873

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

LAPS Cancellation because of no payment of annual fees