JP2014053035A - Image processing apparatus, image processing method, and image processing program - Google Patents

Image processing apparatus, image processing method, and image processing program Download PDF

Info

Publication number
JP2014053035A
JP2014053035A JP2013233277A JP2013233277A JP2014053035A JP 2014053035 A JP2014053035 A JP 2014053035A JP 2013233277 A JP2013233277 A JP 2013233277A JP 2013233277 A JP2013233277 A JP 2013233277A JP 2014053035 A JP2014053035 A JP 2014053035A
Authority
JP
Japan
Prior art keywords
image
pixel data
image processing
eigenvalue
coordinate value
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
JP2013233277A
Other languages
Japanese (ja)
Other versions
JP5605492B2 (en
Inventor
Toshimitsu Osajima
敏光 筬島
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.)
Dai Nippon Printing Co Ltd
Original Assignee
Dai Nippon Printing 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 Dai Nippon Printing Co Ltd filed Critical Dai Nippon Printing Co Ltd
Priority to JP2013233277A priority Critical patent/JP5605492B2/en
Publication of JP2014053035A publication Critical patent/JP2014053035A/en
Application granted granted Critical
Publication of JP5605492B2 publication Critical patent/JP5605492B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

PROBLEM TO BE SOLVED: To provide an apparatus for recognizing an object displayed in an image without imposing an excessive processing load.SOLUTION: A control unit 2 of an image processing apparatus S gives a coordinate value to pixel data composing an image, extracts luminance information of the pixel data corresponding to the coordinate value, calculates an eigenvalue having a value corresponding to a feature point as the image of the pixel data given the coordinate value on the basis of the extracted luminance information, and applies filtering processing to the coordinate value with the calculated eigenvalue equal to or smaller than a predetermined threshold using a predetermined directional filter.

Description

本発明は、画像に表示される物体を認識する装置及び方法等の技術分野に関する。   The present invention relates to a technical field such as an apparatus and method for recognizing an object displayed in an image.

画像に表示される物体を認識する画像処理技術は、様々な分野で利用されている。例えば、デジタルカメラ及びデジタルビデオカメラでは、かかる画像処理技術によって、手ブレ補正技術が実現されている。   Image processing technology for recognizing an object displayed in an image is used in various fields. For example, in a digital camera and a digital video camera, a camera shake correction technique is realized by such an image processing technique.

例えば、手ブレ補正機能を搭載したデジタルビデオカメラでは、撮影可能領域を一定のサイズに狭め、撮影の際にバッファメモリに画像を読み込む。そして、最初に撮影した画像の被写体を認識し、それ以降に撮影した画像の被写体とを比較し、その被写体の前記撮影可能領域からのはみ出し量を演算する。そして、当該被写体が、撮影可能領域の中心に来るように、当該撮影可能領域を自動的にずらして撮影し記録するようになっている。   For example, in a digital video camera equipped with a camera shake correction function, a shootable area is narrowed to a certain size, and an image is read into a buffer memory at the time of shooting. Then, the subject of the first photographed image is recognized, compared with the subject of the image photographed thereafter, and the amount of protrusion of the subject from the imageable area is calculated. The photographable area is automatically shifted and recorded so that the subject comes to the center of the photographable area.

上記画像認識技術において、最初に撮影した画像の被写体を認識し、それ以降に撮影した画像の被写体とを比較する処理は、一般的に追跡と呼ばれ、かかる追跡は、Lucas-Kanade法を用いてオプティカルフローを算出することにより実現されている。   In the above image recognition technology, the process of recognizing the subject of the first photographed image and comparing it with the subject of the image photographed thereafter is generally called tracking, and such tracking uses the Lucas-Kanade method. This is realized by calculating the optical flow.

オプティカルフローとは、連続する2つの画像における当該画像を構成する画素毎の動きベクトルをいう。すなわち、オプティカルフローは、画像の動きを表す画素毎の速度ベクトルで表され、かかる速度ベクトルを求めることにより、その動きを検出する。   The optical flow refers to a motion vector for each pixel constituting the image in two consecutive images. That is, the optical flow is represented by a velocity vector for each pixel representing the motion of the image, and the motion is detected by obtaining the velocity vector.

従って、オプティカルフローの算出を実現するためには、上記画像の特徴点の動き(例えば、上記画素又は速度ベクトル等)を正確かつ確実に抽出することが必要である。   Therefore, in order to realize the calculation of the optical flow, it is necessary to accurately and reliably extract the motion of the feature point of the image (for example, the pixel or the velocity vector).

特許文献1では、連続する2つの画像における上記特徴点の動きを得るために、特徴点の信頼度の低い領域と、信頼度の高い領域とに分け、信頼度の低い領域のオプティカルフローを、その4近傍又は8近傍の領域のオプティカルフローに対してそれらの信頼度に応じた重み付けを行い、当該重み付けを行った結果を用いて補完する発明が開示されている。   In Patent Document 1, in order to obtain the movement of the feature point in two consecutive images, the feature point is divided into a low-reliability region and a high-reliability region, and the optical flow of the low-reliability region is An invention is disclosed in which weighting according to the reliability is performed on the optical flows in the 4-neighborhood or 8-neighborhood region and complemented using the weighted result.

特開平11−339021号公報Japanese Patent Laid-Open No. 11-339021

しかし、かかる信頼度の算出は、CPU(処理装置)に対して過度な処理負担をかけることとなってしまう。また、近年、デジタルカメラ又はデジタルビデオカメラでは、記録媒体の大容量化に伴い、長時間の動画像が記録可能になっている。かかる動画像は、膨大な量の画像から構成されているため、当該動画像に対して上記オプティカルフローを算出するためには、当該動画像を構成する全ての画像に対して上記重み付けを行わなければならない。従って、特許文献1に記載された発明を適用すると、CPUに対する処理負担は更に増大してしまう。   However, such calculation of reliability places an excessive processing burden on the CPU (processing device). In recent years, digital cameras or digital video cameras have become capable of recording long-time moving images as the capacity of recording media increases. Since such a moving image is composed of an enormous amount of images, in order to calculate the optical flow for the moving image, the weighting must be performed on all the images constituting the moving image. I must. Therefore, when the invention described in Patent Document 1 is applied, the processing burden on the CPU further increases.

