JP5494249B2 - Image processing apparatus, imaging apparatus, and image processing program - Google Patents
Image processing apparatus, imaging apparatus, and image processing program Download PDFInfo
- Publication number
- JP5494249B2 JP5494249B2 JP2010127849A JP2010127849A JP5494249B2 JP 5494249 B2 JP5494249 B2 JP 5494249B2 JP 2010127849 A JP2010127849 A JP 2010127849A JP 2010127849 A JP2010127849 A JP 2010127849A JP 5494249 B2 JP5494249 B2 JP 5494249B2
- Authority
- JP
- Japan
- Prior art keywords
- color
- component
- color difference
- interpolation
- image processing
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 238000003384 imaging method Methods 0.000 title claims description 8
- 230000005540 biological transmission Effects 0.000 claims description 5
- 238000009499 grossing Methods 0.000 claims description 2
- 235000019557 luminance Nutrition 0.000 description 34
- 238000006243 chemical reaction Methods 0.000 description 20
- 238000000034 method Methods 0.000 description 14
- 230000006835 compression Effects 0.000 description 7
- 238000007906 compression Methods 0.000 description 7
- 238000004458 analytical method Methods 0.000 description 5
- 238000010586 diagram Methods 0.000 description 4
- 101100381996 Saccharomyces cerevisiae (strain ATCC 204508 / S288c) BRO1 gene Proteins 0.000 description 3
- 241001428800 Cell fusing agent virus Species 0.000 description 2
- 238000003708 edge detection Methods 0.000 description 2
- 208000036971 interstitial lung disease 2 Diseases 0.000 description 2
- 230000002146 bilateral effect Effects 0.000 description 1
- 239000000284 extract Substances 0.000 description 1
- 230000006870 function Effects 0.000 description 1
- 230000014509 gene expression Effects 0.000 description 1
- 230000035945 sensitivity Effects 0.000 description 1
- 230000003595 spectral effect Effects 0.000 description 1
Images
Landscapes
- Color Television Image Signal Generators (AREA)
Description
本発明は、画像処理装置、撮像装置及び画像処理プログラムに関するものである。 The present invention relates to an image processing device, an imaging device, and an image processing program.
従来、デジタルカメラでは単板イメージセンサーでカラー情報を取得するためにイメージセンサーに、例えばベイヤーパターンによるカラーフィルターアレイを配置し複数の色成分を検出している(例えば、特許文献1参照)。 Conventionally, in a digital camera, in order to acquire color information with a single-plate image sensor, for example, a color filter array based on a Bayer pattern is arranged on the image sensor to detect a plurality of color components (see, for example, Patent Document 1).
ところで、カラーフィルターアレイを使った単板カラーイメージセンサーでは各画素毎には一つの色成分しか検出できないため、各画素でRGBの情報を有するカラー画像を作成するために補間処理が必要になるが、ベイヤーパターンによるカラーフィルターアレイでは、主に輝度成分に寄与する緑画素が主に色成分に寄与する赤、青画素よりも密度が高く配置されていて、補間処理においても輝度は高解像度に補間されるが色差は低解像度に補間される。従って、例えば白色の紙に赤色の文字が表示されているような画像の場合、輝度を高解像度に再現し色差を低解像度に再現すると文字の周りに色が滲んでしまい画質が低下するという問題がある。 By the way, since a single-plate color image sensor using a color filter array can detect only one color component for each pixel, an interpolation process is required to create a color image having RGB information at each pixel. In the color filter array using the Bayer pattern, the green pixels that mainly contribute to the luminance component are arranged with a higher density than the red and blue pixels that mainly contribute to the color component, and the luminance is interpolated at a high resolution even in the interpolation process. However, the color difference is interpolated to a low resolution. Therefore, for example, in the case of an image in which red characters are displayed on white paper, if the luminance is reproduced at a high resolution and the color difference is reproduced at a low resolution, the color blurs around the characters and the image quality deteriorates. There is.
本発明の目的は、カラーフィルターアレイで得られた画像を補間した際に輝度と色差の解像度の差を補正して高画質の補間画像を得ることができる画像処理装置、撮像装置及び画像処理プログラムを提供することである。 An object of the present invention is to provide an image processing apparatus, an imaging apparatus, and an image processing program capable of obtaining a high-quality interpolated image by correcting a difference in resolution between luminance and color difference when an image obtained by a color filter array is interpolated. Is to provide.
本発明の画像処理装置は、イメージセンサーの前面に複数の異なる透過特性を有するカラーフィルターを配置したカラーイメージセンサーにより各画素において複数の色成分のうちの一つの色成分を検出することにより得られたカラーフィルター画像データの補間を行う画像処理装置において、前記カラーフィルター画像データの輝度成分を補間する第1の補間手段と、前記カラーフィルター画像データの色差成分を補間する第2の補間手段と、前記輝度成分の解像度と前記色差成分の解像度の差に応じて前記色差成分の補正値を算出する補正値算出手段と、前記色差成分の補正値に応じて前記色差成分を補正する補正手段とを備え、前記第1の補間手段及び前記第2の補間手段は、前記カラーフィルター画像データを周波数空間において輝度成分の帯域及び色差成分の帯域に分割して補間を行うことを特徴とする。 The image processing apparatus of the present invention is obtained by detecting one color component of a plurality of color components in each pixel by a color image sensor in which a plurality of color filters having different transmission characteristics are arranged on the front surface of the image sensor. In the image processing apparatus for interpolating the color filter image data, a first interpolation means for interpolating a luminance component of the color filter image data, a second interpolation means for interpolating a color difference component of the color filter image data, correction value calculating means for calculating a correction value of the color difference component depending on the difference between the resolution and the color difference components of said luminance component, and a correction means for correcting the color difference component in accordance with the correction value of the color difference component The first interpolation unit and the second interpolation unit radiate the color filter image data in a frequency space. By dividing the bandwidth of the band and the chrominance components of the component and performing interpolation.
また、本発明の撮像装置は、本発明の画像処理装置を含むことを特徴とする。 The imaging apparatus of the present invention includes the image processing apparatus of the present invention.
また、本発明の画像処理プログラムは、イメージセンサーの前面に複数の異なる透過特性を有するカラーフィルターを配置したカラーイメージセンサーにより各画素において複数の色成分のうちの一つの色成分を検出することにより得られたカラーフィルター画像データの補間を行う画像処理装置に適用される画像処理プログラムであって、前記カラーフィルター画像データの輝度成分を補間する第1の補間ステップと、前記カラーフィルター画像データの色差成分を補間する第2の補間ステップと、前記輝度成分の解像度と前記色差成分の解像度の差に応じて前記色差成分の補正値を算出する補正値算出ステップと、前記色差成分の補正値に応じて前記色差成分を補正する補正ステップとを含み、前記第1の補間ステップ及び前記第2の補間ステップは、前記カラーフィルター画像データを周波数空間において輝度成分の帯域及び色差成分の帯域に分割して補間を行うことを特徴とする。 The image processing program of the present invention detects one color component of a plurality of color components in each pixel by a color image sensor in which a plurality of color filters having different transmission characteristics are arranged on the front surface of the image sensor. An image processing program applied to an image processing apparatus for interpolating the obtained color filter image data, the first interpolation step for interpolating the luminance component of the color filter image data, and the color difference of the color filter image data A second interpolation step for interpolating components, a correction value calculating step for calculating a correction value for the color difference component according to the difference between the resolution of the luminance component and the resolution of the color difference component, and a correction value for the color difference component and a correction step of correcting the color difference component Te, the first interpolation step and the second auxiliary Step, and performing interpolation by dividing the band of the band and the chrominance component of the luminance component in the frequency space the color filter image data.
本発明の画像処理装置、撮像装置及び画像処理プログラムによれば、カラーフィルターアレイで得られた画像を補間した際に輝度と色差の解像度の差を補正して高画質の補間画像を得ることができる。 According to the image processing apparatus, the imaging apparatus, and the image processing program of the present invention, when interpolating the image obtained by the color filter array, it is possible to obtain a high-quality interpolated image by correcting the difference in resolution between luminance and color difference. it can.
以下、図面を参照して本発明の第1の実施の形態に係る画像処理装置(撮像装置)としてのデジタルカメラについて説明する。図1は、第1の実施の形態に係るデジタルカメラの構成を示すブロック図である。デジタルカメラ1は、撮影レンズ2を介して入射した被写体光によって、入射面にカラーフィルターアレイ4を有するイメージセンサー6上に被写体像を結像させ、この被写体像をイメージセンサー6で電気信号に変換する。ここでカラーフィルターアレイ4及びイメージセンサー6は、カラーイメージセンサーを構成する。カラーフィルターアレイ4は、例えば4つの画素の中の左上及びその対角である右下の画素に対して緑色(G)のカラーフィルター、右上の画素に対して赤色(R)のカラーフィルター、左下の画素に対して青色(B)のカラーフィルターをアレイ状に配列したベイヤーカラーフィルターアレイ(BayerCFA)である。
A digital camera as an image processing apparatus (imaging apparatus) according to a first embodiment of the present invention will be described below with reference to the drawings. FIG. 1 is a block diagram showing the configuration of the digital camera according to the first embodiment. The
イメージセンサー6から出力された電気信号は、画像処理部8に入力される。画像処理部8においては、図示しないメモリ等から読み込まれた画像処理プログラムが実行されることにより、後述の補間等の画像処理が行われる。画像処理部8において画像処理された画像は記録部10に記録される。
The electrical signal output from the image sensor 6 is input to the
図2は、第1の実施の形態に係る画像処理部8の構成を示すブロック図である。画像処理部8は、ホワイトバランス処理部12、第1階調処理部14、補間処理部16、色差補正処理部17、第1色変換処理部18、第2階調処理部20、第2色変換処理部22、エッジ強調処理部24及び圧縮処理部26を備えている。
FIG. 2 is a block diagram illustrating a configuration of the
ホワイトバランス処理部12においては、無彩色の被写体を撮影した時にカラーイメージセンサー上の各色チャンネルの出力が概ね同じになるようにホワイトバランス処理を行う。この処理は、例えば画像中の最も明るい領域が無彩色だとの仮定の元、その領域のRGBの値が同じになるようなゲインとしても良いし、予めユーザーが撮影光源を設定しその光源に応じたゲインを設定しても良い。また撮影シーンの判定を行い人物の顔領域が肌色になるようなゲインを設定しても良い。ホワイトバランス処理部12では各画素のRGBにホワイトバランス係数を掛ける。
The white
次に、第1階調処理部14においては、ガンマ処理と呼ばれる入力画素値xに対して出力画素値yが
次に、補間処理部16においては、CFA(Color Filter Array)画像を補間し、各画素にRGBの揃ったカラー画像を生成する。補間の方法としてEric Dubois, “Frequency-Domain Methods for Demosaicking of Bayer-Sampled Color Images,” IEEE Signal Process. Lett., vol.12, pp.847,2005に記載の方法のようにCFA画像を周波数帯域で分割して輝度信号L,色差信号C1,C2成分の抽出を行う。ここで、BayerCFAで得られた画像をフーリエ変換した場合に、周波数解析を行うと低周波領域にL(輝度成分)、高周波領域にC1,C2(色差成分)が現れる。ここで、L,C1,C2はそれぞれ、
L=(2G+B+R)/4
C1=(2G−B−R)/4
C2=(B−R)/4
で表される。
Next, the
L = (2G + B + R) / 4
C 1 = (2G−B−R) / 4
C 2 = (BR) / 4
It is represented by
ここで輝度成分LはBayerCFA画像において低周波成分として現れ、色差成分C1は(−1/2,−1/2)を中心とする周波数域に変調され、色差成分C2は(0,−1/2)、(−1/2,0)を中心とする周波数域に変調されて分布する。このL,C1,C2成分をローパスフィルター、またはバンドパスフィルターを用いて抽出し、BayerCFA画像の補間を行うことにより画素毎にRGBの揃ったカラー画像を得ることができる。なお、この実施の形態では、ローパスフィルターを用いてL,C1,C2成分を抽出するローパスフィルター処理(LPF処理)を例に挙げて説明する。 Here, the luminance component L appears as a low frequency component in the Bayer CFA image, the color difference component C 1 is modulated in a frequency range centered on (−1/2, −1/2), and the color difference component C 2 is (0, − 1/2) and (−1/2, 0) are modulated and distributed in a frequency range centered on (−1/2, 0). The L, C 1 , and C 2 components are extracted using a low-pass filter or a band-pass filter, and a Bayer CFA image is interpolated to obtain a color image with RGB for each pixel. In this embodiment, a low-pass filter process (LPF process) that extracts L, C 1 , and C 2 components using a low-pass filter will be described as an example.
まず、BayerCFA画像を周波数解析した時の(−1/2,−1/2)の周波数を中心に分布する色差C1成分を抽出する。そのためにBayerCFA画像の座標(x,y)の位置の画素値に(−1)x+yを掛けて(−1/2,−1/2)の周波数を中心に分布する成分を(0,0)の周波数を中心に分布するように変調する。そしてLPF処理を行って低域成分を抽出しC1(x,y)成分とする。 First, the color difference C 1 component distributed around the (−1/2, −1/2) frequency when the Bayer CFA image is subjected to frequency analysis is extracted. For this purpose, the pixel value at the position of the coordinates (x, y) of the Bayer CFA image is multiplied by (−1) x + y, and the component distributed around the frequency of (−1/2, −1/2) is (0, 0). Is modulated so as to be distributed around the center frequency. Then, LPF processing is performed to extract a low-frequency component to obtain a C 1 (x, y) component.
次にBayerCFA画像を周波数解析した時の(−1/2,0)の周波数を中心に分布する色差C2a成分を抽出する。そのためにBayerCFA画像の座標(x,y)の位置の画素値に(−1)xを掛けて(−1/2,0)の周波数を中心に分布する成分を(0,0)の周波数を中心に分布するように変調する。そしてLPF処理を行って低域成分を抽出しC2a(x,y)成分とする。 Next, a color difference C 2a component distributed around the frequency (−1/2, 0) when the Bayer CFA image is subjected to frequency analysis is extracted. Therefore, the pixel value at the position of the coordinates (x, y) of the Bayer CFA image is multiplied by (−1) x, and the component distributed around the frequency of (−1/2, 0) is set as the frequency of (0, 0). Modulate to distribute in the center. Then, LPF processing is performed to extract a low frequency component and set it as a C 2a (x, y) component.
次にBayerCFA画像を周波数解析した時の(0,−1/2)の周波数を中心に分布する色差C2b成分を抽出する。そのためにBayerCFA画像の座標(x,y)の位置の画素値に(−1)yを掛けて(0,−1/2)の周波数を中心に分布する成分を(0,0)の周波数を中心に分布するように変調する。そしてLPF処理を行って低域成分を抽出しC2b(x,y)成分とする。 Next, the color difference C 2b component distributed around the frequency (0, −1/2) when the Bayer CFA image is subjected to frequency analysis is extracted. For this purpose, the pixel value at the position of the coordinates (x, y) of the Bayer CFA image is multiplied by (−1) y, and the component distributed around the frequency of (0, −1/2) is set as the frequency of (0, 0). Modulate to distribute in the center. Then, LPF processing is performed to extract the low-frequency component to obtain a C 2b (x, y) component.
次にBayerCFA画像を周波数解析した時の輝度L成分を抽出する。C1成分の座標(x,y)の位置の画素値に(−1)x+yを掛けて(−1/2,−1/2)の周波数を中心に分布する成分に戻し、C’1(x,y)成分とする。また、C2a成分の座標(x,y)の位置の画素値に(−1)xを掛けて(−1/2,0)の周波数を中心に分布する成分に戻し、C’2a(x,y)成分とする。また、C2b成分の座標(x,y)の位置の画素値に(−1)yを掛けて(0,−1/2)の周波数を中心に分布する成分に戻し、C’2b(x,y)成分とする。 Next, a luminance L component when the Bayer CFA image is subjected to frequency analysis is extracted. The pixel value at the position of the coordinate (x, y) of the C 1 component is multiplied by (−1) x + y to return to a component distributed around the frequency of (−1/2, −1/2), and C ′ 1 ( x, y) component. Also, the pixel value at the position of the coordinates (x, y) of the C 2a component is multiplied by (−1) x to return to a component distributed around the frequency of (−1/2, 0), and C ′ 2a (x , Y) component. Also, the pixel value at the position of the coordinates (x, y) of the C 2b component is multiplied by (−1) y to return to the component distributed around the frequency (0, −1/2), and C ′ 2b (x , Y) component.
次に、BayerCFA画像からC’1,C’2a,C’2bを引いてL成分を抽出する(次式参照)。
L(x,y)=CFA(x,y)−C’1(x,y)−C’2a(x,y)−C’2b(x,y)
Next, C ′ 1 , C ′ 2a , and C ′ 2b are subtracted from the Bayer CFA image to extract the L component (see the following equation).
L (x, y) = CFA (x, y) −C ′ 1 (x, y) −C ′ 2a (x, y) −C ′ 2b (x, y)
なお、L成分はCFA画像に直接LPFを掛けて抽出しても良い。この場合、色差と輝度は周波数帯域で分離したそれぞれの領域から抽出されているのではなく、一部分重なっている領域が色差と輝度の両方に抽出されることもある。また、LPFは線形フィルターでなくてもよく、ε-フィルター、σ-フィルターやbilateralフィルターのような画素値の差に依存する非線形フィルターを用いて抽出してもよい。この場合、帯域の違いだけでなく、振幅の違いでも輝度や色差の抽出を行うことができる。 The L component may be extracted by directly applying an LPF to the CFA image. In this case, the color difference and the luminance are not extracted from the respective regions separated in the frequency band, but a partially overlapping region may be extracted for both the color difference and the luminance. The LPF may not be a linear filter, and may be extracted using a non-linear filter that depends on a difference in pixel values, such as an ε-filter, a σ-filter, or a bilateral filter. In this case, it is possible to extract luminance and color difference not only by the difference in band but also by the difference in amplitude.
次に、C2aとC2bよりC2を求める。
これは色差成分や輝度成分の分布に応じて例えば
なお、ここではCFA画像を変調し、LPF処理によって色差成分を抽出しているが、CFA画像にバンドパスフィルター処理、ハイパスフィルター処理を施して色差成分を抽出し、その後抽出した成分を変調して低周波成分にしてもよい。フィルターの通過帯域は、L,C1,C2a,C2bの成分ごとに変えてもよい。また、ここではBayerCFAの補間処理を示しているが、CFA画像を周波数帯域で分割して輝度色差成分を抽出する方法はBayerCFAに限らずあらゆるCFA画像に適用できる。異なるCFAでは色差成分の分布する周波数帯域が異なり、輝度色差成分をRGB成分に変換する変換マトリクスが異なる。また、ここでの補間はLPF処理のみを行っているが、CFA画像をフーリエ変換やDCT変換して輝度色差の帯域を抽出しても良いし、ウェーブレット変換して局所的な空間情報も考慮して輝度色差帯域を抽出しても良い。 Here, the CFA image is modulated and the color difference component is extracted by LPF processing. However, the CFA image is subjected to band pass filter processing and high pass filter processing to extract the color difference component, and then the extracted component is modulated. It may be a low frequency component. The pass band of the filter may be changed for each component of L, C 1 , C 2a , and C 2b . Further, although Bayer CFA interpolation processing is shown here, the method of extracting a luminance / color difference component by dividing a CFA image in a frequency band is not limited to Bayer CFA, and can be applied to any CFA image. Different CFAs have different frequency bands in which color difference components are distributed, and different conversion matrices for converting luminance color difference components to RGB components. In addition, the interpolation here is performed only by LPF processing, but the CFA image may be subjected to Fourier transform or DCT transform to extract a luminance color difference band, or may be subjected to wavelet transform to consider local spatial information. Thus, the luminance color difference band may be extracted.
次に、色差補正処理部17においては、色滲みが低減するように色差の補正を行う。輝度の帯域よりも色差の帯域が狭いため、色差に高周波成分が含まれる領域(色のついたエッジなど)で色滲みが出てしまうため色差の補正を行う。
Next, the color difference
先ず、輝度Lの帯域と色差C1,C2の帯域の差のぶんだけ輝度をぼかした輝度LLPF1,LLPF2を作成する。つまり、LLPF1はC1と同程度の帯域幅を有し、LLPF2はC2と同程度の帯域幅を有するようにして輝度と色差の解像度を揃える。 First, the luminances L LPF1 and L LPF2 in which the luminance is blurred by the difference between the luminance L band and the color difference C 1 and C 2 band are created. That, L LPF1 has a bandwidth substantially equal to that of C 1, L LPF2 align the resolution of the luminance and color-difference so as to have a bandwidth substantially equal to that of C 2.
次に、
次に、色差を補正するか否かの判定を行う。仮補正した色差の大きさがもとの色差の大きさよりも大きくなっているか、仮補正すると色差の符号が反転してしまう場合は色差の補正を行わない。仮補正した色差の大きさがもとの色差の大きさよりも大きくなっているという条件は
次に、第1色変換処理部18において、各画素のL,C1” ,C2”の値を用いて、次数に従って各画素のRGBの値を求める。
ここではBayerCFAの周波数空間補間での色変換処理を示しているが、CFA画像を周波数帯域で分割して輝度色差成分を抽出する方法はBayerCFAに限らずあらゆるCFA画像に適用できる。異なるCFAでは色差成分の分布する周波数帯域が異なり、輝度色差成分をRGB成分に変換する変換マトリクスが異なる。 Although the color conversion processing by Bayer CFA frequency space interpolation is shown here, the method of extracting the luminance color difference component by dividing the CFA image in the frequency band is not limited to the Bayer CFA, and can be applied to any CFA image. Different CFAs have different frequency bands in which color difference components are distributed, and different conversion matrices for converting luminance color difference components to RGB components.
次に、第2階調処理部20において、第1階調処理部14において行った階調処理の逆変換を行う。即ち、入力画素値xに対して出力画素値yが
次に、第2色変換処理部22において、次式に従ってカラーイメージセンサーのRGBデータを出力色空間のRGBデータR0,G0,B0に変換する。
なお、cijはイメージセンサー6の分光感度、光源、出力色空間より定められる定数である。出力色空間の規格としては例えばIEC 61966-2-1 sRGBが挙げられる。そしてさらに出力色空間の定義に従い階調処理が行われる。例えばIEC 61966-2-1 sRGBでは入力画素値xに対して出力画素値yが
さらにエッジ強調、圧縮処理のためにRGBからYCbCrへ色変換を行っても良い。この色変換は入力がR'G'B'とすると
次に、エッジ強調処理部24により輝度成分Yにエッジ強調処理を行う。また、圧縮処理部26によりJPEG、JPEG2000、JPEG XR等の圧縮方式で圧縮する。
Next, the edge
ここで補間処理部16において、C1,C2a,C2bを抽出するのに用いるローパスフィルター(以下、LPFという。) は撮影被写体や撮影条件、カラーイメージセンサーの特性によって最適化することで高品質な補間画像が得られる。
Here, the
第1の実施の形態に係るデジタルカメラによれば、カラーフィルターアレイで得られた画像を補間した際に輝度と色差の解像度の差を補正して高画質の補間画像を得ることができる。 According to the digital camera according to the first embodiment, when the image obtained by the color filter array is interpolated, a difference in resolution between the luminance and the color difference can be corrected to obtain a high-quality interpolated image.
次に、図面を参照して本発明の第2の実施の形態に係る画像処理装置(撮像装置)としてのデジタルカメラについて説明する。第2の実施の形態に係るデジタルカメラの構成及び画像処理は、第1の実施の形態に係るデジタルカメラ1の構成及び画像処理と同一であるため説明を省略する。なお、この実施の形態では、図3に示すようなベイヤーカラーフィルターアレイ(BayerCFA)を備えたカラーイメージセンサーを用いる。
Next, a digital camera as an image processing apparatus (imaging apparatus) according to a second embodiment of the present invention will be described with reference to the drawings. Since the configuration and image processing of the digital camera according to the second embodiment are the same as the configuration and image processing of the
先ず、ホワイトバランス処理部12により、無彩色の被写体を撮影した時にセンサー上の各色チャンネルの出力が概ね同じになるようにホワイトバランス処理を行う。次に、第1階調処理部14により、ガンマ処理と呼ばれる入力画素値xに対して出力画素値yが
次に、補間処理部16により、G空格子補間、即ちBayerCFAでGがない座標のGの値を補間する。いま、例えば、図3においてR34のある位置でのGを計算する。即ち、
dv=|G24−G44|とdh=|G33−G35|を計算する。そして、dvとdhの大きさに応じてG34を計算する。この場合に、
dv−dt>dhならば、G34=(G33+G35)/2
dh−dt>dvならば、G34=(G24+G44)/2
上記二つ以外ならば、G34=(G24+G44+G33+G35)/4
とする。なお、dtは予め定めておく正の定数であり、ノイズが大きい場合にはdtを大きくする。
Next, the
d v = | G 24 -G 44 | and d h = | G 33 -G 35 | is calculated. Then, to calculate the G 34 according to the magnitude of the d v and d h. In this case,
If d v −d t > d h then G 34 = (G 33 + G 35 ) / 2
If d h −d t > d v , G 34 = (G 24 + G 44 ) / 2
Otherwise, G 34 = (G 24 + G 44 + G 33 + G 35 ) / 4
And Incidentally, d t is a positive constant determined in advance, is noisy increases the d t.
また補間処理部16により色差生成を行う。即ち、R,Bの画素位置でCB=B−G,CR=R−Gとして色差CB,CRを計算する。そして平滑化処理を行う。ある位置(x,y)でのCB(x,y)やCR(x,y)に
また補間処理部16により色差補間を行う。例えばR34の位置では、CR34=R34−G34は判っていて、CB34=(CB23+CB25+CB43+CB45)/4とする。また、例えばB45の位置では、CB45=B45−G45は判っていて、CR45=(CR34+CR36+CR54+CR56)/4とする。また例えばG44の位置では、CB44=(CB43+CB45)/2及び、CR44=(CR34+CR35)/2とする。
The
次に、色差補正処理部17により色差成分を補正する。ある位置(x,y)の色差成分を補正する場合には、先ず、
次に、色差を仮補正する。
次に、CBの補正を行う。
次に、第1色変換処理部18において、RBの計算を行う。即ち、色差C”B,C”Rから、B,Rの値を計算する。
次に、第2階調処理部20により、求まった各画素毎の(R,G,B)の値に対し第1階調処理の逆変換を行う。即ち、入力画素値xに対して出力画素値yが
なお、上述の各実施の形態における色差の補正は色差が空間的に急に変化する領域において効果的である。従って、色差成分のエッジ検出を行い、エッジ領域を抽出し、そのエッジ領域近傍にのみ補正処理を行うようにしてもよい。その処理は例えば、エッジ検出をハイパスフィルターで行い、エッジ領域の抽出をハイパスフィルター処理画像を閾値処理して抽出する事により領域マスクを作成する。また、領域マスクにローパスフィルター処理して処理する領域としない領域をなめらかに変化させても良い。 Note that the color difference correction in each of the above-described embodiments is effective in a region where the color difference suddenly changes spatially. Therefore, the edge detection of the color difference component may be performed to extract the edge region, and the correction process may be performed only in the vicinity of the edge region. For example, the edge detection is performed by a high-pass filter, and the edge region is extracted by performing threshold processing on the high-pass filter-processed image to create a region mask. In addition, the region to be processed and the region not to be processed by low pass filter processing may be smoothly changed in the region mask.
また、上述の各実施の形態においては、画像処理装置としてデジタルカメラを例に挙げて説明したが、パーソナルコンピュータ等の画像処理を行うことができる他の画像処理装置においても本発明を適用することができる。 In each of the above-described embodiments, the digital camera has been described as an example of the image processing apparatus. However, the present invention is also applied to other image processing apparatuses that can perform image processing, such as a personal computer. Can do.
また、上述の各実施の形態においては、図示しないメモリ等からデジタルカメラ1に画像処理を実行させる画像処理プログラムを読み込んで実行している。即ち、上述の各実施の形態で用いられている画像処理プログラムは、イメージセンサー6の前面に複数の異なる透過特性を有するカラーフィルターアレイ4を配置したカラーイメージセンサーにより各画素において複数の色成分のうちの一つの色成分を検出することにより得られたカラーフィルター画像のデータ補間を行う画像処理装置としてのデジタルカメラ1に適用される画像処理プログラムであって、カラーフィルター画像データの輝度成分を補間する第1の補間ステップと、カラーフィルター画像データの色差成分を補間する第2の補間ステップと、輝度成分の解像度と色差成分の解像度の差に応じて色差成分の補正値を算出する補正値算出ステップと、色差成分の補正値に応じて色差成分を補正する補正ステップとを実行させている。したがって、上述の各実施の形態で用いられている画像処理プログラムによれば、カラーフィルターアレイで得られた画像を補間した際に輝度と色差の解像度の差を補正して高画質の補間画像を得ることができる。
In each of the above-described embodiments, an image processing program for causing the
1…デジタルカメラ、2…撮影レンズ、4…カラーフィルター、6…イメージセンサー、8…画像処理部、10…記録部、12…ホワイトバランス処理部、14…第1階調処理部、16…補間処理部、17…色差補正処理部、18…第1色変換処理部、20…第2階調処理部、22…第2色変換処理部、24…エッジ強調処理部、26…圧縮処理部
DESCRIPTION OF
Claims (6)
前記カラーフィルター画像データの輝度成分を補間する第1の補間手段と、
前記カラーフィルター画像データの色差成分を補間する第2の補間手段と、
前記輝度成分の解像度と前記色差成分の解像度の差に応じて前記色差成分の補正値を算出する補正値算出手段と、
前記色差成分の補正値に応じて前記色差成分を補正する補正手段とを備え、
前記第1の補間手段及び前記第2の補間手段は、前記カラーフィルター画像データを周波数空間において輝度成分の帯域及び色差成分の帯域に分割して補間を行うことを特徴とする画像処理装置。 Interpolation of color filter image data obtained by detecting one color component of a plurality of color components at each pixel by a color image sensor in which a plurality of color filters having different transmission characteristics are arranged in front of the image sensor. In the image processing apparatus to perform,
First interpolation means for interpolating the luminance component of the color filter image data;
Second interpolation means for interpolating color difference components of the color filter image data;
Correction value calculating means for calculating a correction value of the color difference component according to a difference between the resolution of the luminance component and the resolution of the color difference component;
Correction means for correcting the color difference component according to the correction value of the color difference component ,
The image processing apparatus according to claim 1, wherein the first interpolation unit and the second interpolation unit perform the interpolation by dividing the color filter image data into a luminance component band and a color difference component band in a frequency space .
前記カラーフィルター画像データの輝度成分を補間する第1の補間ステップと、
前記カラーフィルター画像データの色差成分を補間する第2の補間ステップと、
前記輝度成分の解像度と前記色差成分の解像度の差に応じて前記色差成分の補正値を算出する補正値算出ステップと、
前記色差成分の補正値に応じて前記色差成分を補正する補正ステップとを含み、
前記第1の補間ステップ及び前記第2の補間ステップは、前記カラーフィルター画像データを周波数空間において輝度成分の帯域及び色差成分の帯域に分割して補間を行うことを特徴とする画像処理プログラム。 Interpolation of color filter image data obtained by detecting one color component of a plurality of color components at each pixel by a color image sensor in which a plurality of color filters having different transmission characteristics are arranged in front of the image sensor. An image processing program applied to an image processing apparatus to perform,
A first interpolation step for interpolating a luminance component of the color filter image data;
A second interpolation step for interpolating color difference components of the color filter image data;
A correction value calculating step of calculating a correction value of the color difference component according to a difference between the resolution of the luminance component and the resolution of the color difference component;
A correction step of correcting the color difference component according to a correction value of the color difference component ,
An image processing program characterized in that the first interpolation step and the second interpolation step perform interpolation by dividing the color filter image data into a luminance component band and a color difference component band in a frequency space .
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2010127849A JP5494249B2 (en) | 2010-06-03 | 2010-06-03 | Image processing apparatus, imaging apparatus, and image processing program |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2010127849A JP5494249B2 (en) | 2010-06-03 | 2010-06-03 | Image processing apparatus, imaging apparatus, and image processing program |
Publications (2)
Publication Number | Publication Date |
---|---|
JP2011254376A JP2011254376A (en) | 2011-12-15 |
JP5494249B2 true JP5494249B2 (en) | 2014-05-14 |
Family
ID=45417919
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2010127849A Active JP5494249B2 (en) | 2010-06-03 | 2010-06-03 | Image processing apparatus, imaging apparatus, and image processing program |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP5494249B2 (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
FR2964490B1 (en) * | 2010-09-06 | 2012-09-28 | Commissariat Energie Atomique | METHOD FOR DEMOSAICING DIGITAL RAW IMAGE, COMPUTER PROGRAM, AND CORRESPONDING IMAGING OR GRAPHICS CIRCUIT |
US9681109B2 (en) * | 2015-08-20 | 2017-06-13 | Qualcomm Incorporated | Systems and methods for configurable demodulation |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP3935548B2 (en) * | 1997-02-27 | 2007-06-27 | オリンパス株式会社 | Image signal processing device |
JP4945943B2 (en) * | 2005-07-14 | 2012-06-06 | 株式会社ニコン | Image processing device |
-
2010
- 2010-06-03 JP JP2010127849A patent/JP5494249B2/en active Active
Also Published As
Publication number | Publication date |
---|---|
JP2011254376A (en) | 2011-12-15 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP5045421B2 (en) | Imaging apparatus, color noise reduction method, and color noise reduction program | |
JP4668185B2 (en) | Image processing method | |
KR102523505B1 (en) | Method and Apparatus for Inverse Tone Mapping | |
JP2004074793A (en) | Method of color correction of image | |
US9936172B2 (en) | Signal processing device, signal processing method, and signal processing program for performing color reproduction of an image | |
WO2006064913A1 (en) | Image processing method | |
WO2006134923A1 (en) | Image processing device, computer program product, and image processing method | |
JP4936686B2 (en) | Image processing | |
US8427560B2 (en) | Image processing device | |
JP5129685B2 (en) | Luminance signal generation apparatus, luminance signal generation method, and imaging apparatus | |
US20090009831A1 (en) | Image Processing Method, Image Capture Device, and Computer Readable Medium | |
WO2017154293A1 (en) | Image processing apparatus, imaging apparatus, image processing method, and program | |
JP2003076985A (en) | Image processing method and device | |
JP5494249B2 (en) | Image processing apparatus, imaging apparatus, and image processing program | |
JP5454156B2 (en) | Image processing apparatus, imaging apparatus, and image processing program | |
KR101279576B1 (en) | Method for generating panorama image within digital image processing apparatus | |
US9071803B2 (en) | Image processing apparatus, image pickup apparatus, image processing method and non-transitory computer-readable storage medium storing image processing program | |
JP2010521719A (en) | Image processing system and image processing program | |
JP6024363B2 (en) | Image processing device | |
KR102051367B1 (en) | Processing apparatus for wrgb cfa image and processing method therefor | |
US20060092440A1 (en) | Human visual system based design of color signal transformation in a color imaging system | |
JP2013165482A (en) | Image processor, image processing program and imaging apparatus | |
JP5409864B2 (en) | Luminance signal generation apparatus, luminance signal generation method, and imaging apparatus | |
KR100688757B1 (en) | An apparatus and method for the edge enhancement of image data | |
JPH11289468A (en) | Picture processing method and picture processor |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20130418 |
|
A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20131107 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20131112 |
|
A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20140114 |
|
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: 20140204 |
|
A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20140217 |
|
R150 | Certificate of patent or registration of utility model |
Ref document number: 5494249 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R150 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |