JP2019062528A - Image processing method, image processing system, imaging apparatus, and program - Google Patents

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

Info

Publication number
JP2019062528A
JP2019062528A JP2018164468A JP2018164468A JP2019062528A JP 2019062528 A JP2019062528 A JP 2019062528A JP 2018164468 A JP2018164468 A JP 2018164468A JP 2018164468 A JP2018164468 A JP 2018164468A JP 2019062528 A JP2019062528 A JP 2019062528A
Authority
JP
Japan
Prior art keywords
amount
noise reduction
image data
processing
shake
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP2018164468A
Other languages
Japanese (ja)
Other versions
JP7118818B2 (en
Inventor
博行 浦上
Hiroyuki Uragami
博行 浦上
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.)
Canon Inc
Original Assignee
Canon Inc
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 Canon Inc filed Critical Canon Inc
Priority to EP18196001.4A priority Critical patent/EP3462725A1/en
Priority to US16/141,662 priority patent/US10812719B2/en
Publication of JP2019062528A publication Critical patent/JP2019062528A/en
Application granted granted Critical
Publication of JP7118818B2 publication Critical patent/JP7118818B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Image Processing (AREA)
  • Studio Devices (AREA)

Abstract

To restrain creation of such image data looking as if a region where blurring occurs and a region where blurring does not occur appears, when cyclic NR processing is applied.SOLUTION: A motion amount detection circuit detects a motion amount from captured image data. A blur amount calculation circuit calculates the blur amount of an imaging apparatus which captured the image data. A strength determination circuit sets the strength of cyclic NR processing. A cyclic NR processing circuit performs cyclic NR processing for the image data with a set strength. A blur correction circuit performs blur correction processing for suppressing blur of the image data subjected to cyclic NR processing, on the basis of the blur amount. When blur correction processing is not operating, the strength determination circuit controls strength of cyclic NR processing in units of region including one or more pixels, on the basis of the motion amount, and when blur correction processing is operating, performs strength control of uniform cyclic noise reduction processing for all region of the image data.SELECTED DRAWING: Figure 1

Description

本発明は、画像データのノイズ低減とぶれを補正する技術に関する。   The present invention relates to a technique for reducing noise and blurring of image data.

画像データのノイズ低減を目的とした画像処理技術として、巡回型ノイズリダクション処理が知られている。例えば、特許文献1には、画素単位で動き量を検出し、その検出した動き量に応じて画素単位で設定した強度で、巡回型ノイズリダクション処理を行う技術が開示されている。これらの巡回型ノイズリダクション処理の適用例として、撮像装置が挙げられる。   A cyclic noise reduction process is known as an image processing technique for the purpose of noise reduction of image data. For example, Patent Document 1 discloses a technique for detecting a motion amount in units of pixels and performing cyclic noise reduction processing at an intensity set in units of pixels in accordance with the detected motion amount. As an application example of these cyclic noise reduction processes, an imaging device can be mentioned.

また、特許文献2には、二つの画像データ間の動き量を推定し、この推定した動き量から動き補償画像データを生成する技術が開示されている。この動き補償画像データを用いることで、画像データに対してぶれ補正処理を行うことができる。   Further, Patent Document 2 discloses a technique of estimating a motion amount between two image data and generating motion compensated image data from the estimated motion amount. By using this motion compensated image data, blur correction processing can be performed on the image data.

特開2012−129617号公報JP, 2012-129617, A 特開2014−39169号公報JP, 2014-39169, A

ところで、画像データに、前述した巡回型ノイズリダクション処理を適用してからぶれ補正処理を適用すると、ぶれが発生する領域とぶれが発生しない領域とが生じているように見える画像データが生成されてしまうケースがあることが判明した。   By the way, when the above-described cyclic noise reduction processing is applied to the image data and then the shake correction processing is applied, image data is generated that looks like an area in which blurring occurs and an area in which blurring does not occur. It turns out that there is a case that

そこで、本発明は、巡回型NR処理を適用した場合において、ぶれが発生する領域とぶれが発生しない領域とが生じてしまうように見える画像データが生成されることを抑制することを目的とする。   Therefore, an object of the present invention is to suppress generation of image data that appears to cause an area in which blurring occurs and an area in which blurring does not occur when cyclic NR processing is applied. .

本願請求項1に係る画像処理装置によれば、撮像された画像から動き量を検出する動き量検出手段と、前記画像を撮像した撮像装置のぶれ量を検知するぶれ検知手段と、巡回型ノイズリダクション処理を制御する制御手段と、前記制御手段による前記巡回型ノイズリダクション処理の制御の下で前記画像に対して巡回型ノイズリダクション処理を行う処理手段と、前記ぶれ量を基に前記画像のぶれを抑えるぶれ補正処理を行う補正手段と、を有し、前記制御手段は、前記ぶれ補正処理が動作していない場合には、前記動き量に基づいて、1つ以上の画素を含む領域単位で前記巡回型ノイズリダクション処理の強度を制御し、前記ぶれ補正処理が動作している場合には、前記画像の全ての領域に一律な巡回型ノイズリダクション処理の強度制御を行うことを特徴とする。   According to the image processing apparatus of the present invention, a motion amount detection unit that detects a motion amount from a captured image, a blur detection unit that detects a blur amount of an imaging device that captures the image, and cyclic noise A control unit for controlling a reduction process, a processing unit for performing a cyclic noise reduction process on the image under the control of the cyclic noise reduction process by the control unit, and a blur of the image based on the blur amount And the control unit performs, on the basis of the movement amount, the area unit including one or more pixels when the shake correction process is not in operation. The intensity of the cyclic noise reduction process is controlled, and when the shake correction process is operating, the intensity control of the cyclic noise reduction process is uniform on all regions of the image. And performing.

本発明によれば、巡回型NR処理を適用した場合において、ぶれが発生する領域とぶれが発生しない領域とが生じてしまうように見える画像データが生成されることを抑制することが可能な画像処理装置を提供することができる。   According to the present invention, when cyclic NR processing is applied, it is possible to suppress the generation of image data that looks like an area in which blurring occurs and an area in which blurring does not occur. A processing device can be provided.

第1の実施形態の撮像装置の概略構成を示すブロック図である。It is a block diagram showing a schematic structure of an imaging device of a 1st embodiment. 第1の実施形態における処理の流れを示すフローチャートである。It is a flowchart which shows the flow of the process in 1st Embodiment. 第1の実施形態における一律な強度算出処理のフローチャートである。It is a flow chart of uniform intensity calculation processing in a 1st embodiment. 第1の実施形態における領域毎の動き量と巡回型NR処理の領域単位の強度との関係を表す図である。It is a figure showing the relationship of the motion amount for every area | region and the intensity | strength of the area unit of cyclic NR process in 1st Embodiment. 第1の実施形態における領域毎の動き量と巡回型NR処理の一律な強度との関係を表す図である。It is a figure showing the relationship between the motion amount for every area | region in 1st Embodiment, and uniform intensity | strength of cyclic NR processing. 領域単位で強度を設定し、かつ、ぶれ補正処理を行った場合の画像データの様子を説明するための図である。FIG. 8 is a diagram for describing an aspect of image data when an intensity is set in area units and shake correction processing is performed. 第2の実施形態における巡回型NR処理の強度と空間型NR処理の強度の関係を説明するための図である。It is a figure for demonstrating the relationship between the intensity | strength of the cyclic | annular NR process in 2nd Embodiment, and the intensity | strength of space type NR process. 第3の実施形態における領域単位の強度と一律な強度の関係を説明するための図である。It is a figure for demonstrating the relationship between the intensity | strength of the area | region unit in 3rd Embodiment, and uniform intensity | strength.