そこで、本発明は上記各問題点に鑑みてなされたもので、その目的の一例は、過度な処理負担を与えることなく画像に表示される物体を認識する装置及び方法等を提供することである。   Accordingly, the present invention has been made in view of the above problems, and an example of the object thereof is to provide an apparatus and a method for recognizing an object displayed on an image without giving an excessive processing burden. .

上記課題を解決するために、請求項1に記載の画像処理装置は、画像を構成する画素データに対して座標値を付与し、前記座標値に対応する前記画素データの輝度情報を抽出する抽出手段と、前記抽出された輝度情報に基づいて、前記座標値が付与された前記画素データの前記画像としての特徴点に対応した値を有する固有値を算出する算出手段と、前記算出された固有値が予め設定された閾値以下である前記座標値に対して、予め設定された方向フィルタを用いてフィルタリング処理を施すフィルタリング処理手段と、を備えることを特徴とする。   In order to solve the above problem, the image processing apparatus according to claim 1, wherein a coordinate value is assigned to pixel data constituting an image, and luminance information of the pixel data corresponding to the coordinate value is extracted. Means, a calculation means for calculating an eigenvalue having a value corresponding to a feature point as the image of the pixel data to which the coordinate value is assigned based on the extracted luminance information, and the calculated eigenvalue is Filtering processing means for applying a filtering process to the coordinate values that are equal to or less than a preset threshold value using a preset directional filter.

請求項2に記載の画像処理方法は、画像を構成する画素データに対して座標値を付与し、前記座標値に対応する前記画素データの輝度情報を抽出する抽出工程と、前記抽出された輝度情報に基づいて、前記座標値が付与された前記画素データの前記画像としての特徴点に対応した値を有する固有値を算出する算出工程と、前記算出された固有値が予め設定された閾値以下である前記座標値に対して、予め設定された方向フィルタを用いてフィルタリング処理を施すフィルタリング処理工程と、を有することを特徴とする。   The image processing method according to claim 2, wherein an extraction step of assigning a coordinate value to pixel data constituting the image and extracting luminance information of the pixel data corresponding to the coordinate value, and the extracted luminance Based on the information, a calculation step of calculating an eigenvalue having a value corresponding to the feature point as the image of the pixel data to which the coordinate value is given, and the calculated eigenvalue is equal to or less than a preset threshold value And a filtering process step of performing a filtering process on the coordinate value using a preset directional filter.

請求項3に記載の画像処理プログラムは、画像処理装置に含まれるコンピュータを、画像を構成する画素データに対して座標値を付与し、前記座標値に対応する前記画素データの輝度情報を抽出する抽出手段、前記抽出された輝度情報に基づいて、前記座標値が付与された前記画素データの前記画像としての特徴点に対応した値を有する固有値を算出する算出手段、及び、前記算出された固有値が予め設定された閾値以下である前記座標値に対して、予め設定された方向フィルタを用いてフィルタリング処理を施すフィルタリング処理手段、として機能させることを特徴とする。   The image processing program according to claim 3 provides a computer included in the image processing apparatus to give coordinate values to pixel data constituting an image and extract luminance information of the pixel data corresponding to the coordinate values. Extraction means, calculation means for calculating eigenvalues having values corresponding to feature points as the image of the pixel data to which the coordinate values are assigned based on the extracted luminance information, and the calculated eigenvalues It is made to function as a filtering processing means for performing a filtering process on the coordinate value having a value equal to or less than a preset threshold value using a preset direction filter.

これらの発明によれば、画像を構成する画素データの座標値が付与された画素データの画像としての特徴点に対応した値を有する固有値を算出し、その固有値が予め設定された閾値以下である座標値に対して、予め設定された方向フィルタを用いてフィルタリング処理を施す。   According to these inventions, an eigenvalue having a value corresponding to a feature point as an image of pixel data to which a coordinate value of pixel data constituting an image is given is calculated, and the eigenvalue is equal to or less than a preset threshold value. A filtering process is performed on the coordinate values using a preset direction filter.

従って、連続する2つの画像における特徴点の動きを得るために、特徴点の信頼度の低い領域に対して個別に重み付け等を行う等の計算処理を行う必要がなくなるため、CPUに対して過度な処理負担をかけることなく追跡等の画像処理を行うことができる。   Therefore, in order to obtain the motion of the feature points in two consecutive images, it is not necessary to perform calculation processing such as individually weighting the regions with low reliability of the feature points. Image processing such as tracking can be performed without imposing a heavy processing load.

以上のように、本発明によれば、画像処理装置は、画像を構成する画素データの座標値が付与された画素データの画像としての特徴点に対応した値を有する固有値を算出し、その固有値が予め設定された閾値以下である座標値に対して、予め設定された方向フィルタを用いてフィルタリング処理を施すため、連続する2つの画像における特徴点の動きを得るために、特徴点の信頼度の低い領域に対して個別に重み付け等を行う等の計算処理を行う必要がなくなる。従って、CPUに対して過度な処理負担をかけることなく追跡等の画像処理を行うことができる。   As described above, according to the present invention, the image processing apparatus calculates the eigenvalue having a value corresponding to the feature point as the image of the pixel data to which the coordinate value of the pixel data constituting the image is given, and the eigenvalue In order to obtain the motion of feature points in two consecutive images, since the filtering process is performed using a preset direction filter on the coordinate value for which is equal to or less than a preset threshold value, the reliability of the feature points is obtained. It is not necessary to perform a calculation process such as individually weighting a low area. Accordingly, image processing such as tracking can be performed without imposing an excessive processing burden on the CPU.

