JP4930541B2 - Image processing method and image processing apparatus - Google Patents

Image processing method and image processing apparatus Download PDF

Info

Publication number
JP4930541B2
JP4930541B2 JP2009101954A JP2009101954A JP4930541B2 JP 4930541 B2 JP4930541 B2 JP 4930541B2 JP 2009101954 A JP2009101954 A JP 2009101954A JP 2009101954 A JP2009101954 A JP 2009101954A JP 4930541 B2 JP4930541 B2 JP 4930541B2
Authority
JP
Japan
Prior art keywords
image
addition
motion compensation
addition weight
noise
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
JP2009101954A
Other languages
Japanese (ja)
Other versions
JP2009165168A (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.)
Sony Corp
Original Assignee
Sony Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Sony Corp filed Critical Sony Corp
Priority to JP2009101954A priority Critical patent/JP4930541B2/en
Publication of JP2009165168A publication Critical patent/JP2009165168A/en
Application granted granted Critical
Publication of JP4930541B2 publication Critical patent/JP4930541B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Description

この発明は、撮像装置に適用可能で、ノイズ軽減を行う画像処理方法および画像処理装置に関する。   The present invention relates to an image processing method and an image processing apparatus that can be applied to an imaging apparatus and perform noise reduction.

近年、カメラ、ビデオでの撮影時に、より低照度下での撮影や、より短い露光時間での撮影が求められている。しかしながら、低照度下や短い露光時間では、入射光量が少ないため電荷蓄積量が減少し、明るい像を得る為には信号を増幅する必要がある。その際に撮像素子やアナログ回路にて生じるノイズも増幅され、得られる像はノイズの多い低画質のものになってしまう。この問題の改善策として、長時間の露光を行うことで電荷蓄積量を増加させ、ランダム成分を相対的に低くすることでS/Nを改善することができる。しかしながら、長時間露光は、露光中の手ぶれによる画像のにじみ(露光にじみと適宜称する)を発生させるため、三脚などによって撮像装置を固定する必要があった。   In recent years, shooting with a lower illuminance or shooting with a shorter exposure time has been demanded when shooting with a camera or video. However, under low illuminance and a short exposure time, the amount of incident light is small and the amount of accumulated charge is reduced, so that it is necessary to amplify the signal in order to obtain a bright image. At that time, noise generated in the image pickup device or the analog circuit is also amplified, and the obtained image has a low image quality with a lot of noise. As an improvement measure for this problem, it is possible to improve the S / N by increasing the charge accumulation amount by performing long-time exposure and relatively lowering the random component. However, long-time exposure causes image blur due to camera shake during exposure (referred to as exposure blur as appropriate), so the imaging device must be fixed by a tripod or the like.

他の方法として、露光にじみが殆ど生じないシャッター速度例えば1/30秒でもって撮像することを繰り返し、この連写により得られた複数の画像を加算平均することによって、時間方向に無相関なノイズを低減する方法がある。しかしながら、手ブレなどによるカメラの移動や動被写体により画像のボケや動被写体の多重露光状のひきずりといった劣化が生じる問題がある。   As another method, noise that is uncorrelated in the time direction is obtained by repeatedly capturing images at a shutter speed that hardly causes exposure blur, for example, 1/30 second, and averaging a plurality of images obtained by continuous shooting. There are ways to reduce this. However, there is a problem that degradation such as blurring of an image or multiple exposure-like dragging of a moving subject occurs due to camera movement due to camera shake or the like and a moving subject.

さらに、下記の特許文献1には、連写により得られた複数の画像の手振れを補正して重ね合わせることが記載されている。ここでの手振れは、露光期間の間隔例えば1フィールド、1フレームの間で生じる手振れである。特許文献2にも同様に、全露光時間を複数の露光期間に分割し、各露光期間で得られた画像を手ぶれ補正して加算することで画質の良好な画像を得ることが記載されている。   Furthermore, Japanese Patent Application Laid-Open No. H10-228561 describes that a plurality of images obtained by continuous shooting are corrected and superimposed. Here, the camera shake is a camera shake that occurs between exposure periods, for example, one field and one frame. Similarly, Patent Document 2 describes that an image with good image quality is obtained by dividing the total exposure time into a plurality of exposure periods and correcting and adding the images obtained in each exposure period. .

特開平9−261526号公報JP-A-9-261526

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

特許文献1または特許文献2に記載されているように、動き補正した複数の画像を加算する方法は、不要な動き被写体などが進入した画像およびローコントラストの画像では、検出される動きベクトルの精度が低くなり、画質の改善が不充分となる欠点があった。また、1フレーム単位での重み付け係数でもって加算する処理は、精度が不充分であった。さらに、露光時間が長くなると、ノイズが増加するので、同一の露光量であってもシャッター速度によってノイズ量が相違する場合がある。このような撮影条件を考慮しないと高精度にノイズを除去することができない。   As described in Patent Document 1 or Patent Document 2, the method of adding a plurality of motion-corrected images is based on the accuracy of a detected motion vector in an image in which an unnecessary moving subject or the like has entered and a low-contrast image. However, there is a drawback that the image quality is not sufficiently improved. Further, the accuracy of the process of adding with a weighting coefficient in units of one frame is insufficient. Furthermore, since the noise increases as the exposure time becomes longer, the amount of noise may differ depending on the shutter speed even with the same exposure amount. Unless such shooting conditions are taken into consideration, noise cannot be removed with high accuracy.

したがって、この発明の目的は、高精度にノイズを除去することが可能な画像処理方法および画像処理装置を提供することにある。   Accordingly, an object of the present invention is to provide an image processing method and an image processing apparatus capable of removing noise with high accuracy.

上述した課題を解決するために、この発明は、時間的に連続する第1および第2静止画を使用して、ノイズが軽減された画像が出力される画像処理方法であって、
第2静止画に対し、ブロック単位の動き補償を行うステップと、
第1静止画と動き補償を行った第2静止画との画素差分絶対値に対して加算重みを設定するテーブルを生成し、テーブルを使用して加算重みを設定するステップと、
第1静止画および動き補償を行った第2静止画を、加算重みに応じて加算もしくは加重平均して処理後の画像を得るステップとを有し、
複数の撮影条件の各撮影条件での画素値に対応するノイズ量の関係が予め保持されており、現在の撮影条件に応じてテーブルを規定して加算重みを設定する画像処理方法である。
この発明は、時間的に連続する第1、第2および第3静止画を使用して、ノイズが軽減された画像を生成する画像処理方法であって、
第2静止画に対し、ブロック単位の動き補償を行うステップと、
第1静止画と動き補償を行った第2静止画との画素差分絶対値に対して第1加算重みを設定するテーブルを生成し、テーブルを使用して第1加算重みを設定するステップと、
第1静止画および動き補償を行った第2静止画を、第1加算重みに応じて加算もしくは加重平均して処理後の画像を得るステップと
第3静止画に対し、ブロック単位の動き補償を行うステップと、
第1静止画と動き補償を行った第3静止画との画素差分絶対値に対して第2加算重みを設定するテーブルを生成し、テーブルを使用して第2加算重みを設定するステップと、
処理後の画像および動き補償を行った第3静止画を、第2加算重みに応じて加算もしくは加重平均して処理後の画像を得るステップとを有し、
複数の撮影条件の各撮影条件での画素値に対応するノイズ量の関係が予め保持されており、現在の撮影条件に応じてテーブルを規定して第1加算重みおよび第2加算重みを設定する画像処理方法である。
In order to solve the above-described problem, the present invention is an image processing method in which an image with reduced noise is output using first and second still images that are temporally continuous,
Performing block-based motion compensation on the second still image;
Generating a table for setting an addition weight for a pixel difference absolute value between the first still image and the second still image subjected to motion compensation, and setting the addition weight using the table ;
The first still image and a second still image subjected to motion compensation, possess and obtaining an image after addition or weighted average processing according to the weighting factor,
This is an image processing method in which the relationship of the amount of noise corresponding to the pixel value under each shooting condition of a plurality of shooting conditions is held in advance, and an addition weight is set by defining a table according to the current shooting conditions .
The present invention is an image processing method for generating a noise-reduced image using first, second and third still images that are temporally continuous,
Performing block-based motion compensation on the second still image;
Generating a table for setting the first addition weight for the pixel difference absolute value between the first still image and the second still image subjected to motion compensation, and setting the first addition weight using the table ;
The first still image and the second still image that has undergone motion compensation are added or weighted averaged according to the first addition weight to obtain a processed image, and block-based motion compensation is performed on the third still image. Steps to perform,
Generating a table for setting the second addition weight for the pixel difference absolute value between the first still image and the third still image subjected to motion compensation, and setting the second addition weight using the table ;
The third still picture that has been subjected to the predetermined image and the motion compensation after treatment, addition or weighted average to possess and obtaining an image after processing in accordance with a second weighting factor,
The relationship between the noise amounts corresponding to the pixel values under each of the plurality of shooting conditions is held in advance, and a first addition weight and a second addition weight are set by defining a table according to the current shooting conditions. This is an image processing method.

この発明は、単位時間間隔で入力される動画に対して、ノイズ軽減を行う画像処理方法であって、
1単位時間前の処理後の画像に対し、ブロック単位の動き補償を行うステップと、
現在の動画と動き補償を行った1単位時間前の処理後の画像との画素差分絶対値に対して加算重みを設定するテーブルを生成し、テーブルを使用して加算重みを設定するステップと、
現在の動画および動き補償を行った1単位時間前の処理後の画像を、加算重みに応じて加算もしくは加重平均して、現在の動画に対応する処理後の画像を得るステップとを有し、
複数の撮影条件の各撮影条件での画素値に対応するノイズ量の関係が予め保持されており、現在の撮影条件に応じてテーブルを規定して加算重みを設定する画像処理方法である。
この発明は、単位時間間隔で入力される動画に対して、ノイズ軽減を行う画像処理方法であって、
現在の動画と1単位時間前の処理後の画像とからブロック単位の動きベクトルを求め、1単位時間前の処理後の画像と、2単位時間前の動き補償後の画像に対し、動きベクトルによって動き補償を行うステップと、
現在の動画と動き補償を行った1単位時間前の処理後の画像との画素差分絶対値に対して第1加算重みを設定するテーブルを生成し、テーブルを使用して第1加算重みを設定するステップと、
現在の動画および動き補償を行った1単位時間前の処理後の画像を、第1加算重みに応じて加算もしくは加重平均して、第1の処理後の画像を得るステップと、
動き補償された2単位時間前の動き補償後の画像と第1の処理後の画像との画素差分絶対値に対して第2加算重みを設定するテーブルを生成し、テーブルを使用して第2加算重みを設定するステップと、
動き補償された2単位時間前の動き補償後の画像および第1の処理後の画像を、第2加算重みに応じて加算もしくは加重平均して、現在の動画に対応する第2の処理後の画像を得るステップと
複数の撮影条件の各撮影条件での画素値に対応するノイズ量の関係が予め保持されており、現在の撮影条件に応じてテーブルを規定して第1加算重みおよび第2加算重みを設定する画像処理方法である。
The present invention is an image processing method for performing noise reduction on a moving image input at unit time intervals,
Performing block-unit motion compensation on an image after processing one unit time ago;
Generating a table for setting an addition weight for a pixel difference absolute value between the current moving image and an image after processing one unit time before performing motion compensation, and setting the addition weight using the table ;
An image after one unit time before the process was the current video and motion compensation, by adding or weighted average according to the weighting factor, have a obtaining a processed image corresponding to the current video,
This is an image processing method in which the relationship of the amount of noise corresponding to the pixel value under each shooting condition of a plurality of shooting conditions is held in advance, and an addition weight is set by defining a table according to the current shooting conditions .
The present invention is an image processing method for performing noise reduction on a moving image input at unit time intervals,
A motion vector in block units is obtained from the current moving image and the image after processing one unit time ago, and the motion vector is obtained for the image after processing one unit time ago and the image after motion compensation two units time ago. Performing motion compensation;
A table for setting the first addition weight is generated for the pixel difference absolute value between the current moving image and the image after processing one unit time before motion compensation is performed, and the first addition weight is set using the table. And steps to
Adding the current video and the processed image one unit time before performing motion compensation in accordance with a first addition weight to obtain an image after the first processing;
A table for setting the second addition weight is generated for the pixel difference absolute value between the motion-compensated image after motion compensation 2 units before and the image after the first processing. Setting an addition weight;
The motion-compensated image after motion compensation 2 units before and the image after the first processing are added or weighted averaged according to the second addition weight, and after the second processing corresponding to the current moving image The step of obtaining an image and
The relationship between the noise amounts corresponding to the pixel values under each of the plurality of shooting conditions is held in advance, and a first addition weight and a second addition weight are set by defining a table according to the current shooting conditions. This is an image processing method.

この発明は、時間的に連続する第1および第2静止画を使用して、ノイズが軽減された画像が生成する画像処理装置であって、
第2静止画に対し、ブロック単位の動き補償を行う動き補償装置と、
第1静止画と動き補償を行った第2静止画との画素差分絶対値に対して加算重みを設定するテーブルを生成し、テーブルを使用して加算重みを設定する判定装置と、
第1静止画および動き補償を行った第2静止画を、加算重みに応じて加算もしくは加重平均して処理後の画像を得る加算装置とを有し、
複数の撮影条件の各撮影条件での画素値に対応するノイズ量の関係が予め保持されており、現在の撮影条件に応じてテーブルを規定して加算重みを設定する画像処理装置である。
この発明は、時間的に連続する第1、第2および第3静止画を使用して、ノイズが軽減された画像を生成する画像処理装置であって、
動き補償装置と、判定装置と、加算装置とを備え、
動き補償装置によって、第2静止画に対し、ブロック単位の動き補償を行い、
判定装置によって、第1静止画と動き補償を行った第2静止画との画素差分絶対値に対して第1加算重みを設定するテーブルを生成し、テーブルを使用して第1加算重みを設定し、
加算装置によって、第1静止画および動き補償を行った第2静止画を、第1加算重みに応じて加算もしくは加重平均を行い処理後の画像を得、
動き補償装置によって、第3静止画に対し、ブロック単位の動き補償を行い、
判定装置によって、第1静止画と処理後の画像と動き補償を行った第3静止画との画素差分絶対値に対して第2加算重みを設定するテーブルを生成し、テーブルを使用して第2加算重みを設定し、
加算装置によって、処理後の画像および動き補償を行った第3静止画を、第2加算重みに応じて加算もしくは加重平均を行い処理後の画像を得
複数の撮影条件の各撮影条件での画素値に対応するノイズ量の関係が予め保持されており、現在の撮影条件に応じてテーブルを規定して第1加算重みおよび第2加算重みを設定するようにした画像処理装置である。
The present invention is an image processing apparatus that generates a noise-reduced image using first and second still images that are temporally continuous,
A motion compensation device that performs motion compensation on a block basis for the second still image;
A determination device that generates an addition weight for a pixel difference absolute value between the first still image and the second still image subjected to motion compensation, and sets the addition weight using the table ;
A second still image was first still and motion compensation, possess an adding device for obtaining an image after addition or weighted average processing according to the weighting factor,
This is an image processing apparatus that preliminarily stores a relationship between noise amounts corresponding to pixel values in each of a plurality of shooting conditions, and sets an addition weight by defining a table according to the current shooting conditions .
The present invention is an image processing apparatus that generates an image with reduced noise using first, second, and third still images that are temporally continuous,
A motion compensation device, a determination device, and an addition device;
The motion compensation device performs motion compensation for each block on the second still image,
The determination device generates a table for setting the first addition weight for the pixel difference absolute value between the first still image and the second still image subjected to motion compensation, and sets the first addition weight using the table. And
The addition device performs addition or weighted averaging on the first still image and the second still image subjected to motion compensation according to the first addition weight to obtain a processed image,
The motion compensation device performs motion compensation for each block on the third still image,
The determination device generates a table for setting the second addition weight for the pixel difference absolute value between the first still image, the processed image, and the third still image subjected to motion compensation. Set 2 addition weights,
By the addition device, the processed image and the third still image subjected to motion compensation are added or weighted averaged according to the second addition weight to obtain a processed image ,
The relationship between the noise amounts corresponding to the pixel values under each of the plurality of shooting conditions is held in advance, and a first addition weight and a second addition weight are set by defining a table according to the current shooting conditions. An image processing apparatus configured as described above.