以下、本発明の好ましい実施の形態を、添付の図面に基づいて詳細に説明する。
本実施形態では、本発明の一適用例として撮像装置を例に挙げて説明する。
本実施形態の撮像装置は、画像データのノイズを低減する機能として巡回型ノイズリダクション処理を実行する機能を有している。以下の説明では、巡回型ノイズリダクション処理を巡回型NR処理と表記する。また本実施形態の撮像装置は、撮影時における当該撮像装置のぶれ(揺れ)を求め、そのぶれの情報を基に、画像データに対してぶれ補正処理を行う、ぶれ補正機能を有している。さらに撮像装置は、撮影時に求めたぶれ量(揺れの大きさ)が所定のぶれ量より大きい場合にはぶれ補正機能を動作させ、一方、ぶれ量が所定のぶれ量以下の場合(撮像装置が殆ど揺れていない場合)にはぶれ補正機能を停止する機能をも有している。なお、ぶれ補正機能を動作させるか否かを決める際の所定のぶれ量は、予め決められた値であるとする。
Hereinafter, preferred embodiments of the present invention will be described in detail with reference to the attached drawings.
In the present embodiment, an imaging apparatus will be described as an example application of the present invention.
The imaging device of the present embodiment has a function of executing cyclic noise reduction processing as a function of reducing noise of image data. In the following description, cyclic noise reduction processing is referred to as cyclic NR processing. The image pickup apparatus according to the present embodiment also has a shake correction function that obtains shake (shake) of the image pickup apparatus at the time of shooting and performs shake correction processing on image data based on the shake information. . Furthermore, the imaging apparatus operates the shake correction function when the shake amount (magnitude of shake) obtained at the time of shooting is larger than the predetermined shake amount, while the shake amount is less than the predetermined shake amount (the imaging device It also has a function to stop the shake correction function when it hardly shakes. Here, it is assumed that the predetermined shake amount when deciding whether to operate the shake correction function is a predetermined value.

また詳細は後述するが、本実施形態の撮像装置は、領域単位で動き量を検出し、その検出した動き量に応じて領域単位で巡回型NR処理の強度を制御する機能を有している。以下の説明では、領域単位の強度で行われる巡回型NR処理を、領域単位の巡回型NR処理と表記する。さらに本実施形態の撮像装置は、領域単位の動き量の情報に基づいて、全ての領域に一律に適用される巡回型NR処理の強度を算出して、巡回型NR処理を行う機能をも有している。以下の説明では、全ての領域に一律の強度で適用される巡回型NR処理を一律な巡回型NR処理と表記する。なお、領域単位で設定した強度で巡回型NR処理を行う構成の代わりに、画素単位で設定した強度で巡回型NR処理を行う構成としてもよい。ここでは説明を簡単にするため、1つ以上の画素を含む領域単位で設定した強度で巡回型NR処理を行う構成を例にあげて説明を行う。   Although details will be described later, the imaging apparatus according to the present embodiment has a function of detecting the amount of movement in units of regions and controlling the strength of cyclic NR processing in units of regions according to the detected amount of movement. . In the following description, the cyclic NR process performed with the intensity in the area unit is referred to as a cyclic NR process in the area unit. Furthermore, the imaging apparatus according to the present embodiment also has a function of performing cyclic NR processing by calculating the strength of cyclic NR processing applied uniformly to all regions based on information of motion amount in units of regions. doing. In the following description, cyclic NR processing applied to all areas with uniform strength will be referred to as uniform cyclic NR processing. Note that instead of the configuration in which the cyclic NR processing is performed with the intensity set in area units, the cyclic NR processing may be performed in the intensity set in pixel units. Here, in order to simplify the description, a configuration in which cyclic NR processing is performed at an intensity set in an area unit including one or more pixels will be described as an example.

<第1の実施形態>
以下、図1から図5を参照して、第1の実施形態の撮像装置において、ぶれ量と動き量を基に巡回型NR処理の強度を制御する構成及び処理について説明する。
図1は本実施形態の撮像装置の概略構成例を示したブロック図である。なお、図1には、ぶれ量と動き量に基づいて強度を制御する主要な構成部のみを示しており、撮像装置が備えている一般的な他の構成の図示は省略している。
First Embodiment
The configuration and process for controlling the strength of cyclic NR processing based on the blur amount and the motion amount in the imaging device of the first embodiment will be described below with reference to FIGS. 1 to 5.
FIG. 1 is a block diagram showing an example of a schematic configuration of an imaging apparatus according to the present embodiment. Note that FIG. 1 shows only the main components that control the intensity based on the amount of shake and the amount of movement, and illustration of other general components included in the imaging apparatus is omitted.

この撮像装置は画像生成装置100、画像処理装置110、表示装置121、および、記録回路122を含む。
画像生成装置100は撮像光学系101、撮像光学系101により形成された光学像を電気信号に変換する撮像素子102、および、撮像素子102で生成された電気信号から画像データを生成する画像データ生成回路103を含む。画像データ生成回路103で生成された画像データは画像処理装置110に出力される。
The imaging device includes an image generation device 100, an image processing device 110, a display device 121, and a recording circuit 122.
The image generation apparatus 100 includes an imaging optical system 101, an imaging element 102 for converting an optical image formed by the imaging optical system 101 into an electrical signal, and image data generation for generating image data from the electrical signal generated by the imaging element 102. A circuit 103 is included. The image data generated by the image data generation circuit 103 is output to the image processing apparatus 110.

画像処理装置110は、動き量検出回路111、ぶれ量算出回路112、一律強度算出回路113、強度決定回路114、巡回型NR処理回路115、画像加工回路116、および、ぶれ補正回路117を含む。
動き量検出回路111は、画像データ生成回路103から連続したフレームの画像データを受け取り、それぞれの画像データを複数の領域に分割する。そして、いずれかのフレームである基準画像データと、その基準画像データの1フレーム前の画像データとから、領域毎の動き量(動きベクトル)を検出する。そして、その検出した動き量の情報を、ぶれ量算出回路112、一律強度算出回路113、および、強度決定回路114に出力する。
The image processing apparatus 110 includes a motion amount detection circuit 111, a blur amount calculation circuit 112, a uniform intensity calculation circuit 113, an intensity determination circuit 114, a cyclic NR processing circuit 115, an image processing circuit 116, and a blur correction circuit 117.
The motion amount detection circuit 111 receives image data of continuous frames from the image data generation circuit 103, and divides each image data into a plurality of regions. Then, the motion amount (motion vector) of each area is detected from the reference image data which is any frame and the image data one frame before the reference image data. Then, information on the detected motion amount is output to the shake amount calculation circuit 112, the uniform intensity calculation circuit 113, and the intensity determination circuit 114.

ぶれ量算出回路112は、撮影時において撮像装置が揺れている時の揺れの大きさ(ぶれ量)と揺れの方向を算出する。例えば、ぶれ量算出回路112は、動き量検出回路111で検出された動き量の情報を取得し、その動き量を基に撮像装置のぶれ量を推定する。動き量に基づくぶれ量の推定処理については種々の手法が存在しており、本実施形態ではそれら何れの手法を用いてもよい。また別の例として、ぶれ量算出回路112は、不図示の加速度センサーや角速度センサー等のデバイスから得られたデータを基に撮像装置のぶれ量を検知してもよい。加速度センサーや角速度センサー等からのデータ等に基づくぶれ量の算出についても種々の手法が存在しており、本実施形態ではそれら何れの手法を用いてもよい。そして、ぶれ量算出回路112は、前述のように推定または算出したぶれ量の情報を、強度決定回路114とぶれ補正回路117とに出力する。   The shake amount calculation circuit 112 calculates the magnitude (shake amount) of the shake and the direction of the shake when the imaging device shakes at the time of shooting. For example, the shake amount calculation circuit 112 acquires information on the movement amount detected by the movement amount detection circuit 111, and estimates the shake amount of the imaging device based on the movement amount. There are various methods for estimating the blur amount based on the motion amount, and any of these methods may be used in this embodiment. As another example, the shake amount calculation circuit 112 may detect the shake amount of the imaging apparatus based on data obtained from a device such as an acceleration sensor or an angular velocity sensor (not shown). Various methods exist for calculating the shake amount based on data from an acceleration sensor, an angular velocity sensor or the like, and any of these methods may be used in this embodiment. Then, the shake amount calculation circuit 112 outputs the information of the shake amount estimated or calculated as described above to the intensity determination circuit 114 and the shake correction circuit 117.

一律強度算出回路113は、動き量検出回路111から取得した動き量の情報を基に、全ての領域に一律に適用される巡回型NR処理の強度(一律な強度)を算出する。
強度決定回路114は、ぶれ量算出回路112から取得したぶれ量を基に、後段のぶれ補正回路117においてぶれ補正処理が行われるか判定する。そして、強度決定回路114は、ぶれ補正回路117においてぶれ補正処理が行われる場合に、巡回型NR処理回路115がぶれ補正処理の開始に先立って、一律強度算出回路113で算出された強度で巡回型NR処理を行う。なお、後段のぶれ補正回路117でぶれ補正処理が行われるかどうかは、例えば、算出されたぶれ量が例えば所定のぶれ量より大きいか否かにより判定可能である。例えば、算出されたぶれ量が所定のぶれ量より大きい場合にはぶれ補正処理が行われ、一方、所定のぶれ量以下である場合にはぶれ補正処理が行われないと判定する。
The uniform intensity calculation circuit 113 calculates the intensity (uniform intensity) of cyclic NR processing applied uniformly to all regions based on the information of the motion amount acquired from the motion amount detection circuit 111.
Based on the shake amount acquired from the shake amount calculation circuit 112, the intensity determination circuit 114 determines whether or not the shake correction process is to be performed in the shake correction circuit 117 in the subsequent stage. Then, when the shake correction process is performed in the shake correction circuit 117, the intensity determination circuit 114 performs cyclic operation with the intensity calculated by the uniform intensity calculation circuit 113 prior to the start of the shake correction process by the cyclic NR processing circuit 115. Perform type NR processing. Note that it can be determined whether, for example, the calculated shake amount is larger than a predetermined shake amount, for example, whether or not the shake correction processing is performed by the shake correction circuit 117 in the subsequent stage. For example, when the calculated shake amount is larger than a predetermined shake amount, the shake correction process is performed. On the other hand, when the calculated shake amount is smaller than the predetermined shake amount, it is determined that the shake correction process is not performed.

一律強度算出回路113は、動き量検出回路111にて検出された動き量の統計データを取得する。統計データとは、動き量の平均値や中央値、最大値、最小値、および、分散などである。次に、一律強度算出回路113は、その統計データの分散から、基準画像データにおける動き量のばらつき度を求める。さらに、一律強度算出回路113は、動き量のばらつき度に基づいて、統計データの中から一律な強度を算出する際の動き量の基準値を選択する。次に、一律強度算出回路113は、選択した動き量の基準値を用いて、全ての領域に一律に適用される一律な強度を算出する。一律な強度を算出する際の動き量の基準値の選択の仕方については後述する。そして、一律強度算出回路113は、算出した一律な強度の情報を、強度決定回路114に出力する。   The uniform intensity calculation circuit 113 acquires statistical data of the motion amount detected by the motion amount detection circuit 111. The statistical data is, for example, the average value, median value, maximum value, minimum value, and variance of the motion amount. Next, the uniform intensity calculation circuit 113 obtains the degree of variation of the motion amount in the reference image data from the variance of the statistical data. Furthermore, the uniform intensity calculation circuit 113 selects the reference value of the motion amount when calculating the uniform intensity from the statistical data based on the degree of variation of the motion amount. Next, the uniform intensity calculation circuit 113 uses the reference value of the selected motion amount to calculate a uniform intensity uniformly applied to all the regions. The method of selecting the reference value of the motion amount when calculating the uniform intensity will be described later. Then, the uniform intensity calculation circuit 113 outputs the calculated uniform intensity information to the intensity determination circuit 114.

強度決定回路114は、動き量検出回路111で検出された領域毎の動き量を基に、領域単位で巡回型NR処理の強度(領域単位の強度)を算出する。また、強度決定回路114は、一律強度算出回路113から、全領域に適用する一律な強度を取得し、ぶれ量算出回路112で算出されたぶれ量に基づいて、一律な強度と領域単位の強度の何れを選択して出力するかを決定する。本実施形態の場合、強度決定回路114は、算出されたぶれ量が所定のぶれ量以下であり後段のぶれ補正処理が行われない場合に、領域単位の強度を選択する。一方、本実施形態において、強度決定回路114は、検知されたぶれ量が所定のぶれ量より大きく後段のぶれ補正処理が行われる場合には、一律な強度を選択する。そして、強度決定回路114は、前述のように一律な強度と領域単位の強度のうち、選択された方の強度の情報を、巡回型NR処理回路115に出力する。   The strength determination circuit 114 calculates the strength (the strength in area units) of the cyclic NR processing in area units based on the movement amount in each area detected by the movement amount detection circuit 111. Further, the intensity determination circuit 114 obtains, from the uniform intensity calculation circuit 113, uniform intensity applied to the entire area, and based on the shake amount calculated by the shake amount calculation circuit 112, uniform intensity and intensity in area units. Decide which of the two to select and output. In the case of the present embodiment, the intensity determination circuit 114 selects the intensity in units of regions when the calculated shake amount is equal to or less than a predetermined shake amount and the shake correction processing in the subsequent stage is not performed. On the other hand, in the present embodiment, when the detected shake amount is larger than the predetermined shake amount and the shake correction processing in the latter stage is performed, the intensity determination circuit 114 selects a uniform intensity. Then, the strength determination circuit 114 outputs, to the cyclic NR processing circuit 115, information of the selected one of the uniform strength and the strength in the area unit as described above.

巡回型NR処理回路115は、強度決定回路114から供給された、一律な強度または領域単位の強度を基に、画像生成装置100から受け取った画像データに対して巡回型NR処理を実行する。そして、巡回型NR処理回路115は、巡回型NR処理を行った後の画像データを、画像加工回路116に出力する。   The cyclic NR processing circuit 115 executes cyclic NR processing on the image data received from the image generation apparatus 100 based on the uniform intensity or the intensity in units of regions supplied from the intensity determination circuit 114. Then, the cyclic NR processing circuit 115 outputs the image data after the cyclic NR processing to the image processing circuit 116.

画像加工回路116は、巡回型NR処理回路115による巡回型NR処理後の画像データに対し、巡回型NR処理以外の各種画像処理を実行する。例えば、画像加工回路116は、1枚の画像データで空間的なフィルタ処理を行う空間型ノイズリダクション処理(空間型NR処理)や、鮮鋭度を高めるシャープネス処理、中間階調の表現を向上させる階調補正処理などの各種画像処理を実行する。画像加工回路116は、それら画像処理後の画像データを、ぶれ補正回路117に出力する。   The image processing circuit 116 executes various types of image processing other than the cyclic NR processing on the image data after the cyclic NR processing by the cyclic NR processing circuit 115. For example, the image processing circuit 116 performs a spatial noise reduction process (spatial NR process) for performing a spatial filter process on one image data, a sharpness process for enhancing the sharpness, and a floor for improving the expression of the intermediate gradation. Execute various image processing such as tone correction processing. The image processing circuit 116 outputs the image data after the image processing to the blur correction circuit 117.

ぶれ補正回路117は、ぶれ量算出回路112からのぶれ量に基づいてぶれ補正処理を行うか否かを切り替える。ぶれ量算出回路112は、ぶれ補正処理を行うと判断した場合には、ぶれ量算出回路112からのぶれ量に応じたぶれ補正処理を実行する。具体的には、ぶれ補正回路117は、検知されたぶれ量が所定のぶれ量以下である場合にはぶれ補正処理を停止し、ぶれ量が所定のぶれ量より大きい場合には、そのぶれの方向とぶれ量に応じたぶれ補正処理を実行する。ぶれ補正処理は、一例として、ぶれの向きとは逆向きに、そのぶれ量に合わせた分だけシフトした位置で、画像データの一部を切り出す処理である。ぶれ補正回路117にてぶれ補正処理が行われた後の画像データ、または、ぶれが無いためぶれ補正処理が行われなかった画像データは、表示装置121あるいは記録回路122などに出力される。   The shake correction circuit 117 switches whether to perform the shake correction processing based on the shake amount from the shake amount calculation circuit 112. When it is determined that the shake correction process is to be performed, the shake amount calculation circuit 112 executes the shake correction process according to the shake amount from the shake amount calculation circuit 112. Specifically, the shake correction circuit 117 stops the shake correction process if the detected shake amount is less than a predetermined shake amount, and if the shake amount is larger than the predetermined shake amount, the shake correction process is performed. Shake correction processing is performed according to the direction and the amount of shake. The shake correction process is, for example, a process of cutting out part of image data at a position shifted by an amount corresponding to the shake amount in the direction opposite to the direction of the shake. Image data that has been subjected to shake correction processing by the shake correction circuit 117 or image data for which shake correction processing has not been performed because there is no shake is output to the display device 121 or the recording circuit 122 or the like.

ぶれ補正回路117から出力される画像データは、例えば記録回路122により記録媒体に記録されてもよいし、表示装置121によって画像の表示に用いられてもよい。あるいは、ぶれ補正回路117から出力される画像データは、不図示の通信装置により外部装置に送信されてもよい。   The image data output from the shake correction circuit 117 may be recorded on a recording medium by the recording circuit 122, for example, or may be used to display an image by the display device 121. Alternatively, the image data output from the shake correction circuit 117 may be transmitted to an external device by a communication device (not shown).

図2は、図1に示した本実施形態の撮像装置により行われる、動き量の検知、ぶれ量の算出、巡回型NR処理の強度の決定、巡回型NR処理、ぶれ補正処理、画像データの出力までの一連の処理の流れを示したフローチャートである。
なお、図2では、各処理のステップS10〜S80を、それぞれS10〜S80と略記する。また図2のフローチャートの処理は、ハードウェア構成により実行されてもよいし、CPU等がプログラムを実行することにより実現されてもよい。これらのことは後述する他のフローチャートにおいても同様とする。この図2のフローチャートの処理は、画像生成装置100が画像データを生成することで開始される。
FIG. 2 shows motion amount detection, blur amount calculation, determination of strength of cyclic NR processing, cyclic NR processing, blur correction processing, and image data, which are performed by the imaging device of the present embodiment shown in FIG. It is the flowchart which showed the flow of a series of processes to an output.
In addition, in FIG. 2, step S10 to S80 of each process is abbreviated as S10 to S80, respectively. Further, the processing of the flowchart in FIG. 2 may be executed by a hardware configuration, or may be realized by the CPU or the like executing a program. The same applies to the other flowcharts described later. The process of the flowchart of FIG. 2 is started by the image generating apparatus 100 generating image data.

先ず、ステップ10において、画像処理装置110は、画像生成装置100で生成された画像データを取得し、画像処理装置110の動き量検出回路111が領域毎の動き量(動きベクトル)を検出する。
また、ステップ20において、ぶれ量算出回路112は、当該撮像装置のぶれ量を算出する。ぶれ量は、前述したように、動き量検出回路111により検出された動き量に基づいて検知されたものでもよいし、加速度センサー等のデバイスからの出力を基に検知されたものでもよい。ぶれ量算出回路112により検知されたぶれ量の情報は、前述したように、強度決定回路114とぶれ補正回路117に送られる。
First, in step 10, the image processing device 110 acquires image data generated by the image generation device 100, and the motion amount detection circuit 111 of the image processing device 110 detects a motion amount (motion vector) for each area.
In step 20, the shake amount calculation circuit 112 calculates the shake amount of the imaging device. As described above, the shake amount may be detected based on the movement amount detected by the movement amount detection circuit 111, or may be detected based on an output from a device such as an acceleration sensor. The information on the shake amount detected by the shake amount calculation circuit 112 is sent to the intensity determination circuit 114 and the shake correction circuit 117 as described above.

次に、ステップ30において、一律強度算出回路113は、ステップ10で検出された動き量に基づいて、前述したように画像データの全領域に一律に適用する一律な巡回型NR処理の強度を算出する。この一律な強度の算出処理については、後に図3のフローチャートを参照して説明する。   Next, in step 30, the uniform intensity calculation circuit 113 calculates the intensity of the uniform cyclic NR process uniformly applied to the entire area of the image data as described above based on the motion amount detected in step 10. Do. The uniform intensity calculation process will be described later with reference to the flowchart of FIG.

また、ステップ40において、強度決定回路114は、前述したように動き量検出回路111で検出された領域毎の動き量を基に、領域毎の巡回型NR処理の強度を算出する。
さらに、ステップ50において、強度決定回路114は、前述したようにぶれ量算出回路112で算出されたぶれ量に基づき、一律な強度と領域毎の強度の何れかを選択して、巡回型NR処理回路115へ出力する。
次に、ステップ60において、巡回型NR処理回路115は、ステップ50で選択された強度を用いた巡回型NR処理を画像データに対して施す。
In step 40, the strength determination circuit 114 calculates the strength of cyclic NR processing for each area based on the movement quantity for each area detected by the movement quantity detection circuit 111 as described above.
Furthermore, in step 50, the intensity determination circuit 114 selects one of the uniform intensity and the intensity for each area based on the shake amount calculated by the shake amount calculation circuit 112 as described above, and performs cyclic NR processing. It outputs to the circuit 115.
Next, in step 60, the cyclic NR processing circuit 115 performs cyclic NR processing on the image data using the intensity selected in step 50.

ここで、巡回型NR処理を適用する前の、N番目のフレームの座標(x,y)における画像データの信号レベルをVxyN、巡回型NR処理を適用した後の、N番目のフレームの座標(x,y)における画像データの信号レベルをWxyN、巡回型NR処理を適用した後の、(N−1)番目のフレームの座標(x,y)における画像データの信号レベルをWxy(N-1)、巡回型NR処理の強度である係数をkとすると、
xyN=k×(VxyN−Wxy(N-1))+Wxy(N-1) ・・・(1)
という式で表すことができる。
Here, the signal level of the image data at the coordinates (x, y) of the Nth frame before applying the cyclic NR processing is V xyN , and the coordinates of the Nth frame after applying the cyclic NR processing The signal level of the image data at (x, y) is W xyN , and the signal level of the image data at the coordinates (x, y) of the (N−1) th frame after applying cyclic NR processing is W xy ( N−1) , let k be a coefficient that is the strength of cyclic NR processing,
W xyN = k × (V xyN -W xy (N-1)) + W xy (N-1) ··· (1)
It can be expressed by

あるいは、式1を変形し、次の式2として表わすこともできる。
xyN=k×VxyN+(1−k)×Wxy(N-1) ・・・(2)
Alternatively, Equation 1 can be transformed and expressed as Equation 2 below.
W xyN = k × V xyN + (1-k) × W xy (N-1) ··· (2)

係数kは0以上および1以下の値であり、係数kの値が0に近いほど、巡回型NR処理を適用した後の値WxyNは、前フレームの巡回型NR処理を適用した後の値Wxy(N-1)に近くなる。反対に、係数kの値が1に近いほど、巡回型NR処理を適用した後の値WxyNは、巡回型NR処理を適用する前の値VxyNに近くなる。すなわち、係数kの値を0に近づけるほど、前後のフレーム間において、座標(x,y)における画像データの信号レベルの変化量が小さくなり、ノイズによる信号レベルの変動を抑えることができる。反対に、係数kの値を1に近づけるほど、後フレームの信号レベルに対する、前フレームの信号レベルの影響を小さくすることができる。一般的に、被写体の動き量が小さいほど、ノイズによる信号レベルの変動を抑えるために、係数kの値を0に近い値とし、被写体の動き量が大きいほど、前フレームの信号レベルの影響を小さくするために、係数kの値を1に近い値とする。一律な強度は、1フレームに含まれるすべての領域に対して同一に設定される係数kを示し、領域単位の強度は、1フレームの領域ごとに個別に設定される係数kを示す。本実施形態では、係数kの値が0に近いほど巡回型NR処理の強度が高い(前フレームの信号レベルの影響が大きい)ものとし、係数kの値が1に近いほど巡回型NR処理の強度が低い(前フレームの信号レベルの影響が小さい)ものとする。 The coefficient k is a value of 0 or more and 1 or less, and as the value of the coefficient k is closer to 0, the value W xyN after applying the cyclic NR processing is a value after applying the cyclic NR processing of the previous frame It becomes close to W xy (N-1) . On the other hand, as the value of the coefficient k is closer to 1, the value W xyN after applying the cyclic NR processing is closer to the value V xyN before applying the cyclic NR processing. That is, as the value of the coefficient k approaches 0, the amount of change in the signal level of image data at coordinates (x, y) becomes smaller between the preceding and succeeding frames, and fluctuations in the signal level due to noise can be suppressed. Conversely, the closer the value of the coefficient k is to 1, the smaller the influence of the signal level of the previous frame on the signal level of the subsequent frame can be made. Generally, as the amount of movement of the subject is smaller, the value of the coefficient k is set to a value closer to 0 in order to suppress the fluctuation of the signal level due to noise, and as the amount of movement of the subject is larger In order to make it smaller, the value of the coefficient k is made close to one. The uniform intensity indicates the coefficient k which is set to be the same for all the regions included in one frame, and the intensity in the region unit indicates the coefficient k which is individually set for each region of one frame. In this embodiment, the closer the value of the coefficient k to 0, the higher the strength of the cyclic NR processing (the greater the influence of the signal level of the previous frame), and the closer to 1 the value of the coefficient k, the cyclic NR processing It is assumed that the intensity is low (the influence of the signal level of the previous frame is small).

さらに、ステップ70において、ぶれ補正回路117は、巡回型NR処理回路115による巡回型NR処理後の画像データに対して、ステップ20で算出されたぶれ量に基づくぶれ補正処理を実行する。
その後、ステップ80において、ぶれ補正回路117は、巡回型NR処理やぶれ補正処理等が施された後の画像データを表示装置121や記録回路122に出力する。
Further, at step 70, the shake correction circuit 117 executes shake correction processing based on the shake amount calculated at step 20 on the image data after cyclic NR processing by the cyclic NR processing circuit 115.
Thereafter, in step 80, the shake correction circuit 117 outputs the image data subjected to cyclic NR processing, shake correction processing, and the like to the display device 121 and the recording circuit 122.

図3は、図2のステップ30において、一律強度算出回路113で行われる一律な強度の算出の詳細な処理の流れを示したフローチャートである。
図3のステップ31において、一律強度算出回路113は、動き量検出回路111にて検出された領域毎の動き量を取得し、さらに、基準画像データにおける動き量の統計データ(動き量の平均値、中央値、最大値、最小値、分散など)を算出する。
次に、ステップ32において、一律強度算出回路113は、ステップ31で算出した動き量の統計データのなかの分散から、基準画像データにおける動き量のばらつき度を算出する。
FIG. 3 is a flowchart showing a flow of detailed processing of uniform intensity calculation performed by the uniform intensity calculation circuit 113 in step 30 of FIG.
In step 31 of FIG. 3, the uniform intensity calculation circuit 113 acquires the motion amount for each area detected by the motion amount detection circuit 111, and further, statistical data of the motion amount in the reference image data (average value of motion amount , Median, maximum, minimum, variance, etc.).
Next, in step 32, the uniform intensity calculation circuit 113 calculates the degree of variation of the amount of motion in the reference image data from the variance of the statistical data of the amount of motion calculated in step 31.

次に、ステップ33において、一律強度算出回路113は、ステップ32で算出した動き量のばらつき度を基に、一律な強度を算出する際に用いられる、動き量の基準値を選択する。この場合、先ず、一律強度算出回路113は、前述した基準画像データの動き量の統計データから基準となるデータ(基準値)を選択する。例えば、一律強度算出回路113は、基準画像データの動き量のばらつき度が所定値よりも小さい場合には、前述した動き量の統計データのなかの平均値を、動き量の基準値として選択する。すなわち、動き量のばらつき度が所定値よりも小さい場合、動き量の平均値から動き量の最大値までの差分、若しくは、平均値から最小値までの差分が小さいため、近似とみなして動き量の統計データの平均値を基準値としてよい。なお、一律強度算出回路113は、基準画像データの動き量のばらつき度が所定値よりも小さい場合、動き量の統計データのなかの中央値を、基準値として選択してもよい。   Next, in step 33, the uniform intensity calculation circuit 113 selects the reference value of the movement amount used when calculating the uniform intensity based on the degree of variation of the movement amount calculated in step 32. In this case, first, the uniform intensity calculation circuit 113 selects reference data (reference value) from the statistical data of the motion amount of the reference image data described above. For example, when the variation degree of the motion amount of the reference image data is smaller than a predetermined value, the uniform intensity calculation circuit 113 selects the average value among the above-described statistical data of the motion amount as the motion amount reference value. . That is, when the variation degree of the motion amount is smaller than a predetermined value, the difference from the average value of the motion amount to the maximum value of the motion amount, or the difference from the average value to the minimum value is small. The average value of statistical data of may be used as a reference value. The uniform intensity calculation circuit 113 may select, as the reference value, the median value of the statistical data of the movement amount when the variation degree of the movement amount of the reference image data is smaller than a predetermined value.

一方、動き量のばらつき度が所定値以上である場合、前述のように動き量の統計データの平均値や中央値を基準値として用いると、領域によっては巡回型NR処理の強度が必要以上に高くなり、前フレームの影響による残像が発生することがある。したがって、動き量のばらつき度が所定値以上である場合、一律強度算出回路113は、残像の発生を抑えるために、動き量の統計データのなかで強度が最も低くなる、動き量の最大値を、動き量の基準値として選択する。この一律な強度も、一般的な巡回型NR処理の強度と同様に、被写体の動き量が小さいほど係数kの値を0に近い値と(強度を高く)し、被写体の動き量が大きいほど係数kの値を1に近い値と(強度を低く)する。   On the other hand, if the variation of the motion amount is equal to or more than a predetermined value, using the average value or the median value of the statistical data of the motion amount as a reference value as described above, the strength of cyclic NR processing may be more than necessary depending on the area. It may be high and an afterimage may occur due to the influence of the previous frame. Therefore, when the variation degree of the movement amount is equal to or more than the predetermined value, the uniform intensity calculation circuit 113 determines the maximum value of the movement amount at which the intensity is lowest among the statistical data of the movement amount in order to suppress the occurrence of an afterimage. , As the reference value of the movement amount. This uniform intensity also makes the value of the coefficient k closer to 0 (increases the intensity) as the movement amount of the subject is smaller, and the larger the movement amount of the subject, as in the general cyclic NR processing. Make the value of coefficient k close to 1 (lower the intensity).

そして、次のステップ34において、一律強度算出回路113は、ステップ33で取得された基準値を基に、全ての領域に一律に適用される一律な強度を算出する。
なお、取得した動き量のばらつき度と比較される前述の所定値は、実験的に求めることができる。実験的に所定値を求める場合、例えば動き量のばらつき度を異ならせた複数のテスト用の動画が用意される。そして、動き量のばらつき度が小さい動画から順に、動き量の平均値に基づく強度を設定したときの残像の程度を判定し、残像が気になると最初に判定された動画の動き量のばらつき度を、所定値として設定すればよい。
Then, in the next step 34, the uniform intensity calculation circuit 113 calculates a uniform intensity uniformly applied to all the regions based on the reference value acquired in step 33.
In addition, the above-mentioned predetermined value compared with the variation degree of the acquired motion amount can be calculated | required experimentally. When the predetermined value is determined experimentally, for example, a plurality of test moving images with different degrees of variation of the movement amount are prepared. Then, the degree of the afterimage when the strength based on the average value of the motion amount is set is determined in order from the moving image having the smaller degree of variation of the motion amount, and the degree of variation of the motion amount of the moving image initially determined May be set as a predetermined value.

図4は、強度制御における、領域毎の動き量と巡回型NR処理の強度との関係を表した図である。この図4は、ぶれ補正処理が行われない場合(ぶれ補正処理が無効の場合)に、強度決定回路114で決定される領域単位の強度を示す図である。
撮像装置のぶれ(揺れ)が殆ど無く、ぶれ補正処理が行われない場合、強度決定回路114は、一律な強度ではなく、領域単位の強度を選択する。
FIG. 4 is a diagram showing the relationship between the motion amount for each area and the strength of cyclic NR processing in strength control. FIG. 4 is a diagram showing the intensity in units of regions determined by the intensity determination circuit 114 when the blur correction process is not performed (when the blur correction process is invalid).
When the image pickup apparatus hardly shakes (shakes) and shake correction processing is not performed, the intensity determination circuit 114 selects not the uniform intensity but the intensity in area units.

そして、図4に示すように、強度決定回路114は、動き量が大きい領域ほど、動きのある被写体の領域に残像が発生することを防ぐことを優先するために、強度を低くする。一方、強度決定回路114は、動き量が小さい領域ほど、被写体の領域に残像が発生するリスクが少なくなるので、ノイズを低減させることを優先するために、強度を強くする。具体的には、図4の例では、動き量が閾値Th1未満であれば係数kの値は0に設定され、動き量が閾値Th2以上であれば係数kの値は1に設定され、動き量が閾値Th1以上かつTh2未満であれば、動き量が大きくなるほど係数kが1に近づく。なお、Th1は0としてもよい。なお、この場合、1枚の画像データの中に動き量の大きさが異なる複数の領域が存在すると、図4に示したように、巡回型NRの強度が相対的に弱い領域と強い領域が存在することになる。   Then, as shown in FIG. 4, the intensity determination circuit 114 lowers the intensity in order to give priority to preventing the occurrence of an afterimage in the area of a subject with motion as the area having a large amount of movement. On the other hand, since the risk that the afterimage occurs in the area of the subject decreases as the area where the amount of movement is smaller, the strength determination circuit 114 makes the strength stronger in order to prioritize reduction of noise. Specifically, in the example of FIG. 4, the value of coefficient k is set to 0 if the amount of motion is less than threshold Th1, and the value of coefficient k is set to 1 if the amount of motion is equal to or greater than threshold Th2. If the amount is greater than or equal to the threshold Th1 and less than Th2, the coefficient k approaches 1 as the amount of movement increases. Note that Th1 may be 0. In this case, if there is a plurality of areas having different magnitudes of movement amount in one image data, as shown in FIG. It will exist.

図5は、図4と同様に、領域毎の動き量と強度との関係を表した図である。この図5は、ぶれ補正処理が行われる場合(ぶれ補正処理が有効の場合)に、強度決定回路114で決定される一律な強度を示す図である。
図5の例のように、撮像装置のぶれ(揺れ)を補正するぶれ補正処理が行われる場合、強度決定回路114は、領域単位の強度ではなく、一律な強度を選択する。
Similar to FIG. 4, FIG. 5 is a diagram showing the relationship between the amount of movement and the intensity for each area. FIG. 5 is a view showing the uniform intensity determined by the intensity determination circuit 114 when the blur correction process is performed (when the blur correction process is effective).
As in the example of FIG. 5, when shake correction processing for correcting shake (shake) of the imaging apparatus is performed, the intensity determination circuit 114 selects not the intensity in units of regions but a uniform intensity.

すなわち、ぶれ補正処理が行われる場合、図5に示すように、強度決定回路114は、領域毎の動き量によらず、フレーム内で求められた1つの動き量の基準値に基づいて強度を設定することで、画像データ内の領域によってぶれ量に差異が発生しないようにする。つまり、巡回型NR処理回路115は、全ての領域に対して一律な強度で巡回型NR処理が行う。   That is, when shake correction processing is performed, as shown in FIG. 5, the strength determination circuit 114 does not depend on the amount of movement for each area, but uses the strength based on the reference value of one movement amount determined in the frame. By setting, no difference occurs in the blurring amount depending on the area in the image data. That is, the cyclic NR processing circuit 115 performs cyclic NR processing with uniform intensity on all regions.

ここで、ぶれ補正処理が行われる場合に、領域単位で強度を設定するのではなく、一律な強度を設定することが望ましい理由について説明する。
図6は、領域単位で強度を設定し、かつ、ぶれ補正処理を行った場合の画像データの様子を説明するための図である。図6において、(N−1)番目のフレームとN番目のフレームのそれぞれの画像データには、被写体としてビルディングの窓が含まれているものとする。
Here, when blurring correction processing is performed, the reason why it is desirable to set a uniform intensity instead of setting the intensity in units of regions will be described.
FIG. 6 is a diagram for explaining the state of image data when the intensity is set in area units and the blur correction process is performed. In FIG. 6, it is assumed that a window of a building is included as a subject in the image data of each of the (N−1) th frame and the Nth frame.

図6(a)は、N番目のフレームにおける窓601と、(N−1)番目のフレームにおける窓602を示す。窓601と窓602は同一の窓であり、ぶれによって矢印で示す量だけ、それぞれのフレームの画像データ内における位置がずれたものとする。この窓601と窓602は、実線で示した窓枠の内側には空が映り込んでおり、窓枠の内側の信号レベルはほぼ均一ではあるが、ノイズによる信号レベルの変動が存在する。反対に、窓601(窓602)とその周囲の領域の信号レベルは大きく異なっているものとする。   FIG. 6A shows the window 601 in the Nth frame and the window 602 in the (N-1) th frame. The window 601 and the window 602 are the same window, and it is assumed that the position in the image data of each frame is shifted by the amount indicated by the arrow due to blurring. In the window 601 and the window 602, the sky is reflected inside the window frame indicated by a solid line, and although the signal level inside the window frame is substantially uniform, there is a fluctuation of the signal level due to noise. On the contrary, it is assumed that the signal levels of the window 601 (window 602) and the surrounding area are largely different.

ここで、(N−1)番目のフレームに対して、領域単位で強度を設定して巡回型NR処理を適用する場合の処理について説明する。
図6(b)に示すように、窓601と窓602のうち、網掛け部については信号レベルの差が小さく動き量が小さいと判断される。すなわち、窓602のうち、網掛け部については係数kの値が0(あるいは0に近い値)に設定され、窓601の網掛け部の信号レベルと同じ値(あるいはほぼ同じ値)に補正される。それ以外の領域においては、フレーム間での信号レベルの差が大きいと判断され係数kの値が1(あるいは1に近い値)に設定される。すなわち、窓602のうち、網掛け部以外の領域については、窓601の信号レベルの影響をほとんど受けない。
Here, the processing in the case of applying the cyclic NR processing to the (N−1) th frame by setting the strength in area units will be described.
As shown in FIG. 6B, of the window 601 and the window 602, it is determined that the difference in signal level is small and the amount of movement is small in the shaded portion. That is, in window 602, the value of coefficient k is set to 0 (or a value close to 0) for the shaded portion and corrected to the same value (or substantially the same value) as the signal level of the shaded portion of window 601. Ru. In the other areas, it is determined that the difference in signal level between frames is large, and the value of the coefficient k is set to 1 (or a value close to 1). That is, the area of the window 602 other than the shaded portion is hardly affected by the signal level of the window 601.

その後、図6(c)に示すように、ぶれ補正処理によって、窓602の画像データ内の位置が補正される。このとき、窓602の網掛け部の信号レベルは、窓601の網掛け部の信号レベルと一致するのに対して、網掛け部以外の領域の信号レベルは窓601とは一致しない。そのため、ユーザには、窓601における網掛け部の画像データが、窓602において矢印の方向に移動したように見えてしまう。つまり、ユーザにとっては、窓602の内側に、ぶれた領域とぶれない領域とが含まれるように見えてしまう。   Thereafter, as shown in FIG. 6C, the position in the image data of the window 602 is corrected by the shake correction process. At this time, while the signal level of the shaded portion of the window 602 matches the signal level of the shaded portion of the window 601, the signal level of the area other than the shaded portion does not match the window 601. Therefore, to the user, the image data of the shaded portion in the window 601 appears to move in the direction of the arrow in the window 602. That is, for the user, it appears that the inside of the window 602 includes a blurred area and a non-shake area.

そこで、本実施形態では、巡回型NR処理の後にぶれ補正処理を行う場合には、領域単位で強度を算出するのではなく、フレーム内で一律な強度を算出する。このような構成とすることで、図6(c)に示すように、一部の領域のみがぶれたように見えることを抑制することができる。   Therefore, in the present embodiment, when the blur correction process is performed after the cyclic NR process, the intensity is not calculated in the area unit but is calculated uniformly in the frame. With such a configuration, as shown in FIG. 6C, it can be suppressed that only a part of the area looks blurred.

以上説明したように、第1の実施形態の撮像装置では、ぶれ補正処理が行われない場合には領域単位の強度制御により領域毎の動き量に基づく巡回型NR処理が実行される。一方、ぶれ補正処理が行われる場合には、画像データの全ての領域に対して一律な強度による巡回型NR処理が行われる。すなわち、第1の実施形態の撮像装置によれば、ぶれ量と動き量に基づいて強度が適切に制御されることにより、ぶれが発生する領域とぶれが発生しない領域とが生じてしまうように見える画像データが生成されることを抑制することができる。   As described above, in the imaging apparatus according to the first embodiment, the cyclic NR processing based on the movement amount for each area is performed by the intensity control in the area unit when the blur correction process is not performed. On the other hand, when blur correction processing is performed, cyclic NR processing with uniform intensity is performed on all regions of image data. That is, according to the image pickup apparatus of the first embodiment, the intensity is appropriately controlled based on the amount of shake and the amount of movement so that an area in which the shake occurs and an area in which the shake does not occur are generated. The generation of visible image data can be suppressed.

<第2の実施形態>
以下、図7を参照して、第2の実施形態について説明する。
図7は、巡回型NR処理の強度と空間型NR処理の強度の関係を説明するための図である。なお、第2の実施形態の撮像装置の構成は概ね前述した図1と同様であるため、それらの図示は省略する。
Second Embodiment
Hereinafter, the second embodiment will be described with reference to FIG.
FIG. 7 is a diagram for explaining the relationship between the strength of cyclic NR processing and the strength of spatial NR processing. Note that the configuration of the imaging device of the second embodiment is substantially the same as that of FIG. 1 described above, and thus the illustration thereof is omitted.

図7(a)において、一点鎖線は領域毎の動き量に対する領域単位の強度を示し、実線は動き基準量に基づく一律な強度を示す。第2の実施形態においても、ぶれ補正処理が行われる場合(ぶれ補正処理が有効の場合)、強度決定回路114は、第1の実施形態と同様に一律な強度を選択する。   In FIG. 7A, the alternate long and short dash line indicates the intensity in units of regions with respect to the amount of movement for each region, and the solid line indicates uniform intensity based on the amount of movement reference. Also in the second embodiment, when the shake correction process is performed (when the shake correction process is effective), the intensity determination circuit 114 selects a uniform intensity as in the first embodiment.

ここで、領域の動き量のばらつき度が所定値以上である場合、第2の実施形態においても前述の第1の実施形態と同様に、動き量の統計データのなかで動き量の最大値を基準値として用い、その基準値を基に一律な強度が算出される。すなわち、第2の実施形態においても、領域の動き量のばらつき度が所定値以上である場合には、動き量の大きい領域を意識した巡回型NR処理が行われることにより、残像が発生することを防ぐことができる。   Here, when the variation degree of the movement amount of the area is equal to or more than a predetermined value, in the second embodiment as well as in the first embodiment described above, the maximum value of the movement amount in the statistical data of the movement amount is A uniform intensity is calculated based on the reference value, which is used as a reference value. That is, also in the second embodiment, when the variation degree of the movement amount of the area is equal to or more than a predetermined value, the afterimage is generated by performing cyclic NR processing in consideration of the area having a large movement amount. You can prevent.

一方、この場合、前述のように動き量の最大値を基準値として算出した強度を用いたのでは、本来適用されるべき強度よりも弱い巡回型NR処理が行われる領域が発生することになる。つまり、動き量の最大値を基準値として用いて算出された一律な強度は、動き量が基準値よりも小さい領域に対して本来適用すべき強度より弱くなってしまう。すなわち、動き量が基準値よりも小さい領域では、巡回型NR処理によるノイズ低減の効果が少なくなってしまう。   On the other hand, in this case, if the intensity calculated using the maximum value of the motion amount as the reference value as described above is used, an area in which cyclic NR processing is weaker than the intensity to be originally applied occurs. . That is, the uniform intensity calculated using the maximum value of the motion amount as the reference value is weaker than the intensity to be originally applied to the region where the motion amount is smaller than the reference value. That is, in the region where the amount of motion is smaller than the reference value, the effect of noise reduction by cyclic NR processing is reduced.

そこで第2の実施形態の撮像装置は、図7(b)に示すように、動き量が基準値より小さい領域については、本来適用されるべき強度と、基準値から算出した一律な強度との差が大きくなるほど、空間型NR処理の強度を大きくしてノイズ低減を図るようにする。言い換えると、動き量の基準値をTh3とすると、動き量が基準値Th3より小さい領域については、動き量が小さい領域を含む領域ほど、空間型NR処理の強度を大きくして(強めて)ノイズ低減を図るようにする。   Therefore, in the imaging apparatus according to the second embodiment, as shown in FIG. 7B, in a region where the motion amount is smaller than the reference value, the intensity to be originally applied and the uniform intensity calculated from the reference value. As the difference increases, the strength of the spatial NR process is increased to reduce noise. In other words, assuming that the reference value of the amount of motion is Th3, in the region where the amount of motion is smaller than the reference value Th3, the intensity of the spatial NR process is increased (stronger) as the region including the region where the amount of motion is smaller Try to reduce it.

ここで、第2の実施形態における空間型NR処理は、前述した図1の画像加工回路116により行われる。このため、第2の実施形態において、強度決定回路114は、本来適用すべき強度と一律な強度との差分を求め、画像加工回路116はその差分を基に、空間型NR処理の強度を制御する。すなわち、第2の実施形態の場合、強度決定回路114は、領域単位の強度と一律な強度との差が大きくなるほど、空間型NR処理の強度を高くするように、画像加工回路116を制御する。これにより、第2の実施形態の場合、本来適用すべき強度と一律な強度との差分が大きい領域ほど、空間型NR処理の効果が強められることになる。   Here, the space type NR processing in the second embodiment is performed by the image processing circuit 116 of FIG. 1 described above. Therefore, in the second embodiment, the intensity determination circuit 114 obtains the difference between the intensity to be originally applied and the uniform intensity, and the image processing circuit 116 controls the intensity of the spatial NR processing based on the difference. Do. That is, in the case of the second embodiment, the intensity determination circuit 114 controls the image processing circuit 116 so as to increase the intensity of the spatial NR processing as the difference between the intensity in the area unit and the uniform intensity increases. . As a result, in the case of the second embodiment, the effect of the spatial NR process is intensified in the region where the difference between the intensity to be originally applied and the uniform intensity is large.

空間型NR処理としては、例えば、次の方法がある。まず、処理対象とする画素を中心として、所定の広さの領域を設定し、設定した領域内において、処理対象とする画素の信号レベルとの差異が閾値以下となる信号レベルを有する画素を抽出する。そして、処理対象の画素の信号レベルと抽出した画素の信号レベルを平均した値、あるいは、重みづけ平均した値を、処理対象とする画素の信号レベルとする。空間型NRの強度を高くする方法としては、所定の広さを拡大することや、閾値を大きくすることが考えられる。   As spatial NR processing, for example, there are the following methods. First, an area of a predetermined width is set centering on the pixel to be processed, and within the set area, a pixel having a signal level whose difference from the signal level of the pixel to be processed is equal to or less than a threshold is extracted Do. Then, a value obtained by averaging the signal level of the pixel to be processed and the signal level of the extracted pixel or a weighted average is set as the signal level of the pixel to be processed. As a method of increasing the strength of the spatial NR, it is conceivable to enlarge a predetermined area or to increase the threshold.

あるいは、処理対象を含む領域におけるエッジの方向を判定し、エッジ方向に沿ってローパスフィルタを適用する。ローパスフィルタのフィルタ係数を変更することで、空間型NRの強度を高くすることができる。なお、強度決定回路114は、本来適用すべき強度と一律な強度との差分が大きい領域が所定の数より多い場合に、空間型NR処理の強度を制御するようにしてもよい。   Alternatively, the direction of the edge in the region including the processing target is determined, and a low pass filter is applied along the edge direction. By changing the filter coefficient of the low pass filter, the strength of the spatial NR can be increased. The strength determination circuit 114 may control the strength of the spatial NR processing when the area where the difference between the strength to be originally applied and the uniform strength is large is larger than a predetermined number.

以上説明したように、第2の実施形態では、領域の動き量のばらつき度が所定値以上である場合、一律な強度を算出する際の基準値として動き量の最大値を用い、その動き量の基準値を基に一律な強度を算出する。さらに、第2の実施形態では、図7に示すように、一律な強度の値が領域単位の強度より低く、その差が大きい領域ほど、空間型NR処理の強度を高くする。これにより、第2の実施形態によれば、ぶれが発生する領域とぶれが発生しない領域とが生じてしまうように見える画像データが生成されることを抑制しつつ、ノイズ低減の効果も向上させることができる。   As described above, in the second embodiment, when the variation degree of the movement amount of the area is equal to or more than the predetermined value, the maximum movement amount is used as the reference value when calculating the uniform intensity, and the movement amount Calculate uniform intensity based on the reference value of. Furthermore, in the second embodiment, as shown in FIG. 7, the intensity of the spatial NR process is increased in the region where the uniform intensity value is lower than the intensity in the area unit and the difference is large. Thus, according to the second embodiment, the effect of noise reduction is also improved while suppressing generation of image data that appears to cause an area in which blurring occurs and an area in which blurring does not occur. be able to.

<第3の実施形態>
次に、図8を参照して、第3の実施形態の撮像装置における強度制御について説明する。
図8は、領域単位の強度と一律な強度の関係を説明するための図である。なお、第3の実施形態の撮像装置の構成は概ね前述した図1と同様であるためそれらの図示は省略する。
第3の実施形態の撮像装置の場合、図1の強度決定回路114は、ぶれ量算出回路112にて算出されたぶれ量に基づいて、領域毎の動き量に応じた領域単位の強度の設定可能範囲を決定する。
Third Embodiment
Next, with reference to FIG. 8, intensity control in the imaging device of the third embodiment will be described.
FIG. 8 is a diagram for explaining the relationship between the intensity in units of regions and the uniform intensity. The configuration of the imaging device of the third embodiment is substantially the same as that of FIG.
In the case of the imaging apparatus of the third embodiment, the intensity determination circuit 114 in FIG. 1 sets the intensity in area units according to the movement amount for each area based on the blurring amount calculated by the blurring amount calculation circuit 112. Determine the possible range.

ぶれ量算出回路112によって算出されたぶれ量が第1の閾値より大きい場合には、巡回型NR処理後に実行されるぶれ補正処理の影響が大きくなるため、強度決定回路114は、前述した第1、第2の実施形態と同様に一律な強度を算出する。つまり、検知されたぶれ量が第1の閾値より大きい場合、第3の実施形態の強度決定回路114は、領域単位の強度を設定した巡回型NR処理を行わない。なお、検知されたぶれ量が第1の閾値より大きい場合、第3の実施形態においても前述の第2の実施形態と同様に、必要に応じて画像加工回路116で空間型NR処理の強度制御を行ってもよい。   If the shake amount calculated by the shake amount calculation circuit 112 is larger than the first threshold value, the influence of the shake correction process executed after the cyclic NR process becomes large. The uniform intensity is calculated as in the second embodiment. That is, when the detected shake amount is larger than the first threshold value, the strength determination circuit 114 of the third embodiment does not perform the cyclic NR processing in which the strength in the area unit is set. If the detected blur amount is larger than the first threshold, the intensity control of the spatial NR processing in the image processing circuit 116 is performed as needed in the third embodiment as well as the second embodiment described above. You may

図8は、算出されたぶれ量が第1の閾値以下で且つ第1の閾値よりも小さい第2の閾値より大きい場合の巡回型NR処理の強度を説明するための図である。
ぶれ補正回路117は、算出されたぶれ量が第1の閾値以下で、且つ、第2の閾値以上である場合、ぶれ補正処理を行う。
強度決定回路114は、算出されたぶれ量が第1の閾値以下で且つ第2の閾値以上である場合、図8に示すように、後段のぶれ補正処理の影響が出ない範囲で、領域単位の強度を設定する。
FIG. 8 is a diagram for explaining the strength of cyclic NR processing when the calculated shake amount is equal to or less than a first threshold and larger than a second threshold that is smaller than the first threshold.
The shake correction circuit 117 performs the shake correction process when the calculated shake amount is equal to or less than the first threshold and equal to or more than the second threshold.
When the calculated shake amount is equal to or less than the first threshold and equal to or more than the second threshold, the intensity determination circuit 114 performs area units within a range in which the influence of the shake correction processing in the subsequent stage does not appear as shown in FIG. Set the strength of

算出されたぶれ量が第1の閾値以下で且つ小さい第2の閾値以上である場合、ぶれ量が第1の閾値より大きい場合に比べて、画像データの領域によるぶれ量の差異は少なくなると考えられる。ただし、算出されたぶれ量が第1の閾値以下で且つ小さい第2の閾値以上の場合においても、画像データの領域によってはぶれ量の差異がある程度大きくなる場合がある。このため、強度決定回路114は、図8に示すように、画像データ内の領域によるぶれ量の差異が小さくなるように(差異が大きくならないように)、領域単位の強度の設定可能範囲を狭くするように制限する。   When the calculated shake amount is equal to or less than the first threshold and equal to or more than the small second threshold, it is considered that the difference in the amount of shake due to the area of the image data is smaller than in the case where the shake amount is larger than the first threshold Be However, even when the calculated shake amount is equal to or less than the first threshold and equal to or more than the small second threshold, the difference in the amount of shake may increase to some extent depending on the area of the image data. For this reason, as shown in FIG. 8, the intensity determination circuit 114 narrows the settable range of the intensity in units of regions so that the difference in blur amount due to the region in the image data becomes smaller (the difference does not increase). Restrict to

具体的には、算出されたぶれ量が第1の閾値以下で且つ小さい第2の閾値以上である場合、強度決定回路114は、先ず、動き量の統計データを取得し、その統計データから動き量の基準値を算出する。動き量の基準値は、例えば動き量の統計データのなかの平均値や中央値を用いることができる。次に、強度決定回路114は、その動き量の基準値を基に、領域単位の強度の設定可能範囲を算出する。   Specifically, when the calculated shake amount is equal to or less than the first threshold value and equal to or more than the small second threshold value, the strength determination circuit 114 first acquires statistical data of the movement amount, and moves from the statistical data. Calculate the reference value of the quantity. As the reference value of the motion amount, for example, an average value or a median value in statistical data of the motion amount can be used. Next, the strength determination circuit 114 calculates the settable range of strength in area units based on the reference value of the movement amount.

図8において、太い実線は領域単位の強度であり、太い点線は動き量の基準値に基づく一律な強度であり、一点鎖線はぶれ量が第1の閾値より大きい場合の領域単位の強度である。例えば、強度決定回路114は、ぶれ量が第1の閾値以下で且つ小さい第2の閾値以上である場合は、画像データ内の領域によるぶれ量の差異が小さくなるように、一律な強度に対する差が所定範囲に収まるように、領域単位の強度の設定可能範囲を狭く制限する。   In FIG. 8, a thick solid line indicates the intensity in the area unit, a thick dotted line indicates the uniform intensity based on the reference value of the movement amount, and a dashed dotted line indicates the intensity in the area unit when the blur amount is larger than the first threshold. . For example, when the blur amount is equal to or less than the first threshold and equal to or more than the small second threshold, the intensity determination circuit 114 makes a difference with respect to the uniform intensity so that the difference in the blur amount depending on the area in the image data is reduced. Limits the settable range of intensity in area units narrowly so that it falls within a predetermined range.

強度の設定可能範囲を狭く制限する手法としては、例えば、算出されたぶれ量と領域単位の強度の設定可能範囲の値とを対応付けたテーブルを参照する手法を用いることができる。すなわち、このテーブルには、第1の閾値以下で且つ第2の閾値以上のぶれ量の値に対して、領域単位の強度の設定可能範囲の値が設定されている。なお、第1の閾値、第2の閾値、テーブルに格納する値は、実際に値を変更しつつ、処理後の画像データに含まれるぶれ量の差異を判定しながら実験的に定めればよい。また、強度の設定可能範囲を狭く制限する別の手法として、検知されたぶれ量をパラメータとした演算により強度の設定可能範囲を求める手法が用いられてもよい。   As a method of narrowly limiting the settable range of the intensity, for example, a method of referring to a table in which the calculated shake amount is associated with the value of the settable range of the intensity in the area unit can be used. That is, in this table, the value of the settable range of the intensity in the unit of area is set for the value of the blur amount which is equal to or less than the first threshold and equal to or more than the second threshold. Note that the first threshold, the second threshold, and the values stored in the table may be determined experimentally while determining the difference in the amount of blurring included in the image data after processing while actually changing the values. . Further, as another method of narrowly limiting the settable range of the intensity, a method of obtaining the settable range of the intensity by calculation using the detected blur amount as a parameter may be used.

そして、強度決定回路114は、前述のようにして設定した領域単位の強度の設定可能範囲において、領域毎の動き量に応じた領域単位の強度を設定して、巡回型NR処理を実行する。すなわち、第3の実施形態の場合、領域単位の強度の設定可能範囲内において、領域毎の動き量に応じた領域単位の巡回型NR強度を設定することができる。これにより、巡回型NR処理回路115では被写体の動きに適したノイズ低減を実現可能となる。さらに、第3の実施形態においても前述の各実施形態と同様に、巡回型NR処理後にぶれ補正処理が行われるため、ぶれが発生する領域とぶれが発生しない領域とが生じてしまうように見える画像データが生成されることを抑制できるようになる。   Then, the strength determination circuit 114 sets the strength in the area unit according to the movement amount for each area in the settable range of the strength in the area unit set as described above, and executes the cyclic NR processing. That is, in the case of the third embodiment, it is possible to set the cyclic NR intensity of the area unit according to the movement amount for each area within the settable range of the intensity of the area unit. As a result, the cyclic NR processing circuit 115 can realize noise reduction suitable for the movement of the subject. Furthermore, in the third embodiment as well as in each of the above-described embodiments, the blur correction process is performed after the cyclic NR process, so it appears that an area in which blurring occurs and an area in which blurring does not occur may occur. It is possible to suppress the generation of image data.

さらに、ぶれ補正回路117は、算出されたぶれ量が第2の閾値以下で且つ第2の閾値より小さい第3の閾値より大きい場合も、ぶれ補正処理を行う。ぶれ量が第2の閾値以下で且つ第3の閾値より大きい場合には、領域単位の強度を設定した巡回型NR処理が行われたとしても、その後に実行されるぶれ補正処理の影響が小さいため、画像データの領域によるぶれ量の差異があっても見た目には目立たない。このため、算出されたぶれ量が第2の閾値以下で且つ第3の閾値より大きい場合、強度決定回路114は、領域単位の強度の設定可能範囲を広く設定する。言い換えると、検知されたぶれ量が第2の閾値より小さい場合、強度決定回路114は、係数kの設定可能範囲を、図4よりは狭く、かつ、図8(a)(または図8(b))に示す設定可能範囲よりは広く設定する。つまり、算出されたぶれ量が第2の閾値以下で第3の閾値より大きい場合、強度決定回路114は、領域単位の動き量に応じた好適な巡回型NR処理が行われることになる。なお、ぶれ補正回路117は、算出されたぶれ量が第3の閾値以下であればぶれ補正処理を行わず、巡回型NR処理回路115は図4に示す領域単位の強度にて巡回型NR処理を行う。   Furthermore, the shake correction circuit 117 performs the shake correction process also when the calculated shake amount is equal to or less than the second threshold and larger than a third threshold smaller than the second threshold. When the blurring amount is equal to or less than the second threshold and larger than the third threshold, the influence of the blurring correction processing performed thereafter is small even if the cyclic NR processing in which the intensity in the area unit is set is performed. Therefore, even if there is a difference in the amount of blurring due to the area of the image data, it is not noticeable to the eye. Therefore, when the calculated shake amount is equal to or less than the second threshold and larger than the third threshold, the strength determination circuit 114 sets the settable range of the strength in area units wide. In other words, when the detected shake amount is smaller than the second threshold value, the intensity determination circuit 114 sets the settable range of the coefficient k narrower than in FIG. 4 and in FIG. 8 (a) (or FIG. Set wider than the settable range shown in). That is, when the calculated shake amount is equal to or less than the second threshold and larger than the third threshold, the strength determination circuit 114 performs a suitable cyclic NR process according to the movement amount in units of regions. Note that the shake correction circuit 117 does not perform the shake correction process if the calculated shake amount is equal to or less than the third threshold value, and the cyclic NR processing circuit 115 performs cyclic NR processing with the intensity in units of regions shown in FIG. I do.

以上説明したように、第3の実施形態の撮像装置は、ぶれ補正処理が行われる場合であっても、ぶれ量に応じた範囲で領域単位の強度を設定することによって、ぶれが発生する領域とぶれが発生しない領域とが生じてしまうように見える画像データが生成されることを抑制しつつ、ノイズ低減の効果も向上させることができる。   As described above, in the image pickup apparatus according to the third embodiment, even when shake correction processing is performed, an area in which a shake occurs is generated by setting the intensity in an area unit in a range corresponding to the shake amount. The effect of noise reduction can also be improved while suppressing the generation of image data that appears to produce an area where blurring does not occur.

以上、本発明の好ましい実施形態について説明したが、本発明はこれらの実施形態に限定されず、その要旨の範囲内で種々の変形及び変更が可能である。
なお、前述した本実施形態の撮像装置は、例えば、デジタルカメラやデジタルビデオカメラ、カメラ機能を備えたスマートフォンやタブレット端末などの各種携帯端末、工業用カメラ、車載カメラ、医療用カメラなどに適用可能である。また、本発明は、図1の画像処理装置110のみで実施することが可能であり、画像生成装置100、表示装置121および記録回路122は別装置とすることも可能である。例えば、本発明は、上記の種々のカメラから通信により画像データを受け取って、巡回型NR処理とぶれ補正処理を行うパーソナルコンピュータやサーバコンピュータなどにも適用可能である。
As mentioned above, although the preferable embodiment of this invention was described, this invention is not limited to these embodiment, A various deformation | transformation and change are possible within the range of the summary.
Note that the imaging device according to the present embodiment described above can be applied to, for example, various portable terminals such as digital cameras and digital video cameras, smartphones and tablet terminals having a camera function, industrial cameras, on-vehicle cameras, medical cameras and the like. It is. Further, the present invention can be implemented only by the image processing apparatus 110 of FIG. 1, and the image generation apparatus 100, the display device 121, and the recording circuit 122 can be separate devices. For example, the present invention is also applicable to a personal computer, a server computer, etc. that receives image data from the above-mentioned various cameras by communication and performs cyclic NR processing and blur correction processing.

本発明は、上述の実施形態の1以上の機能を実現するプログラムを、ネットワークまたは記憶媒体を介してシステムまたは装置に供給し、そのシステムまたは装置のコンピュータにおける1つ以上のプロセッサがプログラムを読出し実行する処理でも実現可能である。また、1以上の機能を実現する回路(例えば、ASIC)によっても実現可能である。   The present invention supplies a program that implements one or more functions of the above-described embodiments to a system or apparatus via a network or storage medium, and one or more processors in a computer of the system or apparatus read and execute the program. Can also be realized. It can also be implemented by a circuit (eg, an ASIC) that implements one or more functions.

上述の実施形態は、何れも本発明を実施するにあたっての具体化の例を示したものに過ぎず、これらによって本発明の技術的範囲が限定的に解釈されてはならないものである。即ち、本発明は、その技術思想、またはその主要な特徴から逸脱することなく、様々な形で実施することができる。   The above-described embodiments are merely examples of implementation for practicing the present invention, and the technical scope of the present invention should not be interpreted limitedly by these. That is, the present invention can be implemented in various forms without departing from the technical concept or the main features thereof.

100 画像生成装置
101 撮像光学系
102 撮像素子
103 画像データ生成回路
110 画像処理装置
111 動き量検出回路
112 ぶれ量算出回路
113 一律強度算出回路
114 強度決定回路
115 巡回型NR処理回路
116 画像加工回路
117 ぶれ補正回路
121 表示装置
122 記録回路
100 image generation apparatus 101 imaging optical system 102 image pickup element 103 image data generation circuit 110 image processing apparatus 111 motion amount detection circuit 112 shake amount calculation circuit 113 uniform intensity calculation circuit 114 intensity determination circuit 115 cyclic NR processing circuit 116 image processing circuit 117 Shake correction circuit 121 Display device 122 Recording circuit

Claims (17)

画像処理装置によって実行される画像処理方法であって、
画像データから動き量を検出する工程と、
前記画像データを撮像した撮像装置のぶれ量を算出する工程と、
巡回型ノイズリダクション処理の強度を設定する工程と、
前記画像データに対して前記巡回型ノイズリダクション処理を行う工程と、
前記ぶれ量を基に、前記巡回型ノイズリダクション処理が行われた画像データのぶれを抑えるぶれ補正処理を行う工程と、を有し、
前記ぶれ補正処理が動作していない場合には、前記巡回型ノイズリダクション処理の強度を、前記動き量に基づいて、1つ以上の画素を含む領域単位で設定し、
前記ぶれ補正処理が動作している場合には、前記巡回型ノイズリダクション処理の強度を、前記画像データの全ての領域に一律に設定することを特徴とする画像処理方法。
An image processing method performed by an image processing apparatus, comprising:
Detecting a motion amount from image data;
Calculating a blur amount of an imaging device that has captured the image data;
Setting the strength of the cyclic noise reduction process;
Performing the cyclic noise reduction process on the image data;
Performing blurring correction processing for suppressing blurring of the image data subjected to the cyclic noise reduction processing based on the blurring amount;
When the shake correction process is not in operation, the strength of the cyclic noise reduction process is set in an area unit including one or more pixels based on the movement amount.
An image processing method, wherein the strength of the cyclic noise reduction process is uniformly set to all the areas of the image data when the blur correction process is operating.
前記全ての領域に一律に設定される前記巡回型ノイズリダクション処理の強度は、前記動き量の統計データに基づいて算出されることを特徴とする請求項1に記載の画像処理方法。   The image processing method according to claim 1, wherein the strength of the cyclic noise reduction processing uniformly set in all the regions is calculated based on statistical data of the motion amount. 前記動き量の統計データから前記動き量のばらつき度を求め、
前記全ての領域に一律に設定される前記巡回型ノイズリダクション処理の強度は、前記動き量のばらつき度に基づいて算出されることを特徴とする請求項2に記載の画像処理方法。
The variation degree of the movement amount is determined from the statistical data of the movement amount,
The image processing method according to claim 2, wherein the strength of the cyclic noise reduction processing uniformly set in all the regions is calculated based on the degree of variation of the motion amount.
前記動き量のばらつき度に基づいて基準値を選択し、
前記全ての領域に一律に適用する前記巡回型ノイズリダクション処理の強度は、基準値に基づいて算出されることを特徴とする請求項3に記載の画像処理方法。
A reference value is selected based on the degree of variation of the movement amount,
The image processing method according to claim 3, wherein the strength of the cyclic noise reduction processing applied uniformly to all the regions is calculated based on a reference value.
前記動き量のばらつき度が所定値より小さい場合は、前記動き量の平均値または中央値が前記基準値として選択されることを特徴とする請求項4に記載の画像処理方法。   5. The image processing method according to claim 4, wherein when the variation degree of the motion amount is smaller than a predetermined value, an average value or a median value of the motion amounts is selected as the reference value. 前記動き量のばらつき度が所定値以上である場合は、前記動き量の最大値が基準値として選択されることを特徴とする請求項4に記載の画像処理方法。   5. The image processing method according to claim 4, wherein the maximum value of the motion amount is selected as a reference value when the variation degree of the motion amount is equal to or more than a predetermined value. 前記画像データに対して空間型ノイズリダクション処理を行う工程を有し、
前記空間型ノイズリダクション処理の強度は、前記全ての領域に一律に適用する前記巡回型ノイズリダクション処理の強度に基づいて設定されることを特徴とする請求項1乃至6のいずれか1項に記載の画像処理方法。
Performing a spatial noise reduction process on the image data;
The strength of the spatial noise reduction process is set based on the strength of the cyclic noise reduction process that is uniformly applied to all the regions. Image processing method.
前記全ての領域に一律に適用する前記巡回型ノイズリダクション処理の強度と、前記動き量に基づく巡回型ノイズリダクション処理の強度との差分が大きくなる領域ほど、前記空間型ノイズリダクション処理の強度は高く設定されることを特徴とする請求項7に記載の画像処理方法。   The intensity of the spatial noise reduction process is higher in a region where the difference between the intensity of the cyclic noise reduction process uniformly applied to all the regions and the intensity of the cyclic noise reduction process based on the motion amount is larger. The image processing method according to claim 7, wherein the image processing method is set. 画像処理装置によって実行される画像処理方法であって、
画像データから動き量を検出する工程と、
前記画像データを撮像した撮像装置のぶれ量を算出する工程と、
巡回型ノイズリダクション処理の強度を設定する工程と、
前記画像データに対して前記巡回型ノイズリダクション処理を行う工程と、
前記ぶれ量を基に、前記巡回型ノイズリダクション処理が行われた画像データのぶれを抑えるぶれ補正処理を行う工程と、を有し、
前記ぶれ量が第1の閾値以下の場合には、前記巡回型ノイズリダクション処理の強度を、前記動き量に基づいて、1つ以上の画素を含む領域単位で設定し、
前記ぶれ量が前記第1の閾値より大きい場合には、前記巡回型ノイズリダクション処理の強度を、前記画像データの全ての領域に一律に設定することを特徴とする画像処理方法。
An image processing method performed by an image processing apparatus, comprising:
Detecting a motion amount from image data;
Calculating a blur amount of an imaging device that has captured the image data;
Setting the strength of the cyclic noise reduction process;
Performing the cyclic noise reduction process on the image data;
Performing blurring correction processing for suppressing blurring of the image data subjected to the cyclic noise reduction processing based on the blurring amount;
If the shake amount is equal to or less than a first threshold, the strength of the cyclic noise reduction process is set in an area unit including one or more pixels based on the movement amount.
The image processing method, wherein the strength of the cyclic noise reduction process is uniformly set to all the areas of the image data when the blur amount is larger than the first threshold.
前記ぶれ補正処理は、前記ぶれ量が前記第1の閾値より小さい第2の閾値より小さい場合には行われず、前記ぶれ量が前記第2の閾値以上である場合に行われることを特徴とする請求項9に記載の画像処理方法。   The shake correction process is not performed when the shake amount is smaller than a second threshold smaller than the first threshold, and is performed when the shake amount is equal to or larger than the second threshold. The image processing method according to claim 9. 前記ぶれ量が前記第1の閾値以下、かつ、前記第2の閾値以上である場合の、前記領域単位で設定される前記巡回型ノイズリダクション処理の強度の設定可能範囲は、
前記ぶれ量が前記第2の閾値以下である場合の、前記領域単位で設定される前記巡回型ノイズリダクション処理の強度の設定可能範囲よりも狭いことを特徴とする請求項10に記載の画像処理方法。
The settable range of the strength of the cyclic noise reduction process set in the area unit when the blur amount is equal to or less than the first threshold and equal to or more than the second threshold is:
The image processing according to claim 10, wherein the image processing is characterized in that it is narrower than the settable range of the strength of the cyclic noise reduction processing set in the area unit when the blur amount is equal to or less than the second threshold. Method.
前記設定可能範囲は、前記ぶれ量と前記設定可能範囲とを対応させたテーブルに基づいて設定されることを特徴とする請求項11に記載の画像処理方法。   12. The image processing method according to claim 11, wherein the settable range is set based on a table in which the blur amount is associated with the settable range. 画像データから動き量を検出する動き量検出手段と、
前記画像データを撮像した撮像装置のぶれ量を算出するぶれ算出手段と、
前記画像データに対して巡回型ノイズリダクション処理を行う処理手段と、
前記巡回型ノイズリダクション処理を制御する制御手段と、
前記ぶれ量を基に、前記巡回型ノイズリダクション処理が行われた画像データのぶれを抑えるぶれ補正処理を行う補正手段と、を有し、
前記制御手段は、
前記ぶれ補正処理が動作していない場合には、前記巡回型ノイズリダクション処理の強度を、前記動き量に基づいて、1つ以上の画素を含む領域単位で設定し、
前記ぶれ補正処理が動作している場合には、前記巡回型ノイズリダクション処理の強度を、前記画像データの全ての領域に一律に設定することを特徴とする画像処理装置。
Motion amount detection means for detecting a motion amount from image data;
Shake calculating means for calculating the amount of shake of an imaging device that has captured the image data;
Processing means for performing cyclic noise reduction processing on the image data;
Control means for controlling the cyclic noise reduction process;
And correcting means for performing blurring correction processing for suppressing blurring of the image data subjected to the cyclic noise reduction processing based on the blurring amount.
The control means
When the shake correction process is not in operation, the strength of the cyclic noise reduction process is set in an area unit including one or more pixels based on the movement amount.
An image processing apparatus, wherein the strength of the cyclic noise reduction process is uniformly set in all the areas of the image data when the shake correction process is operating.
撮像手段と、
前記撮像手段によって生成された画像データから動き量を検出する動き量検出手段と、
前記画像データを撮像した撮像装置のぶれ量を算出するぶれ算出手段と、
前記画像データに対して巡回型ノイズリダクション処理を行う処理手段と、
前記巡回型ノイズリダクション処理を制御する制御手段と、
前記ぶれ量を基に、前記巡回型ノイズリダクション処理が行われた画像データのぶれを抑えるぶれ補正処理を行う補正手段と、を有し、
前記制御手段は、
前記ぶれ補正処理が動作していない場合には、前記巡回型ノイズリダクション処理の強度を、前記動き量に基づいて、1つ以上の画素を含む領域単位で設定し、
前記ぶれ補正処理が動作している場合には、前記巡回型ノイズリダクション処理の強度を、前記動き量に基づいて領域単位で設定することを特徴とする撮像装置。
Imaging means,
Motion amount detection means for detecting a motion amount from the image data generated by the imaging means;
Shake calculating means for calculating the amount of shake of an imaging device that has captured the image data;
Processing means for performing cyclic noise reduction processing on the image data;
Control means for controlling the cyclic noise reduction process;
And correcting means for performing blurring correction processing for suppressing blurring of the image data subjected to the cyclic noise reduction processing based on the blurring amount.
The control means
When the shake correction process is not in operation, the strength of the cyclic noise reduction process is set in an area unit including one or more pixels based on the movement amount.
When the shake correction process is operating, an intensity of the cyclic noise reduction process is set in units of regions based on the movement amount.
画像データから動き量を検出する動き量検出手段と、
前記画像データを撮像した撮像装置のぶれ量を算出するぶれ算出手段と、
前記画像データに対して巡回型ノイズリダクション処理を行う処理手段と、
前記巡回型ノイズリダクション処理を制御する制御手段と、
前記ぶれ量を基に、前記巡回型ノイズリダクション処理が行われた画像データのぶれを抑えるぶれ補正処理を行う補正手段と、を有し、
前記制御手段は、
前記ぶれ量が第1の閾値以下の場合には、前記巡回型ノイズリダクション処理の強度を、前記動き量に基づいて、1つ以上の画素を含む領域単位で設定し、
前記ぶれ量が前記第1の閾値より大きい場合には、前記巡回型ノイズリダクション処理の強度を、前記画像データの全ての領域に一律に設定することを特徴とする画像処理装置。
Motion amount detection means for detecting a motion amount from image data;
Shake calculating means for calculating the amount of shake of an imaging device that has captured the image data;
Processing means for performing cyclic noise reduction processing on the image data;
Control means for controlling the cyclic noise reduction process;
And correcting means for performing blurring correction processing for suppressing blurring of the image data subjected to the cyclic noise reduction processing based on the blurring amount.
The control means
If the shake amount is equal to or less than a first threshold, the strength of the cyclic noise reduction process is set in an area unit including one or more pixels based on the movement amount.
An image processing apparatus, wherein the strength of the cyclic noise reduction process is uniformly set to all the areas of the image data when the shake amount is larger than the first threshold.
撮像手段と、
前記撮像手段によって生成された画像データから動き量を検出する動き量検出手段と、
前記画像データを撮像した撮像装置のぶれ量を算出するぶれ算出手段と、
前記画像データに対して巡回型ノイズリダクション処理を行う処理手段と、
前記巡回型ノイズリダクション処理を制御する制御手段と、
前記ぶれ量を基に、前記巡回型ノイズリダクション処理が行われた画像データのぶれを抑えるぶれ補正処理を行う補正手段と、を有し、
前記制御手段は、
前記ぶれ量が第1の閾値以下の場合には、前記巡回型ノイズリダクション処理の強度を、前記動き量に基づいて、1つ以上の画素を含む領域単位で設定し、
前記ぶれ量が前記第1の閾値より大きい場合には、前記巡回型ノイズリダクション処理の強度を、前記動き量に基づいて領域単位で設定することを特徴とする撮像装置。
Imaging means,
Motion amount detection means for detecting a motion amount from the image data generated by the imaging means;
Shake calculating means for calculating the amount of shake of an imaging device that has captured the image data;
Processing means for performing cyclic noise reduction processing on the image data;
Control means for controlling the cyclic noise reduction process;
And correcting means for performing blurring correction processing for suppressing blurring of the image data subjected to the cyclic noise reduction processing based on the blurring amount.
The control means
If the shake amount is equal to or less than a first threshold, the strength of the cyclic noise reduction process is set in an area unit including one or more pixels based on the movement amount.
An image pickup apparatus, wherein the strength of the cyclic noise reduction process is set in an area unit based on the movement amount when the shake amount is larger than the first threshold.
請求項1乃至12のいずれか1項に記載の画像処理方法をコンピュータに実行させるためのプログラム。   A program for causing a computer to execute the image processing method according to any one of claims 1 to 12.
JP2018164468A 2017-09-27 2018-09-03 Image processing method, image processing device, imaging device, and program Active JP7118818B2 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
EP18196001.4A EP3462725A1 (en) 2017-09-27 2018-09-21 Image processing method, image processing apparatus, imaging apparatus, and program
US16/141,662 US10812719B2 (en) 2017-09-27 2018-09-25 Image processing apparatus, imaging apparatus, and image processing method for reducing noise and corrects shaking of image data

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
JP2017186768 2017-09-27
JP2017186768 2017-09-27

Publications (2)

Publication Number Publication Date
JP2019062528A true JP2019062528A (en) 2019-04-18
JP7118818B2 JP7118818B2 (en) 2022-08-16

Family

ID=66178665

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2018164468A Active JP7118818B2 (en) 2017-09-27 2018-09-03 Image processing method, image processing device, imaging device, and program

Country Status (1)

Country Link
JP (1) JP7118818B2 (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006197455A (en) * 2005-01-17 2006-07-27 Matsushita Electric Ind Co Ltd Noise reduction device
JP2009021868A (en) * 2007-07-12 2009-01-29 Sony Corp Video processing apparatus, video processing method, and program
WO2015119207A1 (en) * 2014-02-07 2015-08-13 株式会社モルフォ Image processing device, image processing method, image processing program, and recording medium

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006197455A (en) * 2005-01-17 2006-07-27 Matsushita Electric Ind Co Ltd Noise reduction device
JP2009021868A (en) * 2007-07-12 2009-01-29 Sony Corp Video processing apparatus, video processing method, and program
WO2015119207A1 (en) * 2014-02-07 2015-08-13 株式会社モルフォ Image processing device, image processing method, image processing program, and recording medium

Also Published As

Publication number Publication date
JP7118818B2 (en) 2022-08-16

Similar Documents

Publication Publication Date Title
KR101652658B1 (en) Image processing device, image processing method, image processing program, and recording medium
EP2849428A1 (en) Image processing device, image processing method, image processing program, and storage medium
US9413951B2 (en) Dynamic motion estimation and compensation for temporal filtering
US9055217B2 (en) Image compositing apparatus, image compositing method and program recording device
CN106550187B (en) Apparatus and method for image stabilization
JP6254938B2 (en) Image noise removing apparatus and image noise removing method
US10482580B2 (en) Image processing apparatus, image processing method, and program
CN111372000A (en) Video anti-shake method and apparatus, electronic device, and computer-readable storage medium
US10812719B2 (en) Image processing apparatus, imaging apparatus, and image processing method for reducing noise and corrects shaking of image data
JP6282133B2 (en) Imaging device, control method thereof, and control program
JP2015114438A (en) Image processor, imaging device provided with the same, and image processing method
JP6231816B2 (en) IMAGING DEVICE, ITS CONTROL METHOD, PROGRAM, AND STORAGE MEDIUM
JP2016201037A (en) Image processing device, image processing method, and program
JP2019062528A (en) Image processing method, image processing system, imaging apparatus, and program
JP3959547B2 (en) Image processing apparatus, image processing method, and information terminal apparatus
JP7039215B2 (en) Image processing equipment, image processing methods, and programs
JP6381212B2 (en) Imaging apparatus and control method thereof
JP6570304B2 (en) Video processing apparatus, video processing method, and program
JP2020129019A (en) Imaging device and control method therefor
JP2010141813A (en) Video processing apparatus and method of controlling video processing apparatus
US11838645B2 (en) Image capturing control apparatus, image capturing control method, and storage medium
JP4486487B2 (en) Smear correction device
CN109891877B (en) Image processing device, image display device, and program
JP2003283876A (en) Noise rejection circuit
JP2017034608A (en) Image processing system, image processing method and program

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20210830

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20220523

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20220803

R151 Written notification of patent or utility model registration

Ref document number: 7118818

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R151