本実施形態にかかる画像処理装置の構成を示すブロック図である。It is a block diagram which shows the structure of the image processing apparatus concerning this embodiment. 本実施形態にかかる制御部2の動作を示すフローチャートである。It is a flowchart which shows operation | movement of the control part 2 concerning this embodiment. 本実施形態にかかる微分フィルタを施さず上記特徴点を抽出した場合の表示画面例を示す図である。It is a figure which shows the example of a display screen at the time of extracting the said feature point, without performing the differential filter concerning this embodiment. 本実施形態にかかる微分フィルタを施した後に上記特徴点を抽出した場合の表示画面例を示す図である。It is a figure which shows the example of a display screen at the time of extracting the said feature point after giving the differential filter concerning this embodiment. 本実施形態にかかる方向フィルタを施さず上記特徴点を抽出した場合の表示画面例を示す図である。It is a figure which shows the example of a display screen at the time of extracting the said feature point, without performing the direction filter concerning this embodiment. 本実施形態にかかる方向フィルタを施した後に上記特徴点を抽出した場合の表示画面例を示す図である。It is a figure which shows the example of a display screen at the time of extracting the said feature point after giving the direction filter concerning this embodiment.

まず、本願の最良の実施形態を添付図面に基いて説明する。なお、以下に説明する実施の形態は、画像処理装置に対して本願を適用した場合の実施形態である。   First, the best embodiment of the present application will be described with reference to the accompanying drawings. The embodiment described below is an embodiment when the present application is applied to an image processing apparatus.

まず、本実施形態にかかる画像処理装置の構成及び機能概要について、図1を用いて説明する。   First, the configuration and functional overview of the image processing apparatus according to the present embodiment will be described with reference to FIG.

図1は、本実施形態にかかる画像処理装置の構成を示すブロック図である。   FIG. 1 is a block diagram illustrating a configuration of an image processing apparatus according to the present embodiment.

画像処理装置Sは、光学系エンジン1、本願の抽出手段、算出手段、フィルタリング処理手段としての制御部2、出力データとしての画像を表示する表示部3等、とを備える。   The image processing apparatus S includes an optical system engine 1, an extraction unit, a calculation unit, a control unit 2 as a filtering processing unit, a display unit 3 that displays an image as output data, and the like.

光学系エンジン1は、図示しないレンズ、絞り機構、イメージセンサ(例えば、CCD(Charge Couple Semiconductor)イメージセンサやCMOS(Complementary Metal-Oxide Semiconductor)イメージセンサ等)、カラーフィルタ及びインターフェース部等、とを備える。   The optical system engine 1 includes a lens (not shown), an aperture mechanism, an image sensor (for example, a charge coupled semiconductor (CCD) image sensor or a complementary metal-oxide semiconductor (CMOS) image sensor), a color filter, an interface unit, and the like. .

具体的には、光学系エンジン1では、レンズから取り込まれた光が、絞り機構等によって調節され、イメージセンサ上に光学像として結像される。かかる光学像(静止画像及び動画像を含む)は、イメージセンサによって電気信号に変換され、インターフェース部へ出力される。   Specifically, in the optical system engine 1, the light taken in from the lens is adjusted by a diaphragm mechanism or the like and formed as an optical image on the image sensor. Such an optical image (including a still image and a moving image) is converted into an electrical signal by an image sensor and output to an interface unit.

光学系エンジン1には、さらに、インターフェース部へ入力される空間周波数を制限する図示しない光学的ローパスフィルタ、インターフェース部へ入力される可視光領域以外の長波長成分をカットするための図示しない赤外カットフィルタ等が備えられている。   The optical system engine 1 further includes an optical low-pass filter (not shown) for limiting the spatial frequency input to the interface unit, and an infrared (not shown) for cutting long wavelength components other than the visible light region input to the interface unit. A cut filter or the like is provided.

インターフェース部は、撮像された画像を、制御部2へ出力するためのインターフェースである。   The interface unit is an interface for outputting a captured image to the control unit 2.

具体的には、インターフェース部は、撮像された画像に対して、当該画像を構成する画素を示す画素データと、前記画素に対応する色データから構成される入力データとして、制御部2へ出力する。   Specifically, the interface unit outputs the captured image to the control unit 2 as input data including pixel data indicating pixels constituting the image and color data corresponding to the pixels. .

制御部2は、前記入力データに基いて画像処理を行い、二次元的に視認可能な平面画像及び動画像を示す出力データを生成するための処理回路であり、例えば、図示しないCPU、RAM及びROMとを備えて構成される。   The control unit 2 is a processing circuit for performing image processing based on the input data and generating output data indicating a planar image and a moving image that can be viewed two-dimensionally. And a ROM.

また制御部2は、例えば手ブレ補正機能を実現するために、かかる画像処理の一例として、追跡を行う。   The control unit 2 performs tracking as an example of such image processing in order to realize a camera shake correction function, for example.

手ブレ補正機能を搭載した画像処理装置では、撮影可能領域を一定のサイズに狭め、撮影の際にバッファメモリに画像を読み込む。そして、最初に撮影した画像の被写体を認識し、それ以降に撮影した画像の被写体とを比較し、その被写体の前記撮影可能領域からのはみ出し量を演算する。そして、当該被写体が、撮影可能領域の中心に来るように、当該撮影可能領域を自動的にずらして撮影し記録するようになっている。   In an image processing apparatus equipped with a camera shake correction function, a shootable area is narrowed to a certain size, and an image is read into a buffer memory at the time of shooting. Then, the subject of the first photographed image is recognized, compared with the subject of the image photographed thereafter, and the amount of protrusion of the subject from the imageable area is calculated. The photographable area is automatically shifted and recorded so that the subject comes to the center of the photographable area.

上記画像認識技術において、最初に撮影した画像の被写体を認識し、それ以降に撮影した画像の被写体とを比較する処理は、一般的に追跡と呼ばれ、かかる追跡は、Lucas-Kanade法を用いてオプティカルフローを算出することにより実現されている。   In the above image recognition technology, the process of recognizing the subject of the first photographed image and comparing it with the subject of the image photographed thereafter is generally called tracking, and such tracking uses the Lucas-Kanade method. This is realized by calculating the optical flow.

ここで、上記追跡及びLucas-Kanade法は、公知の技術であるため詳しい説明は省略するが、オプティカルフローとは、連続する2つの画像における当該画像を構成する画素毎の動きベクトルをいう。すなわち、オプティカルフローは、画像の動きを表す画素毎の速度ベクトルで表され、かかる速度ベクトルを求めることによりがその動きを検出する。   Here, the tracking and the Lucas-Kanade method are well-known techniques, and detailed description thereof is omitted. However, the optical flow refers to a motion vector for each pixel constituting the image in two consecutive images. That is, the optical flow is represented by a velocity vector for each pixel representing the motion of the image, and the motion is detected by obtaining the velocity vector.

従って、正確なオプティカルフローを算出するためには、制御部2は、上記画素データ等、上記画像の特徴点を正確かつ確実に抽出することが必要である。   Therefore, in order to calculate an accurate optical flow, the control unit 2 needs to accurately and reliably extract feature points of the image such as the pixel data.

次に、本実施形態にかかる制御部2の動作について、図2〜4を用いて説明する。   Next, operation | movement of the control part 2 concerning this embodiment is demonstrated using FIGS.

上述したように、制御部2は、Lucas-Kanade法を用いてオプティカルフローを算出し追跡を行う。そして、制御部2は、オプティカルフローを算出するに当たって、画像の特徴点を抽出する。   As described above, the control unit 2 calculates and tracks an optical flow using the Lucas-Kanade method. And the control part 2 extracts the feature point of an image in calculating an optical flow.

ここで、一般的に、画像がなだらかな輝度勾配を示す場合(例えば、画像に示される対象が曇り空や車のダッシュボード等のように、かかる対象が示す輝度の変化が少なく一定の色素を有するものである場合)には、画像処理装置の制御部等が、上記特徴点の抽出を行うことは困難であるとの問題があった。   Here, in general, when an image shows a gentle luminance gradient (for example, the object shown in the image has a certain pigment with little change in luminance indicated by the object, such as a cloudy sky or a car dashboard) If it is, it is difficult for the control unit or the like of the image processing apparatus to extract the feature points.

そこで、制御部2は、上記特徴点の抽出に際して、画像を構成する画素データに対して座標値を付与し、前記座標値に対応する前記画素データの輝度情報を抽出(一例として、グレースケール化)し、前記輝度情報が示す輝度の大きさである輝度勾配の一例としての固有値を算出し、前記固有値が予め設定された閾値以下である前記座標値に対して、予め設定されたフィルタを用いてフィルタリング処理を施すようになっている。   Therefore, when extracting the feature points, the control unit 2 assigns coordinate values to the pixel data constituting the image, and extracts luminance information of the pixel data corresponding to the coordinate values (for example, grayscale conversion). And eigenvalues as an example of the luminance gradient that is the magnitude of the luminance indicated by the luminance information are calculated, and a preset filter is used for the coordinate values for which the eigenvalue is less than or equal to a preset threshold value. Filtering processing.

以下に、制御部2の上記動作を詳細に説明する。   Below, the said operation | movement of the control part 2 is demonstrated in detail.

図2は、本実施形態にかかる制御部2の動作を示すフローチャートである。   FIG. 2 is a flowchart showing the operation of the control unit 2 according to the present embodiment.

まず、制御部2は、画像処理の対象である画像を構成する画素データに対して座標値を付与する。   First, the control unit 2 assigns coordinate values to pixel data constituting an image that is an object of image processing.

例えば、制御部2が、ある画像を構成する画素データに対する座標値として、M行×N行の座標値を付与したとする。   For example, it is assumed that the control unit 2 assigns a coordinate value of M rows × N rows as a coordinate value for pixel data constituting a certain image.

そして、制御部2は、前記座標値に対応する前記画素データの輝度情報を抽出すべく、かかる座標値に対してグレースケール化を行う(ステップS1)。   Then, the control unit 2 performs gray scale conversion on the coordinate values so as to extract luminance information of the pixel data corresponding to the coordinate values (step S1).

上記グレースケール化は公知の技術であるため詳しい説明は省略するが、当該グレースケール化は、任意の画素データを、明度のみの諧調表示(即ち、輝度の大きさである輝度情報)に変換するための処理であり、変換後の画素データは、輝度情報をもつこととなる。   The gray scale conversion is a known technique, and thus detailed description thereof is omitted. However, the gray scale conversion converts arbitrary pixel data into a gradation display of only brightness (that is, luminance information that is the magnitude of luminance). The pixel data after conversion has luminance information.

次に、制御部2は、上記画像の固有値を算出する(ステップS2)。   Next, the control unit 2 calculates an eigenvalue of the image (step S2).

上記画像における輝度勾配(隣り合う上記画素データ間の輝度の差をいい、濃度勾配ともいう。)がなだらかな(少ない)箇所では、上記特徴点を抽出することが困難であり、かつ、上記固有値の値は小さくなるという特質を有する。一方、上記輝度勾配の変化量が大きい場合には、制御部2は、上記特徴点を良好に抽出することができるという特質を有する。   It is difficult to extract the feature point at a place where the luminance gradient in the image (the luminance difference between adjacent pixel data, also referred to as a density gradient) is gentle (small), and the eigenvalue The value of has the characteristic of becoming smaller. On the other hand, when the amount of change in the luminance gradient is large, the control unit 2 has a characteristic that the feature points can be extracted satisfactorily.

従って、制御部2が上記特徴点の抽出を行う場合に、対象となる画素データについて固有値を算出することにより、制御部2は、かかる画素データについて上記特徴点を抽出することが困難であるか否かを予め判断することができる。   Therefore, when the control unit 2 extracts the feature points, is it difficult for the control unit 2 to extract the feature points for the pixel data by calculating eigenvalues for the target pixel data? Whether or not can be determined in advance.

なお、上記特徴点を抽出することが困難である点は、正確なオプティカルフローが算出される可能性が低いことから、信頼度が低いと概念化することもできる。   Note that the point where it is difficult to extract the feature points can be conceptualized as having low reliability because the possibility that an accurate optical flow is calculated is low.