この発明は、単位時間間隔で入力される動画に対して、ノイズ軽減を行う画像処理装置であって、
動き補償装置と、判定装置と、加算装置とを備え、
動き補償装置によって、1単位時間前の処理後の画像の画素差分絶対値に対して加算重みを設定するテーブルを生成し、テーブルをに対し、ブロック単位の動き補償を行い、
判定装置によって、現在の動画と動き補償を行った1単位時間前の処理後の画像との画素差分絶対値に対して加算重みを設定するテーブルを生成し、テーブルを使用して加算重みを設定し、
加算装置によって、現在の動画および動き補償を行った1単位時間前の処理後の画像を、加算重みに応じて加算もしくは加重平均して、現在の動画に対応する処理後の画像を得
複数の撮影条件の各撮影条件での画素値に対応するノイズ量の関係が予め保持されており、現在の撮影条件に応じてテーブルを規定して加算重みを設定するようにした画像処理装置である。
この発明は、単位時間間隔で入力される動画に対して、ノイズ軽減を行う画像処理装置であって、
動き補償装置と、判定装置と、加算装置とを備え、
現在の動画と1単位時間前の処理後の画像とからブロック単位の動きベクトルを求め、1単位時間前の処理後の画像と、2単位時間前の動き補償後の画像に対し、動きベクトルによって動き補償を行い、
現在の動画と動き補償を行った1単位時間前の処理後の画像との画素差分絶対値に対して第1加算重みを設定するテーブルを生成し、テーブルを使用して撮影条件に基づくノイズ量とを使用して第1加算重みを設定し、
現在の動画および動き補償を行った1単位時間前の処理後の画像を、第1加算重みに応じて加算もしくは加重平均して、第1の処理後の画像を得、
動き補償された2単位時間前の動き補償後の画像と第1の処理後の画像との画素差分絶対値に対して第2加算重みを設定するテーブルを生成し、テーブルを使用して第2加算重みを設定し、
動き補償された2単位時間前の動き補償後の画像および第1の処理後の画像を、第2加算重みに応じて加算もしくは加重平均して、現在の動画に対応する第2の処理後の画像を得
複数の撮影条件の各撮影条件での画素値に対応するノイズ量の関係が予め保持されており、現在の撮影条件に応じてテーブルを規定して第1加算重みおよび第2加算重みを設定するようにした画像処理装置である。
The present invention is an image processing apparatus that performs noise reduction on a moving image input at unit time intervals,
A motion compensation device, a determination device, and an addition device;
A motion compensation device generates a table for setting an addition weight for the pixel difference absolute value of the image after processing one unit time ago, and performs block-unit motion compensation on the table ,
The determination device generates a table for setting the addition weight for the absolute value of the pixel difference between the current moving image and the image after processing one unit time before the motion compensation, and sets the addition weight using the table. And
By the addition device, the processed image corresponding to the current moving image is obtained by adding or weighted average the current moving image and the processed image one unit time before performing motion compensation according to the addition weight ,
An image processing apparatus in which a relationship between noise amounts corresponding to pixel values in each shooting condition of a plurality of shooting conditions is held in advance, and an addition weight is set by defining a table according to the current shooting conditions is there.
The present invention is an image processing apparatus that performs noise reduction on a moving image input at unit time intervals,
A motion compensation device, a determination device, and an addition device;
A motion vector in block units is obtained from the current moving image and the image after processing one unit time ago, and the motion vector is obtained for the image after processing one unit time ago and the image after motion compensation two units time ago. Motion compensation,
Generate a table for setting the first addition weight for the pixel difference absolute value between the current moving image and the processed image one unit time before the motion compensation , and use the table to generate a noise amount based on the shooting conditions And set the first addition weight using
The current image and the processed image one unit time before performing the motion compensation are added or weighted average according to the first addition weight to obtain the first processed image,
A table for setting the second addition weight is generated for the pixel difference absolute value between the motion-compensated image after motion compensation 2 units before and the image after the first processing. Set the addition weight,
The motion-compensated image after motion compensation 2 units before and the image after the first processing are added or weighted averaged according to the second addition weight, and after the second processing corresponding to the current moving image Get an image ,
The relationship between the noise amounts corresponding to the pixel values under each of the plurality of shooting conditions is held in advance, and a first addition weight and a second addition weight are set by defining a table according to the current shooting conditions. An image processing apparatus configured as described above.

この発明によれば、低照度下での撮影時にカメラの移動や動被写体についてもノイズ軽減効果を得ることができる。この発明では、画素単位で加算判定を行うことによって高精度のノイズ軽減を行うことができる。また、ブロック歪みの発生を抑えることができ、さらに、平坦部に生じる大きなサイズの色ノイズを軽減することができる。   According to the present invention, it is possible to obtain a noise reduction effect even with respect to movement of a camera or a moving subject during shooting under low illuminance. In the present invention, highly accurate noise reduction can be performed by performing addition determination in units of pixels. In addition, occurrence of block distortion can be suppressed, and color noise of a large size generated in the flat portion can be reduced.

以下、この発明の一実施の形態による画像処理装置を備える撮像装置の一例を示す。撮像装置について図面を参照しながら説明する。一実施の形態の全体の構成が図1に示されている。撮像光学系(図示せず)を介された被写体光が撮像素子101に入射される。   Hereinafter, an example of an imaging apparatus including an image processing apparatus according to an embodiment of the present invention will be described. The imaging device will be described with reference to the drawings. The overall configuration of one embodiment is shown in FIG. Subject light is incident on the image sensor 101 via an imaging optical system (not shown).

撮像光学系は、被写体の拡大/縮小を行うためのズームレンズ、焦点距離を調整するためのフォーカスレンズ、光量を調整するためのアイリス(絞り)、ND(Neutral Density)フィルタ、並びにこれらのレンズおよびアイリスを駆動する駆動回路を備えている。ズ
ームレンズ、フォーカスレンズ、IRIS、およびNDフィルタは、図示しないが、ドライバにより駆動される。
An imaging optical system includes a zoom lens for enlarging / reducing an object, a focus lens for adjusting a focal length, an iris (aperture) for adjusting a light amount, an ND (Neutral Density) filter, and these lenses and A drive circuit for driving the iris is provided. Although not shown, the zoom lens, focus lens, IRIS, and ND filter are driven by a driver.

撮像素子101は、CCD(Charge Coupled Device)、CMOS(Complementary Metal Oxide Semiconductor)等である。撮像素子101によって被写体光に応じた撮像信号が
捕捉される。なお 撮像装置の一例は、動画および静止画の撮影が可能なカムコーダ(カメラおよびレコーダの意味)であるが、静止画ディジタルカメラ、PDA(Personal Digital Assistants)、携帯電話機等であっても良い。
The image sensor 101 is a CCD (Charge Coupled Device), a CMOS (Complementary Metal Oxide Semiconductor), or the like. An imaging signal corresponding to subject light is captured by the imaging element 101. An example of the imaging device is a camcorder (meaning a camera and a recorder) capable of shooting a moving image and a still image, but may be a still image digital camera, a PDA (Personal Digital Assistants), a mobile phone, or the like.

撮像素子101は、原色系と補色系のいずれでもよく、入射された被写体像を光電変換したRGB各色の原色信号または補色系の撮像信号の色信号ごとに、サンプルホールドされ、AGC(Automatic Gain Control)によってゲインが制御され、A/D変換によって
デジタル信号とされた撮像信号(ロウデータと称する)を出力する。撮像素子101からのロウデータがIC(Integrated Circuit) として構成されたカメラ信号処理部102に
供給される。カメラ信号処理部102において、現像処理や輝度、色差信号への変換処理がなされる。
The image sensor 101 may be either a primary color system or a complementary color system, and is sampled and held for each RGB primary color signal obtained by photoelectrically converting an incident subject image or a color signal of a complementary color image signal, and AGC (Automatic Gain Control). ) To control the gain and output an imaging signal (referred to as row data) converted to a digital signal by A / D conversion. Raw data from the image sensor 101 is supplied to a camera signal processing unit 102 configured as an IC (Integrated Circuit). In the camera signal processing unit 102, development processing and conversion processing into luminance and color difference signals are performed.

カメラ信号処理部102からの入力画像信号がノイズ軽減装置103に供給され、ノイズ軽減処理がなされる。ノイズ軽減装置103からは、ノイズが軽減された出力画像信号が得られる。ノイズ軽減装置103に対して、カメラ制御部(マイクロコンピュータで構成される)104からノイズ量推定に用いる撮影条件情報が供給される。撮影条件情報は、撮影モード、露光時間、ゲイン等である。   An input image signal from the camera signal processing unit 102 is supplied to the noise reduction device 103, and noise reduction processing is performed. From the noise reduction device 103, an output image signal with reduced noise is obtained. Imaging condition information used for noise amount estimation is supplied to the noise reduction apparatus 103 from a camera control unit (configured by a microcomputer) 104. The shooting condition information includes a shooting mode, an exposure time, a gain, and the like.

図2は、ノイズ軽減装置103の一例を示す。ノイズ軽減装置103は、フレームメモリ201、動き予測装置202、動き補償装置203、加算判定装置204、加算装置205、隠れ領域処理装置206を有する。   FIG. 2 shows an example of the noise reduction apparatus 103. The noise reduction apparatus 103 includes a frame memory 201, a motion prediction apparatus 202, a motion compensation apparatus 203, an addition determination apparatus 204, an addition apparatus 205, and a hidden area processing apparatus 206.

ノイズ軽減装置103の各構成要素について説明する。動き予測装置202に対して基準画および参照画が入力される。動き予測装置202は、画像サイズにより指定されたブロック単位に入力する参照画を基準画に対して位置合わせを行い、ブロック単位の動きベクトルMVを出力する。動きベクトルMVは、基準画に対する参照画の動きの量と方向を示す。例えばブロックマッチング法によって動きベクトルMVを検出することができる。ブロックの大きさとして、例えばマクロブロックを使用することができる。   Each component of the noise reduction apparatus 103 will be described. A standard image and a reference image are input to the motion prediction device 202. The motion prediction apparatus 202 aligns the reference image input in block units designated by the image size with respect to the standard image, and outputs a motion vector MV in block units. The motion vector MV indicates the amount and direction of movement of the reference image with respect to the base image. For example, the motion vector MV can be detected by a block matching method. As the block size, for example, a macro block can be used.

動き補償装置203は、動きベクトルMVに応じて入力する画像の動き補償を行い、動き補償画像(MC画と適宜称する)を出力する。この際、一組の画像間で求めた動きベクトルMVに対し、入力画像をスイッチSWによって切り替え、スイッチSWで選択された画像の動き補償を行うこともある。スイッチSWは、参照画と前フレームのMC画との一方を選択して動き補償装置203に入力する。   The motion compensation device 203 performs motion compensation of an input image according to the motion vector MV, and outputs a motion compensated image (referred to as an MC image as appropriate). At this time, the input image may be switched by the switch SW with respect to the motion vector MV obtained between a pair of images, and motion compensation of the image selected by the switch SW may be performed. The switch SW selects one of the reference image and the MC image of the previous frame and inputs the selected image to the motion compensation device 203.

MC画が加算判定装置204および加算装置205に供給される。基準画が加算判定装置204および加算装置205に供給される。さらに、カメラ制御部からの撮影条件情報が加算判定装置204に供給される。加算装置205は、加算判定装置204にて形成された加算重みを使用して重み付け加算を行う。   The MC image is supplied to the addition determination device 204 and the addition device 205. The reference image is supplied to the addition determination device 204 and the addition device 205. Furthermore, shooting condition information from the camera control unit is supplied to the addition determination device 204. The addition device 205 performs weighted addition using the addition weight formed by the addition determination device 204.

この発明は、静止画および動画の両者のノイズ軽減に対して適用できる。例えば静止画撮影時には、複数枚の静止画を連写する。撮像装置の最速の連写速度で連写がなされる。撮像素子101がCCDの場合には、例えば毎秒2枚程度の速度で連写がなされ、撮像素子101がCMOSの場合には、例えば毎秒30〜60枚程度の速度で連写がなされる。この場合には、最初に撮影された画像が基準画とされ、2番目に撮影された画像が参照画とされ、参照画が動きベクトルMVで動き補償されてMC画が形成され、基準画とMC画とが加算判定装置204からの加算重みを使用して加算装置205で加算され、ノイズ軽減された画像(NR画と適宜称する)が形成される。   The present invention can be applied to noise reduction of both still images and moving images. For example, during still image shooting, a plurality of still images are continuously shot. Continuous shooting is performed at the fastest continuous shooting speed of the imaging apparatus. When the image sensor 101 is a CCD, for example, continuous shooting is performed at a speed of about 2 sheets per second, and when the image sensor 101 is a CMOS, for example, continuous shooting is performed at a speed of about 30 to 60 sheets per second. In this case, the first photographed image is the reference image, the second photographed image is the reference image, the reference image is motion compensated with the motion vector MV, and the MC image is formed. The MC image and the MC image are added by the addition device 205 using the addition weight from the addition determination device 204 to form an image with reduced noise (referred to as an NR image as appropriate).

加算装置205から出力される第1番目のNR画がフレームメモリ201に記憶される。第1番目のNR画が基準画として扱われ、第2番目の撮影画像が参照画として扱われ、これらの2枚の画像によって上述したのと同様のノイズ軽減動作がなされる。ノイズ軽減動作を繰り返すことによって、ランダムノイズ成分が減少される。   The first NR image output from the adding device 205 is stored in the frame memory 201. The first NR image is treated as a standard image, the second captured image is treated as a reference image, and the noise reduction operation similar to that described above is performed by these two images. By repeating the noise reduction operation, the random noise component is reduced.

隠れ領域処理装置206に対して基準画およびMC画が供給される。隠れ領域処理装置206は、基準画に対して時間的に1枚以上離れた画のMC画を参照画として用いる時、信頼度の低い隠れ領域のMC部分の画質の劣化の伝播を抑えるために設けられている。処理後の画像がフレームメモリ201に格納される。   The reference image and the MC image are supplied to the hidden area processing device 206. The hidden area processing device 206 suppresses the propagation of image quality degradation of the MC part of the hidden area with low reliability when using the MC image that is one or more images away from the standard image as a reference image. Is provided. The processed image is stored in the frame memory 201.

