JP2015179951A - Image processing apparatus, imaging apparatus, image processing method, program and storage medium - Google Patents
Image processing apparatus, imaging apparatus, image processing method, program and storage medium Download PDFInfo
- Publication number
- JP2015179951A JP2015179951A JP2014056317A JP2014056317A JP2015179951A JP 2015179951 A JP2015179951 A JP 2015179951A JP 2014056317 A JP2014056317 A JP 2014056317A JP 2014056317 A JP2014056317 A JP 2014056317A JP 2015179951 A JP2015179951 A JP 2015179951A
- Authority
- JP
- Japan
- Prior art keywords
- pixel
- value
- luminance
- threshold value
- change amount
- 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.)
- Pending
Links
Landscapes
- Image Processing (AREA)
- Color Television Image Signal Generators (AREA)
- Processing Of Color Television Signals (AREA)
- Facsimile Image Signal Circuits (AREA)
Abstract
Description
本発明は、ノイズ成分を除去する画像処理装置に関する。 The present invention relates to an image processing apparatus that removes noise components.
デジタルカメラなどの撮像装置では、高感度化や高画素化の要求により、ノイズ成分を高精度に除去することが求められている。特許文献1には、着目画素と他の画素の輝度信号の差を表す輝度差分信号、および、着目画素と他の画素の彩度信号の差を表す色差分信号を取得し、これらの差分信号と予め定められた閾値とを比較してノイズ成分の除去量を決定する撮像装置が開示されている。 In an imaging apparatus such as a digital camera, it is required to remove noise components with high accuracy due to demands for higher sensitivity and higher pixels. Patent Document 1 acquires a luminance difference signal that represents a difference between luminance signals of a pixel of interest and other pixels, and a color difference signal that represents a difference between saturation signals of the pixel of interest and other pixels, and these difference signals. An imaging apparatus that determines a removal amount of a noise component by comparing a predetermined threshold value with a predetermined threshold value is disclosed.
特許文献1の撮像装置では、高輝度エッジに発生する色つきを除去しようとする場合、輝度差分信号に対する閾値を大きくしてノイズ処理の効果を得る必要がある。しかし、このとき、色つき被写体のエッジ部において、色のエッジの解像感が消失しやすい。 In the imaging apparatus disclosed in Patent Document 1, in order to remove the coloring generated at the high luminance edge, it is necessary to increase the threshold value for the luminance difference signal to obtain the effect of noise processing. However, at this time, the resolution of the color edge tends to disappear at the edge portion of the colored subject.
そこで本発明は、高性能なノイズ除去処理を実行可能な画像処理装置、撮像装置、画像処理方法、プログラム、および、記憶媒体を提供する。 Therefore, the present invention provides an image processing device, an imaging device, an image processing method, a program, and a storage medium that can perform high-performance noise removal processing.
本発明の一側面としての画像処理装置は、第1画素と第2画素との輝度差の絶対値が第1閾値以下であって、かつ、該第1画素と該第2画素との彩度差の絶対値が第2閾値以下であるか否かを判定する判定手段と、前記輝度差の絶対値が前記第1閾値以下であって、かつ、前記彩度差の絶対値が前記第2閾値以下である場合、前記第1画素および前記第2画素の色差信号に対して平滑化処理を行う処理手段と、前記第1画素と該第1画素の近傍画素との間の輝度値の変化に応じて前記第1閾値を変更可能に設定する設定手段とを有する。 An image processing apparatus according to one aspect of the present invention has an absolute value of a luminance difference between a first pixel and a second pixel that is equal to or less than a first threshold value, and saturation between the first pixel and the second pixel. Determining means for determining whether or not the absolute value of the difference is equal to or smaller than a second threshold; and the absolute value of the luminance difference is equal to or smaller than the first threshold and the absolute value of the saturation difference is equal to the second threshold. When the threshold value is less than or equal to the threshold value, a change in luminance value between the processing means for performing a smoothing process on the color difference signals of the first pixel and the second pixel, and the first pixel and a neighboring pixel of the first pixel And setting means for setting the first threshold value to be changeable according to
本発明の他の側面としての撮像装置は、撮像部と、撮像部からの出力信号に基づいて画像処理を行うように構成された前記画像処理装置とを有する。 An imaging device as another aspect of the present invention includes an imaging unit and the image processing device configured to perform image processing based on an output signal from the imaging unit.
本発明の他の側面としての画像処理方法は、第1画素と該第1画素の近傍画素との間の輝度値の変化に応じて第1閾値を設定するステップと、前記第1画素と第2画素との輝度差の絶対値が前記第1閾値以下であって、かつ、該第1画素と該第2画素との彩度差の絶対値が第2閾値以下であるか否かを判定するステップと、前記輝度差の絶対値が前記第1閾値以下であって、かつ、前記彩度差の絶対値が前記第2閾値以下である場合、前記第1画素および前記第2画素の色差信号に対して平滑化処理を行うステップとを有する。 According to another aspect of the present invention, there is provided an image processing method, comprising: setting a first threshold value according to a change in luminance value between a first pixel and a neighboring pixel of the first pixel; It is determined whether the absolute value of the luminance difference between two pixels is equal to or less than the first threshold value, and the absolute value of the saturation difference between the first pixel and the second pixel is equal to or less than the second threshold value. And a color difference between the first pixel and the second pixel when the absolute value of the luminance difference is equal to or smaller than the first threshold value and the absolute value of the saturation difference is equal to or smaller than the second threshold value. Performing a smoothing process on the signal.
本発明の他の側面としてのプログラムは、コンピュータに、前記画像処理方法を実行させるように構成されている。 A program according to another aspect of the present invention is configured to cause a computer to execute the image processing method.
本発明の他の側面としての記憶媒体は、前記プログラムを記憶している。 A storage medium according to another aspect of the present invention stores the program.
本発明の他の目的及び特徴は、以下の実施例において説明される。 Other objects and features of the present invention are illustrated in the following examples.
本発明によれば、高性能なノイズ除去処理を実行可能な画像処理装置、撮像装置、画像処理方法、プログラム、および、記憶媒体を提供することができる。 According to the present invention, it is possible to provide an image processing device, an imaging device, an image processing method, a program, and a storage medium capable of performing high-performance noise removal processing.
以下、本発明の実施形態について、図面を参照しながら詳細に説明する。 Hereinafter, embodiments of the present invention will be described in detail with reference to the drawings.
(第1の実施形態)
まず、図1を参照して、本発明の第1の実施形態における撮像装置の構成について説明する。図1は、本実施形態における撮像装置100のブロック図である。図1の撮像装置100は、撮像部1000、および、画像処理装置を構成するその他の要素を備えている。画像処理装置は、撮像部1000からの出力信号に基づいて画像処理を行うように構成されている。
(First embodiment)
First, the configuration of the imaging apparatus according to the first embodiment of the present invention will be described with reference to FIG. FIG. 1 is a block diagram of an imaging apparatus 100 according to this embodiment. The imaging apparatus 100 in FIG. 1 includes an imaging unit 1000 and other elements that constitute the image processing apparatus. The image processing apparatus is configured to perform image processing based on an output signal from the imaging unit 1000.
撮像部1000は、撮影レンズ(撮影光学系)及び撮像素子を含み、光学像(被写体像)を光電変換して画像信号(アナログ信号)を出力する。撮像部1000から出力されたアナログ信号は、A/D変換部1001に入力される。A/D変換部1001は、アナログ信号をデジタル信号に変換する。A/D変換部1001によりデジタル信号に変換された画像信号(デジタル画像信号)は、WB部1002(ホワイトバランス部)に入力される。WB部1002は、デジタル画像信号に対して、公知のホワイトバランス調整を行う。 The imaging unit 1000 includes a photographic lens (imaging optical system) and an imaging element, and photoelectrically converts an optical image (subject image) to output an image signal (analog signal). The analog signal output from the imaging unit 1000 is input to the A / D conversion unit 1001. The A / D conversion unit 1001 converts an analog signal into a digital signal. An image signal (digital image signal) converted into a digital signal by the A / D conversion unit 1001 is input to the WB unit 1002 (white balance unit). The WB unit 1002 performs known white balance adjustment on the digital image signal.
WB部1002から出力された画像信号(輝度信号)は、輝度NR部1003(輝度ノイズリダクション部)に入力される。輝度NR部1003は、WB部1002から出力された画像信号に対して、輝度NR処理(輝度ノイズリダクション処理)を行う。輝度NR処理としては、画像に含まれるエッジ成分の方向を検出し、検出したエッジ成分の方向に沿った低域通過フィルタを用いた平滑化処理によりノイズを低減する公知の方法を用いることができる。ただし、本実施形態はこれに限定されるものではなく、他の方法を用いてもよい。輝度NR部1003で補正された(輝度NR処理が行われた)輝度信号は、輝度信号処理部1004に入力される。輝度信号処理部1004は、輝度信号に対して、公知のガンマ補正などの輝度信号処理を行う。 The image signal (luminance signal) output from the WB unit 1002 is input to the luminance NR unit 1003 (luminance noise reduction unit). The luminance NR unit 1003 performs luminance NR processing (luminance noise reduction processing) on the image signal output from the WB unit 1002. As the luminance NR process, a known method of detecting the direction of the edge component included in the image and reducing noise by a smoothing process using a low-pass filter along the direction of the detected edge component can be used. . However, the present embodiment is not limited to this, and other methods may be used. The luminance signal corrected by the luminance NR unit 1003 (the luminance NR process is performed) is input to the luminance signal processing unit 1004. The luminance signal processing unit 1004 performs luminance signal processing such as known gamma correction on the luminance signal.
また、WB部1002から出力された画像信号は、色補間部1005に入力される。色補間部1005は、画像信号に対して公知の色補間処理を行い、画像信号を色差信号V(R−Y)、U(B−Y)などに変換する。色補間部1005から出力された色差信号は、色NR部1006(色ノイズリダクション部)に入力される。色NR部1006は、色差信号に対して色NR処理(補正処理)を行う。なお、この詳細については後述する。色NR部1006は、V方向NR処理部1007(垂直方向NR処理部)およびH方向NR処理部1008(水平方向NR処理部)を備えて構成される。V方向NR処理部1007は垂直方向に色NR処理を行い、その後、H方向NR処理部1008は水平方向に色NR処理を行う。本実施形態において、V方向NR処理部1007は、判定手段1071、処理手段1072、および、設定手段1073を備えている。好ましくは、H方向NR処理部1008にも同様の各手段が設けられている。なお、これらの各手段の動作については後述する。 The image signal output from the WB unit 1002 is input to the color interpolation unit 1005. The color interpolation unit 1005 performs a known color interpolation process on the image signal, and converts the image signal into a color difference signal V (RY), U (BY), or the like. The color difference signal output from the color interpolation unit 1005 is input to the color NR unit 1006 (color noise reduction unit). The color NR unit 1006 performs color NR processing (correction processing) on the color difference signal. Details of this will be described later. The color NR unit 1006 includes a V direction NR processing unit 1007 (vertical direction NR processing unit) and an H direction NR processing unit 1008 (horizontal direction NR processing unit). The V direction NR processing unit 1007 performs color NR processing in the vertical direction, and then the H direction NR processing unit 1008 performs color NR processing in the horizontal direction. In this embodiment, the V-direction NR processing unit 1007 includes a determination unit 1071, a processing unit 1072, and a setting unit 1073. Preferably, the H-direction NR processing unit 1008 is also provided with similar means. The operation of each of these means will be described later.
色NR部1006で処理(補正)されて得られた色信号は、色信号処理部1009に入力される。色信号処理部1009は、色信号(色差信号)に対して、公知の色変換マトリックス処理や色抑圧処理などの色補正処理を行う。本実施形態において、色NR部1006は、色差信号に含まれるエッジ信号を保存しつつ、エッジとしては振幅が小さいレベルの信号をノイズとして除去する。続いて図3を参照して、色NR部1006の動作の一例について説明する。 A color signal obtained by being processed (corrected) by the color NR unit 1006 is input to the color signal processing unit 1009. The color signal processing unit 1009 performs color correction processing such as known color conversion matrix processing and color suppression processing on the color signal (color difference signal). In the present embodiment, the color NR unit 1006 removes a signal having a small amplitude as noise as an edge while preserving the edge signal included in the color difference signal. Next, an example of the operation of the color NR unit 1006 will be described with reference to FIG.
図3は、色NR部1006の動作を示すフローチャートである。ここでは、V方向NR処理部1007の動作について、輝度成分信号(輝度信号)をY、色成分信号(色信号、色差信号)をUVとして説明する。まずステップS101において、V方向NR処理部1007は、着目画素における色成分信号用の閾値である色平滑化処理閾値Th_cを設定する。そしてステップS102において、V方向NR処理部1007(設定手段1073)は、着目画素における輝度成分信号用の閾値である輝度平滑化処理閾値Th_yを設定する。 FIG. 3 is a flowchart showing the operation of the color NR unit 1006. Here, the operation of the V direction NR processing unit 1007 will be described assuming that the luminance component signal (luminance signal) is Y and the color component signal (color signal, color difference signal) is UV. First, in step S101, the V-direction NR processing unit 1007 sets a color smoothing processing threshold Th_c that is a threshold for a color component signal in the pixel of interest. In step S102, the V-direction NR processing unit 1007 (setting unit 1073) sets a luminance smoothing processing threshold Th_y that is a threshold for a luminance component signal in the pixel of interest.
続いてステップS103において、V方向NR処理部1007は、画素ごとに色成分信号(色差信号)から以下の式(1)に基づいて彩度信号Cを生成する。 Subsequently, in step S103, the V-direction NR processing unit 1007 generates a saturation signal C from the color component signal (color difference signal) for each pixel based on the following equation (1).
次に、ステップS104において、V方向NR処理部1007は、着目画素の彩度信号Ccと周辺画素の彩度信号Ciとの差分絶対値DIFF_C(ABS(Cc−Ci))を算出する。続いてステップS105において、V方向NR処理部1007は、着目画素の輝度信号Ycと周辺画素の輝度信号Yiとの差分絶対値DIFF_Y(ABS(Yc−Yi))を算出する。なお、処理を簡略化するため、輝度信号Yの代わりにG画素の値を用いる(すなわち、Y=Gとする)ものとして説明を行う。 Next, in step S104, the V-direction NR processing unit 1007 calculates a difference absolute value DIFF_C (ABS (Cc−Ci)) between the saturation signal Cc of the pixel of interest and the saturation signal Ci of the surrounding pixels. Subsequently, in step S105, the V-direction NR processing unit 1007 calculates a difference absolute value DIFF_Y (ABS (Yc−Yi)) between the luminance signal Yc of the target pixel and the luminance signal Yi of the peripheral pixels. In order to simplify the processing, the description will be made assuming that the value of the G pixel is used instead of the luminance signal Y (that is, Y = G).
次に、ステップS106において、V方向NR処理部1007(判定手段1071)は、差分絶対値DIFF_Cが色平滑化処理閾値Th_c以下であって、かつ、差分絶対値DIFF_Yが輝度平滑化処理閾値Th_y以下であるか否かを判定する。DIFF_C≦Th_cかつDIFF_Y≦Th_yが成立する場合、ステップS107に進み、周辺画素を平滑化の対象画素とするフラグを立てる。一方、ステップS106の判定条件(DIFF_C≦Th_cかつDIFF_Y≦Th_y)が成立しない場合、ステップS108に進む。 Next, in step S106, the V-direction NR processing unit 1007 (determination unit 1071) determines that the difference absolute value DIFF_C is equal to or smaller than the color smoothing threshold value Th_c and the difference absolute value DIFF_Y is equal to or smaller than the luminance smoothing threshold value Th_y. It is determined whether or not. When DIFF_C ≦ Th_c and DIFF_Y ≦ Th_y are satisfied, the process proceeds to step S107, and a flag for setting the surrounding pixels as the smoothing target pixels is set. On the other hand, if the determination condition (DIFF_C ≦ Th_c and DIFF_Y ≦ Th_y) in step S106 is not satisfied, the process proceeds to step S108.
ステップS108において、V方向NR処理部1007は、演算対象となる周辺画素が存在するか否かを判定する。演算対象となる周辺画素が存在する場合、ステップS103に戻り、ステップS103〜S108を繰り返す。一方、ステップS108にて演算対象となる周辺画素が存在しない場合、ステップS109に進む。 In step S <b> 108, the V direction NR processing unit 1007 determines whether there is a peripheral pixel to be calculated. If there are peripheral pixels to be calculated, the process returns to step S103, and steps S103 to S108 are repeated. On the other hand, if there is no peripheral pixel to be calculated in step S108, the process proceeds to step S109.
ステップS109において、V方向NR処理部1007(処理手段1072)は、平滑化の対象となるフラグを立てた画素(周辺画素)について、平滑化処理を行う。図4は、平滑化処理の説明図である。図4に示されるように、V方向NR処理部1007は、着目画素を中心とする5つの画素に対して平滑化処理を行う。そしてV方向NR処理部1007は、例えば着目画素およびi=0、3の周辺画素が平滑化処理の対象となる場合、平滑化処理後の色差信号U_out、V_outは、以下の式(2)、(3)のようにそれぞれ表現される。 In step S109, the V-direction NR processing unit 1007 (processing unit 1072) performs a smoothing process on pixels (peripheral pixels) for which a flag to be smoothed is set. FIG. 4 is an explanatory diagram of the smoothing process. As illustrated in FIG. 4, the V-direction NR processing unit 1007 performs a smoothing process on five pixels centered on the target pixel. The V-direction NR processing unit 1007, for example, when the pixel of interest and the surrounding pixels of i = 0 and 3 are subjected to the smoothing process, the color difference signals U_out and V_out after the smoothing process are expressed by the following equation (2), Each is expressed as (3).
U_out=(U0+Uc+U3)/3 … (2)
V_out=(V0+Vc+V3)/3 … (3)
ここで、図5および図6を参照して、ステップS102における輝度平滑化処理閾値Th_yの設定について詳述する。図5は、白黒のエッジ領域で発生している色つきを除去すべき領域を示し、図6は緑色のエッジで、エッジの色を残すべき領域を示している。
U_out = (U0 + Uc + U3) / 3 (2)
V_out = (V0 + Vc + V3) / 3 (3)
Here, with reference to FIG. 5 and FIG. 6, the setting of the luminance smoothing process threshold Th_y in step S102 will be described in detail. FIG. 5 shows an area where the coloring generated in the black and white edge area should be removed, and FIG. 6 shows a green edge where the edge color should remain.
図5(a)および図6(a)は、画素位置と画素値との関係図であり、横軸は画素位置、縦軸は画素値をそれぞれ示している。図5(a)において、画素位置x(x=0、1、c、2、3)のR画素の値をR[x]、G画素の値をG[x]とする。このとき、G[0]=G[1]=R[0]=R[1]=S1、G[c]=S2、R[c]=S3、R[2]=G[2]=R[3]=G[3]=S4と表現される。また、画素位置xの色差信号の値をR−Y[x]とする。このとき、画素位置x=cにおいてR−Y[c]=S3−S2、他の画素位置x=0、1、2、3のそれぞれにおいてR−Y[x]=0となり、画素位置cにおいて色つきが発生する。このように、無彩色の輝度のエッジに色つきが発生しやすくなる。 FIG. 5A and FIG. 6A are relationship diagrams between pixel positions and pixel values, where the horizontal axis indicates the pixel position and the vertical axis indicates the pixel value. In FIG. 5A, the value of the R pixel at the pixel position x (x = 0, 1, c, 2, 3) is R [x], and the value of the G pixel is G [x]. At this time, G [0] = G [1] = R [0] = R [1] = S1, G [c] = S2, R [c] = S3, R [2] = G [2] = R [3] = G [3] = S4 The value of the color difference signal at the pixel position x is R−Y [x]. At this time, RY [c] = S3-S2 at the pixel position x = c, and RY [x] = 0 at each of the other pixel positions x = 0, 1, 2, and 3, and at the pixel position c. Coloring occurs. In this way, coloring is likely to occur at the edge of the achromatic luminance.
また、図5(b)および図6(b)は、画素位置と差分絶対値DIFF_Y(着目画素cの輝度Ycと周辺画素iの輝度Yi)との関係図であり、横軸は画素位置を示し、縦軸は差分絶対値DIFF_Y(|G[c]−G[x]|)を示す。図5(b)において、絶対差分値DIFF_Yは、周辺画素i=0、1、2、3で大きくなり、これらの位置おける周辺画素は、平滑化処理の対象画素とならない。そのため、これらの周辺画素に対しては平滑化処理が行われず、画素位置cのエッジの色つきがそのまま残留する。絶対差分値DIFF_Yの閾値を大きくして、平滑化処理の対象画素となるようにすると、図6(b)に示される緑のエッジ付近で画素位置0が平滑化処理の対象画素となり、色のエッジがぼけてしまう。 FIGS. 5B and 6B are relationship diagrams between the pixel position and the difference absolute value DIFF_Y (the luminance Yc of the pixel of interest c and the luminance Yi of the peripheral pixel i), and the horizontal axis represents the pixel position. The vertical axis indicates the absolute difference value DIFF_Y (| G [c] −G [x] |). In FIG. 5B, the absolute difference value DIFF_Y increases at peripheral pixels i = 0, 1, 2, and 3, and the peripheral pixels at these positions are not subject to smoothing processing. Therefore, smoothing processing is not performed on these peripheral pixels, and the coloring of the edge at the pixel position c remains as it is. When the threshold value of the absolute difference value DIFF_Y is increased so as to be the target pixel of the smoothing process, the pixel position 0 becomes the target pixel of the smoothing process near the green edge shown in FIG. The edge is blurred.
そこで本実施形態では、着目位置cの輝度Ycが急峻なエッジであるか否か、すなわち着目画素(着目画素と近傍画素との間)の輝度の傾き(輝度の変化)を判定する。具体的には、例えば、着目画素の両側に位置する画素の値から得られる輝度の傾きGradY=G[2]−G[1]を利用して算出を行う。図5(a)の輝度エッジでは、GradY=S4−S1となり、図6(a)の緑のエッジ付近では、GradY=S3−S2となる。このため、着目画素の輝度の傾きGradYが大きいと判定された場合にのみ、平滑化処理の対象となる絶対差分値DIFF_Yの閾値が大きくなるように設定する。これにより、色エッジのぼけを低減しつつ、エッジの色つきを軽減することが可能となる。 Therefore, in this embodiment, it is determined whether or not the luminance Yc at the target position c is a sharp edge, that is, the luminance gradient (change in luminance) of the target pixel (between the target pixel and neighboring pixels). Specifically, for example, the calculation is performed using the luminance gradient GradY = G [2] −G [1] obtained from the values of the pixels located on both sides of the target pixel. In the luminance edge in FIG. 5A, GradY = S4-S1, and in the vicinity of the green edge in FIG. 6A, GradY = S3-S2. For this reason, the threshold value of the absolute difference value DIFF_Y that is the target of the smoothing process is set to be large only when it is determined that the luminance gradient GradY of the target pixel is large. Thereby, it is possible to reduce the coloration of the edge while reducing the blur of the color edge.
次に、図2を参照して、輝度平滑化処理閾値Th_yの設定方法について説明する。図2は、輝度平滑化処理閾値Th_yの設定動作(ステップS102)を示すフローチャートである。まずステップS201において、色NR部1006(V方向NR処理部1007)は、着目画素の輝度の傾きGradYを算出する。続いてステップS202において、V方向NR処理部1007は、着目画素の輝度の傾きGradYと閾値MINとを比較する。着目画素の輝度の傾きGradYが閾値MINよりも小さい場合、ステップS206に進む。ステップS206において、V方向NR処理部1007は、平滑化処理閾値Th_yをTh_y1に設定する。 Next, a method for setting the luminance smoothing process threshold Th_y will be described with reference to FIG. FIG. 2 is a flowchart showing the setting operation (step S102) of the luminance smoothing process threshold Th_y. First, in step S201, the color NR unit 1006 (V direction NR processing unit 1007) calculates the luminance gradient GradY of the pixel of interest. Subsequently, in step S202, the V-direction NR processing unit 1007 compares the luminance gradient GradY of the target pixel with the threshold value MIN. If the luminance gradient GradY of the pixel of interest is smaller than the threshold MIN, the process proceeds to step S206. In step S206, the V direction NR processing unit 1007 sets the smoothing processing threshold Th_y to Th_y1.
一方、ステップS202にて着目画素の輝度の傾きGradYが閾値MIN以上である場合、ステップS203に進む。ステップS203において、V方向NR処理部1007は、着目画素の輝度の傾きGradYと閾値MAX(閾値MAX>閾値MIN)とを比較する。着目画素の輝度の傾きGradYが閾値MAXよりも大きい場合、V方向NR処理部1007は、輝度平滑化処理閾値Th_yをTh_y2に設定する。一方、ステップS203にて着目画素の輝度の傾きGradYが閾値MAX以下である場合、ステップS204に進む。ステップS204において、V方向NR処理部1007は、輝度平滑化処理閾値Th_yを、線形補間を用いて、Th_y1とTh_y2との間の値に設定する。 On the other hand, if it is determined in step S202 that the luminance gradient GradY of the target pixel is greater than or equal to the threshold value MIN, the process proceeds to step S203. In step S203, the V direction NR processing unit 1007 compares the luminance gradient GradY of the pixel of interest with a threshold MAX (threshold MAX> threshold MIN). When the luminance gradient GradY of the target pixel is larger than the threshold value MAX, the V-direction NR processing unit 1007 sets the luminance smoothing processing threshold value Th_y to Th_y2. On the other hand, if the luminance gradient GradY of the target pixel is equal to or smaller than the threshold value MAX in step S203, the process proceeds to step S204. In step S204, the V-direction NR processing unit 1007 sets the brightness smoothing processing threshold Th_y to a value between Th_y1 and Th_y2 using linear interpolation.
図7は、着目画素の輝度の傾きGradYと輝度平滑化処理閾値Th_yとの関係図であり、横軸は着目画素の輝度の傾きGradYを示し、縦軸は輝度平滑化処理閾値Th_yを示す。図7に示されるように、着目画素の輝度の傾きGradYが閾値MINより小さい場合、輝度平滑化処理閾値Th_yはTh_y1に設定される。また、着目画素の輝度の傾きGradYが閾値MAXよりも大きい場合、輝度平滑化処理閾値Th_yはTh_y2に設定される。また、着目画素の輝度の傾きGradYが閾値MINと閾値MAXとの間の値である場合、以下の式(4)で表されるように設定される。 FIG. 7 is a relationship diagram between the luminance gradient GradY of the pixel of interest and the luminance smoothing threshold value Th_y. The horizontal axis represents the luminance gradient GradY of the pixel of interest, and the vertical axis represents the luminance smoothing threshold value Th_y. As illustrated in FIG. 7, when the luminance gradient GradY of the pixel of interest is smaller than the threshold MIN, the luminance smoothing processing threshold Th_y is set to Th_y1. Further, when the luminance gradient GradY of the target pixel is larger than the threshold value MAX, the luminance smoothing processing threshold value Th_y is set to Th_y2. When the luminance gradient GradY of the pixel of interest is a value between the threshold value MIN and the threshold value MAX, it is set as represented by the following equation (4).
このように本実施形態では、V方向NR処理部1007は、着目画素付近の輝度エッジを検出する。輝度エッジが大きい場合、V方向NR処理部1007は、輝度平滑化処理閾値Th_yが大きくなるように設定する。輝度平滑化処理閾値Th_yが大きい場合、平滑化処理の対象となる画素がより多くなる。このため、エッジ画素に対してのみ平滑化処理の効果を大きくすることができる。このような構成により、輝度エッジ周辺部の色の解像度の劣化を低減しつつ、輝度エッジの画素の色つきの影響を軽減することが可能となる。なお本実施形態では、V方向NR処理部1007の動作について説明したが、これに限定されるものではなく、H方向NR処理部1008の動作についても、対象となる画素が異なることを除いてV方向NR処理部1007と同等である。 As described above, in this embodiment, the V-direction NR processing unit 1007 detects a luminance edge near the target pixel. When the luminance edge is large, the V direction NR processing unit 1007 sets the luminance smoothing processing threshold Th_y to be large. When the luminance smoothing process threshold Th_y is large, the number of pixels that are the targets of the smoothing process increases. For this reason, the effect of the smoothing process can be increased only for the edge pixels. With such a configuration, it is possible to reduce the influence of coloring of the pixels on the luminance edge while reducing the deterioration of the resolution of the color around the luminance edge. In the present embodiment, the operation of the V-direction NR processing unit 1007 has been described. However, the present invention is not limited to this, and the operation of the H-direction NR processing unit 1008 is V V except that the target pixel is different. This is equivalent to the direction NR processing unit 1007.
本実施形態において、輝度信号YとしてG信号(緑色信号)を用いるものとして説明したが、これに限定されるものではない。例えば、公知の輝度構成比Y=0.3R+0.6G+0.1Bなどの信号を用いて輝度信号Yを生成してもよい。 In the present embodiment, the G signal (green signal) is used as the luminance signal Y. However, the present invention is not limited to this. For example, the luminance signal Y may be generated using a signal such as a known luminance composition ratio Y = 0.3R + 0.6G + 0.1B.
また本実施形態において、輝度平滑化処理閾値Th_yを着目画素に隣接する隣接画素の輝度の傾きGradYに応じて変更しているが、これに限定されるものではない。例えば、隣接画素に代えて、着目画素の近傍画素を利用して輝度の傾きGradYを算出してもよい。また、色の平滑化処理の閾値Th_cに関しても、隣接画素の輝度の傾きGradYに応じて変更するように構成してもよい。 In the present embodiment, the luminance smoothing processing threshold Th_y is changed according to the luminance gradient GradY of the adjacent pixel adjacent to the pixel of interest, but is not limited to this. For example, the luminance gradient GradY may be calculated using a pixel near the target pixel instead of the adjacent pixel. Further, the threshold value Th_c of the color smoothing process may be changed according to the luminance gradient GradY of the adjacent pixels.
また本実施形態において、輝度の傾きGradYをGradY=G[2]−G[1]に基づいて算出しているが、これに限定されるものではない。例えば、G[2]−G[c]とG[c]−G[1]の2つの傾きを比較して、これらの傾きのうち大きい方や小さい方を輝度の傾きGradYとして選択してもよい。 Further, in the present embodiment, the luminance gradient GradY is calculated based on GradY = G [2] −G [1], but is not limited to this. For example, two gradients G [2] -G [c] and G [c] -G [1] are compared, and the larger or smaller of these gradients is selected as the luminance gradient GradY. Good.
このように本実施形態において、判定手段1071は、第1画素と第2画素との輝度差の絶対値が第1閾値以下であって、かつ、第1画素と第2画素との彩度差の絶対値が第2閾値以下であるか否かを判定する。処理手段1072は、輝度差の絶対値が第1閾値以下であって、かつ、彩度差の絶対値が第2閾値以下である場合、第1画素および第2画素の色差信号に対して平滑化処理を行う。設定手段1073は、第1画素と第1画素の近傍画素との間の輝度値の変化(輝度の傾き)に応じて第1閾値を変更可能に設定する。好ましくは、第1画素は着目画素cであり、第2画素は着目画素cの周囲に配置された複数の周辺画素i(例えばi=0〜3であるが、これに限定されるものではない)のうち少なくとも一つの画素である。 As described above, in this embodiment, the determination unit 1071 determines that the absolute value of the luminance difference between the first pixel and the second pixel is equal to or less than the first threshold value and the saturation difference between the first pixel and the second pixel. It is determined whether the absolute value of is less than or equal to the second threshold value. The processing unit 1072 smoothes the color difference signals of the first pixel and the second pixel when the absolute value of the luminance difference is equal to or smaller than the first threshold value and the absolute value of the saturation difference is equal to or smaller than the second threshold value. Process. The setting unit 1073 sets the first threshold value so as to be changeable according to a change in luminance value (luminance gradient) between the first pixel and a neighboring pixel of the first pixel. Preferably, the first pixel is the target pixel c, and the second pixel is a plurality of peripheral pixels i (for example, i = 0 to 3) arranged around the target pixel c, but is not limited thereto. ) At least one pixel.
好ましくは、設定手段1073は、第1画素と近傍画素との間の輝度値の変化が大きいほど第1閾値(輝度平滑化処理閾値Th_y)を大きくするように設定する。また好ましくは、設定手段1073は、第1画素と近傍画素との間の輝度値の変化が大きいほど第2閾値(色平滑化処理閾値Th_c)を大きくするように設定する。より好ましくは、近傍画素は、第1画素の隣接画素である。 Preferably, the setting unit 1073 sets the first threshold (brightness smoothing processing threshold Th_y) to be larger as the change in the luminance value between the first pixel and the neighboring pixel is larger. Preferably, the setting unit 1073 sets the second threshold value (color smoothing process threshold Th_c) to be larger as the change in the luminance value between the first pixel and the neighboring pixel is larger. More preferably, the neighboring pixel is a pixel adjacent to the first pixel.
好ましくは、設定手段1073は、第1画素と近傍画素との間の輝度値の変化量(輝度の傾きGradY)が第1変化量(閾値MIN)よりも小さい場合、第1閾値(輝度平滑化処理閾値Th_y)として第1の値(Th_y1)を設定する(S206)。また設定手段1073は、第1画素と近傍画素との間の輝度値の変化量が第2変化量(閾値MAX)よりも大きい場合、第1閾値として第1の値よりも大きい第2の値(Th_y2)を設定する(S205)。より好ましくは、設定手段1073は、第1画素と近傍画素との間の輝度値の変化量が第1変化量と第2変化量との間の第3変化量である場合、第1閾値として第1の値と第2の値との間の第3の値(Th1_y1<Th_y<Th_y2)を設定する(S204)。 Preferably, the setting unit 1073 sets the first threshold (brightness smoothing) when the amount of change in luminance value between the first pixel and the neighboring pixel (brightness gradient GradY) is smaller than the first amount of change (threshold MIN). A first value (Th_y1) is set as the processing threshold value Th_y) (S206). In addition, when the change amount of the luminance value between the first pixel and the neighboring pixel is larger than the second change amount (threshold value MAX), the setting unit 1073 sets the second value that is larger than the first value as the first threshold value. (Th_y2) is set (S205). More preferably, when the change amount of the luminance value between the first pixel and the neighboring pixel is the third change amount between the first change amount and the second change amount, the setting unit 1073 sets the first threshold value as the first threshold value. A third value (Th1_y1 <Th_y <Th_y2) between the first value and the second value is set (S204).
(第2の実施形態)
次に、図8を参照して、本発明の第2の実施形態について説明する。図8は、本実施形態における撮像装置200のブロック図である。本実施形態の撮像装置200は、通常画像(第1画像データ)および縮小画像(第2画像データ)を使用してNR処理を行う点で、第1の実施形態の撮像装置100とは異なる。以下、第1の実施形態と共通する点については説明を省略し、異なる点について主に説明する。
(Second Embodiment)
Next, a second embodiment of the present invention will be described with reference to FIG. FIG. 8 is a block diagram of the imaging apparatus 200 in the present embodiment. The imaging apparatus 200 of the present embodiment is different from the imaging apparatus 100 of the first embodiment in that NR processing is performed using a normal image (first image data) and a reduced image (second image data). Hereinafter, description of points common to the first embodiment will be omitted, and different points will be mainly described.
本実施形態において、撮像部2000、A/D変換部2001、および、WB部2002は、図1を参照して説明した第1の実施形態の撮像部1000、A/D変換部1001、および、WB部1002とそれぞれ同一である。このため、それらの説明については省略する。WB部2002からのデータ(画像信号)は、輝度NR部2003および色補間部2004に出力される。なお、輝度NR部2003、色補間部2004、および、色NR部2005は、輝度NR部1003、色補間部1005、および、色NR部1006とそれぞれ同一である。このため、それらの詳細な説明は省略する。また、WB部2002からのデータは、エッジ検出部2006に入力される。エッジ検出部2006は、例えば公知のエッジ検出用フィルタを備え、入力信号にエッジ検出用フィルタを適用し、その出力をエッジ強度出力信号として出力する。 In the present embodiment, the imaging unit 2000, the A / D conversion unit 2001, and the WB unit 2002 are the imaging unit 1000, the A / D conversion unit 1001, and the first embodiment described with reference to FIG. Each is the same as the WB unit 1002. For this reason, those descriptions are omitted. Data (image signal) from the WB unit 2002 is output to the luminance NR unit 2003 and the color interpolation unit 2004. Note that the luminance NR unit 2003, the color interpolation unit 2004, and the color NR unit 2005 are the same as the luminance NR unit 1003, the color interpolation unit 1005, and the color NR unit 1006, respectively. Therefore, detailed description thereof is omitted. Data from the WB unit 2002 is input to the edge detection unit 2006. The edge detection unit 2006 includes, for example, a known edge detection filter, applies the edge detection filter to the input signal, and outputs the output as an edge strength output signal.
また、WB部2002から出力されたデータは、LPF2101(ローパスフィルタ)およびDS部2102(ダウンサンプリング部)に入力される。LPF2101はLPF処理を行い、DS部2102はダウンサンプリング処理を行う。これにより、同時化された低解像度画像データが生成される。DS部2102から出力された、同時化されたデータは、輝度NR部2103に入力される。輝度NR部2103は、輝度NR処理を行う。輝度NR部2103の動作は、輝度NR部2003と同様であるため、その説明については省略する。 The data output from the WB unit 2002 is input to the LPF 2101 (low-pass filter) and the DS unit 2102 (down-sampling unit). The LPF 2101 performs LPF processing, and the DS unit 2102 performs downsampling processing. Thereby, synchronized low-resolution image data is generated. The synchronized data output from the DS unit 2102 is input to the luminance NR unit 2103. The luminance NR unit 2103 performs luminance NR processing. Since the operation of the luminance NR unit 2103 is the same as that of the luminance NR unit 2003, description thereof is omitted.
輝度NR部2103にて補正(処理)された輝度信号は、US部2104(アップサンプリング部)に入力される。US部2104は、輝度信号に対してアップサンプリング処理を行い、処理後の輝度信号を合成部2007(合成手段)に出力する。また、DS部2102から出力されたデータは、色補間部2105に入力される。色補間部2105は、DS部2102からのデータに対して色補間処理を行う。色補間部2105にて色補間処理された色信号(色差信号)は、後述の色NR部2106に出力される。色NR部2106は、色信号を補正し、補正後の色信号はUS部2107に出力される。US部2107は、色NR部2106から入力された色信号に対してアップサンプリング処理を行い、処理後の色信号を合成部2007に出力する。 The luminance signal corrected (processed) by the luminance NR unit 2103 is input to the US unit 2104 (upsampling unit). The US unit 2104 performs an upsampling process on the luminance signal, and outputs the processed luminance signal to the combining unit 2007 (combining unit). The data output from the DS unit 2102 is input to the color interpolation unit 2105. The color interpolation unit 2105 performs color interpolation processing on the data from the DS unit 2102. The color signal (color difference signal) subjected to color interpolation processing by the color interpolation unit 2105 is output to a color NR unit 2106 described later. The color NR unit 2106 corrects the color signal, and the corrected color signal is output to the US unit 2107. The US unit 2107 performs upsampling processing on the color signal input from the color NR unit 2106 and outputs the processed color signal to the combining unit 2007.
合成部2007は、エッジ検出部2006からのエッジ強度出力信号に応じて、輝度信号および色信号(色差信号)の合成比率を決定する。また合成部2007は、決定した輝度信号の合成比率に応じて、輝度NR部2003から出力された輝度信号(高解像度輝度信号)と、US部2104から出力された輝度信号(低解像度輝度信号)とを合成する。同様に、合成部2007は、色信号の合成比率に応じて、色NR部2005からの色信号(高解像度色信号)と、US部2107からの色信号(低解像度色信号)とを合成する。高解像度輝度信号および高解像度色信号は、第1画像データに基づいて得られた信号である。低解像度輝度信号および低解像度色信号は、第1画像データよりも解像度の低い第2画像データに基づいて得られた信号である。合成部2007は、合成した輝度信号を輝度信号処理部2008に出力する。また合成部2007は、合成した色信号を色信号処理部2009に出力する。輝度信号処理部2008および色信号処理部2009の動作は、いずれも実施例1と同様であるため、それらの詳細な説明は省略する。 The combining unit 2007 determines a combining ratio of the luminance signal and the color signal (color difference signal) in accordance with the edge intensity output signal from the edge detection unit 2006. The combining unit 2007 also outputs the luminance signal (high resolution luminance signal) output from the luminance NR unit 2003 and the luminance signal (low resolution luminance signal) output from the US unit 2104 according to the determined luminance signal combining ratio. And synthesize. Similarly, the synthesis unit 2007 synthesizes the color signal (high resolution color signal) from the color NR unit 2005 and the color signal (low resolution color signal) from the US unit 2107 according to the synthesis ratio of the color signals. . The high resolution luminance signal and the high resolution color signal are signals obtained based on the first image data. The low resolution luminance signal and the low resolution color signal are signals obtained based on the second image data having a lower resolution than the first image data. The combining unit 2007 outputs the combined luminance signal to the luminance signal processing unit 2008. The synthesizing unit 2007 outputs the synthesized color signal to the color signal processing unit 2009. Since the operations of the luminance signal processing unit 2008 and the color signal processing unit 2009 are the same as those in the first embodiment, their detailed description is omitted.
次に、本実施形態における色NR部2106の動作について説明する。色NR部2106は、パラメータの設定方法が異なることを除いて、図1を参照して説明した第1の実施形態の色NR部1006と同様である。このため、ここでは色NR部2106におけるパラメータの設定方法についてのみ説明する。 Next, the operation of the color NR unit 2106 in this embodiment will be described. The color NR unit 2106 is the same as the color NR unit 1006 of the first embodiment described with reference to FIG. 1 except that the parameter setting method is different. Therefore, only the parameter setting method in the color NR unit 2106 will be described here.
色NR部2106において高輝度エッジでの色つきが残留した場合、US部2107において残留した色つきは拡大される。このため、色NR部2106で設定される閾値は、色NR部2005で設定される閾値と比較して、値が大きくなるように設定される。色NR部2106では平滑化処理がより強めに行われるように設定され、より高輝度エッジでの色つきが残留しにくいように制御される。具体的には、図5に示される輝度の傾きGradYが第1変化量(閾値MIN)よりも小さい場合に設定される第1閾値(Th_y)として、第1の値(Th_y1)よりも大きな第3の値(Th_y3)を設定する。また、輝度の傾きGradYが第2変化量(閾値MAX)よりも大きな場合に設定される第1閾値として、第2の値(Th_y2)よりも大きな第4の値(Th_y4)を設定する。あるいは、図5に示される輝度の傾きGradYに応じて、平滑化処理の閾値Th_yを決定する際に用いられる閾値MAXおよび閾値MINを、色NR部2106に対する値のほうが色NR部2005に対する値よりも小さな値となるように制御する。このように本実施形態では、縮小された画像から平滑化処理を行う場合、縮小前の画像よりも平滑化処理が行われやすくなるように制御する。 When the coloring at the high luminance edge remains in the color NR portion 2106, the remaining coloring in the US portion 2107 is enlarged. For this reason, the threshold value set by the color NR unit 2106 is set to be larger than the threshold value set by the color NR unit 2005. The color NR unit 2106 is set so that the smoothing process is performed more strongly, and is controlled so that coloring at a higher luminance edge does not remain. Specifically, the first threshold value (Th_y) set when the luminance gradient GradY shown in FIG. 5 is smaller than the first change amount (threshold value MIN) is larger than the first value (Th_y1). A value of 3 (Th_y3) is set. Further, a fourth value (Th_y4) larger than the second value (Th_y2) is set as the first threshold set when the luminance gradient GradY is larger than the second change amount (threshold MAX). Alternatively, the threshold value MAX and the threshold value MIN used when determining the threshold value Th_y of the smoothing process in accordance with the luminance gradient GradY shown in FIG. Is also controlled to be a small value. As described above, in the present embodiment, when the smoothing process is performed from the reduced image, the control is performed such that the smoothing process is more easily performed than the image before the reduction.
このように本実施形態において、画像処理装置は、生成手段(WB部2002、LPF2101、および、DS部2102)および合成手段(合成部2007)を備えている。生成手段は、第1画像データおよび第1画像データよりも解像度の低い第2画像データを生成する。合成手段は、第1画像データと第2画像データを合成する。設定手段(色NR部2005、2106)は、第1画像データおよび第2画像データのそれぞれに関して、第1画素と近傍画素との間の輝度値の変化が大きいほど第1閾値を大きくするように設定する。 As described above, in this embodiment, the image processing apparatus includes a generation unit (WB unit 2002, LPF 2101, and DS unit 2102) and a synthesis unit (synthesis unit 2007). The generating unit generates the first image data and the second image data having a lower resolution than the first image data. The synthesizing unit synthesizes the first image data and the second image data. The setting means (color NR units 2005 and 2106) increases the first threshold value for each of the first image data and the second image data as the change in the luminance value between the first pixel and the neighboring pixel increases. Set.
好ましくは、設定手段は、第1画像データに関し、第1画素と近傍画素との間の輝度値の変化量が第1変化量(閾値MIN)よりも小さい場合、第1閾値(Th_y)として第1の値(Th_y1)を設定する。また設定手段は、第2画像データに関し、第1画素と近傍画素との間の輝度値の変化量が第3変化量よりも小さい場合、第1閾値として第3の値(Th_y3)を設定する。ここで、第3変化量(閾値)は第1変化量よりも小さいこと、および、第3の値は第1の値よりも大きいことの少なくともいずれかを満たすことが好ましい。 Preferably, when the change amount of the luminance value between the first pixel and the neighboring pixels is smaller than the first change amount (threshold value MIN) with respect to the first image data, the setting unit sets the first threshold value (Th_y) as the first threshold value (Th_y). A value of 1 (Th_y1) is set. Further, the setting means sets the third value (Th_y3) as the first threshold value when the change amount of the luminance value between the first pixel and the neighboring pixel is smaller than the third change amount with respect to the second image data. . Here, it is preferable to satisfy at least one of the third change amount (threshold value) being smaller than the first change amount and the third value being larger than the first value.
また好ましくは、設定手段は、第1画像データに関し、第1画素と近傍画素との間の輝度値の変化量が第2変化量(閾値MAX)よりも大きい場合、第1閾値として第1の値よりも大きい第2の値(Th_y2)を設定する。また設定手段は、第2画像データに関し、第1画素と近傍画素との間の輝度値の変化量が第4変化量よりも大きい場合、第1閾値として第4の値(Th_y4)を設定する。ここで、第4変化量(閾値)は第2変化量よりも小さいこと、および、第4の値は第2の値よりも大きいことの少なくともいずれかを満たすことが好ましい。 Further preferably, when the change amount of the luminance value between the first pixel and the neighboring pixels is larger than the second change amount (threshold value MAX) with respect to the first image data, the setting unit preferably sets the first threshold value as the first threshold value. A second value (Th_y2) larger than the value is set. The setting unit sets the fourth value (Th_y4) as the first threshold value when the change amount of the luminance value between the first pixel and the neighboring pixel is larger than the fourth change amount with respect to the second image data. . Here, it is preferable to satisfy at least one of the fourth change amount (threshold value) being smaller than the second change amount and the fourth value being larger than the second value.
(その他の実施形態)
本発明は、以下の処理を実行することによっても実現される。すなわち、上述した実施形態の機能を実現するソフトウエア(プログラム)を、ネットワーク又は各種記憶媒体を介してシステム或いは装置に供給し、そのシステム或いは装置のコンピュータ(又はCPUやMPU等)がプログラムを読み出して実行する処理である。この場合、撮像装置の制御方法の手順が記述されたコンピュータで実行可能なプログラムおよびそのプログラムを記憶した記憶媒体は本発明を構成する。
(Other embodiments)
The present invention is also realized by executing the following processing. That is, software (program) that realizes the functions of the above-described embodiments is supplied to a system or apparatus via a network or various storage media, and the computer (or CPU, MPU, etc.) of the system or apparatus reads the program. To be executed. In this case, a computer-executable program describing the procedure of the imaging apparatus control method and a storage medium storing the program constitute the present invention.
各実施形態によれば、色解像度を維持しつつ、高輝度エッジ部に発生する色つきを低減したノイズ除去処理が可能となる。このため各実施形態によれば、高性能なノイズ除去処理を実行可能な画像処理装置、撮像装置、画像処理方法、プログラム、および、記憶媒体を提供することができる。 According to each embodiment, it is possible to perform noise removal processing in which coloring that occurs in a high-luminance edge portion is reduced while maintaining color resolution. Therefore, according to each embodiment, it is possible to provide an image processing device, an imaging device, an image processing method, a program, and a storage medium that can execute high-performance noise removal processing.
以上、本発明の好ましい実施形態について説明したが、本発明はこれらの実施形態に限定されず、その要旨の範囲内で種々の変形及び変更が可能である。 As mentioned above, although 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.
1071 判定手段
1072 処理手段
1073 設定手段
1071 Determination means 1072 Processing means 1073 Setting means
Claims (14)
前記輝度差の絶対値が前記第1閾値以下であって、かつ、前記彩度差の絶対値が前記第2閾値以下である場合、前記第1画素および前記第2画素の色差信号に対して平滑化処理を行う処理手段と、
前記第1画素と該第1画素の近傍画素との間の輝度値の変化に応じて前記第1閾値を変更可能に設定する設定手段と、を有することを特徴とする画像処理装置。 Whether the absolute value of the luminance difference between the first pixel and the second pixel is less than or equal to the first threshold value, and the absolute value of the saturation difference between the first pixel and the second pixel is less than or equal to the second threshold value Determining means for determining whether or not;
When the absolute value of the luminance difference is equal to or smaller than the first threshold value and the absolute value of the saturation difference is equal to or smaller than the second threshold value, the color difference signals of the first pixel and the second pixel are Processing means for performing a smoothing process;
An image processing apparatus comprising: a setting unit configured to change the first threshold value according to a change in luminance value between the first pixel and a neighboring pixel of the first pixel.
前記第1画素と前記近傍画素との間の前記輝度値の変化量が第1変化量よりも小さい場合、前記第1閾値として第1の値を設定し、
前記第1画素と前記近傍画素との間の前記輝度値の変化量が第2変化量よりも大きい場合、前記第1閾値として前記第1の値よりも大きい第2の値を設定する、ことを特徴とする請求項1または2に記載の画像処理装置。 The setting means includes
When the change amount of the luminance value between the first pixel and the neighboring pixel is smaller than the first change amount, a first value is set as the first threshold value,
When the change amount of the luminance value between the first pixel and the neighboring pixel is larger than the second change amount, a second value larger than the first value is set as the first threshold value; The image processing apparatus according to claim 1, wherein:
前記第2画素は、前記着目画素の複数の周辺画素のうち少なくとも一つの画素であることを特徴とする請求項1乃至4のいずれか1項に記載の画像処理装置。 The first pixel is a pixel of interest;
5. The image processing apparatus according to claim 1, wherein the second pixel is at least one of a plurality of peripheral pixels of the pixel of interest.
前記第1画像データと前記第2画像データを合成する合成手段と、を更に有し、
前記設定手段は、前記第1画像データおよび前記第2画像データのそれぞれに関して、前記第1画素と前記近傍画素との間の前記輝度値の変化が大きいほど前記第1閾値を大きくするように設定することを特徴とする請求項1乃至7のいずれか1項に記載の画像処理装置。 Generating means for generating first image data and second image data having a lower resolution than the first image data;
A synthesis unit that synthesizes the first image data and the second image data;
The setting means sets the first threshold value to be larger as the change in the luminance value between the first pixel and the neighboring pixel is larger for each of the first image data and the second image data. The image processing apparatus according to claim 1, wherein the image processing apparatus is an image processing apparatus.
前記第1画像データに関し、前記第1画素と前記近傍画素との間の前記輝度値の変化量が第1変化量よりも小さい場合、前記第1閾値として第1の値を設定し、
前記第2画像データに関し、前記第1画素と前記近傍画素との間の前記輝度値の変化量が第3変化量よりも小さい場合、前記第1閾値として前記第3の値を設定し、
前記第3変化量は前記第1変化量よりも小さいこと、および、前記第3の値は前記第1の値よりも大きいことの少なくともいずれかを満たすことを特徴とする請求項8に記載の画像処理装置。 The setting means includes
For the first image data, when the amount of change in the luminance value between the first pixel and the neighboring pixel is smaller than the first amount of change, a first value is set as the first threshold value,
Regarding the second image data, when the change amount of the luminance value between the first pixel and the neighboring pixels is smaller than the third change amount, the third value is set as the first threshold value.
9. The device according to claim 8, wherein the third change amount satisfies at least one of a smaller value than the first change amount and a third value greater than the first value. Image processing device.
前記第1画像データに関し、前記第1画素と前記近傍画素との間の前記輝度値の変化量が第2変化量よりも大きい場合、前記第1閾値として前記第1の値よりも大きい第2の値を設定し、
前記第2画像データに関し、前記第1画素と前記近傍画素との間の前記輝度値の変化量が第4変化量よりも大きい場合、前記第1閾値として前記第3の値よりも大きい第4の値を設定し、
前記第4変化量は前記第2変化量よりも小さいこと、および、および、前記第4の値は前記第2の値よりも大きいことの少なくともいずれかを満たすことを特徴とする請求項9に記載の画像処理装置。 The setting means includes
For the first image data, when the change amount of the luminance value between the first pixel and the neighboring pixel is larger than the second change amount, the second threshold value is larger than the first value as the first threshold value. Set the value of
For the second image data, when the change amount of the luminance value between the first pixel and the neighboring pixel is larger than a fourth change amount, a fourth value that is larger than the third value as the first threshold value. Set the value of
The fourth change amount satisfies at least one of the second change amount being smaller than the second change amount and the fourth value being larger than the second value. The image processing apparatus described.
前記撮像部からの出力信号に基づいて画像処理を行うように構成された、請求項1乃至10のいずれか1項に記載の画像処理装置と、を有することを特徴とする撮像装置。 An imaging unit;
The image processing apparatus according to claim 1, wherein the image processing apparatus is configured to perform image processing based on an output signal from the image capturing unit.
前記第1画素と第2画素との輝度差の絶対値が前記第1閾値以下であって、かつ、該第1画素と該第2画素との彩度差の絶対値が第2閾値以下であるか否かを判定するステップと、
前記輝度差の絶対値が前記第1閾値以下であって、かつ、前記彩度差の絶対値が前記第2閾値以下である場合、前記第1画素および前記第2画素の色差信号に対して平滑化処理を行うステップと、を有することを特徴とする画像処理方法。 Setting a first threshold in response to a change in luminance value between the first pixel and a neighboring pixel of the first pixel;
The absolute value of the luminance difference between the first pixel and the second pixel is less than or equal to the first threshold value, and the absolute value of the saturation difference between the first pixel and the second pixel is less than or equal to the second threshold value. Determining whether there is,
When the absolute value of the luminance difference is equal to or smaller than the first threshold value and the absolute value of the saturation difference is equal to or smaller than the second threshold value, the color difference signals of the first pixel and the second pixel are And a step of performing a smoothing process.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2014056317A JP2015179951A (en) | 2014-03-19 | 2014-03-19 | Image processing apparatus, imaging apparatus, image processing method, program and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2014056317A JP2015179951A (en) | 2014-03-19 | 2014-03-19 | Image processing apparatus, imaging apparatus, image processing method, program and storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
JP2015179951A true JP2015179951A (en) | 2015-10-08 |
Family
ID=54263726
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2014056317A Pending JP2015179951A (en) | 2014-03-19 | 2014-03-19 | Image processing apparatus, imaging apparatus, image processing method, program and storage medium |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP2015179951A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US11915667B2 (en) * | 2020-06-30 | 2024-02-27 | Boe Technology Group Co., Ltd. | Method and system for displaying corrected image, and display device |
-
2014
- 2014-03-19 JP JP2014056317A patent/JP2015179951A/en active Pending
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US11915667B2 (en) * | 2020-06-30 | 2024-02-27 | Boe Technology Group Co., Ltd. | Method and system for displaying corrected image, and display device |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11244209B2 (en) | Image processing device, imaging device, and image processing method | |
JP4290193B2 (en) | Image processing device | |
JP5677040B2 (en) | Image processing apparatus and control method thereof | |
JP6087612B2 (en) | Image processing apparatus and image processing method | |
JP2013218487A (en) | Image processing apparatus, imaging apparatus, image processing method, and program | |
JPWO2017154293A1 (en) | Image processing apparatus, imaging apparatus, image processing method, and program | |
JP5882576B2 (en) | Image processing apparatus, image processing apparatus control method, and program | |
JP2009005166A (en) | Color interpolation device and image processing system | |
JP2018128764A (en) | Image processing device, image processing method and program | |
JP2009194721A (en) | Image signal processing apparatus, image signal processing method, and imaging apparatus | |
JP6135937B2 (en) | Image processing method and image processing apparatus | |
JP6895404B2 (en) | Image processing device, driving support device, and image processing method | |
JP5961149B2 (en) | Image processing apparatus and control method thereof | |
JP2015179951A (en) | Image processing apparatus, imaging apparatus, image processing method, program and storage medium | |
JP6494388B2 (en) | Image processing apparatus, image processing method, and program | |
KR102470242B1 (en) | Image processing device, image processing method and program | |
JP7183015B2 (en) | Image processing device, image processing method, and program | |
CN105450909B (en) | Information processing method and electronic equipment | |
JP2009239608A (en) | Image processing apparatus and digital camera | |
JP2016099836A (en) | Imaging device, image processor, image processing method, and program | |
JP2016082390A (en) | Signal processing unit | |
US9635330B2 (en) | Image processing device, image processing method, and program | |
JP6426909B2 (en) | Color information complementing device and its program | |
JP6338376B2 (en) | Image processing apparatus, imaging apparatus, image processing method, program, and storage medium | |
JP2019140605A (en) | Image processing system, image processing method and program |