従って、制御部2は、上記画像における輝度勾配として上記固有値を算出し、上記特徴点を抽出することが困難であるか否かを予め判断する。   Therefore, the control unit 2 calculates the eigenvalue as a luminance gradient in the image and determines in advance whether it is difficult to extract the feature point.

そこで、制御部2は、固有値が予め設定された閾値以下であるか否かを判断する(ステップS3)。   Therefore, the control unit 2 determines whether or not the eigenvalue is less than or equal to a preset threshold value (step S3).

以下に、上記固有値としての固有値Gの算出及び固有値が予め設定された閾値以下であるか否かの判断について、説明する。   Hereinafter, calculation of the eigenvalue G as the eigenvalue and determination of whether or not the eigenvalue is equal to or less than a preset threshold will be described.

まず、上記画像の画像領域ωに対する微分値をg(p)とすると、固有値Gは、式(1)で表される。   First, when the differential value of the image with respect to the image region ω is g (p), the eigenvalue G is expressed by Expression (1).

そして、上記画像に対して、式(2)に示すような2×2の座標値が付与された場合を例に採る。   Then, a case where a 2 × 2 coordinate value as shown in Expression (2) is given to the image is taken as an example.

上記画像の微分値の算出結果は、式(3)に示される値となる。   The calculation result of the differential value of the image is a value represented by Expression (3).

そして、式(3)の値に基いて、固有値Gを算出すると、式(4)に示される値となる。   Then, when the eigenvalue G is calculated based on the value of the formula (3), the value shown in the formula (4) is obtained.

式(4)より、固有値Gの値は0であるため、低いことが分かる。従って、制御部2は、式(2)に示される座標値が付与された上記画像を構成する画素データについて、上記特徴点を抽出することが困難である(信頼度が低い)ことが分かる。   From equation (4), it can be seen that the value of the eigenvalue G is 0 and is low. Therefore, it can be understood that the control unit 2 has difficulty in extracting the feature points from the pixel data constituting the image to which the coordinate values represented by the equation (2) are given (the reliability is low).

一方、上記画像に対して、式(5)に示すような2×2の座標値が付与された場合を例に採る。   On the other hand, a case where a 2 × 2 coordinate value as shown in Expression (5) is given to the image is taken as an example.

上記画像の微分値の算出結果は、式(6)に示される値となる。   The calculation result of the differential value of the image is a value represented by Expression (6).

そして、式(6)の値に基いて、固有値Gを算出すると、式(7)に示される値となる。   Then, when the eigenvalue G is calculated based on the value of the equation (6), the value shown in the equation (7) is obtained.

式(7)より、固有値Gの値は2であるため、高いことが分かる。従って、制御部2は、式(5)に示される座標値が付与された上記画像を構成する画素データについて、上記特徴点を良好に抽出することができる(信頼度が高い)ことが分かる。   From equation (7), it can be seen that the value of the eigenvalue G is 2 and is high. Therefore, it can be seen that the control unit 2 can satisfactorily extract the feature points (high reliability) for the pixel data constituting the image to which the coordinate values shown in Expression (5) are given.

なお、上述した例では、固有値Gの大きさの判断について、固有値Gの値が0の場合を低い、2の場合を高いとしたが、これに限定されるものではない。   In the above-described example, regarding the determination of the size of the eigenvalue G, the case where the value of the eigenvalue G is 0 is low and the case of 2 is high, but the present invention is not limited to this.

即ち、固有値Gの大きさを判断するために、予め閾値を設定し、かかる閾値を基準として当該判断を行う。換言すれば、この閾値は、任意の値と採ることができる。   That is, in order to determine the magnitude of the eigenvalue G, a threshold value is set in advance, and the determination is performed based on the threshold value. In other words, this threshold value can be taken as an arbitrary value.

図2の説明に戻り、制御部2は、固有値が予め設定された閾値以下であった場合には(ステップS3:YES)、予め設定されたフィルタを用いてフィルタリング処理を施す(ステップS4)。   Returning to the description of FIG. 2, when the eigenvalue is equal to or less than a preset threshold value (step S3: YES), the control unit 2 performs a filtering process using a preset filter (step S4).

かかるフィルタリング処理は、上記特徴点を抽出することが困難である(信頼度が低い)領域について、一様のエッジを検出するために行われる処理であり、例えば、微分フィルタ、又は方向フィルタが適用される。   Such filtering processing is processing performed to detect a uniform edge in a region where it is difficult to extract the feature points (low reliability). For example, a differential filter or a directional filter is applied. Is done.

まず、フィルタリング処理の一例としての微分フィルタについて以下に説明する。   First, a differential filter as an example of filtering processing will be described below.

微分フィルタの一例としては、例えばU行×V列を持つフィルタWがあった場合に、画像を構成する画素データの全ての画素データ(ピクセル)をf(i,j)とすると、前記画素データに対して、式(8)を適用することをいい、適用された結果は、g(i,j)で表される。   As an example of the differential filter, if there is a filter W having U rows × V columns, for example, if all the pixel data (pixels) of the pixel data constituting the image is f (i, j), the pixel data In contrast, the expression (8) is applied, and the applied result is represented by g (i, j).

ここで、微分フィルタを施さず上記特徴点を抽出した結果と、微分フィルタを施した後上記特徴点を抽出した結果について、図3及び図4を比較しながら説明する。   Here, the result of extracting the feature points without applying the differential filter and the result of extracting the feature points after applying the differential filter will be described with reference to FIGS. 3 and 4.

先ず、図3及び図4を比較する前に、各図について説明する。   First, before comparing FIG. 3 and FIG. 4, each figure will be described.

図3は、本実施形態にかかる微分フィルタを施さず上記特徴点を抽出した場合の表示画面例を示す図である。   FIG. 3 is a diagram illustrating an example of a display screen when the feature points are extracted without performing the differential filter according to the present embodiment.