加算装置205で使用される加算重みが画素単位で加算判定装置204にて形成される。加算重みは、加算の信頼度を表す。すなわち、基準画とMC画の間で、動き補償の正しさを判定し、基準画とMC画とを加算した際に劣化を生じさせずに、ノイズを低減させるような画素を信頼度が高いとする。具体的には、異なる時間で撮影した画像中で、同一物体の同一部分を撮影した画素同士を加算した際は、加算により時間に無相関なノイズを低減できるため、信頼度が高いと言える。信頼度は、言い換えると、同一の画像に対してノイズが重畳されているのか、または異なる画像に対してノイズが重畳されているのかを表しており、可能な限りノイズ量のみに対応して加算重みが形成されることが高精度のノイズ軽減処理にとって必要とされる。加算重みは、信頼度が低いと0、信頼度が高いと1の値を持つものとされる。後述するように、基準画とMC画との加重平均が加算装置205で計算されるが、加重平均の重みは、加算重みに帰還率を乗じた値である。例えば帰還率を1/3に設定すれば、加算重みが0〜1に変化する際に、加重平均でのMC画に対する重みが0〜1/3で変化することになる。   The addition weight used by the adder 205 is formed by the adder determiner 204 on a pixel-by-pixel basis. The addition weight represents the reliability of addition. That is, the correctness of motion compensation is determined between the reference image and the MC image, and the pixel that reduces noise without causing deterioration when the reference image and the MC image are added has high reliability. And Specifically, when pixels obtained by photographing the same part of the same object in images taken at different times are added, noise uncorrelated to time can be reduced by the addition, and thus it can be said that the reliability is high. In other words, the reliability indicates whether noise is superimposed on the same image or whether noise is superimposed on different images, and is added corresponding to only the amount of noise as much as possible. The formation of weights is required for highly accurate noise reduction processing. The addition weight has a value of 0 when the reliability is low and 1 when the reliability is high. As will be described later, the weighted average of the reference image and the MC image is calculated by the adding device 205. The weighted average weight is a value obtained by multiplying the addition weight by the feedback rate. For example, if the feedback rate is set to 1/3, when the addition weight changes from 0 to 1, the weight for the MC image in the weighted average changes from 0 to 1/3.

加算判定装置204の一例を図3に示す。加算判定装置204は、同様の判定部が輝度信号Yと、二つの色差信号Cb,Crとのそれぞれについて設けられている。輝度信号Yに関する判定部の構成について最初に説明する。   An example of the addition determination device 204 is shown in FIG. In the addition determination device 204, a similar determination unit is provided for each of the luminance signal Y and the two color difference signals Cb and Cr. First, the configuration of the determination unit related to the luminance signal Y will be described.

基準画およびMC画の空間的に同一位置の画素データがプレフィルタ300および301を介して減算器302に供給され、画素値の差が演算され、絶対値演算器303にて絶対値に変換される。プレフィルタ300および301は、画像中の高周波成分をカットし加算判定の効果を向上させる。絶対値演算器303は入力信号の絶対値を出力する。差の絶対値が画素加算判定器304に供給される。   Pixel data at the same spatial position of the reference image and the MC image is supplied to the subtracter 302 via the pre-filters 300 and 301, the difference between the pixel values is calculated, and converted into an absolute value by the absolute value calculator 303. The The pre-filters 300 and 301 cut high frequency components in the image and improve the effect of addition determination. The absolute value calculator 303 outputs the absolute value of the input signal. The absolute value of the difference is supplied to the pixel addition determiner 304.

画素加算判定器304には、ノイズ量推定器305の出力信号が供給される。ノイズ量推定器305は、画素値に対応したノイズ量を推定し、また、画像中のノイズ量に影響を与える撮影モードや露光時間、ゲイン情報といった撮影条件情報を外部から入力し、予め各条件で測定した輝度値とノイズ量の関係のデータをテーブルとして有する。このテーブルから、該当条件の輝度値とノイズ量の関係を求め、入力した輝度値に対応するノイズ量を出力する。   An output signal of the noise amount estimator 305 is supplied to the pixel addition determiner 304. The noise amount estimator 305 estimates the amount of noise corresponding to the pixel value, and inputs shooting condition information such as a shooting mode, exposure time, and gain information that affects the noise amount in the image from the outside. The data of the relationship between the luminance value measured in step 1 and the noise amount is included as a table. From this table, the relationship between the luminance value of the corresponding condition and the noise amount is obtained, and the noise amount corresponding to the input luminance value is output.

例えば露光時間が長くなると、ランダムノイズが増加する傾向がある。また、撮像信号を増幅するゲインが大きくなると、ランダムノイズが増加する傾向がある。したがって、撮影条件としてシャッター速度および/またはゲインの情報を使用し、予めシャッター速度および/またはゲインのそれぞれに対応して画素値とノイズ量とのテーブルを作成して用意しておく。さらに、撮像装置が備えている撮影モードを撮影条件として使用しても良い。なお、撮影条件は、例えばフレームごとに設定される。   For example, when the exposure time becomes longer, random noise tends to increase. Further, when the gain for amplifying the imaging signal is increased, the random noise tends to increase. Therefore, the shutter speed and / or gain information is used as shooting conditions, and a table of pixel values and noise amounts corresponding to each of the shutter speed and / or gain is prepared and prepared in advance. Furthermore, a shooting mode provided in the imaging apparatus may be used as a shooting condition. Note that shooting conditions are set for each frame, for example.

図4は、ノイズ量推定器305が備えている画素値対ノイズ量のテーブルを概念的に示している。異なる撮影条件1から撮影条件Nのそれぞれに関して画素値とノイズ量の関係が規定されている。ノイズ量推定器305は、画像中のノイズ量に影響を与える撮影モード、シャッター速度(露光時間)、ゲイン等を撮影条件情報としてカメラ制御部104から入力し、予め各撮影条件で測定した輝度値とノイズ量の関係のデータから、該当条件の輝度値とノイズ量の関係を求め、該当撮影条件での入力輝度値に対応するノイズ量を出力する。   FIG. 4 conceptually shows a pixel value versus noise amount table provided in the noise amount estimator 305. The relationship between the pixel value and the amount of noise is defined for each of the different shooting conditions 1 to N. The noise amount estimator 305 inputs a shooting mode that affects the amount of noise in an image, a shutter speed (exposure time), a gain, and the like as shooting condition information from the camera control unit 104, and is a luminance value measured in advance under each shooting condition. The relationship between the luminance value of the corresponding condition and the noise amount is obtained from the relationship between the noise amount and the noise amount, and the noise amount corresponding to the input luminance value under the corresponding photographing condition is output.

ノイズ量推定器305からのノイズ量と絶対値演算器303からの画素値(輝度)の差分絶対値とが画素加算判定器304に供給される。差分絶対値が画素加算判定器304に対する入力指標値である。画素加算判定器304が指標値に対応する加算の信頼度である加算重みを出力する。   The noise amount from the noise amount estimator 305 and the absolute difference value of the pixel value (luminance) from the absolute value calculator 303 are supplied to the pixel addition determiner 304. The absolute difference value is an input index value for the pixel addition determination unit 304. The pixel addition determination unit 304 outputs an addition weight that is the reliability of addition corresponding to the index value.

図5に画素加算判定器の一例を示す。輝度画素加算判定器304は、ノイズ量推定器305からのノイズ量を判定閾値へ変換する変換器601と判定曲線生成器602と加算判定器603からなる。変換器601は、視覚特性に基づき決定されたテーブルを用いてノイズ量を判定閾値に変換し、判定閾値を出力する。判定閾値に応じて判定曲線の形状が決定される。判定曲線は、誤差量を表す入力指標値と、誤差に対する信頼度を表す加算重みとの対応を表す判定曲線の形状を現す。   FIG. 5 shows an example of the pixel addition determiner. The luminance pixel addition determination unit 304 includes a converter 601, a determination curve generator 602, and an addition determination unit 603 that convert the noise amount from the noise amount estimator 305 into a determination threshold value. The converter 601 converts the noise amount into a determination threshold using a table determined based on the visual characteristics, and outputs the determination threshold. The shape of the determination curve is determined according to the determination threshold. The determination curve represents the shape of a determination curve representing the correspondence between the input index value representing the error amount and the addition weight representing the reliability with respect to the error.

図6に使用可能な判定曲線のいくつかの例を示す。各曲線を示すグラフの横軸が入力指標値であり、縦軸が指標値に対する加算重みを示す。各曲線において、加算重みが1から変化する指標値の値と、加算重みが0なる指標値の値とが判定閾値である。判定閾値の大きさがノイズ量に応じた値とされる。ノイズ量が多いと、判定閾値がより大きな指標値とされる。   FIG. 6 shows some examples of determination curves that can be used. The horizontal axis of the graph showing each curve is the input index value, and the vertical axis indicates the addition weight for the index value. In each curve, an index value value at which the addition weight changes from 1 and an index value value at which the addition weight is 0 are determination threshold values. The magnitude of the determination threshold is a value corresponding to the amount of noise. When the amount of noise is large, the determination threshold is set to a larger index value.

判定曲線生成器602は、変換器601の出力である判定閾値を用いて、判定曲線を決定し出力する。判定曲線は、例えばテーブルとして構成されてメモリに格納される。この判定曲線を用いて加算判定器603が指標値を入力し、その指標値に対応する加算重みを出力する。この加算重みが画素加算判定器304から乗算器306に供給される。加算判定器304の一連の変換、計算および判定は、画素単位に画素値に応じたノイズ量を用いて生成する判定曲線を用いるので、画素単位で行われる。   The determination curve generator 602 determines and outputs a determination curve using the determination threshold value that is the output of the converter 601. The determination curve is configured as a table, for example, and stored in the memory. The addition determination unit 603 inputs an index value using this determination curve, and outputs an addition weight corresponding to the index value. This addition weight is supplied from the pixel addition determination unit 304 to the multiplier 306. The series of conversion, calculation, and determination of the addition determination unit 304 is performed in units of pixels because a determination curve generated using a noise amount corresponding to the pixel value is used in units of pixels.

図7に示す判定曲線の一例は、判定閾値1までの指標値に対しては出力(指標値に対する加算重み)が1であり、判定閾値1から判定閾値2までの間では、指標値に対して加算重みが徐々に0に向かって減少する。判定閾値1および判定閾値2によって、判定曲線の形状が規定される。ノイズ量が多いと、判定閾値1および判定閾値2に対応する指標値が大きな値とされる。図7に示す判定曲線によって、入力指標値が対応する加算重みに変換されて出力される。   In the example of the determination curve shown in FIG. 7, the output (addition weight to the index value) is 1 for the index value up to the determination threshold 1, and the index value is between the determination threshold 1 and the determination threshold 2. Thus, the addition weight gradually decreases toward zero. The determination threshold 1 and the determination threshold 2 define the shape of the determination curve. When the amount of noise is large, the index values corresponding to the determination threshold value 1 and the determination threshold value 2 are large. By the determination curve shown in FIG. 7, the input index value is converted into a corresponding addition weight and output.

加算判定器304から出力される加算重みが乗算器306に供給され、輝度信号の移動平均に関して、上述した画素差分絶対値と同様に求めた加算重みと乗算される。乗算器306の出力が乗算器325に供給され、輝度信号の移動分散に関して、上述した画素差分絶対値と同様に求めた加算重みと乗算される。さらに、乗算器325の出力が乗算器326に供給され、色信号の画素、移動平均および移動分散に関して求めた加算重みと乗算される。乗算器326の出力に加算判定装置204の生成した加算重みが取り出される。この加算重みが加算装置205に供給される。   The addition weight output from the addition determination unit 304 is supplied to the multiplier 306, and the moving average of the luminance signal is multiplied by the addition weight obtained in the same manner as the above-described pixel difference absolute value. The output of the multiplier 306 is supplied to the multiplier 325 and multiplied by the addition weight obtained in the same manner as the pixel difference absolute value described above with respect to the moving variance of the luminance signal. Further, the output of the multiplier 325 is supplied to the multiplier 326, and is multiplied by the addition weight obtained with respect to the pixel, moving average, and moving variance of the color signal. The addition weight generated by the addition determination device 204 is extracted from the output of the multiplier 326. This addition weight is supplied to the addition device 205.

次に、指標値が輝度信号の移動平均差分絶対値および移動分散差分絶対値の場合について説明する。図3に示すように、基準画およびMC画の空間的に同一位置の画素データがプレフィルタ300および301を介して移動平均演算器310および311に供給される。同様に、基準画およびMC画の空間的に同一位置の画素データがプレフィルタ300および301を介して移動分散演算器320および321に供給される。   Next, the case where the index value is the moving average difference absolute value and the moving variance difference absolute value of the luminance signal will be described. As shown in FIG. 3, pixel data at the same spatial position of the reference image and the MC image are supplied to the moving average calculators 310 and 311 via the pre-filters 300 and 301. Similarly, pixel data at the same spatial position of the reference image and the MC image are supplied to the moving dispersion calculators 320 and 321 via the prefilters 300 and 301.

移動平均演算器310および311は、計算する画素(中心画素)を中心とする矩形領域例えば(5×5)画素の領域内の画素値の移動平均を計算する。中心画素の移動に応じ、矩形領域を前画素の計算領域とオーバーラップさせながらずらして移動平均の演算を行う。移動分散演算器320および321は、計算する画素(中心画素)を中心とする矩形領域の領域内の画素値の分散を計算する。中心画素の移動に応じ、矩形領域を前画素の計算領域とオーバーラップさせながらずらして移動分散の演算を行う。   The moving average calculators 310 and 311 calculate a moving average of pixel values in a rectangular area centered on a pixel to be calculated (center pixel), for example, an area of (5 × 5) pixels. In accordance with the movement of the center pixel, the moving area is calculated by shifting the rectangular area while overlapping the calculation area of the previous pixel. The moving variance calculators 320 and 321 calculate the variance of pixel values within a rectangular area centered on the pixel to be calculated (center pixel). According to the movement of the central pixel, the movement distribution is calculated by shifting the rectangular area while overlapping the calculation area of the previous pixel.

移動平均および移動分散に関して加算重みを求めるのは、ノイズ量の減少をより正確に行うためである。例えば複数画素の領域の移動平均または移動分散が異なっている時には、画素値の差分絶対値をノイズと判定するよりも、画像が相違しているものと判定する方がより正しい場合が多いからである。   The reason why the addition weight is obtained with respect to the moving average and moving variance is to more accurately reduce the amount of noise. For example, when moving averages or moving variances of multiple pixel areas are different, it is often more correct to determine that the images are different than to determine the absolute difference of pixel values as noise. is there.

移動平均演算器310および311の出力信号が減算器312に供給され、移動分散演算器320および321の出力信号が減算器322に供給され、移動平均の差および移動分散の差がそれぞれ演算され、絶対値演算器313および323にて絶対値に変換される。絶対値演算器313は移動平均の差信号の絶対値を出力し、絶対値演算器323は移動分散の差信号の絶対値を出力する。差の絶対値が移動平均加算判定器314および移動分散加算判定器324にそれぞれ供給される。   The output signals of the moving average calculators 310 and 311 are supplied to the subtractor 312, the output signals of the moving dispersion calculators 320 and 321 are supplied to the subtractor 322, and the difference of the moving average and the difference of the moving variance are respectively calculated. The absolute value calculators 313 and 323 convert the absolute value. The absolute value calculator 313 outputs the absolute value of the moving average difference signal, and the absolute value calculator 323 outputs the absolute value of the moving variance difference signal. The absolute value of the difference is supplied to the moving average addition determiner 314 and the moving variance addition determiner 324, respectively.

