JP6763826B2 - Image generator, image generation method and program - Google Patents
Image generator, image generation method and program Download PDFInfo
- Publication number
- JP6763826B2 JP6763826B2 JP2017117081A JP2017117081A JP6763826B2 JP 6763826 B2 JP6763826 B2 JP 6763826B2 JP 2017117081 A JP2017117081 A JP 2017117081A JP 2017117081 A JP2017117081 A JP 2017117081A JP 6763826 B2 JP6763826 B2 JP 6763826B2
- Authority
- JP
- Japan
- Prior art keywords
- pixel
- value
- target
- corresponding position
- frame
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Images
Landscapes
- Television Systems (AREA)
Description
本発明は、画像生成装置、画像生成方法及びプログラムに関する。 The present invention relates to an image generator, an image generation method and a program.
現行の映像撮像機器は、時間方向の画質を開口時間により制御する。開口時間を短くすれば、動きボケが低減する。一方、開口時間の短縮により受光量が減少するため、画像に重畳雑音が増加する。このように、動きボケの低減と重畳雑音の低減とはトレードオフの関係にある。つまり、雑音重畳を回避したい場合は、動きボケを許容し、一定量の開口時間を確保する必要がある。一方、動きボケを回避したい場合は、雑音重畳を許容し、開口時間を制限する必要がある。 Current video imaging equipment controls the image quality in the time direction by the aperture time. If the opening time is shortened, motion blur is reduced. On the other hand, since the amount of received light is reduced by shortening the opening time, superimposed noise is increased in the image. As described above, there is a trade-off relationship between the reduction of motion blur and the reduction of superimposed noise. That is, if it is desired to avoid noise superposition, it is necessary to allow motion blur and secure a certain amount of opening time. On the other hand, if it is desired to avoid motion blur, it is necessary to allow noise superposition and limit the opening time.
昨今の半導体技術の進歩を受け、映像撮像機器の映像取得速度が大きく向上している。現状、高速度カメラにより取得された高フレームレート映像の用途は、映像再生時の高画質化と映像解析の高精度化とに分類される。前者の高画質化は、視覚系で検知可能(ディスプレイで表示可能)なフレームレートの上限に迫ることを目的としており、映像の高フレームレート化により滑らかな動きを表現することを目的とする。このため、ディスプレイでのリアルタイム再生を前提としている。後者の映像解析の高精度化は、知覚の検知限を超えた高フレームレート映像を用いることにより、映像解析の高精度化を行うことを目的としている。スロー再生による高速移動体の解析は代表的な応用例であり、スポーツ映像、FA(Factory Automation)検査、自動車などにおいて用いられている。 Due to recent advances in semiconductor technology, the image acquisition speed of image imaging equipment has greatly improved. Currently, the applications of high frame rate video acquired by a high-speed camera are classified into high image quality during video playback and high accuracy of video analysis. The former purpose of improving the image quality is to approach the upper limit of the frame rate that can be detected by the visual system (displayable on the display), and the purpose is to express smooth movement by increasing the frame rate of the image. Therefore, real-time playback on a display is assumed. The latter purpose of improving the accuracy of video analysis is to improve the accuracy of video analysis by using a high frame rate video that exceeds the detection limit of perception. Analysis of a high-speed moving object by slow reproduction is a typical application example, and is used in sports video, FA (Factory Automation) inspection, automobiles, and the like.
これは、映像の入力システムと出力システムとにおけるフレームレートの上限が非対称であることによる。現行の撮像系としては、10000[fps]を超える高フレームレート映像を取得可能な高速度カメラが利用可能である。一方、現行のディスプレイの上限は120−240[fps]である。このため、高速度カメラで撮影された映像は、スロー再生用途で用いられる。特許文献1にはフレームレートを変換する技術が記載されているが、100[fps]より低いフレームレートの映像に関するものであり、前述のような高フレームレートの映像の利用を目的はしていない。 This is because the upper limit of the frame rate in the video input system and the output system is asymmetric. As the current imaging system, a high-speed camera capable of acquiring a high frame rate image exceeding 10000 [fps] can be used. On the other hand, the upper limit of the current display is 120-240 [fps]. Therefore, the image taken by the high-speed camera is used for slow playback. Patent Document 1 describes a technique for converting a frame rate, but it relates to a video having a frame rate lower than 100 [fps], and does not aim to use a video having a high frame rate as described above. ..
本発明は、高フレームレート映像を用いて映像の画質を高める画像生成装置、画像生成方法及びプログラムを提供することを目的としている。 An object of the present invention is to provide an image generation device, an image generation method, and a program for enhancing the image quality of an image using a high frame rate image.
本発明の第1の態様における画像生成装置は、映像データに含まれる対象フレーム及び複数の参照フレームを取得する取得部と、前記対象フレームにおける対象画素に対応する対応位置を前記参照フレームごとに定める対応位置同定部と、前記対応位置の近傍の画素と前記対応位置の画素とを含む参照画素の画素値と、前記対象画素の画素値とに基づいて、前記参照画素に対する重み係数を前記参照フレームごとに算出する重み算出部と、前記参照画素ごとに画素値と前記重み係数とを乗算し、乗算結果の和を前記対象画素の近似値として前記参照フレームごとに算出する近似値算出部と、前記対象画素の画素値と前記参照フレームそれぞれの前記近似値とを用いて、前記対象画素の画素値を更新する画素値更新部と、を備える。 The image generation device according to the first aspect of the present invention determines a target frame included in the video data, an acquisition unit for acquiring a plurality of reference frames, and a corresponding position corresponding to the target pixel in the target frame for each reference frame. Based on the pixel value of the reference pixel including the corresponding position identification unit, the pixel in the vicinity of the corresponding position, and the pixel in the corresponding position, and the pixel value of the target pixel, the weighting coefficient for the reference pixel is calculated in the reference frame. A weight calculation unit that calculates each reference pixel, an approximation value calculation unit that multiplies the pixel value and the weight coefficient for each reference pixel, and calculates the sum of the multiplication results as an approximation value of the target pixel for each reference frame. A pixel value updating unit for updating the pixel value of the target pixel by using the pixel value of the target pixel and the approximate value of each of the reference frames is provided.
本発明の第2の態様によれば、第1の態様の画像生成装置において、前記対応位置同定部は、前記対象画素の近傍領域と類似する領域を前記参照フレームにおいて検出し、検出した領域に基づいて前記対応位置を定める。 According to the second aspect of the present invention, in the image generation device of the first aspect, the corresponding position identification unit detects a region similar to the vicinity region of the target pixel in the reference frame, and in the detected region. The corresponding position is determined based on the above.
本発明の第3の態様によれば、第1の態様の画像生成装置において、前記重み算出部は、前記参照画素ごとに近傍領域の画素値で表されるベクトルの加重和と前記対象画素の近傍領域の画素値により得られるベクトルとの差分を最小にする前記加重和における重み値を、前記重み係数として算出する。 According to the third aspect of the present invention, in the image generation device of the first aspect, the weight calculation unit uses the weighted sum of the vectors represented by the pixel values in the neighborhood region for each reference pixel and the weighted sum of the target pixels. The weight value in the weighted sum that minimizes the difference from the vector obtained by the pixel value in the neighboring region is calculated as the weight coefficient.
本発明の第4の態様によれば、第1の態様の画像生成装置において、前記画素値更新部は、前記対象画素の画素値と前記参照フレームそれぞれの前記近似値との平均値で、前記対象画素の画素値を更新する。 According to the fourth aspect of the present invention, in the image generation device of the first aspect, the pixel value update unit is an average value of the pixel value of the target pixel and the approximate value of each of the reference frames. The pixel value of the target pixel is updated.
本発明の第5の態様によれば、第3の態様の画像生成装置において、前記画素値更新部は、前記参照フレームそれぞれの前記近似値に前記参照フレームにおける信頼度を乗じた値と、前記対象画素の画素値との平均値で前記対象画素の画素値を更新し、前記信頼度は、前記重み算出部により前記参照フレームごとに算出される前記差分に基づいて定められる。 According to the fifth aspect of the present invention, in the image generation device of the third aspect, the pixel value update unit has a value obtained by multiplying the approximate value of each of the reference frames by the reliability in the reference frame and the said. The pixel value of the target pixel is updated with the average value with the pixel value of the target pixel, and the reliability is determined based on the difference calculated for each reference frame by the weight calculation unit.
本発明の第6の態様における画像生成方法は、映像データに含まれる対象フレーム及び複数の参照フレームを取得する取得ステップと、前記対象フレームにおける対象画素に対応する対応位置を前記参照フレームごとに定める対応位置同定ステップと、前記対応位置の近傍の画素と前記対応位置の画素とを含む参照画素の画素値と、前記対象画素の画素値とに基づいて、前記参照画素に対する重み係数を前記参照フレームごとに算出する重み算出ステップと、前記参照画素ごとに画素値と前記重み係数とを乗算し、乗算結果の和を前記対象画素の近似値として前記参照フレームごとに算出する近似値算出ステップと、前記対象画素の画素値と前記参照フレームそれぞれの前記近似値とを用いて、前記対象画素の画素値を更新する画素値更新ステップと、を有する。 In the image generation method according to the sixth aspect of the present invention, an acquisition step for acquiring a target frame and a plurality of reference frames included in the video data and a corresponding position corresponding to the target pixel in the target frame are determined for each reference frame. Based on the corresponding position identification step, the pixel value of the reference pixel including the pixel in the vicinity of the corresponding position and the pixel in the corresponding position, and the pixel value of the target pixel, the weighting coefficient for the reference pixel is calculated in the reference frame. A weight calculation step calculated for each reference pixel, an approximate value calculation step for multiplying the pixel value and the weight coefficient for each reference pixel, and calculating the sum of the multiplication results as an approximate value for the target pixel for each reference frame. It has a pixel value update step of updating the pixel value of the target pixel by using the pixel value of the target pixel and the approximate value of each of the reference frames.
本発明の第7の態様におけるプログラムは、映像データに含まれる対象フレーム及び複数の参照フレームを取得する取得ステップと、前記対象フレームにおける対象画素に対応する対応位置を前記参照フレームごとに定める対応位置同定ステップと、前記対応位置の近傍の画素と前記対応位置の画素とを含む参照画素の画素値と、前記対象画素の画素値とに基づいて、前記参照画素に対する重み係数を前記参照フレームごとに算出する重み算出ステップと、前記参照画素ごとに画素値と前記重み係数とを乗算し、乗算結果の和を前記対象画素の近似値として前記参照フレームごとに算出する近似値算出ステップと、前記対象画素の画素値と前記参照フレームそれぞれの前記近似値とを用いて、前記対象画素の画素値を更新する画素値更新ステップと、をコンピュータに実行させるためのプログラムである。 In the program according to the seventh aspect of the present invention, the acquisition step of acquiring the target frame and a plurality of reference frames included in the video data, and the corresponding position corresponding to the target pixel in the target frame are determined for each reference frame. Based on the identification step, the pixel value of the reference pixel including the pixel in the vicinity of the corresponding position and the pixel in the corresponding position, and the pixel value of the target pixel, the weighting coefficient for the reference pixel is set for each reference frame. The weight calculation step to be calculated, the approximate value calculation step of multiplying the pixel value and the weight coefficient for each reference pixel, and calculating the sum of the multiplication results as the approximate value of the target pixel for each reference frame, and the target. This is a program for causing a computer to execute a pixel value update step of updating the pixel value of the target pixel by using the pixel value of the pixel and the approximate value of each of the reference frames.
本発明によれば、高フレームレート映像を用いて映像の画質を高めることが可能となる。 According to the present invention, it is possible to improve the image quality of an image by using a high frame rate image.
以下、図面を参照して、本発明の実施形態における画像生成装置、画像生成方法及びプログラムを説明する。実施形態における画像生成装置における処理の概略について説明する。画像生成装置は、高い時間解像度で取得した映像に含まれる複数のフレームを入力する。複数のフレームには、指定された1枚の対象フレーム(第tフレーム)と、rt枚の参照フレーム(第t−iフレーム、i=1,2,…,rt)が含まれる。画像生成装置は、対象フレームと複数の参照フレームとを用いて、第tフレームの位置の画像を出力する画像生成を行う。入力される映像に対する時間フィルタのフレーム間隔をδtとして、各フレームは、t=jδt,(j=0,1,2,…)においてサンプリングされる。f(x,y,t),(x=0,1,…,X−1;y=0,1,Y−1)は、第tフレームにおける位置(x,y)の画素値を表す。 Hereinafter, the image generation device, the image generation method, and the program according to the embodiment of the present invention will be described with reference to the drawings. The outline of the processing in the image generator in the embodiment will be described. The image generator inputs a plurality of frames included in the video acquired at a high time resolution. The plurality of frames, and one target frame specified (the t frame), r t reference frames (the t-i-frame, i = 1,2, ..., r t) are included. The image generation device uses the target frame and the plurality of reference frames to generate an image that outputs an image at the position of the t-th frame. Each frame is sampled at t = jδ t , (j = 0, 1, 2, ...), With the frame interval of the time filter for the input video as δ t . f (x, y, t), (x = 0,1, ..., X-1; y = 0,1, Y-1) represents the pixel value of the position (x, y) in the t-frame.
[STEP1] 画像生成装置は、対象フレーム内の対象画素(x,y,t)に対する局所近傍領域Fb(x,y,t)として、(2b+1)×(2b+1)画素からなる領域{f(x−i,y−j,t)|i∈[−b,b],j∈[−b,b]}を設定する。画像生成装置は、rt枚の参照フレームの各々に対して、以下の処理(STEP2〜STEP5)を行う。処理の対象となる参照フレームは、第t−iフレーム(i=1,2,…,rt)の順で1枚ずつ選択される。すなわち、画像生成装置は、対象フレームに対して時間的に近い参照フレームから順に選択する。 [STEP1] The image generator sets the local proximity region F b (x, y, t) with respect to the target pixel (x, y, t) in the target frame as a region {f (2b + 1) × (2b + 1) pixels. x-i, y-j, t) | i ∈ [-b, b], j ∈ [-b, b]} is set. Image generating apparatus, for each of the r t reference frames, the following process is performed (STEP2~STEP5). Reference frame to be processed is the t-i frames (i = 1,2, ..., r t) is selected one by one in the order of. That is, the image generator selects in order from the reference frame that is close in time to the target frame.
[STEP2]画像生成装置は、選択された参照フレームにおいて、対象画素に対応する位置(以下、「対応位置」という)を同定する。
[STEP3]画像生成装置は、上記の対応位置の近傍画素を参照画素として設定する。
[STEP4]画像生成装置は、参照画素に対する重みを設定する。
[STEP5]画像生成装置は、上記の重みを用いて、対象画素の近似値を算出する。
[STEP6]画像生成装置は、参照フレームごとに算出した近似値を用いて画素の画素値を更新する。
[STEP2] The image generator identifies a position corresponding to the target pixel (hereinafter, referred to as “corresponding position”) in the selected reference frame.
[STEP3] The image generator sets pixels in the vicinity of the corresponding positions as reference pixels.
[STEP4] The image generator sets weights for reference pixels.
[STEP5] The image generator calculates an approximate value of the target pixel by using the above weights.
[STEP6] The image generation device updates the pixel value of the pixel using the approximate value calculated for each reference frame.
図1は、実施形態における画像生成装置100の構成例を示すブロック図である。画像生成装置100は、取得部101、参照フレーム設定部102、局所近傍領域設定部103、対応位置同定部104、参照画素設定部105、重み算出部106、近似値算出部107、最終参照フレーム判定部108、画素値更新部109、最終画素判定部110、出力部111及び記憶部120を備える。
FIG. 1 is a block diagram showing a configuration example of the
取得部101は、高い時間解像度で取得された映像の映像データを画像生成の対象として取得する。取得部101は、外部の装置から映像データを受信することにより映像データを取得してもよいし、外部の記憶装置から映像データを読み出すことにより映像データを取得してもよい。取得部101は、取得した映像データに含まれる複数のフレームを、対象フレーム及び複数の参照フレームとして記憶部120に記憶させる。取得部101は、入力された複数のフレームのうち対象フレームを示す対象フレーム情報を取得する。取得部101は、対象フレームを示す対象フレーム情報を、参照フレーム設定部102と局所近傍領域設定部103とに出力する。
The
参照フレーム設定部102は、記憶部120に記憶されている複数の参照フレームから1つの参照フレームを選択し、選択した参照フレームを処理対象に設定する。参照フレーム設定部102は、処理対象に設定した参照フレームを示す参照フレーム情報を対応位置同定部104へ出力する。
The reference
局所近傍領域設定部103は、対象フレーム情報により示される対象フレームにおける対象画素を選択する。例えば、局所近傍領域設定部103は、対象フレームにおいてラスター走査順に画素を対象画素として選択する。局所近傍領域設定部103は、対象画素の局所近傍画素と対象画素とを局所近傍領域Fb(x,y,t)に設定する。局所近傍領域設定部103は、局所近傍領域Fb(x,y,t)を示す局所近傍情報を、対応位置同定部104と重み算出部106とへ出力する。
The local neighborhood
対応位置同定部104は、参照フレーム設定部102と局所近傍領域設定部103とから入力される参照フレーム情報と局所近傍情報から、局所近傍画素と参照フレームとを特定する。対応位置同定部104は、局所近傍画素の画素値と、参照フレームにおける探索範囲の画素値とを記憶部120から読み出す。対応位置同定部104は、読み出した画素値を用いて、対象画素の位置に対応する点の位置、すなわち対応位置を参照フレームにおいて同定する。対応位置同定部104は、対応位置を示す対応位置情報を参照画素設定部105に出力する。
The corresponding
参照画素設定部105は、対応位置同定部104から出力される対応位置情報から対応位置を取得し、対応位置の近傍にあたる整数画素位置の各画素を参照画素として設定する。参照画素設定部105は、参照画素を示す参照画素情報を重み算出部106と近似値算出部107とに出力する。
The reference
重み算出部106は、局所近傍領域設定部103と参照画素設定部105とから出力される参照画素情報と局所近傍情報とから、参照画素と局所近傍領域Fb(x,y,t)とを特定する。重み算出部106は、各参照画素の局所近傍の画素値と、局所近傍領域Fb(x,y,t)の画素値とを記憶部120から読み出す。重み算出部106は、参照画素の局所近傍の画素値により局所近傍領域Fb(x,y,t)内の画素値を近似する際の近似誤差を最小化する規範に基づいて、各参照画素に対する重みを算出する。重み算出部106は、各参照画素に対する重みを示す重み情報を近似値算出部107へ出力する。
The
近似値算出部107は、参照画素設定部105から出力される参照画素情報から参照画素を特定し、重み算出部106から出力される重み情報から重みを取得する。近似値算出部107は、各参照画素に画素値を記憶部120から読み出し、読み出した各画素値に対する重みの加重和を対象画素の近似値として算出する。近似値算出部107は、算出した近似値を記憶部120へ記憶させる。算出に用いられた参照フレームと対象画素とを示す情報が近似値に付与されてもよいし、算出に用いられた参照フレームと対象画素とに対応付けられた記憶部120の領域に近似値が記憶されてもよい。
The approximate
最終参照フレーム判定部108は、近似値算出部107による近似値の算出が終わる都度、参照フレームすべてにおいて対象画素の近似値が算出されたか否かを判定する。参照フレームすべてにおいての近似値が算出されていた場合、最終参照フレーム判定部108は、対象画素の画素値に対する更新を画素値更新部109に指示する。参照フレームすべてにおいて近似値が算出されていない場合、最終参照フレーム判定部108は、参照フレームの候補のうち次の参照フレームの選択を参照フレーム設定部102へ指示する。この指示により、次の参照フレームを用いた近似値の算出が行われる。
The final reference
画素値更新部109は、参照フレームの候補ごとに算出された近似値と、対象画素の画素値とを記憶部120から読み出す。画素値更新部109は、読み出した近似値及び画素値の平均値を算出する。画素値更新部109は、算出した平均値を対象画素の画素値として記憶部120に記憶させ、対象画素の画素値を更新する。
The pixel
最終画素判定部110は、画素値更新部109により画素値が更新される都度、対象フレームの画素すべてに対して画素値の更新が行われたか否かを判定する。対象フレームの画素すべてに対して画素値の更新が行われていた場合、最終画素判定部110は、対象フレームの出力を出力部111へ指示する。対象フレームの画素すべてに対して画素値の更新が行われていない場合、最終画素判定部110は、画素値の更新が行われていない対象画素に対する局所近傍画素の設定を局所近傍領域設定部103へ指示する。この場合、最終画素判定部110は、第t−1フレームを参照フレームに選択させる指示を参照フレーム設定部102へ出力する。これらの指示により、次の対象画素に対する画素値の更新が行われる。
The final pixel
出力部111は、すべての画素値が更新された対象フレームを記憶部120から読み出し、読み出した対象フレームを生成画像として出力する。
The
図2は、実施形態の画像生成装置100が行う画像生成処理を示すフローチャートである。画像生成処理は、以下に説明するように、フィルタ処理とインター予測とを含む処理である。画像生成装置100において画像生成処理が開始されると、取得部101は映像データを取得し、取得した映像データに含まれる各フレームを記憶部120に記憶させる(ステップS101)。
FIG. 2 is a flowchart showing an image generation process performed by the
画像生成装置100において、以下のステップS102からステップS107の動作が、対象フレームの各画素に対して繰り返される。局所近傍領域設定部103は、対象フレームにおいて局所近傍領域Fb(x,y,t)を設定する(ステップS102)。
In the
画像生成装置100において、以下のステップS103からステップS106の動作が各参照フレームに対して繰り返される。
In the
[参照フレーム内の対応位置の同定]
対応位置同定部104は、処理対象の参照フレームにおいて、対象画素に対する対応位置を同定する(ステップS103)。対応位置同定部104は、局所近傍領域Fb(x,y,t)と対応点の近傍領域との差分二乗を最小化する対応点の位置を検出することにより、対応位置を同定する。対応点の近傍領域の大きさは、局所近傍領域Fb(x,y,t)と同じ、(2b+1)×(2b+1)画素である。対応点の位置を検出する際の探索は、式(1)として表される。
The corresponding
式(1)における、Aは対象フレームにおける対応点の探索範囲の大きさを示すパラメータであり。対応位置同定部104は、予め定められた値をAとして用いてもよいし、外部から入力される値をAとして用いてもよい。すなわち、探索範囲は、対象フレームにおける2A×2A画素の領域である。式(1)におけるe(vx,vy)は、式(2)で得られる。
式(2)は、第(t−rt+1)フレームにおいて同定される対応点の位置(V(x,t−rt+1),V(y,t−rt+1))を探索中心とした処理となっている。rtは対象フレームから参照フレームまでの時間間隔を表す。(vx,vy)は、式(2)における探索中心に対する変位量である。探索中心位置に対する変位量は式(3)で表すとおりである。
式(3)において、round()は四捨五入により整数値化された結果を返す関数である。対応位置同定部104は、対応位置の探索を1/4画素精度で行う。その際、対応位置同定部104は、小数画素位置の画素値を、式(4)によりbilinear補間で算出する。
ただし、対応位置同定部104は、閾値θeに対して、e(vx,vy)>θeとなる場合は、適切な対応位置が存在しないと判定し、vx,vyを設定せずともよい。閾値θeは、画像生成装置100の外部より入力されるパラメータである。
対応位置同定部104は、以上の演算を行い、参照フレームにおける対応位置(x−V(x,t−rt),y−V(y,t−rt))を同定する。
However, when e (v x , v y )> θ e with respect to the threshold value θ e , the corresponding
The corresponding
[参照画素の設定及び画素値に対する重みの設定]
参照画素設定部105は、対応位置同定部104が式(3)により得た対応位置の画素と、対応位置の近傍に位置する画素とを参照画素として設定する(ステップS104)。対応位置は(x−V(x,t−rt),y−V(y,t−rt))であり、対応位置の近傍の位置は、
(x−V(x,t−rt)+1,y−V(y,t−rt)),
(x−V(x,t−rt),y−V(y,t−rt)+1),
(x−V(x,t−rt)+1,y−V(y,t−rt)+1)
である。
[Setting of reference pixel and setting of weight for pixel value]
The reference
(X-V (x, tr t ) + 1, y-V (y, tr t )),
(X-V (x, tr t ), y-V (y, tr t ) + 1),
(X-V (x, tr t ) +1, y-V (y, tr t ) + 1)
Is.
重み算出部106は、参照画素設定部105により設定された参照画素の近傍領域の画素値と、対象画素の局所近傍領域Fb(x,y,t)の画素値とを記憶部120から読み出す。重み算出部106は、読み出した参照画素の近傍領域の画素値と局所近傍領域Fb(x,y,t)の画素値とを用いて、参照画素に対する重み係数を算出する(ステップS105)。重み係数の算出手順について、以下に説明する。
The
重み算出部106は、各近傍領域の画素値をラスター走査順に一元化して得られる(2b+1)×(2b+1)次元ベクトルそれぞれを、ベクトルR0(x,y,t−rt),R1(x,y,t−rt),R2(x,y,t−rt),R3(x,y,t−rt)とする。例えば、参照画素の近傍領域の画素値からなるベクトルR0(x,y,t−rt)は、式(5)で表される。
重み算出部106は、ベクトルR0(x,y,t−rt),R1(x,y,t−rt),R2(x,y,t−rt),R3(x,y,t−rt)の加重和を、対象画素の局所近傍領域Fb(x,y,t)を近似するものとして、その近似誤差電力を算出する。近似誤差電力E(x,y,t,rt)は式(6)により表される。
近似誤差電力E(x,y,t,rt)を最小化する重み係数w0,w1,w2,w3は、以下のように求められる。重み係数w0,w1,w2が式(7)により求められる。
式(7)における、^ψi,j,^φiは、i,j=0,1,2に対して式(8)で表されるベクトルの内積値である。なお、式(8)における肩付きの文字(t)は、転置を表す。
重み係数w3は、求められた重み係数w0,w1,w2を用いて、式(9)により、求められる。
上記の重み係数の算出は、重み係数w0,w1,w2,w3の和が1になる制約条件の下で近似誤差電力を最小化する手法である。なお、重み係数の和に対して制約条件を設けない場合、重み係数は式(10)を用いることにより、重み係数w0,w1,w2,w3が求められる。
式(10)における、ψi,j,φiは、i,j=0,1,2に対して式(11)で表されるベクトルの内積値である。式(10)における肩付きの文字(t)は、式(8)と同様に、転置を表す。
重み算出部106は、式(7)及び式(9)と、式(10)とのいずれかを用いて、重み係数w0,w1,w2,w3を算出する。
The
[参照画素を用いた対象画素の画素値の近似]
近似値算出部107は、参照画素設定部105により設定された参照画素の画素値を記憶部120から読み出す。近似値算出部107は、重み算出部106が算出した重み係数w0,w1,w2,w3と、読み出した画素値とをそれぞれ乗算し、乗算結果の和を対象画素の近似値として算出する(ステップS106)。対象画素の近似値^f(x,y,t,rt)は、式(12)により表される。
The approximate
式(12)における、ri(x,y,t−rt),(i=0,1,2,3)は、式(13)にて表される。
式(13)は、時刻t−rtに位置する参照フレームに対する参照画素の画素値の算出を表している。近似値算出部107は、式(13)に従い、rt枚の参照フレーム(第t−iフレーム、(i=1,2,…,rt))に対する参照画素の画素値を算出する。近似値算出部107は、式(12)に従い、参照画素の画素値を用いて対象画素の近似値^f(x,y,t,rt)を算出する。
Equation (13) represents the calculation of the pixel values of the reference pixels relative to the reference frame located at a time t-r t. Approximate
[対象画素の画素値の更新]
画素値更新部109は、近似値算出部107が式(12)により算出したrt枚の参照フレームそれぞれの近似値^f(x,y,t,rt)と、対象画素の画素値との平均値を算出する。画素値更新部109は、算出した平均値を記憶部120に記憶させ、記憶部120に記憶されている対象画素の画素値を更新する(ステップS107)。新たな画素値(平均値)は、式(14)により算出される。
Pixel
画素値更新部109は、対象フレーム内の各画素に対して、式(14)による画素値の更新を行う。対象フレーム内の画素すべてに対して画素値の更新が行われると、出力部111は、記憶部120から対象フレームを読み出し、読み出した対象フレームを生成画像として出力し(ステップS108)、画像生成装置100は、画像生成処理を終了する。
The pixel
上述したように、実施形態の画像生成装置100は、参照フレームにおける複数の参照画素と、各参照画素に対して定めた重み係数とを用いて対象画素の近似値を参照フレームごとに算出する。画像生成装置100は、各参照フレームの近似値と対象画素の画素値とを用いて、対象画素の画素値を更新する。画像生成装置100は、画素値の更新において、複数の参照フレームの画素値を用いるので、対象フレームにおけるノイズを低減し、画質を高めることができる。画像生成装置100は、複数のフレームを逐次入力し、複数のフレーム入力されるごとに前述の画像生成処理により生成される対象フレームを出力してもよい。画像生成装置100をこのように動作させることにより、映像データを生成できる。
As described above, the
画像生成装置100は、高フレームレート映像の映像データに含まれる複数のフレームを逐次入力し、複数のフレーム入力されるごとに前述の画像生成処理を行ってもよい。画像生成装置100は、高フレームレート映像の映像データを入力することにより、動きボケが低減された画質を維持しつつ、重畳雑音を低減させて画質を高めた映像データを構成するフレームを生成することができる。
The
高フレームレート映像は、時間方向に高密度でサンプリングされたフレーム群を含んでおり、高フレームレート映像には撮影対象の時間方向の情報が高い時間分解能で含まれている。高密度時間サンプリングされたフレーム群(例えば、1000[fps])を用いて、リアルタイム再生用途の映像(例えば、30[fps])を生成すれば、高い時間分解能で映像の生成を制御できる。すなわち、画像生成装置100によれば、視覚の検知限を超えた高フレームレート映像を入力として用いることで、動きボケの低減と重畳雑音の低減とを両立して高画質なリアルタイム再生用途の映像データを生成できる。
The high frame rate video includes a group of frames sampled at high density in the time direction, and the high frame rate video contains information in the time direction of the shooting target with high time resolution. If a video for real-time playback (for example, 30 [fps]) is generated using a high-density time-sampled frame group (for example, 1000 [fps]), the generation of the video can be controlled with high time resolution. That is, according to the
なお、画素値更新部109は、参照フレームそれぞれの近似値^f(x,y,t,rt)と、対象画素の画素値との平均値に代えて、近似値^f(x,y,t,rt)に対する信頼度を乗じた加重和と対象画素の画素値との平均値を新たな画素値として算出してもよい。信頼度は、例えば、重み係数を算出する際に用いた近似誤差電力E(x,y,t,rt)に基づいて定められる。
Incidentally, the pixel
参照フレームにおける参照画素の近傍領域と局所近傍領域Fb(x,y,t)との類似度が高いほど、近似誤差電力E(x,y,t,rt)は低い値となる。そこで、参照フレームにおける近似誤差電力E(x,y,t,rt)と反比例する値を信頼度に用いてもよい。例えば、式(15)で表される値を参照フレームの信頼度に用いてもよい。
また、画素値更新部109は、式(15)得られる各参照フレームに対する値の総和が1になるように各値を正規化し、正規化により得られた値を各参照フレームに対する信頼度に用いてもよい。また、信頼度は、式(15)の例以外にも、近似誤差電力E(x,y,t,rt)の増減と反比例する値が得られる関数やテーブルを用いて定めてもよい。各参照フレームから算出される近似値に対して信頼度を乗じることにより、類似度が低い参照画素の影響を低くすることができる。画素値更新部109が近似値に信頼度を乗じた加重和を用いて対象画素の画素値を更新することにより、画像生成装置100は、出力する対象フレームの画質を更に向上できる。
Further, the pixel
また、画素値更新部109は、式(14)に代えて式(16)を用いて、対象画素の画素値を更新する値を算出してもよい。画素値更新部109は、式(16)における係数ak(k=0,1,…,rt)として、以下に示す3通りの設定のうちいずれか一つを用いてもよい。
第1の設定として、画素値更新部109は、式(17)で定められる値を係数akに用いてもよい。なお、第1の設定を用いた場合、式(16)と式(14)とは同じである。
第2の設定として、画素値更新部109は、式(18)で定められる値を係数ak(k=0,1,…,rt)に用いてもよい。
式(18)におけるr’t(x,y,t)は、各x,y,tに対して定まる値である。具体的には、式(6)により算出される近似誤差電力E(x,y,t,k)又は|f(x,y,t)−^f(x,y,t,k)|,(k=1,2,…,rt)が閾値ψより小さい参照画素の数が、r’t(x,y,t)の値となる。すなわち、画素値更新部109は、各参照フレームにおける参照画素のうち対象画素に対する類似度が低い参照画素から算出された近似値を外れ値として省き、一定以上の類似度を有する参照画素から算出された近似値を用いて対象画素の画素値を更新する。なお、r’t(x,y,t)の値域は、1≦r’t(x,y,t)≦rtである。閾値ψは、画像生成装置100の外部より入力されるパラメータである。
R't (x, y, t) in the equation (18) is a value determined for each x, y, t. Specifically, the approximate error power E (x, y, t, k) or | f (x, y, t)-^ f (x, y, t, k) |, calculated by the equation (6). (k = 1,2, ..., r t) is the number of threshold ψ smaller reference pixels, the value of r 't (x, y, t). That is, the pixel
第3の設定として、画素値更新部109は、式(19)で定められる値を係数a0,ak(k=1,…,rt)に用いてもよい。
式(19)における変数e0は、画像生成装置100の外部より入力されるパラメータである。変数e0は、対象画素の画素値を更新する際における、元の対象画素の画素値に対する重みを表すパラメータである。なお、式(19)において、(1/(e0 2+ε))を1に代えて係数akを算出してもよい。
The variable e 0 in the equation (19) is a parameter input from the outside of the
第2及び第3の設定における係数akは、前述した信頼度の一例である。画素値更新部109は、第2又は第3の設定の係数akを用いることにより、対象画素の画素値の精度を高めることができ、対象フレームの画質を更に向上できる。
The coefficient ak in the second and third settings is an example of the reliability described above. By using the coefficient ak of the second or third setting, the pixel
前述した実施形態における画像生成装置100のすべて又は一部をコンピュータで実現するようにしてもよい。例えば、画像生成装置100が有する構成要素それぞれを実現するためのプログラムをコンピュータ読み取り可能な記録媒体に記録して、この記録媒体に記録されたプログラムをコンピュータシステムに読み込ませ、実行することによって実現してもよい。なお、ここでいう「コンピュータシステム」とは、OSや周辺機器等のハードウェアを含むものとする。また、「コンピュータ読み取り可能な記録媒体」とは、フレキシブルディスク、光磁気ディスク、ROM、CD−ROM等の可搬媒体、コンピュータシステムに内蔵されるハードディスク等の記憶装置のことをいう。また、このプログラムは、前述した構成要素の一部を実現するためのものであってもよく、更に前述した構成要素をコンピュータシステムにすでに記録されているプログラムとの組み合わせで実現できるものであってもよく、PLD(Programmable Logic Device)やFPGA(Field Programmable Gate Array)等のハードウェアを用いて実現されるものであってもよい。
All or part of the
以上、この発明の実施形態について図面を参照して詳述してきたが、具体的な構成はこの実施形態に限られるものではなく、この発明の要旨を逸脱しない範囲の設計等も含まれる。 Although the embodiments of the present invention have been described in detail with reference to the drawings, the specific configuration is not limited to this embodiment, and the design and the like within a range not deviating from the gist of the present invention are also included.
本発明は、高フレームレート映像を用いて映像の画質を高めることが不可欠な用途にも適用できる。 The present invention can also be applied to applications in which it is indispensable to improve the image quality of an image by using a high frame rate image.
100…画像生成装置
101…取得部
102…参照フレーム設定部
103…局所近傍領域設定部
104…対応位置同定部
105…参照画素設定部
106…重み算出部
107…近似値算出部
108…最終参照フレーム判定部
109…画素値更新部
110…最終画素判定部
111…出力部
120…記憶部
100 ...
Claims (7)
前記対象フレームにおける対象画素に対応する対応位置を前記参照フレームごとに定める対応位置同定部と、
前記対応位置の近傍の画素と前記対応位置の画素とを含む参照画素の画素値と、前記対象画素の画素値とから、前記参照画素に対する重み係数を前記参照画素に含まれる画素ごとに、前記対応位置の近傍内の画素を近似する際の近似誤差を最小化する規範に基づいて、前記参照フレームごとに算出する重み算出部と、
前記参照画素に含まれる画素ごとに画素値と前記画素に対する前記重み係数とを乗算し、乗算結果の和を前記対象画素の近似値として前記参照フレームごとに算出する近似値算出部と、
前記対象画素の画素値と前記参照フレームそれぞれの前記近似値とを用いて、前記対象画素の画素値を更新する画素値更新部と、
を備える画像生成装置。 An acquisition unit that acquires the target frame and a plurality of reference frames included in the video data,
A corresponding position identification unit that determines a corresponding position corresponding to a target pixel in the target frame for each reference frame,
Wherein the pixel values of reference pixels and the pixels in the vicinity of the corresponding position and a said corresponding position pixel, and a pixel value of the target pixel for each pixel contained a weighting factor for the reference pixel to the reference pixels, the A weight calculation unit that calculates for each reference frame based on a norm that minimizes the approximation error when approximating pixels in the vicinity of the corresponding position .
Wherein multiplying the weight coefficient for said pixel as the pixel value for each pixel included in the reference pixels, and the approximate value calculating unit for calculating for each of the reference frame the sum of the multiplication results as an approximation of the target pixel,
A pixel value update unit that updates the pixel value of the target pixel by using the pixel value of the target pixel and the approximate value of each of the reference frames.
An image generator comprising.
請求項1に記載の画像生成装置。 The corresponding position identification unit detects a region similar to the vicinity region of the target pixel in the reference frame, and determines the corresponding position based on the detected region.
The image generator according to claim 1.
請求項1に記載の画像生成装置。 The weight calculation unit minimizes the difference between the weighted sum of the vectors represented by the pixel values in the neighboring region for each reference pixel and the vector obtained by the pixel values in the neighboring region of the target pixel. The value is calculated as the weighting coefficient.
The image generator according to claim 1.
請求項1に記載の画像生成装置。 The pixel value update unit updates the pixel value of the target pixel with the average value of the pixel value of the target pixel and the approximate value of each of the reference frames.
The image generator according to claim 1.
前記信頼度は、前記重み算出部により前記参照フレームごとに算出される前記差分に基づいて定められる、
請求項3に記載の画像生成装置。 The pixel value update unit updates the pixel value of the target pixel with the average value of the value obtained by multiplying the approximate value of each of the reference frames by the reliability in the reference frame and the pixel value of the target pixel.
The reliability is determined based on the difference calculated for each reference frame by the weight calculation unit.
The image generator according to claim 3.
前記対象フレームにおける対象画素に対応する対応位置を前記参照フレームごとに定める対応位置同定ステップと、
前記対応位置の近傍の画素と前記対応位置の画素とを含む参照画素の画素値と、前記対象画素の画素値とから、前記参照画素に対する重み係数を前記参照画素に含まれる画素ごとに、前記対応位置の近傍内の画素を近似する際の近似誤差を最小化する規範に基づいて、前記参照フレームごとに算出する重み算出ステップと、
前記参照画素に含まれる画素ごとに画素値と前記画素に対する前記重み係数とを乗算し、乗算結果の和を前記対象画素の近似値として前記参照フレームごとに算出する近似値算出ステップと、
前記対象画素の画素値と前記参照フレームそれぞれの前記近似値とを用いて、前記対象画素の画素値を更新する画素値更新ステップと、
を有する画像生成方法。 An acquisition step for acquiring a target frame and a plurality of reference frames included in the video data, and
A corresponding position identification step in which a corresponding position corresponding to a target pixel in the target frame is determined for each reference frame, and
Wherein the pixel values of reference pixels and the pixels in the vicinity of the corresponding position and a said corresponding position pixel, and a pixel value of the target pixel for each pixel contained a weighting factor for the reference pixel to the reference pixels, the A weight calculation step calculated for each reference frame based on a norm for minimizing the approximation error when approximating pixels in the vicinity of the corresponding position, and
Wherein multiplying the weight coefficient for said pixel as the pixel value for each pixel included in the reference pixels, and the approximate value calculating step of calculating for each of the reference frame the sum of the multiplication results as an approximation of the target pixel,
A pixel value update step for updating the pixel value of the target pixel using the pixel value of the target pixel and the approximate value of each of the reference frames, and
Image generation method having.
前記対象フレームにおける対象画素に対応する対応位置を前記参照フレームごとに定める対応位置同定ステップと、
前記対応位置の近傍の画素と前記対応位置の画素とを含む参照画素の画素値と、前記対象画素の画素値とから、前記参照画素に対する重み係数を前記参照画素に含まれる画素ごとに、前記対応位置の近傍内の画素を近似する際の近似誤差を最小化する規範に基づいて、前記参照フレームごとに算出する重み算出ステップと、
前記参照画素に含まれる画素ごとに画素値と前記画素に対する前記重み係数とを乗算し、乗算結果の和を前記対象画素の近似値として前記参照フレームごとに算出する近似値算出ステップと、
前記対象画素の画素値と前記参照フレームそれぞれの前記近似値とを用いて、前記対象画素の画素値を更新する画素値更新ステップと、
をコンピュータに実行させるためのプログラム。 An acquisition step for acquiring a target frame and a plurality of reference frames included in the video data, and
A corresponding position identification step in which a corresponding position corresponding to a target pixel in the target frame is determined for each reference frame, and
Wherein the pixel values of reference pixels and the pixels in the vicinity of the corresponding position and a said corresponding position pixel, and a pixel value of the target pixel for each pixel contained a weighting factor for the reference pixel to the reference pixels, the A weight calculation step calculated for each reference frame based on a norm for minimizing the approximation error when approximating pixels in the vicinity of the corresponding position, and
Wherein multiplying the weight coefficient for said pixel as the pixel value for each pixel included in the reference pixels, and the approximate value calculating step of calculating for each of the reference frame the sum of the multiplication results as an approximation of the target pixel,
A pixel value update step for updating the pixel value of the target pixel using the pixel value of the target pixel and the approximate value of each of the reference frames, and
A program that lets your computer run.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2017117081A JP6763826B2 (en) | 2017-06-14 | 2017-06-14 | Image generator, image generation method and program |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2017117081A JP6763826B2 (en) | 2017-06-14 | 2017-06-14 | Image generator, image generation method and program |
Publications (2)
Publication Number | Publication Date |
---|---|
JP2019004293A JP2019004293A (en) | 2019-01-10 |
JP6763826B2 true JP6763826B2 (en) | 2020-09-30 |
Family
ID=65004980
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2017117081A Active JP6763826B2 (en) | 2017-06-14 | 2017-06-14 | Image generator, image generation method and program |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP6763826B2 (en) |
Family Cites Families (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP5102174B2 (en) * | 2008-10-22 | 2012-12-19 | 日本電信電話株式会社 | FRAME RATE CONVERSION METHOD, FRAME RATE CONVERSION DEVICE, FRAME RATE CONVERSION PROGRAM, AND COMPUTER-READABLE RECORDING MEDIUM CONTAINING THE PROGRAM |
JP5927051B2 (en) * | 2012-06-07 | 2016-05-25 | オリンパス株式会社 | Image processing apparatus, image processing method, and program |
JP2016048810A (en) * | 2013-01-24 | 2016-04-07 | パナソニック株式会社 | Frame rate conversion device and frame rate conversion method |
JP6008125B2 (en) * | 2013-02-22 | 2016-10-19 | 三菱電機株式会社 | Noise reduction device and noise reduction method |
-
2017
- 2017-06-14 JP JP2017117081A patent/JP6763826B2/en active Active
Also Published As
Publication number | Publication date |
---|---|
JP2019004293A (en) | 2019-01-10 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10404917B2 (en) | One-pass video stabilization | |
US9055217B2 (en) | Image compositing apparatus, image compositing method and program recording device | |
KR101830804B1 (en) | Digital image stabilization method with adaptive filtering | |
US9898803B2 (en) | Image processing apparatus, image processing method, and recording medium storing image processing program | |
US10621711B2 (en) | Image processing device and image processing method for synthesizing plurality of images | |
CN110047091B (en) | Image stabilization method based on camera track estimation and feature block matching | |
JPWO2014069103A1 (en) | Image processing device | |
JP6339358B2 (en) | Digital video processing apparatus and representative motion prediction method for video | |
JP6763826B2 (en) | Image generator, image generation method and program | |
EP2136548B1 (en) | Image processing apparatus, image processing method, and program | |
JP2010250611A (en) | Image processor, image processing method and recording medium | |
JP6595442B2 (en) | Video filtering method, video filtering device, and computer program | |
JP6836495B2 (en) | Image generator, image generation method and image generation program | |
JP6680633B2 (en) | Video filtering method, video filtering device, and video filtering program | |
JP5660300B2 (en) | Image processing device | |
JP6792541B2 (en) | Image generator, image generation method and image generation program | |
JP6378496B2 (en) | Image processing apparatus, control method, and recording medium | |
JP7009252B2 (en) | Image processing equipment, image processing methods and programs | |
JP2015148965A (en) | Image processing apparatus, imaging apparatus, and image processing method | |
US9591220B2 (en) | Selection apparatus, selection method, and storage medium | |
WO2015159778A1 (en) | Image processing device, image processing method and image processing program | |
US20220366609A1 (en) | Decoding apparatus, encoding apparatus, decoding method, encoding method, and program | |
KR101589727B1 (en) | Apparatus for frame rate up conversion in video recorded on moving object | |
KR101589725B1 (en) | Method for inter-frame image interpolation in video recorded on moving object | |
JP4881812B2 (en) | Flicker correction apparatus and flicker correction method |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20190829 |
|
A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20200423 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20200526 |
|
A521 | Written amendment |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20200722 |
|
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: 20200908 |
|
A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20200910 |
|
R150 | Certificate of patent or registration of utility model |
Ref document number: 6763826 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R150 |