図3(A)は、微分フィルタを施さず上記特徴点を抽出する前の鉄板の表面を撮像した画像を示しており、当該鉄板は単色かつ模様が無いため、なだらかな輝度勾配を示すことが分かる。   FIG. 3A shows an image obtained by capturing the surface of the iron plate before extracting the feature points without applying the differential filter. Since the iron plate is monochromatic and has no pattern, it may show a gentle luminance gradient. I understand.

図3(B)は、微分フィルタを施さず上記特徴点を抽出した場合の鉄板の表面を撮像した画像を示している。図3(B)に示す白点が、抽出された上記特徴点である。   FIG. 3B shows an image obtained by imaging the surface of the iron plate when the feature points are extracted without applying a differential filter. The white points shown in FIG. 3B are the extracted feature points.

図4は、本実施形態にかかる微分フィルタを施した後に上記特徴点を抽出した場合の表示画面例を示す図である。   FIG. 4 is a diagram showing an example of a display screen when the feature points are extracted after performing the differential filter according to the present embodiment.

図4(A)は、微分フィルタを施した後の鉄板の表面を撮像した画像を示しており、上記鉄板に上記微分フィルタを施した結果、当該鉄板の上記輝度勾配が明瞭に示されている。   FIG. 4A shows an image obtained by imaging the surface of the iron plate after being subjected to the differential filter. As a result of applying the differential filter to the iron plate, the brightness gradient of the iron plate is clearly shown. .

図4(B)は、微分フィルタを施した後に上記特徴点を抽出した場合の鉄板の表面を撮像した画像を示している。図3(B)と同様に、図4(B)に示す白点が、抽出された上記特徴点である。   FIG. 4B shows an image obtained by imaging the surface of the iron plate when the feature points are extracted after applying the differential filter. Similar to FIG. 3B, the white point shown in FIG. 4B is the extracted feature point.

ここで、図3(B)と図4(B)に示される白点の個数を比較すると、図4(B)に示される白点の個数の方が多いことがわかる。これは、同じ対象物を撮像した画像において、微分フィルタを施した画像の方が、より多くの特徴点を抽出することができることを示している。   Here, comparing the number of white spots shown in FIGS. 3B and 4B, it can be seen that the number of white spots shown in FIG. 4B is larger. This indicates that, in images obtained by imaging the same object, more feature points can be extracted in the image subjected to the differential filter.

次に、フィルタリング処理の他の例として、方向フィルタ(二次元フィルタリング処理)について説明する。   Next, a direction filter (two-dimensional filtering process) will be described as another example of the filtering process.

方向フィルタは、所定のフィルタ係数を用いて、画像を構成する全ての画素について、例えば、水平、垂直、斜め方向に前記フィルタを掛ける処理をいい、かかるフィルタは例えば、式(9)のように設定することができる。   The directional filter is a process of applying the filter in the horizontal, vertical, and diagonal directions, for example, with respect to all pixels constituting the image using a predetermined filter coefficient. Can be set.

ここで、方向フィルタを施さず上記特徴点を抽出した結果と、微分フィルタを施した後上記特徴点を抽出した結果について、図5及び図6を比較しながら説明する。   Here, the result of extracting the feature points without applying the directional filter and the result of extracting the feature points after applying the differential filter will be described by comparing FIGS. 5 and 6.

先ず、図5及び図6を比較する前に、各図について説明する。   First, before comparing FIG. 5 and FIG. 6, each figure will be described.

図5は、本実施形態にかかる方向フィルタを施さず上記特徴点を抽出した場合の表示画面例を示す図である。   FIG. 5 is a diagram illustrating an example of a display screen when the feature points are extracted without applying the direction filter according to the present embodiment.

図5(A)は、方向フィルタを施さず上記特徴点を抽出する前の自動車の後部を撮像した画像を示している。自動車の後部は、単色かつ模様が略無いため、なだらかな輝度勾配を示すことが分かる。   FIG. 5A shows an image obtained by capturing the rear part of the automobile before the feature point is extracted without applying the direction filter. It can be seen that the rear part of the automobile has a gentle brightness gradient because it is monochromatic and has almost no pattern.

図5(B)は、方向フィルタを施さず上記特徴点を抽出した場合の自動車の後部を撮像した画像を示している。図5(B)に示す白点が、抽出された上記特徴点である。   FIG. 5B shows an image obtained by capturing the rear portion of the automobile when the feature points are extracted without applying the direction filter. The white points shown in FIG. 5B are the extracted feature points.

図6は、本実施形態にかかる方向フィルタを施した後に上記特徴点を抽出した場合の表示画面例を示す図である。   FIG. 6 is a diagram illustrating an example of a display screen when the feature points are extracted after applying the direction filter according to the present embodiment.

図6(A)は、方向フィルタを施した後の自動車の後部を撮像した画像を示しており、上記自動車の後部に上記方向フィルタを施した結果、当該自動車の後部の上記輝度勾配が明瞭に示されている。   FIG. 6A shows an image obtained by imaging the rear part of the automobile after the direction filter is applied. As a result of applying the direction filter to the rear part of the automobile, the brightness gradient at the rear part of the automobile is clearly shown. It is shown.

図6(B)は、方向フィルタを施した後に上記特徴点を抽出した場合の自動車の後部を撮像した画像を示している。図5(B)と同様に、図6(B)に示す白点が、抽出された上記特徴点である。   FIG. 6B shows an image obtained by capturing the rear part of the automobile when the feature points are extracted after applying the direction filter. Similar to FIG. 5B, the white point shown in FIG. 6B is the extracted feature point.

ここで、図5(B)と図6(B)に示される白点の個数を比較すると、図6(B)に示される白点の個数の方が多いことがわかる。これは、同じ対象物を撮像した画像において、方向フィルタを施した画像の方が、より多くの特徴点を抽出することができることを示している。   Here, comparing the number of white spots shown in FIG. 5B and FIG. 6B, it can be seen that the number of white spots shown in FIG. 6B is larger. This indicates that, in images obtained by imaging the same object, more feature points can be extracted in the direction-filtered image.