移動平均加算判定器314および移動分散加算判定器324には、ノイズ量推定器305の出力信号が供給される。移動平均加算判定器314および移動分散加算判定器324は、それぞれ画素加算判定器304(図5参照)と同様の構成とされ、ノイズ量を変換した判定閾値により判定曲線(テーブル)を生成する。この判定曲線の指標値として、移動平均差分絶対値および移動分散差分絶対値を与えることによって、加算重みが求められる。輝度信号の移動平均加算判定器314からの加算重みが乗算器306に供給され、輝度信号の移動分散加算判定器324からの加算重みが乗算器325に供給される。   The output signal of the noise amount estimator 305 is supplied to the moving average addition determiner 314 and the moving variance addition determiner 324. The moving average addition determiner 314 and the moving variance addition determiner 324 have the same configuration as the pixel addition determiner 304 (see FIG. 5), respectively, and generate a determination curve (table) based on a determination threshold obtained by converting the amount of noise. An addition weight is obtained by giving a moving average difference absolute value and a moving variance difference absolute value as index values of the determination curve. The addition weight from the moving average addition determination unit 314 for the luminance signal is supplied to the multiplier 306, and the addition weight from the moving dispersion addition determination unit 324 for the luminance signal is supplied to the multiplier 325.

以上が輝度信号の画素差分絶対値、移動平均差分絶対値、および移動分散差分絶対値をそれぞれ指標値として加算重みを求める処理である。色信号に関しても同様に、加算重みが求められる。コンポーネントカラービデオ信号の場合、(4:2:0)、(4:2:2)、(4:1:1)のように、輝度信号Yに関するサンプリング周波数と、色差信号Cbに関するサンプリング周波数と、色差信号Crに関するサンプリング周波数との比が表される。色差信号CbおよびCrのそれぞれに関して、上述した輝度信号Yと同様に、加算重みが求められる。   The above is the processing for obtaining the addition weight using the pixel difference absolute value, moving average difference absolute value, and moving variance difference absolute value of the luminance signal as index values. Similarly, addition weights are obtained for color signals. In the case of a component color video signal, as in (4: 2: 0), (4: 2: 2), (4: 1: 1), a sampling frequency related to the luminance signal Y, a sampling frequency related to the color difference signal Cb, The ratio with the sampling frequency regarding the color difference signal Cr is represented. For each of the color difference signals Cb and Cr, an addition weight is obtained in the same manner as the luminance signal Y described above.

輝度信号と色差信号Cb,Crとは、画像上の同一の領域に関して加算重みの生成処理が行われる。上述したサンプリング周波数の比から分かるように、輝度信号Yに関して求められた加算重みに比して色差信号Cr,Cbに関して求められた加算重みの数が不足する。この問題を解決するために、補間を行うアップサンプリング回路527が設けられ、アップサンプリング回路527からの色差信号に関する加算重みが乗算器326に供給され、輝度信号に関する加算重みと乗算される。   The luminance signal and the color difference signals Cb and Cr are subjected to addition weight generation processing for the same region on the image. As can be seen from the ratio of the sampling frequencies described above, the number of addition weights obtained for the color difference signals Cr and Cb is insufficient compared to the addition weight obtained for the luminance signal Y. In order to solve this problem, an up-sampling circuit 527 that performs interpolation is provided, and the addition weight related to the color difference signal from the up-sampling circuit 527 is supplied to the multiplier 326 and multiplied by the addition weight related to the luminance signal.

色差信号Cbに関する処理について説明する。基準画の色差信号Cbがプレフィルタ400を介してノイズ量推定器405に供給される。ノイズ量推定器405に撮影条件情報が供給される。ノイズ量推定器405は、輝度信号に関するノイズ量推定器305と同様に各撮影条件に応じた画素値とノイズ量との関係を示すテーブルによって、ノイズ推定器405からノイズ量の推定値を出力する。ノイズ量の推定値が画素加算判定器404に対して出力される。   Processing related to the color difference signal Cb will be described. The color difference signal Cb of the reference image is supplied to the noise amount estimator 405 via the prefilter 400. Imaging condition information is supplied to the noise amount estimator 405. The noise amount estimator 405 outputs an estimated value of the noise amount from the noise estimator 405 by using a table indicating the relationship between the pixel value and the noise amount corresponding to each shooting condition, similarly to the noise amount estimator 305 regarding the luminance signal. . The estimated value of the noise amount is output to the pixel addition determination unit 404.

基準画の色差信号CbおよびMC画の色差信号Cbがそれぞれプレフィルタ400および401を介して減算器402に供給され、減算器402の出力が絶対値演算器403により絶対値に変換され、画素加算判定器404によって画素差分絶対値を指標値とする加算重みが求められる。画素加算判定器404が上述した画素加算判定器304(図5参照)と同様の構成とされ、画素加算判定器404が指標値(画素差分絶対値)に対応する加算の信頼度である加算重みを出力する。   The color difference signal Cb of the reference image and the color difference signal Cb of the MC image are supplied to the subtractor 402 via the pre-filters 400 and 401, respectively, and the output of the subtractor 402 is converted into an absolute value by the absolute value calculator 403, and the pixel addition The determination unit 404 obtains an addition weight using the pixel difference absolute value as an index value. The pixel addition determination unit 404 has the same configuration as the pixel addition determination unit 304 (see FIG. 5) described above, and the pixel addition determination unit 404 has an addition weight that is the reliability of addition corresponding to the index value (pixel difference absolute value). Is output.

次に、指標値が色差信号Cbの移動平均差分絶対値および移動分散差分絶対値の場合について説明する。基準画およびMC画の空間的に同一位置の画素データがプレフィルタ400および401を介して移動平均演算器410および411に供給される。同様に、基準画およびMC画の空間的に同一位置の画素データがプレフィルタ400および401を介して移動分散演算器420および421に供給される。移動平均演算器410および411は、計算する画素(中心画素)を中心とする矩形領域内の画素値の移動平均を計算する。中心画素の移動に応じ、矩形領域を前画素の計算領域とオーバーラップさせながらずらして移動平均の演算を行う。移動分散演算器420および421は、計算する画素(中心画素)を中心とする矩形領域の領域内の画素値の分散を計算する。中心画素の移動に応じ、矩形領域を前画素の計算領域とオーバーラップさせながらずらして移動分散の演算を行う。移動平均および移動分散に関して加算重みを求めるのは、ノイズ量の減少をより正確に行うためである。   Next, the case where the index value is the moving average difference absolute value and the moving variance difference absolute value of the color difference signal Cb will be described. Pixel data at the same spatial position of the reference image and the MC image is supplied to the moving average calculators 410 and 411 via the prefilters 400 and 401. Similarly, pixel data at the same spatial position of the reference image and the MC image are supplied to the moving dispersion calculators 420 and 421 via the prefilters 400 and 401. The moving average calculators 410 and 411 calculate a moving average of pixel values in a rectangular area centered on a pixel to be calculated (center pixel). In accordance with the movement of the center pixel, the moving area is calculated by shifting the rectangular area while overlapping the calculation area of the previous pixel. The moving variance calculators 420 and 421 calculate the variance of pixel values within a rectangular area centered on the pixel to be calculated (center pixel). According to the movement of the central pixel, the movement distribution is calculated by shifting the rectangular area while overlapping the calculation area of the previous pixel. The reason why the addition weight is obtained with respect to the moving average and moving variance is to more accurately reduce the amount of noise.

移動平均演算器410および411の出力信号が減算器412に供給され、移動平均の差が演算され、移動分散演算器420および421の出力信号が減算器422に供給され、移動分散の差が演算され、絶対値演算器413および423にて絶対値に変換される。移動平均加算判定器414および移動分散加算判定器424には、ノイズ量推定器405の出力信号が供給される。移動平均加算判定器414および移動分散加算判定器424が上述した画素加算判定器304(図5参照)と同様の構成とされ、画素加算判定器414および424が移動平均差分絶対値および移動分散差分絶対値をそれぞれ指標値として、加算の信頼度である加算重みを出力する。   The output signals of the moving average calculators 410 and 411 are supplied to the subtractor 412, the difference of the moving average is calculated, the output signals of the moving dispersion calculators 420 and 421 are supplied to the subtractor 422, and the difference of the moving dispersion is calculated. The absolute value calculators 413 and 423 convert the absolute values. The output signal of the noise amount estimator 405 is supplied to the moving average addition determiner 414 and the moving variance addition determiner 424. The moving average addition determination unit 414 and the moving dispersion addition determination unit 424 have the same configuration as the pixel addition determination unit 304 (see FIG. 5), and the pixel addition determination units 414 and 424 have the moving average difference absolute value and the moving dispersion difference. Using the absolute values as index values, an addition weight that is the reliability of the addition is output.

色差信号Cbの移動平均加算判定器414からの加算重みが乗算器406に供給され、加算判定器404からの加算重みと乗算される。色差信号Cbの移動分散加算判定器424からの加算重みが乗算器425に供給され、乗算器406の出力と乗算される。   The addition weight from the moving average addition determination unit 414 of the color difference signal Cb is supplied to the multiplier 406 and is multiplied by the addition weight from the addition determination unit 404. The addition weight of the chrominance signal Cb from the moving variance addition determination unit 424 is supplied to the multiplier 425 and multiplied by the output of the multiplier 406.

他の色差信号Crに関しても上述した色差信号Cbと同様の構成が設けられている。すなわち、プレフィルタ500,501、ノイズ量推定器505、減算器502、絶対値演算器503、画素加算判定器504によって、色差信号Crの画素差分絶対値を指標値とする加算重みが求められる。色差信号Crの移動平均差分絶対値を指標値とする加算重みは、プレフィルタ500,501、ノイズ量推定器505、移動平均演算器510,511、減算器512、絶対値演算器513、移動平均加算判定器514によって求められる。色差信号Crの移動分散差分絶対値を指標値とする加算重みは、プレフィルタ500,501、ノイズ量推定器505、移動分散演算器520,521、減算器522、絶対値演算器523、移動平均加算判定器524によって求められる。   The other color difference signals Cr have the same configuration as the color difference signal Cb described above. That is, the pre-filters 500 and 501, the noise amount estimator 505, the subtractor 502, the absolute value calculator 503, and the pixel addition determiner 504 obtain addition weights using the pixel difference absolute value of the color difference signal Cr as an index value. The addition weights using the moving average difference absolute value of the color difference signal Cr as an index value are pre-filters 500 and 501, noise amount estimator 505, moving average calculators 510 and 511, subtractor 512, absolute value calculator 513, moving average. It is obtained by the addition decision unit 514. The addition weights using the moving variance difference absolute value of the chrominance signal Cr as an index value are prefilters 500 and 501, noise amount estimator 505, moving variance calculators 520 and 521, subtractor 522, absolute value calculator 523, moving average. It is obtained by the addition decision unit 524.

画素差分絶対値を指標値とする加算重みと、移動平均差分絶対値を指標値とする加算重みとが乗算器506にて乗算され、乗算器506の出力と、移動分散差分絶対値を指標値とする加算重みとが乗算器525にて乗算される。乗算器525から出力される色差信号Crに関する加算重みと、上述した色差信号Cbに関する加算重みとが乗算器526にて乗算される。乗算器526の出力がアップサンプリング回路527に供給される。アップサンプリング回路527は、色差フォーマットに応じて色差の加算重みを補間し、点数を輝度加算重みに揃える。アップサンプリング回路527の出力が乗算器326にて乗算される。乗算器326の出力が注目する画素の最終的な信頼度を示す加算重みである。加算重みは、輝度画素、輝度移動平均、輝度移動分散、色差画素、色差移動平均、色差移動分散のそれぞれの信頼度を表し、それぞれ0から1の連続値で表される。   The addition weight using the pixel difference absolute value as the index value and the addition weight using the moving average difference absolute value as the index value are multiplied by the multiplier 506, and the output of the multiplier 506 and the moving variance difference absolute value are used as the index value. Is multiplied by a multiplier 525. The multiplier 526 multiplies the addition weight related to the color difference signal Cr output from the multiplier 525 and the addition weight related to the color difference signal Cb described above. The output of the multiplier 526 is supplied to the upsampling circuit 527. The upsampling circuit 527 interpolates the color difference addition weight according to the color difference format, and aligns the score with the luminance addition weight. The output of the upsampling circuit 527 is multiplied by a multiplier 326. The output of the multiplier 326 is an addition weight indicating the final reliability of the pixel of interest. The addition weight represents the reliability of each of the luminance pixel, the luminance moving average, the luminance moving variance, the chrominance pixel, the chrominance moving average, and the chrominance moving variance, and is represented by continuous values of 0 to 1, respectively.

加算装置205の一例を図8に示す。乗算器605によって加算判定装置204の出力である加算重みに対し、MC画に対する帰還係数であるwを乗じる。乗算器605から出力される係数(αで表す)が乗算器606に供給され、MC画に乗じられる。係数αが減算器607に供給され、(1−α)が生成され、(1−α)が乗算器608に供給され、基準画に乗じられる。乗算器606および608の出力が加算器609によって加算され、加算器609からノイズ除去後の画像であるNR画が取り出される。帰還係数wは、例えば最初のフレームを0番目とし、以降のフレームを1番目、2番目、・・・・、k番目とした時に、1/(k+1)とされる。この例では、同一の画像にノイズが存在していると判断されて加算重みが最大値(1)の場合に、α=1/2となり、画像が相違していると判断されて加算重みが最小値(0)の場合に、α=0となる。   An example of the adding device 205 is shown in FIG. A multiplier 605 multiplies the addition weight, which is the output of the addition determination device 204, by w, which is a feedback coefficient for the MC image. A coefficient (represented by α) output from the multiplier 605 is supplied to the multiplier 606 and multiplied by the MC image. The coefficient α is supplied to the subtractor 607, (1-α) is generated, and (1-α) is supplied to the multiplier 608 to be multiplied by the reference image. The outputs of the multipliers 606 and 608 are added by an adder 609, and an NR image that is an image after noise removal is taken out from the adder 609. The feedback coefficient w is, for example, 1 / (k + 1) when the first frame is 0th and the subsequent frames are 1st, 2nd, ..., kth. In this example, when it is determined that noise exists in the same image and the addition weight is the maximum value (1), α = 1/2, and it is determined that the images are different and the addition weight is In the case of the minimum value (0), α = 0.

隠れ領域処理装置206の一例を図9に示す。隠れ領域処理装置206は、基準画に対して時間的に1枚以上離れた画のMC画を参照画として用いる時、信頼度の低い隠れ領域のMC部分の画質の劣化の伝播を抑えるために備えられている。図9に示すように、減算器611により基準画とMC画の差分値が求められ、減算器612において差分値から閾値Thrが減算される。減算結果がスイッチコントローラ613に供給される。信頼度の低い隠れ領域に含まれる画素は、閾値Thrよりも大きな画素、すなわち、減算結果が正として検出される。   An example of the hidden area processing device 206 is shown in FIG. The hidden area processing device 206 suppresses the propagation of image quality degradation of the MC part of the hidden area with low reliability when using the MC image that is one or more images away from the standard image as a reference image. Is provided. As shown in FIG. 9, the subtracter 611 obtains a difference value between the reference image and the MC image, and the subtractor 612 subtracts the threshold value Thr from the difference value. The subtraction result is supplied to the switch controller 613. The pixels included in the hidden area with low reliability are detected as pixels larger than the threshold Thr, that is, the subtraction result is positive.

