JP6632339B2 - Image processing device, imaging device, image processing method, program, storage medium - Google Patents

Image processing device, imaging device, image processing method, program, storage medium Download PDF

Info

Publication number
JP6632339B2
JP6632339B2 JP2015220198A JP2015220198A JP6632339B2 JP 6632339 B2 JP6632339 B2 JP 6632339B2 JP 2015220198 A JP2015220198 A JP 2015220198A JP 2015220198 A JP2015220198 A JP 2015220198A JP 6632339 B2 JP6632339 B2 JP 6632339B2
Authority
JP
Japan
Prior art keywords
color
signal
interpolation
image processing
value
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
JP2015220198A
Other languages
Japanese (ja)
Other versions
JP2017092703A (en
Inventor
本田 充輝
充輝 本田
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
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 JP2015220198A priority Critical patent/JP6632339B2/en
Publication of JP2017092703A publication Critical patent/JP2017092703A/en
Application granted granted Critical
Publication of JP6632339B2 publication Critical patent/JP6632339B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Description

本発明は、画像処理装置に関し、特に、光学系を介して撮影された画像の倍率色収差を補正する画像処理装置に関するものである。   The present invention relates to an image processing apparatus, and more particularly, to an image processing apparatus that corrects chromatic aberration of magnification of an image captured via an optical system.

デジタルカメラ等の撮像装置で撮像して得られた画像は、撮像レンズ等の光学系が有する倍率色収差の影響を受ける。この色ずれを補正する方法として、レンズの状態に応じた色ずれ量をあらかじめ記憶しておく方法(例えば、特許文献1参照)がある。   An image obtained by imaging with an imaging device such as a digital camera is affected by chromatic aberration of magnification of an optical system such as an imaging lens. As a method of correcting the color shift, there is a method of storing in advance a color shift amount according to the state of the lens (for example, see Patent Document 1).

色ずれ量は連続的に変化する値であるため、色ずれ量を画像上で補正するためには、1画素に満たない単位の色ずれ量を補正する必要がある。このような1画素に満たない単位の色ずれ量を補正する方法として、バイリニア補間やバイキュービック補間のような補間アルゴリズムが提案されている。公知のべイヤー配列の場合、G画素を基準として、R画素またはB画素の色ずれ量を補正するのが一般的である。   Since the amount of color shift is a value that changes continuously, it is necessary to correct the amount of color shift of less than one pixel in order to correct the amount of color shift on an image. As a method of correcting such a color shift amount of a unit less than one pixel, an interpolation algorithm such as bilinear interpolation or bicubic interpolation has been proposed. In the case of the known Bayer arrangement, it is general to correct the color shift amount of the R pixel or the B pixel with reference to the G pixel.

特開平8−205181号公報JP-A-8-205181

しかしながら、G画素は補間を行わないので、B画素に対してのみバイリニア補間を行うと、G画素に対してB画素の帯域が消失するという問題点がある。図4(a)にバイキュービック補間の周波数特性、図4(b)にバイリニア補間の周波数特性の一例を示す。図4(a)のような周波数特性が急峻な特性を持つ補正を行うことで、精度の高い帯域補正を行うことができる。しかしながら、アンダーシュートおよびオーバーシュートが強く発生するという問題点がある。   However, since interpolation is not performed on G pixels, if bilinear interpolation is performed only on B pixels, there is a problem that the band of B pixels disappears on G pixels. FIG. 4A shows an example of a frequency characteristic of bicubic interpolation, and FIG. 4B shows an example of a frequency characteristic of bilinear interpolation. By performing a correction having a steep frequency characteristic as shown in FIG. 4A, a highly accurate band correction can be performed. However, there is a problem that undershoot and overshoot are strongly generated.

そこで、本発明は、上記問題を鑑み、倍率色収差の補正に有利な画像処理装置、撮像装置、画像処理方法、プログラム、記憶媒体を提供することを目的とする。   In view of the above problems, an object of the present invention is to provide an image processing device, an imaging device, an image processing method, a program, and a storage medium that are advantageous for correcting lateral chromatic aberration.

本発明の一側面としての画像処理装置は、光学系を介して撮影された画像の倍率色収差による第1色の光に対する第2色の光の色ずれ量を補正する画像処理装置であって、第1の周波数特性を有し、前記画像の前記第2色の成分について画素間の信号成分を補間する第1の補間処理を用いて前記色ずれ量を補正する第1の補正手段と、前記第1の補間処理を行った後の前記第2色の信号から前記第1色の信号を減算した色差信号に応じて、前記第1の補間処理と、前記第1の周波数特性よりも緩やかな第2の周波数特性を有する第2の補間処理と、を用いて前記色ずれ量を補正する第2の補正手段と、を有することを特徴とする。
An image processing apparatus as one aspect of the present invention is an image processing apparatus that corrects a color shift amount of a second color light with respect to a first color light due to chromatic aberration of magnification of an image captured via an optical system, A first correction unit that has a first frequency characteristic and corrects the color shift amount by using a first interpolation process of interpolating a signal component between pixels for the second color component of the image; depending on No. color Sashin obtained by subtracting the first color signal from the second color signal after the first interpolation processing, and the first interpolation process, slower than the first frequency characteristic A second interpolation process having a suitable second frequency characteristic, and a second correction unit that corrects the color shift amount using the second interpolation process.

本発明の他の目的及び特徴は、以下の実施例において説明される。   Other objects and features of the present invention are described 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 that are advantageous for correcting lateral chromatic aberration.

本発明の実施形態にかかる撮像装置の構成を説明するための図である。FIG. 1 is a diagram for describing a configuration of an imaging device according to an embodiment of the present invention. 本発明の実施形態にかかる倍率色収差補正部の構成を説明するための図である。FIG. 4 is a diagram for explaining a configuration of a chromatic aberration-of-magnification correcting unit according to the embodiment of the present invention. 本発明の実施形態にかかる色差判定部の動作を説明するためのフローチャートである。5 is a flowchart illustrating an operation of a color difference determination unit according to the embodiment of the present invention. 本発明の実施形態にかかるバイキュービック補間とバイリニア補間の周波数特性を説明するための図である。FIG. 4 is a diagram for explaining frequency characteristics of bicubic interpolation and bilinear interpolation according to the embodiment of the present invention. 本発明の実施形態にかかるバイキュービック倍率補正後およびバイリニア倍率補正後のラインプロファイルを説明するための図である。FIG. 4 is a diagram for explaining a line profile after bicubic magnification correction and after bilinear magnification correction according to the embodiment of the present invention. 本発明の実施形態にかかるバイキュービック倍率補正後およびバイリニア倍率補正後の色差信号のラインプロファイルを説明するための図である。FIG. 5 is a diagram for explaining a line profile of a color difference signal after bicubic magnification correction and bilinear magnification correction according to the embodiment of the present invention. 本発明の実施形態にかかるコントラスト判定部の動作を説明するためのフローチャートである。6 is a flowchart illustrating an operation of a contrast determination unit according to the embodiment of the present invention. 本発明の第1の実施形態にかかる合成部および合成比率算出部の動作を説明するためのフローチャートである。5 is a flowchart for explaining operations of a combining unit and a combining ratio calculating unit according to the first embodiment of the present invention. 本発明の実施形態にかかる色差差分信号と判定値Valとの関係を説明するための図である。FIG. 7 is a diagram for explaining a relationship between a color difference difference signal and a determination value Val according to the embodiment of the present invention. 本発明の実施形態にかかるコントラスト値と判定値Valとの関係を説明するための図である。FIG. 4 is a diagram for explaining a relationship between a contrast value and a determination value Val according to the embodiment of the present invention. 本発明の実施形態にかかる合成比率と判定値Valとの関係を説明するための図である。FIG. 7 is a diagram for explaining a relationship between a combination ratio and a determination value Val according to the embodiment of the present invention. 本発明の実施形態にかかる着目画素のコントラスト判定を説明するための図である。FIG. 4 is a diagram for explaining contrast determination of a pixel of interest according to the embodiment of the present invention. 本発明の第2の実施形態にかかる合成部および合成比率算出部の動作を説明するためのフローチャートである。It is a flowchart for demonstrating the operation | movement of the combination part and the combination ratio calculation part concerning 2nd Embodiment of this invention. 本発明の実施形態にかかる色補間部の動作を説明するための図である。FIG. 7 is a diagram for explaining an operation of the color interpolation unit according to the embodiment of the present invention.

以下、添付図面を参照して本発明を実施するための形態について詳細に説明する。なお、以下に説明する実施の形態は、本発明の実現手段としての一例であり、本発明が適用される装置の構成や各種条件によって適宜修正又は変更されるべきものであり、本発明は以下の実施の形態に限定されるものではない。   Hereinafter, embodiments for carrying out the present invention will be described in detail with reference to the accompanying drawings. The embodiment described below is an example as a means for realizing the present invention, and should be appropriately modified or changed depending on the configuration of the apparatus to which the present invention is applied and various conditions. However, the present invention is not limited to the embodiment.

図1は、撮像装置の全体を示す構成図である。図1において、撮像部101は図示しない撮影レンズ(光学系)、該撮影レンズにより形成される像を撮像する撮像素子及びその駆動回路からなり、撮影レンズにより結像する光学像を撮像素子により電気信号に変換する。撮像部101から出力されるアナログ信号は、A/D変換部102によってデジタル信号に変換される。A/D変換部102によってデジタル信号に変換された画像信号は、画像処理部103に入力される。換言すれば、画像処理部103は、撮像素子から出力される撮影画像(画像信号)を取得する。画像処理部103は、WB処理部104、色補間部105、倍率色収差補正部106、信号処理部107を含んでおり、システムコントローラ108により制御される。WB処理部104では、公知のホワイトバランス(WB)処理が行われ、WB処理が行われた画像信号は色補間部105に入力される。なお、本実施例では、レンズ一体型の撮像装置を例として挙げているが、本発明はこれに限らずレンズ交換型の撮像装置、いわゆる交換レンズシステムの撮像装置にも適用することができる。   FIG. 1 is a configuration diagram illustrating the entire imaging apparatus. In FIG. 1, an imaging unit 101 includes a photographic lens (optical system) (not shown), an imaging element that captures an image formed by the photographic lens, and a driving circuit for driving the optical image formed by the photographic lens. Convert to a signal. An analog signal output from the imaging unit 101 is converted into a digital signal by the A / D conversion unit 102. The image signal converted into a digital signal by the A / D conversion unit 102 is input to the image processing unit 103. In other words, the image processing unit 103 acquires a captured image (image signal) output from the image sensor. The image processing unit 103 includes a WB processing unit 104, a color interpolation unit 105, a chromatic aberration of magnification correction unit 106, and a signal processing unit 107, and is controlled by a system controller 108. In the WB processing unit 104, a known white balance (WB) process is performed, and the image signal on which the WB process has been performed is input to the color interpolation unit 105. In this embodiment, the lens-integrated imaging device is taken as an example. However, the present invention is not limited to this, and can be applied to an imaging device of a lens interchangeable type, that is, an imaging device of a so-called interchangeable lens system.

ここで、図14を用いて色補間部105の動作を説明する。図14(a)の公知のベイヤー配列をR成分、G成分、B成分ごとに分離する。分離した後にない画素位置に関しては0を挿入する(図14(b))。図14(b)で生成した各プレーン画像に対して、各成分ごとに公知の色補間処理を行う(図14(c))。   Here, the operation of the color interpolation unit 105 will be described with reference to FIG. The known Bayer array shown in FIG. 14A is separated into R, G, and B components. For a pixel position that has not been separated, 0 is inserted (FIG. 14B). A known color interpolation process is performed on each plane image generated in FIG. 14B for each component (FIG. 14C).

再び図1に戻るが、色補間部105で公知の色補間が行われた画像信号は、倍率色収差補正部106に入力される。詳細は後述するが倍率色収差補正部106で補正された倍率色収差補正済みの画像信号は、信号処理部107に入力され、公知の輝度信号処理、色信号処理等が行われる。そして、画像処理部103で所定の処理を施された信号は、画像処理部103から出力され図示しない半導体メモリなどの画像記録媒体に所定のフォーマットで保存される。また、画像処理部103から出力された信号は、図示しないディスプレイ(表示部)に表示されてもよい。画像処理部103の動作は、システムコントローラ108(制御部)によって制御される。システムコントローラ108は、撮像装置全体を統括的に制御する。本実施形態では、画像処理部103(倍率色収差補正部106)とシステムコントローラ108とにより、光学系を介して撮影された画像(撮影画像)の倍率色収差を補正する画像処理装置が構成される。なお、本発明の画像処理装置は、撮像装置に搭載されるものに限定されず、撮像装置の外部に設けられるものであってもよい。例えば、撮像装置にインターネットを介して接続されたサーバーから構成されてもよい(クラウドコンピューティング)。もちろん、画像処理装置は画像情報を保存している他のパーソナルコンピュータ(PC)、携帯電話、PDAやゲーム機などの専用端末などにネットワークを介して接続されていてもよい。   Referring back to FIG. 1, the image signal on which the known color interpolation has been performed by the color interpolation unit 105 is input to the magnification chromatic aberration correction unit 106. Although the details will be described later, the image signal after the magnification chromatic aberration correction corrected by the magnification chromatic aberration correction unit 106 is input to the signal processing unit 107, and known luminance signal processing, chrominance signal processing, and the like are performed. The signal that has been subjected to predetermined processing by the image processing unit 103 is output from the image processing unit 103 and stored in an image recording medium such as a semiconductor memory (not shown) in a predetermined format. Further, the signal output from the image processing unit 103 may be displayed on a display (display unit) not shown. The operation of the image processing unit 103 is controlled by the system controller 108 (control unit). The system controller 108 controls the entire image pickup apparatus as a whole. In the present embodiment, the image processing unit 103 (the chromatic aberration of magnification correcting unit 106) and the system controller 108 constitute an image processing apparatus that corrects the chromatic aberration of magnification of an image (captured image) captured via the optical system. Note that the image processing device of the present invention is not limited to the one mounted on the imaging device, and may be provided outside the imaging device. For example, it may be configured from a server connected to the imaging device via the Internet (cloud computing). Of course, the image processing apparatus may be connected via a network to another personal computer (PC) storing image information, a mobile phone, a dedicated terminal such as a PDA or a game machine, or the like.

続いて、図2を用いて倍率色収差補正部106の動作を説明する。図2は、倍率色収差補正部106の詳細を示す構成図である。ここでは、G画素に対するB画素の倍率色収差の補正を行う場合を例にとって説明する。201は色補間部105で色補間されたB信号、202は色補間部105で色補間されたG信号を示している。B信号201は、バイリニア補間部203とバイキュービック補間部204にそれぞれ入力される。バイリニア補間部(第3の補正手段)203は、周囲のB画素を使って公知のバイリニア補間(第2の補間処理)を行い、合成部205に入力される。バイリニア補間部203は、倍率色収差によって生じる第1色の光(G光)に対する第2色の光(B光)の1画素に満たない単位の色ずれ量を補正するためにバイリニア補間処理を行って倍率色収差を補正する。すなわち、撮影画像のB光の成分について画素間の信号成分を補間するバイリニア補間処理(第2の補間処理)を用いて色ずれ量を補正する。バイキュービック補間部(第1の補正手段)204は、周囲のB画素を使って公知のバイキュービック補間(第1の補間処理)を行い、合成部205、コントラスト判定部206および色差判定部207に入力される。バイキュービック補間部204は、倍率色収差によって生じる第1色の光(G光)に対する第2色の光(B光)の1画素に満たない単位の色ずれ量を補正するためにバイキュービック補間処理を行って倍率色収差を補正する。すなわち、撮影画像のB光の成分について画素間の信号成分を補間するバイキュービック補間処理(第1の補間処理)を用いて色ずれ量を補正する。第1の補正手段コントラスト判定部(第2の判定手段)206は、G信号またはB信号からコントラスト値(コントラスト情報)を取得し、詳細は後述するが、バイキュービック補間後のB信号またはG信号から高コントラストエッジであるか否かを判定する。そして、その判定結果は合成比率算出部208に入力される。色差判定部(第1の判定手段)207は、第1色の信号(G信号)と第2色の信号(B信号)の色差信号(色差情報)を取得し、詳細は後述するが、バイキュービック補間前後の色差信号からアンダーシュートを判定する。そして、その判定結果は合成比率算出部208に入力される。合成部205は、合成比率算出部208の出力に基づいて、バイキュービック補間部204から出力されるデータ(第1のデータ)とバイリニア補間部203から出力されるデータ(第2のデータ)とを合成する。すなわち、合成比率算出部208と合成部205は、撮影画像に関するコントラスト情報または色差情報の少なくとも一つに基づいて、第1のデータと第2のデータとを合成する合成手段として機能する。   Next, the operation of the magnification chromatic aberration corrector 106 will be described with reference to FIG. FIG. 2 is a configuration diagram showing details of the chromatic aberration of magnification correction unit 106. Here, a case will be described as an example where the chromatic aberration of magnification of the B pixel with respect to the G pixel is corrected. Reference numeral 201 denotes a B signal color-interpolated by the color interpolation unit 105, and 202 denotes a G signal color-interpolated by the color interpolation unit 105. The B signal 201 is input to a bilinear interpolation unit 203 and a bicubic interpolation unit 204, respectively. The bilinear interpolation unit (third correction unit) 203 performs known bilinear interpolation (second interpolation processing) using surrounding B pixels, and is input to the synthesis unit 205. The bilinear interpolation unit 203 performs a bilinear interpolation process to correct a color shift amount of a unit of less than one pixel of the second color light (B light) with respect to the first color light (G light) caused by the chromatic aberration of magnification. To correct lateral chromatic aberration. That is, the color shift amount is corrected using a bilinear interpolation process (second interpolation process) for interpolating a signal component between pixels for the B light component of the captured image. The bicubic interpolation unit (first correction unit) 204 performs known bicubic interpolation (first interpolation processing) using surrounding B pixels, and sends the result to the synthesis unit 205, the contrast determination unit 206, and the color difference determination unit 207. Is entered. The bicubic interpolation unit 204 performs a bicubic interpolation process to correct a color shift amount of a unit of less than one pixel of the second color light (B light) with respect to the first color light (G light) caused by the chromatic aberration of magnification. To correct lateral chromatic aberration. That is, the color misregistration amount is corrected by using a bicubic interpolation process (first interpolation process) for interpolating a signal component between pixels for the B light component of the captured image. A first correction unit contrast determination unit (second determination unit) 206 acquires a contrast value (contrast information) from the G signal or the B signal, and details of which will be described later, but the B signal or the G signal after bicubic interpolation. It is determined whether or not it is a high contrast edge. Then, the determination result is input to the combination ratio calculation unit 208. The color difference determination unit (first determination unit) 207 acquires a color difference signal (color difference information) of the first color signal (G signal) and the second color signal (B signal), and the details will be described later. Undershoot is determined from the color difference signals before and after the cubic interpolation. Then, the determination result is input to the combination ratio calculation unit 208. The combining unit 205 converts the data (first data) output from the bicubic interpolation unit 204 and the data (second data) output from the bilinear interpolation unit 203 based on the output of the combining ratio calculation unit 208. Combine. That is, the combining ratio calculating unit 208 and the combining unit 205 function as a combining unit that combines the first data and the second data based on at least one of the contrast information or the color difference information regarding the captured image.

図4〜図6を用いて、バイリニア補間およびバイキュービック補間について説明を行う。図4(a)と(b)にバイキュービック補間とバイリニア補間の周波数応答をそれぞれ示す。横軸は周波数、縦軸は振幅を示している。バイリニア補間は、周波数応答特性は緩やかで再現精度の低いぼけた画像となるが、アンダーシュート・オーバーシュートは発生しないという特徴がある。一方、バイキュービック補間は、周波数応答特性はより急峻で再現精度が高くなるが、アンダーシュート/オーバーシュートが発生するという特徴がある。図4に示すように、バイリニア補間処理は、周波数応答の最大傾きで比較するとバイキュービック補間処理よりも緩やかな周波数特性(第2の周波数特性)を有する。また、バイキュービック補間処理は、周波数応答の最大傾きで比較するとバイリニア補間処理よりも急峻な周波数特性(第1の周波数特性)を有する。このように、バイキュービック補間部204は、撮影画像に対して、第1の周波数特性を有する第1の補間処理を行って第1のデータを出力する第1の補間手段として機能する。また、バイリニア補間部203は、撮影画像に対して、第1の周波数特性よりも緩やかな第2の周波数特性を有する第2の補間処理を行って第2のデータを出力する第2の補間手段として機能する。   The bilinear interpolation and the bicubic interpolation will be described with reference to FIGS. FIGS. 4A and 4B show frequency responses of bicubic interpolation and bilinear interpolation, respectively. The horizontal axis indicates frequency, and the vertical axis indicates amplitude. The bilinear interpolation has a feature that a frequency response characteristic is gradual and a blurred image with low reproduction accuracy is obtained, but no undershoot or overshoot occurs. On the other hand, the bicubic interpolation has a characteristic that the frequency response characteristic is steeper and the reproduction accuracy is higher, but undershoot / overshoot occurs. As shown in FIG. 4, the bilinear interpolation processing has a gentler frequency characteristic (second frequency characteristic) than the bicubic interpolation processing when compared at the maximum slope of the frequency response. Further, the bicubic interpolation processing has a steeper frequency characteristic (first frequency characteristic) than the bilinear interpolation processing when compared at the maximum slope of the frequency response. As described above, the bicubic interpolation unit 204 functions as a first interpolation unit that performs the first interpolation process having the first frequency characteristic on the captured image and outputs the first data. The bilinear interpolation unit 203 performs a second interpolation process on the captured image having a second frequency characteristic that is gentler than the first frequency characteristic, and outputs second data. Function as

図5にエッジがある被写体における倍率色収差補正後のラインプロファイルを示す。横軸は画素位置、縦軸は横軸の画素位置を1として正規化した場合の画素値を示している。503はG画素のラインプロファイル、501はバイリニア補間を行った場合のB画素のラインプロファイル、502はバイキュービック補間を行った場合のB画素のラインプロファイルを示している。B画素はサブピクセル単位(例えば0.5画素)で補正している。501のバイリニア補間を行ったB信号は、アンダーシュートおよびオーバーシュートは発生しないが、補間の影響によりG信号に対してぼけた信号となる。一方、502のバイキュービック補間を行ったB信号はG信号と同等のエッジを持つ信号(領域2)となるが、領域1でオーバーシュートが領域3でアンダーシュートが発生してしまう。アンダーシュートの影響により、輝度信号が周囲よりも沈んでみえたり、色つきが発生してしまう。以下の説明では、アンダーシュートに着目して説明を続ける。   FIG. 5 shows a line profile of a subject having an edge after correcting the chromatic aberration of magnification. The horizontal axis shows the pixel position, and the vertical axis shows the pixel value when the pixel position on the horizontal axis is normalized to 1. Reference numeral 503 denotes a G pixel line profile, 501 denotes a B pixel line profile when bilinear interpolation is performed, and 502 denotes a B pixel line profile when bicubic interpolation is performed. B pixels are corrected in sub-pixel units (for example, 0.5 pixels). The B signal subjected to the bilinear interpolation of 501 does not cause undershoot or overshoot, but becomes a signal blurred from the G signal due to the influence of the interpolation. On the other hand, the B signal subjected to the bicubic interpolation of 502 becomes a signal having the same edge as the G signal (region 2), but overshoot occurs in region 1 and undershoot occurs in region 3. Due to the effect of the undershoot, the luminance signal appears to sink below the surroundings or coloring occurs. In the following description, description will be continued focusing on undershoot.

図6にこのエッジがある被写体における色差信号(B−G)のラインプロファイルを示す。601がバイリニア補間後のB信号とG信号の差分信号、602がバイキュービック補間後のB信号とG信号の差分信号を示している。602のラインプロファイルで領域3でアンダーシュートが発生していることがわかる。本発明では602の領域3のようにアンダーシュートが発生している領域を検出して、アンダーシュート領域に関してはバイリニア補正の重みを強くする(重み付け処理を行う)ことでアンダーシュートの発生を抑制する。   FIG. 6 shows a line profile of a color difference signal (BG) in a subject having this edge. Reference numeral 601 denotes a difference signal between the B signal and the G signal after bilinear interpolation, and 602 denotes a difference signal between the B signal and the G signal after bicubic interpolation. It can be seen from the line profile 602 that undershoot has occurred in region 3. In the present invention, an area in which an undershoot has occurred, such as area 3 in 602, is detected, and the occurrence of undershoot is suppressed by increasing the weight of bilinear correction (performing weighting processing) in the undershoot area. .

図3のフローチャートを使って、本発明の色差判定部の動作を説明する。ステップS301で倍率補正前のB信号とG信号から補正前の色差信号Cbを取得(演算)する。次にステップS302で進み、バイキュービック倍率補正後のB信号とG信号から補正後の色差信号Cb’を取得(演算)する。次に、ステップS303に進み、Cb’が負の値である場合はアンダーシュートの可能性があるとして、ステップS304へ進む。一方、ステップS303で、Cb’が負の値でない場合は、アンダーシュートの可能性がないとして、ステップS309に進む。次にステップS304で倍率補正前後の色差差分信号SubCbを取得する。図6のアンダーシュートが発生している領域(領域3)では、この色差差分信号SubCbが大きな値となっている。そのため、この色差差分信号SubCbが所定値以上である場合はアンダーシュートであると判定する。次に、ステップS305に進み、閾値Thres1と比較してSubCbが小さい場合は、ステップS309に進み、判定値Val1を0に設定する。一方、ステップS305において、閾値Thres1と比較してSubCbが大きい場合は、ステップS306に進む。ステップS306において、閾値Thres2と比較してSubCbが大きい場合は、ステップS308に進み、判定値Val1を1に設定する。一方、ステップS306において、閾値Thres2と比較してSubCbが小さい場合は、ステップS307に進み、判定値Val1を線形補間により求める。このように、色差判定部(第1の判定手段)207は、G信号とB信号の色差信号を取得し、該色差信号に応じて、所定の数値範囲(本実施形態では0〜1)の中から数値を設定する。具体的に、色差判定部207は、バイキュービック補間処理を行う前のB信号からG信号を減算した第1の色差信号と、バイキュービック補間処理を行った後のB信号からG信号を減算した第2の色差信号を取得する。さらに、第1の色差信号から第2の色差信号を減算した差分信号を取得する。その後、色差判定部207は、第2の色差信号が0以上の値(正の値)である場合は、所定の数値範囲0〜1の中から最も小さい数値(すなわち0)を設定する。また、第2の色差信号が負の値である場合は、差分信号が大きくなると、設定する数値が大きくなるように、所定の数値範囲0〜1の中から数値を設定する。図9に上記処理におけるSubCbと閾値Thres1とThres2と判定値Val1との関係を図示する。図9において、SubCbがThres1より小さい場合は判定値Val1は0を出力し、SubCbがThres2より大きい場合は判定値Val1は1を出力する。また、SubCbが閾値Thres1と閾値Thres2との間の場合は、   The operation of the color difference determination unit of the present invention will be described with reference to the flowchart of FIG. In step S301, a color difference signal Cb before correction is obtained (calculated) from the B signal and the G signal before magnification correction. Next, in step S302, the corrected color difference signal Cb 'is obtained (calculated) from the B signal and the G signal after the bicubic magnification correction. Next, the process proceeds to step S303, and if Cb 'is a negative value, it is determined that there is a possibility of undershoot, and the process proceeds to step S304. On the other hand, if Cb 'is not a negative value in step S303, it is determined that there is no possibility of undershoot, and the flow advances to step S309. Next, in step S304, a color difference difference signal SubCb before and after the magnification correction is obtained. In the area where the undershoot occurs in FIG. 6 (area 3), the color difference difference signal SubCb has a large value. Therefore, when the color difference difference signal SubCb is equal to or larger than a predetermined value, it is determined that an undershoot has occurred. Next, the process proceeds to step S305, and when SubCb is smaller than the threshold value Thres1, the process proceeds to step S309, and the determination value Val1 is set to 0. On the other hand, if SubCb is larger than the threshold value Thres1 in step S305, the process proceeds to step S306. In step S306, when SubCb is larger than the threshold value Thres2, the process proceeds to step S308, and the determination value Val1 is set to 1. On the other hand, when SubCb is smaller than the threshold value Thres2 in step S306, the process proceeds to step S307, and the determination value Val1 is obtained by linear interpolation. As described above, the color difference determination unit (first determination unit) 207 acquires the color difference signals of the G signal and the B signal, and according to the color difference signals, the color difference signal of a predetermined numerical range (0 to 1 in the present embodiment). Set a numerical value from the middle. Specifically, the color difference determination unit 207 subtracts the G signal from the first color difference signal obtained by subtracting the G signal from the B signal before performing the bicubic interpolation, and the G signal from the B signal obtained after performing the bicubic interpolation. Obtain a second color difference signal. Further, a difference signal obtained by subtracting the second color difference signal from the first color difference signal is obtained. Thereafter, when the second color difference signal is a value equal to or greater than 0 (positive value), the color difference determination unit 207 sets the smallest numerical value (that is, 0) from a predetermined numerical range 0 to 1. When the second color difference signal has a negative value, a numerical value is set from a predetermined numerical range 0 to 1 so that the numerical value to be set increases when the differential signal increases. FIG. 9 illustrates the relationship among SubCb, threshold values Thres1, Thres2, and determination value Val1 in the above processing. In FIG. 9, when SubCb is smaller than Thres1, the judgment value Val1 outputs 0, and when SubCb is larger than Thres2, the judgment value Val1 outputs 1. When SubCb is between the thresholds Thres1 and Thres2,

となる。 Becomes

上記説明したように、色差差分信号が大きい場合は、判定値Val1の値が大きくなり、アンダーシュートであると判定する。   As described above, when the color difference difference signal is large, the value of the determination value Val1 increases, and it is determined that an undershoot occurs.

続いて、図7のフローチャートを用いて、本発明のコントラスト判定部の動作を説明する。ステップS701で着目画素周辺のコントラスト値を取得する。図12を用いて、コントラスト判定の一例を示す。着目画素はG11で周辺画素の最大値と最小値の差分をコントラスト値Contとすると、   Next, the operation of the contrast determination unit of the present invention will be described with reference to the flowchart of FIG. In step S701, a contrast value around the target pixel is obtained. An example of the contrast determination will be described with reference to FIG. Assuming that the difference between the maximum value and the minimum value of the surrounding pixels is G11 and the contrast value is Cont,

となる。 Becomes

次に、ステップS702に進み、閾値Thres3と比較して、コントラスト値Contが小さい場合は、ステップS706に進み、判定値Val2を0に設定する。一方、ステップS702において、閾値Thres3と比較して、コントラスト値Contが大きい場合は、ステップS703に進む。ステップS703において、閾値Thres4と比較して、コントラスト値Contが大きい場合は、ステップS705に進み、判定値Val2を1に設定する。一方、ステップS703において、閾値Thres4と比較して、コントラスト値Contが小さい場合は、ステップS704に進み判定値Val2を線形補間により求める。このように、コントラスト判定部(第2の判定手段)206は、着目画素周辺のコントラスト値を取得し、該コントラスト値に応じて、所定の数値範囲(本実施形態では0〜1)の中から数値を設定する。具体的に、コントラスト判定部206は、G信号の着目画素の周辺のコントラスト値を取得し、該コントラスト値が大きくなると、設定する数値が大きくなるように、所定の数値範囲0〜1の中から数値を設定する。図10に上記処理におけるコントラスト値Contと閾値Thres3とThres4と判定値Val2との関係を図示する。図10において、ContがThres3より小さい場合は判定値Val2は0を出力し、ContがThres3より大きい場合は判定値Val2は1を出力する。また、Contが閾値Thres3と閾値Thres4との間の場合は、   Next, the process proceeds to step S702, and if the contrast value Cont is smaller than the threshold value Thres3, the process proceeds to step S706 to set the determination value Val2 to 0. On the other hand, if the contrast value Cont is larger than the threshold value Thres3 in step S702, the process proceeds to step S703. If the contrast value Cont is larger than the threshold value Thres4 in step S703, the process proceeds to step S705, and the determination value Val2 is set to 1. On the other hand, if the contrast value Cont is smaller than the threshold value Thres4 in step S703, the process proceeds to step S704 to determine the determination value Val2 by linear interpolation. As described above, the contrast determination unit (second determination unit) 206 acquires the contrast value around the pixel of interest, and according to the contrast value, from within a predetermined numerical range (0 to 1 in the present embodiment). Set a numerical value. Specifically, the contrast determination unit 206 obtains a contrast value around the pixel of interest of the G signal, and from the predetermined numerical value range 0 to 1 so that when the contrast value increases, the numerical value to be set increases. Set a numerical value. FIG. 10 illustrates the relationship between the contrast value Cont, the threshold values Thres3 and Thres4, and the determination value Val2 in the above processing. In FIG. 10, when Cont is smaller than Thres3, the judgment value Val2 outputs 0, and when Cont is larger than Thres3, the judgment value Val2 outputs 1. When Cont is between the thresholds Thres3 and Thres4,

となる。 Becomes

なお、ここではコントラストの判定にG画素を用いたが、B画素やまたは公知のY=0.3R+0.6G+0.1Bの割合で合成したY画素を用いてもよい。また、3×3の領域で検出したがこれに限られるものではない。   Here, the G pixel is used for determining the contrast, but a B pixel or a Y pixel synthesized at a known ratio of Y = 0.3R + 0.6G + 0.1B may be used. In addition, the detection is performed in a 3 × 3 area, but the present invention is not limited to this.

次に本発明の図2の合成部205および合成比率算出部208の動作について、図8のフローチャートを用いて説明する。ステップS801において、コントラスト判定の判定値Val2と色差判定の判定値Val1の結果を乗算した結果Valを取得する。次に、ステップS802に進み、閾値Thres5と比較し、判定値valが小さい場合は、ステップS806に進み、合成比MIXをmin_thresに設定する。一方、ステップS802において、閾値Thres5と比較し、判定値valが大きい場合は、ステップS803に進む。ステップS803において、閾値Thers6と比較し、判定値valが大きい場合は、ステップS805に進み、合成比MIXをmax_thresに設定する。一方、ステップS803において、閾値Thres6と比較して、判定値Valが小さい場合は、ステップS806に進み、合成比MIXを線形補間により求める。図11に判定値Valと合成比MIXの関係を図示する。図11において、判定値ValがThres5より小さい場合は合成比MIXはmin_thresを出力し、判定値ValがThres6より大きい場合は合成比MIXはmax_thresを出力する。また、判定値Valが閾値Thres5と閾値Thres6との間の場合は、   Next, the operation of the combining unit 205 and the combining ratio calculating unit 208 of FIG. 2 of the present invention will be described with reference to the flowchart of FIG. In step S801, a result Val obtained by multiplying the result of the determination value Val2 of the contrast determination by the result of the determination value Val1 of the color difference determination is obtained. Next, the process proceeds to step S802, and is compared with the threshold value Thres5. If the determination value val is small, the process proceeds to step S806 to set the combination ratio MIX to min_thres. On the other hand, if the determination value val is larger than the threshold Thres5 in step S802, the process proceeds to step S803. If the determination value val is larger than the threshold value Thers6 in step S803, the process advances to step S805 to set the combination ratio MIX to max_thres. On the other hand, if the determination value Val is smaller than the threshold value Thres6 in step S803, the process proceeds to step S806, and the combination ratio MIX is obtained by linear interpolation. FIG. 11 illustrates the relationship between the determination value Val and the combination ratio MIX. In FIG. 11, when the determination value Val is smaller than Thres5, the combination ratio MIX outputs min_thres, and when the determination value Val is greater than Thres6, the combination ratio MIX outputs max_thres. When the determination value Val is between the threshold value Thres5 and the threshold value Thres6,

となる。 Becomes

再び図8のフローチャートに戻るが、ステップS804またはステップS805またはステップS806で合成比MIXが求まると、ステップS807に進み、合成比MIXに応じて、バイリニア補間後の画素値とバイキュービック補間後の画素値を合成する。   Returning to the flowchart of FIG. 8 again, when the combination ratio MIX is determined in step S804, step S805, or step S806, the process proceeds to step S807. Combine the values.

再び図2の図に戻るが、合成比率算出部208はコントラスト判定部(エッジ判定部)206の判定出力と色差判定部207の判定出力から、合成比率を求めて、合成部205に入力する。合成部205では合成比率算出部208の出力に基づいて、バイリニア補間とバイキュービック補間の出力の合成比を決定する。このように、本実施形態において合成比率算出部208および合成部205は、バイキュービック補間処理(第1の補間処理)と、バイリニア補間処理(第2の補間処理)と、を用いて倍率色収差(色ずれ量)を補正する第2の補正手段として機能する。第2の補正手段は、第1の補間処理と、第2の補間処理と、を用いて、第1の補間処理の結果(出力値)を補正する。具体的には、色差判定部207の結果とコントラスト判定部206の結果のうち少なくとも1つ(ここでは、その両方)に応じて、第1の補間処理の結果を、第2の補間処理を用いて画素間の信号成分を補間した結果で補正している。より具体的には、第1の補間処理を行った後のB信号からG信号を減算した色差信号および撮影画像のコントラストに応じて、第1の補間処理の結果(出力値)と第2の補間処理の結果(出力値)を、算出した合成比に基づいて合成する。本実施形態では、第1の補間処理を行った後のB信号からG信号を減算した色差信号および撮影画像のコントラストに応じて、第1の補間処理の結果(出力値)と第2の補間処理の結果(出力値)の合成比を変更する。具体的には、色差判定部207で設定される数値とコントラスト判定部206で設定される数値を乗算した数値が大きくなるほど、第1の補間処理の結果に対し第2の補間処理の結果の割合が大きくなるように、合成比を変更する。バイリニア補間後の画素値B_lin、バイキュービック補間後の画素値B_cubとすると合成比率MIX(0〜1)とすると、合成後の画素値B_outは、   Referring back to FIG. 2, the combination ratio calculation unit 208 obtains a combination ratio from the determination output of the contrast determination unit (edge determination unit) 206 and the determination output of the color difference determination unit 207, and inputs it to the combination unit 205. The synthesizing unit 205 determines the synthesizing ratio between the outputs of the bilinear interpolation and the bicubic interpolation based on the output of the synthesizing ratio calculating unit 208. As described above, in the present embodiment, the combining ratio calculation unit 208 and the combining unit 205 use the bicubic interpolation processing (first interpolation processing) and the bilinear interpolation processing (second interpolation processing) to perform magnification chromatic aberration ( It functions as a second correction unit for correcting the (color shift amount). The second correction unit corrects the result (output value) of the first interpolation process using the first interpolation process and the second interpolation process. Specifically, in accordance with at least one (here, both) of the result of the color difference determination unit 207 and the result of the contrast determination unit 206, the result of the first interpolation process is determined using the second interpolation process. The correction is performed based on the result of interpolating the signal components between pixels. More specifically, according to the color difference signal obtained by subtracting the G signal from the B signal after the first interpolation processing and the contrast of the captured image, the result (output value) of the first interpolation processing and the second The result (output value) of the interpolation processing is synthesized based on the calculated synthesis ratio. In the present embodiment, the result (output value) of the first interpolation process and the second interpolation process are performed in accordance with the color difference signal obtained by subtracting the G signal from the B signal after the first interpolation process and the contrast of the captured image. Change the synthesis ratio of the processing result (output value). Specifically, as the numerical value obtained by multiplying the numerical value set by the color difference determining unit 207 and the numerical value set by the contrast determining unit 206 increases, the ratio of the result of the second interpolation processing to the result of the first interpolation processing increases Is changed so that is larger. Assuming that the pixel value B_lin after the bilinear interpolation and the pixel value B_cub after the bicubic interpolation are the combination ratio MIX (0 to 1), the pixel value B_out after the combination is

となる。 Becomes

上記説明したように、バイキュービック補間を行った倍率色収差補正前後のB信号とG信号から求めた色差差分信号が大きく、かつ、コントラストが大きいことを検出した場合は、バイリニア補間後の合成比率を強めに設定する(重み付け処理を行う)。換言すれば、補間関数の周波数応答特性を穏やかな設定に変更する。このようにすることで、通常領域のコントラストを維持しながら、アンダーシュートの影響による画質の低下を抑えることが可能となる。   As described above, when it is detected that the color difference difference signal obtained from the B signal and the G signal before and after the magnification chromatic aberration correction in which the bicubic interpolation is performed and the contrast is large, the combining ratio after the bilinear interpolation is determined. Set higher (perform weighting processing). In other words, the frequency response characteristic of the interpolation function is changed to a gentle setting. By doing so, it is possible to suppress a decrease in image quality due to the effect of undershoot while maintaining the contrast in the normal region.

また、本実施例では、B画素の補正について説明を行ったが、R画素の補正についても同様であるため、説明を省略する。   Further, in the present embodiment, the correction of the B pixel has been described, but the same applies to the correction of the R pixel, and a description thereof will be omitted.

本実施形態によれば、B画素の補間による帯域の消失をなくしながら、アンダーシュートおよびオーバーシュートの発生を抑えることができ、精度の高い倍率色収差の補正を行うことが可能となる。よって、倍率色収差の補正に有利な画像処理装置、撮像装置、画像処理方法を提供することができる。   According to the present embodiment, it is possible to suppress the occurrence of undershoot and overshoot while eliminating the loss of the band due to the interpolation of the B pixels, and it is possible to perform highly accurate correction of the chromatic aberration of magnification. Therefore, it is possible to provide an image processing device, an imaging device, and an image processing method that are advantageous for correcting magnification chromatic aberration.

以下、本発明の第二の実施形態について図13のフローチャートを参照して説明する。第二の実施例では、第一の実施例に対して図2の合成比率算出部の動作が異なるのみなので、それ以外の部分については説明を省略する。図13のステップS1301において、コントラスト判定の判定値Val2と色差判定の判定値Val1の結果のMAX値を判定値としてValを取得する。以下、ステップS1302以下に関しては、第一の実施例において、図8を用いて説明したものと内容が同等のため、詳細な説明を省略する。すなわち、本実施形態においても合成比率算出部208および合成部205は、バイキュービック補間処理(第1の補間処理)と、バイリニア補間処理(第2の補間処理)と、を用いて倍率色収差(色ずれ量)を補正する第2の補正手段として機能する。第2の補正手段は、第1の補間処理と、第2の補間処理と、を用いて、第1の補間処理の結果(出力値)を補正する。具体的には、色差判定部207の結果とコントラスト判定部206の結果のうち少なくとも1つ(ここでは、いずれか大きい方)に応じて、第1の補間処理の結果を、第2の補間処理を用いて画素間の信号成分を補間した結果で補正している。より具体的には、第1の補間処理を行った後のB信号からG信号を減算した色差信号または撮影画像のコントラストに応じて、第1の補間処理の結果(出力値)と第2の補間処理の結果(出力値)を、算出した合成比に基づいて合成する。本実施形態では、第1の補間処理を行った後のB信号からG信号を減算した色差信号または撮影画像のコントラストに応じて、第1の補間処理の結果(出力値)と第2の補間処理の結果(出力値)の合成比を変更する。具体的には、色差判定部207で設定される数値とコントラスト判定部206で設定される数値のうち大きい方の数値が大きくなるほど、第1の補間処理の結果に対し第2の補間処理の結果の割合が大きくなるように、合成比を変更する。   Hereinafter, a second embodiment of the present invention will be described with reference to the flowchart of FIG. The second embodiment differs from the first embodiment only in the operation of the combination ratio calculation unit in FIG. 2, and the description of the other parts will be omitted. In step S1301 of FIG. 13, Val is acquired using the MAX value of the result of the determination value Val2 of the contrast determination and the determination value Val1 of the color difference determination as the determination value. Hereinafter, steps S1302 and subsequent steps are the same as those described with reference to FIG. 8 in the first embodiment, and thus detailed description will be omitted. That is, also in the present embodiment, the combining ratio calculation unit 208 and the combining unit 205 use the bicubic interpolation process (first interpolation process) and the bilinear interpolation process (second interpolation process) to perform chromatic aberration of magnification (chromaticity). It functions as second correction means for correcting the amount of deviation. The second correction unit corrects the result (output value) of the first interpolation process using the first interpolation process and the second interpolation process. Specifically, according to at least one of the results of the color difference determination unit 207 and the result of the contrast determination unit 206 (here, whichever is greater), the result of the first interpolation Are corrected using the result of interpolating the signal components between pixels. More specifically, the result (output value) of the first interpolation processing and the second interpolation processing are performed in accordance with the color difference signal obtained by subtracting the G signal from the B signal after the first interpolation processing or the contrast of the captured image. The result (output value) of the interpolation processing is synthesized based on the calculated synthesis ratio. In the present embodiment, the result (output value) of the first interpolation processing and the second interpolation processing are performed in accordance with the color difference signal obtained by subtracting the G signal from the B signal after performing the first interpolation processing or the contrast of the captured image. Change the synthesis ratio of the processing result (output value). Specifically, the larger the numerical value set by the color difference determining unit 207 and the numerical value set by the contrast determining unit 206, the larger the numerical value of the first interpolation processing is compared with the result of the second interpolation processing. Is changed to increase the ratio of

上記説明したように、バイキュービック補間を行った倍率色収差補正前後のB信号とG信号から求めた色差差分信号が大きい、または、コントラストが大きいことを検出した場合は、バイリニア補間後の合成比率を強めに設定する(重み付け処理を行う)。換言すれば、補間関数の周波数応答特性を穏やかな設定に変更する。このようにすることで、通常領域のコントラストを維持しながら、アンダーシュートの影響による画質の低下を抑えることが可能となる。   As described above, when it is detected that the color difference difference signal obtained from the B signal and the G signal before and after the magnification chromatic aberration correction in which the bicubic interpolation is performed is large or the contrast is large, the synthesis ratio after the bilinear interpolation is determined. Set higher (perform weighting processing). In other words, the frequency response characteristic of the interpolation function is changed to a gentle setting. By doing so, it is possible to suppress a decrease in image quality due to the effect of undershoot while maintaining the contrast in the normal region.

このように、本実施形態によれば、B画素の補間による帯域の消失をなくしながら、アンダーシュートおよびオーバーシュートの発生を抑えることができ、精度の高い倍率色収差の補正を行うことが可能となる。よって、倍率色収差の補正に有利な画像処理装置、撮像装置、画像処理方法を提供することができる。   As described above, according to the present embodiment, it is possible to suppress the occurrence of undershoot and overshoot while eliminating the disappearance of the band due to the interpolation of the B pixels, and it is possible to perform highly accurate correction of the chromatic aberration of magnification. . Therefore, it is possible to provide an image processing device, an imaging device, and an image processing method that are advantageous for correcting magnification chromatic aberration.

以上、本発明の好ましい実施形態について説明したが、本発明はこれらの実施形態に限定されず、その要旨の範囲内で種々の変形及び変更が可能である。   As described above, the preferred embodiments of the present invention have been described, but the present invention is not limited to these embodiments, and various modifications and changes can be made within the scope of the gist.

例えば、上述の実施形態の機能を実現するソフトウェアのプログラムを、記録媒体から直接、或いは有線/無線通信を用いてプログラムを実行可能なコンピュータを有するシステム又は装置に供給し、そのプログラムを実行する場合も本発明に含む。   For example, a case in which a software program that realizes the functions of the above-described embodiments is supplied to a system or an apparatus having a computer that can execute the program directly from a recording medium or using wired / wireless communication and the program is executed Is also included in the present invention.

従って、本発明の機能処理をコンピュータで実現するために、該コンピュータに供給、インストールされるプログラムコード自体も本発明を実現するものである。つまり、本発明の機能処理を実現するための手順が記述されたコンピュータプログラム自体も本発明に含まれる。   Therefore, the program code itself supplied and installed in the computer to implement the functional processing of the present invention by the computer also implements the present invention. That is, the present invention also includes a computer program in which a procedure for implementing the functional processing of the present invention is described.

その場合、プログラムの機能を有していれば、オブジェクトコード、インタプリタにより実行されるプログラム、OSに供給するスクリプトデータ等、プログラムの形態を問わない。プログラムを供給するための記録媒体としては、例えば、ハードディスク、磁気テープ等の磁気記録媒体、光/光磁気記憶媒体、不揮発性の半導体メモリでもよい。   In this case, any form of the program, such as an object code, a program executed by an interpreter, and script data to be supplied to the OS, may be used as long as the program has a function. As a recording medium for supplying the program, for example, a magnetic recording medium such as a hard disk or a magnetic tape, an optical / magneto-optical storage medium, or a nonvolatile semiconductor memory may be used.

また、プログラムの供給方法としては、コンピュータネットワーク上のサーバに本発明を形成するコンピュータプログラムを記憶し、接続のあったクライアントコンピュータはがコンピュータプログラムをダウンロードしてプログラムするような方法も考えられる。   As a method of supplying the program, a method in which a computer program forming the present invention is stored in a server on a computer network, and a connected client computer downloads and programs the computer program is also conceivable.

本発明は、コンパクトデジタルカメラ、一眼レフカメラ、ビデオカメラなどの撮像装置に好適に利用できる。   INDUSTRIAL APPLICATION This invention can be utilized suitably for imaging devices, such as a compact digital camera, a single-lens reflex camera, and a video camera.

204 バイキュービック補間部
205 合成部
208 合成比率算出部
204 Bicubic interpolation unit 205 Synthesis unit 208 Synthesis ratio calculation unit

Claims (16)

光学系を介して撮影された画像の倍率色収差による第1色の光に対する第2色の光の色ずれ量を補正する画像処理装置であって、
第1の周波数特性を有し、前記画像の前記第2色の成分について画素間の信号成分を補間する第1の補間処理を用いて前記色ずれ量を補正する第1の補正手段と、
前記第1の補間処理を行った後の前記第2色の信号から前記第1色の信号を減算した色差信号に応じて、前記第1の補間処理と、前記第1の周波数特性よりも緩やかな第2の周波数特性を有する第2の補間処理と、を用いて前記色ずれ量を補正する第2の補正手段と、
を有することを特徴とする画像処理装置。
An image processing apparatus that corrects a color shift amount of a second color light with respect to a first color light due to chromatic aberration of magnification of an image captured via an optical system,
A first correction unit that has a first frequency characteristic and corrects the color shift amount using a first interpolation process that interpolates a signal component between pixels for the second color component of the image;
The first in accordance with the No. color Sashin obtained by subtracting the first color signal from the second color signal after the interpolation processing, and the first interpolation process, than the first frequency characteristic A second interpolating process having a gradual second frequency characteristic, and a second correcting unit configured to correct the color shift amount using a second interpolating process;
An image processing apparatus comprising:
前記第2の補正手段は、前記第1の補間処理を行った後の前記第2色の信号から前記第1色の信号を減算した色差信号に応じて、前記第1の補間処理の結果を、前記第2の補間処理を用いて前記画素間の信号成分を補間した結果で補正することを特徴とする請求項1に記載の画像処理装置。 Said second correction means, the first in accordance with the No. color Sashin obtained by subtracting the first color signal from the second color signal after the interpolation processing, the result of the first interpolation processing 2. The image processing apparatus according to claim 1, wherein the correction is performed using a result obtained by interpolating the signal components between the pixels using the second interpolation processing. 前記第2の補正手段は、前記第1の補間処理の結果と前記第2の補間処理の結果とを合成することを特徴とする請求項1または2に記載の画像処理装置。   The image processing apparatus according to claim 1, wherein the second correction unit combines a result of the first interpolation processing and a result of the second interpolation processing. 前記第2の補正手段は、前記第1の補間処理を行った後の前記第2色の信号から前記第1色の信号を減算した色差信号に応じて、前記第1の補間処理の結果と前記第2の補間処理の結果の合成比を変更することを特徴とする請求項3に記載の画像処理装置。 Said second correction means, the first in accordance with the No. color Sashin obtained by subtracting the first color signal from the second color signal after the interpolation processing, the result of the first interpolation processing The image processing apparatus according to claim 3, wherein a synthesis ratio of a result of the second interpolation processing is changed. 前記第2の補正手段は、前記第1の補間処理を行った後の前記第2色の信号から前記第1色の信号を減算した色差信号、および、前記画像のコントラストに応じて、前記合成比を変更することを特徴とする請求項4に記載の画像処理装置。The second correction unit is configured to perform the synthesis based on a color difference signal obtained by subtracting the signal of the first color from the signal of the second color after the first interpolation processing, and a contrast of the image. The image processing apparatus according to claim 4, wherein the ratio is changed. 前記色差信号を取得し、該色差信号に応じて所定の数値範囲の中から数値を設定する第1の判定手段と、
前記第1色の信号または前記第2色の信号のコントラスト値を取得し、該コントラスト値に応じて前記所定の数値範囲の中から数値を設定する第2の判定手段と、を有し、
前記第2の補正手段は、前記第1の判定手段が設定した数値と前記第2の判定手段が設定した数値を乗算した数値が大きくなるほど、前記第1の補間処理の結果に対し前記第2の補間処理の結果の割合が大きくなるように、前記合成比を変更することを特徴とする請求項に記載の画像処理装置。
A first determination unit that acquires the color difference signal and sets a numerical value from a predetermined numerical range according to the color difference signal;
A second determination unit configured to obtain a contrast value of the signal of the first color or the signal of the second color and set a numerical value from the predetermined numerical value range according to the contrast value;
The second correction means may determine that the larger the value obtained by multiplying the value set by the first determination means and the value set by the second determination means, the larger the value of the second interpolation The image processing apparatus according to claim 5 , wherein the synthesis ratio is changed so that a ratio of a result of the interpolation processing is increased.
前記色差信号を取得し、該色差信号に応じて所定の数値範囲の中から数値を設定する第1の判定手段と、
前記第1色の信号または前記第2色の信号のコントラスト値を取得し、該コントラスト値に応じて前記所定の数値範囲の中から数値を設定する第2の判定手段と、を有し、
前記第2の補正手段は、前記第1の判定手段が設定した数値と前記第2の判定手段が設定した数値のうち大きい方の数値が大きくなるほど、前記第1の補間処理の結果に対し前記第2の補間処理の結果の割合が大きくなるように、前記合成比を変更することを特徴とする請求項に記載の画像処理装置。
A first determination unit that acquires the color difference signal and sets a numerical value from a predetermined numerical range according to the color difference signal;
A second determination unit configured to obtain a contrast value of the signal of the first color or the signal of the second color and set a numerical value from the predetermined numerical value range according to the contrast value;
The second correction unit is configured such that the larger the larger of the numerical value set by the first determining unit and the numerical value set by the second determining unit, the larger the value of the first interpolation process is, The image processing apparatus according to claim 5 , wherein the combining ratio is changed so that a ratio of a result of the second interpolation processing increases.
前記第1の判定手段は、前記第1の補間処理を行う前の第2色の信号から前記第1色の信号を減算した第1の色差信号と、前記第1の補間処理を行った後の第2色の信号から前記第1色の信号を減算した第2の色差信号と、前記第1の色差信号から前記第2の色差信号を減算した差分信号と、を取得し、
前記差分信号が大きくなると、前記設定する数値が大きくなるように、前記所定の数値範囲の中から数値を設定することを特徴とする請求項またはに記載の画像処理装置。
The first determination unit may include a first color difference signal obtained by subtracting the first color signal from a second color signal before performing the first interpolation process, and a first color difference signal after performing the first interpolation process. A second color difference signal obtained by subtracting the first color signal from the second color signal, and a difference signal obtained by subtracting the second color difference signal from the first color difference signal.
Wherein the difference signal is large, as numerical values the setting increases, the image processing apparatus according to claim 6 or 7, characterized in that to set the numerical value from the predetermined value range.
前記第1の判定手段は、前記第1の補間処理を行う前の第2色の信号から前記第1色の信号を減算した第1の色差信号と、前記第1の補間処理を行った後の第2色の信号から前記第1色の信号を減算した第2の色差信号と、前記第1の色差信号から前記第2の色差信号を減算した差分信号と、を取得し、
前記第2の色差信号が正の値である場合、前記所定の数値範囲の中から最も小さい数値を設定することを特徴とする請求項またはに記載の画像処理装置。
The first determination unit may include a first color difference signal obtained by subtracting the first color signal from a second color signal before performing the first interpolation process, and a first color difference signal after performing the first interpolation process. A second color difference signal obtained by subtracting the first color signal from the second color signal, and a difference signal obtained by subtracting the second color difference signal from the first color difference signal.
If the second color difference signal is a positive value, the image processing apparatus according to claim 6 or 7, characterized in that setting the smallest number from among the predetermined numerical range.
前記第2の判定手段は、前記第1色の信号または前記第2色の信号の着目画素の周辺のコントラスト値を取得し、
前記コントラスト値が大きくなると、前記設定する数値が大きくなるように、前記所定の数値範囲の中から数値を設定することを特徴とする請求項ないしのいずれか1項に記載の画像処理装置。
The second determination unit acquires a contrast value around the pixel of interest of the first color signal or the second color signal,
If the contrast value is larger, the so Numeric values increases, the image processing apparatus according to any one of claims 6 to 9, characterized in that to set the numerical value from the predetermined value range .
前記第1の補間処理はバイキュービック補間処理であり、前記第2の補間処理はバイリニア補間処理であることを特徴とする請求項1ないし10のいずれか1項に記載の画像処理装置。 It said first interpolation processing is bicubic interpolation, the image processing apparatus according to any one of claims 1 to 10, wherein the second interpolation process is bilinear interpolation. 前記第2の補間処理を用いて前記色ずれ量を補正する第3の補正手段を有することを特徴とする請求項1ないし11のいずれか1項に記載の画像処理装置。 The image processing apparatus according to any one of claims 1 to 11, wherein a third correction means for correcting the color shift amount using the second interpolation process. 光学系により形成される像を撮像する撮像素子と、
前記撮像素子から出力される画像の倍率色収差を補正する請求項1ないし12のいずれか1項に記載の画像処理装置と、を備えた撮像装置。
An image sensor that captures an image formed by the optical system;
An image processing apparatus comprising: the image processing apparatus according to claim 1, wherein magnification chromatic aberration of an image output from the image sensor is corrected.
光学系を介して撮影された画像の倍率色収差による第1色の光に対する第2色の光の色ずれ量を補正する画像処理方法であって、
第1の周波数特性を有し、前記画像の前記第2色の成分について画素間の信号成分を補間する第1の補間処理を用いて前記色ずれ量を補正する第1の補正ステップと、
前記第1の補間処理を行った後の前記第2色の信号から前記第1色の信号を減算した色差信号に応じて、前記第1の補間処理と、前記第1の周波数特性よりも緩やかな第2の周波数特性を有する第2の補間処理と、を用いて前記色ずれ量を補正する第2の補正ステップと、
を有することを特徴とする画像処理方法。
An image processing method for correcting a color shift amount of a second color light with respect to a first color light due to a chromatic aberration of magnification of an image captured via an optical system,
A first correction step that has a first frequency characteristic and corrects the color shift amount using a first interpolation process that interpolates a signal component between pixels for the second color component of the image;
The first in accordance with the No. color Sashin obtained by subtracting the first color signal from the second color signal after the interpolation processing, and the first interpolation process, than the first frequency characteristic A second correction step of correcting the color shift amount using a second interpolation process having a gradual second frequency characteristic;
An image processing method comprising:
請求項14に記載の画像処理方法の各ステップが記述されたコンピュータで実行可能なプログラム。   A computer-executable program in which each step of the image processing method according to claim 14 is described. コンピュータに、請求項14に記載の画像処理方法の各ステップを実行させるためのプログラムが記憶されたコンピュータが読み取り可能な記憶媒体。   A computer-readable storage medium storing a program for causing a computer to execute each step of the image processing method according to claim 14.
JP2015220198A 2015-11-10 2015-11-10 Image processing device, imaging device, image processing method, program, storage medium Expired - Fee Related JP6632339B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2015220198A JP6632339B2 (en) 2015-11-10 2015-11-10 Image processing device, imaging device, image processing method, program, storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2015220198A JP6632339B2 (en) 2015-11-10 2015-11-10 Image processing device, imaging device, image processing method, program, storage medium

Publications (2)

Publication Number Publication Date
JP2017092703A JP2017092703A (en) 2017-05-25
JP6632339B2 true JP6632339B2 (en) 2020-01-22

Family

ID=58768688

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2015220198A Expired - Fee Related JP6632339B2 (en) 2015-11-10 2015-11-10 Image processing device, imaging device, image processing method, program, storage medium

Country Status (1)

Country Link
JP (1) JP6632339B2 (en)

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4483255B2 (en) * 2003-10-02 2010-06-16 パナソニック株式会社 Liquid crystal display
JP5115361B2 (en) * 2008-06-27 2013-01-09 富士通株式会社 Pixel interpolation device, pixel interpolation method, and pixel interpolation program
JP2011061444A (en) * 2009-09-09 2011-03-24 Hitachi Information & Communication Engineering Ltd Aberration correction device and method
JP5438579B2 (en) * 2010-03-29 2014-03-12 キヤノン株式会社 Image processing apparatus and control method thereof

Also Published As

Publication number Publication date
JP2017092703A (en) 2017-05-25

Similar Documents

Publication Publication Date Title
JP5980294B2 (en) Data processing apparatus, imaging apparatus, and data processing method
JP6327922B2 (en) Image processing apparatus, image processing method, and program
JP7362284B2 (en) Image processing method, image processing device, program, image processing system, and learned model manufacturing method
JP6282156B2 (en) Image device, image processing method, control program, and storage medium
JP6415062B2 (en) Image processing apparatus, image processing method, control program, and recording medium
JP5709911B2 (en) Image processing method, image processing apparatus, image processing program, and imaging apparatus
US20180182075A1 (en) Image processing apparatus, image capturing apparatus, method of image processing, and storage medium
US10482580B2 (en) Image processing apparatus, image processing method, and program
US10235742B2 (en) Image processing apparatus, image capturing apparatus, image processing method, and non-transitory computer-readable storage medium for adjustment of intensity of edge signal
US10861194B2 (en) Image processing apparatus, image processing method, and storage medium
JP6415108B2 (en) Image processing method, image processing apparatus, imaging apparatus, image processing program, and storage medium
JP6316043B2 (en) Apparatus, method, and program
JP6632339B2 (en) Image processing device, imaging device, image processing method, program, storage medium
US11445158B2 (en) Image processing apparatus, image capturing apparatus, image processing method, and storage medium
US11057598B2 (en) Image processing apparatus, image capturing apparatus, image processing method, and storage medium
US20190306416A1 (en) Image processing apparatus and image processing method for correcting deterioration in image quality due to characteristics of image optical system
JP6808770B2 (en) Data processing equipment, imaging equipment, and data processing methods
US20230146844A1 (en) Image processing apparatus and image processing method
JP6238673B2 (en) Image processing apparatus, imaging apparatus, imaging system, image processing method, image processing program, and storage medium
US11533440B2 (en) Apparatus, method, and storage medium each relating to image composition
JP7020387B2 (en) Imaging control device, imaging device and imaging control program
JP6501732B2 (en) Data processing apparatus, imaging apparatus, and control method of data processing apparatus
JP2015109681A (en) Image processing method, image processing apparatus, image processing program, and imaging apparatus
JP6604737B2 (en) Image processing apparatus, imaging apparatus, image processing method, image processing program, and storage medium
JP6462996B2 (en) Image processing apparatus, image processing method, control program, and recording medium

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20181019

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20190614

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20190716

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20190912

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20191210

R151 Written notification of patent or utility model registration

Ref document number: 6632339

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R151

LAPS Cancellation because of no payment of annual fees