また、図6(A)の枠11は、なだらかな輝度勾配を示す個所に方向フィルタを施した後の表示結果を示している。そして、図6(B)の枠12は、枠11と同一の個所について、上記特徴点を抽出した結果を示している。このように、なだらかな輝度勾配を示す個所であっても、方向フィルタを施すことによって、上記特徴点が明瞭に抽出することができる。   A frame 11 in FIG. 6A shows a display result after the direction filter is applied to a portion showing a gentle luminance gradient. A frame 12 in FIG. 6B shows the result of extracting the feature points at the same location as the frame 11. As described above, the feature point can be clearly extracted by applying the direction filter even in a portion showing a gentle luminance gradient.

上記フィルタリング処理は、画面全体に対して実施するわけではなく、信頼度が低いと判定された箇所についてだけ局所的に実施する。そのため、輝度勾配が少ない領域に対しても安定的に特徴データを取得し追跡できる。   The filtering process is not performed on the entire screen, but is performed locally only on portions determined to have low reliability. Therefore, it is possible to stably acquire and track feature data even in a region where the luminance gradient is small.

また、上記微分フィルタ及び方向フィルタは、予め設定された係数であるため、上記特徴点の抽出に当たって、制御部2は、計算処理を行う必要がない。従って、制御部2に対して過度な処理負担をかけることなく追跡等の画像処理を行うことができる。   Further, since the differential filter and the directional filter are coefficients set in advance, the control unit 2 does not need to perform a calculation process in extracting the feature points. Therefore, image processing such as tracking can be performed without imposing an excessive processing load on the control unit 2.

そして、制御部2は、かかるフィルタリング処理によって画像の特徴点を抽出し、オプティカルフロー等を算出する。   And the control part 2 extracts the feature point of an image by this filtering process, and calculates an optical flow etc.

図2の説明に戻り、制御部2は、固有値が予め設定された閾値以下でなかった場合には(ステップS3:NO)、処理を終了する。   Returning to the description of FIG. 2, the control unit 2 ends the process when the eigenvalue is not less than or equal to the preset threshold value (step S <b> 3: NO).

以上説明したように、本実施形態においては、制御部2は、画像を構成する画素データに対して座標値を付与し、前記座標値に対応する前記画素データの輝度情報を抽出し、前記輝度情報が示す輝度の大きさである輝度勾配としての固有値を算出し、前記固有値が予め設定された閾値以下である前記座標値に対して、フィルタリング処理を施す。   As described above, in the present embodiment, the control unit 2 assigns coordinate values to the pixel data constituting the image, extracts the luminance information of the pixel data corresponding to the coordinate values, and the luminance A characteristic value as a luminance gradient, which is the magnitude of the luminance indicated by the information, is calculated, and a filtering process is performed on the coordinate value where the characteristic value is equal to or less than a preset threshold value.

従って、連続する2つの画像における特徴点の動きを得るために、特徴点の信頼度の低い領域に対して個別に重み付け等を行う等の計算処理を行う必要がなくなるため、CPUに対して過度な処理負担をかけることなく追跡等の画像処理を行うことができる。   Therefore, in order to obtain the motion of the feature points in two consecutive images, it is not necessary to perform calculation processing such as individually weighting the regions with low reliability of the feature points. Image processing such as tracking can be performed without imposing a heavy processing load.

また、上記輝度勾配が少ない領域である白い壁を背景にした場合でも手ブレを検出することが可能になる。加えて、揺れる自動車の動きを取得してブレ補正などに応用できる。自動車のような工業製品では、プレーンなところを含む画像(輝度勾配が少ない領域を含む画像)が多いので、特徴が少ないところを含む画像になる場合が多い。従って、自動車の一部を画像処理することで特徴点を看過することなく追跡が可能となる。   In addition, it is possible to detect camera shake even when a white wall, which is an area with a small luminance gradient, is used as a background. In addition, it can be applied to shake correction by acquiring the movement of a car that shakes. In an industrial product such as an automobile, there are many images including a plane (an image including an area having a small luminance gradient). Therefore, it is possible to perform tracking without overlooking the feature point by performing image processing on a part of the automobile.

なお、上記実施形態においては、本願を画像表示装置に対して適用した場合の例を示したが、その他にも例えば、デジタルビデオカメラ、デジタルカメラ、パーソナルコンピュータ又は家庭用等の電子機器、監視カメラ、車載用カメラ又はWEBカメラ等に対しても適用可能である。   In the above-described embodiment, an example in which the present application is applied to an image display device has been described. However, for example, a digital video camera, a digital camera, a personal computer, a household electronic device, a surveillance camera, and the like. It can also be applied to an in-vehicle camera or a WEB camera.

1 光学系エンジン
2 制御部
3 表示部
S 画像処理装置
DESCRIPTION OF SYMBOLS 1 Optical system engine 2 Control part 3 Display part S Image processing apparatus

Claims (3)