スイッチ614の一方の入力端子に対してMC画の画素が供給され、その他方の入力端子に対して基準画の画素が供給される。スイッチ614によって、差分値が閾値Thrより大きな画素は、基準画の画素で置き換えられる。スイッチ614の出力画像がフレームメモリ201(図2参照)に格納され、スイッチ614の出力画像が次のフレームの処理において参照画として用いられる。   The MC image pixel is supplied to one input terminal of the switch 614, and the reference image pixel is supplied to the other input terminal. The switch 614 replaces the pixel having the difference value larger than the threshold value Thr with the pixel of the reference image. The output image of the switch 614 is stored in the frame memory 201 (see FIG. 2), and the output image of the switch 614 is used as a reference image in the processing of the next frame.

上述したこの発明の一実施の形態について、処理の具体例に基づいてより詳細に説明する。最初に、静止画処理例えば3枚の静止画を連写により取得し、ノイズ軽減を行う処理について図10のフローチャートおよび図11を参照して説明する。時刻t、t+1、t+2のそれぞれにおいて撮影された3枚の静止画をそれぞれOrg(t),Org(t+1),Org(t+2)として表記する。   The above-described embodiment of the present invention will be described in more detail based on a specific example of processing. First, still image processing, for example, processing for acquiring three still images by continuous shooting and performing noise reduction will be described with reference to the flowchart of FIG. 10 and FIG. 11. Three still images taken at each of times t, t + 1, and t + 2 are denoted as Org (t), Org (t + 1), and Org (t + 2), respectively.

フローチャート中の最初のステップS1において、動き予測装置202がOrg(t)を基準画とし、Org(t+1)を参照画として動き予測を行い、動きベクトルMVを得る。基準画Org(t)に対する参照画Org(t+1)の動きを示す動きベクトルMVを得る処理が図11においては、動き予測ST1として示されている。   In the first step S1 in the flowchart, the motion prediction device 202 performs motion prediction using Org (t) as a reference image and Org (t + 1) as a reference image to obtain a motion vector MV. A process for obtaining a motion vector MV indicating the motion of the reference image Org (t + 1) with respect to the base image Org (t) is shown as motion prediction ST1 in FIG.

ステップS2において、動き補償装置203が動きベクトルMVを用いて参照画Org(t+1)に対する動き補償を行い、MC画MC(t+1)を得る。図11では、MC画を得る処理がス
テップST2として示されている。
In step S2, the motion compensation device 203 performs motion compensation on the reference image Org (t + 1) using the motion vector MV, and obtains an MC image MC (t + 1). In FIG. 11, the process of obtaining the MC image is shown as step ST2.

ステップS3では、基準画Org(t)と、動き補償によって位置合わせがなされたMC画MC(t+1)とから加算判定装置204が加算判定を行い、加算重みが得られる。図11では、
加算重みを得る処理がステップST3として示されている。
In step S3, the addition determination device 204 performs addition determination from the reference image Org (t) and the MC image MC (t + 1) that has been aligned by motion compensation, and an addition weight is obtained. In FIG.
The process of obtaining the addition weight is shown as step ST3.

ステップS4では、基準画Org(t)と、MC画MC(t+1)とが加算装置205において、加
算重みによって重み付け加算される。図11では、加算処理がステップST4として示されている。加算によって、ノイズ軽減後のNR画NR(t)が得られる。
In step S4, the reference image Org (t) and the MC image MC (t + 1) are weighted and added by the addition weight in the adding device 205. In FIG. 11, the addition process is shown as step ST4. By the addition, an NR image NR (t) after noise reduction is obtained.

次に、ステップS5において、動き予測装置202がNR画NR(t)を基準画とし、静止
画Org(t+2)を参照画として動き予測を行い、動きベクトルMVを得る。基準画NR(t)に対
する参照画Org(t+2)の動きを示す動きベクトルMVを得る処理が図11においては、動き予測ST5として示されている。
Next, in step S5, the motion prediction device 202 performs motion prediction using the NR image NR (t) as a reference image and the still image Org (t + 2) as a reference image, thereby obtaining a motion vector MV. The process of obtaining the motion vector MV indicating the motion of the reference image Org (t + 2) with respect to the standard image NR (t) is shown as motion prediction ST5 in FIG.

ステップS6において、動き補償装置203が動きベクトルMVを用いて参照画Org(t+2)に対する動き補償を行い、MC画MC(t+2)を得る。図11では、MC画を得る処理がス
テップST6として示されている。
In step S6, the motion compensator 203 performs motion compensation on the reference image Org (t + 2) using the motion vector MV to obtain an MC image MC (t + 2). In FIG. 11, the process of obtaining the MC image is shown as step ST6.

ステップS7では、基準画Org(t)と、動き補償によって位置合わせがなされたMC画MC(t+2)とから加算判定装置204が加算判定を行い、加算重みが得られる。図11では、
加算重みを得る処理がステップST7として示されている。
In step S7, the addition determination device 204 performs addition determination from the reference image Org (t) and the MC image MC (t + 2) that has been aligned by motion compensation, and an addition weight is obtained. In FIG.
The process of obtaining the addition weight is shown as step ST7.

ステップS8では、基準画Org(t)と、MC画MC(t+2)とが加算装置205において、加
算重みによって重み付け加算される。図11では、加算処理がステップST8として示されている。加算によって、ノイズ軽減後のNR画NR'(t)が得られる。
In step S8, the reference image Org (t) and the MC image MC (t + 2) are weighted and added by the addition weight in the adding device 205. In FIG. 11, the addition process is shown as step ST8. By the addition, an NR image NR ′ (t) after noise reduction is obtained.

上述したように、基準画に対し、動き補償によってその他の画像を位置合わせし、基準画とMC画とを加算する。加算結果のNR画を次の処理の基準画として用い、同様の処理でNR画を得る。このように、静止画の場合では、再帰的な処理がなされる。   As described above, other images are aligned by motion compensation with respect to the reference image, and the reference image and the MC image are added. The addition result NR image is used as a reference image for the next processing, and an NR image is obtained by the same processing. Thus, in the case of a still image, recursive processing is performed.

上述した図10および図11に示す処理において、動き予測および動き補償がブロック(例えばマクロブロック)単位で行われ、加算判定処理および加算処理が画素単位で行われる。このことは、以下に説明する動画処理においても同様である。また、上述した例は、3枚の静止画を入力する例であるが、2枚または4枚以上の静止画を入力しても同様の再帰的な処理がなされる。   10 and 11 described above, motion prediction and motion compensation are performed in units of blocks (for example, macroblocks), and addition determination processing and addition processing are performed in units of pixels. The same applies to the moving image processing described below. The above-described example is an example in which three still images are input, but the same recursive processing is performed even if two or four or more still images are input.

次に、動画処理であって、2枚の動画を加算する処理について、図12のフローチャートおよび図13を参照して説明する。時刻tにおいて撮影された最新の画像(フレーム)をそれぞれOrg(t)として表記し、1フレーム前の処理後の画像をNR(t-1)と表記する。上
述した静止画処理では、連写によって複数の静止画を得ているが、動画処理では、連続的に撮影を行っており、所定のフレームレート例えば1/30秒間隔で各フレームが入力される。
Next, the moving image processing that adds two moving images will be described with reference to the flowchart of FIG. 12 and FIG. The latest image (frame) taken at time t is represented as Org (t), and the image after processing one frame before is represented as NR (t−1). In the above-described still image processing, a plurality of still images are obtained by continuous shooting, but in the moving image processing, images are continuously captured, and each frame is input at a predetermined frame rate, for example, at an interval of 1/30 seconds. .

最初のステップS11において、動き予測装置202がOrg(t)を基準画とし、NR(t-1)
を参照画として動き予測を行い、動きベクトルMVを得る。基準画Org(t)に対する参照画NR(t-1)の動きを示す動きベクトルMVを得る処理が図13においては、動き予測ST1
1として示されている。
In the first step S11, the motion prediction device 202 uses Org (t) as a reference image and NR (t-1).
As a reference picture, motion prediction is performed to obtain a motion vector MV. In FIG. 13, the process of obtaining the motion vector MV indicating the motion of the reference image NR (t-1) with respect to the reference image Org (t) is motion prediction ST1.
It is shown as 1.

ステップS12において、動き補償装置203が動きベクトルMVを用いて参照画NR(t-1)に対する動き補償を行い、MC画MC(t-1)を得る。図13では、MC画を得る処理がステップST12として示されている。   In step S12, the motion compensation device 203 performs motion compensation on the reference image NR (t-1) using the motion vector MV, and obtains an MC image MC (t-1). In FIG. 13, the process for obtaining the MC image is shown as step ST12.

ステップS13では、基準画Org(t)と、動き補償によって位置合わせがなされたMC画MC(t-1)とから加算判定装置204が加算判定を行い、加算重みが得られる。図13では
、加算重みを得る処理がステップST13として示されている。
In step S13, the addition determination device 204 performs addition determination from the reference image Org (t) and the MC image MC (t-1) that has been aligned by motion compensation, and an addition weight is obtained. In FIG. 13, the process of obtaining the addition weight is shown as step ST13.

ステップS14では、基準画Org(t)と、MC画MC(t-1)とが加算装置205において、
加算重みによって重み付け加算される。図13では、加算処理がステップST14として示されている。加算によって、ノイズ軽減後のNR画(NR(t))が得られる。次のフレーム
の画像Org(t+1)の処理は、NR画NR(t)が参照画として使用されて上述したのと同様の処
理がなされる。
In step S14, the reference image Org (t) and the MC image MC (t-1) are
Weighted addition is performed by the addition weight. In FIG. 13, the addition process is shown as step ST14. By the addition, an NR image (NR (t)) after noise reduction is obtained. The next frame image Org (t + 1) is processed in the same manner as described above using the NR image NR (t) as a reference image.

このように動画処理時には、最新の時刻の画像に対して過去の画像を位置合わせして加算する。動画では、動き予測を加算枚数の回数だけ行う時間が少ないので、動き予測は、1枚前の画像に対してのみ行い、2枚以上離れた時刻の画像については、1枚前の時に加算したMC画を記憶しておき、1枚前の画像との動きベクトルを参照して動き補償を行う。これにより動き予測の回数を1枚の画像について1回で行うことができる。   As described above, during the moving image processing, the past image is aligned and added to the image at the latest time. In a video, since the time for performing motion prediction for the number of times of addition is small, motion prediction is performed only for the previous image, and for images at a time two or more images away, the motion prediction is added for the previous image. The MC image is stored, and motion compensation is performed with reference to the motion vector with the previous image. Thus, the number of motion predictions can be performed once for one image.

図14のフローチャートおよび図15は、動画処理であって、3枚の動画を加算する処理を示す。時刻tにおいて撮影された最新の画像(フレーム)をそれぞれOrg(t)として表記し、1フレーム前の処理後の画像をNR(t-1)と表記し、1枚前の時に加算し、記憶され
ているMC画をMC(t-2)と表記する。
The flowchart in FIG. 14 and FIG. 15 show moving image processing, which is processing for adding three moving images. The most recent image (frame) taken at time t is represented as Org (t), the image after processing one frame before is represented as NR (t-1), added at the previous one, and stored. The rendered MC image is denoted as MC (t-2).

最初のステップS21において、動き予測装置202がOrg(t)を基準画とし、NR(t-1)
を参照画として動き予測を行い、動きベクトルMVを得る。基準画Org(t)に対する参照画NR(t-1)の動きを示す動きベクトルMVを得る処理が図15においては、動き予測ST2
1として示されている。
In the first step S21, the motion prediction apparatus 202 uses Org (t) as a reference image and NR (t-1).
As a reference picture, motion prediction is performed to obtain a motion vector MV. In FIG. 15, the process of obtaining the motion vector MV indicating the motion of the reference image NR (t-1) with respect to the reference image Org (t) is motion prediction ST2.
It is shown as 1.

ステップS22において、動き補償装置203が動きベクトルMVを用いて参照画NR(t-1)に対する動き補償を行い、MC画MC(t-1)を得る。図15では、MC画MC(t-1)を得る
処理がステップST22として示されている。
In step S22, the motion compensation device 203 performs motion compensation on the reference image NR (t-1) using the motion vector MV, and obtains an MC image MC (t-1). In FIG. 15, the process of obtaining the MC image MC (t-1) is shown as step ST22.

ステップS23では、基準画Org(t)と、動き補償によって位置合わせがなされたMC画MC(t-1)とから加算判定装置204が加算判定を行い、加算重みが得られる。図15では
、加算重みを得る処理がステップST23として示されている。
In step S23, the addition determination device 204 performs addition determination from the reference image Org (t) and the MC image MC (t-1) that has been aligned by motion compensation, and an addition weight is obtained. In FIG. 15, the process of obtaining the addition weight is shown as step ST23.

ステップS24では、基準画Org(t)と、MC画MC(t-1)とが加算装置205において、
加算重みによって重み付け加算される。図15では、加算処理がステップST24として示されている。加算によって、ノイズ軽減後のNR画(NR(t))が得られる。
In step S24, the reference image Org (t) and the MC image MC (t-1) are
Weighted addition is performed by the addition weight. In FIG. 15, addition processing is shown as step ST24. By the addition, an NR image (NR (t)) after noise reduction is obtained.

ステップS25において、動き補償装置203が動きベクトルMVを用いてMC画MC(t-2)に対する動き補償を行い、MC画MC'(t-2)を得る。図15では、MC画MC'(t-2)を得
る処理がステップST25として示されている。
In step S25, the motion compensation device 203 performs motion compensation on the MC image MC (t-2) using the motion vector MV, and obtains an MC image MC ′ (t-2). In FIG. 15, the process of obtaining the MC image MC ′ (t−2) is shown as step ST25.

ステップS26では、基準画としてのNR画NR(t)と、MC画MC'(t-2)とから加算判定
装置204が加算判定を行い、加算重みが得られる。図15では、加算重みを得る処理がステップST26として示されている。
In step S26, the addition determination device 204 performs addition determination from the NR image NR (t) as the reference image and the MC image MC ′ (t−2), and an addition weight is obtained. In FIG. 15, the process of obtaining the addition weight is shown as step ST26.

ステップS27では、NR画NR(t)と、MC画MC'(t-2)とが加算装置205において、
加算重みによって重み付け加算される。図15では、加算処理がステップST27として示されている。加算によって、ノイズ軽減後のNR画NR'(t)が得られる。
In step S27, the NR image NR (t) and the MC image MC ′ (t−2) are added by the adding device 205.
Weighted addition is performed by the addition weight. In FIG. 15, addition processing is shown as step ST27. By the addition, an NR image NR ′ (t) after noise reduction is obtained.

上述した処理のように、動き予測は、ステップS21(ST21)の一度のみ行い、動きベクトルMVをNR(t-1)およびMC(t-2)に適用して動き補償を行うことで、計算量を大きく増やさずに3枚の画像を加算することができる。   Like the processing described above, motion prediction is performed only once in step S21 (ST21), and motion compensation is performed by applying the motion vector MV to NR (t-1) and MC (t-2). Three images can be added without greatly increasing the amount.