画像を構成する画素データに対して座標値を付与し、前記座標値に対応する前記画素データの輝度情報を抽出する抽出手段と、
前記抽出された輝度情報に基づいて、前記座標値が付与された前記画素データの前記画像としての特徴点に対応した値を有する固有値を算出する算出手段と、
前記算出された固有値が予め設定された閾値以下である前記座標値に対して、予め設定された方向フィルタを用いてフィルタリング処理を施すフィルタリング処理手段と、
を備えることを特徴とする画像処理装置。
An extraction unit that assigns coordinate values to pixel data constituting an image and extracts luminance information of the pixel data corresponding to the coordinate values;
A calculation means for calculating an eigenvalue having a value corresponding to a feature point as the image of the pixel data to which the coordinate value is given based on the extracted luminance information;
Filtering processing means for performing a filtering process using a preset direction filter on the coordinate value whose calculated eigenvalue is equal to or less than a preset threshold;
An image processing apparatus comprising:
画像を構成する画素データに対して座標値を付与し、前記座標値に対応する前記画素データの輝度情報を抽出する抽出工程と、
前記抽出された輝度情報に基づいて、前記座標値が付与された前記画素データの前記画像としての特徴点に対応した値を有する固有値を算出する算出工程と、
前記算出された固有値が予め設定された閾値以下である前記座標値に対して、予め設定された方向フィルタを用いてフィルタリング処理を施すフィルタリング処理工程と、
を有することを特徴とする画像処理方法。
An extraction step of assigning coordinate values to pixel data constituting the image and extracting luminance information of the pixel data corresponding to the coordinate values;
A calculation step of calculating an eigenvalue having a value corresponding to a feature point as the image of the pixel data to which the coordinate value is given based on the extracted luminance information;
A filtering process step of performing a filtering process using a preset directional filter on the coordinate value whose calculated eigenvalue is equal to or less than a preset threshold;
An image processing method comprising:
画像処理装置に含まれるコンピュータを、
画像を構成する画素データに対して座標値を付与し、前記座標値に対応する前記画素データの輝度情報を抽出する抽出手段、
前記抽出された輝度情報に基づいて、前記座標値が付与された前記画素データの前記画像としての特徴点に対応した値を有する固有値を算出する算出手段、及び、
前記算出された固有値が予め設定された閾値以下である前記座標値に対して、予め設定された方向フィルタを用いてフィルタリング処理を施すフィルタリング処理手段、
として機能させることを特徴とする画像処理プログラム。
A computer included in the image processing apparatus;
An extracting unit that assigns a coordinate value to pixel data constituting an image and extracts luminance information of the pixel data corresponding to the coordinate value;
A calculation means for calculating an eigenvalue having a value corresponding to a feature point as the image of the pixel data to which the coordinate value is given based on the extracted luminance information; and
Filtering processing means for applying a filtering process to the coordinate value whose calculated eigenvalue is equal to or less than a preset threshold value using a preset direction filter;
An image processing program that functions as an image processing program.
JP2013233277A 2013-11-11 2013-11-11 Image processing apparatus, image processing method, and image processing program Expired - Fee Related JP5605492B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2013233277A JP5605492B2 (en) 2013-11-11 2013-11-11 Image processing apparatus, image processing method, and image processing program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2013233277A JP5605492B2 (en) 2013-11-11 2013-11-11 Image processing apparatus, image processing method, and image processing program

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
JP2009212036A Division JP5446641B2 (en) 2009-09-14 2009-09-14 Image processing apparatus, image processing method, and image processing program

Publications (2)

Publication Number Publication Date
JP2014053035A true JP2014053035A (en) 2014-03-20
JP5605492B2 JP5605492B2 (en) 2014-10-15

Family

ID=50611396

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2013233277A Expired - Fee Related JP5605492B2 (en) 2013-11-11 2013-11-11 Image processing apparatus, image processing method, and image processing program

Country Status (1)

Country Link
JP (1) JP5605492B2 (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH11339021A (en) * 1998-05-21 1999-12-10 Sanyo Electric Co Ltd Optical flow estimating method and image compositing method
JP2009069996A (en) * 2007-09-11 2009-04-02 Sony Corp Image processing device and image processing method, recognition device and recognition method, and program

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH11339021A (en) * 1998-05-21 1999-12-10 Sanyo Electric Co Ltd Optical flow estimating method and image compositing method
JP2009069996A (en) * 2007-09-11 2009-04-02 Sony Corp Image processing device and image processing method, recognition device and recognition method, and program

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
CSNG200500738003; 筒口  拳、外2名: '"階調差あるステレオ画像間の対応点計算に関する検討"' 電子情報通信学会技術研究報告 Vol.104, No.70, 20040513, p.13-16, 社団法人電子情報通信学会 *
JPN6014031350; 筒口  拳、外2名: '"階調差あるステレオ画像間の対応点計算に関する検討"' 電子情報通信学会技術研究報告 Vol.104, No.70, 20040513, p.13-16, 社団法人電子情報通信学会 *

Also Published As

Publication number Publication date
JP5605492B2 (en) 2014-10-15

Similar Documents

Publication Publication Date Title
JP5809925B2 (en) Image processing apparatus, image display apparatus and imaging apparatus including the same, image processing method, and image processing program
JP4735742B2 (en) Imaging apparatus, strobe image generation method, and program
US8254630B2 (en) Subject extracting method and device by eliminating a background region using binary masks
JP6157242B2 (en) Image processing apparatus and image processing method
JP6594180B2 (en) IMAGING DEVICE, IMAGING DEVICE CONTROL METHOD, AND PROGRAM
JP6577703B2 (en) Image processing apparatus, image processing method, program, and storage medium
JP6935247B2 (en) Image processing equipment, image processing methods, and programs
JP2010118862A (en) Image processor, imaging apparatus and image processing method
JP5909147B2 (en) IMAGING DEVICE, IMAGING DEVICE CONTROL METHOD, AND PROGRAM
JP6656035B2 (en) Image processing apparatus, imaging apparatus, and control method for image processing apparatus
JP2010114752A (en) Device and method of imaging and program
KR102069269B1 (en) Apparatus and method for stabilizing image
JP5173549B2 (en) Image processing apparatus and imaging apparatus
JP6282133B2 (en) Imaging device, control method thereof, and control program
JP5446641B2 (en) Image processing apparatus, image processing method, and image processing program
JP5539565B2 (en) Imaging apparatus and subject tracking method
JP5605492B2 (en) Image processing apparatus, image processing method, and image processing program
JP6063680B2 (en) Image generation apparatus, image generation method, imaging apparatus, and imaging method
JP5891751B2 (en) Inter-image difference device and inter-image difference method
JP2014153517A (en) Image processing device, image processing method, program, and storage medium
JP5247419B2 (en) Imaging apparatus and subject tracking method
KR101989868B1 (en) Electronic device and controlling method thereof
JP6314281B1 (en) Image processing method and foreground region acquisition method
JP6044123B2 (en) Subject tracking device, electronic camera, and subject tracking program
US10885348B2 (en) Information processing device, information processing method, and storage medium

Legal Events

Date Code Title Description
A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20140718

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20140811

R150 Certificate of patent or registration of utility model

Ref document number: 5605492

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

LAPS Cancellation because of no payment of annual fees