図16のフローチャートおよび図17は、3枚の動画を加算する処理および隠れ領域処理を示す。時刻tにおいて撮影された最新の画像(フレーム)をそれぞれOrg(t)として表記し、1フレーム前の処理後の画像をNR(t-1)と表記し、1枚前の時に加算し、記憶され
ているMC画をMC'(t-2)と表記する。
The flowchart of FIG. 16 and FIG. 17 show the process of adding three moving images and the hidden area process. The most recent image (frame) taken at time t is represented as Org (t), the image after processing one frame before is represented as NR (t-1), added at the previous one, and stored. The displayed MC picture is denoted as MC ′ (t-2).

ステップS31(ST31)の動き予測、並びにステップS32(ST32)の動き補償は、図14および図15におけるステップS21(ST21)およびステップS22(ST22)と対応する処理である。   The motion prediction in step S31 (ST31) and the motion compensation in step S32 (ST32) are processes corresponding to steps S21 (ST21) and S22 (ST22) in FIGS.

ステップS33(ST33)の加算判定、並びにステップS34(ST34)の加算は、図14および図15におけるステップS23(ST23)およびステップS24(ST24)と対応する処理である。加算によって、ノイズ軽減後のNR画NR(t)が得られる。   The addition determination in step S33 (ST33) and the addition in step S34 (ST34) are processes corresponding to steps S23 (ST23) and S24 (ST24) in FIGS. By the addition, an NR image NR (t) after noise reduction is obtained.

ステップS35において、次のフレームのノイズ軽減処理のために、隠れ領域処理装置206がMC画MC(t-1)に対して隠れ領域処理を行い、MC画MC'(t-1)が得られる。図1
7では,動き補償によって移動物体に隠されていた隠れ領域の範囲がRで示され、隠れ領域処理がステップST35として示されている。
In step S35, the hidden region processing unit 206 performs hidden region processing on the MC image MC (t-1) for the noise reduction processing of the next frame, and the MC image MC '(t-1) is obtained. . FIG.
7, the range of the hidden area hidden by the moving object by the motion compensation is indicated by R, and the hidden area processing is indicated as step ST35.

ステップS36において、動き補償装置203が動きベクトルMVを用いてMC画MC'(t-2)に対する動き補償を行い、MC画MC''(t-2)を得る。図17では、MC画MC''(t-2)を得る処理がステップST36として示されている。   In step S36, the motion compensation device 203 performs motion compensation on the MC image MC ′ (t−2) using the motion vector MV to obtain an MC image MC ″ (t−2). In FIG. 17, the process of obtaining the MC image MC ″ (t−2) is shown as step ST36.

ステップS37では、基準画としてのNR画NR(t)と、MC画MC''(t-2)とから加算判定装置204が加算判定を行い、加算重みが得られる。図17では、加算重みを得る処理がステップST37として示されている。   In step S37, the addition determination device 204 performs addition determination from the NR image NR (t) as the reference image and the MC image MC ″ (t−2), and an addition weight is obtained. In FIG. 17, the process of obtaining the addition weight is shown as step ST37.

ステップS38では、NR画NR(t)と、MC画MC''(t-2)とが加算装置205において、加算重みによって重み付け加算される。図17では、加算処理がステップST38として示されている。加算によって、ノイズ軽減後のNR画NR'(t)が得られる。   In step S38, the NR image NR (t) and the MC image MC ″ (t−2) are weighted and added by the addition weight in the adding device 205. In FIG. 17, the addition process is shown as step ST38. By the addition, an NR image NR ′ (t) after noise reduction is obtained.

上述した処理のように、単位時間(1フレーム)前の処理画NR(t-1)を動き補償した画
像MC(t-1)に対し、隠れ領域処理を行いMC'(t-1)を作成し、それを次の時間のノイズ軽減
処理で用いることによって、隠れ領域での画像劣化の伝播を抑えて3枚の画像の加算を行うことができる。
As in the processing described above, hidden region processing is performed on the image MC (t-1) obtained by motion compensation of the processing image NR (t-1) before the unit time (one frame), and MC '(t-1) is calculated. By creating the image and using it in the noise reduction process for the next time, it is possible to add three images while suppressing the propagation of image deterioration in the hidden area.

次に、この発明の他の実施の形態について説明する。上述したこの発明の一実施の形態は、基準とする画像に対してその他の画像をブロック単位で動き補償したMC画を作成し、画素単位の加算判定を行うことによって、手振れや、動被写体に対してもノイズ軽減効果を得ることができる。しかしながら、特定の条件の下では、動き推定および動き補償に起因する劣化が目立つ問題が生じる。   Next, another embodiment of the present invention will be described. In the above-described embodiment of the present invention, an MC image in which motion compensation is performed for other images with respect to a reference image in units of blocks is generated, and addition determination in units of pixels is performed, so that camera shake and moving subjects can be detected. In contrast, a noise reduction effect can be obtained. However, under certain conditions, there is a problem that the deterioration due to motion estimation and motion compensation is noticeable.

すなわち、多数のMC画を加算する場合で、複数のMC画の同一位置にほぼ同一のブロック歪みが生じており、且つその歪みの画素値が基準画の画素値に近い場合には、加算による劣化が蓄積し、処理画像にブロック状の歪みが生じる。実際には、カメラの動きが少ない状況で、複数の画像を撮影した際に、基準画のみに動被写体が存在し、他の画像では、その動被写体が撮影されていない状況で、動被写体部分の動き推定を正しく行うことができず、ほぼ全てのMC画においてほぼ同一のブロック状歪みが発生する。   That is, in the case of adding a large number of MC images, when almost the same block distortion occurs at the same position of a plurality of MC images and the pixel value of the distortion is close to the pixel value of the reference image, the addition is performed. Deterioration accumulates and block-like distortion occurs in the processed image. Actually, when multiple images are shot in a situation where there is little camera movement, there is a moving subject only in the reference image, and in other images the moving subject is not shot. Cannot be estimated correctly, and almost the same block distortion occurs in almost all MC images.

さらに、特定の条件の下では、目立つノイズの軽減効果が不十分となる問題が生じる可能性がある。すなわち、平坦部に生じる空間的に大きなサイズの色ノイズは、その大きさに加えて振幅が大きく、加算判定において加算重みを大きくすると判定できず、ノイズ除去が困難である。   Furthermore, under certain conditions, there may be a problem that the conspicuous noise reduction effect is insufficient. That is, the spatially large color noise generated in the flat portion has a large amplitude in addition to the magnitude, and cannot be determined to increase the addition weight in the addition determination, and noise removal is difficult.

これらの問題の解消のために、基準画とMC画の加算判定を画素単位で行う時に、次の操作を行う。まず、MC画に生じるブロック歪みについて検討すると、ノイズの存在する領域では、ブロック境界がノイズに紛れて目立たず、ノイズの少ない領域では、ブロック境界が目立つ。そこで、ノイズが少なく、且つ平坦な領域、すなわち、ノイズが目立ちやすい領域を検出し、その領域では、加算重みをより小とする補正を行う。この加算重みの補正によって、MC画に生じるブロック歪みを抑制することができる。   In order to solve these problems, the following operation is performed when the addition determination of the reference image and the MC image is performed in units of pixels. First, considering the block distortion generated in the MC image, the block boundary is not noticeable due to the noise in the area where the noise exists, and the block boundary is conspicuous in the area where the noise is low. In view of this, a flat area with little noise, that is, an area where noise is conspicuous is detected, and correction is performed to make the addition weight smaller in that area. By correcting the addition weight, block distortion occurring in the MC image can be suppressed.

平坦部に生じる空間的に大きなサイズの色ノイズの軽減処理について説明する。基準画とMC画の画素単位の色差差分が大きな場合に、平坦で且つ色ノイズの生じる領域以上の範囲で演算した色差差分の平均値が小さな領域は、色ノイズと判定して、加算重みを増大させる。   A process of reducing spatially large color noise generated in the flat portion will be described. When the color difference difference between the reference image and the MC image is large, the area that is flat and the average value of the color difference difference calculated over the area where color noise occurs is determined as color noise, and the addition weight is set. Increase.

このように加算重みを補正する処理を行うこの発明の他の実施の形態によるノイズ軽減装置の構成を図18に示す。ノイズ軽減装置は、フレームメモリ201、動き予測装置202、動き補償装置203、加算判定装置204、加算重み補正装置207、加算装置205を有する。なお、一実施の形態と同様に、隠れ領域処理装置を備えても良い。   FIG. 18 shows the configuration of a noise reduction apparatus according to another embodiment of the present invention that performs processing for correcting the addition weight in this way. The noise reduction apparatus includes a frame memory 201, a motion prediction apparatus 202, a motion compensation apparatus 203, an addition determination apparatus 204, an addition weight correction apparatus 207, and an addition apparatus 205. Note that a hidden area processing device may be provided as in the embodiment.

加算判定装置204から出力される加算重みを補正する加算重み補正装置207以外の構成は、上述した一実施の形態と同様である。すなわち、加算判定装置(図3に示される構成)から出力される加算重みを補正する加算重み補正装置を示す。上述した一実施の形態における撮像装置の構成(図1)、ノイズ軽減装置の構成(図2)、並びに加算判定装置に関連する構成および特性(図4等)は、他の実施の形態においても同様である。   The configuration other than the addition weight correction device 207 that corrects the addition weight output from the addition determination device 204 is the same as that of the above-described embodiment. That is, an addition weight correction apparatus that corrects the addition weight output from the addition determination apparatus (configuration shown in FIG. 3) is shown. The configuration of the imaging device (FIG. 1), the configuration of the noise reduction device (FIG. 2), and the configuration and characteristics related to the addition determination device (FIG. 4 and the like) in the above-described embodiment are the same as in other embodiments. It is the same.

図19は、加算判定装置(図3に示される構成)から出力される加算重みを補正する加算重み補正装置を示す。加算判定装置から出力される加算重みが乗算器332に供給される。乗算器332に対して、上述した色ノイズの抑制を考慮した加算判定器331で生成された加算重みが供給される。   FIG. 19 shows an addition weight correction device that corrects the addition weight output from the addition determination device (configuration shown in FIG. 3). The addition weight output from the addition determination device is supplied to the multiplier 332. The addition weight generated by the addition determination unit 331 in consideration of the suppression of the color noise described above is supplied to the multiplier 332.

乗算器332の出力信号がクリップ回路333に供給され、クリップ回路333によって1を越える値が1にクリップされる。クリップ回路333の出力信号が乗算器334に供給される。乗算器334に対して、上述したMC画ブロックノイズの抑制を考慮した加算判定器336で生成された加算重みが供給される。乗算器334の出力にノイズ対策のために補正された加算重みが得られる。この加算重みが加算装置205に供給される。   An output signal of the multiplier 332 is supplied to the clipping circuit 333, and a value exceeding 1 is clipped to 1 by the clipping circuit 333. An output signal of the clip circuit 333 is supplied to the multiplier 334. To the multiplier 334, the addition weight generated by the addition determination unit 336 taking into account the suppression of the MC image block noise described above is supplied. An addition weight corrected for noise suppression is obtained at the output of the multiplier 334. This addition weight is supplied to the addition device 205.

ブロックノイズ対策の加算判定器336に対して加算器335の出力信号が供給される。加算器335の一つの入力として、プレフィルタ300を介した輝度基準画に関して輝度移動分散演算器320で求められた移動分散が供給され、その他の入力として、アップサンプリング回路338の出力信号が供給される。   The output signal of the adder 335 is supplied to the addition determiner 336 for countermeasure against block noise. As one input of the adder 335, the moving variance obtained by the luminance moving variance computing unit 320 with respect to the luminance reference image via the prefilter 300 is supplied, and as the other input, the output signal of the upsampling circuit 338 is supplied. The

アップサンプリング回路338に対して加算器337の出力信号が供給される。加算器337の一つの入力として、プレフィルタ400を介した色差(Cb)基準画に関して色差移動分散演算器420で求められた移動分散が供給され、その他の入力として、プレフィルタ400を介した色差(Cr)基準画に関して色差移動分散演算器520で求められた移動分散が供給される。輝度および色差の移動分散を演算する矩形領域の大きさとが同一となるように設定されている。アップサンプリング回路338は、画素数が輝度信号に比して少ない色差信号に対する補間のために設けられている。   The output signal of the adder 337 is supplied to the upsampling circuit 338. As one input of the adder 337, the moving variance obtained by the color difference moving variance computing unit 420 with respect to the color difference (Cb) reference image via the prefilter 400 is supplied, and as the other input, the color difference via the prefilter 400 is supplied. (Cr) The moving dispersion obtained by the color difference moving dispersion calculator 520 with respect to the reference image is supplied. The size of the rectangular area for calculating the moving variance of luminance and chrominance is set to be the same. The upsampling circuit 338 is provided for interpolation with respect to a color difference signal whose number of pixels is smaller than that of a luminance signal.

加算判定器336は、加算器335から供給される入力信号(分散値の和)に対して図20に示すように、加算重みを補正する。入力信号が判定の閾値THより小さい範囲では、入力信号に対応して増加する加算重みを出力し、入力信号が閾値TH以上の範囲では、1の値の加算重みを出力する。1に設定された加算重みは、加算判定装置からの加算重みに乗算されても影響を与えない。   The addition determiner 336 corrects the addition weight as shown in FIG. 20 for the input signal (sum of variance values) supplied from the adder 335. When the input signal is smaller than the determination threshold TH, an addition weight that increases corresponding to the input signal is output. When the input signal is greater than or equal to the threshold TH, an addition weight of 1 is output. The addition weight set to 1 has no effect even if it is multiplied by the addition weight from the addition determination device.

基準画の分散値の和が小さい領域は、ノイズが少なく、且つ平坦な領域、すなわち、ノイズが目立ちやすい領域と推定できる。そのような領域では、加算重みをより小とする補正を行うことによって、MC画に生じるブロック歪みを抑制することができる。1より小に設定された加算重みは、加算判定装置からの加算重みに乗算され、加算重みを減少させる。   The region where the sum of the variance values of the reference image is small can be estimated as a flat region with little noise, that is, a region where noise is easily noticeable. In such a region, block distortion occurring in the MC image can be suppressed by performing correction to make the addition weight smaller. The addition weight set to be smaller than 1 is multiplied by the addition weight from the addition determination device to reduce the addition weight.

色ノイズ対策の加算判定器331には、輝度移動分散演算器320からの輝度基準画の分散と、色差移動平均演算器340からの移動平均とが入力される。色差(Cb)基準画の画素絶対値差分と、色差(Cr)基準画の画素絶対値差分とが加算器339で加算され、加算器339から出力される色差差分絶対値の移動平均が移動平均演算器340において演算される。移動平均演算器320および340は、値を演算する画素を中心とする矩形領域の移動平均を求める。この矩形領域の大きさは、除去しようとする色ノイズよりも大きな領域とされる。   The luminance reference image variance from the luminance moving variance computing unit 320 and the moving average from the color difference moving average computing unit 340 are input to the addition determination unit 331 for measures against color noise. The pixel absolute value difference of the color difference (Cb) reference image and the pixel absolute value difference of the color difference (Cr) reference image are added by the adder 339, and the moving average of the color difference difference absolute values output from the adder 339 is the moving average. Calculation is performed in the calculator 340. Moving average calculators 320 and 340 obtain a moving average of a rectangular area centered on a pixel whose value is to be calculated. The size of the rectangular area is larger than the color noise to be removed.

加算判定器331は、図21に示すような処理を行うハードウェアまたはソフトウェアの構成とされる。まず、最初のステップS41において、輝度分散値がある閾値の範囲内にあるか否かが判定される。閾値の範囲内にあることは、平坦領域であることを意味する。平坦領域でない場合には、ステップS44において、加算重みが1に設定され、処理が終了する。1に設定された加算重みは、加算判定装置からの加算重みに乗算されても影響を与えない。   The addition determiner 331 has a hardware or software configuration for performing processing as shown in FIG. First, in the first step S41, it is determined whether or not the luminance dispersion value is within a certain threshold range. Being within the threshold range means a flat region. If it is not a flat region, the addition weight is set to 1 in step S44, and the process ends. The addition weight set to 1 has no effect even if it is multiplied by the addition weight from the addition determination device.

ステップS41において平坦領域と判定されると、色差の差分絶対値の移動平均がある閾値の範囲内にあるか否かが判定される。ステップS41の判定結果が肯定の場合は、色ノイズ領域と判定され、ステップS43の処理がなされる。ステップS41の判定結果が否定の場合には、ステップS44の処理(加算重み=1)がされる。   If it is determined in step S41 that the region is a flat region, it is determined whether or not the moving average of the color difference difference absolute value is within a certain threshold range. If the determination result of step S41 is affirmative, it is determined as a color noise region, and the process of step S43 is performed. If the determination result of step S41 is negative, the process of step S44 (addition weight = 1) is performed.

ステップS43では、加算重みとして1より大きな値を設定して処理を終了する。1より大に設定された加算重みは、加算判定装置からの加算重みに乗算され、加算重みを増大させ、色ノイズの除去効果を増加させる。閾値および設定する加算重みの具体的数値は、視覚的な影響を考慮して設定される。若し、1より大の加算重みを乗算した結果が1を越えるような値となった場合には、クリップ回路333により1とされる。   In step S43, a value greater than 1 is set as the addition weight, and the process ends. The addition weight set to be greater than 1 is multiplied by the addition weight from the addition determination device, increasing the addition weight and increasing the color noise removal effect. The specific numerical values of the threshold and the addition weight to be set are set in consideration of the visual influence. If the result of multiplying an addition weight greater than 1 exceeds 1, the value is set to 1 by the clip circuit 333.

上述したこの発明の他の実施の形態によれば、一実施の形態と同様のノイズ軽減効果に加えて、ブロック歪みの発生を抑えることができ、また、平坦部に生じる空間的に大きなサイズの色ノイズを軽減することができる。   According to the other embodiment of the present invention described above, in addition to the noise reduction effect similar to the one embodiment, the occurrence of block distortion can be suppressed, and the spatially large size generated in the flat portion can be suppressed. Color noise can be reduced.

以上、この発明の実施の形態について具体的に説明したが、この発明は、上述の実施の形態に限定されるものではなく、この発明の技術的思想に基づく各種の変形が可能である。例えば上述した例では、基準画とMC画とを加重平均しているが、加算するようにしても良い。すなわち、手振れもノイズも無いが暗い画像を、位置合わせして加算判定をして加算重みに応じて複数枚加算し、最後に画素毎に正規化を行うようにしても良い。   Although the embodiment of the present invention has been specifically described above, the present invention is not limited to the above-described embodiment, and various modifications based on the technical idea of the present invention are possible. For example, in the example described above, the reference image and the MC image are weighted averaged, but may be added. In other words, a dark image with no camera shake or noise may be positioned and added for determination, and a plurality of images may be added according to the addition weight, and finally normalized for each pixel.

この発明の一実施の形態の全体の構成を示すブロック図である。It is a block diagram which shows the whole structure of one embodiment of this invention. この発明の一実施の形態におけるノイズ軽減装置の一例のブロック図である。It is a block diagram of an example of the noise reduction apparatus in one embodiment of this invention. この発明の一実施の形態における加算判定装置の一例のブロック図である。It is a block diagram of an example of the addition determination apparatus in one embodiment of this invention. 加算判定装置内のノイズ量推定器が備えている画素値対ノイズ量のテーブルを概念的に示す略線図である。It is a basic diagram which shows notionally the table of the pixel value versus noise amount with which the noise amount estimator in an addition determination apparatus is provided. 加算判定装置内の画素加算判定器の一例を示すブロック図である。It is a block diagram which shows an example of the pixel addition determination device in an addition determination apparatus. 使用可能な判定曲線のいくつかの例を示す略線図である。It is a basic diagram which shows some examples of the determination curve which can be used. 判定曲線の一例を示す略線図である。It is an approximate line figure showing an example of a judgment curve. 加算判定装置内の加算装置の一例を示すブロック図である。It is a block diagram which shows an example of the addition apparatus in an addition determination apparatus. 加算判定装置内の隠れ領域処理装置の一例を示すブロック図である。It is a block diagram which shows an example of the hidden region processing apparatus in an addition determination apparatus. この発明の一実施の形態における静止画処理を説明するためのフローチャートである。It is a flowchart for demonstrating the still image process in one embodiment of this invention. 静止画処理における参照関係を説明するための略線図である。It is a basic diagram for demonstrating the reference relationship in a still image process. この発明の一実施の形態における2枚の動画を加算する動画処理を説明するためのフローチャートである。It is a flowchart for demonstrating the moving image process which adds two moving images in one embodiment of this invention. 2枚の動画を加算する動画処理における参照関係を説明するための略線図である。It is a basic diagram for demonstrating the reference relationship in the moving image process which adds two moving images. この発明の一実施の形態における3枚の動画を加算する動画処理を説明するためのフローチャートである。It is a flowchart for demonstrating the moving image process which adds three moving images in one embodiment of this invention. 3枚の動画を加算する動画処理における参照関係を説明するための略線図である。It is a basic diagram for demonstrating the reference relationship in the moving image process which adds three moving images. この発明の一実施の形態における3枚の動画を加算する動画処理(隠れ領域処理を含む)を説明するためのフローチャートである。It is a flowchart for demonstrating the moving image process (including a hidden area process) which adds the three moving images in one embodiment of this invention. 3枚の動画を加算する動画処理(隠れ領域処理を含む)における参照関係を説明するための略線図である。It is a basic diagram for demonstrating the reference relationship in the moving image process (including a hidden area process) which adds three moving images. この発明の一実施の形態におけるノイズ軽減装置の一例のブロック図である。It is a block diagram of an example of the noise reduction apparatus in one embodiment of this invention. この発明の他の実施の形態の加算重み補正装置の構成例を示すブロック図である。It is a block diagram which shows the structural example of the addition weight correction | amendment apparatus of other embodiment of this invention. この発明の他の実施の形態におけるブロックノイズ軽減処理を説明するための略線図である。It is a basic diagram for demonstrating the block noise reduction process in other embodiment of this invention. この発明の他の実施の形態における色ノイズ軽減処理を説明するための略線図である。It is a basic diagram for demonstrating the color noise reduction process in other embodiment of this invention.

101・・・撮像素子
102・・・カメラ信号処理部
103・・・ノイズ軽減装置
104・・・カメラ制御部
201・・・フレームメモリ
202・・・動き予測装置
203・・・動き補償装置
204・・・加算判定装置
205・・・加算装置
206・・・隠れ領域処理装置
207・・・加算重み補正装置
300,301,400,401,500,501・・・プレフィルタ
310,311・・・輝度移動平均演算器
410,411,510,511・・・色差移動分散演算器
320,321・・・輝度移動分散演算器
420,421,520,521・・・色差移動分散演算器
313,323,413,423,513,523・・・絶対値演算器
305・・・輝度ノイズ量推定器
405・・・色差(Cb)ノイズ量推定器
505・・・色差(Cr)ノイズ量推定器
304・・・輝度画素加算判定器
314・・・輝度移動平均加算判定器
324・・・輝度移動分散加算判定器
404,504・・・色差画素加算判定器
414,514・・・色差移動平均加算判定器
424,524・・・色差移動分散加算判定器
338,527・・・アップサンプリング回路
601・・・ノイズ量→判定閾値変換器
602・・・判定曲線生成器
331・・・色ノイズ対策の加算判定装置
336・・・MC画のブロック歪み対策の加算判定装置
DESCRIPTION OF SYMBOLS 101 ... Imaging device 102 ... Camera signal processing part 103 ... Noise reduction apparatus 104 ... Camera control part 201 ... Frame memory 202 ... Motion estimation apparatus 203 ... Motion compensation apparatus 204- ..Addition determination device 205... Addition device 206... Hidden region processing device 207... Addition weight correction device 300, 301, 400, 401, 500, 501 ... Prefilter 310, 311. Moving average computing unit 410, 411, 510, 511 ... chrominance moving dispersion computing unit 320, 321 ... luminance moving dispersion computing unit 420, 421, 520, 521 ... chrominance moving dispersion computing unit 313, 323, 413 , 423, 513, 523 ... absolute value calculator 305 ... luminance noise amount estimator 405 ... color difference (Cb) noise amount estimator 5 05: Color difference (Cr) noise amount estimator 304 ... Luminance pixel addition decision unit 314 ... Luminance moving average addition decision unit 324 ... Luminance movement variance addition decision unit 404, 504 ... Color difference pixel addition Determinator 414, 514 ... Color difference moving average addition determiner 424, 524 ... Color difference moving dispersion addition adder 338, 527 ... Upsampling circuit 601 ... Noise amount-> decision threshold converter 602 ... Determination curve generator 331... Addition determination device for color noise countermeasure 336... Addition determination device for MC image block distortion countermeasure

Claims (11)

時間的に連続する第1および第2静止画を使用して、ノイズが軽減された画像が出力される画像処理方法であって、
前記第2静止画に対し、ブロック単位の動き補償を行うステップと、
前記第1静止画と前記動き補償を行った前記第2静止画との画素差分絶対値に対して加算重みを設定するテーブルを生成し、前記テーブルを使用して加算重みを設定するステップと、
前記第1静止画および前記動き補償を行った前記第2静止画を、前記加算重みに応じて加算もしくは加重平均して処理後の画像を得るステップとを有し、
複数の撮影条件の各撮影条件での画素値に対応するノイズ量の関係が予め保持されており、現在の撮影条件に応じて前記テーブルを規定して前記加算重みを設定する画像処理方法。
An image processing method in which an image with reduced noise is output using first and second still images that are temporally continuous,
Performing block-based motion compensation on the second still image;
Generating a table for setting an addition weight for a pixel difference absolute value between the first still image and the second still image subjected to the motion compensation, and setting the addition weight using the table ;
The second still image subjected to the first still image and the motion compensation, possess and obtaining an image after addition or weighted average processing according to the weighting factor,
An image processing method in which a relationship between noise amounts corresponding to pixel values under a plurality of shooting conditions is stored in advance, and the addition weight is set by defining the table according to a current shooting condition .
時間的に連続する第1、第2および第3静止画を使用して、ノイズが軽減された画像を生成する画像処理方法であって、
前記第2静止画に対し、ブロック単位の動き補償を行うステップと、
前記第1静止画と前記動き補償を行った前記第2静止画との画素差分絶対値に対して第1加算重みを設定するテーブルを生成し、前記テーブルを使用して第1加算重みを設定するステップと、
前記第1静止画および動き補償を行った前記第2静止画を、前記第1加算重みに応じて加算もしくは加重平均して処理後の画像を得るステップと
前記第3静止画に対し、ブロック単位の動き補償を行うステップと、
前記第1静止画と前記動き補償を行った前記第3静止画との画素差分絶対値に対して第2加算重みを設定するテーブルを生成し、前記テーブルを使用して第2加算重みを設定するステップと、
前記処理後の画像および動き補償を行った前記第3静止画を、前記第2加算重みに応じて加算もしくは加重平均して処理後の画像を得るステップとを有し、
複数の撮影条件の各撮影条件での画素値に対応するノイズ量の関係が予め保持されており、現在の撮影条件に応じて前記テーブルを規定して前記第1加算重みおよび前記第2加算重みを設定する画像処理方法。
An image processing method for generating a noise-reduced image using first, second, and third still images that are temporally continuous,
Performing block-based motion compensation on the second still image;
A table for setting a first addition weight is generated for an absolute value of a pixel difference between the first still image and the second still image subjected to the motion compensation, and the first addition weight is set using the table. And steps to
Adding the first still image and the second still image subjected to motion compensation according to the first addition weight to obtain a processed image; and for the third still image, a block unit Performing motion compensation of
A table for setting a second addition weight is generated for a pixel difference absolute value between the first still image and the third still image subjected to the motion compensation, and a second addition weight is set using the table. And steps to
Said third still picture that has been subjected to the predetermined image and the motion compensation after the treatment, possess and obtaining an image after addition or weighted average processing according to the second weighting factor,
The relationship of the noise amount corresponding to the pixel value under each shooting condition of a plurality of shooting conditions is stored in advance, and the first addition weight and the second addition weight are defined by defining the table according to the current shooting condition. Image processing method to set .
単位時間間隔で入力される動画に対して、ノイズ軽減を行う画像処理方法であって、
1単位時間前の処理後の画像に対し、ブロック単位の動き補償を行うステップと、
現在の動画と動き補償を行った前記1単位時間前の処理後の画像との画素差分絶対値に対して加算重みを設定するテーブルを生成し、前記テーブルを使用して加算重みを設定するステップと、
現在の動画および動き補償を行った前記1単位時間前の処理後の画像を、前記加算重みに応じて加算もしくは加重平均して、前記現在の動画に対応する処理後の画像を得るステップとを有し、
複数の撮影条件の各撮影条件での画素値に対応するノイズ量の関係が予め保持されており、現在の撮影条件に応じて前記テーブルを規定して前記加算重みを設定する画像処理方法。
An image processing method for reducing noise for moving images input at unit time intervals,
Performing block-unit motion compensation on an image after processing one unit time ago;
A step of generating a table for setting an addition weight for a pixel difference absolute value between the current moving image and the processed image of the unit time before the motion compensation, and setting the addition weight using the table When,
Adding the current image and the processed image one unit time before performing the motion compensation according to the addition weight, or obtaining a processed image corresponding to the current moving image. Yes, and
An image processing method in which a relationship between noise amounts corresponding to pixel values under a plurality of shooting conditions is stored in advance, and the addition weight is set by defining the table according to a current shooting condition .
単位時間間隔で入力される動画に対して、ノイズ軽減を行う画像処理方法であって、
現在の動画と1単位時間前の処理後の画像とからブロック単位の動きベクトルを求め、前記1単位時間前の処理後の画像と、2単位時間前の動き補償後の画像に対し、前記動きベクトルによって動き補償を行うステップと、
前記現在の動画と動き補償を行った前記1単位時間前の処理後の画像との画素差分絶対値に対して第1加算重みを設定するテーブルを生成し、前記テーブルを使用して第1加算重みを設定するステップと、
現在の動画および動き補償を行った前記1単位時間前の処理後の画像を、前記第1加算重みに応じて加算もしくは加重平均して、第1の処理後の画像を得るステップと、
動き補償された前記2単位時間前の動き補償後の画像と前記第1の処理後の画像との画素差分絶対値に対して第2加算重みを設定するテーブルを生成し、前記テーブルを使用して第2加算重みを設定するステップと、
動き補償された前記2単位時間前の動き補償後の画像および前記第1の処理後の画像を、前記第2加算重みに応じて加算もしくは加重平均して、前記現在の動画に対応する第2の処理後の画像を得るステップと
複数の撮影条件の各撮影条件での画素値に対応するノイズ量の関係が予め保持されており、現在の撮影条件に応じて前記テーブルを規定して前記第1加算重みおよび前記第2加算重みを設定する画像処理方法。
An image processing method for reducing noise for moving images input at unit time intervals,
A motion vector in block units is obtained from the current moving image and a processed image one unit time before, and the motion is calculated with respect to the processed image one unit time before and the motion compensated image two units time ago. Performing motion compensation with vectors;
A table for setting a first addition weight is generated for a pixel difference absolute value between the current moving image and the image after processing one unit time before the motion compensation is performed, and a first addition is performed using the table. Setting weights;
Adding the current moving image and the processed image of one unit time before performing motion compensation in accordance with the first addition weight to obtain an image after the first processing;
Generating a table for setting a second addition weight with respect to an absolute value of pixel difference between the motion-compensated image after motion compensation two units before and the image after the first processing; And setting a second addition weight,
The motion-compensated image after motion compensation two units before and the image after the first processing are added or weighted averaged according to the second addition weight, and the second corresponding to the current moving image. Obtaining the processed image of
The relationship of the noise amount corresponding to the pixel value under each shooting condition of a plurality of shooting conditions is stored in advance, and the first addition weight and the second addition weight are defined by defining the table according to the current shooting condition. Image processing method to set .
さらに、前記加算重みまたは前記第1および第2加算重みを補正する補正ステップを有し、
前記補正ステップは、
前記処理後の画像にブロック歪みが発生する場合を検出し、
検出された前記ブロック歪みを軽減するように、前記加算重みまたは前記第1および第2加算重みを補正する
請求項1乃至4の何れかに記載の画像処理方法。
And a correction step of correcting the addition weight or the first and second addition weights,
The correction step includes
Detecting when block distortion occurs in the processed image,
The image processing method according to claim 1, wherein the addition weight or the first and second addition weights are corrected so as to reduce the detected block distortion.
さらに、前記加算重みまたは前記第1および第2加算重みを補正する補正ステップを有し、
前記補正ステップは、
前記処理後の画像に平坦部で生じる大きなサイズの色ノイズを検出し、
検出された前記色ノイズを軽減するように、前記加算重みまたは前記第1および第2加算重みを補正する
請求項1乃至4の何れかに記載の画像処理方法。
And a correction step of correcting the addition weight or the first and second addition weights,
The correction step includes
Detecting color noise of a large size generated in a flat portion in the image after the processing;
The image processing method according to claim 1, wherein the addition weight or the first and second addition weights are corrected so as to reduce the detected color noise.
画素値に対応するノイズ量の関係を示す画素値対ノイズ量テーブルを複数個有し、撮影条件に応じて前記画素値対ノイズ量テーブルを選択することによってノイズ量を推定するステップと、
推定した前記ノイズ量に応じて、二つの画像の空間的に同一位置の二つの画素に関する前記画素差分絶対値と加算重みとの関係を示すテーブルを生成するステップと、
前記テーブルによって前記指標値に対する加算重みを求めるステップと
を有する
請求項1乃至4の何れかに記載の画像処理方法。
Estimating the amount of noise by having a plurality of pixel value-to-noise amount table showing the amount of noise relationship corresponding to the pixel values, selecting the pixel value-to-noise amount table according to the imaging condition,
Generating a table indicating a relationship between the pixel difference absolute value and the addition weight regarding two pixels in two spatially identical positions of two images according to the estimated noise amount;
Obtaining an addition weight for the index value by the table;
The image processing method according to any one of claims 1 to 4 having a.
時間的に連続する第1および第2静止画を使用して、ノイズが軽減された画像が生成する画像処理装置であって、
前記第2静止画に対し、ブロック単位の動き補償を行う動き補償装置と、
前記第1静止画と前記動き補償を行った前記第2静止画との画素差分絶対値に対して加算重みを設定するテーブルを生成し、前記テーブルを使用して加算重みを設定する判定装置と、
前記第1静止画および前記動き補償を行った前記第2静止画を、前記加算重みに応じて加算もしくは加重平均して処理後の画像を得る加算装置とを有し、
複数の撮影条件の各撮影条件での画素値に対応するノイズ量の関係が予め保持されており、現在の撮影条件に応じて前記テーブルを規定して前記加算重みを設定する画像処理装置。
An image processing apparatus that generates a noise-reduced image using first and second still images that are temporally continuous,
A motion compensation device that performs motion compensation on a block basis for the second still image;
A determination device configured to generate a table for setting an addition weight for an absolute value of a pixel difference between the first still image and the second still image subjected to the motion compensation, and to set the addition weight using the table ; ,
The second still image subjected to the first still image and the motion compensation, possess an adding device for obtaining an image after addition or weighted average processing according to the weighting factor,
An image processing apparatus in which a relationship between noise amounts corresponding to pixel values under a plurality of shooting conditions is stored in advance, and the addition weight is set by defining the table according to a current shooting condition .
時間的に連続する第1、第2および第3静止画を使用して、ノイズが軽減された画像を生成する画像処理装置であって、
動き補償装置と、判定装置と、加算装置とを備え、
前記動き補償装置によって、前記第2静止画に対し、ブロック単位の動き補償を行い、
前記判定装置によって、前記第1静止画と動き補償を行った前記第2静止画との画素差分絶対値に対して第1加算重みを設定するテーブルを生成し、前記テーブルを使用して第1加算重みを設定し、
前記加算装置によって、前記第1静止画および動き補償を行った前記第2静止画を、前記第1加算重みに応じて加算もしくは加重平均を行い処理後の画像を得、
前記動き補償装置によって、前記第3静止画に対し、ブロック単位の動き補償を行い、
前記判定装置によって、前記第1静止画と前記処理後の画像と動き補償を行った第3静止画との画素差分絶対値に対して第2加算重みを設定するテーブルを生成し、前記テーブルを使用して第2加算重みを設定し、
前記加算装置によって、前記処理後の画像および動き補償を行った前記第3静止画を、前記第2加算重みに応じて加算もしくは加重平均を行い処理後の画像を得
複数の撮影条件の各撮影条件での画素値に対応するノイズ量の関係が予め保持されており、現在の撮影条件に応じて前記テーブルを規定して前記第1加算重みおよび前記第2加算重みを設定するようにした画像処理装置。
An image processing apparatus that generates a noise-reduced image using first, second, and third still images that are temporally continuous,
A motion compensation device, a determination device, and an addition device;
The motion compensation device performs motion compensation on a block basis for the second still image,
A table for setting a first addition weight for a pixel difference absolute value between the first still image and the second still image subjected to motion compensation is generated by the determination device, and a first setting is made using the table . Set the addition weight,
The addition device performs addition or weighted averaging on the first still image and the second still image subjected to motion compensation according to the first addition weight to obtain a processed image,
The motion compensation device performs motion compensation on a block basis for the third still image,
The determination device generates a table for setting a second addition weight with respect to a pixel difference absolute value between the first still image, the processed image, and a third still image subjected to motion compensation, and Use to set the second additive weight,
By the addition device, the processed image and the third still image subjected to motion compensation are subjected to addition or weighted average according to the second addition weight to obtain a processed image ,
The relationship of the noise amount corresponding to the pixel value under each shooting condition of a plurality of shooting conditions is stored in advance, and the first addition weight and the second addition weight are defined by defining the table according to the current shooting condition. An image processing apparatus configured to set .
単位時間間隔で入力される動画に対して、ノイズ軽減を行う画像処理装置であって、
動き補償装置と、判定装置と、加算装置とを備え、
前記動き補償装置によって、1単位時間前の処理後の画像の画素差分絶対値に対して加算重みを設定するテーブルを生成し、前記テーブルをに対し、ブロック単位の動き補償を行い、
前記判定装置によって、現在の動画と動き補償を行った前記1単位時間前の処理後の画像との画素差分絶対値に対して加算重みを設定するテーブルを生成し、前記テーブルを使用して加算重みを設定し、
前記加算装置によって、現在の動画および動き補償を行った前記1単位時間前の処理後の画像を、前記加算重みに応じて加算もしくは加重平均して、前記現在の動画に対応する処理後の画像を得
複数の撮影条件の各撮影条件での画素値に対応するノイズ量の関係が予め保持されており、現在の撮影条件に応じて前記テーブルを規定して前記加算重みを設定するようにした画像処理装置。
An image processing apparatus that performs noise reduction on a moving image input at unit time intervals,
A motion compensation device, a determination device, and an addition device;
The motion compensation device generates a table for setting an addition weight for the pixel difference absolute value of the image after processing one unit time before, and performs motion compensation on a block basis for the table .
The determination device generates a table for setting an addition weight for the absolute value of the pixel difference between the current moving image and the image after the processing performed one unit time before motion compensation is performed, and the addition is performed using the table. Set weights,
The added image is subjected to addition or weighted averaging of the current moving image and the processed image before one unit time before performing motion compensation, and the processed image corresponding to the current moving image. the resulting,
Image processing in which the relationship of the amount of noise corresponding to the pixel value under each shooting condition of a plurality of shooting conditions is held in advance, and the addition weight is set by defining the table according to the current shooting condition apparatus.
単位時間間隔で入力される動画に対して、ノイズ軽減を行う画像処理装置であって、
動き補償装置と、判定装置と、加算装置とを備え、
現在の動画と1単位時間前の処理後の画像とからブロック単位の動きベクトルを求め、前記1単位時間前の処理後の画像と、2単位時間前の動き補償後の画像に対し、前記動きベクトルによって動き補償を行い、
前記現在の動画と動き補償を行った前記1単位時間前の処理後の画像との画素差分絶対値に対して第1加算重みを設定するテーブルを生成し、前記テーブルを使用して撮影条件に基づくノイズ量とを使用して第1加算重みを設定し、
現在の動画および動き補償を行った前記1単位時間前の処理後の画像を、前記第1加算重みに応じて加算もしくは加重平均して、第1の処理後の画像を得、
動き補償された前記2単位時間前の動き補償後の画像と前記第1の処理後の画像との画素差分絶対値に対して第2加算重みを設定するテーブルを生成し、前記テーブルを使用して第2加算重みを設定し、
動き補償された前記2単位時間前の動き補償後の画像および前記第1の処理後の画像を、前記第2加算重みに応じて加算もしくは加重平均して、前記現在の動画に対応する第2の処理後の画像を得
複数の撮影条件の各撮影条件での画素値に対応するノイズ量の関係が予め保持されており、現在の撮影条件に応じて前記テーブルを規定して前記第1加算重みおよび前記第2加算重みを設定するようにした画像処理装置。
An image processing apparatus that performs noise reduction on a moving image input at unit time intervals,
A motion compensation device, a determination device, and an addition device;
A motion vector in block units is obtained from the current moving image and a processed image one unit time before, and the motion is calculated with respect to the processed image one unit time before and the motion compensated image two units time ago. Motion compensation by vector,
A table for setting a first addition weight for a pixel difference absolute value between the current moving image and the image after processing one unit time before performing motion compensation is generated, and the table is used as a shooting condition. Set a first additive weight using a noise amount based on
The current image and the processed image before the unit time before performing motion compensation are added or weighted average according to the first addition weight to obtain an image after the first processing,
Generating a table for setting a second addition weight with respect to an absolute value of pixel difference between the motion-compensated image after motion compensation two units before and the image after the first processing; To set the second addition weight,
The motion-compensated image after motion compensation two units before and the image after the first processing are added or weighted averaged according to the second addition weight, and the second corresponding to the current moving image. obtain an image of the post-processing of,
The relationship of the noise amount corresponding to the pixel value under each shooting condition of a plurality of shooting conditions is stored in advance, and the first addition weight and the second addition weight are defined by defining the table according to the current shooting condition. An image processing apparatus configured to set .
JP2009101954A 2009-04-20 2009-04-20 Image processing method and image processing apparatus Expired - Fee Related JP4930541B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2009101954A JP4930541B2 (en) 2009-04-20 2009-04-20 Image processing method and image processing apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2009101954A JP4930541B2 (en) 2009-04-20 2009-04-20 Image processing method and image processing apparatus

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
JP2007136184A Division JP4321626B2 (en) 2007-05-23 2007-05-23 Image processing method and image processing apparatus

Publications (2)

Publication Number Publication Date
JP2009165168A JP2009165168A (en) 2009-07-23
JP4930541B2 true JP4930541B2 (en) 2012-05-16

Family

ID=40967157

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2009101954A Expired - Fee Related JP4930541B2 (en) 2009-04-20 2009-04-20 Image processing method and image processing apparatus

Country Status (1)

Country Link
JP (1) JP4930541B2 (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8368771B2 (en) * 2009-12-21 2013-02-05 Olympus Imaging Corp. Generating a synthesized image from a plurality of images
US9361667B2 (en) 2010-08-27 2016-06-07 Sony Corporation Image processing apparatus and method
JP6019568B2 (en) 2011-11-28 2016-11-02 ソニー株式会社 Image processing apparatus and method, recording medium, and program
JP6100064B2 (en) * 2013-04-10 2017-03-22 株式会社東芝 Electronic apparatus and image processing method
JP6503646B2 (en) * 2014-06-24 2019-04-24 リコーイメージング株式会社 Image pickup apparatus and noise correction method
JP2014232114A (en) * 2014-08-20 2014-12-11 日立Geニュークリア・エナジー株式会社 Method for creating video for visual inspection

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4344968B2 (en) * 1999-10-28 2009-10-14 ソニー株式会社 Image processing apparatus and image processing method, and data processing apparatus and data processing method

Also Published As

Publication number Publication date
JP2009165168A (en) 2009-07-23

Similar Documents

Publication Publication Date Title
JP4321626B2 (en) Image processing method and image processing apparatus
US8311282B2 (en) Image processing apparatus, image processing method, and program
JP3730419B2 (en) Video signal processing device
JP4930541B2 (en) Image processing method and image processing apparatus
JP5013932B2 (en) Noise reduction device, noise reduction method, and electronic device
JP2010166558A (en) Image forming apparatus
US20100245632A1 (en) Noise reduction method for video signal and image pickup apparatus
JP4640068B2 (en) Imaging method and imaging apparatus
JP2012234393A (en) Image processing device, image processing method, and program
JP2010200179A (en) Image processor, image processing method, image processing program and program storing medium in which image processing program is stored
KR100793284B1 (en) Apparatus for digital image stabilizing, method using the same and computer readable medium stored thereon computer executable instruction for performing the method
JP5177284B2 (en) Subject motion detection apparatus and method
US10368017B2 (en) Image processing apparatus, image processing method, and computer-readable recording medium
JP4328115B2 (en) Solid-state imaging device
JP2013135343A (en) Imaging device
JP2006197455A (en) Noise reduction device
CN107431750B (en) Image processing apparatus, image processing method, and image capturing apparatus
US11653107B2 (en) Image pick up apparatus, image pick up method, and storage medium
KR20100044073A (en) An image pickup apparatus
US8600070B2 (en) Signal processing apparatus and imaging apparatus
JP2006166108A (en) Imaging apparatus and imaging control method
JP5213604B2 (en) Imaging device
KR100647955B1 (en) Apparatus processing Digital image
JP2012235255A (en) Image processing apparatus and program
JP7166903B2 (en) IMAGE PROCESSING DEVICE, CONTROL METHOD THEREOF, AND PROGRAM

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20090520

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20110825

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20110830

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20111024

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

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

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20120130

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

Free format text: PAYMENT UNTIL: 20150224

Year of fee payment: 3

LAPS Cancellation because of no payment of annual fees